@tanstack/preact-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/{PreactQueryDevtools-BZb79hrw.d.ts → PreactQueryDevtools-C8tkqnjh.d.cts} +14 -6
- package/build/legacy/PreactQueryDevtools-C8tkqnjh.d.cts.map +1 -0
- package/build/legacy/{PreactQueryDevtools-BZb79hrw.d.cts → PreactQueryDevtools-C8tkqnjh.d.ts} +14 -6
- package/build/legacy/PreactQueryDevtools-C8tkqnjh.d.ts.map +1 -0
- package/build/legacy/PreactQueryDevtools.cjs +2 -2
- package/build/legacy/PreactQueryDevtools.cjs.map +1 -1
- package/build/legacy/PreactQueryDevtools.d.cts +1 -1
- package/build/legacy/PreactQueryDevtools.d.ts +1 -1
- package/build/legacy/PreactQueryDevtools.js +2 -2
- package/build/legacy/PreactQueryDevtools.js.map +1 -1
- package/build/{modern/PreactQueryDevtoolsPanel-B0phEg4g.d.ts → legacy/PreactQueryDevtoolsPanel-Cgfk3JgW.d.cts} +14 -6
- package/build/legacy/PreactQueryDevtoolsPanel-Cgfk3JgW.d.cts.map +1 -0
- package/build/{modern/PreactQueryDevtoolsPanel-B0phEg4g.d.cts → legacy/PreactQueryDevtoolsPanel-Cgfk3JgW.d.ts} +14 -6
- package/build/legacy/PreactQueryDevtoolsPanel-Cgfk3JgW.d.ts.map +1 -0
- package/build/legacy/PreactQueryDevtoolsPanel.cjs +2 -2
- package/build/legacy/PreactQueryDevtoolsPanel.cjs.map +1 -1
- package/build/legacy/PreactQueryDevtoolsPanel.d.cts +1 -1
- package/build/legacy/PreactQueryDevtoolsPanel.d.ts +1 -1
- package/build/legacy/PreactQueryDevtoolsPanel.js +2 -2
- package/build/legacy/PreactQueryDevtoolsPanel.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/{PreactQueryDevtools-BZb79hrw.d.ts → PreactQueryDevtools-C8tkqnjh.d.cts} +14 -6
- package/build/modern/PreactQueryDevtools-C8tkqnjh.d.cts.map +1 -0
- package/build/modern/{PreactQueryDevtools-BZb79hrw.d.cts → PreactQueryDevtools-C8tkqnjh.d.ts} +14 -6
- package/build/modern/PreactQueryDevtools-C8tkqnjh.d.ts.map +1 -0
- package/build/modern/PreactQueryDevtools.cjs +2 -2
- package/build/modern/PreactQueryDevtools.cjs.map +1 -1
- package/build/modern/PreactQueryDevtools.d.cts +1 -1
- package/build/modern/PreactQueryDevtools.d.ts +1 -1
- package/build/modern/PreactQueryDevtools.js +2 -2
- package/build/modern/PreactQueryDevtools.js.map +1 -1
- package/build/{legacy/PreactQueryDevtoolsPanel-B0phEg4g.d.ts → modern/PreactQueryDevtoolsPanel-Cgfk3JgW.d.cts} +14 -6
- package/build/modern/PreactQueryDevtoolsPanel-Cgfk3JgW.d.cts.map +1 -0
- package/build/{legacy/PreactQueryDevtoolsPanel-B0phEg4g.d.cts → modern/PreactQueryDevtoolsPanel-Cgfk3JgW.d.ts} +14 -6
- package/build/modern/PreactQueryDevtoolsPanel-Cgfk3JgW.d.ts.map +1 -0
- package/build/modern/PreactQueryDevtoolsPanel.cjs +2 -2
- package/build/modern/PreactQueryDevtoolsPanel.cjs.map +1 -1
- package/build/modern/PreactQueryDevtoolsPanel.d.cts +1 -1
- package/build/modern/PreactQueryDevtoolsPanel.d.ts +1 -1
- package/build/modern/PreactQueryDevtoolsPanel.js +2 -2
- package/build/modern/PreactQueryDevtoolsPanel.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/PreactQueryDevtools.tsx +13 -7
- package/src/PreactQueryDevtoolsPanel.tsx +13 -7
- package/build/legacy/PreactQueryDevtools-BZb79hrw.d.cts.map +0 -1
- package/build/legacy/PreactQueryDevtools-BZb79hrw.d.ts.map +0 -1
- package/build/legacy/PreactQueryDevtoolsPanel-B0phEg4g.d.cts.map +0 -1
- package/build/legacy/PreactQueryDevtoolsPanel-B0phEg4g.d.ts.map +0 -1
- package/build/modern/PreactQueryDevtools-BZb79hrw.d.cts.map +0 -1
- package/build/modern/PreactQueryDevtools-BZb79hrw.d.ts.map +0 -1
- package/build/modern/PreactQueryDevtoolsPanel-B0phEg4g.d.cts.map +0 -1
- package/build/modern/PreactQueryDevtoolsPanel-B0phEg4g.d.ts.map +0 -1
package/build/legacy/{PreactQueryDevtools-BZb79hrw.d.ts → PreactQueryDevtools-C8tkqnjh.d.cts}
RENAMED
|
@@ -35,16 +35,24 @@ interface DevtoolsOptions {
|
|
|
35
35
|
*/
|
|
36
36
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* nonce to allow inline styles.
|
|
38
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
39
|
+
* nonce. This option does nothing.
|
|
41
40
|
*/
|
|
42
41
|
styleNonce?: string;
|
|
43
42
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
43
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
44
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
45
|
+
* they do not render in a shadow root.
|
|
46
46
|
*/
|
|
47
47
|
shadowDOMTarget?: ShadowRoot;
|
|
48
|
+
/**
|
|
49
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
50
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
51
|
+
* The devtools only pass it their own markup.
|
|
52
|
+
*/
|
|
53
|
+
trustedTypesPolicy?: {
|
|
54
|
+
createHTML: (html: string) => unknown;
|
|
55
|
+
};
|
|
48
56
|
/**
|
|
49
57
|
* Use this to hide disabled queries from the devtools panel.
|
|
50
58
|
*/
|
|
@@ -64,4 +72,4 @@ interface DevtoolsOptions {
|
|
|
64
72
|
*/
|
|
65
73
|
declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
|
|
66
74
|
export { PreactQueryDevtools as n, PreactQueryDevtools_d_exports as r, DevtoolsOptions as t };
|
|
67
|
-
//# sourceMappingURL=PreactQueryDevtools-
|
|
75
|
+
//# sourceMappingURL=PreactQueryDevtools-C8tkqnjh.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtools-C8tkqnjh.d.cts","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;;EAKX,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;EAIpC;;;;;;EAMA,QAAQ;;;;;;;;iBASM,oBAAoB,OAAO,kBAAkB"}
|
package/build/legacy/{PreactQueryDevtools-BZb79hrw.d.cts → PreactQueryDevtools-C8tkqnjh.d.ts}
RENAMED
|
@@ -35,16 +35,24 @@ interface DevtoolsOptions {
|
|
|
35
35
|
*/
|
|
36
36
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* nonce to allow inline styles.
|
|
38
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
39
|
+
* nonce. This option does nothing.
|
|
41
40
|
*/
|
|
42
41
|
styleNonce?: string;
|
|
43
42
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
43
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
44
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
45
|
+
* they do not render in a shadow root.
|
|
46
46
|
*/
|
|
47
47
|
shadowDOMTarget?: ShadowRoot;
|
|
48
|
+
/**
|
|
49
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
50
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
51
|
+
* The devtools only pass it their own markup.
|
|
52
|
+
*/
|
|
53
|
+
trustedTypesPolicy?: {
|
|
54
|
+
createHTML: (html: string) => unknown;
|
|
55
|
+
};
|
|
48
56
|
/**
|
|
49
57
|
* Use this to hide disabled queries from the devtools panel.
|
|
50
58
|
*/
|
|
@@ -64,4 +72,4 @@ interface DevtoolsOptions {
|
|
|
64
72
|
*/
|
|
65
73
|
declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
|
|
66
74
|
export { PreactQueryDevtools as n, PreactQueryDevtools_d_exports as r, DevtoolsOptions as t };
|
|
67
|
-
//# sourceMappingURL=PreactQueryDevtools-
|
|
75
|
+
//# sourceMappingURL=PreactQueryDevtools-C8tkqnjh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtools-C8tkqnjh.d.ts","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;;EAKX,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;EAIpC;;;;;;EAMA,QAAQ;;;;;;;;iBASM,oBAAoB,OAAO,kBAAkB"}
|
|
@@ -13,7 +13,7 @@ let preact_jsx_runtime = require("preact/jsx-runtime");
|
|
|
13
13
|
function PreactQueryDevtools(props) {
|
|
14
14
|
const queryClient = (0, _tanstack_preact_query.useQueryClient)(props.client);
|
|
15
15
|
const ref = (0, preact_hooks.useRef)(null);
|
|
16
|
-
const { buttonPosition, position, initialIsOpen, errorTypes,
|
|
16
|
+
const { buttonPosition, position, initialIsOpen, errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
17
17
|
const [devtools] = (0, preact_hooks.useState)(() => new _tanstack_query_devtools.TanstackQueryDevtools({
|
|
18
18
|
client: queryClient,
|
|
19
19
|
queryFlavor: "Preact Query",
|
|
@@ -23,8 +23,8 @@ function PreactQueryDevtools(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":"PreactQueryDevtools.cjs","names":["useQueryClient","useRef","useState","TanstackQueryDevtools"],"sources":["../../src/PreactQueryDevtools.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtools`, 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 Preact Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Use this to provide custom error type handlers for the devtools panel.\n */\n errorTypes?: Array<DevtoolsErrorType>\n /**\n *
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtools.cjs","names":["useQueryClient","useRef","useState","TanstackQueryDevtools"],"sources":["../../src/PreactQueryDevtools.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtools`, 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 Preact Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Use this to provide custom error type handlers for the devtools panel.\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 * Use this to hide disabled queries from the devtools panel.\n */\n hideDisabledQueries?: boolean\n /**\n * Use this to set 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 PreactQueryDevtools(props: DevtoolsOptions): VNode | null {\n const queryClient = useQueryClient(props.client)\n const ref = 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] = useState(\n () =>\n new TanstackQueryDevtools({\n client: queryClient,\n queryFlavor: 'Preact 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 useEffect(() => {\n devtools.setClient(queryClient)\n }, [queryClient, devtools])\n\n useEffect(() => {\n if (buttonPosition) {\n devtools.setButtonPosition(buttonPosition)\n }\n }, [buttonPosition, devtools])\n\n useEffect(() => {\n if (position) {\n devtools.setPosition(position)\n }\n }, [position, devtools])\n\n useEffect(() => {\n devtools.setInitialIsOpen(initialIsOpen || false)\n }, [initialIsOpen, devtools])\n\n useEffect(() => {\n devtools.setErrorTypes(errorTypes || [])\n }, [errorTypes, devtools])\n\n useEffect(() => {\n devtools.setTheme(theme)\n }, [theme, devtools])\n\n useEffect(() => {\n if (ref.current) {\n devtools.mount(ref.current)\n }\n return () => {\n devtools.unmount()\n }\n }, [devtools])\n\n return <div className=\"tsqd-parent-container\" ref={ref} />\n}\n"],"mappings":";;;;;;;;;;;;AA6EA,SAAgB,oBAAoB,OAAsC;CACxE,MAAM,eAAA,GAAcA,uBAAAA,eAAAA,CAAe,MAAM,MAAM;CAC/C,MAAM,OAAA,GAAMC,aAAAA,OAAAA,CAAuB,IAAI;CACvC,MAAM,EACJ,gBACA,UACA,eACA,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,aAAA,GAAYC,aAAAA,SAAAA,OAEf,IAAIC,yBAAAA,sBAAsB;EACxB,QAAQ;EACR,aAAa;EACb,SAAS;EACT,eAAA,uBAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC,CACL;CAEA,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,IAAI,gBACF,SAAS,kBAAkB,cAAc;CAE7C,GAAG,CAAC,gBAAgB,QAAQ,CAAC;CAE7B,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,IAAI,UACF,SAAS,YAAY,QAAQ;CAEjC,GAAG,CAAC,UAAU,QAAQ,CAAC;CAEvB,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,iBAAiB,iBAAiB,KAAK;CAClD,GAAG,CAAC,eAAe,QAAQ,CAAC;CAE5B,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAE5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OAAO,iBAAA,GAAA,mBAAA,IAAA,CAAC,OAAD;EAAK,WAAU;EAA6B;CAAM,CAAA;AAC3D"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PreactQueryDevtools, t as DevtoolsOptions } from "./PreactQueryDevtools-
|
|
1
|
+
import { n as PreactQueryDevtools, t as DevtoolsOptions } from "./PreactQueryDevtools-C8tkqnjh.cjs";
|
|
2
2
|
export { DevtoolsOptions, PreactQueryDevtools };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PreactQueryDevtools, t as DevtoolsOptions } from "./PreactQueryDevtools-
|
|
1
|
+
import { n as PreactQueryDevtools, t as DevtoolsOptions } from "./PreactQueryDevtools-C8tkqnjh.js";
|
|
2
2
|
export { DevtoolsOptions, PreactQueryDevtools };
|
|
@@ -12,7 +12,7 @@ import { jsx } from "preact/jsx-runtime";
|
|
|
12
12
|
function PreactQueryDevtools(props) {
|
|
13
13
|
const queryClient = useQueryClient(props.client);
|
|
14
14
|
const ref = useRef(null);
|
|
15
|
-
const { buttonPosition, position, initialIsOpen, errorTypes,
|
|
15
|
+
const { buttonPosition, position, initialIsOpen, errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
16
16
|
const [devtools] = useState(() => new TanstackQueryDevtools({
|
|
17
17
|
client: queryClient,
|
|
18
18
|
queryFlavor: "Preact Query",
|
|
@@ -22,8 +22,8 @@ function PreactQueryDevtools(props) {
|
|
|
22
22
|
position,
|
|
23
23
|
initialIsOpen,
|
|
24
24
|
errorTypes,
|
|
25
|
-
styleNonce,
|
|
26
25
|
shadowDOMTarget,
|
|
26
|
+
trustedTypesPolicy,
|
|
27
27
|
hideDisabledQueries,
|
|
28
28
|
theme
|
|
29
29
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreactQueryDevtools.js","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtools`, 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 Preact Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Use this to provide custom error type handlers for the devtools panel.\n */\n errorTypes?: Array<DevtoolsErrorType>\n /**\n *
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtools.js","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtools`, 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 Preact Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Use this to provide custom error type handlers for the devtools panel.\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 * Use this to hide disabled queries from the devtools panel.\n */\n hideDisabledQueries?: boolean\n /**\n * Use this to set 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 PreactQueryDevtools(props: DevtoolsOptions): VNode | null {\n const queryClient = useQueryClient(props.client)\n const ref = 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] = useState(\n () =>\n new TanstackQueryDevtools({\n client: queryClient,\n queryFlavor: 'Preact 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 useEffect(() => {\n devtools.setClient(queryClient)\n }, [queryClient, devtools])\n\n useEffect(() => {\n if (buttonPosition) {\n devtools.setButtonPosition(buttonPosition)\n }\n }, [buttonPosition, devtools])\n\n useEffect(() => {\n if (position) {\n devtools.setPosition(position)\n }\n }, [position, devtools])\n\n useEffect(() => {\n devtools.setInitialIsOpen(initialIsOpen || false)\n }, [initialIsOpen, devtools])\n\n useEffect(() => {\n devtools.setErrorTypes(errorTypes || [])\n }, [errorTypes, devtools])\n\n useEffect(() => {\n devtools.setTheme(theme)\n }, [theme, devtools])\n\n useEffect(() => {\n if (ref.current) {\n devtools.mount(ref.current)\n }\n return () => {\n devtools.unmount()\n }\n }, [devtools])\n\n return <div className=\"tsqd-parent-container\" ref={ref} />\n}\n"],"mappings":";;;;;;;;;;;AA6EA,SAAgB,oBAAoB,OAAsC;CACxE,MAAM,cAAc,eAAe,MAAM,MAAM;CAC/C,MAAM,MAAM,OAAuB,IAAI;CACvC,MAAM,EACJ,gBACA,UACA,eACA,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,YAAY,eAEf,IAAI,sBAAsB;EACxB,QAAQ;EACR,aAAa;EACb,SAAS;EACT;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC,CACL;CAEA,gBAAgB;EACd,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,gBAAgB;EACd,IAAI,gBACF,SAAS,kBAAkB,cAAc;CAE7C,GAAG,CAAC,gBAAgB,QAAQ,CAAC;CAE7B,gBAAgB;EACd,IAAI,UACF,SAAS,YAAY,QAAQ;CAEjC,GAAG,CAAC,UAAU,QAAQ,CAAC;CAEvB,gBAAgB;EACd,SAAS,iBAAiB,iBAAiB,KAAK;CAClD,GAAG,CAAC,eAAe,QAAQ,CAAC;CAE5B,gBAAgB;EACd,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,gBAAgB;EACd,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,gBAAgB;EACd,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAE5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OAAO,oBAAC,OAAD;EAAK,WAAU;EAA6B;CAAM,CAAA;AAC3D"}
|
|
@@ -18,16 +18,24 @@ interface DevtoolsPanelOptions {
|
|
|
18
18
|
*/
|
|
19
19
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* nonce to allow inline styles.
|
|
21
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
22
|
+
* nonce. This option does nothing.
|
|
24
23
|
*/
|
|
25
24
|
styleNonce?: string;
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
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.
|
|
29
29
|
*/
|
|
30
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?: {
|
|
37
|
+
createHTML: (html: string) => unknown;
|
|
38
|
+
};
|
|
31
39
|
/**
|
|
32
40
|
* Custom styles for the devtools panel container.
|
|
33
41
|
* @default { height: '100%', display: 'flex', flexDirection: 'column' }
|
|
@@ -57,4 +65,4 @@ interface DevtoolsPanelOptions {
|
|
|
57
65
|
*/
|
|
58
66
|
declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
|
|
59
67
|
export { PreactQueryDevtoolsPanel as n, PreactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
|
|
60
|
-
//# sourceMappingURL=PreactQueryDevtoolsPanel-
|
|
68
|
+
//# sourceMappingURL=PreactQueryDevtoolsPanel-Cgfk3JgW.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtoolsPanel-Cgfk3JgW.d.cts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;;;;EAOpC,QAAQ;;;;EAIR;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,yBACd,OAAO,uBACN"}
|
|
@@ -18,16 +18,24 @@ interface DevtoolsPanelOptions {
|
|
|
18
18
|
*/
|
|
19
19
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* nonce to allow inline styles.
|
|
21
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
22
|
+
* nonce. This option does nothing.
|
|
24
23
|
*/
|
|
25
24
|
styleNonce?: string;
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
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.
|
|
29
29
|
*/
|
|
30
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?: {
|
|
37
|
+
createHTML: (html: string) => unknown;
|
|
38
|
+
};
|
|
31
39
|
/**
|
|
32
40
|
* Custom styles for the devtools panel container.
|
|
33
41
|
* @default { height: '100%', display: 'flex', flexDirection: 'column' }
|
|
@@ -57,4 +65,4 @@ interface DevtoolsPanelOptions {
|
|
|
57
65
|
*/
|
|
58
66
|
declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
|
|
59
67
|
export { PreactQueryDevtoolsPanel as n, PreactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
|
|
60
|
-
//# sourceMappingURL=PreactQueryDevtoolsPanel-
|
|
68
|
+
//# sourceMappingURL=PreactQueryDevtoolsPanel-Cgfk3JgW.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtoolsPanel-Cgfk3JgW.d.ts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;;;;EAOpC,QAAQ;;;;EAIR;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,yBACd,OAAO,uBACN"}
|
|
@@ -12,7 +12,7 @@ let preact_jsx_runtime = require("preact/jsx-runtime");
|
|
|
12
12
|
function PreactQueryDevtoolsPanel(props) {
|
|
13
13
|
const queryClient = (0, _tanstack_preact_query.useQueryClient)(props.client);
|
|
14
14
|
const ref = (0, preact_hooks.useRef)(null);
|
|
15
|
-
const { errorTypes,
|
|
15
|
+
const { errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
16
16
|
const [devtools] = (0, preact_hooks.useState)(() => new _tanstack_query_devtools.TanstackQueryDevtoolsPanel({
|
|
17
17
|
client: queryClient,
|
|
18
18
|
queryFlavor: "Preact Query",
|
|
@@ -22,8 +22,8 @@ function PreactQueryDevtoolsPanel(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":"PreactQueryDevtoolsPanel.cjs","names":["useQueryClient","useRef","useState","TanstackQueryDevtoolsPanel"],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { CSSProperties, VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.\n */\nexport interface DevtoolsPanelOptions {\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Custom error types to be shown in the devtools.\n */\n errorTypes?: Array<DevtoolsErrorType>\n /**\n *
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtoolsPanel.cjs","names":["useQueryClient","useRef","useState","TanstackQueryDevtoolsPanel"],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { CSSProperties, VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.\n */\nexport interface DevtoolsPanelOptions {\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Custom error types to 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 * Custom styles for the devtools panel container.\n * @default { height: '100%', display: 'flex', flexDirection: 'column' }\n * @example { height: '100%' }\n * @example { height: '100%', width: '100%' }\n */\n style?: CSSProperties\n /**\n * Callback function when the devtools panel is closed.\n */\n onClose?: () => unknown\n /**\n * Use this to hide disabled queries from the devtools panel.\n */\n hideDisabledQueries?: boolean\n /**\n * Use this to set 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 PreactQueryDevtoolsPanel(\n props: DevtoolsPanelOptions,\n): VNode | null {\n const queryClient = useQueryClient(props.client)\n const ref = useRef<HTMLDivElement>(null)\n const {\n errorTypes,\n shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n } = props\n const [devtools] = useState(\n () =>\n new TanstackQueryDevtoolsPanel({\n client: queryClient,\n queryFlavor: 'Preact 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 useEffect(() => {\n devtools.setClient(queryClient)\n }, [queryClient, devtools])\n\n useEffect(() => {\n devtools.setOnClose(props.onClose ?? (() => {}))\n }, [props.onClose, devtools])\n\n useEffect(() => {\n devtools.setErrorTypes(errorTypes || [])\n }, [errorTypes, devtools])\n\n useEffect(() => {\n devtools.setTheme(theme)\n }, [theme, devtools])\n\n useEffect(() => {\n if (ref.current) {\n devtools.mount(ref.current)\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 />\n )\n}\n"],"mappings":";;;;;;;;;;;AAiEA,SAAgB,yBACd,OACc;CACd,MAAM,eAAA,GAAcA,uBAAAA,eAAAA,CAAe,MAAM,MAAM;CAC/C,MAAM,OAAA,GAAMC,aAAAA,OAAAA,CAAuB,IAAI;CACvC,MAAM,EACJ,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,aAAA,GAAYC,aAAAA,SAAAA,OAEf,IAAIC,yBAAAA,2BAA2B;EAC7B,QAAQ;EACR,aAAa;EACb,SAAS;EACT,eAAA,uBAAA;EACA,gBAAgB;EAChB,UAAU;EACV,eAAe;EACf;EACA;EACA;EACA,SAAS,MAAM;EACf;EACA;CACF,CAAC,CACL;CAEA,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,WAAW,MAAM,kBAAkB,CAAC,EAAE;CACjD,GAAG,CAAC,MAAM,SAAS,QAAQ,CAAC;CAE5B,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAE5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OACE,iBAAA,GAAA,mBAAA,IAAA,CAAC,OAAD;EACE,OAAO;GACL,QAAQ;GACR,SAAS;GACT,eAAe;GACf,GAAG,MAAM;EACX;EACA,WAAU;EACL;CACN,CAAA;AAEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PreactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./PreactQueryDevtoolsPanel-
|
|
1
|
+
import { n as PreactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./PreactQueryDevtoolsPanel-Cgfk3JgW.cjs";
|
|
2
2
|
export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PreactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./PreactQueryDevtoolsPanel-
|
|
1
|
+
import { n as PreactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./PreactQueryDevtoolsPanel-Cgfk3JgW.js";
|
|
2
2
|
export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
|
|
@@ -11,7 +11,7 @@ import { jsx } from "preact/jsx-runtime";
|
|
|
11
11
|
function PreactQueryDevtoolsPanel(props) {
|
|
12
12
|
const queryClient = useQueryClient(props.client);
|
|
13
13
|
const ref = useRef(null);
|
|
14
|
-
const { errorTypes,
|
|
14
|
+
const { errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
15
15
|
const [devtools] = useState(() => new TanstackQueryDevtoolsPanel({
|
|
16
16
|
client: queryClient,
|
|
17
17
|
queryFlavor: "Preact Query",
|
|
@@ -21,8 +21,8 @@ function PreactQueryDevtoolsPanel(props) {
|
|
|
21
21
|
position: "bottom",
|
|
22
22
|
initialIsOpen: true,
|
|
23
23
|
errorTypes,
|
|
24
|
-
styleNonce,
|
|
25
24
|
shadowDOMTarget,
|
|
25
|
+
trustedTypesPolicy,
|
|
26
26
|
onClose: props.onClose,
|
|
27
27
|
hideDisabledQueries,
|
|
28
28
|
theme
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreactQueryDevtoolsPanel.js","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { CSSProperties, VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.\n */\nexport interface DevtoolsPanelOptions {\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Custom error types to be shown in the devtools.\n */\n errorTypes?: Array<DevtoolsErrorType>\n /**\n *
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtoolsPanel.js","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { CSSProperties, VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.\n */\nexport interface DevtoolsPanelOptions {\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Custom error types to 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 * Custom styles for the devtools panel container.\n * @default { height: '100%', display: 'flex', flexDirection: 'column' }\n * @example { height: '100%' }\n * @example { height: '100%', width: '100%' }\n */\n style?: CSSProperties\n /**\n * Callback function when the devtools panel is closed.\n */\n onClose?: () => unknown\n /**\n * Use this to hide disabled queries from the devtools panel.\n */\n hideDisabledQueries?: boolean\n /**\n * Use this to set 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 PreactQueryDevtoolsPanel(\n props: DevtoolsPanelOptions,\n): VNode | null {\n const queryClient = useQueryClient(props.client)\n const ref = useRef<HTMLDivElement>(null)\n const {\n errorTypes,\n shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n } = props\n const [devtools] = useState(\n () =>\n new TanstackQueryDevtoolsPanel({\n client: queryClient,\n queryFlavor: 'Preact 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 useEffect(() => {\n devtools.setClient(queryClient)\n }, [queryClient, devtools])\n\n useEffect(() => {\n devtools.setOnClose(props.onClose ?? (() => {}))\n }, [props.onClose, devtools])\n\n useEffect(() => {\n devtools.setErrorTypes(errorTypes || [])\n }, [errorTypes, devtools])\n\n useEffect(() => {\n devtools.setTheme(theme)\n }, [theme, devtools])\n\n useEffect(() => {\n if (ref.current) {\n devtools.mount(ref.current)\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 />\n )\n}\n"],"mappings":";;;;;;;;;;AAiEA,SAAgB,yBACd,OACc;CACd,MAAM,cAAc,eAAe,MAAM,MAAM;CAC/C,MAAM,MAAM,OAAuB,IAAI;CACvC,MAAM,EACJ,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,YAAY,eAEf,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,gBAAgB;EACd,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,gBAAgB;EACd,SAAS,WAAW,MAAM,kBAAkB,CAAC,EAAE;CACjD,GAAG,CAAC,MAAM,SAAS,QAAQ,CAAC;CAE5B,gBAAgB;EACd,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,gBAAgB;EACd,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,gBAAgB;EACd,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAE5B,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;CACN,CAAA;AAEL"}
|
package/build/legacy/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-
|
|
2
|
-
import { r as PreactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./PreactQueryDevtoolsPanel-
|
|
1
|
+
import { r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-C8tkqnjh.cjs";
|
|
2
|
+
import { r as PreactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./PreactQueryDevtoolsPanel-Cgfk3JgW.cjs";
|
|
3
3
|
export declare const PreactQueryDevtools: (typeof PreactQueryDevtools_d_exports)['PreactQueryDevtools'];
|
|
4
4
|
export declare const PreactQueryDevtoolsPanel: (typeof PreactQueryDevtoolsPanel_d_exports)['PreactQueryDevtoolsPanel'];
|
|
5
5
|
/**
|
package/build/legacy/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-
|
|
2
|
-
import { r as PreactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./PreactQueryDevtoolsPanel-
|
|
1
|
+
import { r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-C8tkqnjh.js";
|
|
2
|
+
import { r as PreactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./PreactQueryDevtoolsPanel-Cgfk3JgW.js";
|
|
3
3
|
export declare const PreactQueryDevtools: (typeof PreactQueryDevtools_d_exports)['PreactQueryDevtools'];
|
|
4
4
|
export declare const PreactQueryDevtoolsPanel: (typeof PreactQueryDevtoolsPanel_d_exports)['PreactQueryDevtoolsPanel'];
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as PreactQueryDevtools$1, r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-
|
|
2
|
-
import { n as PreactQueryDevtoolsPanel$1, r as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel-
|
|
1
|
+
import { n as PreactQueryDevtools$1, r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-C8tkqnjh.cjs";
|
|
2
|
+
import { n as PreactQueryDevtoolsPanel$1, r as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel-Cgfk3JgW.cjs";
|
|
3
3
|
export declare const PreactQueryDevtools: typeof PreactQueryDevtools$1;
|
|
4
4
|
export declare const PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel$1;
|
|
5
5
|
//# sourceMappingURL=production.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as PreactQueryDevtools$1, r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-
|
|
2
|
-
import { n as PreactQueryDevtoolsPanel$1, r as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel-
|
|
1
|
+
import { n as PreactQueryDevtools$1, r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-C8tkqnjh.js";
|
|
2
|
+
import { n as PreactQueryDevtoolsPanel$1, r as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel-Cgfk3JgW.js";
|
|
3
3
|
export declare const PreactQueryDevtools: typeof PreactQueryDevtools$1;
|
|
4
4
|
export declare const PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel$1;
|
|
5
5
|
//# sourceMappingURL=production.d.ts.map
|
package/build/modern/{PreactQueryDevtools-BZb79hrw.d.ts → PreactQueryDevtools-C8tkqnjh.d.cts}
RENAMED
|
@@ -35,16 +35,24 @@ interface DevtoolsOptions {
|
|
|
35
35
|
*/
|
|
36
36
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* nonce to allow inline styles.
|
|
38
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
39
|
+
* nonce. This option does nothing.
|
|
41
40
|
*/
|
|
42
41
|
styleNonce?: string;
|
|
43
42
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
43
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
44
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
45
|
+
* they do not render in a shadow root.
|
|
46
46
|
*/
|
|
47
47
|
shadowDOMTarget?: ShadowRoot;
|
|
48
|
+
/**
|
|
49
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
50
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
51
|
+
* The devtools only pass it their own markup.
|
|
52
|
+
*/
|
|
53
|
+
trustedTypesPolicy?: {
|
|
54
|
+
createHTML: (html: string) => unknown;
|
|
55
|
+
};
|
|
48
56
|
/**
|
|
49
57
|
* Use this to hide disabled queries from the devtools panel.
|
|
50
58
|
*/
|
|
@@ -64,4 +72,4 @@ interface DevtoolsOptions {
|
|
|
64
72
|
*/
|
|
65
73
|
declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
|
|
66
74
|
export { PreactQueryDevtools as n, PreactQueryDevtools_d_exports as r, DevtoolsOptions as t };
|
|
67
|
-
//# sourceMappingURL=PreactQueryDevtools-
|
|
75
|
+
//# sourceMappingURL=PreactQueryDevtools-C8tkqnjh.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtools-C8tkqnjh.d.cts","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;;EAKX,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;EAIpC;;;;;;EAMA,QAAQ;;;;;;;;iBASM,oBAAoB,OAAO,kBAAkB"}
|
package/build/modern/{PreactQueryDevtools-BZb79hrw.d.cts → PreactQueryDevtools-C8tkqnjh.d.ts}
RENAMED
|
@@ -35,16 +35,24 @@ interface DevtoolsOptions {
|
|
|
35
35
|
*/
|
|
36
36
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* nonce to allow inline styles.
|
|
38
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
39
|
+
* nonce. This option does nothing.
|
|
41
40
|
*/
|
|
42
41
|
styleNonce?: string;
|
|
43
42
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
43
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
44
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
45
|
+
* they do not render in a shadow root.
|
|
46
46
|
*/
|
|
47
47
|
shadowDOMTarget?: ShadowRoot;
|
|
48
|
+
/**
|
|
49
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
50
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
51
|
+
* The devtools only pass it their own markup.
|
|
52
|
+
*/
|
|
53
|
+
trustedTypesPolicy?: {
|
|
54
|
+
createHTML: (html: string) => unknown;
|
|
55
|
+
};
|
|
48
56
|
/**
|
|
49
57
|
* Use this to hide disabled queries from the devtools panel.
|
|
50
58
|
*/
|
|
@@ -64,4 +72,4 @@ interface DevtoolsOptions {
|
|
|
64
72
|
*/
|
|
65
73
|
declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
|
|
66
74
|
export { PreactQueryDevtools as n, PreactQueryDevtools_d_exports as r, DevtoolsOptions as t };
|
|
67
|
-
//# sourceMappingURL=PreactQueryDevtools-
|
|
75
|
+
//# sourceMappingURL=PreactQueryDevtools-C8tkqnjh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtools-C8tkqnjh.d.ts","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;;EAKX,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;EAIpC;;;;;;EAMA,QAAQ;;;;;;;;iBASM,oBAAoB,OAAO,kBAAkB"}
|
|
@@ -13,7 +13,7 @@ let preact_jsx_runtime = require("preact/jsx-runtime");
|
|
|
13
13
|
function PreactQueryDevtools(props) {
|
|
14
14
|
const queryClient = (0, _tanstack_preact_query.useQueryClient)(props.client);
|
|
15
15
|
const ref = (0, preact_hooks.useRef)(null);
|
|
16
|
-
const { buttonPosition, position, initialIsOpen, errorTypes,
|
|
16
|
+
const { buttonPosition, position, initialIsOpen, errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
17
17
|
const [devtools] = (0, preact_hooks.useState)(() => new _tanstack_query_devtools.TanstackQueryDevtools({
|
|
18
18
|
client: queryClient,
|
|
19
19
|
queryFlavor: "Preact Query",
|
|
@@ -23,8 +23,8 @@ function PreactQueryDevtools(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":"PreactQueryDevtools.cjs","names":["useQueryClient","useRef","useState","TanstackQueryDevtools"],"sources":["../../src/PreactQueryDevtools.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtools`, 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 Preact Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Use this to provide custom error type handlers for the devtools panel.\n */\n errorTypes?: Array<DevtoolsErrorType>\n /**\n *
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtools.cjs","names":["useQueryClient","useRef","useState","TanstackQueryDevtools"],"sources":["../../src/PreactQueryDevtools.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtools`, 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 Preact Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Use this to provide custom error type handlers for the devtools panel.\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 * Use this to hide disabled queries from the devtools panel.\n */\n hideDisabledQueries?: boolean\n /**\n * Use this to set 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 PreactQueryDevtools(props: DevtoolsOptions): VNode | null {\n const queryClient = useQueryClient(props.client)\n const ref = 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] = useState(\n () =>\n new TanstackQueryDevtools({\n client: queryClient,\n queryFlavor: 'Preact 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 useEffect(() => {\n devtools.setClient(queryClient)\n }, [queryClient, devtools])\n\n useEffect(() => {\n if (buttonPosition) {\n devtools.setButtonPosition(buttonPosition)\n }\n }, [buttonPosition, devtools])\n\n useEffect(() => {\n if (position) {\n devtools.setPosition(position)\n }\n }, [position, devtools])\n\n useEffect(() => {\n devtools.setInitialIsOpen(initialIsOpen || false)\n }, [initialIsOpen, devtools])\n\n useEffect(() => {\n devtools.setErrorTypes(errorTypes || [])\n }, [errorTypes, devtools])\n\n useEffect(() => {\n devtools.setTheme(theme)\n }, [theme, devtools])\n\n useEffect(() => {\n if (ref.current) {\n devtools.mount(ref.current)\n }\n return () => {\n devtools.unmount()\n }\n }, [devtools])\n\n return <div className=\"tsqd-parent-container\" ref={ref} />\n}\n"],"mappings":";;;;;;;;;;;;AA6EA,SAAgB,oBAAoB,OAAsC;CACxE,MAAM,eAAA,GAAcA,uBAAAA,eAAAA,CAAe,MAAM,MAAM;CAC/C,MAAM,OAAA,GAAMC,aAAAA,OAAAA,CAAuB,IAAI;CACvC,MAAM,EACJ,gBACA,UACA,eACA,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,aAAA,GAAYC,aAAAA,SAAAA,OAEf,IAAIC,yBAAAA,sBAAsB;EACxB,QAAQ;EACR,aAAa;EACb,SAAS;EACT,eAAA,uBAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC,CACL;CAEA,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,IAAI,gBACF,SAAS,kBAAkB,cAAc;CAE7C,GAAG,CAAC,gBAAgB,QAAQ,CAAC;CAE7B,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,IAAI,UACF,SAAS,YAAY,QAAQ;CAEjC,GAAG,CAAC,UAAU,QAAQ,CAAC;CAEvB,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,iBAAiB,iBAAiB,KAAK;CAClD,GAAG,CAAC,eAAe,QAAQ,CAAC;CAE5B,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAE5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OAAO,iBAAA,GAAA,mBAAA,IAAA,CAAC,OAAD;EAAK,WAAU;EAA6B;CAAM,CAAA;AAC3D"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PreactQueryDevtools, t as DevtoolsOptions } from "./PreactQueryDevtools-
|
|
1
|
+
import { n as PreactQueryDevtools, t as DevtoolsOptions } from "./PreactQueryDevtools-C8tkqnjh.cjs";
|
|
2
2
|
export { DevtoolsOptions, PreactQueryDevtools };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PreactQueryDevtools, t as DevtoolsOptions } from "./PreactQueryDevtools-
|
|
1
|
+
import { n as PreactQueryDevtools, t as DevtoolsOptions } from "./PreactQueryDevtools-C8tkqnjh.js";
|
|
2
2
|
export { DevtoolsOptions, PreactQueryDevtools };
|
|
@@ -12,7 +12,7 @@ import { jsx } from "preact/jsx-runtime";
|
|
|
12
12
|
function PreactQueryDevtools(props) {
|
|
13
13
|
const queryClient = useQueryClient(props.client);
|
|
14
14
|
const ref = useRef(null);
|
|
15
|
-
const { buttonPosition, position, initialIsOpen, errorTypes,
|
|
15
|
+
const { buttonPosition, position, initialIsOpen, errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
16
16
|
const [devtools] = useState(() => new TanstackQueryDevtools({
|
|
17
17
|
client: queryClient,
|
|
18
18
|
queryFlavor: "Preact Query",
|
|
@@ -22,8 +22,8 @@ function PreactQueryDevtools(props) {
|
|
|
22
22
|
position,
|
|
23
23
|
initialIsOpen,
|
|
24
24
|
errorTypes,
|
|
25
|
-
styleNonce,
|
|
26
25
|
shadowDOMTarget,
|
|
26
|
+
trustedTypesPolicy,
|
|
27
27
|
hideDisabledQueries,
|
|
28
28
|
theme
|
|
29
29
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreactQueryDevtools.js","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtools`, 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 Preact Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Use this to provide custom error type handlers for the devtools panel.\n */\n errorTypes?: Array<DevtoolsErrorType>\n /**\n *
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtools.js","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtools } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type {\n DevtoolsButtonPosition,\n DevtoolsErrorType,\n DevtoolsPosition,\n Theme,\n} from '@tanstack/query-devtools'\nimport type { VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtools`, 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 Preact Query devtools panel.\n * 'top' | 'bottom' | 'left' | 'right'\n * @defaultValue bottom\n */\n position?: DevtoolsPosition\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Use this to provide custom error type handlers for the devtools panel.\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 * Use this to hide disabled queries from the devtools panel.\n */\n hideDisabledQueries?: boolean\n /**\n * Use this to set 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 PreactQueryDevtools(props: DevtoolsOptions): VNode | null {\n const queryClient = useQueryClient(props.client)\n const ref = 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] = useState(\n () =>\n new TanstackQueryDevtools({\n client: queryClient,\n queryFlavor: 'Preact 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 useEffect(() => {\n devtools.setClient(queryClient)\n }, [queryClient, devtools])\n\n useEffect(() => {\n if (buttonPosition) {\n devtools.setButtonPosition(buttonPosition)\n }\n }, [buttonPosition, devtools])\n\n useEffect(() => {\n if (position) {\n devtools.setPosition(position)\n }\n }, [position, devtools])\n\n useEffect(() => {\n devtools.setInitialIsOpen(initialIsOpen || false)\n }, [initialIsOpen, devtools])\n\n useEffect(() => {\n devtools.setErrorTypes(errorTypes || [])\n }, [errorTypes, devtools])\n\n useEffect(() => {\n devtools.setTheme(theme)\n }, [theme, devtools])\n\n useEffect(() => {\n if (ref.current) {\n devtools.mount(ref.current)\n }\n return () => {\n devtools.unmount()\n }\n }, [devtools])\n\n return <div className=\"tsqd-parent-container\" ref={ref} />\n}\n"],"mappings":";;;;;;;;;;;AA6EA,SAAgB,oBAAoB,OAAsC;CACxE,MAAM,cAAc,eAAe,MAAM,MAAM;CAC/C,MAAM,MAAM,OAAuB,IAAI;CACvC,MAAM,EACJ,gBACA,UACA,eACA,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,YAAY,eAEf,IAAI,sBAAsB;EACxB,QAAQ;EACR,aAAa;EACb,SAAS;EACT;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC,CACL;CAEA,gBAAgB;EACd,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,gBAAgB;EACd,IAAI,gBACF,SAAS,kBAAkB,cAAc;CAE7C,GAAG,CAAC,gBAAgB,QAAQ,CAAC;CAE7B,gBAAgB;EACd,IAAI,UACF,SAAS,YAAY,QAAQ;CAEjC,GAAG,CAAC,UAAU,QAAQ,CAAC;CAEvB,gBAAgB;EACd,SAAS,iBAAiB,iBAAiB,KAAK;CAClD,GAAG,CAAC,eAAe,QAAQ,CAAC;CAE5B,gBAAgB;EACd,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,gBAAgB;EACd,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,gBAAgB;EACd,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAE5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OAAO,oBAAC,OAAD;EAAK,WAAU;EAA6B;CAAM,CAAA;AAC3D"}
|
|
@@ -18,16 +18,24 @@ interface DevtoolsPanelOptions {
|
|
|
18
18
|
*/
|
|
19
19
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* nonce to allow inline styles.
|
|
21
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
22
|
+
* nonce. This option does nothing.
|
|
24
23
|
*/
|
|
25
24
|
styleNonce?: string;
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
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.
|
|
29
29
|
*/
|
|
30
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?: {
|
|
37
|
+
createHTML: (html: string) => unknown;
|
|
38
|
+
};
|
|
31
39
|
/**
|
|
32
40
|
* Custom styles for the devtools panel container.
|
|
33
41
|
* @default { height: '100%', display: 'flex', flexDirection: 'column' }
|
|
@@ -57,4 +65,4 @@ interface DevtoolsPanelOptions {
|
|
|
57
65
|
*/
|
|
58
66
|
declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
|
|
59
67
|
export { PreactQueryDevtoolsPanel as n, PreactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
|
|
60
|
-
//# sourceMappingURL=PreactQueryDevtoolsPanel-
|
|
68
|
+
//# sourceMappingURL=PreactQueryDevtoolsPanel-Cgfk3JgW.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtoolsPanel-Cgfk3JgW.d.cts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;;;;EAOpC,QAAQ;;;;EAIR;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,yBACd,OAAO,uBACN"}
|
|
@@ -18,16 +18,24 @@ interface DevtoolsPanelOptions {
|
|
|
18
18
|
*/
|
|
19
19
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* nonce to allow inline styles.
|
|
21
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
22
|
+
* nonce. This option does nothing.
|
|
24
23
|
*/
|
|
25
24
|
styleNonce?: string;
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
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.
|
|
29
29
|
*/
|
|
30
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?: {
|
|
37
|
+
createHTML: (html: string) => unknown;
|
|
38
|
+
};
|
|
31
39
|
/**
|
|
32
40
|
* Custom styles for the devtools panel container.
|
|
33
41
|
* @default { height: '100%', display: 'flex', flexDirection: 'column' }
|
|
@@ -57,4 +65,4 @@ interface DevtoolsPanelOptions {
|
|
|
57
65
|
*/
|
|
58
66
|
declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
|
|
59
67
|
export { PreactQueryDevtoolsPanel as n, PreactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
|
|
60
|
-
//# sourceMappingURL=PreactQueryDevtoolsPanel-
|
|
68
|
+
//# sourceMappingURL=PreactQueryDevtoolsPanel-Cgfk3JgW.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtoolsPanel-Cgfk3JgW.d.ts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;EAKnB;;;;;;EAMA,kBAAkB;;;;;;EAMlB;IAAuB,aAAa;;;;;;;;EAOpC,QAAQ;;;;EAIR;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,yBACd,OAAO,uBACN"}
|
|
@@ -12,7 +12,7 @@ let preact_jsx_runtime = require("preact/jsx-runtime");
|
|
|
12
12
|
function PreactQueryDevtoolsPanel(props) {
|
|
13
13
|
const queryClient = (0, _tanstack_preact_query.useQueryClient)(props.client);
|
|
14
14
|
const ref = (0, preact_hooks.useRef)(null);
|
|
15
|
-
const { errorTypes,
|
|
15
|
+
const { errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
16
16
|
const [devtools] = (0, preact_hooks.useState)(() => new _tanstack_query_devtools.TanstackQueryDevtoolsPanel({
|
|
17
17
|
client: queryClient,
|
|
18
18
|
queryFlavor: "Preact Query",
|
|
@@ -22,8 +22,8 @@ function PreactQueryDevtoolsPanel(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":"PreactQueryDevtoolsPanel.cjs","names":["useQueryClient","useRef","useState","TanstackQueryDevtoolsPanel"],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { CSSProperties, VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.\n */\nexport interface DevtoolsPanelOptions {\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Custom error types to be shown in the devtools.\n */\n errorTypes?: Array<DevtoolsErrorType>\n /**\n *
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtoolsPanel.cjs","names":["useQueryClient","useRef","useState","TanstackQueryDevtoolsPanel"],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { CSSProperties, VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.\n */\nexport interface DevtoolsPanelOptions {\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Custom error types to 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 * Custom styles for the devtools panel container.\n * @default { height: '100%', display: 'flex', flexDirection: 'column' }\n * @example { height: '100%' }\n * @example { height: '100%', width: '100%' }\n */\n style?: CSSProperties\n /**\n * Callback function when the devtools panel is closed.\n */\n onClose?: () => unknown\n /**\n * Use this to hide disabled queries from the devtools panel.\n */\n hideDisabledQueries?: boolean\n /**\n * Use this to set 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 PreactQueryDevtoolsPanel(\n props: DevtoolsPanelOptions,\n): VNode | null {\n const queryClient = useQueryClient(props.client)\n const ref = useRef<HTMLDivElement>(null)\n const {\n errorTypes,\n shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n } = props\n const [devtools] = useState(\n () =>\n new TanstackQueryDevtoolsPanel({\n client: queryClient,\n queryFlavor: 'Preact 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 useEffect(() => {\n devtools.setClient(queryClient)\n }, [queryClient, devtools])\n\n useEffect(() => {\n devtools.setOnClose(props.onClose ?? (() => {}))\n }, [props.onClose, devtools])\n\n useEffect(() => {\n devtools.setErrorTypes(errorTypes || [])\n }, [errorTypes, devtools])\n\n useEffect(() => {\n devtools.setTheme(theme)\n }, [theme, devtools])\n\n useEffect(() => {\n if (ref.current) {\n devtools.mount(ref.current)\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 />\n )\n}\n"],"mappings":";;;;;;;;;;;AAiEA,SAAgB,yBACd,OACc;CACd,MAAM,eAAA,GAAcA,uBAAAA,eAAAA,CAAe,MAAM,MAAM;CAC/C,MAAM,OAAA,GAAMC,aAAAA,OAAAA,CAAuB,IAAI;CACvC,MAAM,EACJ,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,aAAA,GAAYC,aAAAA,SAAAA,OAEf,IAAIC,yBAAAA,2BAA2B;EAC7B,QAAQ;EACR,aAAa;EACb,SAAS;EACT,eAAA,uBAAA;EACA,gBAAgB;EAChB,UAAU;EACV,eAAe;EACf;EACA;EACA;EACA,SAAS,MAAM;EACf;EACA;CACF,CAAC,CACL;CAEA,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,WAAW,MAAM,kBAAkB,CAAC,EAAE;CACjD,GAAG,CAAC,MAAM,SAAS,QAAQ,CAAC;CAE5B,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,CAAA,GAAA,aAAA,UAAA,OAAgB;EACd,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAE5B,aAAa;GACX,SAAS,QAAQ;EACnB;CACF,GAAG,CAAC,QAAQ,CAAC;CAEb,OACE,iBAAA,GAAA,mBAAA,IAAA,CAAC,OAAD;EACE,OAAO;GACL,QAAQ;GACR,SAAS;GACT,eAAe;GACf,GAAG,MAAM;EACX;EACA,WAAU;EACL;CACN,CAAA;AAEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PreactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./PreactQueryDevtoolsPanel-
|
|
1
|
+
import { n as PreactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./PreactQueryDevtoolsPanel-Cgfk3JgW.cjs";
|
|
2
2
|
export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PreactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./PreactQueryDevtoolsPanel-
|
|
1
|
+
import { n as PreactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./PreactQueryDevtoolsPanel-Cgfk3JgW.js";
|
|
2
2
|
export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
|
|
@@ -11,7 +11,7 @@ import { jsx } from "preact/jsx-runtime";
|
|
|
11
11
|
function PreactQueryDevtoolsPanel(props) {
|
|
12
12
|
const queryClient = useQueryClient(props.client);
|
|
13
13
|
const ref = useRef(null);
|
|
14
|
-
const { errorTypes,
|
|
14
|
+
const { errorTypes, shadowDOMTarget, trustedTypesPolicy, hideDisabledQueries, theme } = props;
|
|
15
15
|
const [devtools] = useState(() => new TanstackQueryDevtoolsPanel({
|
|
16
16
|
client: queryClient,
|
|
17
17
|
queryFlavor: "Preact Query",
|
|
@@ -21,8 +21,8 @@ function PreactQueryDevtoolsPanel(props) {
|
|
|
21
21
|
position: "bottom",
|
|
22
22
|
initialIsOpen: true,
|
|
23
23
|
errorTypes,
|
|
24
|
-
styleNonce,
|
|
25
24
|
shadowDOMTarget,
|
|
25
|
+
trustedTypesPolicy,
|
|
26
26
|
onClose: props.onClose,
|
|
27
27
|
hideDisabledQueries,
|
|
28
28
|
theme
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreactQueryDevtoolsPanel.js","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { CSSProperties, VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.\n */\nexport interface DevtoolsPanelOptions {\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Custom error types to be shown in the devtools.\n */\n errorTypes?: Array<DevtoolsErrorType>\n /**\n *
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtoolsPanel.js","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"sourcesContent":["import { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport { useEffect, useRef, useState } from 'preact/hooks'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { CSSProperties, VNode } from 'preact'\n\n/**\n * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.\n */\nexport interface DevtoolsPanelOptions {\n /**\n * Use this to provide a custom QueryClient. Otherwise, the one from the\n * nearest QueryClientProvider will be used.\n */\n client?: QueryClient\n /**\n * Custom error types to 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 * Custom styles for the devtools panel container.\n * @default { height: '100%', display: 'flex', flexDirection: 'column' }\n * @example { height: '100%' }\n * @example { height: '100%', width: '100%' }\n */\n style?: CSSProperties\n /**\n * Callback function when the devtools panel is closed.\n */\n onClose?: () => unknown\n /**\n * Use this to hide disabled queries from the devtools panel.\n */\n hideDisabledQueries?: boolean\n /**\n * Use this to set 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 PreactQueryDevtoolsPanel(\n props: DevtoolsPanelOptions,\n): VNode | null {\n const queryClient = useQueryClient(props.client)\n const ref = useRef<HTMLDivElement>(null)\n const {\n errorTypes,\n shadowDOMTarget,\n trustedTypesPolicy,\n hideDisabledQueries,\n theme,\n } = props\n const [devtools] = useState(\n () =>\n new TanstackQueryDevtoolsPanel({\n client: queryClient,\n queryFlavor: 'Preact 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 useEffect(() => {\n devtools.setClient(queryClient)\n }, [queryClient, devtools])\n\n useEffect(() => {\n devtools.setOnClose(props.onClose ?? (() => {}))\n }, [props.onClose, devtools])\n\n useEffect(() => {\n devtools.setErrorTypes(errorTypes || [])\n }, [errorTypes, devtools])\n\n useEffect(() => {\n devtools.setTheme(theme)\n }, [theme, devtools])\n\n useEffect(() => {\n if (ref.current) {\n devtools.mount(ref.current)\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 />\n )\n}\n"],"mappings":";;;;;;;;;;AAiEA,SAAgB,yBACd,OACc;CACd,MAAM,cAAc,eAAe,MAAM,MAAM;CAC/C,MAAM,MAAM,OAAuB,IAAI;CACvC,MAAM,EACJ,YACA,iBACA,oBACA,qBACA,UACE;CACJ,MAAM,CAAC,YAAY,eAEf,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,gBAAgB;EACd,SAAS,UAAU,WAAW;CAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;CAE1B,gBAAgB;EACd,SAAS,WAAW,MAAM,kBAAkB,CAAC,EAAE;CACjD,GAAG,CAAC,MAAM,SAAS,QAAQ,CAAC;CAE5B,gBAAgB;EACd,SAAS,cAAc,cAAc,CAAC,CAAC;CACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;CAEzB,gBAAgB;EACd,SAAS,SAAS,KAAK;CACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;CAEpB,gBAAgB;EACd,IAAI,IAAI,SACN,SAAS,MAAM,IAAI,OAAO;EAE5B,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;CACN,CAAA;AAEL"}
|
package/build/modern/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-
|
|
2
|
-
import { r as PreactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./PreactQueryDevtoolsPanel-
|
|
1
|
+
import { r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-C8tkqnjh.cjs";
|
|
2
|
+
import { r as PreactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./PreactQueryDevtoolsPanel-Cgfk3JgW.cjs";
|
|
3
3
|
export declare const PreactQueryDevtools: (typeof PreactQueryDevtools_d_exports)['PreactQueryDevtools'];
|
|
4
4
|
export declare const PreactQueryDevtoolsPanel: (typeof PreactQueryDevtoolsPanel_d_exports)['PreactQueryDevtoolsPanel'];
|
|
5
5
|
/**
|
package/build/modern/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-
|
|
2
|
-
import { r as PreactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./PreactQueryDevtoolsPanel-
|
|
1
|
+
import { r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-C8tkqnjh.js";
|
|
2
|
+
import { r as PreactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./PreactQueryDevtoolsPanel-Cgfk3JgW.js";
|
|
3
3
|
export declare const PreactQueryDevtools: (typeof PreactQueryDevtools_d_exports)['PreactQueryDevtools'];
|
|
4
4
|
export declare const PreactQueryDevtoolsPanel: (typeof PreactQueryDevtoolsPanel_d_exports)['PreactQueryDevtoolsPanel'];
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as PreactQueryDevtools$1, r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-
|
|
2
|
-
import { n as PreactQueryDevtoolsPanel$1, r as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel-
|
|
1
|
+
import { n as PreactQueryDevtools$1, r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-C8tkqnjh.cjs";
|
|
2
|
+
import { n as PreactQueryDevtoolsPanel$1, r as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel-Cgfk3JgW.cjs";
|
|
3
3
|
export declare const PreactQueryDevtools: typeof PreactQueryDevtools$1;
|
|
4
4
|
export declare const PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel$1;
|
|
5
5
|
//# sourceMappingURL=production.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as PreactQueryDevtools$1, r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-
|
|
2
|
-
import { n as PreactQueryDevtoolsPanel$1, r as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel-
|
|
1
|
+
import { n as PreactQueryDevtools$1, r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-C8tkqnjh.js";
|
|
2
|
+
import { n as PreactQueryDevtoolsPanel$1, r as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel-Cgfk3JgW.js";
|
|
3
3
|
export declare const PreactQueryDevtools: typeof PreactQueryDevtools$1;
|
|
4
4
|
export declare const PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel$1;
|
|
5
5
|
//# sourceMappingURL=production.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/preact-query-devtools",
|
|
3
|
-
"version": "5.108.
|
|
3
|
+
"version": "5.108.2",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack/preact-query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,17 +59,17 @@
|
|
|
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
|
"@preact/preset-vite": "^2.10.6",
|
|
66
|
-
"@tanstack/preact-query": "5.108.
|
|
66
|
+
"@tanstack/preact-query": "5.108.2",
|
|
67
67
|
"@testing-library/preact": "^3.2.4",
|
|
68
68
|
"preact": "^11.0.1",
|
|
69
69
|
"typescript": "6.0.3"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@tanstack/preact-query": "^5.108.
|
|
72
|
+
"@tanstack/preact-query": "^5.108.2",
|
|
73
73
|
"preact": "^10.0.0 || ^11.0.0-0"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
@@ -41,16 +41,22 @@ export interface DevtoolsOptions {
|
|
|
41
41
|
*/
|
|
42
42
|
errorTypes?: Array<DevtoolsErrorType>
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* nonce to allow inline styles.
|
|
44
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
45
|
+
* nonce. This option does nothing.
|
|
47
46
|
*/
|
|
48
47
|
styleNonce?: string
|
|
49
48
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
49
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
50
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
51
|
+
* they do not render in a shadow root.
|
|
52
52
|
*/
|
|
53
53
|
shadowDOMTarget?: ShadowRoot
|
|
54
|
+
/**
|
|
55
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
56
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
57
|
+
* The devtools only pass it their own markup.
|
|
58
|
+
*/
|
|
59
|
+
trustedTypesPolicy?: { createHTML: (html: string) => unknown }
|
|
54
60
|
/**
|
|
55
61
|
* Use this to hide disabled queries from the devtools panel.
|
|
56
62
|
*/
|
|
@@ -77,8 +83,8 @@ export function PreactQueryDevtools(props: DevtoolsOptions): VNode | null {
|
|
|
77
83
|
position,
|
|
78
84
|
initialIsOpen,
|
|
79
85
|
errorTypes,
|
|
80
|
-
styleNonce,
|
|
81
86
|
shadowDOMTarget,
|
|
87
|
+
trustedTypesPolicy,
|
|
82
88
|
hideDisabledQueries,
|
|
83
89
|
theme,
|
|
84
90
|
} = props
|
|
@@ -93,8 +99,8 @@ export function PreactQueryDevtools(props: DevtoolsOptions): VNode | null {
|
|
|
93
99
|
position,
|
|
94
100
|
initialIsOpen,
|
|
95
101
|
errorTypes,
|
|
96
|
-
styleNonce,
|
|
97
102
|
shadowDOMTarget,
|
|
103
|
+
trustedTypesPolicy,
|
|
98
104
|
hideDisabledQueries,
|
|
99
105
|
theme,
|
|
100
106
|
}),
|
|
@@ -19,16 +19,22 @@ export interface DevtoolsPanelOptions {
|
|
|
19
19
|
*/
|
|
20
20
|
errorTypes?: Array<DevtoolsErrorType>
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* nonce to allow inline styles.
|
|
22
|
+
* @deprecated The devtools no longer add a `<style>` element, so they need no
|
|
23
|
+
* nonce. This option does nothing.
|
|
25
24
|
*/
|
|
26
25
|
styleNonce?: string
|
|
27
26
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
27
|
+
* The shadow root to add the devtools styles to. By default, the styles are
|
|
28
|
+
* added to the shadow root the devtools render in, or to the document when
|
|
29
|
+
* they do not render in a shadow root.
|
|
30
30
|
*/
|
|
31
31
|
shadowDOMTarget?: ShadowRoot
|
|
32
|
+
/**
|
|
33
|
+
* The Trusted Types policy the devtools use to create their HTML templates.
|
|
34
|
+
* Pass one when your page enforces `require-trusted-types-for 'script'`.
|
|
35
|
+
* The devtools only pass it their own markup.
|
|
36
|
+
*/
|
|
37
|
+
trustedTypesPolicy?: { createHTML: (html: string) => unknown }
|
|
32
38
|
/**
|
|
33
39
|
* Custom styles for the devtools panel container.
|
|
34
40
|
* @default { height: '100%', display: 'flex', flexDirection: 'column' }
|
|
@@ -64,8 +70,8 @@ export function PreactQueryDevtoolsPanel(
|
|
|
64
70
|
const ref = useRef<HTMLDivElement>(null)
|
|
65
71
|
const {
|
|
66
72
|
errorTypes,
|
|
67
|
-
styleNonce,
|
|
68
73
|
shadowDOMTarget,
|
|
74
|
+
trustedTypesPolicy,
|
|
69
75
|
hideDisabledQueries,
|
|
70
76
|
theme,
|
|
71
77
|
} = props
|
|
@@ -80,8 +86,8 @@ export function PreactQueryDevtoolsPanel(
|
|
|
80
86
|
position: 'bottom',
|
|
81
87
|
initialIsOpen: true,
|
|
82
88
|
errorTypes,
|
|
83
|
-
styleNonce,
|
|
84
89
|
shadowDOMTarget,
|
|
90
|
+
trustedTypesPolicy,
|
|
85
91
|
onClose: props.onClose,
|
|
86
92
|
hideDisabledQueries,
|
|
87
93
|
theme,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreactQueryDevtools-BZb79hrw.d.cts","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;;EAKX,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;EAIlB;;;;;;EAMA,QAAQ;;;;;;;;iBASM,oBAAoB,OAAO,kBAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreactQueryDevtools-BZb79hrw.d.ts","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;;EAKX,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;EAIlB;;;;;;EAMA,QAAQ;;;;;;;;iBASM,oBAAoB,OAAO,kBAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreactQueryDevtoolsPanel-B0phEg4g.d.cts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;;;;EAOlB,QAAQ;;;;EAIR;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,yBACd,OAAO,uBACN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreactQueryDevtoolsPanel-B0phEg4g.d.ts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;;;;EAOlB,QAAQ;;;;EAIR;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,yBACd,OAAO,uBACN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreactQueryDevtools-BZb79hrw.d.cts","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;;EAKX,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;EAIlB;;;;;;EAMA,QAAQ;;;;;;;;iBASM,oBAAoB,OAAO,kBAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreactQueryDevtools-BZb79hrw.d.ts","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;;EAKX,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;EAIlB;;;;;;EAMA,QAAQ;;;;;;;;iBASM,oBAAoB,OAAO,kBAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreactQueryDevtoolsPanel-B0phEg4g.d.cts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;;;;EAOlB,QAAQ;;;;EAIR;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,yBACd,OAAO,uBACN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreactQueryDevtoolsPanel-B0phEg4g.d.ts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;;;;EAOlB,QAAQ;;;;EAIR;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,yBACd,OAAO,uBACN"}
|