@tanstack/query-devtools 5.8.3 → 5.8.8

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.
@@ -10364,6 +10364,7 @@ var stylesFactory = (theme) => {
10364
10364
  `,
10365
10365
  label: u`
10366
10366
  color: ${t2(colors.gray[700], colors.gray[300])};
10367
+ white-space: nowrap;
10367
10368
  `,
10368
10369
  value: u`
10369
10370
  color: ${t2(colors.purple[600], colors.purple[400])};
@@ -10511,7 +10512,9 @@ var Devtools = (props) => {
10511
10512
  u`
10512
10513
  & .tsqd-panel-transition-exit-active,
10513
10514
  & .tsqd-panel-transition-enter-active {
10514
- transition: opacity 0.3s, transform 0.3s;
10515
+ transition:
10516
+ opacity 0.3s,
10517
+ transform 0.3s;
10515
10518
  }
10516
10519
 
10517
10520
  & .tsqd-panel-transition-exit-to,
@@ -10521,7 +10524,9 @@ var Devtools = (props) => {
10521
10524
 
10522
10525
  & .tsqd-button-transition-exit-active,
10523
10526
  & .tsqd-button-transition-enter-active {
10524
- transition: opacity 0.3s, transform 0.3s;
10527
+ transition:
10528
+ opacity 0.3s,
10529
+ transform 0.3s;
10525
10530
  }
10526
10531
 
10527
10532
  & .tsqd-button-transition-exit-to,
@@ -10363,6 +10363,7 @@ var stylesFactory = (theme) => {
10363
10363
  `,
10364
10364
  label: u`
10365
10365
  color: ${t2(colors.gray[700], colors.gray[300])};
10366
+ white-space: nowrap;
10366
10367
  `,
10367
10368
  value: u`
10368
10369
  color: ${t2(colors.purple[600], colors.purple[400])};
@@ -10510,7 +10511,9 @@ var Devtools = (props) => {
10510
10511
  u`
10511
10512
  & .tsqd-panel-transition-exit-active,
10512
10513
  & .tsqd-panel-transition-enter-active {
10513
- transition: opacity 0.3s, transform 0.3s;
10514
+ transition:
10515
+ opacity 0.3s,
10516
+ transform 0.3s;
10514
10517
  }
10515
10518
 
10516
10519
  & .tsqd-panel-transition-exit-to,
@@ -10520,7 +10523,9 @@ var Devtools = (props) => {
10520
10523
 
10521
10524
  & .tsqd-button-transition-exit-active,
10522
10525
  & .tsqd-button-transition-enter-active {
10523
- transition: opacity 0.3s, transform 0.3s;
10526
+ transition:
10527
+ opacity 0.3s,
10528
+ transform 0.3s;
10524
10529
  }
10525
10530
 
10526
10531
  & .tsqd-button-transition-exit-to,
@@ -9433,6 +9433,7 @@ var stylesFactory = (theme) => {
9433
9433
  `,
9434
9434
  label: u`
9435
9435
  color: ${t2(colors.gray[700], colors.gray[300])};
9436
+ white-space: nowrap;
9436
9437
  `,
9437
9438
  value: u`
9438
9439
  color: ${t2(colors.purple[600], colors.purple[400])};
@@ -9654,7 +9655,9 @@ var Devtools = (props) => {
9654
9655
  createRenderEffect(() => className(_el$, clsx(u`
9655
9656
  & .tsqd-panel-transition-exit-active,
9656
9657
  & .tsqd-panel-transition-enter-active {
9657
- transition: opacity 0.3s, transform 0.3s;
9658
+ transition:
9659
+ opacity 0.3s,
9660
+ transform 0.3s;
9658
9661
  }
9659
9662
 
9660
9663
  & .tsqd-panel-transition-exit-to,
@@ -9664,7 +9667,9 @@ var Devtools = (props) => {
9664
9667
 
9665
9668
  & .tsqd-button-transition-exit-active,
9666
9669
  & .tsqd-button-transition-enter-active {
9667
- transition: opacity 0.3s, transform 0.3s;
9670
+ transition:
9671
+ opacity 0.3s,
9672
+ transform 0.3s;
9668
9673
  }
9669
9674
 
9670
9675
  & .tsqd-button-transition-exit-to,
@@ -9432,6 +9432,7 @@ var stylesFactory = (theme) => {
9432
9432
  `,
9433
9433
  label: u`
9434
9434
  color: ${t2(colors.gray[700], colors.gray[300])};
9435
+ white-space: nowrap;
9435
9436
  `,
9436
9437
  value: u`
9437
9438
  color: ${t2(colors.purple[600], colors.purple[400])};
@@ -9653,7 +9654,9 @@ var Devtools = (props) => {
9653
9654
  createRenderEffect(() => className(_el$, clsx(u`
9654
9655
  & .tsqd-panel-transition-exit-active,
9655
9656
  & .tsqd-panel-transition-enter-active {
9656
- transition: opacity 0.3s, transform 0.3s;
9657
+ transition:
9658
+ opacity 0.3s,
9659
+ transform 0.3s;
9657
9660
  }
9658
9661
 
9659
9662
  & .tsqd-panel-transition-exit-to,
@@ -9663,7 +9666,9 @@ var Devtools = (props) => {
9663
9666
 
9664
9667
  & .tsqd-button-transition-exit-active,
9665
9668
  & .tsqd-button-transition-enter-active {
9666
- transition: opacity 0.3s, transform 0.3s;
9669
+ transition:
9670
+ opacity 0.3s,
9671
+ transform 0.3s;
9667
9672
  }
9668
9673
 
9669
9674
  & .tsqd-button-transition-exit-to,
package/build/dev.cjs CHANGED
@@ -12916,6 +12916,7 @@ var init_Explorer = __esm({
12916
12916
  `,
12917
12917
  label: u`
12918
12918
  color: ${t2(colors.gray[700], colors.gray[300])};
12919
+ white-space: nowrap;
12919
12920
  `,
12920
12921
  value: u`
12921
12922
  color: ${t2(colors.purple[600], colors.purple[400])};
@@ -13185,7 +13186,9 @@ var init_Devtools = __esm({
13185
13186
  createRenderEffect(() => className(_el$, clsx(u`
13186
13187
  & .tsqd-panel-transition-exit-active,
13187
13188
  & .tsqd-panel-transition-enter-active {
13188
- transition: opacity 0.3s, transform 0.3s;
13189
+ transition:
13190
+ opacity 0.3s,
13191
+ transform 0.3s;
13189
13192
  }
13190
13193
 
13191
13194
  & .tsqd-panel-transition-exit-to,
@@ -13195,7 +13198,9 @@ var init_Devtools = __esm({
13195
13198
 
13196
13199
  & .tsqd-button-transition-exit-active,
13197
13200
  & .tsqd-button-transition-enter-active {
13198
- transition: opacity 0.3s, transform 0.3s;
13201
+ transition:
13202
+ opacity 0.3s,
13203
+ transform 0.3s;
13199
13204
  }
13200
13205
 
13201
13206
  & .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/VZTWBJH5.js'));
68
+ Devtools = lazy(() => import('./Devtools/SZIKXSIQ.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/G2DL2NKW.jsx"));
73
+ Devtools = lazy(() => import("./Devtools/3XM2XICE.jsx"));
74
74
  this.#Component = Devtools;
75
75
  }
76
76
  setupStyleSheet(this.#styleNonce);
package/build/index.cjs CHANGED
@@ -12914,6 +12914,7 @@ var init_Explorer = __esm({
12914
12914
  `,
12915
12915
  label: u`
12916
12916
  color: ${t2(colors.gray[700], colors.gray[300])};
12917
+ white-space: nowrap;
12917
12918
  `,
12918
12919
  value: u`
12919
12920
  color: ${t2(colors.purple[600], colors.purple[400])};
@@ -13183,7 +13184,9 @@ var init_Devtools = __esm({
13183
13184
  createRenderEffect(() => className(_el$, clsx(u`
13184
13185
  & .tsqd-panel-transition-exit-active,
13185
13186
  & .tsqd-panel-transition-enter-active {
13186
- transition: opacity 0.3s, transform 0.3s;
13187
+ transition:
13188
+ opacity 0.3s,
13189
+ transform 0.3s;
13187
13190
  }
13188
13191
 
13189
13192
  & .tsqd-panel-transition-exit-to,
@@ -13193,7 +13196,9 @@ var init_Devtools = __esm({
13193
13196
 
13194
13197
  & .tsqd-button-transition-exit-active,
13195
13198
  & .tsqd-button-transition-enter-active {
13196
- transition: opacity 0.3s, transform 0.3s;
13199
+ transition:
13200
+ opacity 0.3s,
13201
+ transform 0.3s;
13197
13202
  }
13198
13203
 
13199
13204
  & .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/G2MVXYID.js'));
68
+ Devtools = lazy(() => import('./Devtools/YNBGVEJ4.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/RGHE4TS2.jsx"));
73
+ Devtools = lazy(() => import("./Devtools/DKV2AFO3.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",
3
+ "version": "5.8.8",
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.3"
53
+ "@tanstack/query-core": "5.8.7"
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
- ? false
153
- : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN
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: opacity 0.3s, transform 0.3s;
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: opacity 0.3s, transform 0.3s;
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
- ? `translateX(72px);`
225
- : `translateY(72px);`};
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
- ? 'Object copied to clipboard'
95
- : 'Error copying object to clipboard'
94
+ ? 'Object copied to clipboard'
95
+ : 'Error copying object to clipboard'
96
96
  }`}
97
97
  onClick={
98
98
  copyState() === 'NoCopy'
@@ -554,6 +554,7 @@ const stylesFactory = (theme: 'light' | 'dark') => {
554
554
  `,
555
555
  label: css`
556
556
  color: ${t(colors.gray[700], colors.gray[300])};
557
+ white-space: nowrap;
557
558
  `,
558
559
  value: css`
559
560
  color: ${t(colors.purple[600], colors.purple[400])};
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
- ? 'inactive'
11
- : query.state.fetchStatus === 'paused'
12
- ? 'paused'
13
- : query.isStale()
14
- ? 'stale'
15
- : 'fresh'
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
- ? 'gray'
49
- : queryState.fetchStatus === 'paused'
50
- ? 'purple'
51
- : isStale
52
- ? 'yellow'
53
- : 'green'
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
- ? 'red'
67
- : status === 'pending'
68
- ? 'yellow'
69
- : status === 'success'
70
- ? 'green'
71
- : 'gray'
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
- ? 'yellow'
79
- : label === 'paused'
80
- ? 'purple'
81
- : label === 'inactive'
82
- ? 'gray'
83
- : 'blue'
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
- ? 3
105
- : q.isStale()
106
- ? 2
107
- : 1
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
- ? 2
135
- : m.state.status === 'pending'
136
- ? 1
137
- : 3
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