@tanstack/query-devtools 5.20.1 → 5.21.0

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 CHANGED
@@ -3,7 +3,7 @@ import { Query, QueryClient, onlineManager } from '@tanstack/query-core';
3
3
  type XPosition = 'left' | 'right';
4
4
  type YPosition = 'top' | 'bottom';
5
5
  type DevtoolsPosition = XPosition | YPosition;
6
- type DevtoolsButtonPosition = `${YPosition}-${XPosition}`;
6
+ type DevtoolsButtonPosition = `${YPosition}-${XPosition}` | 'relative';
7
7
  interface DevToolsErrorType {
8
8
  /**
9
9
  * The name of the error.
package/build/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { Query, QueryClient, onlineManager } from '@tanstack/query-core';
3
3
  type XPosition = 'left' | 'right';
4
4
  type YPosition = 'top' | 'bottom';
5
5
  type DevtoolsPosition = XPosition | YPosition;
6
- type DevtoolsButtonPosition = `${YPosition}-${XPosition}`;
6
+ type DevtoolsButtonPosition = `${YPosition}-${XPosition}` | 'relative';
7
7
  interface DevToolsErrorType {
8
8
  /**
9
9
  * The name of the error.
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createSignal, render, lazy, setupStyleSheet, createComponent, mergeProps } from './chunk/6HEWUOJS.js';
1
+ import { createSignal, render, lazy, setupStyleSheet, createComponent, mergeProps } from './chunk/XKKA3NOX.js';
2
2
 
3
3
  // src/index.tsx
4
4
  var TanstackQueryDevtools = class {
@@ -56,6 +56,7 @@ var TanstackQueryDevtools = class {
56
56
  throw new Error("Devtools is already mounted");
57
57
  }
58
58
  const dispose = render(() => {
59
+ const _self$ = this;
59
60
  const [btnPosition] = this.#buttonPosition;
60
61
  const [pos] = this.#position;
61
62
  const [isOpen] = this.#initialIsOpen;
@@ -65,11 +66,10 @@ var TanstackQueryDevtools = class {
65
66
  if (this.#Component) {
66
67
  Devtools = this.#Component;
67
68
  } else {
68
- Devtools = lazy(() => import('./Devtools/4MFZ6GJ2.js'));
69
+ Devtools = lazy(() => import('./Devtools/4IXB5NHK.js'));
69
70
  this.#Component = Devtools;
70
71
  }
71
72
  setupStyleSheet(this.#styleNonce);
72
- const _self$ = this;
73
73
  return createComponent(Devtools, mergeProps({
74
74
  get queryFlavor() {
75
75
  return _self$.#queryFlavor;
package/build/index.jsx CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  lazy,
4
4
  render,
5
5
  setupStyleSheet
6
- } from "./chunk/LF7D7ABG.jsx";
6
+ } from "./chunk/AZNCIVVX.jsx";
7
7
 
8
8
  // src/index.tsx
9
9
  var TanstackQueryDevtools = class {
@@ -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/SLJ7V32M.jsx"));
73
+ Devtools = lazy(() => import("./Devtools/2ACMJH2B.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.20.1",
3
+ "version": "5.21.0",
4
4
  "description": "Developer tools to interact with and visualize the TanStack Query cache",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -42,15 +42,15 @@
42
42
  "@solid-primitives/keyed": "^1.2.0",
43
43
  "@solid-primitives/resize-observer": "^2.0.22",
44
44
  "@solid-primitives/storage": "^1.3.11",
45
- "@tanstack/match-sorter-utils": "^8.8.4",
45
+ "@tanstack/match-sorter-utils": "^8.11.8",
46
46
  "clsx": "^2.0.0",
47
47
  "goober": "^2.1.13",
48
- "solid-js": "^1.8.7",
48
+ "solid-js": "^1.8.14",
49
49
  "solid-transition-group": "^0.2.3",
50
50
  "superjson": "^1.13.3",
51
51
  "tsup-preset-solid": "^2.2.0",
52
- "vite-plugin-solid": "^2.8.0",
53
- "@tanstack/query-core": "5.20.1"
52
+ "vite-plugin-solid": "^2.9.1",
53
+ "@tanstack/query-core": "5.20.5"
54
54
  },
55
55
  "scripts": {
56
56
  "clean": "rimraf ./build && rimraf ./coverage",
package/src/Context.ts CHANGED
@@ -5,7 +5,7 @@ import type { Query, QueryClient, onlineManager } from '@tanstack/query-core'
5
5
  type XPosition = 'left' | 'right'
6
6
  type YPosition = 'top' | 'bottom'
7
7
  export type DevtoolsPosition = XPosition | YPosition
8
- export type DevtoolsButtonPosition = `${YPosition}-${XPosition}`
8
+ export type DevtoolsButtonPosition = `${YPosition}-${XPosition}` | 'relative'
9
9
 
10
10
  export interface DevToolsErrorType {
11
11
  /**
package/src/Devtools.tsx CHANGED
@@ -219,15 +219,19 @@ const Devtools: Component<DevtoolsPanelProps> = (props) => {
219
219
  transition:
220
220
  opacity 0.3s,
221
221
  transform 0.3s;
222
+ opacity: 1;
222
223
  }
223
224
 
224
225
  & .tsqd-button-transition-exit-to,
225
226
  & .tsqd-button-transition-enter {
226
- transform: ${buttonPosition() === 'top-left'
227
- ? `translateX(-72px);`
228
- : buttonPosition() === 'top-right'
229
- ? `translateX(72px);`
230
- : `translateY(72px);`};
227
+ transform: ${buttonPosition() === 'relative'
228
+ ? `none;`
229
+ : buttonPosition() === 'top-left'
230
+ ? `translateX(-72px);`
231
+ : buttonPosition() === 'top-right'
232
+ ? `translateX(72px);`
233
+ : `translateY(72px);`};
234
+ opacity: 0;
231
235
  }
232
236
  `,
233
237
  'tsqd-transitions-container',
@@ -2263,6 +2267,9 @@ const stylesFactory = (theme: 'light' | 'dark') => {
2263
2267
  top: 12px;
2264
2268
  right: 12px;
2265
2269
  `,
2270
+ 'devtoolsBtn-position-relative': css`
2271
+ position: relative;
2272
+ `,
2266
2273
  'panel-position-top': css`
2267
2274
  top: 0;
2268
2275
  right: 0;