@tanstack/query-devtools 5.0.0-rc.10 → 5.0.0-rc.13
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/Devtools/{ECUC7UFN.jsx → 3BAJISSX.jsx} +558 -286
- package/build/Devtools/{UZ6MTF6A.js → 4TNE5QTO.js} +610 -366
- package/build/Devtools/{56YMBTAH.jsx → OWSLDUSP.jsx} +558 -286
- package/build/Devtools/{B5V4HXOX.js → YSRICXZI.js} +610 -366
- package/build/dev.cjs +616 -372
- package/build/dev.js +1 -1
- package/build/dev.jsx +1 -1
- package/build/index.cjs +616 -372
- package/build/index.js +1 -1
- package/build/index.jsx +1 -1
- package/package.json +2 -2
- package/src/Context.ts +9 -0
- package/src/Devtools.tsx +422 -206
- package/src/Explorer.tsx +72 -47
- package/src/icons/index.tsx +113 -50
- package/src/utils.tsx +17 -0
package/build/index.js
CHANGED
|
@@ -52,7 +52,7 @@ var TanstackQueryDevtools = class {
|
|
|
52
52
|
if (this.Component) {
|
|
53
53
|
Devtools = this.Component;
|
|
54
54
|
} else {
|
|
55
|
-
Devtools = lazy(() => import('./Devtools/
|
|
55
|
+
Devtools = lazy(() => import('./Devtools/4TNE5QTO.js'));
|
|
56
56
|
this.Component = Devtools;
|
|
57
57
|
}
|
|
58
58
|
const _self$ = this;
|
package/build/index.jsx
CHANGED
|
@@ -56,7 +56,7 @@ var TanstackQueryDevtools = class {
|
|
|
56
56
|
if (this.Component) {
|
|
57
57
|
Devtools = this.Component;
|
|
58
58
|
} else {
|
|
59
|
-
Devtools = lazy(() => import("./Devtools/
|
|
59
|
+
Devtools = lazy(() => import("./Devtools/3BAJISSX.jsx"));
|
|
60
60
|
this.Component = Devtools;
|
|
61
61
|
}
|
|
62
62
|
return <Devtools
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/query-devtools",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.13",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack Query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"superjson": "^1.12.4",
|
|
51
51
|
"tsup-preset-solid": "^2.0.1",
|
|
52
52
|
"vite-plugin-solid": "^2.7.0",
|
|
53
|
-
"@tanstack/query-core": "5.0.0-rc.
|
|
53
|
+
"@tanstack/query-core": "5.0.0-rc.12"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"clean": "rimraf ./build && rimraf ./coverage",
|
package/src/Context.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createContext, useContext } from 'solid-js'
|
|
2
|
+
import type { Accessor } from 'solid-js'
|
|
2
3
|
import type { Query, QueryClient, onlineManager } from '@tanstack/query-core'
|
|
3
4
|
|
|
4
5
|
type XPosition = 'left' | 'right'
|
|
@@ -39,3 +40,11 @@ export const QueryDevtoolsContext = createContext<QueryDevtoolsProps>({
|
|
|
39
40
|
export function useQueryDevtoolsContext() {
|
|
40
41
|
return useContext(QueryDevtoolsContext)
|
|
41
42
|
}
|
|
43
|
+
|
|
44
|
+
export const ThemeContext = createContext<Accessor<'light' | 'dark'>>(
|
|
45
|
+
() => 'dark' as const,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
export function useTheme() {
|
|
49
|
+
return useContext(ThemeContext)
|
|
50
|
+
}
|