@tanstack/query-devtools 5.21.0 → 5.21.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Devtools/{NU5BFWH6.js → PZY6I5TR.js} +57 -56
- package/build/Devtools/{4IXB5NHK.js → SUV2KM2F.js} +57 -56
- package/build/Devtools/{2ACMJH2B.jsx → VAJS2OS4.jsx} +3 -0
- package/build/Devtools/{EX35NSIV.jsx → Z62CHOQ7.jsx} +3 -0
- package/build/dev.cjs +58 -57
- package/build/dev.js +1 -1
- package/build/dev.jsx +1 -1
- package/build/index.cjs +58 -57
- package/build/index.js +1 -1
- package/build/index.jsx +1 -1
- package/package.json +2 -2
- package/src/Devtools.tsx +3 -0
package/build/index.cjs
CHANGED
|
@@ -12873,7 +12873,7 @@ var Devtools_exports = {};
|
|
|
12873
12873
|
__export(Devtools_exports, {
|
|
12874
12874
|
default: () => Devtools_default
|
|
12875
12875
|
});
|
|
12876
|
-
var _tmpl$24, _tmpl$25, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$103, _tmpl$113, _tmpl$122, _tmpl$132, _tmpl$142, _tmpl$152, _tmpl$162, _tmpl$172, _tmpl$182, _tmpl$192, _tmpl$202, _tmpl$212, _tmpl$222, _tmpl$232, _tmpl$242, _tmpl$252, _tmpl$26, _tmpl$27, _tmpl$28, _tmpl$29, _tmpl$30, firstBreakpoint, secondBreakpoint, thirdBreakpoint, BUTTON_POSITION, POSITION, THEME_PREFERENCE, INITIAL_IS_OPEN, DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_SORT_FN_NAME, DEFAULT_SORT_ORDER, DEFAULT_MUTATION_SORT_FN_NAME, selectedQueryHash, setSelectedQueryHash, selectedMutationId, setSelectedMutationId, panelWidth, setPanelWidth, DevtoolsComponent, Devtools_default, Devtools, DevtoolsPanel, ContentView, QueryRow, MutationRow, QueryStatusCount, MutationStatusCount, QueryStatus, QueryDetails, MutationDetails, queryCacheMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, mutationCacheMap, setupMutationCacheSubscription, createSubscribeToMutationCacheBatcher, stylesFactory2, lightStyles2, darkStyles2;
|
|
12876
|
+
var _tmpl$24, _tmpl$25, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$103, _tmpl$113, _tmpl$122, _tmpl$132, _tmpl$142, _tmpl$152, _tmpl$162, _tmpl$172, _tmpl$182, _tmpl$192, _tmpl$202, _tmpl$212, _tmpl$222, _tmpl$232, _tmpl$242, _tmpl$252, _tmpl$26, _tmpl$27, _tmpl$28, _tmpl$29, _tmpl$30, _tmpl$31, firstBreakpoint, secondBreakpoint, thirdBreakpoint, BUTTON_POSITION, POSITION, THEME_PREFERENCE, INITIAL_IS_OPEN, DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_SORT_FN_NAME, DEFAULT_SORT_ORDER, DEFAULT_MUTATION_SORT_FN_NAME, selectedQueryHash, setSelectedQueryHash, selectedMutationId, setSelectedMutationId, panelWidth, setPanelWidth, DevtoolsComponent, Devtools_default, Devtools, DevtoolsPanel, ContentView, QueryRow, MutationRow, QueryStatusCount, MutationStatusCount, QueryStatus, QueryDetails, MutationDetails, queryCacheMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, mutationCacheMap, setupMutationCacheSubscription, createSubscribeToMutationCacheBatcher, stylesFactory2, lightStyles2, darkStyles2;
|
|
12877
12877
|
var init_Devtools = __esm({
|
|
12878
12878
|
"src/Devtools.tsx"() {
|
|
12879
12879
|
init_web();
|
|
@@ -12904,33 +12904,34 @@ var init_Devtools = __esm({
|
|
|
12904
12904
|
_tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
|
|
12905
12905
|
_tmpl$25 = /* @__PURE__ */ template(`<div>`);
|
|
12906
12906
|
_tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
|
|
12907
|
-
_tmpl$43 = /* @__PURE__ */ template(`<select>`);
|
|
12908
|
-
_tmpl$53 = /* @__PURE__ */ template(`<
|
|
12909
|
-
_tmpl$63 = /* @__PURE__ */ template(`<span>
|
|
12910
|
-
_tmpl$73 = /* @__PURE__ */ template(`<
|
|
12911
|
-
_tmpl$83 = /* @__PURE__ */ template(`<
|
|
12912
|
-
_tmpl$93 = /* @__PURE__ */ template(`<span>
|
|
12913
|
-
_tmpl$103 = /* @__PURE__ */ template(`<span>
|
|
12914
|
-
_tmpl$113 = /* @__PURE__ */ template(`<span>
|
|
12915
|
-
_tmpl$122 = /* @__PURE__ */ template(`<span>
|
|
12916
|
-
_tmpl$132 = /* @__PURE__ */ template(`<span>
|
|
12917
|
-
_tmpl$142 = /* @__PURE__ */ template(`<span>
|
|
12918
|
-
_tmpl$152 = /* @__PURE__ */ template(`<span>
|
|
12919
|
-
_tmpl$162 = /* @__PURE__ */ template(`<span>
|
|
12920
|
-
_tmpl$172 = /* @__PURE__ */ template(`<
|
|
12921
|
-
_tmpl$182 = /* @__PURE__ */ template(`<div><div class=tsqd-
|
|
12922
|
-
_tmpl$192 = /* @__PURE__ */ template(`<div><div
|
|
12923
|
-
_tmpl$202 = /* @__PURE__ */ template(`<
|
|
12924
|
-
_tmpl$212 = /* @__PURE__ */ template(`<
|
|
12925
|
-
_tmpl$222 = /* @__PURE__ */ template(`<
|
|
12926
|
-
_tmpl$232 = /* @__PURE__ */ template(`<div
|
|
12927
|
-
_tmpl$242 = /* @__PURE__ */ template(`<
|
|
12928
|
-
_tmpl$252 = /* @__PURE__ */ template(`<
|
|
12929
|
-
_tmpl$26 = /* @__PURE__ */ template(`<button><span></span
|
|
12930
|
-
_tmpl$27 = /* @__PURE__ */ template(`<
|
|
12931
|
-
_tmpl$28 = /* @__PURE__ */ template(`<div><
|
|
12932
|
-
_tmpl$29 = /* @__PURE__ */ template(`<
|
|
12933
|
-
_tmpl$30 = /* @__PURE__ */ template(`<
|
|
12907
|
+
_tmpl$43 = /* @__PURE__ */ template(`<select name=tsqd-queries-filter-sort>`);
|
|
12908
|
+
_tmpl$53 = /* @__PURE__ */ template(`<select name=tsqd-mutations-filter-sort>`);
|
|
12909
|
+
_tmpl$63 = /* @__PURE__ */ template(`<span>Asc`);
|
|
12910
|
+
_tmpl$73 = /* @__PURE__ */ template(`<span>Desc`);
|
|
12911
|
+
_tmpl$83 = /* @__PURE__ */ template(`<div>Settings`);
|
|
12912
|
+
_tmpl$93 = /* @__PURE__ */ template(`<span>Position`);
|
|
12913
|
+
_tmpl$103 = /* @__PURE__ */ template(`<span>Top`);
|
|
12914
|
+
_tmpl$113 = /* @__PURE__ */ template(`<span>Bottom`);
|
|
12915
|
+
_tmpl$122 = /* @__PURE__ */ template(`<span>Left`);
|
|
12916
|
+
_tmpl$132 = /* @__PURE__ */ template(`<span>Right`);
|
|
12917
|
+
_tmpl$142 = /* @__PURE__ */ template(`<span>Theme`);
|
|
12918
|
+
_tmpl$152 = /* @__PURE__ */ template(`<span>Light`);
|
|
12919
|
+
_tmpl$162 = /* @__PURE__ */ template(`<span>Dark`);
|
|
12920
|
+
_tmpl$172 = /* @__PURE__ */ template(`<span>System`);
|
|
12921
|
+
_tmpl$182 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
|
|
12922
|
+
_tmpl$192 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
|
|
12923
|
+
_tmpl$202 = /* @__PURE__ */ template(`<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter class=tsqd-query-filter-textfield name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>`);
|
|
12924
|
+
_tmpl$212 = /* @__PURE__ */ template(`<option>Sort by `);
|
|
12925
|
+
_tmpl$222 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
|
|
12926
|
+
_tmpl$232 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
|
|
12927
|
+
_tmpl$242 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
|
|
12928
|
+
_tmpl$252 = /* @__PURE__ */ template(`<span>`);
|
|
12929
|
+
_tmpl$26 = /* @__PURE__ */ template(`<button><span></span><span>`);
|
|
12930
|
+
_tmpl$27 = /* @__PURE__ */ template(`<button><span></span> Error`);
|
|
12931
|
+
_tmpl$28 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
|
|
12932
|
+
_tmpl$29 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
12933
|
+
_tmpl$30 = /* @__PURE__ */ template(`<option>`);
|
|
12934
|
+
_tmpl$31 = /* @__PURE__ */ template(`<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
12934
12935
|
firstBreakpoint = 1024;
|
|
12935
12936
|
secondBreakpoint = 796;
|
|
12936
12937
|
thirdBreakpoint = 700;
|
|
@@ -13277,7 +13278,7 @@ var init_Devtools = __esm({
|
|
|
13277
13278
|
el.style.setProperty("--tsqd-font-size", variable);
|
|
13278
13279
|
};
|
|
13279
13280
|
return [(() => {
|
|
13280
|
-
const _el$8 = _tmpl$
|
|
13281
|
+
const _el$8 = _tmpl$202(), _el$9 = _el$8.firstChild, _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$15 = _el$9.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild, _el$19 = _el$17.nextSibling, _el$22 = _el$19.nextSibling, _el$25 = _el$16.nextSibling, _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling;
|
|
13281
13282
|
const _ref$3 = containerRef;
|
|
13282
13283
|
typeof _ref$3 === "function" ? use(_ref$3, _el$8) : containerRef = _el$8;
|
|
13283
13284
|
_el$11.$$click = () => props.setLocalStore("open", "false");
|
|
@@ -13359,7 +13360,7 @@ var init_Devtools = __esm({
|
|
|
13359
13360
|
props.setLocalStore("sort", e2.currentTarget.value);
|
|
13360
13361
|
});
|
|
13361
13362
|
insert(_el$20, () => Object.keys(sortFns).map((key) => (() => {
|
|
13362
|
-
const _el$42 = _tmpl$
|
|
13363
|
+
const _el$42 = _tmpl$212(); _el$42.firstChild;
|
|
13363
13364
|
_el$42.value = key;
|
|
13364
13365
|
insert(_el$42, key, null);
|
|
13365
13366
|
return _el$42;
|
|
@@ -13373,12 +13374,12 @@ var init_Devtools = __esm({
|
|
|
13373
13374
|
return selectedView() === "mutations";
|
|
13374
13375
|
},
|
|
13375
13376
|
get children() {
|
|
13376
|
-
const _el$21 = _tmpl$
|
|
13377
|
+
const _el$21 = _tmpl$53();
|
|
13377
13378
|
_el$21.addEventListener("change", (e2) => {
|
|
13378
13379
|
props.setLocalStore("mutationSort", e2.currentTarget.value);
|
|
13379
13380
|
});
|
|
13380
13381
|
insert(_el$21, () => Object.keys(mutationSortFns).map((key) => (() => {
|
|
13381
|
-
const _el$44 = _tmpl$
|
|
13382
|
+
const _el$44 = _tmpl$212(); _el$44.firstChild;
|
|
13382
13383
|
_el$44.value = key;
|
|
13383
13384
|
insert(_el$44, key, null);
|
|
13384
13385
|
return _el$44;
|
|
@@ -13400,7 +13401,7 @@ var init_Devtools = __esm({
|
|
|
13400
13401
|
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === 1;
|
|
13401
13402
|
},
|
|
13402
13403
|
get children() {
|
|
13403
|
-
return [_tmpl$
|
|
13404
|
+
return [_tmpl$63(), createComponent(ArrowUp, {})];
|
|
13404
13405
|
}
|
|
13405
13406
|
}), null);
|
|
13406
13407
|
insert(_el$22, createComponent(Show, {
|
|
@@ -13408,7 +13409,7 @@ var init_Devtools = __esm({
|
|
|
13408
13409
|
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1;
|
|
13409
13410
|
},
|
|
13410
13411
|
get children() {
|
|
13411
|
-
return [_tmpl$
|
|
13412
|
+
return [_tmpl$73(), createComponent(ArrowDown, {})];
|
|
13412
13413
|
}
|
|
13413
13414
|
}), null);
|
|
13414
13415
|
_el$26.$$click = () => {
|
|
@@ -13451,7 +13452,7 @@ var init_Devtools = __esm({
|
|
|
13451
13452
|
},
|
|
13452
13453
|
get children() {
|
|
13453
13454
|
return [(() => {
|
|
13454
|
-
const _el$28 = _tmpl$
|
|
13455
|
+
const _el$28 = _tmpl$83();
|
|
13455
13456
|
createRenderEffect(() => className(_el$28, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
|
|
13456
13457
|
return _el$28;
|
|
13457
13458
|
})(), createComponent(index$f.Sub, {
|
|
@@ -13464,7 +13465,7 @@ var init_Devtools = __esm({
|
|
|
13464
13465
|
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
13465
13466
|
},
|
|
13466
13467
|
get children() {
|
|
13467
|
-
return [_tmpl$
|
|
13468
|
+
return [_tmpl$93(), createComponent(ChevronDown, {})];
|
|
13468
13469
|
}
|
|
13469
13470
|
}), createComponent(index$f.Portal, {
|
|
13470
13471
|
ref: (el) => setComputedVariables(el),
|
|
@@ -13483,7 +13484,7 @@ var init_Devtools = __esm({
|
|
|
13483
13484
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
13484
13485
|
},
|
|
13485
13486
|
get children() {
|
|
13486
|
-
return [_tmpl$
|
|
13487
|
+
return [_tmpl$103(), createComponent(ArrowUp, {})];
|
|
13487
13488
|
}
|
|
13488
13489
|
}), createComponent(index$f.Item, {
|
|
13489
13490
|
onSelect: () => {
|
|
@@ -13494,7 +13495,7 @@ var init_Devtools = __esm({
|
|
|
13494
13495
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
13495
13496
|
},
|
|
13496
13497
|
get children() {
|
|
13497
|
-
return [_tmpl$
|
|
13498
|
+
return [_tmpl$113(), createComponent(ArrowDown, {})];
|
|
13498
13499
|
}
|
|
13499
13500
|
}), createComponent(index$f.Item, {
|
|
13500
13501
|
onSelect: () => {
|
|
@@ -13505,7 +13506,7 @@ var init_Devtools = __esm({
|
|
|
13505
13506
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
13506
13507
|
},
|
|
13507
13508
|
get children() {
|
|
13508
|
-
return [_tmpl$
|
|
13509
|
+
return [_tmpl$122(), createComponent(ArrowLeft, {})];
|
|
13509
13510
|
}
|
|
13510
13511
|
}), createComponent(index$f.Item, {
|
|
13511
13512
|
onSelect: () => {
|
|
@@ -13516,7 +13517,7 @@ var init_Devtools = __esm({
|
|
|
13516
13517
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
|
|
13517
13518
|
},
|
|
13518
13519
|
get children() {
|
|
13519
|
-
return [_tmpl$
|
|
13520
|
+
return [_tmpl$132(), createComponent(ArrowRight, {})];
|
|
13520
13521
|
}
|
|
13521
13522
|
})];
|
|
13522
13523
|
}
|
|
@@ -13534,7 +13535,7 @@ var init_Devtools = __esm({
|
|
|
13534
13535
|
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
13535
13536
|
},
|
|
13536
13537
|
get children() {
|
|
13537
|
-
return [_tmpl$
|
|
13538
|
+
return [_tmpl$142(), createComponent(ChevronDown, {})];
|
|
13538
13539
|
}
|
|
13539
13540
|
}), createComponent(index$f.Portal, {
|
|
13540
13541
|
ref: (el) => setComputedVariables(el),
|
|
@@ -13553,7 +13554,7 @@ var init_Devtools = __esm({
|
|
|
13553
13554
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "light" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
13554
13555
|
},
|
|
13555
13556
|
get children() {
|
|
13556
|
-
return [_tmpl$
|
|
13557
|
+
return [_tmpl$152(), createComponent(Sun, {})];
|
|
13557
13558
|
}
|
|
13558
13559
|
}), createComponent(index$f.Item, {
|
|
13559
13560
|
onSelect: () => {
|
|
@@ -13564,7 +13565,7 @@ var init_Devtools = __esm({
|
|
|
13564
13565
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "dark" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
13565
13566
|
},
|
|
13566
13567
|
get children() {
|
|
13567
|
-
return [_tmpl$
|
|
13568
|
+
return [_tmpl$162(), createComponent(Moon, {})];
|
|
13568
13569
|
}
|
|
13569
13570
|
}), createComponent(index$f.Item, {
|
|
13570
13571
|
onSelect: () => {
|
|
@@ -13575,7 +13576,7 @@ var init_Devtools = __esm({
|
|
|
13575
13576
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "system" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
13576
13577
|
},
|
|
13577
13578
|
get children() {
|
|
13578
|
-
return [_tmpl$
|
|
13579
|
+
return [_tmpl$172(), createComponent(Monitor, {})];
|
|
13579
13580
|
}
|
|
13580
13581
|
})];
|
|
13581
13582
|
}
|
|
@@ -13595,7 +13596,7 @@ var init_Devtools = __esm({
|
|
|
13595
13596
|
return selectedView() === "queries";
|
|
13596
13597
|
},
|
|
13597
13598
|
get children() {
|
|
13598
|
-
const _el$38 = _tmpl$
|
|
13599
|
+
const _el$38 = _tmpl$182(), _el$39 = _el$38.firstChild;
|
|
13599
13600
|
insert(_el$39, createComponent(Key, {
|
|
13600
13601
|
by: (q) => q.queryHash,
|
|
13601
13602
|
get each() {
|
|
@@ -13616,7 +13617,7 @@ var init_Devtools = __esm({
|
|
|
13616
13617
|
return selectedView() === "mutations";
|
|
13617
13618
|
},
|
|
13618
13619
|
get children() {
|
|
13619
|
-
const _el$40 = _tmpl$
|
|
13620
|
+
const _el$40 = _tmpl$192(), _el$41 = _el$40.firstChild;
|
|
13620
13621
|
insert(_el$41, createComponent(Key, {
|
|
13621
13622
|
by: (m) => m.mutationId,
|
|
13622
13623
|
get each() {
|
|
@@ -13743,7 +13744,7 @@ var init_Devtools = __esm({
|
|
|
13743
13744
|
return queryState();
|
|
13744
13745
|
},
|
|
13745
13746
|
get children() {
|
|
13746
|
-
const _el$46 = _tmpl$
|
|
13747
|
+
const _el$46 = _tmpl$232(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling;
|
|
13747
13748
|
_el$46.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
|
|
13748
13749
|
insert(_el$47, observers);
|
|
13749
13750
|
insert(_el$48, () => props.query.queryHash);
|
|
@@ -13752,7 +13753,7 @@ var init_Devtools = __esm({
|
|
|
13752
13753
|
return isDisabled();
|
|
13753
13754
|
},
|
|
13754
13755
|
get children() {
|
|
13755
|
-
return _tmpl$
|
|
13756
|
+
return _tmpl$222();
|
|
13756
13757
|
}
|
|
13757
13758
|
}), null);
|
|
13758
13759
|
createRenderEffect((_p$) => {
|
|
@@ -13820,7 +13821,7 @@ var init_Devtools = __esm({
|
|
|
13820
13821
|
return mutationState();
|
|
13821
13822
|
},
|
|
13822
13823
|
get children() {
|
|
13823
|
-
const _el$50 = _tmpl$
|
|
13824
|
+
const _el$50 = _tmpl$232(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling;
|
|
13824
13825
|
_el$50.$$click = () => {
|
|
13825
13826
|
setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
|
|
13826
13827
|
};
|
|
@@ -14011,7 +14012,7 @@ var init_Devtools = __esm({
|
|
|
14011
14012
|
return true;
|
|
14012
14013
|
});
|
|
14013
14014
|
return (() => {
|
|
14014
|
-
const _el$55 = _tmpl$
|
|
14015
|
+
const _el$55 = _tmpl$26(), _el$57 = _el$55.firstChild, _el$59 = _el$57.nextSibling;
|
|
14015
14016
|
const _ref$4 = tagRef;
|
|
14016
14017
|
typeof _ref$4 === "function" ? use(_ref$4, _el$55) : tagRef = _el$55;
|
|
14017
14018
|
_el$55.addEventListener("mouseleave", () => {
|
|
@@ -14041,7 +14042,7 @@ var init_Devtools = __esm({
|
|
|
14041
14042
|
return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
|
|
14042
14043
|
},
|
|
14043
14044
|
get children() {
|
|
14044
|
-
const _el$56 = _tmpl$
|
|
14045
|
+
const _el$56 = _tmpl$242();
|
|
14045
14046
|
insert(_el$56, () => props.label);
|
|
14046
14047
|
createRenderEffect(() => className(_el$56, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
|
|
14047
14048
|
return _el$56;
|
|
@@ -14052,7 +14053,7 @@ var init_Devtools = __esm({
|
|
|
14052
14053
|
return showLabel();
|
|
14053
14054
|
},
|
|
14054
14055
|
get children() {
|
|
14055
|
-
const _el$58 = _tmpl$
|
|
14056
|
+
const _el$58 = _tmpl$252();
|
|
14056
14057
|
insert(_el$58, () => props.label);
|
|
14057
14058
|
createRenderEffect(() => className(_el$58, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
|
|
14058
14059
|
return _el$58;
|
|
@@ -14162,7 +14163,7 @@ var init_Devtools = __esm({
|
|
|
14162
14163
|
return createMemo(() => !!activeQuery())() && activeQueryState();
|
|
14163
14164
|
},
|
|
14164
14165
|
get children() {
|
|
14165
|
-
const _el$60 = _tmpl$
|
|
14166
|
+
const _el$60 = _tmpl$29(), _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$62.firstChild, _el$64 = _el$63.firstChild, _el$65 = _el$64.firstChild, _el$66 = _el$64.nextSibling, _el$67 = _el$63.nextSibling, _el$68 = _el$67.firstChild, _el$69 = _el$68.nextSibling, _el$70 = _el$67.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$71.nextSibling, _el$73 = _el$62.nextSibling, _el$74 = _el$73.nextSibling, _el$75 = _el$74.firstChild, _el$76 = _el$75.firstChild, _el$77 = _el$75.nextSibling, _el$78 = _el$77.firstChild, _el$79 = _el$77.nextSibling, _el$80 = _el$79.firstChild, _el$81 = _el$79.nextSibling, _el$82 = _el$81.firstChild, _el$83 = _el$81.nextSibling, _el$84 = _el$83.firstChild, _el$85 = _el$84.nextSibling, _el$94 = _el$74.nextSibling, _el$95 = _el$94.nextSibling, _el$96 = _el$95.nextSibling, _el$97 = _el$96.nextSibling;
|
|
14166
14167
|
insert(_el$65, () => displayValue(activeQuery().queryKey, true));
|
|
14167
14168
|
insert(_el$66, statusLabel);
|
|
14168
14169
|
insert(_el$69, observerCount);
|
|
@@ -14207,7 +14208,7 @@ var init_Devtools = __esm({
|
|
|
14207
14208
|
return errorTypes().length === 0 || queryStatus() === "error";
|
|
14208
14209
|
},
|
|
14209
14210
|
get children() {
|
|
14210
|
-
const _el$86 = _tmpl$
|
|
14211
|
+
const _el$86 = _tmpl$27(), _el$87 = _el$86.firstChild, _el$88 = _el$87.nextSibling;
|
|
14211
14212
|
_el$86.$$click = () => {
|
|
14212
14213
|
if (!activeQuery().state.error) {
|
|
14213
14214
|
triggerError();
|
|
@@ -14239,7 +14240,7 @@ var init_Devtools = __esm({
|
|
|
14239
14240
|
return !(errorTypes().length === 0 || queryStatus() === "error");
|
|
14240
14241
|
},
|
|
14241
14242
|
get children() {
|
|
14242
|
-
const _el$89 = _tmpl$
|
|
14243
|
+
const _el$89 = _tmpl$28(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling, _el$92 = _el$91.nextSibling; _el$92.firstChild;
|
|
14243
14244
|
_el$92.addEventListener("change", (e2) => {
|
|
14244
14245
|
const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
|
|
14245
14246
|
triggerError(errorType);
|
|
@@ -14249,7 +14250,7 @@ var init_Devtools = __esm({
|
|
|
14249
14250
|
return errorTypes();
|
|
14250
14251
|
},
|
|
14251
14252
|
children: (errorType) => (() => {
|
|
14252
|
-
const _el$98 = _tmpl$
|
|
14253
|
+
const _el$98 = _tmpl$30();
|
|
14253
14254
|
insert(_el$98, () => errorType.name);
|
|
14254
14255
|
createRenderEffect(() => _el$98.value = errorType.name);
|
|
14255
14256
|
return _el$98;
|
|
@@ -14416,7 +14417,7 @@ var init_Devtools = __esm({
|
|
|
14416
14417
|
return activeMutation();
|
|
14417
14418
|
},
|
|
14418
14419
|
get children() {
|
|
14419
|
-
const _el$99 = _tmpl$
|
|
14420
|
+
const _el$99 = _tmpl$31(), _el$100 = _el$99.firstChild, _el$101 = _el$100.nextSibling, _el$102 = _el$101.firstChild, _el$103 = _el$102.firstChild, _el$104 = _el$103.firstChild, _el$105 = _el$103.nextSibling, _el$106 = _el$102.nextSibling, _el$107 = _el$106.firstChild, _el$108 = _el$107.nextSibling, _el$109 = _el$101.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling;
|
|
14420
14421
|
insert(_el$104, createComponent(Show, {
|
|
14421
14422
|
get when() {
|
|
14422
14423
|
return activeMutation().options.mutationKey;
|
package/build/index.js
CHANGED
|
@@ -66,7 +66,7 @@ var TanstackQueryDevtools = class {
|
|
|
66
66
|
if (this.#Component) {
|
|
67
67
|
Devtools = this.#Component;
|
|
68
68
|
} else {
|
|
69
|
-
Devtools = lazy(() => import('./Devtools/
|
|
69
|
+
Devtools = lazy(() => import('./Devtools/SUV2KM2F.js'));
|
|
70
70
|
this.#Component = Devtools;
|
|
71
71
|
}
|
|
72
72
|
setupStyleSheet(this.#styleNonce);
|
package/build/index.jsx
CHANGED
|
@@ -70,7 +70,7 @@ var TanstackQueryDevtools = class {
|
|
|
70
70
|
if (this.#Component) {
|
|
71
71
|
Devtools = this.#Component;
|
|
72
72
|
} else {
|
|
73
|
-
Devtools = lazy(() => import("./Devtools/
|
|
73
|
+
Devtools = lazy(() => import("./Devtools/VAJS2OS4.jsx"));
|
|
74
74
|
this.#Component = Devtools;
|
|
75
75
|
}
|
|
76
76
|
setupStyleSheet(this.#styleNonce);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/query-devtools",
|
|
3
|
-
"version": "5.21.
|
|
3
|
+
"version": "5.21.3",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack Query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"superjson": "^1.13.3",
|
|
51
51
|
"tsup-preset-solid": "^2.2.0",
|
|
52
52
|
"vite-plugin-solid": "^2.9.1",
|
|
53
|
-
"@tanstack/query-core": "5.
|
|
53
|
+
"@tanstack/query-core": "5.21.2"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"clean": "rimraf ./build && rimraf ./coverage",
|
package/src/Devtools.tsx
CHANGED
|
@@ -692,6 +692,7 @@ const ContentView: Component<DevtoolsPanelProps> = (props) => {
|
|
|
692
692
|
}
|
|
693
693
|
}}
|
|
694
694
|
class="tsqd-query-filter-textfield"
|
|
695
|
+
name="tsqd-query-filter-input"
|
|
695
696
|
value={
|
|
696
697
|
selectedView() === 'queries'
|
|
697
698
|
? props.localStore.filter || ''
|
|
@@ -708,6 +709,7 @@ const ContentView: Component<DevtoolsPanelProps> = (props) => {
|
|
|
708
709
|
<Show when={selectedView() === 'queries'}>
|
|
709
710
|
<select
|
|
710
711
|
value={sort()}
|
|
712
|
+
name="tsqd-queries-filter-sort"
|
|
711
713
|
onChange={(e) => {
|
|
712
714
|
props.setLocalStore('sort', e.currentTarget.value)
|
|
713
715
|
}}
|
|
@@ -720,6 +722,7 @@ const ContentView: Component<DevtoolsPanelProps> = (props) => {
|
|
|
720
722
|
<Show when={selectedView() === 'mutations'}>
|
|
721
723
|
<select
|
|
722
724
|
value={mutationSort()}
|
|
725
|
+
name="tsqd-mutations-filter-sort"
|
|
723
726
|
onChange={(e) => {
|
|
724
727
|
props.setLocalStore('mutationSort', e.currentTarget.value)
|
|
725
728
|
}}
|