@tanstack/react-query-devtools 5.108.1 → 5.108.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.
- package/build/legacy/{ReactQueryDevtools-W6vzeify.d.ts → ReactQueryDevtools-Dn-NQPoc.d.cts} +15 -5
- package/build/legacy/ReactQueryDevtools-Dn-NQPoc.d.cts.map +1 -0
- package/build/legacy/{ReactQueryDevtools-BhjVbJyl.d.cts → ReactQueryDevtools-DoZGY0HJ.d.ts} +15 -5
- package/build/legacy/ReactQueryDevtools-DoZGY0HJ.d.ts.map +1 -0
- package/build/legacy/ReactQueryDevtools.cjs +2 -2
- package/build/legacy/ReactQueryDevtools.cjs.map +1 -1
- package/build/legacy/ReactQueryDevtools.d.cts +1 -1
- package/build/legacy/ReactQueryDevtools.d.ts +1 -1
- package/build/legacy/ReactQueryDevtools.js +2 -2
- package/build/legacy/ReactQueryDevtools.js.map +1 -1
- package/build/{modern/ReactQueryDevtoolsPanel-6sWtUKpS.d.ts → legacy/ReactQueryDevtoolsPanel-Bhd-Vfyo.d.ts} +14 -4
- package/build/legacy/ReactQueryDevtoolsPanel-Bhd-Vfyo.d.ts.map +1 -0
- package/build/{modern/ReactQueryDevtoolsPanel-CNrIoVcr.d.cts → legacy/ReactQueryDevtoolsPanel-DARDnqeb.d.cts} +14 -4
- package/build/legacy/ReactQueryDevtoolsPanel-DARDnqeb.d.cts.map +1 -0
- package/build/legacy/ReactQueryDevtoolsPanel.cjs +2 -2
- package/build/legacy/ReactQueryDevtoolsPanel.cjs.map +1 -1
- package/build/legacy/ReactQueryDevtoolsPanel.d.cts +1 -1
- package/build/legacy/ReactQueryDevtoolsPanel.d.ts +1 -1
- package/build/legacy/ReactQueryDevtoolsPanel.js +2 -2
- package/build/legacy/ReactQueryDevtoolsPanel.js.map +1 -1
- package/build/legacy/index.d.cts +2 -2
- package/build/legacy/index.d.ts +2 -2
- package/build/legacy/production.d.cts +2 -2
- package/build/legacy/production.d.ts +2 -2
- package/build/modern/{ReactQueryDevtools-W6vzeify.d.ts → ReactQueryDevtools-Dn-NQPoc.d.cts} +15 -5
- package/build/modern/ReactQueryDevtools-Dn-NQPoc.d.cts.map +1 -0
- package/build/modern/{ReactQueryDevtools-BhjVbJyl.d.cts → ReactQueryDevtools-DoZGY0HJ.d.ts} +15 -5
- package/build/modern/ReactQueryDevtools-DoZGY0HJ.d.ts.map +1 -0
- package/build/modern/ReactQueryDevtools.cjs +2 -2
- package/build/modern/ReactQueryDevtools.cjs.map +1 -1
- package/build/modern/ReactQueryDevtools.d.cts +1 -1
- package/build/modern/ReactQueryDevtools.d.ts +1 -1
- package/build/modern/ReactQueryDevtools.js +2 -2
- package/build/modern/ReactQueryDevtools.js.map +1 -1
- package/build/{legacy/ReactQueryDevtoolsPanel-6sWtUKpS.d.ts → modern/ReactQueryDevtoolsPanel-Bhd-Vfyo.d.ts} +14 -4
- package/build/modern/ReactQueryDevtoolsPanel-Bhd-Vfyo.d.ts.map +1 -0
- package/build/{legacy/ReactQueryDevtoolsPanel-CNrIoVcr.d.cts → modern/ReactQueryDevtoolsPanel-DARDnqeb.d.cts} +14 -4
- package/build/modern/ReactQueryDevtoolsPanel-DARDnqeb.d.cts.map +1 -0
- package/build/modern/ReactQueryDevtoolsPanel.cjs +2 -2
- package/build/modern/ReactQueryDevtoolsPanel.cjs.map +1 -1
- package/build/modern/ReactQueryDevtoolsPanel.d.cts +1 -1
- package/build/modern/ReactQueryDevtoolsPanel.d.ts +1 -1
- package/build/modern/ReactQueryDevtoolsPanel.js +2 -2
- package/build/modern/ReactQueryDevtoolsPanel.js.map +1 -1
- package/build/modern/index.d.cts +2 -2
- package/build/modern/index.d.ts +2 -2
- package/build/modern/production.d.cts +2 -2
- package/build/modern/production.d.ts +2 -2
- package/package.json +4 -4
- package/src/ReactQueryDevtools.tsx +13 -5
- package/src/ReactQueryDevtoolsPanel.tsx +13 -5
- package/build/legacy/ReactQueryDevtools-BhjVbJyl.d.cts.map +0 -1
- package/build/legacy/ReactQueryDevtools-W6vzeify.d.ts.map +0 -1
- package/build/legacy/ReactQueryDevtoolsPanel-6sWtUKpS.d.ts.map +0 -1
- package/build/legacy/ReactQueryDevtoolsPanel-CNrIoVcr.d.cts.map +0 -1
- package/build/modern/ReactQueryDevtools-BhjVbJyl.d.cts.map +0 -1
- package/build/modern/ReactQueryDevtools-W6vzeify.d.ts.map +0 -1
- package/build/modern/ReactQueryDevtoolsPanel-6sWtUKpS.d.ts.map +0 -1
- package/build/modern/ReactQueryDevtoolsPanel-CNrIoVcr.d.cts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
|
|
2
3
|
import { QueryClient } from "@tanstack/react-query";
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
declare namespace ReactQueryDevtools_d_exports {
|
|
5
5
|
export { DevtoolsOptions, ReactQueryDevtools };
|
|
6
6
|
}
|
|
@@ -34,14 +34,24 @@ interface DevtoolsOptions {
|
|
|
34
34
|
*/
|
|
35
35
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
38
|
+
* nonce. This option does nothing.
|
|
38
39
|
*/
|
|
39
40
|
styleNonce?: string;
|
|
40
41
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
42
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
43
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
44
|
+
* they do not render in a shadow root.
|
|
43
45
|
*/
|
|
44
46
|
shadowDOMTarget?: ShadowRoot;
|
|
47
|
+
/**
|
|
48
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
49
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
50
|
+
* The devtools only pass it their own markup.
|
|
51
|
+
*/
|
|
52
|
+
trustedTypesPolicy?: {
|
|
53
|
+
createHTML: (html: string) => unknown;
|
|
54
|
+
};
|
|
45
55
|
/**
|
|
46
56
|
* Set this to true to hide disabled queries from the devtools panel.
|
|
47
57
|
*/
|
|
@@ -61,4 +71,4 @@ interface DevtoolsOptions {
|
|
|
61
71
|
*/
|
|
62
72
|
declare function ReactQueryDevtools(props: DevtoolsOptions): React.ReactElement | null;
|
|
63
73
|
export { ReactQueryDevtools as n, ReactQueryDevtools_d_exports as r, DevtoolsOptions as t };
|
|
64
|
-
//# sourceMappingURL=ReactQueryDevtools-
|
|
74
|
+
//# sourceMappingURL=ReactQueryDevtools-Dn-NQPoc.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtools-Dn-NQPoc.d.cts","names":[],"sources":["../../src/ReactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;EAIX,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;EAIpC;;;;;;EAMA,QAAQ;;;;;;;;iBASM,mBACd,OAAO,kBACN,MAAM"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
|
|
3
2
|
import { QueryClient } from "@tanstack/react-query";
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
declare namespace ReactQueryDevtools_d_exports {
|
|
5
5
|
export { DevtoolsOptions, ReactQueryDevtools };
|
|
6
6
|
}
|
|
@@ -34,14 +34,24 @@ interface DevtoolsOptions {
|
|
|
34
34
|
*/
|
|
35
35
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
38
|
+
* nonce. This option does nothing.
|
|
38
39
|
*/
|
|
39
40
|
styleNonce?: string;
|
|
40
41
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
42
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
43
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
44
|
+
* they do not render in a shadow root.
|
|
43
45
|
*/
|
|
44
46
|
shadowDOMTarget?: ShadowRoot;
|
|
47
|
+
/**
|
|
48
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
49
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
50
|
+
* The devtools only pass it their own markup.
|
|
51
|
+
*/
|
|
52
|
+
trustedTypesPolicy?: {
|
|
53
|
+
createHTML: (html: string) => unknown;
|
|
54
|
+
};
|
|
45
55
|
/**
|
|
46
56
|
* Set this to true to hide disabled queries from the devtools panel.
|
|
47
57
|
*/
|
|
@@ -61,4 +71,4 @@ interface DevtoolsOptions {
|
|
|
61
71
|
*/
|
|
62
72
|
declare function ReactQueryDevtools(props: DevtoolsOptions): React.ReactElement | null;
|
|
63
73
|
export { ReactQueryDevtools as n, ReactQueryDevtools_d_exports as r, DevtoolsOptions as t };
|
|
64
|
-
//# sourceMappingURL=ReactQueryDevtools-
|
|
74
|
+
//# sourceMappingURL=ReactQueryDevtools-DoZGY0HJ.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtools-DoZGY0HJ.d.ts","names":[],"sources":["../../src/ReactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;EAIX,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;EAIpC;;;;;;EAMA,QAAQ;;;;;;;;iBASM,mBACd,OAAO,kBACN,MAAM"}
|
|
@@ -16,7 +16,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
16
16
|
function ReactQueryDevtools(props) {
|
|
17
17
|
const queryClient = (0, _tanstack_react_query.useQueryClient)(props.client);
|
|
18
18
|
const ref = react.useRef(null);
|
|
19
|
-
const { buttonPosition, position, initialIsOpen, errorTypes,
|
|
19
|
+
const { buttonPosition, position, initialIsOpen, errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
20
20
|
const [devtools] = react.useState(() => new _tanstack_query_devtools.TanstackQueryDevtools({
|
|
21
21
|
client: queryClient,
|
|
22
22
|
queryFlavor: "React Query",
|
|
@@ -26,8 +26,8 @@ function ReactQueryDevtools(props) {
|
|
|
26
26
|
position,
|
|
27
27
|
initialIsOpen,
|
|
28
28
|
errorTypes,
|
|
29
|
-
styleNonce,
|
|
30
29
|
shadowDOMTarget,
|
|
30
|
+
trustedTypesPolicy,
|
|
31
31
|
hideDisabledQueries,
|
|
32
32
|
theme
|
|
33
33
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtools.cjs","names":["useQueryClient","React","TanstackQueryDevtools"],"sources":["../../src/ReactQueryDevtools.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtools`, which renders the devtools with a toggle button that opens\n * them.\n */\nexport interface DevtoolsOptions {\n /**\n * Set this true if you want the dev tools to default to being open\n */\n initialIsOpen?: boolean\n /**\n * The position of the TanStack logo to open and close the devtools panel.\n * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'\n * @defaultValue bottom-right\n */\n buttonPosition?: DevtoolsButtonPosition\n /**\n * The position of the React Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\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 *
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtools.cjs","names":["useQueryClient","React","TanstackQueryDevtools"],"sources":["../../src/ReactQueryDevtools.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtools`, which renders the devtools with a toggle button that opens\n * them.\n */\nexport interface DevtoolsOptions {\n /**\n * Set this true if you want the dev tools to default to being open\n */\n initialIsOpen?: boolean\n /**\n * The position of the TanStack logo to open and close the devtools panel.\n * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'\n * @defaultValue bottom-right\n */\n buttonPosition?: DevtoolsButtonPosition\n /**\n * The position of the React Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\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 * @deprecated The devtools no longer add a `<style>` element, so they need no\n * nonce. This option does nothing.\n */\n styleNonce?: string\n /**\n * The shadow root to add the devtools styles to. By default, the styles are\n * added to the shadow root the devtools render in, or to the document when\n * they do not render in a shadow root.\n */\n shadowDOMTarget?: ShadowRoot\n /**\n * The Trusted Types policy the devtools use to create their HTML templates.\n * Pass one when your page enforces `require-trusted-types-for 'script'`.\n * The devtools only pass it their own markup.\n */\n trustedTypesPolicy?: { createHTML: (html: string) => 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 * This overrides the theme selected in the devtools Settings menu. When omitted, the\n * selected theme is used, or `'system'` if none is selected.\n */\n theme?: Theme\n}\n\n/**\n * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or\n * nearest `QueryClient`.\n * @param props - The devtools options.\n * @returns The element the devtools are mounted in.\n */\nexport function ReactQueryDevtools(\n props: DevtoolsOptions,\n): React.ReactElement | null {\n const queryClient = useQueryClient(props.client)\n const ref = React.useRef<HTMLDivElement>(null)\n const {\n buttonPosition,\n position,\n initialIsOpen,\n errorTypes,\n shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n } = props\n const [devtools] = React.useState(\n () =>\n new TanstackQueryDevtools({\n client: queryClient,\n queryFlavor: 'React Query',\n version: '5',\n onlineManager,\n buttonPosition,\n position,\n initialIsOpen,\n errorTypes,\n shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n }),\n )\n\n React.useEffect(() => {\n devtools.setClient(queryClient)\n }, [queryClient, devtools])\n\n React.useEffect(() => {\n if (buttonPosition) {\n devtools.setButtonPosition(buttonPosition)\n }\n }, [buttonPosition, devtools])\n\n React.useEffect(() => {\n if (position) {\n devtools.setPosition(position)\n }\n }, [position, devtools])\n\n React.useEffect(() => {\n devtools.setInitialIsOpen(initialIsOpen || false)\n }, [initialIsOpen, 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 <div className=\"tsqd-parent-container\" ref={ref}></div>\n}\n"],"mappings":";;;;;;;;;;;;;;;AA4EA,SAAgB,mBACd,OAC2B;CAC3B,MAAM,eAAA,GAAcA,sBAAAA,eAAAA,CAAe,MAAM,MAAM;CAC/C,MAAM,MAAMC,MAAM,OAAuB,IAAI;CAC7C,MAAM,EACJ,gBACA,UACA,eACA,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,YAAYA,MAAM,eAErB,IAAIC,yBAAAA,sBAAsB;EACxB,QAAQ;EACR,aAAa;EACb,SAAS;EACT,eAAA,sBAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC,CACL;CAEA,MAAM,gBAAgB;EACpB,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,MAAM,gBAAgB;EACpB,IAAI,gBACF,SAAS,kBAAkB,cAAc;CAE7C,GAAG,CAAC,gBAAgB,QAAQ,CAAC;CAE7B,MAAM,gBAAgB;EACpB,IAAI,UACF,SAAS,YAAY,QAAQ;CAEjC,GAAG,CAAC,UAAU,QAAQ,CAAC;CAEvB,MAAM,gBAAgB;EACpB,SAAS,iBAAiB,iBAAiB,KAAK;CAClD,GAAG,CAAC,eAAe,QAAQ,CAAC;CAE5B,MAAM,gBAAgB;EACpB,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,MAAM,gBAAgB;EACpB,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,MAAM,gBAAgB;EACpB,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAG5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EAAK,WAAU;EAA6B;CAAU,CAAA;AAC/D"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReactQueryDevtools, t as DevtoolsOptions } from "./ReactQueryDevtools-
|
|
1
|
+
import { n as ReactQueryDevtools, t as DevtoolsOptions } from "./ReactQueryDevtools-Dn-NQPoc.cjs";
|
|
2
2
|
export { DevtoolsOptions, ReactQueryDevtools };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReactQueryDevtools, t as DevtoolsOptions } from "./ReactQueryDevtools-
|
|
1
|
+
import { n as ReactQueryDevtools, t as DevtoolsOptions } from "./ReactQueryDevtools-DoZGY0HJ.js";
|
|
2
2
|
export { DevtoolsOptions, ReactQueryDevtools };
|
|
@@ -13,7 +13,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
13
13
|
function ReactQueryDevtools(props) {
|
|
14
14
|
const queryClient = useQueryClient(props.client);
|
|
15
15
|
const ref = React.useRef(null);
|
|
16
|
-
const { buttonPosition, position, initialIsOpen, errorTypes,
|
|
16
|
+
const { buttonPosition, position, initialIsOpen, errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
17
17
|
const [devtools] = React.useState(() => new TanstackQueryDevtools({
|
|
18
18
|
client: queryClient,
|
|
19
19
|
queryFlavor: "React Query",
|
|
@@ -23,8 +23,8 @@ function ReactQueryDevtools(props) {
|
|
|
23
23
|
position,
|
|
24
24
|
initialIsOpen,
|
|
25
25
|
errorTypes,
|
|
26
|
-
styleNonce,
|
|
27
26
|
shadowDOMTarget,
|
|
27
|
+
trustedTypesPolicy,
|
|
28
28
|
hideDisabledQueries,
|
|
29
29
|
theme
|
|
30
30
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtools.js","names":[],"sources":["../../src/ReactQueryDevtools.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtools`, which renders the devtools with a toggle button that opens\n * them.\n */\nexport interface DevtoolsOptions {\n /**\n * Set this true if you want the dev tools to default to being open\n */\n initialIsOpen?: boolean\n /**\n * The position of the TanStack logo to open and close the devtools panel.\n * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'\n * @defaultValue bottom-right\n */\n buttonPosition?: DevtoolsButtonPosition\n /**\n * The position of the React Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\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 *
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtools.js","names":[],"sources":["../../src/ReactQueryDevtools.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtools`, which renders the devtools with a toggle button that opens\n * them.\n */\nexport interface DevtoolsOptions {\n /**\n * Set this true if you want the dev tools to default to being open\n */\n initialIsOpen?: boolean\n /**\n * The position of the TanStack logo to open and close the devtools panel.\n * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'\n * @defaultValue bottom-right\n */\n buttonPosition?: DevtoolsButtonPosition\n /**\n * The position of the React Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\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 * @deprecated The devtools no longer add a `<style>` element, so they need no\n * nonce. This option does nothing.\n */\n styleNonce?: string\n /**\n * The shadow root to add the devtools styles to. By default, the styles are\n * added to the shadow root the devtools render in, or to the document when\n * they do not render in a shadow root.\n */\n shadowDOMTarget?: ShadowRoot\n /**\n * The Trusted Types policy the devtools use to create their HTML templates.\n * Pass one when your page enforces `require-trusted-types-for 'script'`.\n * The devtools only pass it their own markup.\n */\n trustedTypesPolicy?: { createHTML: (html: string) => 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 * This overrides the theme selected in the devtools Settings menu. When omitted, the\n * selected theme is used, or `'system'` if none is selected.\n */\n theme?: Theme\n}\n\n/**\n * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or\n * nearest `QueryClient`.\n * @param props - The devtools options.\n * @returns The element the devtools are mounted in.\n */\nexport function ReactQueryDevtools(\n props: DevtoolsOptions,\n): React.ReactElement | null {\n const queryClient = useQueryClient(props.client)\n const ref = React.useRef<HTMLDivElement>(null)\n const {\n buttonPosition,\n position,\n initialIsOpen,\n errorTypes,\n shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n } = props\n const [devtools] = React.useState(\n () =>\n new TanstackQueryDevtools({\n client: queryClient,\n queryFlavor: 'React Query',\n version: '5',\n onlineManager,\n buttonPosition,\n position,\n initialIsOpen,\n errorTypes,\n shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n }),\n )\n\n React.useEffect(() => {\n devtools.setClient(queryClient)\n }, [queryClient, devtools])\n\n React.useEffect(() => {\n if (buttonPosition) {\n devtools.setButtonPosition(buttonPosition)\n }\n }, [buttonPosition, devtools])\n\n React.useEffect(() => {\n if (position) {\n devtools.setPosition(position)\n }\n }, [position, devtools])\n\n React.useEffect(() => {\n devtools.setInitialIsOpen(initialIsOpen || false)\n }, [initialIsOpen, 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 <div className=\"tsqd-parent-container\" ref={ref}></div>\n}\n"],"mappings":";;;;;;;;;;;;AA4EA,SAAgB,mBACd,OAC2B;CAC3B,MAAM,cAAc,eAAe,MAAM,MAAM;CAC/C,MAAM,MAAM,MAAM,OAAuB,IAAI;CAC7C,MAAM,EACJ,gBACA,UACA,eACA,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,YAAY,MAAM,eAErB,IAAI,sBAAsB;EACxB,QAAQ;EACR,aAAa;EACb,SAAS;EACT;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC,CACL;CAEA,MAAM,gBAAgB;EACpB,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,MAAM,gBAAgB;EACpB,IAAI,gBACF,SAAS,kBAAkB,cAAc;CAE7C,GAAG,CAAC,gBAAgB,QAAQ,CAAC;CAE7B,MAAM,gBAAgB;EACpB,IAAI,UACF,SAAS,YAAY,QAAQ;CAEjC,GAAG,CAAC,UAAU,QAAQ,CAAC;CAEvB,MAAM,gBAAgB;EACpB,SAAS,iBAAiB,iBAAiB,KAAK;CAClD,GAAG,CAAC,eAAe,QAAQ,CAAC;CAE5B,MAAM,gBAAgB;EACpB,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,MAAM,gBAAgB;EACpB,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,MAAM,gBAAgB;EACpB,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAG5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OAAO,oBAAC,OAAD;EAAK,WAAU;EAA6B;CAAU,CAAA;AAC/D"}
|
|
@@ -17,14 +17,24 @@ interface DevtoolsPanelOptions {
|
|
|
17
17
|
*/
|
|
18
18
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
21
|
+
* nonce. This option does nothing.
|
|
21
22
|
*/
|
|
22
23
|
styleNonce?: string;
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
25
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
26
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
27
|
+
* they do not render in a shadow root.
|
|
26
28
|
*/
|
|
27
29
|
shadowDOMTarget?: ShadowRoot;
|
|
30
|
+
/**
|
|
31
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
32
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
33
|
+
* The devtools only pass it their own markup.
|
|
34
|
+
*/
|
|
35
|
+
trustedTypesPolicy?: {
|
|
36
|
+
createHTML: (html: string) => unknown;
|
|
37
|
+
};
|
|
28
38
|
/**
|
|
29
39
|
* Custom styles for the devtools panel
|
|
30
40
|
* @default { height: '100%', display: 'flex', flexDirection: 'column' }
|
|
@@ -54,4 +64,4 @@ interface DevtoolsPanelOptions {
|
|
|
54
64
|
*/
|
|
55
65
|
declare function ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React.ReactElement | null;
|
|
56
66
|
export { ReactQueryDevtoolsPanel as n, ReactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
|
|
57
|
-
//# sourceMappingURL=ReactQueryDevtoolsPanel-
|
|
67
|
+
//# sourceMappingURL=ReactQueryDevtoolsPanel-Bhd-Vfyo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtoolsPanel-Bhd-Vfyo.d.ts","names":[],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;EAIf,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;;;;EAQpC,QAAQ,MAAM;;;;EAKd;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,wBACd,OAAO,uBACN,MAAM"}
|
|
@@ -17,14 +17,24 @@ interface DevtoolsPanelOptions {
|
|
|
17
17
|
*/
|
|
18
18
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
21
|
+
* nonce. This option does nothing.
|
|
21
22
|
*/
|
|
22
23
|
styleNonce?: string;
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
25
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
26
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
27
|
+
* they do not render in a shadow root.
|
|
26
28
|
*/
|
|
27
29
|
shadowDOMTarget?: ShadowRoot;
|
|
30
|
+
/**
|
|
31
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
32
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
33
|
+
* The devtools only pass it their own markup.
|
|
34
|
+
*/
|
|
35
|
+
trustedTypesPolicy?: {
|
|
36
|
+
createHTML: (html: string) => unknown;
|
|
37
|
+
};
|
|
28
38
|
/**
|
|
29
39
|
* Custom styles for the devtools panel
|
|
30
40
|
* @default { height: '100%', display: 'flex', flexDirection: 'column' }
|
|
@@ -54,4 +64,4 @@ interface DevtoolsPanelOptions {
|
|
|
54
64
|
*/
|
|
55
65
|
declare function ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React.ReactElement | null;
|
|
56
66
|
export { ReactQueryDevtoolsPanel as n, ReactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
|
|
57
|
-
//# sourceMappingURL=ReactQueryDevtoolsPanel-
|
|
67
|
+
//# sourceMappingURL=ReactQueryDevtoolsPanel-DARDnqeb.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtoolsPanel-DARDnqeb.d.cts","names":[],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;EAIf,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;;;;EAQpC,QAAQ,MAAM;;;;EAKd;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,wBACd,OAAO,uBACN,MAAM"}
|
|
@@ -15,7 +15,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
15
15
|
function ReactQueryDevtoolsPanel(props) {
|
|
16
16
|
const queryClient = (0, _tanstack_react_query.useQueryClient)(props.client);
|
|
17
17
|
const ref = react.useRef(null);
|
|
18
|
-
const { errorTypes,
|
|
18
|
+
const { errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
19
19
|
const [devtools] = react.useState(() => new _tanstack_query_devtools.TanstackQueryDevtoolsPanel({
|
|
20
20
|
client: queryClient,
|
|
21
21
|
queryFlavor: "React Query",
|
|
@@ -25,8 +25,8 @@ function ReactQueryDevtoolsPanel(props) {
|
|
|
25
25
|
position: "bottom",
|
|
26
26
|
initialIsOpen: true,
|
|
27
27
|
errorTypes,
|
|
28
|
-
styleNonce,
|
|
29
28
|
shadowDOMTarget,
|
|
29
|
+
trustedTypesPolicy,
|
|
30
30
|
onClose: props.onClose,
|
|
31
31
|
hideDisabledQueries,
|
|
32
32
|
theme
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtoolsPanel.cjs","names":["useQueryClient","React","TanstackQueryDevtoolsPanel"],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtoolsPanel`, which renders the devtools panel inline.\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 *
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtoolsPanel.cjs","names":["useQueryClient","React","TanstackQueryDevtoolsPanel"],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtoolsPanel`, which renders the devtools panel inline.\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 * @deprecated The devtools no longer add a `<style>` element, so they need no\n * nonce. This option does nothing.\n */\n styleNonce?: string\n /**\n * The shadow root to add the devtools styles to. By default, the styles are\n * added to the shadow root the devtools render in, or to the document when\n * they do not render in a shadow root.\n */\n shadowDOMTarget?: ShadowRoot\n /**\n * The Trusted Types policy the devtools use to create their HTML templates.\n * Pass one when your page enforces `require-trusted-types-for 'script'`.\n * The devtools only pass it their own markup.\n */\n trustedTypesPolicy?: { createHTML: (html: string) => unknown }\n\n /**\n * Custom styles for the devtools panel\n * @default { height: '100%', display: 'flex', flexDirection: 'column' }\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?: () => void\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 * This overrides the theme selected in the devtools Settings menu. When omitted, the\n * selected theme is used, or `'system'` if none is selected.\n */\n theme?: Theme\n}\n\n/**\n * Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.\n * @param props - The devtools panel options.\n * @returns The element the devtools panel is mounted in.\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 shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n } = props\n const [devtools] = React.useState(\n () =>\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 shadowDOMTarget,\n trustedTypesPolicy,\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={{\n height: '100%',\n display: 'flex',\n flexDirection: 'column',\n ...props.style,\n }}\n className=\"tsqd-parent-container\"\n ref={ref}\n ></div>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;AAkEA,SAAgB,wBACd,OAC2B;CAC3B,MAAM,eAAA,GAAcA,sBAAAA,eAAAA,CAAe,MAAM,MAAM;CAC/C,MAAM,MAAMC,MAAM,OAAuB,IAAI;CAC7C,MAAM,EACJ,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,YAAYA,MAAM,eAErB,IAAIC,yBAAAA,2BAA2B;EAC7B,QAAQ;EACR,aAAa;EACb,SAAS;EACT,eAAA,sBAAA;EACA,gBAAgB;EAChB,UAAU;EACV,eAAe;EACf;EACA;EACA;EACA,SAAS,MAAM;EACf;EACA;CACF,CAAC,CACL;CAEA,MAAM,gBAAgB;EACpB,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,MAAM,gBAAgB;EACpB,SAAS,WAAW,MAAM,kBAAkB,CAAC,EAAE;CACjD,GAAG,CAAC,MAAM,SAAS,QAAQ,CAAC;CAE5B,MAAM,gBAAgB;EACpB,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,MAAM,gBAAgB;EACpB,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,MAAM,gBAAgB;EACpB,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAG5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EACE,OAAO;GACL,QAAQ;GACR,SAAS;GACT,eAAe;GACf,GAAG,MAAM;EACX;EACA,WAAU;EACL;CACD,CAAA;AAEV"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./ReactQueryDevtoolsPanel-
|
|
1
|
+
import { n as ReactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./ReactQueryDevtoolsPanel-DARDnqeb.cjs";
|
|
2
2
|
export { DevtoolsPanelOptions, ReactQueryDevtoolsPanel };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./ReactQueryDevtoolsPanel-
|
|
1
|
+
import { n as ReactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./ReactQueryDevtoolsPanel-Bhd-Vfyo.js";
|
|
2
2
|
export { DevtoolsPanelOptions, ReactQueryDevtoolsPanel };
|
|
@@ -12,7 +12,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
12
12
|
function ReactQueryDevtoolsPanel(props) {
|
|
13
13
|
const queryClient = useQueryClient(props.client);
|
|
14
14
|
const ref = React.useRef(null);
|
|
15
|
-
const { errorTypes,
|
|
15
|
+
const { errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
16
16
|
const [devtools] = React.useState(() => new TanstackQueryDevtoolsPanel({
|
|
17
17
|
client: queryClient,
|
|
18
18
|
queryFlavor: "React Query",
|
|
@@ -22,8 +22,8 @@ function ReactQueryDevtoolsPanel(props) {
|
|
|
22
22
|
position: "bottom",
|
|
23
23
|
initialIsOpen: true,
|
|
24
24
|
errorTypes,
|
|
25
|
-
styleNonce,
|
|
26
25
|
shadowDOMTarget,
|
|
26
|
+
trustedTypesPolicy,
|
|
27
27
|
onClose: props.onClose,
|
|
28
28
|
hideDisabledQueries,
|
|
29
29
|
theme
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtoolsPanel.js","names":[],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtoolsPanel`, which renders the devtools panel inline.\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 *
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtoolsPanel.js","names":[],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtoolsPanel`, which renders the devtools panel inline.\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 * @deprecated The devtools no longer add a `<style>` element, so they need no\n * nonce. This option does nothing.\n */\n styleNonce?: string\n /**\n * The shadow root to add the devtools styles to. By default, the styles are\n * added to the shadow root the devtools render in, or to the document when\n * they do not render in a shadow root.\n */\n shadowDOMTarget?: ShadowRoot\n /**\n * The Trusted Types policy the devtools use to create their HTML templates.\n * Pass one when your page enforces `require-trusted-types-for 'script'`.\n * The devtools only pass it their own markup.\n */\n trustedTypesPolicy?: { createHTML: (html: string) => unknown }\n\n /**\n * Custom styles for the devtools panel\n * @default { height: '100%', display: 'flex', flexDirection: 'column' }\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?: () => void\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 * This overrides the theme selected in the devtools Settings menu. When omitted, the\n * selected theme is used, or `'system'` if none is selected.\n */\n theme?: Theme\n}\n\n/**\n * Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.\n * @param props - The devtools panel options.\n * @returns The element the devtools panel is mounted in.\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 shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n } = props\n const [devtools] = React.useState(\n () =>\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 shadowDOMTarget,\n trustedTypesPolicy,\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={{\n height: '100%',\n display: 'flex',\n flexDirection: 'column',\n ...props.style,\n }}\n className=\"tsqd-parent-container\"\n ref={ref}\n ></div>\n )\n}\n"],"mappings":";;;;;;;;;;;AAkEA,SAAgB,wBACd,OAC2B;CAC3B,MAAM,cAAc,eAAe,MAAM,MAAM;CAC/C,MAAM,MAAM,MAAM,OAAuB,IAAI;CAC7C,MAAM,EACJ,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,YAAY,MAAM,eAErB,IAAI,2BAA2B;EAC7B,QAAQ;EACR,aAAa;EACb,SAAS;EACT;EACA,gBAAgB;EAChB,UAAU;EACV,eAAe;EACf;EACA;EACA;EACA,SAAS,MAAM;EACf;EACA;CACF,CAAC,CACL;CAEA,MAAM,gBAAgB;EACpB,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,MAAM,gBAAgB;EACpB,SAAS,WAAW,MAAM,kBAAkB,CAAC,EAAE;CACjD,GAAG,CAAC,MAAM,SAAS,QAAQ,CAAC;CAE5B,MAAM,gBAAgB;EACpB,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,MAAM,gBAAgB;EACpB,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,MAAM,gBAAgB;EACpB,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAG5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OACE,oBAAC,OAAD;EACE,OAAO;GACL,QAAQ;GACR,SAAS;GACT,eAAe;GACf,GAAG,MAAM;EACX;EACA,WAAU;EACL;CACD,CAAA;AAEV"}
|
package/build/legacy/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-
|
|
2
|
-
import { r as ReactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./ReactQueryDevtoolsPanel-
|
|
1
|
+
import { r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-Dn-NQPoc.cjs";
|
|
2
|
+
import { r as ReactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./ReactQueryDevtoolsPanel-DARDnqeb.cjs";
|
|
3
3
|
export declare const ReactQueryDevtools: (typeof ReactQueryDevtools_d_exports)['ReactQueryDevtools'];
|
|
4
4
|
export declare const ReactQueryDevtoolsPanel: (typeof ReactQueryDevtoolsPanel_d_exports)['ReactQueryDevtoolsPanel'];
|
|
5
5
|
/**
|
package/build/legacy/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-
|
|
2
|
-
import { r as ReactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./ReactQueryDevtoolsPanel-
|
|
1
|
+
import { r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-DoZGY0HJ.js";
|
|
2
|
+
import { r as ReactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./ReactQueryDevtoolsPanel-Bhd-Vfyo.js";
|
|
3
3
|
export declare const ReactQueryDevtools: (typeof ReactQueryDevtools_d_exports)['ReactQueryDevtools'];
|
|
4
4
|
export declare const ReactQueryDevtoolsPanel: (typeof ReactQueryDevtoolsPanel_d_exports)['ReactQueryDevtoolsPanel'];
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ReactQueryDevtools$1, r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-
|
|
2
|
-
import { n as ReactQueryDevtoolsPanel$1, r as ReactQueryDevtoolsPanel_d_exports } from "./ReactQueryDevtoolsPanel-
|
|
1
|
+
import { n as ReactQueryDevtools$1, r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-Dn-NQPoc.cjs";
|
|
2
|
+
import { n as ReactQueryDevtoolsPanel$1, r as ReactQueryDevtoolsPanel_d_exports } from "./ReactQueryDevtoolsPanel-DARDnqeb.cjs";
|
|
3
3
|
export declare const ReactQueryDevtools: typeof ReactQueryDevtools$1;
|
|
4
4
|
export declare const ReactQueryDevtoolsPanel: typeof ReactQueryDevtoolsPanel$1;
|
|
5
5
|
//# sourceMappingURL=production.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ReactQueryDevtools$1, r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-
|
|
2
|
-
import { n as ReactQueryDevtoolsPanel$1, r as ReactQueryDevtoolsPanel_d_exports } from "./ReactQueryDevtoolsPanel-
|
|
1
|
+
import { n as ReactQueryDevtools$1, r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-DoZGY0HJ.js";
|
|
2
|
+
import { n as ReactQueryDevtoolsPanel$1, r as ReactQueryDevtoolsPanel_d_exports } from "./ReactQueryDevtoolsPanel-Bhd-Vfyo.js";
|
|
3
3
|
export declare const ReactQueryDevtools: typeof ReactQueryDevtools$1;
|
|
4
4
|
export declare const ReactQueryDevtoolsPanel: typeof ReactQueryDevtoolsPanel$1;
|
|
5
5
|
//# sourceMappingURL=production.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
|
|
2
3
|
import { QueryClient } from "@tanstack/react-query";
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
declare namespace ReactQueryDevtools_d_exports {
|
|
5
5
|
export { DevtoolsOptions, ReactQueryDevtools };
|
|
6
6
|
}
|
|
@@ -34,14 +34,24 @@ interface DevtoolsOptions {
|
|
|
34
34
|
*/
|
|
35
35
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
38
|
+
* nonce. This option does nothing.
|
|
38
39
|
*/
|
|
39
40
|
styleNonce?: string;
|
|
40
41
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
42
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
43
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
44
|
+
* they do not render in a shadow root.
|
|
43
45
|
*/
|
|
44
46
|
shadowDOMTarget?: ShadowRoot;
|
|
47
|
+
/**
|
|
48
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
49
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
50
|
+
* The devtools only pass it their own markup.
|
|
51
|
+
*/
|
|
52
|
+
trustedTypesPolicy?: {
|
|
53
|
+
createHTML: (html: string) => unknown;
|
|
54
|
+
};
|
|
45
55
|
/**
|
|
46
56
|
* Set this to true to hide disabled queries from the devtools panel.
|
|
47
57
|
*/
|
|
@@ -61,4 +71,4 @@ interface DevtoolsOptions {
|
|
|
61
71
|
*/
|
|
62
72
|
declare function ReactQueryDevtools(props: DevtoolsOptions): React.ReactElement | null;
|
|
63
73
|
export { ReactQueryDevtools as n, ReactQueryDevtools_d_exports as r, DevtoolsOptions as t };
|
|
64
|
-
//# sourceMappingURL=ReactQueryDevtools-
|
|
74
|
+
//# sourceMappingURL=ReactQueryDevtools-Dn-NQPoc.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtools-Dn-NQPoc.d.cts","names":[],"sources":["../../src/ReactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;EAIX,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;EAIpC;;;;;;EAMA,QAAQ;;;;;;;;iBASM,mBACd,OAAO,kBACN,MAAM"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
|
|
3
2
|
import { QueryClient } from "@tanstack/react-query";
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
declare namespace ReactQueryDevtools_d_exports {
|
|
5
5
|
export { DevtoolsOptions, ReactQueryDevtools };
|
|
6
6
|
}
|
|
@@ -34,14 +34,24 @@ interface DevtoolsOptions {
|
|
|
34
34
|
*/
|
|
35
35
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
38
|
+
* nonce. This option does nothing.
|
|
38
39
|
*/
|
|
39
40
|
styleNonce?: string;
|
|
40
41
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
42
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
43
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
44
|
+
* they do not render in a shadow root.
|
|
43
45
|
*/
|
|
44
46
|
shadowDOMTarget?: ShadowRoot;
|
|
47
|
+
/**
|
|
48
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
49
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
50
|
+
* The devtools only pass it their own markup.
|
|
51
|
+
*/
|
|
52
|
+
trustedTypesPolicy?: {
|
|
53
|
+
createHTML: (html: string) => unknown;
|
|
54
|
+
};
|
|
45
55
|
/**
|
|
46
56
|
* Set this to true to hide disabled queries from the devtools panel.
|
|
47
57
|
*/
|
|
@@ -61,4 +71,4 @@ interface DevtoolsOptions {
|
|
|
61
71
|
*/
|
|
62
72
|
declare function ReactQueryDevtools(props: DevtoolsOptions): React.ReactElement | null;
|
|
63
73
|
export { ReactQueryDevtools as n, ReactQueryDevtools_d_exports as r, DevtoolsOptions as t };
|
|
64
|
-
//# sourceMappingURL=ReactQueryDevtools-
|
|
74
|
+
//# sourceMappingURL=ReactQueryDevtools-DoZGY0HJ.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtools-DoZGY0HJ.d.ts","names":[],"sources":["../../src/ReactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;EAIX,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;EAIpC;;;;;;EAMA,QAAQ;;;;;;;;iBASM,mBACd,OAAO,kBACN,MAAM"}
|
|
@@ -16,7 +16,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
16
16
|
function ReactQueryDevtools(props) {
|
|
17
17
|
const queryClient = (0, _tanstack_react_query.useQueryClient)(props.client);
|
|
18
18
|
const ref = react.useRef(null);
|
|
19
|
-
const { buttonPosition, position, initialIsOpen, errorTypes,
|
|
19
|
+
const { buttonPosition, position, initialIsOpen, errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
20
20
|
const [devtools] = react.useState(() => new _tanstack_query_devtools.TanstackQueryDevtools({
|
|
21
21
|
client: queryClient,
|
|
22
22
|
queryFlavor: "React Query",
|
|
@@ -26,8 +26,8 @@ function ReactQueryDevtools(props) {
|
|
|
26
26
|
position,
|
|
27
27
|
initialIsOpen,
|
|
28
28
|
errorTypes,
|
|
29
|
-
styleNonce,
|
|
30
29
|
shadowDOMTarget,
|
|
30
|
+
trustedTypesPolicy,
|
|
31
31
|
hideDisabledQueries,
|
|
32
32
|
theme
|
|
33
33
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtools.cjs","names":["useQueryClient","React","TanstackQueryDevtools"],"sources":["../../src/ReactQueryDevtools.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtools`, which renders the devtools with a toggle button that opens\n * them.\n */\nexport interface DevtoolsOptions {\n /**\n * Set this true if you want the dev tools to default to being open\n */\n initialIsOpen?: boolean\n /**\n * The position of the TanStack logo to open and close the devtools panel.\n * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'\n * @defaultValue bottom-right\n */\n buttonPosition?: DevtoolsButtonPosition\n /**\n * The position of the React Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\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 *
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtools.cjs","names":["useQueryClient","React","TanstackQueryDevtools"],"sources":["../../src/ReactQueryDevtools.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtools`, which renders the devtools with a toggle button that opens\n * them.\n */\nexport interface DevtoolsOptions {\n /**\n * Set this true if you want the dev tools to default to being open\n */\n initialIsOpen?: boolean\n /**\n * The position of the TanStack logo to open and close the devtools panel.\n * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'\n * @defaultValue bottom-right\n */\n buttonPosition?: DevtoolsButtonPosition\n /**\n * The position of the React Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\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 * @deprecated The devtools no longer add a `<style>` element, so they need no\n * nonce. This option does nothing.\n */\n styleNonce?: string\n /**\n * The shadow root to add the devtools styles to. By default, the styles are\n * added to the shadow root the devtools render in, or to the document when\n * they do not render in a shadow root.\n */\n shadowDOMTarget?: ShadowRoot\n /**\n * The Trusted Types policy the devtools use to create their HTML templates.\n * Pass one when your page enforces `require-trusted-types-for 'script'`.\n * The devtools only pass it their own markup.\n */\n trustedTypesPolicy?: { createHTML: (html: string) => 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 * This overrides the theme selected in the devtools Settings menu. When omitted, the\n * selected theme is used, or `'system'` if none is selected.\n */\n theme?: Theme\n}\n\n/**\n * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or\n * nearest `QueryClient`.\n * @param props - The devtools options.\n * @returns The element the devtools are mounted in.\n */\nexport function ReactQueryDevtools(\n props: DevtoolsOptions,\n): React.ReactElement | null {\n const queryClient = useQueryClient(props.client)\n const ref = React.useRef<HTMLDivElement>(null)\n const {\n buttonPosition,\n position,\n initialIsOpen,\n errorTypes,\n shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n } = props\n const [devtools] = React.useState(\n () =>\n new TanstackQueryDevtools({\n client: queryClient,\n queryFlavor: 'React Query',\n version: '5',\n onlineManager,\n buttonPosition,\n position,\n initialIsOpen,\n errorTypes,\n shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n }),\n )\n\n React.useEffect(() => {\n devtools.setClient(queryClient)\n }, [queryClient, devtools])\n\n React.useEffect(() => {\n if (buttonPosition) {\n devtools.setButtonPosition(buttonPosition)\n }\n }, [buttonPosition, devtools])\n\n React.useEffect(() => {\n if (position) {\n devtools.setPosition(position)\n }\n }, [position, devtools])\n\n React.useEffect(() => {\n devtools.setInitialIsOpen(initialIsOpen || false)\n }, [initialIsOpen, 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 <div className=\"tsqd-parent-container\" ref={ref}></div>\n}\n"],"mappings":";;;;;;;;;;;;;;;AA4EA,SAAgB,mBACd,OAC2B;CAC3B,MAAM,eAAA,GAAcA,sBAAAA,eAAAA,CAAe,MAAM,MAAM;CAC/C,MAAM,MAAMC,MAAM,OAAuB,IAAI;CAC7C,MAAM,EACJ,gBACA,UACA,eACA,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,YAAYA,MAAM,eAErB,IAAIC,yBAAAA,sBAAsB;EACxB,QAAQ;EACR,aAAa;EACb,SAAS;EACT,eAAA,sBAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC,CACL;CAEA,MAAM,gBAAgB;EACpB,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,MAAM,gBAAgB;EACpB,IAAI,gBACF,SAAS,kBAAkB,cAAc;CAE7C,GAAG,CAAC,gBAAgB,QAAQ,CAAC;CAE7B,MAAM,gBAAgB;EACpB,IAAI,UACF,SAAS,YAAY,QAAQ;CAEjC,GAAG,CAAC,UAAU,QAAQ,CAAC;CAEvB,MAAM,gBAAgB;EACpB,SAAS,iBAAiB,iBAAiB,KAAK;CAClD,GAAG,CAAC,eAAe,QAAQ,CAAC;CAE5B,MAAM,gBAAgB;EACpB,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,MAAM,gBAAgB;EACpB,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,MAAM,gBAAgB;EACpB,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAG5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EAAK,WAAU;EAA6B;CAAU,CAAA;AAC/D"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReactQueryDevtools, t as DevtoolsOptions } from "./ReactQueryDevtools-
|
|
1
|
+
import { n as ReactQueryDevtools, t as DevtoolsOptions } from "./ReactQueryDevtools-Dn-NQPoc.cjs";
|
|
2
2
|
export { DevtoolsOptions, ReactQueryDevtools };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReactQueryDevtools, t as DevtoolsOptions } from "./ReactQueryDevtools-
|
|
1
|
+
import { n as ReactQueryDevtools, t as DevtoolsOptions } from "./ReactQueryDevtools-DoZGY0HJ.js";
|
|
2
2
|
export { DevtoolsOptions, ReactQueryDevtools };
|
|
@@ -13,7 +13,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
13
13
|
function ReactQueryDevtools(props) {
|
|
14
14
|
const queryClient = useQueryClient(props.client);
|
|
15
15
|
const ref = React.useRef(null);
|
|
16
|
-
const { buttonPosition, position, initialIsOpen, errorTypes,
|
|
16
|
+
const { buttonPosition, position, initialIsOpen, errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
17
17
|
const [devtools] = React.useState(() => new TanstackQueryDevtools({
|
|
18
18
|
client: queryClient,
|
|
19
19
|
queryFlavor: "React Query",
|
|
@@ -23,8 +23,8 @@ function ReactQueryDevtools(props) {
|
|
|
23
23
|
position,
|
|
24
24
|
initialIsOpen,
|
|
25
25
|
errorTypes,
|
|
26
|
-
styleNonce,
|
|
27
26
|
shadowDOMTarget,
|
|
27
|
+
trustedTypesPolicy,
|
|
28
28
|
hideDisabledQueries,
|
|
29
29
|
theme
|
|
30
30
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtools.js","names":[],"sources":["../../src/ReactQueryDevtools.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtools`, which renders the devtools with a toggle button that opens\n * them.\n */\nexport interface DevtoolsOptions {\n /**\n * Set this true if you want the dev tools to default to being open\n */\n initialIsOpen?: boolean\n /**\n * The position of the TanStack logo to open and close the devtools panel.\n * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'\n * @defaultValue bottom-right\n */\n buttonPosition?: DevtoolsButtonPosition\n /**\n * The position of the React Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\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 *
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtools.js","names":[],"sources":["../../src/ReactQueryDevtools.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtools`, which renders the devtools with a toggle button that opens\n * them.\n */\nexport interface DevtoolsOptions {\n /**\n * Set this true if you want the dev tools to default to being open\n */\n initialIsOpen?: boolean\n /**\n * The position of the TanStack logo to open and close the devtools panel.\n * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'\n * @defaultValue bottom-right\n */\n buttonPosition?: DevtoolsButtonPosition\n /**\n * The position of the React Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\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 * @deprecated The devtools no longer add a `<style>` element, so they need no\n * nonce. This option does nothing.\n */\n styleNonce?: string\n /**\n * The shadow root to add the devtools styles to. By default, the styles are\n * added to the shadow root the devtools render in, or to the document when\n * they do not render in a shadow root.\n */\n shadowDOMTarget?: ShadowRoot\n /**\n * The Trusted Types policy the devtools use to create their HTML templates.\n * Pass one when your page enforces `require-trusted-types-for 'script'`.\n * The devtools only pass it their own markup.\n */\n trustedTypesPolicy?: { createHTML: (html: string) => 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 * This overrides the theme selected in the devtools Settings menu. When omitted, the\n * selected theme is used, or `'system'` if none is selected.\n */\n theme?: Theme\n}\n\n/**\n * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or\n * nearest `QueryClient`.\n * @param props - The devtools options.\n * @returns The element the devtools are mounted in.\n */\nexport function ReactQueryDevtools(\n props: DevtoolsOptions,\n): React.ReactElement | null {\n const queryClient = useQueryClient(props.client)\n const ref = React.useRef<HTMLDivElement>(null)\n const {\n buttonPosition,\n position,\n initialIsOpen,\n errorTypes,\n shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n } = props\n const [devtools] = React.useState(\n () =>\n new TanstackQueryDevtools({\n client: queryClient,\n queryFlavor: 'React Query',\n version: '5',\n onlineManager,\n buttonPosition,\n position,\n initialIsOpen,\n errorTypes,\n shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n }),\n )\n\n React.useEffect(() => {\n devtools.setClient(queryClient)\n }, [queryClient, devtools])\n\n React.useEffect(() => {\n if (buttonPosition) {\n devtools.setButtonPosition(buttonPosition)\n }\n }, [buttonPosition, devtools])\n\n React.useEffect(() => {\n if (position) {\n devtools.setPosition(position)\n }\n }, [position, devtools])\n\n React.useEffect(() => {\n devtools.setInitialIsOpen(initialIsOpen || false)\n }, [initialIsOpen, 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 <div className=\"tsqd-parent-container\" ref={ref}></div>\n}\n"],"mappings":";;;;;;;;;;;;AA4EA,SAAgB,mBACd,OAC2B;CAC3B,MAAM,cAAc,eAAe,MAAM,MAAM;CAC/C,MAAM,MAAM,MAAM,OAAuB,IAAI;CAC7C,MAAM,EACJ,gBACA,UACA,eACA,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,YAAY,MAAM,eAErB,IAAI,sBAAsB;EACxB,QAAQ;EACR,aAAa;EACb,SAAS;EACT;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC,CACL;CAEA,MAAM,gBAAgB;EACpB,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,MAAM,gBAAgB;EACpB,IAAI,gBACF,SAAS,kBAAkB,cAAc;CAE7C,GAAG,CAAC,gBAAgB,QAAQ,CAAC;CAE7B,MAAM,gBAAgB;EACpB,IAAI,UACF,SAAS,YAAY,QAAQ;CAEjC,GAAG,CAAC,UAAU,QAAQ,CAAC;CAEvB,MAAM,gBAAgB;EACpB,SAAS,iBAAiB,iBAAiB,KAAK;CAClD,GAAG,CAAC,eAAe,QAAQ,CAAC;CAE5B,MAAM,gBAAgB;EACpB,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,MAAM,gBAAgB;EACpB,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,MAAM,gBAAgB;EACpB,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAG5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OAAO,oBAAC,OAAD;EAAK,WAAU;EAA6B;CAAU,CAAA;AAC/D"}
|
|
@@ -17,14 +17,24 @@ interface DevtoolsPanelOptions {
|
|
|
17
17
|
*/
|
|
18
18
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
21
|
+
* nonce. This option does nothing.
|
|
21
22
|
*/
|
|
22
23
|
styleNonce?: string;
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
25
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
26
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
27
|
+
* they do not render in a shadow root.
|
|
26
28
|
*/
|
|
27
29
|
shadowDOMTarget?: ShadowRoot;
|
|
30
|
+
/**
|
|
31
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
32
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
33
|
+
* The devtools only pass it their own markup.
|
|
34
|
+
*/
|
|
35
|
+
trustedTypesPolicy?: {
|
|
36
|
+
createHTML: (html: string) => unknown;
|
|
37
|
+
};
|
|
28
38
|
/**
|
|
29
39
|
* Custom styles for the devtools panel
|
|
30
40
|
* @default { height: '100%', display: 'flex', flexDirection: 'column' }
|
|
@@ -54,4 +64,4 @@ interface DevtoolsPanelOptions {
|
|
|
54
64
|
*/
|
|
55
65
|
declare function ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React.ReactElement | null;
|
|
56
66
|
export { ReactQueryDevtoolsPanel as n, ReactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
|
|
57
|
-
//# sourceMappingURL=ReactQueryDevtoolsPanel-
|
|
67
|
+
//# sourceMappingURL=ReactQueryDevtoolsPanel-Bhd-Vfyo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtoolsPanel-Bhd-Vfyo.d.ts","names":[],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;EAIf,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;;;;EAQpC,QAAQ,MAAM;;;;EAKd;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,wBACd,OAAO,uBACN,MAAM"}
|
|
@@ -17,14 +17,24 @@ interface DevtoolsPanelOptions {
|
|
|
17
17
|
*/
|
|
18
18
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
21
|
+
* nonce. This option does nothing.
|
|
21
22
|
*/
|
|
22
23
|
styleNonce?: string;
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
25
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
26
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
27
|
+
* they do not render in a shadow root.
|
|
26
28
|
*/
|
|
27
29
|
shadowDOMTarget?: ShadowRoot;
|
|
30
|
+
/**
|
|
31
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
32
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
33
|
+
* The devtools only pass it their own markup.
|
|
34
|
+
*/
|
|
35
|
+
trustedTypesPolicy?: {
|
|
36
|
+
createHTML: (html: string) => unknown;
|
|
37
|
+
};
|
|
28
38
|
/**
|
|
29
39
|
* Custom styles for the devtools panel
|
|
30
40
|
* @default { height: '100%', display: 'flex', flexDirection: 'column' }
|
|
@@ -54,4 +64,4 @@ interface DevtoolsPanelOptions {
|
|
|
54
64
|
*/
|
|
55
65
|
declare function ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React.ReactElement | null;
|
|
56
66
|
export { ReactQueryDevtoolsPanel as n, ReactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
|
|
57
|
-
//# sourceMappingURL=ReactQueryDevtoolsPanel-
|
|
67
|
+
//# sourceMappingURL=ReactQueryDevtoolsPanel-DARDnqeb.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtoolsPanel-DARDnqeb.d.cts","names":[],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;EAIf,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;;;;EAQpC,QAAQ,MAAM;;;;EAKd;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,wBACd,OAAO,uBACN,MAAM"}
|
|
@@ -15,7 +15,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
15
15
|
function ReactQueryDevtoolsPanel(props) {
|
|
16
16
|
const queryClient = (0, _tanstack_react_query.useQueryClient)(props.client);
|
|
17
17
|
const ref = react.useRef(null);
|
|
18
|
-
const { errorTypes,
|
|
18
|
+
const { errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
19
19
|
const [devtools] = react.useState(() => new _tanstack_query_devtools.TanstackQueryDevtoolsPanel({
|
|
20
20
|
client: queryClient,
|
|
21
21
|
queryFlavor: "React Query",
|
|
@@ -25,8 +25,8 @@ function ReactQueryDevtoolsPanel(props) {
|
|
|
25
25
|
position: "bottom",
|
|
26
26
|
initialIsOpen: true,
|
|
27
27
|
errorTypes,
|
|
28
|
-
styleNonce,
|
|
29
28
|
shadowDOMTarget,
|
|
29
|
+
trustedTypesPolicy,
|
|
30
30
|
onClose: props.onClose,
|
|
31
31
|
hideDisabledQueries,
|
|
32
32
|
theme
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtoolsPanel.cjs","names":["useQueryClient","React","TanstackQueryDevtoolsPanel"],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtoolsPanel`, which renders the devtools panel inline.\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 *
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtoolsPanel.cjs","names":["useQueryClient","React","TanstackQueryDevtoolsPanel"],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtoolsPanel`, which renders the devtools panel inline.\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 * @deprecated The devtools no longer add a `<style>` element, so they need no\n * nonce. This option does nothing.\n */\n styleNonce?: string\n /**\n * The shadow root to add the devtools styles to. By default, the styles are\n * added to the shadow root the devtools render in, or to the document when\n * they do not render in a shadow root.\n */\n shadowDOMTarget?: ShadowRoot\n /**\n * The Trusted Types policy the devtools use to create their HTML templates.\n * Pass one when your page enforces `require-trusted-types-for 'script'`.\n * The devtools only pass it their own markup.\n */\n trustedTypesPolicy?: { createHTML: (html: string) => unknown }\n\n /**\n * Custom styles for the devtools panel\n * @default { height: '100%', display: 'flex', flexDirection: 'column' }\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?: () => void\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 * This overrides the theme selected in the devtools Settings menu. When omitted, the\n * selected theme is used, or `'system'` if none is selected.\n */\n theme?: Theme\n}\n\n/**\n * Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.\n * @param props - The devtools panel options.\n * @returns The element the devtools panel is mounted in.\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 shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n } = props\n const [devtools] = React.useState(\n () =>\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 shadowDOMTarget,\n trustedTypesPolicy,\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={{\n height: '100%',\n display: 'flex',\n flexDirection: 'column',\n ...props.style,\n }}\n className=\"tsqd-parent-container\"\n ref={ref}\n ></div>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;AAkEA,SAAgB,wBACd,OAC2B;CAC3B,MAAM,eAAA,GAAcA,sBAAAA,eAAAA,CAAe,MAAM,MAAM;CAC/C,MAAM,MAAMC,MAAM,OAAuB,IAAI;CAC7C,MAAM,EACJ,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,YAAYA,MAAM,eAErB,IAAIC,yBAAAA,2BAA2B;EAC7B,QAAQ;EACR,aAAa;EACb,SAAS;EACT,eAAA,sBAAA;EACA,gBAAgB;EAChB,UAAU;EACV,eAAe;EACf;EACA;EACA;EACA,SAAS,MAAM;EACf;EACA;CACF,CAAC,CACL;CAEA,MAAM,gBAAgB;EACpB,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,MAAM,gBAAgB;EACpB,SAAS,WAAW,MAAM,kBAAkB,CAAC,EAAE;CACjD,GAAG,CAAC,MAAM,SAAS,QAAQ,CAAC;CAE5B,MAAM,gBAAgB;EACpB,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,MAAM,gBAAgB;EACpB,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,MAAM,gBAAgB;EACpB,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAG5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EACE,OAAO;GACL,QAAQ;GACR,SAAS;GACT,eAAe;GACf,GAAG,MAAM;EACX;EACA,WAAU;EACL;CACD,CAAA;AAEV"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./ReactQueryDevtoolsPanel-
|
|
1
|
+
import { n as ReactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./ReactQueryDevtoolsPanel-DARDnqeb.cjs";
|
|
2
2
|
export { DevtoolsPanelOptions, ReactQueryDevtoolsPanel };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./ReactQueryDevtoolsPanel-
|
|
1
|
+
import { n as ReactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./ReactQueryDevtoolsPanel-Bhd-Vfyo.js";
|
|
2
2
|
export { DevtoolsPanelOptions, ReactQueryDevtoolsPanel };
|
|
@@ -12,7 +12,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
12
12
|
function ReactQueryDevtoolsPanel(props) {
|
|
13
13
|
const queryClient = useQueryClient(props.client);
|
|
14
14
|
const ref = React.useRef(null);
|
|
15
|
-
const { errorTypes,
|
|
15
|
+
const { errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
16
16
|
const [devtools] = React.useState(() => new TanstackQueryDevtoolsPanel({
|
|
17
17
|
client: queryClient,
|
|
18
18
|
queryFlavor: "React Query",
|
|
@@ -22,8 +22,8 @@ function ReactQueryDevtoolsPanel(props) {
|
|
|
22
22
|
position: "bottom",
|
|
23
23
|
initialIsOpen: true,
|
|
24
24
|
errorTypes,
|
|
25
|
-
styleNonce,
|
|
26
25
|
shadowDOMTarget,
|
|
26
|
+
trustedTypesPolicy,
|
|
27
27
|
onClose: props.onClose,
|
|
28
28
|
hideDisabledQueries,
|
|
29
29
|
theme
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtoolsPanel.js","names":[],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtoolsPanel`, which renders the devtools panel inline.\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 *
|
|
1
|
+
{"version":3,"file":"ReactQueryDevtoolsPanel.js","names":[],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"sourcesContent":["'use client'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport * as React from 'react'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\n/**\n * The props of `ReactQueryDevtoolsPanel`, which renders the devtools panel inline.\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 * @deprecated The devtools no longer add a `<style>` element, so they need no\n * nonce. This option does nothing.\n */\n styleNonce?: string\n /**\n * The shadow root to add the devtools styles to. By default, the styles are\n * added to the shadow root the devtools render in, or to the document when\n * they do not render in a shadow root.\n */\n shadowDOMTarget?: ShadowRoot\n /**\n * The Trusted Types policy the devtools use to create their HTML templates.\n * Pass one when your page enforces `require-trusted-types-for 'script'`.\n * The devtools only pass it their own markup.\n */\n trustedTypesPolicy?: { createHTML: (html: string) => unknown }\n\n /**\n * Custom styles for the devtools panel\n * @default { height: '100%', display: 'flex', flexDirection: 'column' }\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?: () => void\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 * This overrides the theme selected in the devtools Settings menu. When omitted, the\n * selected theme is used, or `'system'` if none is selected.\n */\n theme?: Theme\n}\n\n/**\n * Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.\n * @param props - The devtools panel options.\n * @returns The element the devtools panel is mounted in.\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 shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n } = props\n const [devtools] = React.useState(\n () =>\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 shadowDOMTarget,\n trustedTypesPolicy,\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={{\n height: '100%',\n display: 'flex',\n flexDirection: 'column',\n ...props.style,\n }}\n className=\"tsqd-parent-container\"\n ref={ref}\n ></div>\n )\n}\n"],"mappings":";;;;;;;;;;;AAkEA,SAAgB,wBACd,OAC2B;CAC3B,MAAM,cAAc,eAAe,MAAM,MAAM;CAC/C,MAAM,MAAM,MAAM,OAAuB,IAAI;CAC7C,MAAM,EACJ,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,YAAY,MAAM,eAErB,IAAI,2BAA2B;EAC7B,QAAQ;EACR,aAAa;EACb,SAAS;EACT;EACA,gBAAgB;EAChB,UAAU;EACV,eAAe;EACf;EACA;EACA;EACA,SAAS,MAAM;EACf;EACA;CACF,CAAC,CACL;CAEA,MAAM,gBAAgB;EACpB,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,MAAM,gBAAgB;EACpB,SAAS,WAAW,MAAM,kBAAkB,CAAC,EAAE;CACjD,GAAG,CAAC,MAAM,SAAS,QAAQ,CAAC;CAE5B,MAAM,gBAAgB;EACpB,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,MAAM,gBAAgB;EACpB,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,MAAM,gBAAgB;EACpB,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAG5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OACE,oBAAC,OAAD;EACE,OAAO;GACL,QAAQ;GACR,SAAS;GACT,eAAe;GACf,GAAG,MAAM;EACX;EACA,WAAU;EACL;CACD,CAAA;AAEV"}
|
package/build/modern/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-
|
|
2
|
-
import { r as ReactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./ReactQueryDevtoolsPanel-
|
|
1
|
+
import { r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-Dn-NQPoc.cjs";
|
|
2
|
+
import { r as ReactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./ReactQueryDevtoolsPanel-DARDnqeb.cjs";
|
|
3
3
|
export declare const ReactQueryDevtools: (typeof ReactQueryDevtools_d_exports)['ReactQueryDevtools'];
|
|
4
4
|
export declare const ReactQueryDevtoolsPanel: (typeof ReactQueryDevtoolsPanel_d_exports)['ReactQueryDevtoolsPanel'];
|
|
5
5
|
/**
|
package/build/modern/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-
|
|
2
|
-
import { r as ReactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./ReactQueryDevtoolsPanel-
|
|
1
|
+
import { r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-DoZGY0HJ.js";
|
|
2
|
+
import { r as ReactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./ReactQueryDevtoolsPanel-Bhd-Vfyo.js";
|
|
3
3
|
export declare const ReactQueryDevtools: (typeof ReactQueryDevtools_d_exports)['ReactQueryDevtools'];
|
|
4
4
|
export declare const ReactQueryDevtoolsPanel: (typeof ReactQueryDevtoolsPanel_d_exports)['ReactQueryDevtoolsPanel'];
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ReactQueryDevtools$1, r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-
|
|
2
|
-
import { n as ReactQueryDevtoolsPanel$1, r as ReactQueryDevtoolsPanel_d_exports } from "./ReactQueryDevtoolsPanel-
|
|
1
|
+
import { n as ReactQueryDevtools$1, r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-Dn-NQPoc.cjs";
|
|
2
|
+
import { n as ReactQueryDevtoolsPanel$1, r as ReactQueryDevtoolsPanel_d_exports } from "./ReactQueryDevtoolsPanel-DARDnqeb.cjs";
|
|
3
3
|
export declare const ReactQueryDevtools: typeof ReactQueryDevtools$1;
|
|
4
4
|
export declare const ReactQueryDevtoolsPanel: typeof ReactQueryDevtoolsPanel$1;
|
|
5
5
|
//# sourceMappingURL=production.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ReactQueryDevtools$1, r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-
|
|
2
|
-
import { n as ReactQueryDevtoolsPanel$1, r as ReactQueryDevtoolsPanel_d_exports } from "./ReactQueryDevtoolsPanel-
|
|
1
|
+
import { n as ReactQueryDevtools$1, r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-DoZGY0HJ.js";
|
|
2
|
+
import { n as ReactQueryDevtoolsPanel$1, r as ReactQueryDevtoolsPanel_d_exports } from "./ReactQueryDevtoolsPanel-Bhd-Vfyo.js";
|
|
3
3
|
export declare const ReactQueryDevtools: typeof ReactQueryDevtools$1;
|
|
4
4
|
export declare const ReactQueryDevtoolsPanel: typeof ReactQueryDevtoolsPanel$1;
|
|
5
5
|
//# sourceMappingURL=production.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-query-devtools",
|
|
3
|
-
"version": "5.108.
|
|
3
|
+
"version": "5.108.2",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack/react-query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"!src/__tests__"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@tanstack/query-devtools": "5.108.
|
|
62
|
+
"@tanstack/query-devtools": "5.108.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@eslint-react/eslint-plugin": "^5.28.8",
|
|
66
|
-
"@tanstack/react-query": "5.108.
|
|
66
|
+
"@tanstack/react-query": "5.108.2",
|
|
67
67
|
"@testing-library/react": "^16.1.0",
|
|
68
68
|
"@types/react": "^19.3.0",
|
|
69
69
|
"@vitejs/plugin-react": "^6.2.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"typescript": "6.0.3"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@tanstack/react-query": "^5.108.
|
|
75
|
+
"@tanstack/react-query": "^5.108.2",
|
|
76
76
|
"@types/react": "^18 || ^19",
|
|
77
77
|
"react": "^18 || ^19"
|
|
78
78
|
},
|
|
@@ -40,14 +40,22 @@ export interface DevtoolsOptions {
|
|
|
40
40
|
*/
|
|
41
41
|
errorTypes?: Array<DevtoolsErrorType>
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
44
|
+
* nonce. This option does nothing.
|
|
44
45
|
*/
|
|
45
46
|
styleNonce?: string
|
|
46
47
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
48
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
49
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
50
|
+
* they do not render in a shadow root.
|
|
49
51
|
*/
|
|
50
52
|
shadowDOMTarget?: ShadowRoot
|
|
53
|
+
/**
|
|
54
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
55
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
56
|
+
* The devtools only pass it their own markup.
|
|
57
|
+
*/
|
|
58
|
+
trustedTypesPolicy?: { createHTML: (html: string) => unknown }
|
|
51
59
|
/**
|
|
52
60
|
* Set this to true to hide disabled queries from the devtools panel.
|
|
53
61
|
*/
|
|
@@ -76,8 +84,8 @@ export function ReactQueryDevtools(
|
|
|
76
84
|
position,
|
|
77
85
|
initialIsOpen,
|
|
78
86
|
errorTypes,
|
|
79
|
-
styleNonce,
|
|
80
87
|
shadowDOMTarget,
|
|
88
|
+
trustedTypesPolicy,
|
|
81
89
|
hideDisabledQueries,
|
|
82
90
|
theme,
|
|
83
91
|
} = props
|
|
@@ -92,8 +100,8 @@ export function ReactQueryDevtools(
|
|
|
92
100
|
position,
|
|
93
101
|
initialIsOpen,
|
|
94
102
|
errorTypes,
|
|
95
|
-
styleNonce,
|
|
96
103
|
shadowDOMTarget,
|
|
104
|
+
trustedTypesPolicy,
|
|
97
105
|
hideDisabledQueries,
|
|
98
106
|
theme,
|
|
99
107
|
}),
|
|
@@ -18,14 +18,22 @@ export interface DevtoolsPanelOptions {
|
|
|
18
18
|
*/
|
|
19
19
|
errorTypes?: Array<DevtoolsErrorType>
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
22
|
+
* nonce. This option does nothing.
|
|
22
23
|
*/
|
|
23
24
|
styleNonce?: string
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
26
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
27
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
28
|
+
* they do not render in a shadow root.
|
|
27
29
|
*/
|
|
28
30
|
shadowDOMTarget?: ShadowRoot
|
|
31
|
+
/**
|
|
32
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
33
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
34
|
+
* The devtools only pass it their own markup.
|
|
35
|
+
*/
|
|
36
|
+
trustedTypesPolicy?: { createHTML: (html: string) => unknown }
|
|
29
37
|
|
|
30
38
|
/**
|
|
31
39
|
* Custom styles for the devtools panel
|
|
@@ -63,8 +71,8 @@ export function ReactQueryDevtoolsPanel(
|
|
|
63
71
|
const ref = React.useRef<HTMLDivElement>(null)
|
|
64
72
|
const {
|
|
65
73
|
errorTypes,
|
|
66
|
-
styleNonce,
|
|
67
74
|
shadowDOMTarget,
|
|
75
|
+
trustedTypesPolicy,
|
|
68
76
|
hideDisabledQueries,
|
|
69
77
|
theme,
|
|
70
78
|
} = props
|
|
@@ -79,8 +87,8 @@ export function ReactQueryDevtoolsPanel(
|
|
|
79
87
|
position: 'bottom',
|
|
80
88
|
initialIsOpen: true,
|
|
81
89
|
errorTypes,
|
|
82
|
-
styleNonce,
|
|
83
90
|
shadowDOMTarget,
|
|
91
|
+
trustedTypesPolicy,
|
|
84
92
|
onClose: props.onClose,
|
|
85
93
|
hideDisabledQueries,
|
|
86
94
|
theme,
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtools-W6vzeify.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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtoolsPanel-6sWtUKpS.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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtoolsPanel-CNrIoVcr.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 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtools-W6vzeify.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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtoolsPanel-6sWtUKpS.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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryDevtoolsPanel-CNrIoVcr.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"}
|