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