@tanstack/preact-query-devtools 5.105.0 → 5.105.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-BZb79hrw.d.ts +67 -0
- package/build/legacy/PreactQueryDevtools-BZb79hrw.d.ts.map +1 -0
- package/build/legacy/PreactQueryDevtools-CszvBE3E.d.cts +67 -0
- package/build/legacy/PreactQueryDevtools-CszvBE3E.d.cts.map +1 -0
- package/build/legacy/PreactQueryDevtools.cjs +1 -2
- package/build/legacy/PreactQueryDevtools.d.cts +2 -68
- package/build/legacy/PreactQueryDevtools.d.ts +2 -68
- package/build/legacy/PreactQueryDevtools.js +1 -2
- package/build/legacy/PreactQueryDevtoolsPanel-Cf86o6V4.d.ts +57 -0
- package/build/legacy/PreactQueryDevtoolsPanel-Cf86o6V4.d.ts.map +1 -0
- package/build/legacy/PreactQueryDevtoolsPanel-D1KDQUcf.d.cts +57 -0
- package/build/legacy/PreactQueryDevtoolsPanel-D1KDQUcf.d.cts.map +1 -0
- package/build/legacy/PreactQueryDevtoolsPanel.cjs +1 -2
- package/build/legacy/PreactQueryDevtoolsPanel.d.cts +2 -58
- package/build/legacy/PreactQueryDevtoolsPanel.d.ts +2 -58
- package/build/legacy/PreactQueryDevtoolsPanel.js +1 -2
- package/build/legacy/index.cjs +1 -2
- package/build/legacy/index.d.cts +2 -4
- package/build/legacy/index.d.cts.map +1 -1
- package/build/legacy/index.d.ts +2 -4
- package/build/legacy/index.d.ts.map +1 -1
- package/build/legacy/index.js +1 -2
- package/build/legacy/production.cjs +1 -2
- package/build/legacy/production.d.cts +2 -4
- package/build/legacy/production.d.cts.map +1 -1
- package/build/legacy/production.d.ts +2 -4
- package/build/legacy/production.d.ts.map +1 -1
- package/build/legacy/production.js +1 -2
- package/build/legacy/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
- package/build/modern/PreactQueryDevtools-BZb79hrw.d.ts +67 -0
- package/build/modern/PreactQueryDevtools-BZb79hrw.d.ts.map +1 -0
- package/build/modern/PreactQueryDevtools-CszvBE3E.d.cts +67 -0
- package/build/modern/PreactQueryDevtools-CszvBE3E.d.cts.map +1 -0
- package/build/modern/PreactQueryDevtools.cjs +1 -2
- package/build/modern/PreactQueryDevtools.d.cts +2 -68
- package/build/modern/PreactQueryDevtools.d.ts +2 -68
- package/build/modern/PreactQueryDevtools.js +1 -2
- package/build/modern/PreactQueryDevtoolsPanel-Cf86o6V4.d.ts +57 -0
- package/build/modern/PreactQueryDevtoolsPanel-Cf86o6V4.d.ts.map +1 -0
- package/build/modern/PreactQueryDevtoolsPanel-D1KDQUcf.d.cts +57 -0
- package/build/modern/PreactQueryDevtoolsPanel-D1KDQUcf.d.cts.map +1 -0
- package/build/modern/PreactQueryDevtoolsPanel.cjs +1 -2
- package/build/modern/PreactQueryDevtoolsPanel.d.cts +2 -58
- package/build/modern/PreactQueryDevtoolsPanel.d.ts +2 -58
- package/build/modern/PreactQueryDevtoolsPanel.js +1 -2
- package/build/modern/index.cjs +1 -2
- package/build/modern/index.d.cts +2 -4
- package/build/modern/index.d.cts.map +1 -1
- package/build/modern/index.d.ts +2 -4
- package/build/modern/index.d.ts.map +1 -1
- package/build/modern/index.js +1 -2
- package/build/modern/production.cjs +1 -2
- package/build/modern/production.d.cts +2 -4
- package/build/modern/production.d.cts.map +1 -1
- package/build/modern/production.d.ts +2 -4
- package/build/modern/production.d.ts.map +1 -1
- package/build/modern/production.js +1 -2
- package/build/modern/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
- package/package.json +4 -4
- package/build/legacy/PreactQueryDevtools.d.cts.map +0 -1
- package/build/legacy/PreactQueryDevtools.d.ts.map +0 -1
- package/build/legacy/PreactQueryDevtoolsPanel.d.cts.map +0 -1
- package/build/legacy/PreactQueryDevtoolsPanel.d.ts.map +0 -1
- package/build/modern/PreactQueryDevtools.d.cts.map +0 -1
- package/build/modern/PreactQueryDevtools.d.ts.map +0 -1
- package/build/modern/PreactQueryDevtoolsPanel.d.cts.map +0 -1
- package/build/modern/PreactQueryDevtoolsPanel.d.ts.map +0 -1
package/build/legacy/index.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { PreactQueryDevtools as PreactQueryDevtools$1 } from "./PreactQueryDevtools.js";
|
|
2
2
|
import { PreactQueryDevtoolsPanel as PreactQueryDevtoolsPanel$1 } from "./PreactQueryDevtoolsPanel.js";
|
|
3
|
-
|
|
3
|
+
// src/index.ts
|
|
4
4
|
const PreactQueryDevtools = process.env.NODE_ENV !== "development" ? function() {
|
|
5
5
|
return null;
|
|
6
6
|
} : PreactQueryDevtools$1;
|
|
7
7
|
const PreactQueryDevtoolsPanel = process.env.NODE_ENV !== "development" ? function() {
|
|
8
8
|
return null;
|
|
9
9
|
} : PreactQueryDevtoolsPanel$1;
|
|
10
|
-
//#endregion
|
|
11
10
|
export { PreactQueryDevtools, PreactQueryDevtoolsPanel };
|
|
12
11
|
|
|
13
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_PreactQueryDevtools = require("./PreactQueryDevtools.cjs");
|
|
3
3
|
const require_PreactQueryDevtoolsPanel = require("./PreactQueryDevtoolsPanel.cjs");
|
|
4
|
-
|
|
4
|
+
// src/production.ts
|
|
5
5
|
const PreactQueryDevtools = require_PreactQueryDevtools.PreactQueryDevtools;
|
|
6
6
|
const PreactQueryDevtoolsPanel = require_PreactQueryDevtoolsPanel.PreactQueryDevtoolsPanel;
|
|
7
|
-
//#endregion
|
|
8
7
|
exports.PreactQueryDevtools = PreactQueryDevtools;
|
|
9
8
|
exports.PreactQueryDevtoolsPanel = PreactQueryDevtoolsPanel;
|
|
10
9
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
//#region src/production.d.ts
|
|
1
|
+
import { n as PreactQueryDevtools$1, r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-CszvBE3E.cjs";
|
|
2
|
+
import { n as PreactQueryDevtoolsPanel$1, r as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel-D1KDQUcf.cjs";
|
|
4
3
|
export declare const PreactQueryDevtools: typeof PreactQueryDevtools$1;
|
|
5
4
|
export declare const PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel$1;
|
|
6
|
-
//#endregion
|
|
7
5
|
//# sourceMappingURL=production.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"production.d.cts","names":["Devtools","Devtools.PreactQueryDevtools","DevtoolsPanel","DevtoolsPanel.PreactQueryDevtoolsPanel"],"sources":["../../src/production.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"production.d.cts","names":["Devtools","Devtools.PreactQueryDevtools","DevtoolsPanel","DevtoolsPanel.PreactQueryDevtoolsPanel"],"sources":["../../src/production.ts"],"mappings":";;qBAGa,4BAAmBC;qBACnB,iCAAwBE"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
//#region src/production.d.ts
|
|
1
|
+
import { n as PreactQueryDevtools$1, r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-BZb79hrw.js";
|
|
2
|
+
import { n as PreactQueryDevtoolsPanel$1, r as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel-Cf86o6V4.js";
|
|
4
3
|
export declare const PreactQueryDevtools: typeof PreactQueryDevtools$1;
|
|
5
4
|
export declare const PreactQueryDevtoolsPanel: typeof PreactQueryDevtoolsPanel$1;
|
|
6
|
-
//#endregion
|
|
7
5
|
//# sourceMappingURL=production.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"production.d.ts","names":["Devtools","Devtools.PreactQueryDevtools","DevtoolsPanel","DevtoolsPanel.PreactQueryDevtoolsPanel"],"sources":["../../src/production.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"production.d.ts","names":["Devtools","Devtools.PreactQueryDevtools","DevtoolsPanel","DevtoolsPanel.PreactQueryDevtoolsPanel"],"sources":["../../src/production.ts"],"mappings":";;qBAGa,4BAAmBC;qBACnB,iCAAwBE"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { PreactQueryDevtools as PreactQueryDevtools$1 } from "./PreactQueryDevtools.js";
|
|
2
2
|
import { PreactQueryDevtoolsPanel as PreactQueryDevtoolsPanel$1 } from "./PreactQueryDevtoolsPanel.js";
|
|
3
|
-
|
|
3
|
+
// src/production.ts
|
|
4
4
|
const PreactQueryDevtools = PreactQueryDevtools$1;
|
|
5
5
|
const PreactQueryDevtoolsPanel = PreactQueryDevtoolsPanel$1;
|
|
6
|
-
//#endregion
|
|
7
6
|
export { PreactQueryDevtools, PreactQueryDevtoolsPanel };
|
|
8
7
|
|
|
9
8
|
//# sourceMappingURL=production.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __exportAll = (all, no_symbols) => {
|
|
4
4
|
let target = {};
|
|
@@ -9,5 +9,4 @@ var __exportAll = (all, no_symbols) => {
|
|
|
9
9
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
10
|
return target;
|
|
11
11
|
};
|
|
12
|
-
//#endregion
|
|
13
12
|
export { __exportAll as t };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { QueryClient } from "@tanstack/preact-query";
|
|
2
|
+
import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
|
|
3
|
+
import { VNode } from "preact";
|
|
4
|
+
declare namespace PreactQueryDevtools_d_exports {
|
|
5
|
+
export { DevtoolsOptions, PreactQueryDevtools };
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The props of `PreactQueryDevtools`, which renders the devtools with a toggle button that opens
|
|
9
|
+
* them.
|
|
10
|
+
*/
|
|
11
|
+
interface DevtoolsOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Set this true if you want the dev tools to default to being open
|
|
14
|
+
*/
|
|
15
|
+
initialIsOpen?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The position of the TanStack logo to open and close the devtools panel.
|
|
18
|
+
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
|
|
19
|
+
* @defaultValue bottom-right
|
|
20
|
+
*/
|
|
21
|
+
buttonPosition?: DevtoolsButtonPosition;
|
|
22
|
+
/**
|
|
23
|
+
* The position of the Preact Query devtools panel.
|
|
24
|
+
* 'top' | 'bottom' | 'left' | 'right'
|
|
25
|
+
* @defaultValue bottom
|
|
26
|
+
*/
|
|
27
|
+
position?: DevtoolsPosition;
|
|
28
|
+
/**
|
|
29
|
+
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
30
|
+
* nearest QueryClientProvider will be used.
|
|
31
|
+
*/
|
|
32
|
+
client?: QueryClient;
|
|
33
|
+
/**
|
|
34
|
+
* Use this to provide custom error type handlers for the devtools panel.
|
|
35
|
+
*/
|
|
36
|
+
errorTypes?: Array<DevtoolsErrorType>;
|
|
37
|
+
/**
|
|
38
|
+
* Use this to pass a nonce to the style tag that is added to the document
|
|
39
|
+
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
40
|
+
* nonce to allow inline styles.
|
|
41
|
+
*/
|
|
42
|
+
styleNonce?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Use this to pass a shadow DOM target to the devtools so that the styles will be applied
|
|
45
|
+
* within the shadow DOM instead of within the head tag in the light DOM.
|
|
46
|
+
*/
|
|
47
|
+
shadowDOMTarget?: ShadowRoot;
|
|
48
|
+
/**
|
|
49
|
+
* Use this to hide disabled queries from the devtools panel.
|
|
50
|
+
*/
|
|
51
|
+
hideDisabledQueries?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Use this to set the theme of the devtools panel.
|
|
54
|
+
* This overrides the theme selected in the devtools Settings menu. When omitted, the
|
|
55
|
+
* selected theme is used, or `'system'` if none is selected.
|
|
56
|
+
*/
|
|
57
|
+
theme?: Theme;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
|
|
61
|
+
* nearest `QueryClient`.
|
|
62
|
+
* @param props - The devtools options.
|
|
63
|
+
* @returns The element the devtools are mounted in.
|
|
64
|
+
*/
|
|
65
|
+
declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
|
|
66
|
+
export { PreactQueryDevtools as n, PreactQueryDevtools_d_exports as r, DevtoolsOptions as t };
|
|
67
|
+
//# sourceMappingURL=PreactQueryDevtools-BZb79hrw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
|
|
2
|
+
import { QueryClient } from "@tanstack/preact-query";
|
|
3
|
+
import { VNode } from "preact";
|
|
4
|
+
declare namespace PreactQueryDevtools_d_exports {
|
|
5
|
+
export { DevtoolsOptions, PreactQueryDevtools };
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The props of `PreactQueryDevtools`, which renders the devtools with a toggle button that opens
|
|
9
|
+
* them.
|
|
10
|
+
*/
|
|
11
|
+
interface DevtoolsOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Set this true if you want the dev tools to default to being open
|
|
14
|
+
*/
|
|
15
|
+
initialIsOpen?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The position of the TanStack logo to open and close the devtools panel.
|
|
18
|
+
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
|
|
19
|
+
* @defaultValue bottom-right
|
|
20
|
+
*/
|
|
21
|
+
buttonPosition?: DevtoolsButtonPosition;
|
|
22
|
+
/**
|
|
23
|
+
* The position of the Preact Query devtools panel.
|
|
24
|
+
* 'top' | 'bottom' | 'left' | 'right'
|
|
25
|
+
* @defaultValue bottom
|
|
26
|
+
*/
|
|
27
|
+
position?: DevtoolsPosition;
|
|
28
|
+
/**
|
|
29
|
+
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
30
|
+
* nearest QueryClientProvider will be used.
|
|
31
|
+
*/
|
|
32
|
+
client?: QueryClient;
|
|
33
|
+
/**
|
|
34
|
+
* Use this to provide custom error type handlers for the devtools panel.
|
|
35
|
+
*/
|
|
36
|
+
errorTypes?: Array<DevtoolsErrorType>;
|
|
37
|
+
/**
|
|
38
|
+
* Use this to pass a nonce to the style tag that is added to the document
|
|
39
|
+
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
40
|
+
* nonce to allow inline styles.
|
|
41
|
+
*/
|
|
42
|
+
styleNonce?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Use this to pass a shadow DOM target to the devtools so that the styles will be applied
|
|
45
|
+
* within the shadow DOM instead of within the head tag in the light DOM.
|
|
46
|
+
*/
|
|
47
|
+
shadowDOMTarget?: ShadowRoot;
|
|
48
|
+
/**
|
|
49
|
+
* Use this to hide disabled queries from the devtools panel.
|
|
50
|
+
*/
|
|
51
|
+
hideDisabledQueries?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Use this to set the theme of the devtools panel.
|
|
54
|
+
* This overrides the theme selected in the devtools Settings menu. When omitted, the
|
|
55
|
+
* selected theme is used, or `'system'` if none is selected.
|
|
56
|
+
*/
|
|
57
|
+
theme?: Theme;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
|
|
61
|
+
* nearest `QueryClient`.
|
|
62
|
+
* @param props - The devtools options.
|
|
63
|
+
* @returns The element the devtools are mounted in.
|
|
64
|
+
*/
|
|
65
|
+
declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
|
|
66
|
+
export { PreactQueryDevtools as n, PreactQueryDevtools_d_exports as r, DevtoolsOptions as t };
|
|
67
|
+
//# sourceMappingURL=PreactQueryDevtools-CszvBE3E.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtools-CszvBE3E.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"}
|
|
@@ -3,7 +3,7 @@ let preact_hooks = require("preact/hooks");
|
|
|
3
3
|
let _tanstack_preact_query = require("@tanstack/preact-query");
|
|
4
4
|
let _tanstack_query_devtools = require("@tanstack/query-devtools");
|
|
5
5
|
let preact_jsx_runtime = require("preact/jsx-runtime");
|
|
6
|
-
|
|
6
|
+
// src/PreactQueryDevtools.tsx
|
|
7
7
|
/**
|
|
8
8
|
* Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
|
|
9
9
|
* nearest `QueryClient`.
|
|
@@ -58,7 +58,6 @@ function PreactQueryDevtools(props) {
|
|
|
58
58
|
ref
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
//#endregion
|
|
62
61
|
exports.PreactQueryDevtools = PreactQueryDevtools;
|
|
63
62
|
|
|
64
63
|
//# sourceMappingURL=PreactQueryDevtools.cjs.map
|
|
@@ -1,68 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { VNode } from "preact";
|
|
4
|
-
declare namespace PreactQueryDevtools_d_exports {
|
|
5
|
-
export { DevtoolsOptions, PreactQueryDevtools };
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The props of `PreactQueryDevtools`, which renders the devtools with a toggle button that opens
|
|
9
|
-
* them.
|
|
10
|
-
*/
|
|
11
|
-
export interface DevtoolsOptions {
|
|
12
|
-
/**
|
|
13
|
-
* Set this true if you want the dev tools to default to being open
|
|
14
|
-
*/
|
|
15
|
-
initialIsOpen?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* The position of the TanStack logo to open and close the devtools panel.
|
|
18
|
-
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
|
|
19
|
-
* @defaultValue bottom-right
|
|
20
|
-
*/
|
|
21
|
-
buttonPosition?: DevtoolsButtonPosition;
|
|
22
|
-
/**
|
|
23
|
-
* The position of the Preact Query devtools panel.
|
|
24
|
-
* 'top' | 'bottom' | 'left' | 'right'
|
|
25
|
-
* @defaultValue bottom
|
|
26
|
-
*/
|
|
27
|
-
position?: DevtoolsPosition;
|
|
28
|
-
/**
|
|
29
|
-
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
30
|
-
* nearest QueryClientProvider will be used.
|
|
31
|
-
*/
|
|
32
|
-
client?: QueryClient;
|
|
33
|
-
/**
|
|
34
|
-
* Use this to provide custom error type handlers for the devtools panel.
|
|
35
|
-
*/
|
|
36
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
37
|
-
/**
|
|
38
|
-
* Use this to pass a nonce to the style tag that is added to the document
|
|
39
|
-
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
40
|
-
* nonce to allow inline styles.
|
|
41
|
-
*/
|
|
42
|
-
styleNonce?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Use this to pass a shadow DOM target to the devtools so that the styles will be applied
|
|
45
|
-
* within the shadow DOM instead of within the head tag in the light DOM.
|
|
46
|
-
*/
|
|
47
|
-
shadowDOMTarget?: ShadowRoot;
|
|
48
|
-
/**
|
|
49
|
-
* Use this to hide disabled queries from the devtools panel.
|
|
50
|
-
*/
|
|
51
|
-
hideDisabledQueries?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Use this to set the theme of the devtools panel.
|
|
54
|
-
* This overrides the theme selected in the devtools Settings menu. When omitted, the
|
|
55
|
-
* selected theme is used, or `'system'` if none is selected.
|
|
56
|
-
*/
|
|
57
|
-
theme?: Theme;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
|
|
61
|
-
* nearest `QueryClient`.
|
|
62
|
-
* @param props - The devtools options.
|
|
63
|
-
* @returns The element the devtools are mounted in.
|
|
64
|
-
*/
|
|
65
|
-
export declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
|
|
66
|
-
//#endregion
|
|
67
|
-
export { PreactQueryDevtools_d_exports as t };
|
|
68
|
-
//# sourceMappingURL=PreactQueryDevtools.d.cts.map
|
|
1
|
+
import { n as PreactQueryDevtools, t as DevtoolsOptions } from "./PreactQueryDevtools-CszvBE3E.cjs";
|
|
2
|
+
export { DevtoolsOptions, PreactQueryDevtools };
|
|
@@ -1,68 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { VNode } from "preact";
|
|
4
|
-
declare namespace PreactQueryDevtools_d_exports {
|
|
5
|
-
export { DevtoolsOptions, PreactQueryDevtools };
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The props of `PreactQueryDevtools`, which renders the devtools with a toggle button that opens
|
|
9
|
-
* them.
|
|
10
|
-
*/
|
|
11
|
-
export interface DevtoolsOptions {
|
|
12
|
-
/**
|
|
13
|
-
* Set this true if you want the dev tools to default to being open
|
|
14
|
-
*/
|
|
15
|
-
initialIsOpen?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* The position of the TanStack logo to open and close the devtools panel.
|
|
18
|
-
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
|
|
19
|
-
* @defaultValue bottom-right
|
|
20
|
-
*/
|
|
21
|
-
buttonPosition?: DevtoolsButtonPosition;
|
|
22
|
-
/**
|
|
23
|
-
* The position of the Preact Query devtools panel.
|
|
24
|
-
* 'top' | 'bottom' | 'left' | 'right'
|
|
25
|
-
* @defaultValue bottom
|
|
26
|
-
*/
|
|
27
|
-
position?: DevtoolsPosition;
|
|
28
|
-
/**
|
|
29
|
-
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
30
|
-
* nearest QueryClientProvider will be used.
|
|
31
|
-
*/
|
|
32
|
-
client?: QueryClient;
|
|
33
|
-
/**
|
|
34
|
-
* Use this to provide custom error type handlers for the devtools panel.
|
|
35
|
-
*/
|
|
36
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
37
|
-
/**
|
|
38
|
-
* Use this to pass a nonce to the style tag that is added to the document
|
|
39
|
-
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
40
|
-
* nonce to allow inline styles.
|
|
41
|
-
*/
|
|
42
|
-
styleNonce?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Use this to pass a shadow DOM target to the devtools so that the styles will be applied
|
|
45
|
-
* within the shadow DOM instead of within the head tag in the light DOM.
|
|
46
|
-
*/
|
|
47
|
-
shadowDOMTarget?: ShadowRoot;
|
|
48
|
-
/**
|
|
49
|
-
* Use this to hide disabled queries from the devtools panel.
|
|
50
|
-
*/
|
|
51
|
-
hideDisabledQueries?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Use this to set the theme of the devtools panel.
|
|
54
|
-
* This overrides the theme selected in the devtools Settings menu. When omitted, the
|
|
55
|
-
* selected theme is used, or `'system'` if none is selected.
|
|
56
|
-
*/
|
|
57
|
-
theme?: Theme;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
|
|
61
|
-
* nearest `QueryClient`.
|
|
62
|
-
* @param props - The devtools options.
|
|
63
|
-
* @returns The element the devtools are mounted in.
|
|
64
|
-
*/
|
|
65
|
-
export declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
|
|
66
|
-
//#endregion
|
|
67
|
-
export { PreactQueryDevtools_d_exports as t };
|
|
68
|
-
//# sourceMappingURL=PreactQueryDevtools.d.ts.map
|
|
1
|
+
import { n as PreactQueryDevtools, t as DevtoolsOptions } from "./PreactQueryDevtools-BZb79hrw.js";
|
|
2
|
+
export { DevtoolsOptions, PreactQueryDevtools };
|
|
@@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from "preact/hooks";
|
|
|
2
2
|
import { onlineManager, useQueryClient } from "@tanstack/preact-query";
|
|
3
3
|
import { TanstackQueryDevtools } from "@tanstack/query-devtools";
|
|
4
4
|
import { jsx } from "preact/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/PreactQueryDevtools.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
|
|
8
8
|
* nearest `QueryClient`.
|
|
@@ -57,7 +57,6 @@ function PreactQueryDevtools(props) {
|
|
|
57
57
|
ref
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
//#endregion
|
|
61
60
|
export { PreactQueryDevtools };
|
|
62
61
|
|
|
63
62
|
//# sourceMappingURL=PreactQueryDevtools.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
/**
|
|
8
|
+
* The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.
|
|
9
|
+
*/
|
|
10
|
+
interface DevtoolsPanelOptions {
|
|
11
|
+
/**
|
|
12
|
+
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
13
|
+
* nearest QueryClientProvider will be used.
|
|
14
|
+
*/
|
|
15
|
+
client?: QueryClient;
|
|
16
|
+
/**
|
|
17
|
+
* Custom error types to be shown in the devtools.
|
|
18
|
+
*/
|
|
19
|
+
errorTypes?: Array<DevtoolsErrorType>;
|
|
20
|
+
/**
|
|
21
|
+
* Use this to pass a nonce to the style tag that is added to the document
|
|
22
|
+
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
23
|
+
* nonce to allow inline styles.
|
|
24
|
+
*/
|
|
25
|
+
styleNonce?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Use this to pass a shadow DOM target to the devtools so that the styles will be applied
|
|
28
|
+
* within the shadow DOM instead of within the head tag in the light DOM.
|
|
29
|
+
*/
|
|
30
|
+
shadowDOMTarget?: ShadowRoot;
|
|
31
|
+
/**
|
|
32
|
+
* Custom styles for the devtools panel container.
|
|
33
|
+
*/
|
|
34
|
+
style?: CSSProperties;
|
|
35
|
+
/**
|
|
36
|
+
* Callback function when the devtools panel is closed.
|
|
37
|
+
*/
|
|
38
|
+
onClose?: () => unknown;
|
|
39
|
+
/**
|
|
40
|
+
* Use this to hide disabled queries from the devtools panel.
|
|
41
|
+
*/
|
|
42
|
+
hideDisabledQueries?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Use this to set the theme of the devtools panel.
|
|
45
|
+
* This overrides the theme selected in the devtools Settings menu. When omitted, the
|
|
46
|
+
* selected theme is used, or `'system'` if none is selected.
|
|
47
|
+
*/
|
|
48
|
+
theme?: Theme;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.
|
|
52
|
+
* @param props - The devtools panel options.
|
|
53
|
+
* @returns The element the devtools panel is mounted in.
|
|
54
|
+
*/
|
|
55
|
+
declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
|
|
56
|
+
export { PreactQueryDevtoolsPanel as n, PreactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
|
|
57
|
+
//# sourceMappingURL=PreactQueryDevtoolsPanel-Cf86o6V4.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtoolsPanel-Cf86o6V4.d.ts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;EAIlB,QAAQ;;;;EAIR;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,yBACd,OAAO,uBACN"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
/**
|
|
8
|
+
* The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.
|
|
9
|
+
*/
|
|
10
|
+
interface DevtoolsPanelOptions {
|
|
11
|
+
/**
|
|
12
|
+
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
13
|
+
* nearest QueryClientProvider will be used.
|
|
14
|
+
*/
|
|
15
|
+
client?: QueryClient;
|
|
16
|
+
/**
|
|
17
|
+
* Custom error types to be shown in the devtools.
|
|
18
|
+
*/
|
|
19
|
+
errorTypes?: Array<DevtoolsErrorType>;
|
|
20
|
+
/**
|
|
21
|
+
* Use this to pass a nonce to the style tag that is added to the document
|
|
22
|
+
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
23
|
+
* nonce to allow inline styles.
|
|
24
|
+
*/
|
|
25
|
+
styleNonce?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Use this to pass a shadow DOM target to the devtools so that the styles will be applied
|
|
28
|
+
* within the shadow DOM instead of within the head tag in the light DOM.
|
|
29
|
+
*/
|
|
30
|
+
shadowDOMTarget?: ShadowRoot;
|
|
31
|
+
/**
|
|
32
|
+
* Custom styles for the devtools panel container.
|
|
33
|
+
*/
|
|
34
|
+
style?: CSSProperties;
|
|
35
|
+
/**
|
|
36
|
+
* Callback function when the devtools panel is closed.
|
|
37
|
+
*/
|
|
38
|
+
onClose?: () => unknown;
|
|
39
|
+
/**
|
|
40
|
+
* Use this to hide disabled queries from the devtools panel.
|
|
41
|
+
*/
|
|
42
|
+
hideDisabledQueries?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Use this to set the theme of the devtools panel.
|
|
45
|
+
* This overrides the theme selected in the devtools Settings menu. When omitted, the
|
|
46
|
+
* selected theme is used, or `'system'` if none is selected.
|
|
47
|
+
*/
|
|
48
|
+
theme?: Theme;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.
|
|
52
|
+
* @param props - The devtools panel options.
|
|
53
|
+
* @returns The element the devtools panel is mounted in.
|
|
54
|
+
*/
|
|
55
|
+
declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
|
|
56
|
+
export { PreactQueryDevtoolsPanel as n, PreactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
|
|
57
|
+
//# sourceMappingURL=PreactQueryDevtoolsPanel-D1KDQUcf.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreactQueryDevtoolsPanel-D1KDQUcf.d.cts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;EAIlB,QAAQ;;;;EAIR;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,yBACd,OAAO,uBACN"}
|
|
@@ -3,7 +3,7 @@ let preact_hooks = require("preact/hooks");
|
|
|
3
3
|
let _tanstack_preact_query = require("@tanstack/preact-query");
|
|
4
4
|
let _tanstack_query_devtools = require("@tanstack/query-devtools");
|
|
5
5
|
let preact_jsx_runtime = require("preact/jsx-runtime");
|
|
6
|
-
|
|
6
|
+
// src/PreactQueryDevtoolsPanel.tsx
|
|
7
7
|
/**
|
|
8
8
|
* Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.
|
|
9
9
|
* @param props - The devtools panel options.
|
|
@@ -55,7 +55,6 @@ function PreactQueryDevtoolsPanel(props) {
|
|
|
55
55
|
ref
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
//#endregion
|
|
59
58
|
exports.PreactQueryDevtoolsPanel = PreactQueryDevtoolsPanel;
|
|
60
59
|
|
|
61
60
|
//# sourceMappingURL=PreactQueryDevtoolsPanel.cjs.map
|
|
@@ -1,58 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { CSSProperties, VNode } from "preact";
|
|
4
|
-
declare namespace PreactQueryDevtoolsPanel_d_exports {
|
|
5
|
-
export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.
|
|
9
|
-
*/
|
|
10
|
-
export interface DevtoolsPanelOptions {
|
|
11
|
-
/**
|
|
12
|
-
* Use this to provide a custom QueryClient. Otherwise, the one from the
|
|
13
|
-
* nearest QueryClientProvider will be used.
|
|
14
|
-
*/
|
|
15
|
-
client?: QueryClient;
|
|
16
|
-
/**
|
|
17
|
-
* Custom error types to be shown in the devtools.
|
|
18
|
-
*/
|
|
19
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
20
|
-
/**
|
|
21
|
-
* Use this to pass a nonce to the style tag that is added to the document
|
|
22
|
-
* head. This is useful if you are using a Content Security Policy (CSP)
|
|
23
|
-
* nonce to allow inline styles.
|
|
24
|
-
*/
|
|
25
|
-
styleNonce?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Use this to pass a shadow DOM target to the devtools so that the styles will be applied
|
|
28
|
-
* within the shadow DOM instead of within the head tag in the light DOM.
|
|
29
|
-
*/
|
|
30
|
-
shadowDOMTarget?: ShadowRoot;
|
|
31
|
-
/**
|
|
32
|
-
* Custom styles for the devtools panel container.
|
|
33
|
-
*/
|
|
34
|
-
style?: CSSProperties;
|
|
35
|
-
/**
|
|
36
|
-
* Callback function when the devtools panel is closed.
|
|
37
|
-
*/
|
|
38
|
-
onClose?: () => unknown;
|
|
39
|
-
/**
|
|
40
|
-
* Use this to hide disabled queries from the devtools panel.
|
|
41
|
-
*/
|
|
42
|
-
hideDisabledQueries?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Use this to set the theme of the devtools panel.
|
|
45
|
-
* This overrides the theme selected in the devtools Settings menu. When omitted, the
|
|
46
|
-
* selected theme is used, or `'system'` if none is selected.
|
|
47
|
-
*/
|
|
48
|
-
theme?: Theme;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.
|
|
52
|
-
* @param props - The devtools panel options.
|
|
53
|
-
* @returns The element the devtools panel is mounted in.
|
|
54
|
-
*/
|
|
55
|
-
export declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
|
|
56
|
-
//#endregion
|
|
57
|
-
export { PreactQueryDevtoolsPanel_d_exports as t };
|
|
58
|
-
//# sourceMappingURL=PreactQueryDevtoolsPanel.d.cts.map
|
|
1
|
+
import { n as PreactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./PreactQueryDevtoolsPanel-D1KDQUcf.cjs";
|
|
2
|
+
export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
|