@tanstack/react-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/ReactQueryDevtools.cjs +57 -102
- package/build/legacy/ReactQueryDevtools.cjs.map +1 -1
- package/build/legacy/ReactQueryDevtools.d.cts +53 -2
- package/build/legacy/ReactQueryDevtools.d.cts.map +1 -0
- package/build/legacy/ReactQueryDevtools.d.ts +53 -2
- package/build/legacy/ReactQueryDevtools.d.ts.map +1 -0
- package/build/legacy/ReactQueryDevtools.js +50 -64
- package/build/legacy/ReactQueryDevtools.js.map +1 -1
- package/build/legacy/ReactQueryDevtoolsPanel.cjs +55 -98
- package/build/legacy/ReactQueryDevtoolsPanel.cjs.map +1 -1
- package/build/legacy/ReactQueryDevtoolsPanel.d.cts +48 -2
- package/build/legacy/ReactQueryDevtoolsPanel.d.cts.map +1 -0
- package/build/legacy/ReactQueryDevtoolsPanel.d.ts +48 -2
- package/build/legacy/ReactQueryDevtoolsPanel.d.ts.map +1 -0
- package/build/legacy/ReactQueryDevtoolsPanel.js +48 -60
- package/build/legacy/ReactQueryDevtoolsPanel.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 +11 -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 +7 -9
- package/build/legacy/production.js.map +1 -1
- package/build/legacy/rolldown-runtime-D7D4PA-g.js +13 -0
- package/build/legacy/rolldown-runtime-VH7oDXx4.cjs +28 -0
- package/build/modern/ReactQueryDevtools.cjs +57 -102
- package/build/modern/ReactQueryDevtools.cjs.map +1 -1
- package/build/modern/ReactQueryDevtools.d.cts +53 -2
- package/build/modern/ReactQueryDevtools.d.cts.map +1 -0
- package/build/modern/ReactQueryDevtools.d.ts +53 -2
- package/build/modern/ReactQueryDevtools.d.ts.map +1 -0
- package/build/modern/ReactQueryDevtools.js +50 -64
- package/build/modern/ReactQueryDevtools.js.map +1 -1
- package/build/modern/ReactQueryDevtoolsPanel.cjs +55 -98
- package/build/modern/ReactQueryDevtoolsPanel.cjs.map +1 -1
- package/build/modern/ReactQueryDevtoolsPanel.d.cts +48 -2
- package/build/modern/ReactQueryDevtoolsPanel.d.cts.map +1 -0
- package/build/modern/ReactQueryDevtoolsPanel.d.ts +48 -2
- package/build/modern/ReactQueryDevtoolsPanel.d.ts.map +1 -0
- package/build/modern/ReactQueryDevtoolsPanel.js +48 -60
- package/build/modern/ReactQueryDevtoolsPanel.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 +11 -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 +7 -9
- package/build/modern/production.js.map +1 -1
- package/build/modern/rolldown-runtime-D7D4PA-g.js +13 -0
- package/build/modern/rolldown-runtime-VH7oDXx4.cjs +28 -0
- package/package.json +7 -9
- package/build/legacy/_tsup-dts-rollup.d.cts +0 -119
- package/build/legacy/_tsup-dts-rollup.d.ts +0 -119
- package/build/modern/_tsup-dts-rollup.d.cts +0 -119
- package/build/modern/_tsup-dts-rollup.d.ts +0 -119
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-query-devtools",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.102.1",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack/react-query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"!src/__tests__"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@tanstack/query-devtools": "5.
|
|
62
|
+
"@tanstack/query-devtools": "5.102.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@testing-library/react": "^16.1.0",
|
|
@@ -67,29 +67,27 @@
|
|
|
67
67
|
"@vitejs/plugin-react": "^4.3.4",
|
|
68
68
|
"npm-run-all2": "^5.0.0",
|
|
69
69
|
"react": "^19.2.1",
|
|
70
|
-
"@tanstack/react-query": "5.
|
|
70
|
+
"@tanstack/react-query": "5.102.1"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": "^18 || ^19",
|
|
74
|
-
"@tanstack/react-query": "^5.
|
|
74
|
+
"@tanstack/react-query": "^5.102.1"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"clean": "premove ./build ./coverage ./dist-ts",
|
|
78
78
|
"compile": "tsc --build",
|
|
79
79
|
"test:eslint": "eslint --concurrency=auto ./src",
|
|
80
80
|
"test:types": "npm-run-all --serial test:types:*",
|
|
81
|
-
"test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js --build tsconfig.legacy.json",
|
|
82
|
-
"test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js --build tsconfig.legacy.json",
|
|
83
81
|
"test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json",
|
|
84
82
|
"test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json",
|
|
85
83
|
"test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json",
|
|
86
84
|
"test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json",
|
|
87
85
|
"test:types:tscurrent": "tsc --build",
|
|
88
|
-
"test:types:
|
|
86
|
+
"test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --build",
|
|
89
87
|
"test:lib": "vitest",
|
|
90
88
|
"test:lib:dev": "pnpm run test:lib --watch",
|
|
91
89
|
"test:build": "publint --strict && attw --pack",
|
|
92
|
-
"build": "
|
|
93
|
-
"build:dev": "
|
|
90
|
+
"build": "tsdown --tsconfig tsconfig.prod.json",
|
|
91
|
+
"build:dev": "tsdown --watch"
|
|
94
92
|
}
|
|
95
93
|
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
|
|
2
|
-
import type { DevtoolsErrorType } from '@tanstack/query-devtools';
|
|
3
|
-
import type { DevtoolsPosition } from '@tanstack/query-devtools';
|
|
4
|
-
import type { QueryClient } from '@tanstack/react-query';
|
|
5
|
-
import * as React_2 from 'react';
|
|
6
|
-
import type { Theme } from '@tanstack/query-devtools';
|
|
7
|
-
|
|
8
|
-
declare namespace Devtools {
|
|
9
|
-
export {
|
|
10
|
-
ReactQueryDevtools,
|
|
11
|
-
DevtoolsOptions
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export declare interface DevtoolsOptions {
|
|
16
|
-
/**
|
|
17
|
-
* Set this true if you want the dev tools to default to being open
|
|
18
|
-
*/
|
|
19
|
-
initialIsOpen?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* The position of the TanStack logo to open and close the devtools panel.
|
|
22
|
-
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
|
|
23
|
-
* Defaults to 'bottom-right'.
|
|
24
|
-
*/
|
|
25
|
-
buttonPosition?: DevtoolsButtonPosition;
|
|
26
|
-
/**
|
|
27
|
-
* The position of the React Query devtools panel.
|
|
28
|
-
* 'top' | 'bottom' | 'left' | 'right'
|
|
29
|
-
* Defaults to 'bottom'.
|
|
30
|
-
*/
|
|
31
|
-
position?: DevtoolsPosition;
|
|
32
|
-
/**
|
|
33
|
-
* Custom instance of QueryClient
|
|
34
|
-
*/
|
|
35
|
-
client?: QueryClient;
|
|
36
|
-
/**
|
|
37
|
-
* Use this so you can define custom errors that can be shown in the devtools.
|
|
38
|
-
*/
|
|
39
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
40
|
-
/**
|
|
41
|
-
* Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
|
|
42
|
-
*/
|
|
43
|
-
styleNonce?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
46
|
-
*/
|
|
47
|
-
shadowDOMTarget?: ShadowRoot;
|
|
48
|
-
/**
|
|
49
|
-
* Set this to true to hide disabled queries from the devtools panel.
|
|
50
|
-
*/
|
|
51
|
-
hideDisabledQueries?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
54
|
-
* Defaults to 'system'.
|
|
55
|
-
*/
|
|
56
|
-
theme?: Theme;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
declare namespace DevtoolsPanel {
|
|
60
|
-
export {
|
|
61
|
-
ReactQueryDevtoolsPanel,
|
|
62
|
-
DevtoolsPanelOptions
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export declare interface DevtoolsPanelOptions {
|
|
67
|
-
/**
|
|
68
|
-
* Custom instance of QueryClient
|
|
69
|
-
*/
|
|
70
|
-
client?: QueryClient;
|
|
71
|
-
/**
|
|
72
|
-
* Use this so you can define custom errors that can be shown in the devtools.
|
|
73
|
-
*/
|
|
74
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
75
|
-
/**
|
|
76
|
-
* Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
|
|
77
|
-
*/
|
|
78
|
-
styleNonce?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
81
|
-
*/
|
|
82
|
-
shadowDOMTarget?: ShadowRoot;
|
|
83
|
-
/**
|
|
84
|
-
* Custom styles for the devtools panel
|
|
85
|
-
* @default { height: '500px' }
|
|
86
|
-
* @example { height: '100%' }
|
|
87
|
-
* @example { height: '100%', width: '100%' }
|
|
88
|
-
*/
|
|
89
|
-
style?: React_2.CSSProperties;
|
|
90
|
-
/**
|
|
91
|
-
* Callback function that is called when the devtools panel is closed
|
|
92
|
-
*/
|
|
93
|
-
onClose?: () => void;
|
|
94
|
-
/**
|
|
95
|
-
* Set this to true to hide disabled queries from the devtools panel.
|
|
96
|
-
*/
|
|
97
|
-
hideDisabledQueries?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
100
|
-
* Defaults to 'system'.
|
|
101
|
-
*/
|
|
102
|
-
theme?: Theme;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
|
|
106
|
-
|
|
107
|
-
export declare function ReactQueryDevtools(props: DevtoolsOptions): React_2.ReactElement | null;
|
|
108
|
-
|
|
109
|
-
export declare const ReactQueryDevtools_alias_1: (typeof Devtools)['ReactQueryDevtools'];
|
|
110
|
-
|
|
111
|
-
export declare const ReactQueryDevtools_alias_2: typeof Devtools.ReactQueryDevtools;
|
|
112
|
-
|
|
113
|
-
export declare function ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React_2.ReactElement | null;
|
|
114
|
-
|
|
115
|
-
export declare const ReactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['ReactQueryDevtoolsPanel'];
|
|
116
|
-
|
|
117
|
-
export declare const ReactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.ReactQueryDevtoolsPanel;
|
|
118
|
-
|
|
119
|
-
export { }
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
|
|
2
|
-
import type { DevtoolsErrorType } from '@tanstack/query-devtools';
|
|
3
|
-
import type { DevtoolsPosition } from '@tanstack/query-devtools';
|
|
4
|
-
import type { QueryClient } from '@tanstack/react-query';
|
|
5
|
-
import * as React_2 from 'react';
|
|
6
|
-
import type { Theme } from '@tanstack/query-devtools';
|
|
7
|
-
|
|
8
|
-
declare namespace Devtools {
|
|
9
|
-
export {
|
|
10
|
-
ReactQueryDevtools,
|
|
11
|
-
DevtoolsOptions
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export declare interface DevtoolsOptions {
|
|
16
|
-
/**
|
|
17
|
-
* Set this true if you want the dev tools to default to being open
|
|
18
|
-
*/
|
|
19
|
-
initialIsOpen?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* The position of the TanStack logo to open and close the devtools panel.
|
|
22
|
-
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
|
|
23
|
-
* Defaults to 'bottom-right'.
|
|
24
|
-
*/
|
|
25
|
-
buttonPosition?: DevtoolsButtonPosition;
|
|
26
|
-
/**
|
|
27
|
-
* The position of the React Query devtools panel.
|
|
28
|
-
* 'top' | 'bottom' | 'left' | 'right'
|
|
29
|
-
* Defaults to 'bottom'.
|
|
30
|
-
*/
|
|
31
|
-
position?: DevtoolsPosition;
|
|
32
|
-
/**
|
|
33
|
-
* Custom instance of QueryClient
|
|
34
|
-
*/
|
|
35
|
-
client?: QueryClient;
|
|
36
|
-
/**
|
|
37
|
-
* Use this so you can define custom errors that can be shown in the devtools.
|
|
38
|
-
*/
|
|
39
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
40
|
-
/**
|
|
41
|
-
* Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
|
|
42
|
-
*/
|
|
43
|
-
styleNonce?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
46
|
-
*/
|
|
47
|
-
shadowDOMTarget?: ShadowRoot;
|
|
48
|
-
/**
|
|
49
|
-
* Set this to true to hide disabled queries from the devtools panel.
|
|
50
|
-
*/
|
|
51
|
-
hideDisabledQueries?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
54
|
-
* Defaults to 'system'.
|
|
55
|
-
*/
|
|
56
|
-
theme?: Theme;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
declare namespace DevtoolsPanel {
|
|
60
|
-
export {
|
|
61
|
-
ReactQueryDevtoolsPanel,
|
|
62
|
-
DevtoolsPanelOptions
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export declare interface DevtoolsPanelOptions {
|
|
67
|
-
/**
|
|
68
|
-
* Custom instance of QueryClient
|
|
69
|
-
*/
|
|
70
|
-
client?: QueryClient;
|
|
71
|
-
/**
|
|
72
|
-
* Use this so you can define custom errors that can be shown in the devtools.
|
|
73
|
-
*/
|
|
74
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
75
|
-
/**
|
|
76
|
-
* Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
|
|
77
|
-
*/
|
|
78
|
-
styleNonce?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
81
|
-
*/
|
|
82
|
-
shadowDOMTarget?: ShadowRoot;
|
|
83
|
-
/**
|
|
84
|
-
* Custom styles for the devtools panel
|
|
85
|
-
* @default { height: '500px' }
|
|
86
|
-
* @example { height: '100%' }
|
|
87
|
-
* @example { height: '100%', width: '100%' }
|
|
88
|
-
*/
|
|
89
|
-
style?: React_2.CSSProperties;
|
|
90
|
-
/**
|
|
91
|
-
* Callback function that is called when the devtools panel is closed
|
|
92
|
-
*/
|
|
93
|
-
onClose?: () => void;
|
|
94
|
-
/**
|
|
95
|
-
* Set this to true to hide disabled queries from the devtools panel.
|
|
96
|
-
*/
|
|
97
|
-
hideDisabledQueries?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
100
|
-
* Defaults to 'system'.
|
|
101
|
-
*/
|
|
102
|
-
theme?: Theme;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
|
|
106
|
-
|
|
107
|
-
export declare function ReactQueryDevtools(props: DevtoolsOptions): React_2.ReactElement | null;
|
|
108
|
-
|
|
109
|
-
export declare const ReactQueryDevtools_alias_1: (typeof Devtools)['ReactQueryDevtools'];
|
|
110
|
-
|
|
111
|
-
export declare const ReactQueryDevtools_alias_2: typeof Devtools.ReactQueryDevtools;
|
|
112
|
-
|
|
113
|
-
export declare function ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React_2.ReactElement | null;
|
|
114
|
-
|
|
115
|
-
export declare const ReactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['ReactQueryDevtoolsPanel'];
|
|
116
|
-
|
|
117
|
-
export declare const ReactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.ReactQueryDevtoolsPanel;
|
|
118
|
-
|
|
119
|
-
export { }
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
|
|
2
|
-
import type { DevtoolsErrorType } from '@tanstack/query-devtools';
|
|
3
|
-
import type { DevtoolsPosition } from '@tanstack/query-devtools';
|
|
4
|
-
import type { QueryClient } from '@tanstack/react-query';
|
|
5
|
-
import * as React_2 from 'react';
|
|
6
|
-
import type { Theme } from '@tanstack/query-devtools';
|
|
7
|
-
|
|
8
|
-
declare namespace Devtools {
|
|
9
|
-
export {
|
|
10
|
-
ReactQueryDevtools,
|
|
11
|
-
DevtoolsOptions
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export declare interface DevtoolsOptions {
|
|
16
|
-
/**
|
|
17
|
-
* Set this true if you want the dev tools to default to being open
|
|
18
|
-
*/
|
|
19
|
-
initialIsOpen?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* The position of the TanStack logo to open and close the devtools panel.
|
|
22
|
-
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
|
|
23
|
-
* Defaults to 'bottom-right'.
|
|
24
|
-
*/
|
|
25
|
-
buttonPosition?: DevtoolsButtonPosition;
|
|
26
|
-
/**
|
|
27
|
-
* The position of the React Query devtools panel.
|
|
28
|
-
* 'top' | 'bottom' | 'left' | 'right'
|
|
29
|
-
* Defaults to 'bottom'.
|
|
30
|
-
*/
|
|
31
|
-
position?: DevtoolsPosition;
|
|
32
|
-
/**
|
|
33
|
-
* Custom instance of QueryClient
|
|
34
|
-
*/
|
|
35
|
-
client?: QueryClient;
|
|
36
|
-
/**
|
|
37
|
-
* Use this so you can define custom errors that can be shown in the devtools.
|
|
38
|
-
*/
|
|
39
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
40
|
-
/**
|
|
41
|
-
* Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
|
|
42
|
-
*/
|
|
43
|
-
styleNonce?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
46
|
-
*/
|
|
47
|
-
shadowDOMTarget?: ShadowRoot;
|
|
48
|
-
/**
|
|
49
|
-
* Set this to true to hide disabled queries from the devtools panel.
|
|
50
|
-
*/
|
|
51
|
-
hideDisabledQueries?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
54
|
-
* Defaults to 'system'.
|
|
55
|
-
*/
|
|
56
|
-
theme?: Theme;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
declare namespace DevtoolsPanel {
|
|
60
|
-
export {
|
|
61
|
-
ReactQueryDevtoolsPanel,
|
|
62
|
-
DevtoolsPanelOptions
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export declare interface DevtoolsPanelOptions {
|
|
67
|
-
/**
|
|
68
|
-
* Custom instance of QueryClient
|
|
69
|
-
*/
|
|
70
|
-
client?: QueryClient;
|
|
71
|
-
/**
|
|
72
|
-
* Use this so you can define custom errors that can be shown in the devtools.
|
|
73
|
-
*/
|
|
74
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
75
|
-
/**
|
|
76
|
-
* Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
|
|
77
|
-
*/
|
|
78
|
-
styleNonce?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
81
|
-
*/
|
|
82
|
-
shadowDOMTarget?: ShadowRoot;
|
|
83
|
-
/**
|
|
84
|
-
* Custom styles for the devtools panel
|
|
85
|
-
* @default { height: '500px' }
|
|
86
|
-
* @example { height: '100%' }
|
|
87
|
-
* @example { height: '100%', width: '100%' }
|
|
88
|
-
*/
|
|
89
|
-
style?: React_2.CSSProperties;
|
|
90
|
-
/**
|
|
91
|
-
* Callback function that is called when the devtools panel is closed
|
|
92
|
-
*/
|
|
93
|
-
onClose?: () => void;
|
|
94
|
-
/**
|
|
95
|
-
* Set this to true to hide disabled queries from the devtools panel.
|
|
96
|
-
*/
|
|
97
|
-
hideDisabledQueries?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
100
|
-
* Defaults to 'system'.
|
|
101
|
-
*/
|
|
102
|
-
theme?: Theme;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
|
|
106
|
-
|
|
107
|
-
export declare function ReactQueryDevtools(props: DevtoolsOptions): React_2.ReactElement | null;
|
|
108
|
-
|
|
109
|
-
export declare const ReactQueryDevtools_alias_1: (typeof Devtools)['ReactQueryDevtools'];
|
|
110
|
-
|
|
111
|
-
export declare const ReactQueryDevtools_alias_2: typeof Devtools.ReactQueryDevtools;
|
|
112
|
-
|
|
113
|
-
export declare function ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React_2.ReactElement | null;
|
|
114
|
-
|
|
115
|
-
export declare const ReactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['ReactQueryDevtoolsPanel'];
|
|
116
|
-
|
|
117
|
-
export declare const ReactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.ReactQueryDevtoolsPanel;
|
|
118
|
-
|
|
119
|
-
export { }
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
|
|
2
|
-
import type { DevtoolsErrorType } from '@tanstack/query-devtools';
|
|
3
|
-
import type { DevtoolsPosition } from '@tanstack/query-devtools';
|
|
4
|
-
import type { QueryClient } from '@tanstack/react-query';
|
|
5
|
-
import * as React_2 from 'react';
|
|
6
|
-
import type { Theme } from '@tanstack/query-devtools';
|
|
7
|
-
|
|
8
|
-
declare namespace Devtools {
|
|
9
|
-
export {
|
|
10
|
-
ReactQueryDevtools,
|
|
11
|
-
DevtoolsOptions
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export declare interface DevtoolsOptions {
|
|
16
|
-
/**
|
|
17
|
-
* Set this true if you want the dev tools to default to being open
|
|
18
|
-
*/
|
|
19
|
-
initialIsOpen?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* The position of the TanStack logo to open and close the devtools panel.
|
|
22
|
-
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
|
|
23
|
-
* Defaults to 'bottom-right'.
|
|
24
|
-
*/
|
|
25
|
-
buttonPosition?: DevtoolsButtonPosition;
|
|
26
|
-
/**
|
|
27
|
-
* The position of the React Query devtools panel.
|
|
28
|
-
* 'top' | 'bottom' | 'left' | 'right'
|
|
29
|
-
* Defaults to 'bottom'.
|
|
30
|
-
*/
|
|
31
|
-
position?: DevtoolsPosition;
|
|
32
|
-
/**
|
|
33
|
-
* Custom instance of QueryClient
|
|
34
|
-
*/
|
|
35
|
-
client?: QueryClient;
|
|
36
|
-
/**
|
|
37
|
-
* Use this so you can define custom errors that can be shown in the devtools.
|
|
38
|
-
*/
|
|
39
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
40
|
-
/**
|
|
41
|
-
* Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
|
|
42
|
-
*/
|
|
43
|
-
styleNonce?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
46
|
-
*/
|
|
47
|
-
shadowDOMTarget?: ShadowRoot;
|
|
48
|
-
/**
|
|
49
|
-
* Set this to true to hide disabled queries from the devtools panel.
|
|
50
|
-
*/
|
|
51
|
-
hideDisabledQueries?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
54
|
-
* Defaults to 'system'.
|
|
55
|
-
*/
|
|
56
|
-
theme?: Theme;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
declare namespace DevtoolsPanel {
|
|
60
|
-
export {
|
|
61
|
-
ReactQueryDevtoolsPanel,
|
|
62
|
-
DevtoolsPanelOptions
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export declare interface DevtoolsPanelOptions {
|
|
67
|
-
/**
|
|
68
|
-
* Custom instance of QueryClient
|
|
69
|
-
*/
|
|
70
|
-
client?: QueryClient;
|
|
71
|
-
/**
|
|
72
|
-
* Use this so you can define custom errors that can be shown in the devtools.
|
|
73
|
-
*/
|
|
74
|
-
errorTypes?: Array<DevtoolsErrorType>;
|
|
75
|
-
/**
|
|
76
|
-
* Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
|
|
77
|
-
*/
|
|
78
|
-
styleNonce?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
81
|
-
*/
|
|
82
|
-
shadowDOMTarget?: ShadowRoot;
|
|
83
|
-
/**
|
|
84
|
-
* Custom styles for the devtools panel
|
|
85
|
-
* @default { height: '500px' }
|
|
86
|
-
* @example { height: '100%' }
|
|
87
|
-
* @example { height: '100%', width: '100%' }
|
|
88
|
-
*/
|
|
89
|
-
style?: React_2.CSSProperties;
|
|
90
|
-
/**
|
|
91
|
-
* Callback function that is called when the devtools panel is closed
|
|
92
|
-
*/
|
|
93
|
-
onClose?: () => void;
|
|
94
|
-
/**
|
|
95
|
-
* Set this to true to hide disabled queries from the devtools panel.
|
|
96
|
-
*/
|
|
97
|
-
hideDisabledQueries?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
|
|
100
|
-
* Defaults to 'system'.
|
|
101
|
-
*/
|
|
102
|
-
theme?: Theme;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
|
|
106
|
-
|
|
107
|
-
export declare function ReactQueryDevtools(props: DevtoolsOptions): React_2.ReactElement | null;
|
|
108
|
-
|
|
109
|
-
export declare const ReactQueryDevtools_alias_1: (typeof Devtools)['ReactQueryDevtools'];
|
|
110
|
-
|
|
111
|
-
export declare const ReactQueryDevtools_alias_2: typeof Devtools.ReactQueryDevtools;
|
|
112
|
-
|
|
113
|
-
export declare function ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React_2.ReactElement | null;
|
|
114
|
-
|
|
115
|
-
export declare const ReactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['ReactQueryDevtoolsPanel'];
|
|
116
|
-
|
|
117
|
-
export declare const ReactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.ReactQueryDevtoolsPanel;
|
|
118
|
-
|
|
119
|
-
export { }
|