@tanstack/query-devtools 5.8.2 → 5.8.4
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/{G2DL2NKW.jsx → 3NHE6LPY.jsx} +6 -2
- package/build/Devtools/{VZTWBJH5.js → 4HZPHOEU.js} +6 -2
- package/build/Devtools/{G2MVXYID.js → RC3HOX77.js} +6 -2
- package/build/Devtools/{RGHE4TS2.jsx → W6R25HSA.jsx} +6 -2
- package/build/dev.cjs +6 -2
- package/build/dev.js +1 -1
- package/build/dev.jsx +1 -1
- package/build/index.cjs +6 -2
- package/build/index.js +1 -1
- package/build/index.jsx +1 -1
- package/package.json +2 -2
- package/src/Devtools.tsx +10 -6
- package/src/Explorer.tsx +2 -2
- package/src/utils.tsx +32 -32
|
@@ -10511,7 +10511,9 @@ var Devtools = (props) => {
|
|
|
10511
10511
|
u`
|
|
10512
10512
|
& .tsqd-panel-transition-exit-active,
|
|
10513
10513
|
& .tsqd-panel-transition-enter-active {
|
|
10514
|
-
transition:
|
|
10514
|
+
transition:
|
|
10515
|
+
opacity 0.3s,
|
|
10516
|
+
transform 0.3s;
|
|
10515
10517
|
}
|
|
10516
10518
|
|
|
10517
10519
|
& .tsqd-panel-transition-exit-to,
|
|
@@ -10521,7 +10523,9 @@ var Devtools = (props) => {
|
|
|
10521
10523
|
|
|
10522
10524
|
& .tsqd-button-transition-exit-active,
|
|
10523
10525
|
& .tsqd-button-transition-enter-active {
|
|
10524
|
-
transition:
|
|
10526
|
+
transition:
|
|
10527
|
+
opacity 0.3s,
|
|
10528
|
+
transform 0.3s;
|
|
10525
10529
|
}
|
|
10526
10530
|
|
|
10527
10531
|
& .tsqd-button-transition-exit-to,
|
|
@@ -9654,7 +9654,9 @@ var Devtools = (props) => {
|
|
|
9654
9654
|
createRenderEffect(() => className(_el$, clsx(u`
|
|
9655
9655
|
& .tsqd-panel-transition-exit-active,
|
|
9656
9656
|
& .tsqd-panel-transition-enter-active {
|
|
9657
|
-
transition:
|
|
9657
|
+
transition:
|
|
9658
|
+
opacity 0.3s,
|
|
9659
|
+
transform 0.3s;
|
|
9658
9660
|
}
|
|
9659
9661
|
|
|
9660
9662
|
& .tsqd-panel-transition-exit-to,
|
|
@@ -9664,7 +9666,9 @@ var Devtools = (props) => {
|
|
|
9664
9666
|
|
|
9665
9667
|
& .tsqd-button-transition-exit-active,
|
|
9666
9668
|
& .tsqd-button-transition-enter-active {
|
|
9667
|
-
transition:
|
|
9669
|
+
transition:
|
|
9670
|
+
opacity 0.3s,
|
|
9671
|
+
transform 0.3s;
|
|
9668
9672
|
}
|
|
9669
9673
|
|
|
9670
9674
|
& .tsqd-button-transition-exit-to,
|
|
@@ -9653,7 +9653,9 @@ var Devtools = (props) => {
|
|
|
9653
9653
|
createRenderEffect(() => className(_el$, clsx(u`
|
|
9654
9654
|
& .tsqd-panel-transition-exit-active,
|
|
9655
9655
|
& .tsqd-panel-transition-enter-active {
|
|
9656
|
-
transition:
|
|
9656
|
+
transition:
|
|
9657
|
+
opacity 0.3s,
|
|
9658
|
+
transform 0.3s;
|
|
9657
9659
|
}
|
|
9658
9660
|
|
|
9659
9661
|
& .tsqd-panel-transition-exit-to,
|
|
@@ -9663,7 +9665,9 @@ var Devtools = (props) => {
|
|
|
9663
9665
|
|
|
9664
9666
|
& .tsqd-button-transition-exit-active,
|
|
9665
9667
|
& .tsqd-button-transition-enter-active {
|
|
9666
|
-
transition:
|
|
9668
|
+
transition:
|
|
9669
|
+
opacity 0.3s,
|
|
9670
|
+
transform 0.3s;
|
|
9667
9671
|
}
|
|
9668
9672
|
|
|
9669
9673
|
& .tsqd-button-transition-exit-to,
|
|
@@ -10510,7 +10510,9 @@ var Devtools = (props) => {
|
|
|
10510
10510
|
u`
|
|
10511
10511
|
& .tsqd-panel-transition-exit-active,
|
|
10512
10512
|
& .tsqd-panel-transition-enter-active {
|
|
10513
|
-
transition:
|
|
10513
|
+
transition:
|
|
10514
|
+
opacity 0.3s,
|
|
10515
|
+
transform 0.3s;
|
|
10514
10516
|
}
|
|
10515
10517
|
|
|
10516
10518
|
& .tsqd-panel-transition-exit-to,
|
|
@@ -10520,7 +10522,9 @@ var Devtools = (props) => {
|
|
|
10520
10522
|
|
|
10521
10523
|
& .tsqd-button-transition-exit-active,
|
|
10522
10524
|
& .tsqd-button-transition-enter-active {
|
|
10523
|
-
transition:
|
|
10525
|
+
transition:
|
|
10526
|
+
opacity 0.3s,
|
|
10527
|
+
transform 0.3s;
|
|
10524
10528
|
}
|
|
10525
10529
|
|
|
10526
10530
|
& .tsqd-button-transition-exit-to,
|
package/build/dev.cjs
CHANGED
|
@@ -13185,7 +13185,9 @@ var init_Devtools = __esm({
|
|
|
13185
13185
|
createRenderEffect(() => className(_el$, clsx(u`
|
|
13186
13186
|
& .tsqd-panel-transition-exit-active,
|
|
13187
13187
|
& .tsqd-panel-transition-enter-active {
|
|
13188
|
-
transition:
|
|
13188
|
+
transition:
|
|
13189
|
+
opacity 0.3s,
|
|
13190
|
+
transform 0.3s;
|
|
13189
13191
|
}
|
|
13190
13192
|
|
|
13191
13193
|
& .tsqd-panel-transition-exit-to,
|
|
@@ -13195,7 +13197,9 @@ var init_Devtools = __esm({
|
|
|
13195
13197
|
|
|
13196
13198
|
& .tsqd-button-transition-exit-active,
|
|
13197
13199
|
& .tsqd-button-transition-enter-active {
|
|
13198
|
-
transition:
|
|
13200
|
+
transition:
|
|
13201
|
+
opacity 0.3s,
|
|
13202
|
+
transform 0.3s;
|
|
13199
13203
|
}
|
|
13200
13204
|
|
|
13201
13205
|
& .tsqd-button-transition-exit-to,
|
package/build/dev.js
CHANGED
|
@@ -65,7 +65,7 @@ var TanstackQueryDevtools = class {
|
|
|
65
65
|
if (this.#Component) {
|
|
66
66
|
Devtools = this.#Component;
|
|
67
67
|
} else {
|
|
68
|
-
Devtools = lazy(() => import('./Devtools/
|
|
68
|
+
Devtools = lazy(() => import('./Devtools/4HZPHOEU.js'));
|
|
69
69
|
this.#Component = Devtools;
|
|
70
70
|
}
|
|
71
71
|
setupStyleSheet(this.#styleNonce);
|
package/build/dev.jsx
CHANGED
|
@@ -70,7 +70,7 @@ var TanstackQueryDevtools = class {
|
|
|
70
70
|
if (this.#Component) {
|
|
71
71
|
Devtools = this.#Component;
|
|
72
72
|
} else {
|
|
73
|
-
Devtools = lazy(() => import("./Devtools/
|
|
73
|
+
Devtools = lazy(() => import("./Devtools/3NHE6LPY.jsx"));
|
|
74
74
|
this.#Component = Devtools;
|
|
75
75
|
}
|
|
76
76
|
setupStyleSheet(this.#styleNonce);
|
package/build/index.cjs
CHANGED
|
@@ -13183,7 +13183,9 @@ var init_Devtools = __esm({
|
|
|
13183
13183
|
createRenderEffect(() => className(_el$, clsx(u`
|
|
13184
13184
|
& .tsqd-panel-transition-exit-active,
|
|
13185
13185
|
& .tsqd-panel-transition-enter-active {
|
|
13186
|
-
transition:
|
|
13186
|
+
transition:
|
|
13187
|
+
opacity 0.3s,
|
|
13188
|
+
transform 0.3s;
|
|
13187
13189
|
}
|
|
13188
13190
|
|
|
13189
13191
|
& .tsqd-panel-transition-exit-to,
|
|
@@ -13193,7 +13195,9 @@ var init_Devtools = __esm({
|
|
|
13193
13195
|
|
|
13194
13196
|
& .tsqd-button-transition-exit-active,
|
|
13195
13197
|
& .tsqd-button-transition-enter-active {
|
|
13196
|
-
transition:
|
|
13198
|
+
transition:
|
|
13199
|
+
opacity 0.3s,
|
|
13200
|
+
transform 0.3s;
|
|
13197
13201
|
}
|
|
13198
13202
|
|
|
13199
13203
|
& .tsqd-button-transition-exit-to,
|
package/build/index.js
CHANGED
|
@@ -65,7 +65,7 @@ var TanstackQueryDevtools = class {
|
|
|
65
65
|
if (this.#Component) {
|
|
66
66
|
Devtools = this.#Component;
|
|
67
67
|
} else {
|
|
68
|
-
Devtools = lazy(() => import('./Devtools/
|
|
68
|
+
Devtools = lazy(() => import('./Devtools/RC3HOX77.js'));
|
|
69
69
|
this.#Component = Devtools;
|
|
70
70
|
}
|
|
71
71
|
setupStyleSheet(this.#styleNonce);
|
package/build/index.jsx
CHANGED
|
@@ -70,7 +70,7 @@ var TanstackQueryDevtools = class {
|
|
|
70
70
|
if (this.#Component) {
|
|
71
71
|
Devtools = this.#Component;
|
|
72
72
|
} else {
|
|
73
|
-
Devtools = lazy(() => import("./Devtools/
|
|
73
|
+
Devtools = lazy(() => import("./Devtools/W6R25HSA.jsx"));
|
|
74
74
|
this.#Component = Devtools;
|
|
75
75
|
}
|
|
76
76
|
setupStyleSheet(this.#styleNonce);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/query-devtools",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.4",
|
|
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.1.0",
|
|
52
52
|
"vite-plugin-solid": "^2.7.2",
|
|
53
|
-
"@tanstack/query-core": "5.8.
|
|
53
|
+
"@tanstack/query-core": "5.8.3"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"clean": "rimraf ./build && rimraf ./coverage",
|
package/src/Devtools.tsx
CHANGED
|
@@ -149,8 +149,8 @@ export const Devtools: Component<DevtoolsPanelProps> = (props) => {
|
|
|
149
149
|
return props.localStore.open === 'true'
|
|
150
150
|
? true
|
|
151
151
|
: props.localStore.open === 'false'
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
? false
|
|
153
|
+
: useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN
|
|
154
154
|
})
|
|
155
155
|
|
|
156
156
|
const position = createMemo(() => {
|
|
@@ -201,7 +201,9 @@ export const Devtools: Component<DevtoolsPanelProps> = (props) => {
|
|
|
201
201
|
css`
|
|
202
202
|
& .tsqd-panel-transition-exit-active,
|
|
203
203
|
& .tsqd-panel-transition-enter-active {
|
|
204
|
-
transition:
|
|
204
|
+
transition:
|
|
205
|
+
opacity 0.3s,
|
|
206
|
+
transform 0.3s;
|
|
205
207
|
}
|
|
206
208
|
|
|
207
209
|
& .tsqd-panel-transition-exit-to,
|
|
@@ -213,7 +215,9 @@ export const Devtools: Component<DevtoolsPanelProps> = (props) => {
|
|
|
213
215
|
|
|
214
216
|
& .tsqd-button-transition-exit-active,
|
|
215
217
|
& .tsqd-button-transition-enter-active {
|
|
216
|
-
transition:
|
|
218
|
+
transition:
|
|
219
|
+
opacity 0.3s,
|
|
220
|
+
transform 0.3s;
|
|
217
221
|
}
|
|
218
222
|
|
|
219
223
|
& .tsqd-button-transition-exit-to,
|
|
@@ -221,8 +225,8 @@ export const Devtools: Component<DevtoolsPanelProps> = (props) => {
|
|
|
221
225
|
transform: ${buttonPosition() === 'top-left'
|
|
222
226
|
? `translateX(-72px);`
|
|
223
227
|
: buttonPosition() === 'top-right'
|
|
224
|
-
|
|
225
|
-
|
|
228
|
+
? `translateX(72px);`
|
|
229
|
+
: `translateY(72px);`};
|
|
226
230
|
}
|
|
227
231
|
`,
|
|
228
232
|
'tsqd-transitions-container',
|
package/src/Explorer.tsx
CHANGED
|
@@ -91,8 +91,8 @@ const CopyButton = (props: { value: unknown }) => {
|
|
|
91
91
|
copyState() === 'NoCopy'
|
|
92
92
|
? 'Copy object to clipboard'
|
|
93
93
|
: copyState() === 'SuccessCopy'
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
? 'Object copied to clipboard'
|
|
95
|
+
: 'Error copying object to clipboard'
|
|
96
96
|
}`}
|
|
97
97
|
onClick={
|
|
98
98
|
copyState() === 'NoCopy'
|
package/src/utils.tsx
CHANGED
|
@@ -7,12 +7,12 @@ export function getQueryStatusLabel(query: Query) {
|
|
|
7
7
|
return query.state.fetchStatus === 'fetching'
|
|
8
8
|
? 'fetching'
|
|
9
9
|
: !query.getObserversCount()
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
? 'inactive'
|
|
11
|
+
: query.state.fetchStatus === 'paused'
|
|
12
|
+
? 'paused'
|
|
13
|
+
: query.isStale()
|
|
14
|
+
? 'stale'
|
|
15
|
+
: 'fresh'
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export const queryStatusLabels = [
|
|
@@ -45,12 +45,12 @@ export function getQueryStatusColor({
|
|
|
45
45
|
return queryState.fetchStatus === 'fetching'
|
|
46
46
|
? 'blue'
|
|
47
47
|
: !observerCount
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
? 'gray'
|
|
49
|
+
: queryState.fetchStatus === 'paused'
|
|
50
|
+
? 'purple'
|
|
51
|
+
: isStale
|
|
52
|
+
? 'yellow'
|
|
53
|
+
: 'green'
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export function getMutationStatusColor({
|
|
@@ -63,24 +63,24 @@ export function getMutationStatusColor({
|
|
|
63
63
|
return isPaused
|
|
64
64
|
? 'purple'
|
|
65
65
|
: status === 'error'
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
? 'red'
|
|
67
|
+
: status === 'pending'
|
|
68
|
+
? 'yellow'
|
|
69
|
+
: status === 'success'
|
|
70
|
+
? 'green'
|
|
71
|
+
: 'gray'
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
export function getQueryStatusColorByLabel(label: IQueryStatusLabel) {
|
|
75
75
|
return label === 'fresh'
|
|
76
76
|
? 'green'
|
|
77
77
|
: label === 'stale'
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
78
|
+
? 'yellow'
|
|
79
|
+
: label === 'paused'
|
|
80
|
+
? 'purple'
|
|
81
|
+
: label === 'inactive'
|
|
82
|
+
? 'gray'
|
|
83
|
+
: 'blue'
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/**
|
|
@@ -101,10 +101,10 @@ const getStatusRank = (q: Query) =>
|
|
|
101
101
|
q.state.fetchStatus !== 'idle'
|
|
102
102
|
? 0
|
|
103
103
|
: !q.getObserversCount()
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
? 3
|
|
105
|
+
: q.isStale()
|
|
106
|
+
? 2
|
|
107
|
+
: 1
|
|
108
108
|
|
|
109
109
|
const queryHashSort: SortFn = (a, b) => a.queryHash.localeCompare(b.queryHash)
|
|
110
110
|
|
|
@@ -131,10 +131,10 @@ const getMutationStatusRank = (m: Mutation) =>
|
|
|
131
131
|
m.state.isPaused
|
|
132
132
|
? 0
|
|
133
133
|
: m.state.status === 'error'
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
? 2
|
|
135
|
+
: m.state.status === 'pending'
|
|
136
|
+
? 1
|
|
137
|
+
: 3
|
|
138
138
|
|
|
139
139
|
const mutationDateSort: MutationSortFn = (a, b) =>
|
|
140
140
|
a.state.submittedAt < b.state.submittedAt ? 1 : -1
|