@tanstack/react-query-devtools 5.14.5 → 5.14.7
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/devtools-0Hr18ibL.d.cts +43 -0
- package/build/legacy/devtools.d.cts +1 -1
- package/build/legacy/index.d.cts +1 -1
- package/build/legacy/production.d.cts +1 -1
- package/build/modern/devtools-0Hr18ibL.d.cts +43 -0
- package/build/modern/devtools.d.cts +1 -1
- package/build/modern/index.d.cts +1 -1
- package/build/modern/production.d.cts +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DevtoolsButtonPosition, DevtoolsPosition, DevToolsErrorType } from '@tanstack/query-devtools';
|
|
3
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
4
|
+
|
|
5
|
+
interface DevtoolsOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Set this true if you want the dev tools to default to being open
|
|
8
|
+
*/
|
|
9
|
+
initialIsOpen?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The position of the React Query logo to open and close the devtools panel.
|
|
12
|
+
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
|
|
13
|
+
* Defaults to 'bottom-left'.
|
|
14
|
+
*/
|
|
15
|
+
buttonPosition?: DevtoolsButtonPosition;
|
|
16
|
+
/**
|
|
17
|
+
* The position of the React Query devtools panel.
|
|
18
|
+
* 'top' | 'bottom' | 'left' | 'right'
|
|
19
|
+
* Defaults to 'bottom'.
|
|
20
|
+
*/
|
|
21
|
+
position?: DevtoolsPosition;
|
|
22
|
+
/**
|
|
23
|
+
* Custom instance of QueryClient
|
|
24
|
+
*/
|
|
25
|
+
client?: QueryClient;
|
|
26
|
+
/**
|
|
27
|
+
* Use this so you can define custom errors that can be shown in the devtools.
|
|
28
|
+
*/
|
|
29
|
+
errorTypes?: Array<DevToolsErrorType>;
|
|
30
|
+
/**
|
|
31
|
+
* 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.
|
|
32
|
+
*/
|
|
33
|
+
styleNonce?: string;
|
|
34
|
+
}
|
|
35
|
+
declare function ReactQueryDevtools(props: DevtoolsOptions): React.ReactElement | null;
|
|
36
|
+
|
|
37
|
+
type devtools_DevtoolsOptions = DevtoolsOptions;
|
|
38
|
+
declare const devtools_ReactQueryDevtools: typeof ReactQueryDevtools;
|
|
39
|
+
declare namespace devtools {
|
|
40
|
+
export { type devtools_DevtoolsOptions as DevtoolsOptions, devtools_ReactQueryDevtools as ReactQueryDevtools };
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { type DevtoolsOptions as D, ReactQueryDevtools as R, devtools as d };
|
package/build/legacy/index.d.cts
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DevtoolsButtonPosition, DevtoolsPosition, DevToolsErrorType } from '@tanstack/query-devtools';
|
|
3
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
4
|
+
|
|
5
|
+
interface DevtoolsOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Set this true if you want the dev tools to default to being open
|
|
8
|
+
*/
|
|
9
|
+
initialIsOpen?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The position of the React Query logo to open and close the devtools panel.
|
|
12
|
+
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
|
|
13
|
+
* Defaults to 'bottom-left'.
|
|
14
|
+
*/
|
|
15
|
+
buttonPosition?: DevtoolsButtonPosition;
|
|
16
|
+
/**
|
|
17
|
+
* The position of the React Query devtools panel.
|
|
18
|
+
* 'top' | 'bottom' | 'left' | 'right'
|
|
19
|
+
* Defaults to 'bottom'.
|
|
20
|
+
*/
|
|
21
|
+
position?: DevtoolsPosition;
|
|
22
|
+
/**
|
|
23
|
+
* Custom instance of QueryClient
|
|
24
|
+
*/
|
|
25
|
+
client?: QueryClient;
|
|
26
|
+
/**
|
|
27
|
+
* Use this so you can define custom errors that can be shown in the devtools.
|
|
28
|
+
*/
|
|
29
|
+
errorTypes?: Array<DevToolsErrorType>;
|
|
30
|
+
/**
|
|
31
|
+
* 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.
|
|
32
|
+
*/
|
|
33
|
+
styleNonce?: string;
|
|
34
|
+
}
|
|
35
|
+
declare function ReactQueryDevtools(props: DevtoolsOptions): React.ReactElement | null;
|
|
36
|
+
|
|
37
|
+
type devtools_DevtoolsOptions = DevtoolsOptions;
|
|
38
|
+
declare const devtools_ReactQueryDevtools: typeof ReactQueryDevtools;
|
|
39
|
+
declare namespace devtools {
|
|
40
|
+
export { type devtools_DevtoolsOptions as DevtoolsOptions, devtools_ReactQueryDevtools as ReactQueryDevtools };
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { type DevtoolsOptions as D, ReactQueryDevtools as R, devtools as d };
|
package/build/modern/index.d.cts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-query-devtools",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.7",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack/react-query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,16 +57,16 @@
|
|
|
57
57
|
"src"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@tanstack/query-devtools": "5.14.
|
|
60
|
+
"@tanstack/query-devtools": "5.14.7"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@types/react": "^18.2.
|
|
63
|
+
"@types/react": "^18.2.45",
|
|
64
64
|
"react": "^18.2.0",
|
|
65
|
-
"@tanstack/react-query": "5.14.
|
|
65
|
+
"@tanstack/react-query": "5.14.6"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|
|
69
|
-
"@tanstack/react-query": "^5.14.
|
|
69
|
+
"@tanstack/react-query": "^5.14.6"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"clean": "rimraf ./build && rimraf ./coverage",
|