@tanstack/query-devtools 5.51.16 → 5.52.3
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/index.d.cts +4 -4
- package/build/index.d.ts +4 -4
- package/package.json +2 -2
- package/src/Context.ts +2 -2
- package/src/Devtools.tsx +2 -2
- package/src/index.tsx +4 -4
package/build/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ type XPosition = 'left' | 'right';
|
|
|
4
4
|
type YPosition = 'top' | 'bottom';
|
|
5
5
|
type DevtoolsPosition = XPosition | YPosition;
|
|
6
6
|
type DevtoolsButtonPosition = `${YPosition}-${XPosition}` | 'relative';
|
|
7
|
-
interface
|
|
7
|
+
interface DevtoolsErrorType {
|
|
8
8
|
/**
|
|
9
9
|
* The name of the error.
|
|
10
10
|
*/
|
|
@@ -22,7 +22,7 @@ interface QueryDevtoolsProps {
|
|
|
22
22
|
buttonPosition?: DevtoolsButtonPosition;
|
|
23
23
|
position?: DevtoolsPosition;
|
|
24
24
|
initialIsOpen?: boolean;
|
|
25
|
-
errorTypes?: Array<
|
|
25
|
+
errorTypes?: Array<DevtoolsErrorType>;
|
|
26
26
|
shadowDOMTarget?: ShadowRoot;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -36,10 +36,10 @@ declare class TanstackQueryDevtools {
|
|
|
36
36
|
setButtonPosition(position: DevtoolsButtonPosition): void;
|
|
37
37
|
setPosition(position: DevtoolsPosition): void;
|
|
38
38
|
setInitialIsOpen(isOpen: boolean): void;
|
|
39
|
-
setErrorTypes(errorTypes: Array<
|
|
39
|
+
setErrorTypes(errorTypes: Array<DevtoolsErrorType>): void;
|
|
40
40
|
setClient(client: QueryClient): void;
|
|
41
41
|
mount<T extends HTMLElement>(el: T): void;
|
|
42
42
|
unmount(): void;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
export { type
|
|
45
|
+
export { type DevtoolsButtonPosition, type DevtoolsErrorType, type DevtoolsPosition, TanstackQueryDevtools, type TanstackQueryDevtoolsConfig };
|
package/build/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ type XPosition = 'left' | 'right';
|
|
|
4
4
|
type YPosition = 'top' | 'bottom';
|
|
5
5
|
type DevtoolsPosition = XPosition | YPosition;
|
|
6
6
|
type DevtoolsButtonPosition = `${YPosition}-${XPosition}` | 'relative';
|
|
7
|
-
interface
|
|
7
|
+
interface DevtoolsErrorType {
|
|
8
8
|
/**
|
|
9
9
|
* The name of the error.
|
|
10
10
|
*/
|
|
@@ -22,7 +22,7 @@ interface QueryDevtoolsProps {
|
|
|
22
22
|
buttonPosition?: DevtoolsButtonPosition;
|
|
23
23
|
position?: DevtoolsPosition;
|
|
24
24
|
initialIsOpen?: boolean;
|
|
25
|
-
errorTypes?: Array<
|
|
25
|
+
errorTypes?: Array<DevtoolsErrorType>;
|
|
26
26
|
shadowDOMTarget?: ShadowRoot;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -36,10 +36,10 @@ declare class TanstackQueryDevtools {
|
|
|
36
36
|
setButtonPosition(position: DevtoolsButtonPosition): void;
|
|
37
37
|
setPosition(position: DevtoolsPosition): void;
|
|
38
38
|
setInitialIsOpen(isOpen: boolean): void;
|
|
39
|
-
setErrorTypes(errorTypes: Array<
|
|
39
|
+
setErrorTypes(errorTypes: Array<DevtoolsErrorType>): void;
|
|
40
40
|
setClient(client: QueryClient): void;
|
|
41
41
|
mount<T extends HTMLElement>(el: T): void;
|
|
42
42
|
unmount(): void;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
export { type
|
|
45
|
+
export { type DevtoolsButtonPosition, type DevtoolsErrorType, type DevtoolsPosition, TanstackQueryDevtools, type TanstackQueryDevtoolsConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/query-devtools",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.52.3",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack Query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"superjson": "^2.2.1",
|
|
55
55
|
"tsup-preset-solid": "^2.2.0",
|
|
56
56
|
"vite-plugin-solid": "^2.10.2",
|
|
57
|
-
"@tanstack/query-core": "5.
|
|
57
|
+
"@tanstack/query-core": "5.52.3"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {}
|
|
60
60
|
}
|
package/src/Context.ts
CHANGED
|
@@ -7,7 +7,7 @@ type YPosition = 'top' | 'bottom'
|
|
|
7
7
|
export type DevtoolsPosition = XPosition | YPosition
|
|
8
8
|
export type DevtoolsButtonPosition = `${YPosition}-${XPosition}` | 'relative'
|
|
9
9
|
|
|
10
|
-
export interface
|
|
10
|
+
export interface DevtoolsErrorType {
|
|
11
11
|
/**
|
|
12
12
|
* The name of the error.
|
|
13
13
|
*/
|
|
@@ -27,7 +27,7 @@ export interface QueryDevtoolsProps {
|
|
|
27
27
|
buttonPosition?: DevtoolsButtonPosition
|
|
28
28
|
position?: DevtoolsPosition
|
|
29
29
|
initialIsOpen?: boolean
|
|
30
|
-
errorTypes?: Array<
|
|
30
|
+
errorTypes?: Array<DevtoolsErrorType>
|
|
31
31
|
shadowDOMTarget?: ShadowRoot
|
|
32
32
|
}
|
|
33
33
|
|
package/src/Devtools.tsx
CHANGED
|
@@ -62,8 +62,8 @@ import {
|
|
|
62
62
|
useTheme,
|
|
63
63
|
} from './Context'
|
|
64
64
|
import type {
|
|
65
|
-
DevToolsErrorType,
|
|
66
65
|
DevtoolsButtonPosition,
|
|
66
|
+
DevtoolsErrorType,
|
|
67
67
|
DevtoolsPosition,
|
|
68
68
|
QueryDevtoolsProps,
|
|
69
69
|
} from './Context'
|
|
@@ -1916,7 +1916,7 @@ const QueryDetails = () => {
|
|
|
1916
1916
|
promise?.catch(() => {})
|
|
1917
1917
|
}
|
|
1918
1918
|
|
|
1919
|
-
const triggerError = (errorType?:
|
|
1919
|
+
const triggerError = (errorType?: DevtoolsErrorType) => {
|
|
1920
1920
|
const error =
|
|
1921
1921
|
errorType?.initializer(activeQuery()!) ??
|
|
1922
1922
|
new Error('Unknown error from devtools')
|
package/src/index.tsx
CHANGED
|
@@ -7,14 +7,14 @@ import type {
|
|
|
7
7
|
} from '@tanstack/query-core'
|
|
8
8
|
import type { DevtoolsComponentType } from './Devtools'
|
|
9
9
|
import type {
|
|
10
|
-
DevToolsErrorType,
|
|
11
10
|
DevtoolsButtonPosition,
|
|
11
|
+
DevtoolsErrorType,
|
|
12
12
|
DevtoolsPosition,
|
|
13
13
|
QueryDevtoolsProps,
|
|
14
14
|
} from './Context'
|
|
15
15
|
import type { Signal } from 'solid-js'
|
|
16
16
|
|
|
17
|
-
export type { DevtoolsButtonPosition, DevtoolsPosition,
|
|
17
|
+
export type { DevtoolsButtonPosition, DevtoolsPosition, DevtoolsErrorType }
|
|
18
18
|
export interface TanstackQueryDevtoolsConfig extends QueryDevtoolsProps {
|
|
19
19
|
styleNonce?: string
|
|
20
20
|
shadowDOMTarget?: ShadowRoot
|
|
@@ -31,7 +31,7 @@ class TanstackQueryDevtools {
|
|
|
31
31
|
#buttonPosition: Signal<DevtoolsButtonPosition | undefined>
|
|
32
32
|
#position: Signal<DevtoolsPosition | undefined>
|
|
33
33
|
#initialIsOpen: Signal<boolean | undefined>
|
|
34
|
-
#errorTypes: Signal<Array<
|
|
34
|
+
#errorTypes: Signal<Array<DevtoolsErrorType> | undefined>
|
|
35
35
|
#Component: DevtoolsComponentType | undefined
|
|
36
36
|
#dispose?: () => void
|
|
37
37
|
|
|
@@ -72,7 +72,7 @@ class TanstackQueryDevtools {
|
|
|
72
72
|
this.#initialIsOpen[1](isOpen)
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
setErrorTypes(errorTypes: Array<
|
|
75
|
+
setErrorTypes(errorTypes: Array<DevtoolsErrorType>) {
|
|
76
76
|
this.#errorTypes[1](errorTypes)
|
|
77
77
|
}
|
|
78
78
|
|