@tanstack/preact-query-devtools 5.101.4 → 5.102.1
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.cjs +55 -92
- package/build/legacy/PreactQueryDevtools.cjs.map +1 -1
- package/build/legacy/PreactQueryDevtools.d.cts +56 -2
- package/build/legacy/PreactQueryDevtools.d.cts.map +1 -0
- package/build/legacy/PreactQueryDevtools.d.ts +56 -2
- package/build/legacy/PreactQueryDevtools.d.ts.map +1 -0
- package/build/legacy/PreactQueryDevtools.js +51 -64
- package/build/legacy/PreactQueryDevtools.js.map +1 -1
- package/build/legacy/PreactQueryDevtoolsPanel.cjs +53 -88
- package/build/legacy/PreactQueryDevtoolsPanel.cjs.map +1 -1
- package/build/legacy/PreactQueryDevtoolsPanel.d.cts +48 -2
- package/build/legacy/PreactQueryDevtoolsPanel.d.cts.map +1 -0
- package/build/legacy/PreactQueryDevtoolsPanel.d.ts +48 -2
- package/build/legacy/PreactQueryDevtoolsPanel.d.ts.map +1 -0
- package/build/legacy/PreactQueryDevtoolsPanel.js +49 -60
- package/build/legacy/PreactQueryDevtoolsPanel.js.map +1 -1
- package/build/legacy/index.cjs +13 -48
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/index.d.cts +9 -3
- package/build/legacy/index.d.cts.map +1 -0
- package/build/legacy/index.d.ts +9 -3
- package/build/legacy/index.d.ts.map +1 -0
- package/build/legacy/index.js +12 -13
- package/build/legacy/index.js.map +1 -1
- package/build/legacy/production.cjs +9 -44
- package/build/legacy/production.cjs.map +1 -1
- package/build/legacy/production.d.cts +8 -2
- package/build/legacy/production.d.cts.map +1 -0
- package/build/legacy/production.d.ts +8 -2
- package/build/legacy/production.d.ts.map +1 -0
- package/build/legacy/production.js +8 -9
- package/build/legacy/production.js.map +1 -1
- package/build/legacy/rolldown-runtime-D7D4PA-g.js +13 -0
- package/build/modern/PreactQueryDevtools.cjs +55 -92
- package/build/modern/PreactQueryDevtools.cjs.map +1 -1
- package/build/modern/PreactQueryDevtools.d.cts +56 -2
- package/build/modern/PreactQueryDevtools.d.cts.map +1 -0
- package/build/modern/PreactQueryDevtools.d.ts +56 -2
- package/build/modern/PreactQueryDevtools.d.ts.map +1 -0
- package/build/modern/PreactQueryDevtools.js +51 -64
- package/build/modern/PreactQueryDevtools.js.map +1 -1
- package/build/modern/PreactQueryDevtoolsPanel.cjs +53 -88
- package/build/modern/PreactQueryDevtoolsPanel.cjs.map +1 -1
- package/build/modern/PreactQueryDevtoolsPanel.d.cts +48 -2
- package/build/modern/PreactQueryDevtoolsPanel.d.cts.map +1 -0
- package/build/modern/PreactQueryDevtoolsPanel.d.ts +48 -2
- package/build/modern/PreactQueryDevtoolsPanel.d.ts.map +1 -0
- package/build/modern/PreactQueryDevtoolsPanel.js +49 -60
- package/build/modern/PreactQueryDevtoolsPanel.js.map +1 -1
- package/build/modern/index.cjs +13 -48
- package/build/modern/index.cjs.map +1 -1
- package/build/modern/index.d.cts +9 -3
- package/build/modern/index.d.cts.map +1 -0
- package/build/modern/index.d.ts +9 -3
- package/build/modern/index.d.ts.map +1 -0
- package/build/modern/index.js +12 -13
- package/build/modern/index.js.map +1 -1
- package/build/modern/production.cjs +9 -44
- package/build/modern/production.cjs.map +1 -1
- package/build/modern/production.d.cts +8 -2
- package/build/modern/production.d.cts.map +1 -0
- package/build/modern/production.d.ts +8 -2
- package/build/modern/production.d.ts.map +1 -0
- package/build/modern/production.js +8 -9
- package/build/modern/production.js.map +1 -1
- package/build/modern/rolldown-runtime-D7D4PA-g.js +13 -0
- package/package.json +8 -10
- package/build/legacy/_tsup-dts-rollup.d.cts +0 -123
- package/build/legacy/_tsup-dts-rollup.d.ts +0 -123
- package/build/modern/_tsup-dts-rollup.d.cts +0 -123
- package/build/modern/_tsup-dts-rollup.d.ts +0 -123
|
@@ -1,2 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { DevtoolsErrorType, Theme } from "@tanstack/query-devtools";
|
|
2
|
+
import { QueryClient } from "@tanstack/preact-query";
|
|
3
|
+
import { CSSProperties, VNode } from "preact";
|
|
4
|
+
declare namespace PreactQueryDevtoolsPanel_d_exports {
|
|
5
|
+
export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
|
|
6
|
+
}
|
|
7
|
+
interface DevtoolsPanelOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
10
|
+
* nearest QueryClientProvider will be used.
|
|
11
|
+
*/
|
|
12
|
+
client?: QueryClient;
|
|
13
|
+
/**
|
|
14
|
+
* Custom error types to be shown in the devtools.
|
|
15
|
+
*/
|
|
16
|
+
errorTypes?: Array<DevtoolsErrorType>;
|
|
17
|
+
/**
|
|
18
|
+
* Use this to pass a nonce to the style tag that is added to the document
|
|
19
|
+
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
20
|
+
* nonce to allow inline styles.
|
|
21
|
+
*/
|
|
22
|
+
styleNonce?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Use this to render the devtools inside a Shadow DOM.
|
|
25
|
+
*/
|
|
26
|
+
shadowDOMTarget?: ShadowRoot;
|
|
27
|
+
/**
|
|
28
|
+
* Custom styles for the devtools panel container.
|
|
29
|
+
*/
|
|
30
|
+
style?: CSSProperties;
|
|
31
|
+
/**
|
|
32
|
+
* Callback function when the devtools panel is closed.
|
|
33
|
+
*/
|
|
34
|
+
onClose?: () => unknown;
|
|
35
|
+
/**
|
|
36
|
+
* Use this to hide disabled queries from the devtools panel.
|
|
37
|
+
*/
|
|
38
|
+
hideDisabledQueries?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Use this to set the theme of the devtools panel.
|
|
41
|
+
* Defaults to 'system'.
|
|
42
|
+
*/
|
|
43
|
+
theme?: Theme;
|
|
44
|
+
}
|
|
45
|
+
declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel, PreactQueryDevtoolsPanel_d_exports as t };
|
|
48
|
+
//# sourceMappingURL=PreactQueryDevtoolsPanel.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtoolsPanel.d.cts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;UAOiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;EAIA,kBAAkB;;;;EAIlB,QAAQ;;;;EAIR;;;;EAIA;;;;;EAKA,QAAQ;;iBAGM,yBACd,OAAO,uBACN"}
|
|
@@ -1,2 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { QueryClient } from "@tanstack/preact-query";
|
|
2
|
+
import { DevtoolsErrorType, Theme } from "@tanstack/query-devtools";
|
|
3
|
+
import { CSSProperties, VNode } from "preact";
|
|
4
|
+
declare namespace PreactQueryDevtoolsPanel_d_exports {
|
|
5
|
+
export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
|
|
6
|
+
}
|
|
7
|
+
interface DevtoolsPanelOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
10
|
+
* nearest QueryClientProvider will be used.
|
|
11
|
+
*/
|
|
12
|
+
client?: QueryClient;
|
|
13
|
+
/**
|
|
14
|
+
* Custom error types to be shown in the devtools.
|
|
15
|
+
*/
|
|
16
|
+
errorTypes?: Array<DevtoolsErrorType>;
|
|
17
|
+
/**
|
|
18
|
+
* Use this to pass a nonce to the style tag that is added to the document
|
|
19
|
+
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
20
|
+
* nonce to allow inline styles.
|
|
21
|
+
*/
|
|
22
|
+
styleNonce?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Use this to render the devtools inside a Shadow DOM.
|
|
25
|
+
*/
|
|
26
|
+
shadowDOMTarget?: ShadowRoot;
|
|
27
|
+
/**
|
|
28
|
+
* Custom styles for the devtools panel container.
|
|
29
|
+
*/
|
|
30
|
+
style?: CSSProperties;
|
|
31
|
+
/**
|
|
32
|
+
* Callback function when the devtools panel is closed.
|
|
33
|
+
*/
|
|
34
|
+
onClose?: () => unknown;
|
|
35
|
+
/**
|
|
36
|
+
* Use this to hide disabled queries from the devtools panel.
|
|
37
|
+
*/
|
|
38
|
+
hideDisabledQueries?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Use this to set the theme of the devtools panel.
|
|
41
|
+
* Defaults to 'system'.
|
|
42
|
+
*/
|
|
43
|
+
theme?: Theme;
|
|
44
|
+
}
|
|
45
|
+
declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel, PreactQueryDevtoolsPanel_d_exports as t };
|
|
48
|
+
//# sourceMappingURL=PreactQueryDevtoolsPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtoolsPanel.d.ts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;UAOiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;EAIA,kBAAkB;;;;EAIlB,QAAQ;;;;EAIR;;;;EAIA;;;;;EAKA,QAAQ;;iBAGM,yBACd,OAAO,uBACN"}
|
|
@@ -1,66 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
import { useRef, useState, useEffect } from "preact/hooks";
|
|
1
|
+
import { useEffect, useRef, useState } from "preact/hooks";
|
|
3
2
|
import { onlineManager, useQueryClient } from "@tanstack/preact-query";
|
|
4
3
|
import { TanstackQueryDevtoolsPanel } from "@tanstack/query-devtools";
|
|
5
4
|
import { jsx } from "preact/jsx-runtime";
|
|
5
|
+
//#region src/PreactQueryDevtoolsPanel.tsx
|
|
6
6
|
function PreactQueryDevtoolsPanel(props) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
devtools.unmount();
|
|
52
|
-
};
|
|
53
|
-
}, [devtools]);
|
|
54
|
-
return /* @__PURE__ */ jsx(
|
|
55
|
-
"div",
|
|
56
|
-
{
|
|
57
|
-
style: { height: "500px", ...props.style },
|
|
58
|
-
className: "tsqd-parent-container",
|
|
59
|
-
ref
|
|
60
|
-
}
|
|
61
|
-
);
|
|
7
|
+
const queryClient = useQueryClient(props.client);
|
|
8
|
+
const ref = useRef(null);
|
|
9
|
+
const { errorTypes, styleNonce, shadowDOMTarget, hideDisabledQueries, theme } = props;
|
|
10
|
+
const [devtools] = useState(() => new TanstackQueryDevtoolsPanel({
|
|
11
|
+
client: queryClient,
|
|
12
|
+
queryFlavor: "Preact Query",
|
|
13
|
+
version: "5",
|
|
14
|
+
onlineManager,
|
|
15
|
+
buttonPosition: "bottom-left",
|
|
16
|
+
position: "bottom",
|
|
17
|
+
initialIsOpen: true,
|
|
18
|
+
errorTypes,
|
|
19
|
+
styleNonce,
|
|
20
|
+
shadowDOMTarget,
|
|
21
|
+
onClose: props.onClose,
|
|
22
|
+
hideDisabledQueries,
|
|
23
|
+
theme
|
|
24
|
+
}));
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
devtools.setClient(queryClient);
|
|
27
|
+
}, [queryClient, devtools]);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
devtools.setOnClose(props.onClose ?? (() => {}));
|
|
30
|
+
}, [props.onClose, devtools]);
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
devtools.setErrorTypes(errorTypes || []);
|
|
33
|
+
}, [errorTypes, devtools]);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
devtools.setTheme(theme);
|
|
36
|
+
}, [theme, devtools]);
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
if (ref.current) devtools.mount(ref.current);
|
|
39
|
+
return () => {
|
|
40
|
+
devtools.unmount();
|
|
41
|
+
};
|
|
42
|
+
}, [devtools]);
|
|
43
|
+
return /* @__PURE__ */ jsx("div", {
|
|
44
|
+
style: {
|
|
45
|
+
height: "500px",
|
|
46
|
+
...props.style
|
|
47
|
+
},
|
|
48
|
+
className: "tsqd-parent-container",
|
|
49
|
+
ref
|
|
50
|
+
});
|
|
62
51
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
52
|
+
//#endregion
|
|
53
|
+
export { PreactQueryDevtoolsPanel };
|
|
54
|
+
|
|
66
55
|
//# sourceMappingURL=PreactQueryDevtoolsPanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"sourcesContent":["import { useRef, useState, useEffect } from 'preact/hooks'\nimport { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type { CSSProperties, VNode } from 'preact'\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 * Use this to pass a nonce to the style tag that is added to the document\n * head. This is useful if you are using a Content Security Policy (CSP)\n * nonce to allow inline styles.\n */\n styleNonce?: string\n /**\n * Use this to render the devtools inside a Shadow DOM.\n */\n shadowDOMTarget?: ShadowRoot\n /**\n * Custom styles for the devtools panel container.\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 * Defaults to 'system'.\n */\n theme?: Theme\n}\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 styleNonce,\n shadowDOMTarget,\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 styleNonce,\n shadowDOMTarget,\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={{ height: '500px', ...props.style }}\n className=\"tsqd-parent-container\"\n ref={ref}\n />\n )\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtoolsPanel.js","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"sourcesContent":["import { useRef, useState, useEffect } from 'preact/hooks'\nimport { onlineManager, useQueryClient } from '@tanstack/preact-query'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/preact-query'\nimport type { CSSProperties, VNode } from 'preact'\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 * Use this to pass a nonce to the style tag that is added to the document\n * head. This is useful if you are using a Content Security Policy (CSP)\n * nonce to allow inline styles.\n */\n styleNonce?: string\n /**\n * Use this to render the devtools inside a Shadow DOM.\n */\n shadowDOMTarget?: ShadowRoot\n /**\n * Custom styles for the devtools panel container.\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 * Defaults to 'system'.\n */\n theme?: Theme\n}\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 styleNonce,\n shadowDOMTarget,\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 styleNonce,\n shadowDOMTarget,\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={{ height: '500px', ...props.style }}\n className=\"tsqd-parent-container\"\n ref={ref}\n />\n )\n}\n"],"mappings":";;;;;AA8CA,SAAgB,yBACd,OACc;CACd,MAAM,cAAc,eAAe,MAAM,MAAM;CAC/C,MAAM,MAAM,OAAuB,IAAI;CACvC,MAAM,EACJ,YACA,YACA,iBACA,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;GAAE,QAAQ;GAAS,GAAG,MAAM;EAAM;EACzC,WAAU;EACL;CACN,CAAA;AAEL"}
|
package/build/legacy/index.cjs
CHANGED
|
@@ -1,50 +1,15 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_PreactQueryDevtools = require("./PreactQueryDevtools.cjs");
|
|
3
|
+
const require_PreactQueryDevtoolsPanel = require("./PreactQueryDevtoolsPanel.cjs");
|
|
4
|
+
//#region src/index.ts
|
|
5
|
+
const PreactQueryDevtools = process.env.NODE_ENV !== "development" ? function() {
|
|
6
|
+
return null;
|
|
7
|
+
} : require_PreactQueryDevtools.PreactQueryDevtools;
|
|
8
|
+
const PreactQueryDevtoolsPanel = process.env.NODE_ENV !== "development" ? function() {
|
|
9
|
+
return null;
|
|
10
|
+
} : require_PreactQueryDevtoolsPanel.PreactQueryDevtoolsPanel;
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.PreactQueryDevtools = PreactQueryDevtools;
|
|
13
|
+
exports.PreactQueryDevtoolsPanel = PreactQueryDevtoolsPanel;
|
|
29
14
|
|
|
30
|
-
// src/index.ts
|
|
31
|
-
var index_exports = {};
|
|
32
|
-
__export(index_exports, {
|
|
33
|
-
PreactQueryDevtools: () => PreactQueryDevtools2,
|
|
34
|
-
PreactQueryDevtoolsPanel: () => PreactQueryDevtoolsPanel2
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(index_exports);
|
|
37
|
-
var Devtools = __toESM(require("./PreactQueryDevtools.cjs"), 1);
|
|
38
|
-
var DevtoolsPanel = __toESM(require("./PreactQueryDevtoolsPanel.cjs"), 1);
|
|
39
|
-
var PreactQueryDevtools2 = process.env.NODE_ENV !== "development" ? function() {
|
|
40
|
-
return null;
|
|
41
|
-
} : Devtools.PreactQueryDevtools;
|
|
42
|
-
var PreactQueryDevtoolsPanel2 = process.env.NODE_ENV !== "development" ? function() {
|
|
43
|
-
return null;
|
|
44
|
-
} : DevtoolsPanel.PreactQueryDevtoolsPanel;
|
|
45
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
-
0 && (module.exports = {
|
|
47
|
-
PreactQueryDevtools,
|
|
48
|
-
PreactQueryDevtoolsPanel
|
|
49
|
-
});
|
|
50
15
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import * as Devtools from './PreactQueryDevtools'\nimport * as DevtoolsPanel from './PreactQueryDevtoolsPanel'\n\nexport const PreactQueryDevtools: (typeof Devtools)['PreactQueryDevtools'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : Devtools.PreactQueryDevtools\n\nexport const PreactQueryDevtoolsPanel: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : DevtoolsPanel.PreactQueryDevtoolsPanel\n\nexport type DevtoolsPanelOptions = DevtoolsPanel.DevtoolsPanelOptions\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import * as Devtools from './PreactQueryDevtools'\nimport * as DevtoolsPanel from './PreactQueryDevtoolsPanel'\n\nexport const PreactQueryDevtools: (typeof Devtools)['PreactQueryDevtools'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : Devtools.PreactQueryDevtools\n\nexport const PreactQueryDevtoolsPanel: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : DevtoolsPanel.PreactQueryDevtoolsPanel\n\nexport type DevtoolsPanelOptions = DevtoolsPanel.DevtoolsPanelOptions\n"],"mappings":";;;;AAGA,MAAa,sBACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;CACV,OAAO;AACT,IAAA,4BAAA;AAGN,MAAa,2BACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;CACV,OAAO;AACT,IAAA,iCAAA"}
|
package/build/legacy/index.d.cts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { t as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools.cjs";
|
|
2
|
+
import { DevtoolsPanelOptions as DevtoolsPanelOptions$1, t as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel.cjs";
|
|
3
|
+
//#region src/index.d.ts
|
|
4
|
+
declare const PreactQueryDevtools: (typeof PreactQueryDevtools_d_exports)['PreactQueryDevtools'];
|
|
5
|
+
declare const PreactQueryDevtoolsPanel: (typeof PreactQueryDevtoolsPanel_d_exports)['PreactQueryDevtoolsPanel'];
|
|
6
|
+
type DevtoolsPanelOptions = DevtoolsPanelOptions$1;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { DevtoolsPanelOptions, PreactQueryDevtools, PreactQueryDevtoolsPanel };
|
|
9
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/index.ts"],"mappings":";;;cAGa,6BAA6B;cAO7B,kCAAkC;KAOnC,uBAAuB"}
|
package/build/legacy/index.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { t as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools.js";
|
|
2
|
+
import { DevtoolsPanelOptions as DevtoolsPanelOptions$1, t as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel.js";
|
|
3
|
+
//#region src/index.d.ts
|
|
4
|
+
declare const PreactQueryDevtools: (typeof PreactQueryDevtools_d_exports)['PreactQueryDevtools'];
|
|
5
|
+
declare const PreactQueryDevtoolsPanel: (typeof PreactQueryDevtoolsPanel_d_exports)['PreactQueryDevtoolsPanel'];
|
|
6
|
+
type DevtoolsPanelOptions = DevtoolsPanelOptions$1;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { DevtoolsPanelOptions, PreactQueryDevtools, PreactQueryDevtoolsPanel };
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;cAGa,6BAA6B;cAO7B,kCAAkC;KAOnC,uBAAuB"}
|
package/build/legacy/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} :
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} :
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
1
|
+
import { PreactQueryDevtools as PreactQueryDevtools$1 } from "./PreactQueryDevtools.js";
|
|
2
|
+
import { PreactQueryDevtoolsPanel as PreactQueryDevtoolsPanel$1 } from "./PreactQueryDevtoolsPanel.js";
|
|
3
|
+
//#region src/index.ts
|
|
4
|
+
const PreactQueryDevtools = process.env.NODE_ENV !== "development" ? function() {
|
|
5
|
+
return null;
|
|
6
|
+
} : PreactQueryDevtools$1;
|
|
7
|
+
const PreactQueryDevtoolsPanel = process.env.NODE_ENV !== "development" ? function() {
|
|
8
|
+
return null;
|
|
9
|
+
} : PreactQueryDevtoolsPanel$1;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { PreactQueryDevtools, PreactQueryDevtoolsPanel };
|
|
12
|
+
|
|
14
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import * as Devtools from './PreactQueryDevtools'\nimport * as DevtoolsPanel from './PreactQueryDevtoolsPanel'\n\nexport const PreactQueryDevtools: (typeof Devtools)['PreactQueryDevtools'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : Devtools.PreactQueryDevtools\n\nexport const PreactQueryDevtoolsPanel: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : DevtoolsPanel.PreactQueryDevtoolsPanel\n\nexport type DevtoolsPanelOptions = DevtoolsPanel.DevtoolsPanelOptions\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["Devtools.PreactQueryDevtools","DevtoolsPanel.PreactQueryDevtoolsPanel"],"sources":["../../src/index.ts"],"sourcesContent":["import * as Devtools from './PreactQueryDevtools'\nimport * as DevtoolsPanel from './PreactQueryDevtoolsPanel'\n\nexport const PreactQueryDevtools: (typeof Devtools)['PreactQueryDevtools'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : Devtools.PreactQueryDevtools\n\nexport const PreactQueryDevtoolsPanel: (typeof DevtoolsPanel)['PreactQueryDevtoolsPanel'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : DevtoolsPanel.PreactQueryDevtoolsPanel\n\nexport type DevtoolsPanelOptions = DevtoolsPanel.DevtoolsPanelOptions\n"],"mappings":";;;AAGA,MAAa,sBACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;CACV,OAAO;AACT,IACAA;AAEN,MAAa,2BACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;CACV,OAAO;AACT,IACAC"}
|
|
@@ -1,46 +1,11 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_PreactQueryDevtools = require("./PreactQueryDevtools.cjs");
|
|
3
|
+
const require_PreactQueryDevtoolsPanel = require("./PreactQueryDevtoolsPanel.cjs");
|
|
4
|
+
//#region src/production.ts
|
|
5
|
+
const PreactQueryDevtools = require_PreactQueryDevtools.PreactQueryDevtools;
|
|
6
|
+
const PreactQueryDevtoolsPanel = require_PreactQueryDevtoolsPanel.PreactQueryDevtoolsPanel;
|
|
7
|
+
//#endregion
|
|
8
|
+
exports.PreactQueryDevtools = PreactQueryDevtools;
|
|
9
|
+
exports.PreactQueryDevtoolsPanel = PreactQueryDevtoolsPanel;
|
|
29
10
|
|
|
30
|
-
// src/production.ts
|
|
31
|
-
var production_exports = {};
|
|
32
|
-
__export(production_exports, {
|
|
33
|
-
PreactQueryDevtools: () => PreactQueryDevtools2,
|
|
34
|
-
PreactQueryDevtoolsPanel: () => PreactQueryDevtoolsPanel2
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(production_exports);
|
|
37
|
-
var Devtools = __toESM(require("./PreactQueryDevtools.cjs"), 1);
|
|
38
|
-
var DevtoolsPanel = __toESM(require("./PreactQueryDevtoolsPanel.cjs"), 1);
|
|
39
|
-
var PreactQueryDevtools2 = Devtools.PreactQueryDevtools;
|
|
40
|
-
var PreactQueryDevtoolsPanel2 = DevtoolsPanel.PreactQueryDevtoolsPanel;
|
|
41
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
-
0 && (module.exports = {
|
|
43
|
-
PreactQueryDevtools,
|
|
44
|
-
PreactQueryDevtoolsPanel
|
|
45
|
-
});
|
|
46
11
|
//# sourceMappingURL=production.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/production.ts"],"sourcesContent":["import * as Devtools from './PreactQueryDevtools'\nimport * as DevtoolsPanel from './PreactQueryDevtoolsPanel'\n\nexport const PreactQueryDevtools = Devtools.PreactQueryDevtools\nexport const PreactQueryDevtoolsPanel = DevtoolsPanel.PreactQueryDevtoolsPanel\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"production.cjs","names":[],"sources":["../../src/production.ts"],"sourcesContent":["import * as Devtools from './PreactQueryDevtools'\nimport * as DevtoolsPanel from './PreactQueryDevtoolsPanel'\n\nexport const PreactQueryDevtools = Devtools.PreactQueryDevtools\nexport const PreactQueryDevtoolsPanel = DevtoolsPanel.PreactQueryDevtoolsPanel\n"],"mappings":";;;;AAGA,MAAa,sBAAA,4BAAA;AACb,MAAa,2BAAA,iCAAA"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { PreactQueryDevtools as PreactQueryDevtools$1 } from "./PreactQueryDevtools.cjs";
|
|
2
|
+
import { PreactQueryDevtoolsPanel as PreactQueryDevtoolsPanel$1 } from "./PreactQueryDevtoolsPanel.cjs";
|
|
3
|
+
//#region src/production.d.ts
|
|
4
|
+
declare const PreactQueryDevtools: typeof PreactQueryDevtools$1;
|
|
5
|
+
declare const PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel$1;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { PreactQueryDevtools, PreactQueryDevtoolsPanel };
|
|
8
|
+
//# sourceMappingURL=production.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"production.d.cts","names":[],"sources":["../../src/production.ts"],"mappings":";;;cAGa,4BAAmB;cACnB,iCAAwB"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { PreactQueryDevtools as PreactQueryDevtools$1 } from "./PreactQueryDevtools.js";
|
|
2
|
+
import { PreactQueryDevtoolsPanel as PreactQueryDevtoolsPanel$1 } from "./PreactQueryDevtoolsPanel.js";
|
|
3
|
+
//#region src/production.d.ts
|
|
4
|
+
declare const PreactQueryDevtools: typeof PreactQueryDevtools$1;
|
|
5
|
+
declare const PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel$1;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { PreactQueryDevtools, PreactQueryDevtoolsPanel };
|
|
8
|
+
//# sourceMappingURL=production.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"production.d.ts","names":[],"sources":["../../src/production.ts"],"mappings":";;;cAGa,4BAAmB;cACnB,iCAAwB"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
1
|
+
import { PreactQueryDevtools as PreactQueryDevtools$1 } from "./PreactQueryDevtools.js";
|
|
2
|
+
import { PreactQueryDevtoolsPanel as PreactQueryDevtoolsPanel$1 } from "./PreactQueryDevtoolsPanel.js";
|
|
3
|
+
//#region src/production.ts
|
|
4
|
+
const PreactQueryDevtools = PreactQueryDevtools$1;
|
|
5
|
+
const PreactQueryDevtoolsPanel = PreactQueryDevtoolsPanel$1;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { PreactQueryDevtools, PreactQueryDevtoolsPanel };
|
|
8
|
+
|
|
10
9
|
//# sourceMappingURL=production.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/production.ts"],"sourcesContent":["import * as Devtools from './PreactQueryDevtools'\nimport * as DevtoolsPanel from './PreactQueryDevtoolsPanel'\n\nexport const PreactQueryDevtools = Devtools.PreactQueryDevtools\nexport const PreactQueryDevtoolsPanel = DevtoolsPanel.PreactQueryDevtoolsPanel\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"production.js","names":["Devtools.PreactQueryDevtools","DevtoolsPanel.PreactQueryDevtoolsPanel"],"sources":["../../src/production.ts"],"sourcesContent":["import * as Devtools from './PreactQueryDevtools'\nimport * as DevtoolsPanel from './PreactQueryDevtoolsPanel'\n\nexport const PreactQueryDevtools = Devtools.PreactQueryDevtools\nexport const PreactQueryDevtoolsPanel = DevtoolsPanel.PreactQueryDevtoolsPanel\n"],"mappings":";;;AAGA,MAAa,sBAAsBA;AACnC,MAAa,2BAA2BC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|