@tanstack/query-devtools 5.83.1 → 5.84.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/dev.cjs CHANGED
@@ -12791,7 +12791,7 @@ var init_Explorer = __esm({
12791
12791
  });
12792
12792
 
12793
12793
  // src/Devtools.tsx
12794
- var _tmpl$25, _tmpl$26, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$03, _tmpl$111, _tmpl$103, _tmpl$112, _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$262, _tmpl$27, _tmpl$28, _tmpl$29, _tmpl$30, _tmpl$31, _tmpl$322, _tmpl$332, selectedQueryHash, setSelectedQueryHash, selectedMutationId, setSelectedMutationId, panelWidth, setPanelWidth, offline, setOffline, Devtools, PiPPanel, ParentPanel, DraggablePanel, ContentView, QueryRow, MutationRow, QueryStatusCount, MutationStatusCount, QueryStatus, QueryDetails, MutationDetails, queryCacheMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, mutationCacheMap, setupMutationCacheSubscription, createSubscribeToMutationCacheBatcher, DEV_TOOLS_EVENT, sendDevToolsEvent, stylesFactory2, lightStyles2, darkStyles2;
12794
+ var _tmpl$25, _tmpl$26, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$03, _tmpl$111, _tmpl$103, _tmpl$112, _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$262, _tmpl$27, _tmpl$28, _tmpl$29, _tmpl$30, _tmpl$31, _tmpl$322, _tmpl$332, _tmpl$34, _tmpl$35, _tmpl$36, selectedQueryHash, setSelectedQueryHash, selectedMutationId, setSelectedMutationId, panelWidth, setPanelWidth, offline, setOffline, Devtools, PiPPanel, ParentPanel, DraggablePanel, ContentView, QueryRow, MutationRow, QueryStatusCount, MutationStatusCount, QueryStatus, QueryDetails, MutationDetails, queryCacheMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, mutationCacheMap, setupMutationCacheSubscription, createSubscribeToMutationCacheBatcher, DEV_TOOLS_EVENT, sendDevToolsEvent, stylesFactory2, lightStyles2, darkStyles2;
12795
12795
  var init_Devtools = __esm({
12796
12796
  "src/Devtools.tsx"() {
12797
12797
  init_web();
@@ -12838,23 +12838,26 @@ var init_Devtools = __esm({
12838
12838
  _tmpl$142 = /* @__PURE__ */ template(`<span>Light`);
12839
12839
  _tmpl$152 = /* @__PURE__ */ template(`<span>Dark`);
12840
12840
  _tmpl$162 = /* @__PURE__ */ template(`<span>System`);
12841
- _tmpl$172 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
12842
- _tmpl$182 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
12843
- _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 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>`);
12844
- _tmpl$202 = /* @__PURE__ */ template(`<option>Sort by `);
12845
- _tmpl$212 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
12846
- _tmpl$222 = /* @__PURE__ */ template(`<div class=tsqd-query-static-indicator>static`);
12847
- _tmpl$232 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
12848
- _tmpl$242 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
12849
- _tmpl$252 = /* @__PURE__ */ template(`<span>`);
12850
- _tmpl$262 = /* @__PURE__ */ template(`<button><span></span><span>`);
12851
- _tmpl$27 = /* @__PURE__ */ template(`<button><span></span> Error`);
12852
- _tmpl$28 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
12853
- _tmpl$29 = /* @__PURE__ */ template(`<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">`);
12854
- _tmpl$30 = /* @__PURE__ */ template(`<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save`);
12855
- _tmpl$31 = /* @__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 </div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
12856
- _tmpl$322 = /* @__PURE__ */ template(`<option>`);
12857
- _tmpl$332 = /* @__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">`);
12841
+ _tmpl$172 = /* @__PURE__ */ template(`<span>Disabled Queries`);
12842
+ _tmpl$182 = /* @__PURE__ */ template(`<span>Show`);
12843
+ _tmpl$192 = /* @__PURE__ */ template(`<span>Hide`);
12844
+ _tmpl$202 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
12845
+ _tmpl$212 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
12846
+ _tmpl$222 = /* @__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 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>`);
12847
+ _tmpl$232 = /* @__PURE__ */ template(`<option>Sort by `);
12848
+ _tmpl$242 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
12849
+ _tmpl$252 = /* @__PURE__ */ template(`<div class=tsqd-query-static-indicator>static`);
12850
+ _tmpl$262 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
12851
+ _tmpl$27 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
12852
+ _tmpl$28 = /* @__PURE__ */ template(`<span>`);
12853
+ _tmpl$29 = /* @__PURE__ */ template(`<button><span></span><span>`);
12854
+ _tmpl$30 = /* @__PURE__ */ template(`<button><span></span> Error`);
12855
+ _tmpl$31 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
12856
+ _tmpl$322 = /* @__PURE__ */ template(`<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">`);
12857
+ _tmpl$332 = /* @__PURE__ */ template(`<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save`);
12858
+ _tmpl$34 = /* @__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 </div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
12859
+ _tmpl$35 = /* @__PURE__ */ template(`<option>`);
12860
+ _tmpl$36 = /* @__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">`);
12858
12861
  [selectedQueryHash, setSelectedQueryHash] = createSignal(null);
12859
12862
  [selectedMutationId, setSelectedMutationId] = createSignal(null);
12860
12863
  [panelWidth, setPanelWidth] = createSignal(0);
@@ -13269,9 +13272,12 @@ var init_Devtools = __esm({
13269
13272
  const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
13270
13273
  return queryCache().getAll().length;
13271
13274
  }, false);
13272
- const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
13275
+ const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder(), props.localStore.hideDisabledQueries], () => {
13273
13276
  const curr = query_cache().getAll();
13274
- const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
13277
+ let filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
13278
+ if (props.localStore.hideDisabledQueries === "true") {
13279
+ filtered = filtered.filter((item) => !item.isDisabled());
13280
+ }
13275
13281
  const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
13276
13282
  return sorted;
13277
13283
  }));
@@ -13296,7 +13302,7 @@ var init_Devtools = __esm({
13296
13302
  el.style.setProperty("--tsqd-font-size", variable);
13297
13303
  };
13298
13304
  return [(() => {
13299
- var _el$0 = _tmpl$192(), _el$1 = _el$0.firstChild, _el$10 = _el$1.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$15 = _el$1.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;
13305
+ var _el$0 = _tmpl$222(), _el$1 = _el$0.firstChild, _el$10 = _el$1.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$15 = _el$1.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;
13300
13306
  var _ref$4 = containerRef;
13301
13307
  typeof _ref$4 === "function" ? use(_ref$4, _el$0) : containerRef = _el$0;
13302
13308
  _el$11.$$click = () => {
@@ -13386,10 +13392,10 @@ var init_Devtools = __esm({
13386
13392
  props.setLocalStore("sort", e2.currentTarget.value);
13387
13393
  });
13388
13394
  insert(_el$20, () => Object.keys(sortFns).map((key) => (() => {
13389
- var _el$43 = _tmpl$202(); _el$43.firstChild;
13390
- _el$43.value = key;
13391
- insert(_el$43, key, null);
13392
- return _el$43;
13395
+ var _el$46 = _tmpl$232(); _el$46.firstChild;
13396
+ _el$46.value = key;
13397
+ insert(_el$46, key, null);
13398
+ return _el$46;
13393
13399
  })()));
13394
13400
  createRenderEffect(() => _el$20.value = sort());
13395
13401
  return _el$20;
@@ -13405,10 +13411,10 @@ var init_Devtools = __esm({
13405
13411
  props.setLocalStore("mutationSort", e2.currentTarget.value);
13406
13412
  });
13407
13413
  insert(_el$21, () => Object.keys(mutationSortFns).map((key) => (() => {
13408
- var _el$45 = _tmpl$202(); _el$45.firstChild;
13409
- _el$45.value = key;
13410
- insert(_el$45, key, null);
13411
- return _el$45;
13414
+ var _el$48 = _tmpl$232(); _el$48.firstChild;
13415
+ _el$48.value = key;
13416
+ insert(_el$48, key, null);
13417
+ return _el$48;
13412
13418
  })()));
13413
13419
  createRenderEffect(() => _el$21.value = mutationSort());
13414
13420
  return _el$21;
@@ -13640,6 +13646,71 @@ var init_Devtools = __esm({
13640
13646
  }
13641
13647
  })];
13642
13648
  }
13649
+ }), createComponent(dropdown_menu_exports.Sub, {
13650
+ overlap: true,
13651
+ gutter: 8,
13652
+ shift: -4,
13653
+ get children() {
13654
+ return [createComponent(dropdown_menu_exports.SubTrigger, {
13655
+ get ["class"]() {
13656
+ return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-disabled-queries");
13657
+ },
13658
+ get children() {
13659
+ return [_tmpl$172(), createComponent(ChevronDown, {})];
13660
+ }
13661
+ }), createComponent(dropdown_menu_exports.Portal, {
13662
+ ref: (el) => setComputedVariables(el),
13663
+ get mount() {
13664
+ return memo(() => !!pip().pipWindow)() ? pip().pipWindow.document.body : document.body;
13665
+ },
13666
+ get children() {
13667
+ return createComponent(dropdown_menu_exports.SubContent, {
13668
+ get ["class"]() {
13669
+ return clsx(styles().settingsMenu, "tsqd-settings-submenu");
13670
+ },
13671
+ get children() {
13672
+ return [createComponent(dropdown_menu_exports.Item, {
13673
+ onSelect: () => {
13674
+ props.setLocalStore("hideDisabledQueries", "false");
13675
+ },
13676
+ as: "button",
13677
+ get ["class"]() {
13678
+ return clsx(styles().settingsSubButton, props.localStore.hideDisabledQueries !== "true" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-show");
13679
+ },
13680
+ get children() {
13681
+ return [_tmpl$182(), createComponent(Show, {
13682
+ get when() {
13683
+ return props.localStore.hideDisabledQueries !== "true";
13684
+ },
13685
+ get children() {
13686
+ return createComponent(CheckCircle, {});
13687
+ }
13688
+ })];
13689
+ }
13690
+ }), createComponent(dropdown_menu_exports.Item, {
13691
+ onSelect: () => {
13692
+ props.setLocalStore("hideDisabledQueries", "true");
13693
+ },
13694
+ as: "button",
13695
+ get ["class"]() {
13696
+ return clsx(styles().settingsSubButton, props.localStore.hideDisabledQueries === "true" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-hide");
13697
+ },
13698
+ get children() {
13699
+ return [_tmpl$192(), createComponent(Show, {
13700
+ get when() {
13701
+ return props.localStore.hideDisabledQueries === "true";
13702
+ },
13703
+ get children() {
13704
+ return createComponent(CheckCircle, {});
13705
+ }
13706
+ })];
13707
+ }
13708
+ })];
13709
+ }
13710
+ });
13711
+ }
13712
+ })];
13713
+ }
13643
13714
  })];
13644
13715
  }
13645
13716
  });
@@ -13652,8 +13723,8 @@ var init_Devtools = __esm({
13652
13723
  return selectedView() === "queries";
13653
13724
  },
13654
13725
  get children() {
13655
- var _el$39 = _tmpl$172(), _el$40 = _el$39.firstChild;
13656
- insert(_el$40, createComponent(Key, {
13726
+ var _el$42 = _tmpl$202(), _el$43 = _el$42.firstChild;
13727
+ insert(_el$43, createComponent(Key, {
13657
13728
  by: (q) => q.queryHash,
13658
13729
  get each() {
13659
13730
  return queries();
@@ -13664,8 +13735,8 @@ var init_Devtools = __esm({
13664
13735
  }
13665
13736
  })
13666
13737
  }));
13667
- createRenderEffect(() => className(_el$39, clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container")));
13668
- return _el$39;
13738
+ createRenderEffect(() => className(_el$42, clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container")));
13739
+ return _el$42;
13669
13740
  }
13670
13741
  }), null);
13671
13742
  insert(_el$0, createComponent(Show, {
@@ -13673,8 +13744,8 @@ var init_Devtools = __esm({
13673
13744
  return selectedView() === "mutations";
13674
13745
  },
13675
13746
  get children() {
13676
- var _el$41 = _tmpl$182(), _el$42 = _el$41.firstChild;
13677
- insert(_el$42, createComponent(Key, {
13747
+ var _el$44 = _tmpl$212(), _el$45 = _el$44.firstChild;
13748
+ insert(_el$45, createComponent(Key, {
13678
13749
  by: (m) => m.mutationId,
13679
13750
  get each() {
13680
13751
  return mutations();
@@ -13685,8 +13756,8 @@ var init_Devtools = __esm({
13685
13756
  }
13686
13757
  })
13687
13758
  }));
13688
- createRenderEffect(() => className(_el$41, clsx(styles().overflowQueryContainer, "tsqd-mutations-overflow-container")));
13689
- return _el$41;
13759
+ createRenderEffect(() => className(_el$44, clsx(styles().overflowQueryContainer, "tsqd-mutations-overflow-container")));
13760
+ return _el$44;
13690
13761
  }
13691
13762
  }), null);
13692
13763
  createRenderEffect((_p$) => {
@@ -13808,38 +13879,38 @@ var init_Devtools = __esm({
13808
13879
  return queryState();
13809
13880
  },
13810
13881
  get children() {
13811
- var _el$47 = _tmpl$232(), _el$48 = _el$47.firstChild, _el$49 = _el$48.nextSibling;
13812
- _el$47.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
13813
- insert(_el$48, observers);
13814
- insert(_el$49, () => props.query.queryHash);
13815
- insert(_el$47, createComponent(Show, {
13882
+ var _el$50 = _tmpl$262(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling;
13883
+ _el$50.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
13884
+ insert(_el$51, observers);
13885
+ insert(_el$52, () => props.query.queryHash);
13886
+ insert(_el$50, createComponent(Show, {
13816
13887
  get when() {
13817
13888
  return isDisabled();
13818
13889
  },
13819
13890
  get children() {
13820
- return _tmpl$212();
13891
+ return _tmpl$242();
13821
13892
  }
13822
13893
  }), null);
13823
- insert(_el$47, createComponent(Show, {
13894
+ insert(_el$50, createComponent(Show, {
13824
13895
  get when() {
13825
13896
  return isStatic();
13826
13897
  },
13827
13898
  get children() {
13828
- return _tmpl$222();
13899
+ return _tmpl$252();
13829
13900
  }
13830
13901
  }), null);
13831
13902
  createRenderEffect((_p$) => {
13832
13903
  var _v$24 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$25 = `Query key ${props.query.queryHash}`, _v$26 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
13833
- _v$24 !== _p$.e && className(_el$47, _p$.e = _v$24);
13834
- _v$25 !== _p$.t && setAttribute(_el$47, "aria-label", _p$.t = _v$25);
13835
- _v$26 !== _p$.a && className(_el$48, _p$.a = _v$26);
13904
+ _v$24 !== _p$.e && className(_el$50, _p$.e = _v$24);
13905
+ _v$25 !== _p$.t && setAttribute(_el$50, "aria-label", _p$.t = _v$25);
13906
+ _v$26 !== _p$.a && className(_el$51, _p$.a = _v$26);
13836
13907
  return _p$;
13837
13908
  }, {
13838
13909
  e: void 0,
13839
13910
  t: void 0,
13840
13911
  a: void 0
13841
13912
  });
13842
- return _el$47;
13913
+ return _el$50;
13843
13914
  }
13844
13915
  });
13845
13916
  };
@@ -13894,11 +13965,11 @@ var init_Devtools = __esm({
13894
13965
  return mutationState();
13895
13966
  },
13896
13967
  get children() {
13897
- var _el$52 = _tmpl$232(), _el$53 = _el$52.firstChild, _el$54 = _el$53.nextSibling;
13898
- _el$52.$$click = () => {
13968
+ var _el$55 = _tmpl$262(), _el$56 = _el$55.firstChild, _el$57 = _el$56.nextSibling;
13969
+ _el$55.$$click = () => {
13899
13970
  setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
13900
13971
  };
13901
- insert(_el$53, createComponent(Show, {
13972
+ insert(_el$56, createComponent(Show, {
13902
13973
  get when() {
13903
13974
  return color() === "purple";
13904
13975
  },
@@ -13906,7 +13977,7 @@ var init_Devtools = __esm({
13906
13977
  return createComponent(PauseCircle, {});
13907
13978
  }
13908
13979
  }), null);
13909
- insert(_el$53, createComponent(Show, {
13980
+ insert(_el$56, createComponent(Show, {
13910
13981
  get when() {
13911
13982
  return color() === "green";
13912
13983
  },
@@ -13914,7 +13985,7 @@ var init_Devtools = __esm({
13914
13985
  return createComponent(CheckCircle, {});
13915
13986
  }
13916
13987
  }), null);
13917
- insert(_el$53, createComponent(Show, {
13988
+ insert(_el$56, createComponent(Show, {
13918
13989
  get when() {
13919
13990
  return color() === "red";
13920
13991
  },
@@ -13922,7 +13993,7 @@ var init_Devtools = __esm({
13922
13993
  return createComponent(XCircle, {});
13923
13994
  }
13924
13995
  }), null);
13925
- insert(_el$53, createComponent(Show, {
13996
+ insert(_el$56, createComponent(Show, {
13926
13997
  get when() {
13927
13998
  return color() === "yellow";
13928
13999
  },
@@ -13930,7 +14001,7 @@ var init_Devtools = __esm({
13930
14001
  return createComponent(LoadingCircle, {});
13931
14002
  }
13932
14003
  }), null);
13933
- insert(_el$54, createComponent(Show, {
14004
+ insert(_el$57, createComponent(Show, {
13934
14005
  get when() {
13935
14006
  return props.mutation.options.mutationKey;
13936
14007
  },
@@ -13938,19 +14009,19 @@ var init_Devtools = __esm({
13938
14009
  return [memo(() => JSON.stringify(props.mutation.options.mutationKey)), " -", " "];
13939
14010
  }
13940
14011
  }), null);
13941
- insert(_el$54, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
14012
+ insert(_el$57, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
13942
14013
  createRenderEffect((_p$) => {
13943
14014
  var _v$27 = clsx(styles().queryRow, selectedMutationId() === props.mutation.mutationId && styles().selectedQueryRow, "tsqd-query-row"), _v$28 = `Mutation submitted at ${new Date(props.mutation.state.submittedAt).toLocaleString()}`, _v$29 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
13944
- _v$27 !== _p$.e && className(_el$52, _p$.e = _v$27);
13945
- _v$28 !== _p$.t && setAttribute(_el$52, "aria-label", _p$.t = _v$28);
13946
- _v$29 !== _p$.a && className(_el$53, _p$.a = _v$29);
14015
+ _v$27 !== _p$.e && className(_el$55, _p$.e = _v$27);
14016
+ _v$28 !== _p$.t && setAttribute(_el$55, "aria-label", _p$.t = _v$28);
14017
+ _v$29 !== _p$.a && className(_el$56, _p$.a = _v$29);
13947
14018
  return _p$;
13948
14019
  }, {
13949
14020
  e: void 0,
13950
14021
  t: void 0,
13951
14022
  a: void 0
13952
14023
  });
13953
- return _el$52;
14024
+ return _el$55;
13954
14025
  }
13955
14026
  });
13956
14027
  };
@@ -13968,44 +14039,44 @@ var init_Devtools = __esm({
13968
14039
  return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
13969
14040
  });
13970
14041
  return (() => {
13971
- var _el$55 = _tmpl$26();
13972
- insert(_el$55, createComponent(QueryStatus, {
14042
+ var _el$58 = _tmpl$26();
14043
+ insert(_el$58, createComponent(QueryStatus, {
13973
14044
  label: "Fresh",
13974
14045
  color: "green",
13975
14046
  get count() {
13976
14047
  return fresh();
13977
14048
  }
13978
14049
  }), null);
13979
- insert(_el$55, createComponent(QueryStatus, {
14050
+ insert(_el$58, createComponent(QueryStatus, {
13980
14051
  label: "Fetching",
13981
14052
  color: "blue",
13982
14053
  get count() {
13983
14054
  return fetching();
13984
14055
  }
13985
14056
  }), null);
13986
- insert(_el$55, createComponent(QueryStatus, {
14057
+ insert(_el$58, createComponent(QueryStatus, {
13987
14058
  label: "Paused",
13988
14059
  color: "purple",
13989
14060
  get count() {
13990
14061
  return paused();
13991
14062
  }
13992
14063
  }), null);
13993
- insert(_el$55, createComponent(QueryStatus, {
14064
+ insert(_el$58, createComponent(QueryStatus, {
13994
14065
  label: "Stale",
13995
14066
  color: "yellow",
13996
14067
  get count() {
13997
14068
  return stale();
13998
14069
  }
13999
14070
  }), null);
14000
- insert(_el$55, createComponent(QueryStatus, {
14071
+ insert(_el$58, createComponent(QueryStatus, {
14001
14072
  label: "Inactive",
14002
14073
  color: "gray",
14003
14074
  get count() {
14004
14075
  return inactive();
14005
14076
  }
14006
14077
  }), null);
14007
- createRenderEffect(() => className(_el$55, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
14008
- return _el$55;
14078
+ createRenderEffect(() => className(_el$58, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
14079
+ return _el$58;
14009
14080
  })();
14010
14081
  };
14011
14082
  MutationStatusCount = () => {
@@ -14033,37 +14104,37 @@ var init_Devtools = __esm({
14033
14104
  return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
14034
14105
  });
14035
14106
  return (() => {
14036
- var _el$56 = _tmpl$26();
14037
- insert(_el$56, createComponent(QueryStatus, {
14107
+ var _el$59 = _tmpl$26();
14108
+ insert(_el$59, createComponent(QueryStatus, {
14038
14109
  label: "Paused",
14039
14110
  color: "purple",
14040
14111
  get count() {
14041
14112
  return paused();
14042
14113
  }
14043
14114
  }), null);
14044
- insert(_el$56, createComponent(QueryStatus, {
14115
+ insert(_el$59, createComponent(QueryStatus, {
14045
14116
  label: "Pending",
14046
14117
  color: "yellow",
14047
14118
  get count() {
14048
14119
  return pending();
14049
14120
  }
14050
14121
  }), null);
14051
- insert(_el$56, createComponent(QueryStatus, {
14122
+ insert(_el$59, createComponent(QueryStatus, {
14052
14123
  label: "Success",
14053
14124
  color: "green",
14054
14125
  get count() {
14055
14126
  return success();
14056
14127
  }
14057
14128
  }), null);
14058
- insert(_el$56, createComponent(QueryStatus, {
14129
+ insert(_el$59, createComponent(QueryStatus, {
14059
14130
  label: "Error",
14060
14131
  color: "red",
14061
14132
  get count() {
14062
14133
  return error();
14063
14134
  }
14064
14135
  }), null);
14065
- createRenderEffect(() => className(_el$56, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
14066
- return _el$56;
14136
+ createRenderEffect(() => className(_el$59, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
14137
+ return _el$59;
14067
14138
  })();
14068
14139
  };
14069
14140
  QueryStatus = (props) => {
@@ -14094,17 +14165,17 @@ var init_Devtools = __esm({
14094
14165
  return true;
14095
14166
  });
14096
14167
  return (() => {
14097
- var _el$57 = _tmpl$262(), _el$59 = _el$57.firstChild, _el$61 = _el$59.nextSibling;
14168
+ var _el$60 = _tmpl$29(), _el$62 = _el$60.firstChild, _el$64 = _el$62.nextSibling;
14098
14169
  var _ref$5 = tagRef;
14099
- typeof _ref$5 === "function" ? use(_ref$5, _el$57) : tagRef = _el$57;
14100
- _el$57.addEventListener("mouseleave", () => {
14170
+ typeof _ref$5 === "function" ? use(_ref$5, _el$60) : tagRef = _el$60;
14171
+ _el$60.addEventListener("mouseleave", () => {
14101
14172
  setMouseOver(false);
14102
14173
  setFocused(false);
14103
14174
  });
14104
- _el$57.addEventListener("mouseenter", () => setMouseOver(true));
14105
- _el$57.addEventListener("blur", () => setFocused(false));
14106
- _el$57.addEventListener("focus", () => setFocused(true));
14107
- spread(_el$57, mergeProps({
14175
+ _el$60.addEventListener("mouseenter", () => setMouseOver(true));
14176
+ _el$60.addEventListener("blur", () => setFocused(false));
14177
+ _el$60.addEventListener("focus", () => setFocused(true));
14178
+ spread(_el$60, mergeProps({
14108
14179
  get disabled() {
14109
14180
  return showLabel();
14110
14181
  },
@@ -14119,29 +14190,29 @@ var init_Devtools = __esm({
14119
14190
  }, () => mouseOver() || focused() ? {
14120
14191
  "aria-describedby": "tsqd-status-tooltip"
14121
14192
  } : {}), false, true);
14122
- insert(_el$57, createComponent(Show, {
14193
+ insert(_el$60, createComponent(Show, {
14123
14194
  get when() {
14124
14195
  return memo(() => !!!showLabel())() && (mouseOver() || focused());
14125
14196
  },
14126
14197
  get children() {
14127
- var _el$58 = _tmpl$242();
14128
- insert(_el$58, () => props.label);
14129
- createRenderEffect(() => className(_el$58, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
14130
- return _el$58;
14198
+ var _el$61 = _tmpl$27();
14199
+ insert(_el$61, () => props.label);
14200
+ createRenderEffect(() => className(_el$61, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
14201
+ return _el$61;
14131
14202
  }
14132
- }), _el$59);
14133
- insert(_el$57, createComponent(Show, {
14203
+ }), _el$62);
14204
+ insert(_el$60, createComponent(Show, {
14134
14205
  get when() {
14135
14206
  return showLabel();
14136
14207
  },
14137
14208
  get children() {
14138
- var _el$60 = _tmpl$252();
14139
- insert(_el$60, () => props.label);
14140
- createRenderEffect(() => className(_el$60, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
14141
- return _el$60;
14209
+ var _el$63 = _tmpl$28();
14210
+ insert(_el$63, () => props.label);
14211
+ createRenderEffect(() => className(_el$63, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
14212
+ return _el$63;
14142
14213
  }
14143
- }), _el$61);
14144
- insert(_el$61, () => props.count);
14214
+ }), _el$64);
14215
+ insert(_el$64, () => props.count);
14145
14216
  createRenderEffect((_p$) => {
14146
14217
  var _v$30 = clsx(css`
14147
14218
  width: ${tokens.size[1.5]};
@@ -14152,14 +14223,14 @@ var init_Devtools = __esm({
14152
14223
  background-color: ${t2(colors[props.color][100], colors[props.color][900])};
14153
14224
  color: ${t2(colors[props.color][700], colors[props.color][300])};
14154
14225
  `, "tsqd-query-status-tag-count");
14155
- _v$30 !== _p$.e && className(_el$59, _p$.e = _v$30);
14156
- _v$31 !== _p$.t && className(_el$61, _p$.t = _v$31);
14226
+ _v$30 !== _p$.e && className(_el$62, _p$.e = _v$30);
14227
+ _v$31 !== _p$.t && className(_el$64, _p$.t = _v$31);
14157
14228
  return _p$;
14158
14229
  }, {
14159
14230
  e: void 0,
14160
14231
  t: void 0
14161
14232
  });
14162
- return _el$57;
14233
+ return _el$60;
14163
14234
  })();
14164
14235
  };
14165
14236
  QueryDetails = () => {
@@ -14276,27 +14347,27 @@ var init_Devtools = __esm({
14276
14347
  return memo(() => !!activeQuery())() && activeQueryState();
14277
14348
  },
14278
14349
  get children() {
14279
- var _el$62 = _tmpl$31(), _el$63 = _el$62.firstChild, _el$64 = _el$63.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.firstChild, _el$67 = _el$66.firstChild, _el$68 = _el$66.nextSibling, _el$69 = _el$65.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$70.nextSibling, _el$72 = _el$69.nextSibling, _el$73 = _el$72.firstChild, _el$74 = _el$73.nextSibling, _el$75 = _el$64.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.firstChild, _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$83.nextSibling, _el$86 = _el$85.firstChild, _el$87 = _el$86.nextSibling, _el$96 = _el$76.nextSibling; _el$96.firstChild; var _el$106 = _el$96.nextSibling, _el$107 = _el$106.nextSibling;
14280
- insert(_el$67, () => displayValue(activeQuery().queryKey, true));
14281
- insert(_el$68, statusLabel);
14282
- insert(_el$71, observerCount);
14283
- insert(_el$74, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
14284
- _el$77.$$click = handleRefetch;
14285
- _el$79.$$click = () => {
14350
+ var _el$65 = _tmpl$34(), _el$66 = _el$65.firstChild, _el$67 = _el$66.nextSibling, _el$68 = _el$67.firstChild, _el$69 = _el$68.firstChild, _el$70 = _el$69.firstChild, _el$71 = _el$69.nextSibling, _el$72 = _el$68.nextSibling, _el$73 = _el$72.firstChild, _el$74 = _el$73.nextSibling, _el$75 = _el$72.nextSibling, _el$76 = _el$75.firstChild, _el$77 = _el$76.nextSibling, _el$78 = _el$67.nextSibling, _el$79 = _el$78.nextSibling, _el$80 = _el$79.firstChild, _el$81 = _el$80.firstChild, _el$82 = _el$80.nextSibling, _el$83 = _el$82.firstChild, _el$84 = _el$82.nextSibling, _el$85 = _el$84.firstChild, _el$86 = _el$84.nextSibling, _el$87 = _el$86.firstChild, _el$88 = _el$86.nextSibling, _el$89 = _el$88.firstChild, _el$90 = _el$89.nextSibling, _el$99 = _el$79.nextSibling; _el$99.firstChild; var _el$109 = _el$99.nextSibling, _el$110 = _el$109.nextSibling;
14351
+ insert(_el$70, () => displayValue(activeQuery().queryKey, true));
14352
+ insert(_el$71, statusLabel);
14353
+ insert(_el$74, observerCount);
14354
+ insert(_el$77, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
14355
+ _el$80.$$click = handleRefetch;
14356
+ _el$82.$$click = () => {
14286
14357
  sendDevToolsEvent({
14287
14358
  type: "INVALIDATE",
14288
14359
  queryHash: activeQuery()?.queryHash
14289
14360
  });
14290
14361
  queryClient.invalidateQueries(activeQuery());
14291
14362
  };
14292
- _el$81.$$click = () => {
14363
+ _el$84.$$click = () => {
14293
14364
  sendDevToolsEvent({
14294
14365
  type: "RESET",
14295
14366
  queryHash: activeQuery()?.queryHash
14296
14367
  });
14297
14368
  queryClient.resetQueries(activeQuery());
14298
14369
  };
14299
- _el$83.$$click = () => {
14370
+ _el$86.$$click = () => {
14300
14371
  sendDevToolsEvent({
14301
14372
  type: "REMOVE",
14302
14373
  queryHash: activeQuery()?.queryHash
@@ -14304,7 +14375,7 @@ var init_Devtools = __esm({
14304
14375
  queryClient.removeQueries(activeQuery());
14305
14376
  setSelectedQueryHash(null);
14306
14377
  };
14307
- _el$85.$$click = () => {
14378
+ _el$88.$$click = () => {
14308
14379
  if (activeQuery()?.state.data === void 0) {
14309
14380
  setRestoringLoading(true);
14310
14381
  restoreQueryAfterLoadingOrError();
@@ -14334,14 +14405,14 @@ var init_Devtools = __esm({
14334
14405
  });
14335
14406
  }
14336
14407
  };
14337
- insert(_el$85, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$87);
14338
- insert(_el$76, createComponent(Show, {
14408
+ insert(_el$88, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$90);
14409
+ insert(_el$79, createComponent(Show, {
14339
14410
  get when() {
14340
14411
  return errorTypes().length === 0 || queryStatus() === "error";
14341
14412
  },
14342
14413
  get children() {
14343
- var _el$88 = _tmpl$27(), _el$89 = _el$88.firstChild, _el$90 = _el$89.nextSibling;
14344
- _el$88.$$click = () => {
14414
+ var _el$91 = _tmpl$30(), _el$92 = _el$91.firstChild, _el$93 = _el$92.nextSibling;
14415
+ _el$91.$$click = () => {
14345
14416
  if (!activeQuery().state.error) {
14346
14417
  triggerError();
14347
14418
  } else {
@@ -14352,71 +14423,71 @@ var init_Devtools = __esm({
14352
14423
  queryClient.resetQueries(activeQuery());
14353
14424
  }
14354
14425
  };
14355
- insert(_el$88, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$90);
14426
+ insert(_el$91, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$93);
14356
14427
  createRenderEffect((_p$) => {
14357
14428
  var _v$32 = clsx(css`
14358
14429
  color: ${t2(colors.red[500], colors.red[400])};
14359
14430
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$33 = queryStatus() === "pending", _v$34 = css`
14360
14431
  background-color: ${t2(colors.red[500], colors.red[400])};
14361
14432
  `;
14362
- _v$32 !== _p$.e && className(_el$88, _p$.e = _v$32);
14363
- _v$33 !== _p$.t && (_el$88.disabled = _p$.t = _v$33);
14364
- _v$34 !== _p$.a && className(_el$89, _p$.a = _v$34);
14433
+ _v$32 !== _p$.e && className(_el$91, _p$.e = _v$32);
14434
+ _v$33 !== _p$.t && (_el$91.disabled = _p$.t = _v$33);
14435
+ _v$34 !== _p$.a && className(_el$92, _p$.a = _v$34);
14365
14436
  return _p$;
14366
14437
  }, {
14367
14438
  e: void 0,
14368
14439
  t: void 0,
14369
14440
  a: void 0
14370
14441
  });
14371
- return _el$88;
14442
+ return _el$91;
14372
14443
  }
14373
14444
  }), null);
14374
- insert(_el$76, createComponent(Show, {
14445
+ insert(_el$79, createComponent(Show, {
14375
14446
  get when() {
14376
14447
  return !(errorTypes().length === 0 || queryStatus() === "error");
14377
14448
  },
14378
14449
  get children() {
14379
- var _el$91 = _tmpl$28(), _el$92 = _el$91.firstChild, _el$93 = _el$92.nextSibling, _el$94 = _el$93.nextSibling; _el$94.firstChild;
14380
- _el$94.addEventListener("change", (e2) => {
14450
+ var _el$94 = _tmpl$31(), _el$95 = _el$94.firstChild, _el$96 = _el$95.nextSibling, _el$97 = _el$96.nextSibling; _el$97.firstChild;
14451
+ _el$97.addEventListener("change", (e2) => {
14381
14452
  const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
14382
14453
  triggerError(errorType);
14383
14454
  });
14384
- insert(_el$94, createComponent(For, {
14455
+ insert(_el$97, createComponent(For, {
14385
14456
  get each() {
14386
14457
  return errorTypes();
14387
14458
  },
14388
14459
  children: (errorType) => (() => {
14389
- var _el$108 = _tmpl$322();
14390
- insert(_el$108, () => errorType.name);
14391
- createRenderEffect(() => _el$108.value = errorType.name);
14392
- return _el$108;
14460
+ var _el$111 = _tmpl$35();
14461
+ insert(_el$111, () => errorType.name);
14462
+ createRenderEffect(() => _el$111.value = errorType.name);
14463
+ return _el$111;
14393
14464
  })()
14394
14465
  }), null);
14395
- insert(_el$91, createComponent(ChevronDown, {}), null);
14466
+ insert(_el$94, createComponent(ChevronDown, {}), null);
14396
14467
  createRenderEffect((_p$) => {
14397
14468
  var _v$35 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$36 = css`
14398
14469
  background-color: ${tokens.colors.red[400]};
14399
14470
  `, _v$37 = queryStatus() === "pending";
14400
- _v$35 !== _p$.e && className(_el$91, _p$.e = _v$35);
14401
- _v$36 !== _p$.t && className(_el$92, _p$.t = _v$36);
14402
- _v$37 !== _p$.a && (_el$94.disabled = _p$.a = _v$37);
14471
+ _v$35 !== _p$.e && className(_el$94, _p$.e = _v$35);
14472
+ _v$36 !== _p$.t && className(_el$95, _p$.t = _v$36);
14473
+ _v$37 !== _p$.a && (_el$97.disabled = _p$.a = _v$37);
14403
14474
  return _p$;
14404
14475
  }, {
14405
14476
  e: void 0,
14406
14477
  t: void 0,
14407
14478
  a: void 0
14408
14479
  });
14409
- return _el$91;
14480
+ return _el$94;
14410
14481
  }
14411
14482
  }), null);
14412
- insert(_el$96, () => dataMode() === "view" ? "Explorer" : "Editor", null);
14413
- insert(_el$62, createComponent(Show, {
14483
+ insert(_el$99, () => dataMode() === "view" ? "Explorer" : "Editor", null);
14484
+ insert(_el$65, createComponent(Show, {
14414
14485
  get when() {
14415
14486
  return dataMode() === "view";
14416
14487
  },
14417
14488
  get children() {
14418
- var _el$98 = _tmpl$29();
14419
- insert(_el$98, createComponent(Explorer, {
14489
+ var _el$101 = _tmpl$322();
14490
+ insert(_el$101, createComponent(Explorer, {
14420
14491
  label: "Data",
14421
14492
  defaultExpanded: ["Data"],
14422
14493
  get value() {
@@ -14428,17 +14499,17 @@ var init_Devtools = __esm({
14428
14499
  return activeQuery();
14429
14500
  }
14430
14501
  }));
14431
- createRenderEffect((_$p) => (_$p = tokens.size[2]) != null ? _el$98.style.setProperty("padding", _$p) : _el$98.style.removeProperty("padding"));
14432
- return _el$98;
14502
+ createRenderEffect((_$p) => (_$p = tokens.size[2]) != null ? _el$101.style.setProperty("padding", _$p) : _el$101.style.removeProperty("padding"));
14503
+ return _el$101;
14433
14504
  }
14434
- }), _el$106);
14435
- insert(_el$62, createComponent(Show, {
14505
+ }), _el$109);
14506
+ insert(_el$65, createComponent(Show, {
14436
14507
  get when() {
14437
14508
  return dataMode() === "edit";
14438
14509
  },
14439
14510
  get children() {
14440
- var _el$99 = _tmpl$30(), _el$100 = _el$99.firstChild, _el$101 = _el$100.nextSibling, _el$102 = _el$101.firstChild, _el$103 = _el$102.nextSibling, _el$104 = _el$103.firstChild, _el$105 = _el$104.nextSibling;
14441
- _el$99.addEventListener("submit", (e2) => {
14511
+ var _el$102 = _tmpl$332(), _el$103 = _el$102.firstChild, _el$104 = _el$103.nextSibling, _el$105 = _el$104.firstChild, _el$106 = _el$105.nextSibling, _el$107 = _el$106.firstChild, _el$108 = _el$107.nextSibling;
14512
+ _el$102.addEventListener("submit", (e2) => {
14442
14513
  e2.preventDefault();
14443
14514
  const formData = new FormData(e2.currentTarget);
14444
14515
  const data = formData.get("data");
@@ -14453,23 +14524,23 @@ var init_Devtools = __esm({
14453
14524
  setDataEditError(true);
14454
14525
  }
14455
14526
  });
14456
- _el$100.addEventListener("focus", () => setDataEditError(false));
14457
- insert(_el$102, () => dataEditError() ? "Invalid Value" : "");
14458
- _el$104.$$click = () => setDataMode("view");
14527
+ _el$103.addEventListener("focus", () => setDataEditError(false));
14528
+ insert(_el$105, () => dataEditError() ? "Invalid Value" : "");
14529
+ _el$107.$$click = () => setDataMode("view");
14459
14530
  createRenderEffect((_p$) => {
14460
14531
  var _v$38 = clsx(styles().devtoolsEditForm, "tsqd-query-details-data-editor"), _v$39 = styles().devtoolsEditTextarea, _v$40 = dataEditError(), _v$41 = styles().devtoolsEditFormActions, _v$42 = styles().devtoolsEditFormError, _v$43 = styles().devtoolsEditFormActionContainer, _v$44 = clsx(styles().devtoolsEditFormAction, css`
14461
14532
  color: ${t2(colors.gray[600], colors.gray[300])};
14462
14533
  `), _v$45 = clsx(styles().devtoolsEditFormAction, css`
14463
14534
  color: ${t2(colors.blue[600], colors.blue[400])};
14464
14535
  `);
14465
- _v$38 !== _p$.e && className(_el$99, _p$.e = _v$38);
14466
- _v$39 !== _p$.t && className(_el$100, _p$.t = _v$39);
14467
- _v$40 !== _p$.a && setAttribute(_el$100, "data-error", _p$.a = _v$40);
14468
- _v$41 !== _p$.o && className(_el$101, _p$.o = _v$41);
14469
- _v$42 !== _p$.i && className(_el$102, _p$.i = _v$42);
14470
- _v$43 !== _p$.n && className(_el$103, _p$.n = _v$43);
14471
- _v$44 !== _p$.s && className(_el$104, _p$.s = _v$44);
14472
- _v$45 !== _p$.h && className(_el$105, _p$.h = _v$45);
14536
+ _v$38 !== _p$.e && className(_el$102, _p$.e = _v$38);
14537
+ _v$39 !== _p$.t && className(_el$103, _p$.t = _v$39);
14538
+ _v$40 !== _p$.a && setAttribute(_el$103, "data-error", _p$.a = _v$40);
14539
+ _v$41 !== _p$.o && className(_el$104, _p$.o = _v$41);
14540
+ _v$42 !== _p$.i && className(_el$105, _p$.i = _v$42);
14541
+ _v$43 !== _p$.n && className(_el$106, _p$.n = _v$43);
14542
+ _v$44 !== _p$.s && className(_el$107, _p$.s = _v$44);
14543
+ _v$45 !== _p$.h && className(_el$108, _p$.h = _v$45);
14473
14544
  return _p$;
14474
14545
  }, {
14475
14546
  e: void 0,
@@ -14481,11 +14552,11 @@ var init_Devtools = __esm({
14481
14552
  s: void 0,
14482
14553
  h: void 0
14483
14554
  });
14484
- createRenderEffect(() => _el$100.value = JSON.stringify(activeQueryStateData(), null, 2));
14485
- return _el$99;
14555
+ createRenderEffect(() => _el$103.value = JSON.stringify(activeQueryStateData(), null, 2));
14556
+ return _el$102;
14486
14557
  }
14487
- }), _el$106);
14488
- insert(_el$107, createComponent(Explorer, {
14558
+ }), _el$109);
14559
+ insert(_el$110, createComponent(Explorer, {
14489
14560
  label: "Query",
14490
14561
  defaultExpanded: ["Query", "queryKey"],
14491
14562
  get value() {
@@ -14514,30 +14585,30 @@ var init_Devtools = __esm({
14514
14585
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$65 = restoringLoading(), _v$66 = css`
14515
14586
  background-color: ${t2(colors.cyan[500], colors.cyan[400])};
14516
14587
  `, _v$67 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$68 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$69 = tokens.size[2];
14517
- _v$46 !== _p$.e && className(_el$62, _p$.e = _v$46);
14518
- _v$47 !== _p$.t && className(_el$63, _p$.t = _v$47);
14519
- _v$48 !== _p$.a && className(_el$64, _p$.a = _v$48);
14520
- _v$49 !== _p$.o && className(_el$68, _p$.o = _v$49);
14521
- _v$50 !== _p$.i && className(_el$75, _p$.i = _v$50);
14522
- _v$51 !== _p$.n && className(_el$76, _p$.n = _v$51);
14523
- _v$52 !== _p$.s && className(_el$77, _p$.s = _v$52);
14524
- _v$53 !== _p$.h && (_el$77.disabled = _p$.h = _v$53);
14525
- _v$54 !== _p$.r && className(_el$78, _p$.r = _v$54);
14526
- _v$55 !== _p$.d && className(_el$79, _p$.d = _v$55);
14527
- _v$56 !== _p$.l && (_el$79.disabled = _p$.l = _v$56);
14528
- _v$57 !== _p$.u && className(_el$80, _p$.u = _v$57);
14529
- _v$58 !== _p$.c && className(_el$81, _p$.c = _v$58);
14530
- _v$59 !== _p$.w && (_el$81.disabled = _p$.w = _v$59);
14531
- _v$60 !== _p$.m && className(_el$82, _p$.m = _v$60);
14532
- _v$61 !== _p$.f && className(_el$83, _p$.f = _v$61);
14533
- _v$62 !== _p$.y && (_el$83.disabled = _p$.y = _v$62);
14534
- _v$63 !== _p$.g && className(_el$84, _p$.g = _v$63);
14535
- _v$64 !== _p$.p && className(_el$85, _p$.p = _v$64);
14536
- _v$65 !== _p$.b && (_el$85.disabled = _p$.b = _v$65);
14537
- _v$66 !== _p$.T && className(_el$86, _p$.T = _v$66);
14538
- _v$67 !== _p$.A && className(_el$96, _p$.A = _v$67);
14539
- _v$68 !== _p$.O && className(_el$106, _p$.O = _v$68);
14540
- _v$69 !== _p$.I && ((_p$.I = _v$69) != null ? _el$107.style.setProperty("padding", _v$69) : _el$107.style.removeProperty("padding"));
14588
+ _v$46 !== _p$.e && className(_el$65, _p$.e = _v$46);
14589
+ _v$47 !== _p$.t && className(_el$66, _p$.t = _v$47);
14590
+ _v$48 !== _p$.a && className(_el$67, _p$.a = _v$48);
14591
+ _v$49 !== _p$.o && className(_el$71, _p$.o = _v$49);
14592
+ _v$50 !== _p$.i && className(_el$78, _p$.i = _v$50);
14593
+ _v$51 !== _p$.n && className(_el$79, _p$.n = _v$51);
14594
+ _v$52 !== _p$.s && className(_el$80, _p$.s = _v$52);
14595
+ _v$53 !== _p$.h && (_el$80.disabled = _p$.h = _v$53);
14596
+ _v$54 !== _p$.r && className(_el$81, _p$.r = _v$54);
14597
+ _v$55 !== _p$.d && className(_el$82, _p$.d = _v$55);
14598
+ _v$56 !== _p$.l && (_el$82.disabled = _p$.l = _v$56);
14599
+ _v$57 !== _p$.u && className(_el$83, _p$.u = _v$57);
14600
+ _v$58 !== _p$.c && className(_el$84, _p$.c = _v$58);
14601
+ _v$59 !== _p$.w && (_el$84.disabled = _p$.w = _v$59);
14602
+ _v$60 !== _p$.m && className(_el$85, _p$.m = _v$60);
14603
+ _v$61 !== _p$.f && className(_el$86, _p$.f = _v$61);
14604
+ _v$62 !== _p$.y && (_el$86.disabled = _p$.y = _v$62);
14605
+ _v$63 !== _p$.g && className(_el$87, _p$.g = _v$63);
14606
+ _v$64 !== _p$.p && className(_el$88, _p$.p = _v$64);
14607
+ _v$65 !== _p$.b && (_el$88.disabled = _p$.b = _v$65);
14608
+ _v$66 !== _p$.T && className(_el$89, _p$.T = _v$66);
14609
+ _v$67 !== _p$.A && className(_el$99, _p$.A = _v$67);
14610
+ _v$68 !== _p$.O && className(_el$109, _p$.O = _v$68);
14611
+ _v$69 !== _p$.I && ((_p$.I = _v$69) != null ? _el$110.style.setProperty("padding", _v$69) : _el$110.style.removeProperty("padding"));
14541
14612
  return _p$;
14542
14613
  }, {
14543
14614
  e: void 0,
@@ -14565,7 +14636,7 @@ var init_Devtools = __esm({
14565
14636
  O: void 0,
14566
14637
  I: void 0
14567
14638
  });
14568
- return _el$62;
14639
+ return _el$65;
14569
14640
  }
14570
14641
  });
14571
14642
  };
@@ -14617,8 +14688,8 @@ var init_Devtools = __esm({
14617
14688
  return activeMutation();
14618
14689
  },
14619
14690
  get children() {
14620
- var _el$109 = _tmpl$332(), _el$110 = _el$109.firstChild, _el$111 = _el$110.nextSibling, _el$112 = _el$111.firstChild, _el$113 = _el$112.firstChild, _el$114 = _el$113.firstChild, _el$115 = _el$113.nextSibling, _el$116 = _el$112.nextSibling, _el$117 = _el$116.firstChild, _el$118 = _el$117.nextSibling, _el$119 = _el$111.nextSibling, _el$120 = _el$119.nextSibling, _el$121 = _el$120.nextSibling, _el$122 = _el$121.nextSibling, _el$123 = _el$122.nextSibling, _el$124 = _el$123.nextSibling, _el$125 = _el$124.nextSibling, _el$126 = _el$125.nextSibling;
14621
- insert(_el$114, createComponent(Show, {
14691
+ var _el$112 = _tmpl$36(), _el$113 = _el$112.firstChild, _el$114 = _el$113.nextSibling, _el$115 = _el$114.firstChild, _el$116 = _el$115.firstChild, _el$117 = _el$116.firstChild, _el$118 = _el$116.nextSibling, _el$119 = _el$115.nextSibling, _el$120 = _el$119.firstChild, _el$121 = _el$120.nextSibling, _el$122 = _el$114.nextSibling, _el$123 = _el$122.nextSibling, _el$124 = _el$123.nextSibling, _el$125 = _el$124.nextSibling, _el$126 = _el$125.nextSibling, _el$127 = _el$126.nextSibling, _el$128 = _el$127.nextSibling, _el$129 = _el$128.nextSibling;
14692
+ insert(_el$117, createComponent(Show, {
14622
14693
  get when() {
14623
14694
  return activeMutation().options.mutationKey;
14624
14695
  },
@@ -14627,13 +14698,13 @@ var init_Devtools = __esm({
14627
14698
  return displayValue(activeMutation().options.mutationKey, true);
14628
14699
  }
14629
14700
  }));
14630
- insert(_el$115, createComponent(Show, {
14701
+ insert(_el$118, createComponent(Show, {
14631
14702
  get when() {
14632
14703
  return color() === "purple";
14633
14704
  },
14634
14705
  children: "pending"
14635
14706
  }), null);
14636
- insert(_el$115, createComponent(Show, {
14707
+ insert(_el$118, createComponent(Show, {
14637
14708
  get when() {
14638
14709
  return color() !== "purple";
14639
14710
  },
@@ -14641,29 +14712,29 @@ var init_Devtools = __esm({
14641
14712
  return status();
14642
14713
  }
14643
14714
  }), null);
14644
- insert(_el$118, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
14645
- insert(_el$120, createComponent(Explorer, {
14715
+ insert(_el$121, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
14716
+ insert(_el$123, createComponent(Explorer, {
14646
14717
  label: "Variables",
14647
14718
  defaultExpanded: ["Variables"],
14648
14719
  get value() {
14649
14720
  return activeMutation().state.variables;
14650
14721
  }
14651
14722
  }));
14652
- insert(_el$122, createComponent(Explorer, {
14723
+ insert(_el$125, createComponent(Explorer, {
14653
14724
  label: "Context",
14654
14725
  defaultExpanded: ["Context"],
14655
14726
  get value() {
14656
14727
  return activeMutation().state.context;
14657
14728
  }
14658
14729
  }));
14659
- insert(_el$124, createComponent(Explorer, {
14730
+ insert(_el$127, createComponent(Explorer, {
14660
14731
  label: "Data",
14661
14732
  defaultExpanded: ["Data"],
14662
14733
  get value() {
14663
14734
  return activeMutation().state.data;
14664
14735
  }
14665
14736
  }));
14666
- insert(_el$126, createComponent(Explorer, {
14737
+ insert(_el$129, createComponent(Explorer, {
14667
14738
  label: "Mutation",
14668
14739
  defaultExpanded: ["Mutation"],
14669
14740
  get value() {
@@ -14672,18 +14743,18 @@ var init_Devtools = __esm({
14672
14743
  }));
14673
14744
  createRenderEffect((_p$) => {
14674
14745
  var _v$70 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$71 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$72 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$73 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$74 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$75 = tokens.size[2], _v$76 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$77 = tokens.size[2], _v$78 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$79 = tokens.size[2], _v$80 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$81 = tokens.size[2];
14675
- _v$70 !== _p$.e && className(_el$109, _p$.e = _v$70);
14676
- _v$71 !== _p$.t && className(_el$110, _p$.t = _v$71);
14677
- _v$72 !== _p$.a && className(_el$111, _p$.a = _v$72);
14678
- _v$73 !== _p$.o && className(_el$115, _p$.o = _v$73);
14679
- _v$74 !== _p$.i && className(_el$119, _p$.i = _v$74);
14680
- _v$75 !== _p$.n && ((_p$.n = _v$75) != null ? _el$120.style.setProperty("padding", _v$75) : _el$120.style.removeProperty("padding"));
14681
- _v$76 !== _p$.s && className(_el$121, _p$.s = _v$76);
14682
- _v$77 !== _p$.h && ((_p$.h = _v$77) != null ? _el$122.style.setProperty("padding", _v$77) : _el$122.style.removeProperty("padding"));
14683
- _v$78 !== _p$.r && className(_el$123, _p$.r = _v$78);
14684
- _v$79 !== _p$.d && ((_p$.d = _v$79) != null ? _el$124.style.setProperty("padding", _v$79) : _el$124.style.removeProperty("padding"));
14685
- _v$80 !== _p$.l && className(_el$125, _p$.l = _v$80);
14686
- _v$81 !== _p$.u && ((_p$.u = _v$81) != null ? _el$126.style.setProperty("padding", _v$81) : _el$126.style.removeProperty("padding"));
14746
+ _v$70 !== _p$.e && className(_el$112, _p$.e = _v$70);
14747
+ _v$71 !== _p$.t && className(_el$113, _p$.t = _v$71);
14748
+ _v$72 !== _p$.a && className(_el$114, _p$.a = _v$72);
14749
+ _v$73 !== _p$.o && className(_el$118, _p$.o = _v$73);
14750
+ _v$74 !== _p$.i && className(_el$122, _p$.i = _v$74);
14751
+ _v$75 !== _p$.n && ((_p$.n = _v$75) != null ? _el$123.style.setProperty("padding", _v$75) : _el$123.style.removeProperty("padding"));
14752
+ _v$76 !== _p$.s && className(_el$124, _p$.s = _v$76);
14753
+ _v$77 !== _p$.h && ((_p$.h = _v$77) != null ? _el$125.style.setProperty("padding", _v$77) : _el$125.style.removeProperty("padding"));
14754
+ _v$78 !== _p$.r && className(_el$126, _p$.r = _v$78);
14755
+ _v$79 !== _p$.d && ((_p$.d = _v$79) != null ? _el$127.style.setProperty("padding", _v$79) : _el$127.style.removeProperty("padding"));
14756
+ _v$80 !== _p$.l && className(_el$128, _p$.l = _v$80);
14757
+ _v$81 !== _p$.u && ((_p$.u = _v$81) != null ? _el$129.style.setProperty("padding", _v$81) : _el$129.style.removeProperty("padding"));
14687
14758
  return _p$;
14688
14759
  }, {
14689
14760
  e: void 0,
@@ -14699,7 +14770,7 @@ var init_Devtools = __esm({
14699
14770
  l: void 0,
14700
14771
  u: void 0
14701
14772
  });
14702
- return _el$109;
14773
+ return _el$112;
14703
14774
  }
14704
14775
  });
14705
14776
  };
@@ -15967,6 +16038,7 @@ exports.TanstackQueryDevtools = class TanstackQueryDevtools {
15967
16038
  #position;
15968
16039
  #initialIsOpen;
15969
16040
  #errorTypes;
16041
+ #hideDisabledQueries;
15970
16042
  #Component;
15971
16043
  #dispose;
15972
16044
  constructor(config) {
@@ -15980,7 +16052,8 @@ exports.TanstackQueryDevtools = class TanstackQueryDevtools {
15980
16052
  initialIsOpen,
15981
16053
  errorTypes,
15982
16054
  styleNonce,
15983
- shadowDOMTarget
16055
+ shadowDOMTarget,
16056
+ hideDisabledQueries
15984
16057
  } = config;
15985
16058
  this.#client = createSignal(client);
15986
16059
  this.#queryFlavor = queryFlavor;
@@ -15992,6 +16065,7 @@ exports.TanstackQueryDevtools = class TanstackQueryDevtools {
15992
16065
  this.#position = createSignal(position);
15993
16066
  this.#initialIsOpen = createSignal(initialIsOpen);
15994
16067
  this.#errorTypes = createSignal(errorTypes);
16068
+ this.#hideDisabledQueries = createSignal(hideDisabledQueries);
15995
16069
  }
15996
16070
  setButtonPosition(position) {
15997
16071
  this.#buttonPosition[1](position);
@@ -16018,6 +16092,7 @@ exports.TanstackQueryDevtools = class TanstackQueryDevtools {
16018
16092
  const [pos] = this.#position;
16019
16093
  const [isOpen] = this.#initialIsOpen;
16020
16094
  const [errors] = this.#errorTypes;
16095
+ const [hideDisabledQueries] = this.#hideDisabledQueries;
16021
16096
  const [queryClient] = this.#client;
16022
16097
  let Devtools2;
16023
16098
  if (this.#Component) {
@@ -16055,6 +16130,9 @@ exports.TanstackQueryDevtools = class TanstackQueryDevtools {
16055
16130
  },
16056
16131
  get errorTypes() {
16057
16132
  return errors();
16133
+ },
16134
+ get hideDisabledQueries() {
16135
+ return hideDisabledQueries();
16058
16136
  }
16059
16137
  }));
16060
16138
  }, el);
@@ -16088,6 +16166,7 @@ exports.TanstackQueryDevtoolsPanel = class TanstackQueryDevtoolsPanel {
16088
16166
  #position;
16089
16167
  #initialIsOpen;
16090
16168
  #errorTypes;
16169
+ #hideDisabledQueries;
16091
16170
  #onClose;
16092
16171
  #Component;
16093
16172
  #dispose;
@@ -16103,7 +16182,8 @@ exports.TanstackQueryDevtoolsPanel = class TanstackQueryDevtoolsPanel {
16103
16182
  errorTypes,
16104
16183
  styleNonce,
16105
16184
  shadowDOMTarget,
16106
- onClose
16185
+ onClose,
16186
+ hideDisabledQueries
16107
16187
  } = config;
16108
16188
  this.#client = createSignal(client);
16109
16189
  this.#queryFlavor = queryFlavor;
@@ -16115,6 +16195,7 @@ exports.TanstackQueryDevtoolsPanel = class TanstackQueryDevtoolsPanel {
16115
16195
  this.#position = createSignal(position);
16116
16196
  this.#initialIsOpen = createSignal(initialIsOpen);
16117
16197
  this.#errorTypes = createSignal(errorTypes);
16198
+ this.#hideDisabledQueries = createSignal(hideDisabledQueries);
16118
16199
  this.#onClose = createSignal(onClose);
16119
16200
  }
16120
16201
  setButtonPosition(position) {
@@ -16145,6 +16226,7 @@ exports.TanstackQueryDevtoolsPanel = class TanstackQueryDevtoolsPanel {
16145
16226
  const [pos] = this.#position;
16146
16227
  const [isOpen] = this.#initialIsOpen;
16147
16228
  const [errors] = this.#errorTypes;
16229
+ const [hideDisabledQueries] = this.#hideDisabledQueries;
16148
16230
  const [queryClient] = this.#client;
16149
16231
  const [onClose] = this.#onClose;
16150
16232
  let Devtools2;
@@ -16184,6 +16266,9 @@ exports.TanstackQueryDevtoolsPanel = class TanstackQueryDevtoolsPanel {
16184
16266
  get errorTypes() {
16185
16267
  return errors();
16186
16268
  },
16269
+ get hideDisabledQueries() {
16270
+ return hideDisabledQueries();
16271
+ },
16187
16272
  get onClose() {
16188
16273
  return onClose();
16189
16274
  }