@tanstack/query-devtools 5.20.2 → 5.21.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.cjs CHANGED
@@ -12873,7 +12873,7 @@ var Devtools_exports = {};
12873
12873
  __export(Devtools_exports, {
12874
12874
  default: () => Devtools_default
12875
12875
  });
12876
- var _tmpl$24, _tmpl$25, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$103, _tmpl$113, _tmpl$122, _tmpl$132, _tmpl$142, _tmpl$152, _tmpl$162, _tmpl$172, _tmpl$182, _tmpl$192, _tmpl$202, _tmpl$212, _tmpl$222, _tmpl$232, _tmpl$242, _tmpl$252, _tmpl$26, _tmpl$27, _tmpl$28, _tmpl$29, _tmpl$30, firstBreakpoint, secondBreakpoint, thirdBreakpoint, BUTTON_POSITION, POSITION, THEME_PREFERENCE, INITIAL_IS_OPEN, DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_SORT_FN_NAME, DEFAULT_SORT_ORDER, DEFAULT_MUTATION_SORT_FN_NAME, selectedQueryHash, setSelectedQueryHash, selectedMutationId, setSelectedMutationId, panelWidth, setPanelWidth, DevtoolsComponent, Devtools_default, Devtools, DevtoolsPanel, ContentView, QueryRow, MutationRow, QueryStatusCount, MutationStatusCount, QueryStatus, QueryDetails, MutationDetails, queryCacheMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, mutationCacheMap, setupMutationCacheSubscription, createSubscribeToMutationCacheBatcher, stylesFactory2, lightStyles2, darkStyles2;
12876
+ var _tmpl$24, _tmpl$25, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$103, _tmpl$113, _tmpl$122, _tmpl$132, _tmpl$142, _tmpl$152, _tmpl$162, _tmpl$172, _tmpl$182, _tmpl$192, _tmpl$202, _tmpl$212, _tmpl$222, _tmpl$232, _tmpl$242, _tmpl$252, _tmpl$26, _tmpl$27, _tmpl$28, _tmpl$29, _tmpl$30, _tmpl$31, firstBreakpoint, secondBreakpoint, thirdBreakpoint, BUTTON_POSITION, POSITION, THEME_PREFERENCE, INITIAL_IS_OPEN, DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_SORT_FN_NAME, DEFAULT_SORT_ORDER, DEFAULT_MUTATION_SORT_FN_NAME, selectedQueryHash, setSelectedQueryHash, selectedMutationId, setSelectedMutationId, panelWidth, setPanelWidth, DevtoolsComponent, Devtools_default, Devtools, DevtoolsPanel, ContentView, QueryRow, MutationRow, QueryStatusCount, MutationStatusCount, QueryStatus, QueryDetails, MutationDetails, queryCacheMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, mutationCacheMap, setupMutationCacheSubscription, createSubscribeToMutationCacheBatcher, stylesFactory2, lightStyles2, darkStyles2;
12877
12877
  var init_Devtools = __esm({
12878
12878
  "src/Devtools.tsx"() {
12879
12879
  init_web();
@@ -12904,33 +12904,34 @@ var init_Devtools = __esm({
12904
12904
  _tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
12905
12905
  _tmpl$25 = /* @__PURE__ */ template(`<div>`);
12906
12906
  _tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
12907
- _tmpl$43 = /* @__PURE__ */ template(`<select>`);
12908
- _tmpl$53 = /* @__PURE__ */ template(`<span>Asc`);
12909
- _tmpl$63 = /* @__PURE__ */ template(`<span>Desc`);
12910
- _tmpl$73 = /* @__PURE__ */ template(`<div>Settings`);
12911
- _tmpl$83 = /* @__PURE__ */ template(`<span>Position`);
12912
- _tmpl$93 = /* @__PURE__ */ template(`<span>Top`);
12913
- _tmpl$103 = /* @__PURE__ */ template(`<span>Bottom`);
12914
- _tmpl$113 = /* @__PURE__ */ template(`<span>Left`);
12915
- _tmpl$122 = /* @__PURE__ */ template(`<span>Right`);
12916
- _tmpl$132 = /* @__PURE__ */ template(`<span>Theme`);
12917
- _tmpl$142 = /* @__PURE__ */ template(`<span>Light`);
12918
- _tmpl$152 = /* @__PURE__ */ template(`<span>Dark`);
12919
- _tmpl$162 = /* @__PURE__ */ template(`<span>System`);
12920
- _tmpl$172 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
12921
- _tmpl$182 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
12922
- _tmpl$192 = /* @__PURE__ */ template(`<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter class=tsqd-query-filter-textfield></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>`);
12923
- _tmpl$202 = /* @__PURE__ */ template(`<option>Sort by `);
12924
- _tmpl$212 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
12925
- _tmpl$222 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
12926
- _tmpl$232 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
12927
- _tmpl$242 = /* @__PURE__ */ template(`<span>`);
12928
- _tmpl$252 = /* @__PURE__ */ template(`<button><span></span><span>`);
12929
- _tmpl$26 = /* @__PURE__ */ template(`<button><span></span> Error`);
12930
- _tmpl$27 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
12931
- _tmpl$28 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
12932
- _tmpl$29 = /* @__PURE__ */ template(`<option>`);
12933
- _tmpl$30 = /* @__PURE__ */ template(`<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
12907
+ _tmpl$43 = /* @__PURE__ */ template(`<select name=tsqd-queries-filter-sort>`);
12908
+ _tmpl$53 = /* @__PURE__ */ template(`<select name=tsqd-mutations-filter-sort>`);
12909
+ _tmpl$63 = /* @__PURE__ */ template(`<span>Asc`);
12910
+ _tmpl$73 = /* @__PURE__ */ template(`<span>Desc`);
12911
+ _tmpl$83 = /* @__PURE__ */ template(`<div>Settings`);
12912
+ _tmpl$93 = /* @__PURE__ */ template(`<span>Position`);
12913
+ _tmpl$103 = /* @__PURE__ */ template(`<span>Top`);
12914
+ _tmpl$113 = /* @__PURE__ */ template(`<span>Bottom`);
12915
+ _tmpl$122 = /* @__PURE__ */ template(`<span>Left`);
12916
+ _tmpl$132 = /* @__PURE__ */ template(`<span>Right`);
12917
+ _tmpl$142 = /* @__PURE__ */ template(`<span>Theme`);
12918
+ _tmpl$152 = /* @__PURE__ */ template(`<span>Light`);
12919
+ _tmpl$162 = /* @__PURE__ */ template(`<span>Dark`);
12920
+ _tmpl$172 = /* @__PURE__ */ template(`<span>System`);
12921
+ _tmpl$182 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
12922
+ _tmpl$192 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
12923
+ _tmpl$202 = /* @__PURE__ */ template(`<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter class=tsqd-query-filter-textfield name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>`);
12924
+ _tmpl$212 = /* @__PURE__ */ template(`<option>Sort by `);
12925
+ _tmpl$222 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
12926
+ _tmpl$232 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
12927
+ _tmpl$242 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
12928
+ _tmpl$252 = /* @__PURE__ */ template(`<span>`);
12929
+ _tmpl$26 = /* @__PURE__ */ template(`<button><span></span><span>`);
12930
+ _tmpl$27 = /* @__PURE__ */ template(`<button><span></span> Error`);
12931
+ _tmpl$28 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
12932
+ _tmpl$29 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
12933
+ _tmpl$30 = /* @__PURE__ */ template(`<option>`);
12934
+ _tmpl$31 = /* @__PURE__ */ template(`<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
12934
12935
  firstBreakpoint = 1024;
12935
12936
  secondBreakpoint = 796;
12936
12937
  thirdBreakpoint = 700;
@@ -13068,11 +13069,13 @@ var init_Devtools = __esm({
13068
13069
  transition:
13069
13070
  opacity 0.3s,
13070
13071
  transform 0.3s;
13072
+ opacity: 1;
13071
13073
  }
13072
13074
 
13073
13075
  & .tsqd-button-transition-exit-to,
13074
13076
  & .tsqd-button-transition-enter {
13075
- transform: ${buttonPosition() === "top-left" ? `translateX(-72px);` : buttonPosition() === "top-right" ? `translateX(72px);` : `translateY(72px);`};
13077
+ transform: ${buttonPosition() === "relative" ? `none;` : buttonPosition() === "top-left" ? `translateX(-72px);` : buttonPosition() === "top-right" ? `translateX(72px);` : `translateY(72px);`};
13078
+ opacity: 0;
13076
13079
  }
13077
13080
  `, "tsqd-transitions-container")));
13078
13081
  return _el$;
@@ -13275,7 +13278,7 @@ var init_Devtools = __esm({
13275
13278
  el.style.setProperty("--tsqd-font-size", variable);
13276
13279
  };
13277
13280
  return [(() => {
13278
- const _el$8 = _tmpl$192(), _el$9 = _el$8.firstChild, _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$15 = _el$9.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild, _el$19 = _el$17.nextSibling, _el$22 = _el$19.nextSibling, _el$25 = _el$16.nextSibling, _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling;
13281
+ const _el$8 = _tmpl$202(), _el$9 = _el$8.firstChild, _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$15 = _el$9.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild, _el$19 = _el$17.nextSibling, _el$22 = _el$19.nextSibling, _el$25 = _el$16.nextSibling, _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling;
13279
13282
  const _ref$3 = containerRef;
13280
13283
  typeof _ref$3 === "function" ? use(_ref$3, _el$8) : containerRef = _el$8;
13281
13284
  _el$11.$$click = () => props.setLocalStore("open", "false");
@@ -13357,7 +13360,7 @@ var init_Devtools = __esm({
13357
13360
  props.setLocalStore("sort", e2.currentTarget.value);
13358
13361
  });
13359
13362
  insert(_el$20, () => Object.keys(sortFns).map((key) => (() => {
13360
- const _el$42 = _tmpl$202(); _el$42.firstChild;
13363
+ const _el$42 = _tmpl$212(); _el$42.firstChild;
13361
13364
  _el$42.value = key;
13362
13365
  insert(_el$42, key, null);
13363
13366
  return _el$42;
@@ -13371,12 +13374,12 @@ var init_Devtools = __esm({
13371
13374
  return selectedView() === "mutations";
13372
13375
  },
13373
13376
  get children() {
13374
- const _el$21 = _tmpl$43();
13377
+ const _el$21 = _tmpl$53();
13375
13378
  _el$21.addEventListener("change", (e2) => {
13376
13379
  props.setLocalStore("mutationSort", e2.currentTarget.value);
13377
13380
  });
13378
13381
  insert(_el$21, () => Object.keys(mutationSortFns).map((key) => (() => {
13379
- const _el$44 = _tmpl$202(); _el$44.firstChild;
13382
+ const _el$44 = _tmpl$212(); _el$44.firstChild;
13380
13383
  _el$44.value = key;
13381
13384
  insert(_el$44, key, null);
13382
13385
  return _el$44;
@@ -13398,7 +13401,7 @@ var init_Devtools = __esm({
13398
13401
  return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === 1;
13399
13402
  },
13400
13403
  get children() {
13401
- return [_tmpl$53(), createComponent(ArrowUp, {})];
13404
+ return [_tmpl$63(), createComponent(ArrowUp, {})];
13402
13405
  }
13403
13406
  }), null);
13404
13407
  insert(_el$22, createComponent(Show, {
@@ -13406,7 +13409,7 @@ var init_Devtools = __esm({
13406
13409
  return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1;
13407
13410
  },
13408
13411
  get children() {
13409
- return [_tmpl$63(), createComponent(ArrowDown, {})];
13412
+ return [_tmpl$73(), createComponent(ArrowDown, {})];
13410
13413
  }
13411
13414
  }), null);
13412
13415
  _el$26.$$click = () => {
@@ -13449,7 +13452,7 @@ var init_Devtools = __esm({
13449
13452
  },
13450
13453
  get children() {
13451
13454
  return [(() => {
13452
- const _el$28 = _tmpl$73();
13455
+ const _el$28 = _tmpl$83();
13453
13456
  createRenderEffect(() => className(_el$28, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
13454
13457
  return _el$28;
13455
13458
  })(), createComponent(index$f.Sub, {
@@ -13462,7 +13465,7 @@ var init_Devtools = __esm({
13462
13465
  return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
13463
13466
  },
13464
13467
  get children() {
13465
- return [_tmpl$83(), createComponent(ChevronDown, {})];
13468
+ return [_tmpl$93(), createComponent(ChevronDown, {})];
13466
13469
  }
13467
13470
  }), createComponent(index$f.Portal, {
13468
13471
  ref: (el) => setComputedVariables(el),
@@ -13481,7 +13484,7 @@ var init_Devtools = __esm({
13481
13484
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
13482
13485
  },
13483
13486
  get children() {
13484
- return [_tmpl$93(), createComponent(ArrowUp, {})];
13487
+ return [_tmpl$103(), createComponent(ArrowUp, {})];
13485
13488
  }
13486
13489
  }), createComponent(index$f.Item, {
13487
13490
  onSelect: () => {
@@ -13492,7 +13495,7 @@ var init_Devtools = __esm({
13492
13495
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
13493
13496
  },
13494
13497
  get children() {
13495
- return [_tmpl$103(), createComponent(ArrowDown, {})];
13498
+ return [_tmpl$113(), createComponent(ArrowDown, {})];
13496
13499
  }
13497
13500
  }), createComponent(index$f.Item, {
13498
13501
  onSelect: () => {
@@ -13503,7 +13506,7 @@ var init_Devtools = __esm({
13503
13506
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
13504
13507
  },
13505
13508
  get children() {
13506
- return [_tmpl$113(), createComponent(ArrowLeft, {})];
13509
+ return [_tmpl$122(), createComponent(ArrowLeft, {})];
13507
13510
  }
13508
13511
  }), createComponent(index$f.Item, {
13509
13512
  onSelect: () => {
@@ -13514,7 +13517,7 @@ var init_Devtools = __esm({
13514
13517
  return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
13515
13518
  },
13516
13519
  get children() {
13517
- return [_tmpl$122(), createComponent(ArrowRight, {})];
13520
+ return [_tmpl$132(), createComponent(ArrowRight, {})];
13518
13521
  }
13519
13522
  })];
13520
13523
  }
@@ -13532,7 +13535,7 @@ var init_Devtools = __esm({
13532
13535
  return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
13533
13536
  },
13534
13537
  get children() {
13535
- return [_tmpl$132(), createComponent(ChevronDown, {})];
13538
+ return [_tmpl$142(), createComponent(ChevronDown, {})];
13536
13539
  }
13537
13540
  }), createComponent(index$f.Portal, {
13538
13541
  ref: (el) => setComputedVariables(el),
@@ -13551,7 +13554,7 @@ var init_Devtools = __esm({
13551
13554
  return clsx(styles().settingsSubButton, props.localStore.theme_preference === "light" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
13552
13555
  },
13553
13556
  get children() {
13554
- return [_tmpl$142(), createComponent(Sun, {})];
13557
+ return [_tmpl$152(), createComponent(Sun, {})];
13555
13558
  }
13556
13559
  }), createComponent(index$f.Item, {
13557
13560
  onSelect: () => {
@@ -13562,7 +13565,7 @@ var init_Devtools = __esm({
13562
13565
  return clsx(styles().settingsSubButton, props.localStore.theme_preference === "dark" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
13563
13566
  },
13564
13567
  get children() {
13565
- return [_tmpl$152(), createComponent(Moon, {})];
13568
+ return [_tmpl$162(), createComponent(Moon, {})];
13566
13569
  }
13567
13570
  }), createComponent(index$f.Item, {
13568
13571
  onSelect: () => {
@@ -13573,7 +13576,7 @@ var init_Devtools = __esm({
13573
13576
  return clsx(styles().settingsSubButton, props.localStore.theme_preference === "system" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
13574
13577
  },
13575
13578
  get children() {
13576
- return [_tmpl$162(), createComponent(Monitor, {})];
13579
+ return [_tmpl$172(), createComponent(Monitor, {})];
13577
13580
  }
13578
13581
  })];
13579
13582
  }
@@ -13593,7 +13596,7 @@ var init_Devtools = __esm({
13593
13596
  return selectedView() === "queries";
13594
13597
  },
13595
13598
  get children() {
13596
- const _el$38 = _tmpl$172(), _el$39 = _el$38.firstChild;
13599
+ const _el$38 = _tmpl$182(), _el$39 = _el$38.firstChild;
13597
13600
  insert(_el$39, createComponent(Key, {
13598
13601
  by: (q) => q.queryHash,
13599
13602
  get each() {
@@ -13614,7 +13617,7 @@ var init_Devtools = __esm({
13614
13617
  return selectedView() === "mutations";
13615
13618
  },
13616
13619
  get children() {
13617
- const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild;
13620
+ const _el$40 = _tmpl$192(), _el$41 = _el$40.firstChild;
13618
13621
  insert(_el$41, createComponent(Key, {
13619
13622
  by: (m) => m.mutationId,
13620
13623
  get each() {
@@ -13741,7 +13744,7 @@ var init_Devtools = __esm({
13741
13744
  return queryState();
13742
13745
  },
13743
13746
  get children() {
13744
- const _el$46 = _tmpl$222(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling;
13747
+ const _el$46 = _tmpl$232(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling;
13745
13748
  _el$46.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
13746
13749
  insert(_el$47, observers);
13747
13750
  insert(_el$48, () => props.query.queryHash);
@@ -13750,7 +13753,7 @@ var init_Devtools = __esm({
13750
13753
  return isDisabled();
13751
13754
  },
13752
13755
  get children() {
13753
- return _tmpl$212();
13756
+ return _tmpl$222();
13754
13757
  }
13755
13758
  }), null);
13756
13759
  createRenderEffect((_p$) => {
@@ -13818,7 +13821,7 @@ var init_Devtools = __esm({
13818
13821
  return mutationState();
13819
13822
  },
13820
13823
  get children() {
13821
- const _el$50 = _tmpl$222(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling;
13824
+ const _el$50 = _tmpl$232(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling;
13822
13825
  _el$50.$$click = () => {
13823
13826
  setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
13824
13827
  };
@@ -14009,7 +14012,7 @@ var init_Devtools = __esm({
14009
14012
  return true;
14010
14013
  });
14011
14014
  return (() => {
14012
- const _el$55 = _tmpl$252(), _el$57 = _el$55.firstChild, _el$59 = _el$57.nextSibling;
14015
+ const _el$55 = _tmpl$26(), _el$57 = _el$55.firstChild, _el$59 = _el$57.nextSibling;
14013
14016
  const _ref$4 = tagRef;
14014
14017
  typeof _ref$4 === "function" ? use(_ref$4, _el$55) : tagRef = _el$55;
14015
14018
  _el$55.addEventListener("mouseleave", () => {
@@ -14039,7 +14042,7 @@ var init_Devtools = __esm({
14039
14042
  return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
14040
14043
  },
14041
14044
  get children() {
14042
- const _el$56 = _tmpl$232();
14045
+ const _el$56 = _tmpl$242();
14043
14046
  insert(_el$56, () => props.label);
14044
14047
  createRenderEffect(() => className(_el$56, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
14045
14048
  return _el$56;
@@ -14050,7 +14053,7 @@ var init_Devtools = __esm({
14050
14053
  return showLabel();
14051
14054
  },
14052
14055
  get children() {
14053
- const _el$58 = _tmpl$242();
14056
+ const _el$58 = _tmpl$252();
14054
14057
  insert(_el$58, () => props.label);
14055
14058
  createRenderEffect(() => className(_el$58, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
14056
14059
  return _el$58;
@@ -14160,7 +14163,7 @@ var init_Devtools = __esm({
14160
14163
  return createMemo(() => !!activeQuery())() && activeQueryState();
14161
14164
  },
14162
14165
  get children() {
14163
- const _el$60 = _tmpl$28(), _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$62.firstChild, _el$64 = _el$63.firstChild, _el$65 = _el$64.firstChild, _el$66 = _el$64.nextSibling, _el$67 = _el$63.nextSibling, _el$68 = _el$67.firstChild, _el$69 = _el$68.nextSibling, _el$70 = _el$67.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$71.nextSibling, _el$73 = _el$62.nextSibling, _el$74 = _el$73.nextSibling, _el$75 = _el$74.firstChild, _el$76 = _el$75.firstChild, _el$77 = _el$75.nextSibling, _el$78 = _el$77.firstChild, _el$79 = _el$77.nextSibling, _el$80 = _el$79.firstChild, _el$81 = _el$79.nextSibling, _el$82 = _el$81.firstChild, _el$83 = _el$81.nextSibling, _el$84 = _el$83.firstChild, _el$85 = _el$84.nextSibling, _el$94 = _el$74.nextSibling, _el$95 = _el$94.nextSibling, _el$96 = _el$95.nextSibling, _el$97 = _el$96.nextSibling;
14166
+ const _el$60 = _tmpl$29(), _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$62.firstChild, _el$64 = _el$63.firstChild, _el$65 = _el$64.firstChild, _el$66 = _el$64.nextSibling, _el$67 = _el$63.nextSibling, _el$68 = _el$67.firstChild, _el$69 = _el$68.nextSibling, _el$70 = _el$67.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$71.nextSibling, _el$73 = _el$62.nextSibling, _el$74 = _el$73.nextSibling, _el$75 = _el$74.firstChild, _el$76 = _el$75.firstChild, _el$77 = _el$75.nextSibling, _el$78 = _el$77.firstChild, _el$79 = _el$77.nextSibling, _el$80 = _el$79.firstChild, _el$81 = _el$79.nextSibling, _el$82 = _el$81.firstChild, _el$83 = _el$81.nextSibling, _el$84 = _el$83.firstChild, _el$85 = _el$84.nextSibling, _el$94 = _el$74.nextSibling, _el$95 = _el$94.nextSibling, _el$96 = _el$95.nextSibling, _el$97 = _el$96.nextSibling;
14164
14167
  insert(_el$65, () => displayValue(activeQuery().queryKey, true));
14165
14168
  insert(_el$66, statusLabel);
14166
14169
  insert(_el$69, observerCount);
@@ -14205,7 +14208,7 @@ var init_Devtools = __esm({
14205
14208
  return errorTypes().length === 0 || queryStatus() === "error";
14206
14209
  },
14207
14210
  get children() {
14208
- const _el$86 = _tmpl$26(), _el$87 = _el$86.firstChild, _el$88 = _el$87.nextSibling;
14211
+ const _el$86 = _tmpl$27(), _el$87 = _el$86.firstChild, _el$88 = _el$87.nextSibling;
14209
14212
  _el$86.$$click = () => {
14210
14213
  if (!activeQuery().state.error) {
14211
14214
  triggerError();
@@ -14237,7 +14240,7 @@ var init_Devtools = __esm({
14237
14240
  return !(errorTypes().length === 0 || queryStatus() === "error");
14238
14241
  },
14239
14242
  get children() {
14240
- const _el$89 = _tmpl$27(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling, _el$92 = _el$91.nextSibling; _el$92.firstChild;
14243
+ const _el$89 = _tmpl$28(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling, _el$92 = _el$91.nextSibling; _el$92.firstChild;
14241
14244
  _el$92.addEventListener("change", (e2) => {
14242
14245
  const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
14243
14246
  triggerError(errorType);
@@ -14247,7 +14250,7 @@ var init_Devtools = __esm({
14247
14250
  return errorTypes();
14248
14251
  },
14249
14252
  children: (errorType) => (() => {
14250
- const _el$98 = _tmpl$29();
14253
+ const _el$98 = _tmpl$30();
14251
14254
  insert(_el$98, () => errorType.name);
14252
14255
  createRenderEffect(() => _el$98.value = errorType.name);
14253
14256
  return _el$98;
@@ -14414,7 +14417,7 @@ var init_Devtools = __esm({
14414
14417
  return activeMutation();
14415
14418
  },
14416
14419
  get children() {
14417
- const _el$99 = _tmpl$30(), _el$100 = _el$99.firstChild, _el$101 = _el$100.nextSibling, _el$102 = _el$101.firstChild, _el$103 = _el$102.firstChild, _el$104 = _el$103.firstChild, _el$105 = _el$103.nextSibling, _el$106 = _el$102.nextSibling, _el$107 = _el$106.firstChild, _el$108 = _el$107.nextSibling, _el$109 = _el$101.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling;
14420
+ const _el$99 = _tmpl$31(), _el$100 = _el$99.firstChild, _el$101 = _el$100.nextSibling, _el$102 = _el$101.firstChild, _el$103 = _el$102.firstChild, _el$104 = _el$103.firstChild, _el$105 = _el$103.nextSibling, _el$106 = _el$102.nextSibling, _el$107 = _el$106.firstChild, _el$108 = _el$107.nextSibling, _el$109 = _el$101.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling;
14418
14421
  insert(_el$104, createComponent(Show, {
14419
14422
  get when() {
14420
14423
  return activeMutation().options.mutationKey;
@@ -14683,6 +14686,9 @@ var init_Devtools = __esm({
14683
14686
  "devtoolsBtn-position-top-right": u`
14684
14687
  top: 12px;
14685
14688
  right: 12px;
14689
+ `,
14690
+ "devtoolsBtn-position-relative": u`
14691
+ position: relative;
14686
14692
  `,
14687
14693
  "panel-position-top": u`
14688
14694
  top: 0;
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
@@ -66,7 +66,7 @@ var TanstackQueryDevtools = class {
66
66
  if (this.#Component) {
67
67
  Devtools = this.#Component;
68
68
  } else {
69
- Devtools = lazy(() => import('./Devtools/6ZYZQAZS.js'));
69
+ Devtools = lazy(() => import('./Devtools/SUV2KM2F.js'));
70
70
  this.#Component = Devtools;
71
71
  }
72
72
  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/FWYJEP5C.jsx"));
73
+ Devtools = lazy(() => import("./Devtools/VAJS2OS4.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.2",
3
+ "version": "5.21.3",
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.13.3",
51
51
  "tsup-preset-solid": "^2.2.0",
52
52
  "vite-plugin-solid": "^2.9.1",
53
- "@tanstack/query-core": "5.20.2"
53
+ "@tanstack/query-core": "5.21.2"
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',
@@ -688,6 +692,7 @@ const ContentView: Component<DevtoolsPanelProps> = (props) => {
688
692
  }
689
693
  }}
690
694
  class="tsqd-query-filter-textfield"
695
+ name="tsqd-query-filter-input"
691
696
  value={
692
697
  selectedView() === 'queries'
693
698
  ? props.localStore.filter || ''
@@ -704,6 +709,7 @@ const ContentView: Component<DevtoolsPanelProps> = (props) => {
704
709
  <Show when={selectedView() === 'queries'}>
705
710
  <select
706
711
  value={sort()}
712
+ name="tsqd-queries-filter-sort"
707
713
  onChange={(e) => {
708
714
  props.setLocalStore('sort', e.currentTarget.value)
709
715
  }}
@@ -716,6 +722,7 @@ const ContentView: Component<DevtoolsPanelProps> = (props) => {
716
722
  <Show when={selectedView() === 'mutations'}>
717
723
  <select
718
724
  value={mutationSort()}
725
+ name="tsqd-mutations-filter-sort"
719
726
  onChange={(e) => {
720
727
  props.setLocalStore('mutationSort', e.currentTarget.value)
721
728
  }}
@@ -2263,6 +2270,9 @@ const stylesFactory = (theme: 'light' | 'dark') => {
2263
2270
  top: 12px;
2264
2271
  right: 12px;
2265
2272
  `,
2273
+ 'devtoolsBtn-position-relative': css`
2274
+ position: relative;
2275
+ `,
2266
2276
  'panel-position-top': css`
2267
2277
  top: 0;
2268
2278
  right: 0;