@tanstack/query-devtools 5.21.0 → 5.21.5
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/{4IXB5NHK.js → MY47IRH5.js} +70 -66
- package/build/Devtools/{2ACMJH2B.jsx → OQR5HZUS.jsx} +17 -9
- package/build/Devtools/{NU5BFWH6.js → OWP7E64P.js} +70 -66
- package/build/Devtools/{EX35NSIV.jsx → TETPQZKA.jsx} +17 -9
- package/build/dev.cjs +71 -67
- package/build/dev.js +1 -1
- package/build/dev.jsx +1 -1
- package/build/index.cjs +71 -67
- package/build/index.js +1 -1
- package/build/index.jsx +1 -1
- package/package.json +2 -2
- package/src/Devtools.tsx +14 -7
- package/src/Explorer.tsx +2 -1
package/build/index.cjs
CHANGED
|
@@ -12741,7 +12741,8 @@ var init_Explorer = __esm({
|
|
|
12741
12741
|
entry: u`
|
|
12742
12742
|
& * {
|
|
12743
12743
|
font-size: ${font.size.xs};
|
|
12744
|
-
font-family:
|
|
12744
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
12745
|
+
'Liberation Mono', 'Courier New', monospace;
|
|
12745
12746
|
}
|
|
12746
12747
|
position: relative;
|
|
12747
12748
|
outline: none;
|
|
@@ -12873,7 +12874,7 @@ var Devtools_exports = {};
|
|
|
12873
12874
|
__export(Devtools_exports, {
|
|
12874
12875
|
default: () => Devtools_default
|
|
12875
12876
|
});
|
|
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;
|
|
12877
|
+
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
12878
|
var init_Devtools = __esm({
|
|
12878
12879
|
"src/Devtools.tsx"() {
|
|
12879
12880
|
init_web();
|
|
@@ -12901,36 +12902,37 @@ var init_Devtools = __esm({
|
|
|
12901
12902
|
init_icons();
|
|
12902
12903
|
init_Explorer();
|
|
12903
12904
|
init_Context();
|
|
12904
|
-
_tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
|
|
12905
|
+
_tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>`);
|
|
12905
12906
|
_tmpl$25 = /* @__PURE__ */ template(`<div>`);
|
|
12906
12907
|
_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(`<
|
|
12908
|
+
_tmpl$43 = /* @__PURE__ */ template(`<select name=tsqd-queries-filter-sort>`);
|
|
12909
|
+
_tmpl$53 = /* @__PURE__ */ template(`<select name=tsqd-mutations-filter-sort>`);
|
|
12910
|
+
_tmpl$63 = /* @__PURE__ */ template(`<span>Asc`);
|
|
12911
|
+
_tmpl$73 = /* @__PURE__ */ template(`<span>Desc`);
|
|
12912
|
+
_tmpl$83 = /* @__PURE__ */ template(`<div>Settings`);
|
|
12913
|
+
_tmpl$93 = /* @__PURE__ */ template(`<span>Position`);
|
|
12914
|
+
_tmpl$103 = /* @__PURE__ */ template(`<span>Top`);
|
|
12915
|
+
_tmpl$113 = /* @__PURE__ */ template(`<span>Bottom`);
|
|
12916
|
+
_tmpl$122 = /* @__PURE__ */ template(`<span>Left`);
|
|
12917
|
+
_tmpl$132 = /* @__PURE__ */ template(`<span>Right`);
|
|
12918
|
+
_tmpl$142 = /* @__PURE__ */ template(`<span>Theme`);
|
|
12919
|
+
_tmpl$152 = /* @__PURE__ */ template(`<span>Light`);
|
|
12920
|
+
_tmpl$162 = /* @__PURE__ */ template(`<span>Dark`);
|
|
12921
|
+
_tmpl$172 = /* @__PURE__ */ template(`<span>System`);
|
|
12922
|
+
_tmpl$182 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
|
|
12923
|
+
_tmpl$192 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
|
|
12924
|
+
_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>`);
|
|
12925
|
+
_tmpl$212 = /* @__PURE__ */ template(`<option>Sort by `);
|
|
12926
|
+
_tmpl$222 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
|
|
12927
|
+
_tmpl$232 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
|
|
12928
|
+
_tmpl$242 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
|
|
12929
|
+
_tmpl$252 = /* @__PURE__ */ template(`<span>`);
|
|
12930
|
+
_tmpl$26 = /* @__PURE__ */ template(`<button><span></span><span>`);
|
|
12931
|
+
_tmpl$27 = /* @__PURE__ */ template(`<button><span></span> Error`);
|
|
12932
|
+
_tmpl$28 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
|
|
12933
|
+
_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">`);
|
|
12934
|
+
_tmpl$30 = /* @__PURE__ */ template(`<option>`);
|
|
12935
|
+
_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
12936
|
firstBreakpoint = 1024;
|
|
12935
12937
|
secondBreakpoint = 796;
|
|
12936
12938
|
thirdBreakpoint = 700;
|
|
@@ -13044,7 +13046,7 @@ var init_Devtools = __esm({
|
|
|
13044
13046
|
insert(_el$3, createComponent(TanstackLogo, {}));
|
|
13045
13047
|
_el$4.$$click = () => props.setLocalStore("open", "true");
|
|
13046
13048
|
insert(_el$4, createComponent(TanstackLogo, {}));
|
|
13047
|
-
createRenderEffect(() => className(_el$2, clsx(styles().devtoolsBtn, styles()[`devtoolsBtn-position-${buttonPosition()}`])));
|
|
13049
|
+
createRenderEffect(() => className(_el$2, clsx(styles().devtoolsBtn, styles()[`devtoolsBtn-position-${buttonPosition()}`], "tsqd-open-btn-container")));
|
|
13048
13050
|
return _el$2;
|
|
13049
13051
|
}
|
|
13050
13052
|
});
|
|
@@ -13277,7 +13279,7 @@ var init_Devtools = __esm({
|
|
|
13277
13279
|
el.style.setProperty("--tsqd-font-size", variable);
|
|
13278
13280
|
};
|
|
13279
13281
|
return [(() => {
|
|
13280
|
-
const _el$8 = _tmpl$
|
|
13282
|
+
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
13283
|
const _ref$3 = containerRef;
|
|
13282
13284
|
typeof _ref$3 === "function" ? use(_ref$3, _el$8) : containerRef = _el$8;
|
|
13283
13285
|
_el$11.$$click = () => props.setLocalStore("open", "false");
|
|
@@ -13359,7 +13361,7 @@ var init_Devtools = __esm({
|
|
|
13359
13361
|
props.setLocalStore("sort", e2.currentTarget.value);
|
|
13360
13362
|
});
|
|
13361
13363
|
insert(_el$20, () => Object.keys(sortFns).map((key) => (() => {
|
|
13362
|
-
const _el$42 = _tmpl$
|
|
13364
|
+
const _el$42 = _tmpl$212(); _el$42.firstChild;
|
|
13363
13365
|
_el$42.value = key;
|
|
13364
13366
|
insert(_el$42, key, null);
|
|
13365
13367
|
return _el$42;
|
|
@@ -13373,12 +13375,12 @@ var init_Devtools = __esm({
|
|
|
13373
13375
|
return selectedView() === "mutations";
|
|
13374
13376
|
},
|
|
13375
13377
|
get children() {
|
|
13376
|
-
const _el$21 = _tmpl$
|
|
13378
|
+
const _el$21 = _tmpl$53();
|
|
13377
13379
|
_el$21.addEventListener("change", (e2) => {
|
|
13378
13380
|
props.setLocalStore("mutationSort", e2.currentTarget.value);
|
|
13379
13381
|
});
|
|
13380
13382
|
insert(_el$21, () => Object.keys(mutationSortFns).map((key) => (() => {
|
|
13381
|
-
const _el$44 = _tmpl$
|
|
13383
|
+
const _el$44 = _tmpl$212(); _el$44.firstChild;
|
|
13382
13384
|
_el$44.value = key;
|
|
13383
13385
|
insert(_el$44, key, null);
|
|
13384
13386
|
return _el$44;
|
|
@@ -13400,7 +13402,7 @@ var init_Devtools = __esm({
|
|
|
13400
13402
|
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === 1;
|
|
13401
13403
|
},
|
|
13402
13404
|
get children() {
|
|
13403
|
-
return [_tmpl$
|
|
13405
|
+
return [_tmpl$63(), createComponent(ArrowUp, {})];
|
|
13404
13406
|
}
|
|
13405
13407
|
}), null);
|
|
13406
13408
|
insert(_el$22, createComponent(Show, {
|
|
@@ -13408,7 +13410,7 @@ var init_Devtools = __esm({
|
|
|
13408
13410
|
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1;
|
|
13409
13411
|
},
|
|
13410
13412
|
get children() {
|
|
13411
|
-
return [_tmpl$
|
|
13413
|
+
return [_tmpl$73(), createComponent(ArrowDown, {})];
|
|
13412
13414
|
}
|
|
13413
13415
|
}), null);
|
|
13414
13416
|
_el$26.$$click = () => {
|
|
@@ -13451,7 +13453,7 @@ var init_Devtools = __esm({
|
|
|
13451
13453
|
},
|
|
13452
13454
|
get children() {
|
|
13453
13455
|
return [(() => {
|
|
13454
|
-
const _el$28 = _tmpl$
|
|
13456
|
+
const _el$28 = _tmpl$83();
|
|
13455
13457
|
createRenderEffect(() => className(_el$28, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
|
|
13456
13458
|
return _el$28;
|
|
13457
13459
|
})(), createComponent(index$f.Sub, {
|
|
@@ -13464,7 +13466,7 @@ var init_Devtools = __esm({
|
|
|
13464
13466
|
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
13465
13467
|
},
|
|
13466
13468
|
get children() {
|
|
13467
|
-
return [_tmpl$
|
|
13469
|
+
return [_tmpl$93(), createComponent(ChevronDown, {})];
|
|
13468
13470
|
}
|
|
13469
13471
|
}), createComponent(index$f.Portal, {
|
|
13470
13472
|
ref: (el) => setComputedVariables(el),
|
|
@@ -13483,7 +13485,7 @@ var init_Devtools = __esm({
|
|
|
13483
13485
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
13484
13486
|
},
|
|
13485
13487
|
get children() {
|
|
13486
|
-
return [_tmpl$
|
|
13488
|
+
return [_tmpl$103(), createComponent(ArrowUp, {})];
|
|
13487
13489
|
}
|
|
13488
13490
|
}), createComponent(index$f.Item, {
|
|
13489
13491
|
onSelect: () => {
|
|
@@ -13494,7 +13496,7 @@ var init_Devtools = __esm({
|
|
|
13494
13496
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
13495
13497
|
},
|
|
13496
13498
|
get children() {
|
|
13497
|
-
return [_tmpl$
|
|
13499
|
+
return [_tmpl$113(), createComponent(ArrowDown, {})];
|
|
13498
13500
|
}
|
|
13499
13501
|
}), createComponent(index$f.Item, {
|
|
13500
13502
|
onSelect: () => {
|
|
@@ -13505,7 +13507,7 @@ var init_Devtools = __esm({
|
|
|
13505
13507
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
13506
13508
|
},
|
|
13507
13509
|
get children() {
|
|
13508
|
-
return [_tmpl$
|
|
13510
|
+
return [_tmpl$122(), createComponent(ArrowLeft, {})];
|
|
13509
13511
|
}
|
|
13510
13512
|
}), createComponent(index$f.Item, {
|
|
13511
13513
|
onSelect: () => {
|
|
@@ -13516,7 +13518,7 @@ var init_Devtools = __esm({
|
|
|
13516
13518
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
|
|
13517
13519
|
},
|
|
13518
13520
|
get children() {
|
|
13519
|
-
return [_tmpl$
|
|
13521
|
+
return [_tmpl$132(), createComponent(ArrowRight, {})];
|
|
13520
13522
|
}
|
|
13521
13523
|
})];
|
|
13522
13524
|
}
|
|
@@ -13534,7 +13536,7 @@ var init_Devtools = __esm({
|
|
|
13534
13536
|
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
13535
13537
|
},
|
|
13536
13538
|
get children() {
|
|
13537
|
-
return [_tmpl$
|
|
13539
|
+
return [_tmpl$142(), createComponent(ChevronDown, {})];
|
|
13538
13540
|
}
|
|
13539
13541
|
}), createComponent(index$f.Portal, {
|
|
13540
13542
|
ref: (el) => setComputedVariables(el),
|
|
@@ -13553,7 +13555,7 @@ var init_Devtools = __esm({
|
|
|
13553
13555
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "light" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
13554
13556
|
},
|
|
13555
13557
|
get children() {
|
|
13556
|
-
return [_tmpl$
|
|
13558
|
+
return [_tmpl$152(), createComponent(Sun, {})];
|
|
13557
13559
|
}
|
|
13558
13560
|
}), createComponent(index$f.Item, {
|
|
13559
13561
|
onSelect: () => {
|
|
@@ -13564,7 +13566,7 @@ var init_Devtools = __esm({
|
|
|
13564
13566
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "dark" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
13565
13567
|
},
|
|
13566
13568
|
get children() {
|
|
13567
|
-
return [_tmpl$
|
|
13569
|
+
return [_tmpl$162(), createComponent(Moon, {})];
|
|
13568
13570
|
}
|
|
13569
13571
|
}), createComponent(index$f.Item, {
|
|
13570
13572
|
onSelect: () => {
|
|
@@ -13575,7 +13577,7 @@ var init_Devtools = __esm({
|
|
|
13575
13577
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "system" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
13576
13578
|
},
|
|
13577
13579
|
get children() {
|
|
13578
|
-
return [_tmpl$
|
|
13580
|
+
return [_tmpl$172(), createComponent(Monitor, {})];
|
|
13579
13581
|
}
|
|
13580
13582
|
})];
|
|
13581
13583
|
}
|
|
@@ -13595,7 +13597,7 @@ var init_Devtools = __esm({
|
|
|
13595
13597
|
return selectedView() === "queries";
|
|
13596
13598
|
},
|
|
13597
13599
|
get children() {
|
|
13598
|
-
const _el$38 = _tmpl$
|
|
13600
|
+
const _el$38 = _tmpl$182(), _el$39 = _el$38.firstChild;
|
|
13599
13601
|
insert(_el$39, createComponent(Key, {
|
|
13600
13602
|
by: (q) => q.queryHash,
|
|
13601
13603
|
get each() {
|
|
@@ -13616,7 +13618,7 @@ var init_Devtools = __esm({
|
|
|
13616
13618
|
return selectedView() === "mutations";
|
|
13617
13619
|
},
|
|
13618
13620
|
get children() {
|
|
13619
|
-
const _el$40 = _tmpl$
|
|
13621
|
+
const _el$40 = _tmpl$192(), _el$41 = _el$40.firstChild;
|
|
13620
13622
|
insert(_el$41, createComponent(Key, {
|
|
13621
13623
|
by: (m) => m.mutationId,
|
|
13622
13624
|
get each() {
|
|
@@ -13743,7 +13745,7 @@ var init_Devtools = __esm({
|
|
|
13743
13745
|
return queryState();
|
|
13744
13746
|
},
|
|
13745
13747
|
get children() {
|
|
13746
|
-
const _el$46 = _tmpl$
|
|
13748
|
+
const _el$46 = _tmpl$232(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling;
|
|
13747
13749
|
_el$46.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
|
|
13748
13750
|
insert(_el$47, observers);
|
|
13749
13751
|
insert(_el$48, () => props.query.queryHash);
|
|
@@ -13752,7 +13754,7 @@ var init_Devtools = __esm({
|
|
|
13752
13754
|
return isDisabled();
|
|
13753
13755
|
},
|
|
13754
13756
|
get children() {
|
|
13755
|
-
return _tmpl$
|
|
13757
|
+
return _tmpl$222();
|
|
13756
13758
|
}
|
|
13757
13759
|
}), null);
|
|
13758
13760
|
createRenderEffect((_p$) => {
|
|
@@ -13820,7 +13822,7 @@ var init_Devtools = __esm({
|
|
|
13820
13822
|
return mutationState();
|
|
13821
13823
|
},
|
|
13822
13824
|
get children() {
|
|
13823
|
-
const _el$50 = _tmpl$
|
|
13825
|
+
const _el$50 = _tmpl$232(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling;
|
|
13824
13826
|
_el$50.$$click = () => {
|
|
13825
13827
|
setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
|
|
13826
13828
|
};
|
|
@@ -14011,7 +14013,7 @@ var init_Devtools = __esm({
|
|
|
14011
14013
|
return true;
|
|
14012
14014
|
});
|
|
14013
14015
|
return (() => {
|
|
14014
|
-
const _el$55 = _tmpl$
|
|
14016
|
+
const _el$55 = _tmpl$26(), _el$57 = _el$55.firstChild, _el$59 = _el$57.nextSibling;
|
|
14015
14017
|
const _ref$4 = tagRef;
|
|
14016
14018
|
typeof _ref$4 === "function" ? use(_ref$4, _el$55) : tagRef = _el$55;
|
|
14017
14019
|
_el$55.addEventListener("mouseleave", () => {
|
|
@@ -14041,7 +14043,7 @@ var init_Devtools = __esm({
|
|
|
14041
14043
|
return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
|
|
14042
14044
|
},
|
|
14043
14045
|
get children() {
|
|
14044
|
-
const _el$56 = _tmpl$
|
|
14046
|
+
const _el$56 = _tmpl$242();
|
|
14045
14047
|
insert(_el$56, () => props.label);
|
|
14046
14048
|
createRenderEffect(() => className(_el$56, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
|
|
14047
14049
|
return _el$56;
|
|
@@ -14052,7 +14054,7 @@ var init_Devtools = __esm({
|
|
|
14052
14054
|
return showLabel();
|
|
14053
14055
|
},
|
|
14054
14056
|
get children() {
|
|
14055
|
-
const _el$58 = _tmpl$
|
|
14057
|
+
const _el$58 = _tmpl$252();
|
|
14056
14058
|
insert(_el$58, () => props.label);
|
|
14057
14059
|
createRenderEffect(() => className(_el$58, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
|
|
14058
14060
|
return _el$58;
|
|
@@ -14162,7 +14164,7 @@ var init_Devtools = __esm({
|
|
|
14162
14164
|
return createMemo(() => !!activeQuery())() && activeQueryState();
|
|
14163
14165
|
},
|
|
14164
14166
|
get children() {
|
|
14165
|
-
const _el$60 = _tmpl$
|
|
14167
|
+
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
14168
|
insert(_el$65, () => displayValue(activeQuery().queryKey, true));
|
|
14167
14169
|
insert(_el$66, statusLabel);
|
|
14168
14170
|
insert(_el$69, observerCount);
|
|
@@ -14207,7 +14209,7 @@ var init_Devtools = __esm({
|
|
|
14207
14209
|
return errorTypes().length === 0 || queryStatus() === "error";
|
|
14208
14210
|
},
|
|
14209
14211
|
get children() {
|
|
14210
|
-
const _el$86 = _tmpl$
|
|
14212
|
+
const _el$86 = _tmpl$27(), _el$87 = _el$86.firstChild, _el$88 = _el$87.nextSibling;
|
|
14211
14213
|
_el$86.$$click = () => {
|
|
14212
14214
|
if (!activeQuery().state.error) {
|
|
14213
14215
|
triggerError();
|
|
@@ -14239,7 +14241,7 @@ var init_Devtools = __esm({
|
|
|
14239
14241
|
return !(errorTypes().length === 0 || queryStatus() === "error");
|
|
14240
14242
|
},
|
|
14241
14243
|
get children() {
|
|
14242
|
-
const _el$89 = _tmpl$
|
|
14244
|
+
const _el$89 = _tmpl$28(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling, _el$92 = _el$91.nextSibling; _el$92.firstChild;
|
|
14243
14245
|
_el$92.addEventListener("change", (e2) => {
|
|
14244
14246
|
const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
|
|
14245
14247
|
triggerError(errorType);
|
|
@@ -14249,7 +14251,7 @@ var init_Devtools = __esm({
|
|
|
14249
14251
|
return errorTypes();
|
|
14250
14252
|
},
|
|
14251
14253
|
children: (errorType) => (() => {
|
|
14252
|
-
const _el$98 = _tmpl$
|
|
14254
|
+
const _el$98 = _tmpl$30();
|
|
14253
14255
|
insert(_el$98, () => errorType.name);
|
|
14254
14256
|
createRenderEffect(() => _el$98.value = errorType.name);
|
|
14255
14257
|
return _el$98;
|
|
@@ -14416,7 +14418,7 @@ var init_Devtools = __esm({
|
|
|
14416
14418
|
return activeMutation();
|
|
14417
14419
|
},
|
|
14418
14420
|
get children() {
|
|
14419
|
-
const _el$99 = _tmpl$
|
|
14421
|
+
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
14422
|
insert(_el$104, createComponent(Show, {
|
|
14421
14423
|
get when() {
|
|
14422
14424
|
return activeMutation().options.mutationKey;
|
|
@@ -14836,7 +14838,7 @@ var init_Devtools = __esm({
|
|
|
14836
14838
|
display: flex;
|
|
14837
14839
|
flex-direction: column;
|
|
14838
14840
|
& * {
|
|
14839
|
-
font-family:
|
|
14841
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
14840
14842
|
}
|
|
14841
14843
|
`,
|
|
14842
14844
|
dragHandle: u`
|
|
@@ -15201,7 +15203,8 @@ var init_Devtools = __esm({
|
|
|
15201
15203
|
min-height: ${tokens.size[6]};
|
|
15202
15204
|
flex: 1;
|
|
15203
15205
|
padding: ${tokens.size[1]} ${tokens.size[2]};
|
|
15204
|
-
font-family:
|
|
15206
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
15207
|
+
'Liberation Mono', 'Courier New', monospace;
|
|
15205
15208
|
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
15206
15209
|
text-align: left;
|
|
15207
15210
|
text-overflow: clip;
|
|
@@ -15226,7 +15229,7 @@ var init_Devtools = __esm({
|
|
|
15226
15229
|
flex: 1 1 700px;
|
|
15227
15230
|
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
15228
15231
|
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
15229
|
-
font-family:
|
|
15232
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
15230
15233
|
display: flex;
|
|
15231
15234
|
flex-direction: column;
|
|
15232
15235
|
overflow-y: auto;
|
|
@@ -15234,7 +15237,7 @@ var init_Devtools = __esm({
|
|
|
15234
15237
|
text-align: left;
|
|
15235
15238
|
`,
|
|
15236
15239
|
detailsHeader: u`
|
|
15237
|
-
font-family:
|
|
15240
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
15238
15241
|
position: sticky;
|
|
15239
15242
|
top: 0;
|
|
15240
15243
|
z-index: 2;
|
|
@@ -15266,7 +15269,8 @@ var init_Devtools = __esm({
|
|
|
15266
15269
|
}
|
|
15267
15270
|
|
|
15268
15271
|
& code {
|
|
15269
|
-
font-family:
|
|
15272
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
15273
|
+
'Liberation Mono', 'Courier New', monospace;
|
|
15270
15274
|
margin: 0;
|
|
15271
15275
|
font-size: ${font.size.xs};
|
|
15272
15276
|
line-height: ${font.lineHeight.xs};
|
|
@@ -15291,7 +15295,7 @@ var init_Devtools = __esm({
|
|
|
15291
15295
|
gap: ${tokens.size[2]};
|
|
15292
15296
|
padding: 0px ${tokens.size[2]};
|
|
15293
15297
|
& > button {
|
|
15294
|
-
font-family:
|
|
15298
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
15295
15299
|
font-size: ${font.size.xs};
|
|
15296
15300
|
padding: ${tokens.size[1]} ${tokens.size[2]};
|
|
15297
15301
|
display: flex;
|
|
@@ -15376,7 +15380,7 @@ var init_Devtools = __esm({
|
|
|
15376
15380
|
settingsMenu: u`
|
|
15377
15381
|
display: flex;
|
|
15378
15382
|
& * {
|
|
15379
|
-
font-family:
|
|
15383
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
15380
15384
|
}
|
|
15381
15385
|
flex-direction: column;
|
|
15382
15386
|
gap: ${size2[0.5]};
|
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/MY47IRH5.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/OQR5HZUS.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.5",
|
|
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.4"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"clean": "rimraf ./build && rimraf ./coverage",
|
package/src/Devtools.tsx
CHANGED
|
@@ -252,6 +252,7 @@ const Devtools: Component<DevtoolsPanelProps> = (props) => {
|
|
|
252
252
|
class={cx(
|
|
253
253
|
styles().devtoolsBtn,
|
|
254
254
|
styles()[`devtoolsBtn-position-${buttonPosition()}`],
|
|
255
|
+
'tsqd-open-btn-container',
|
|
255
256
|
)}
|
|
256
257
|
>
|
|
257
258
|
<div aria-hidden="true">
|
|
@@ -260,6 +261,7 @@ const Devtools: Component<DevtoolsPanelProps> = (props) => {
|
|
|
260
261
|
<button
|
|
261
262
|
aria-label="Open Tanstack query devtools"
|
|
262
263
|
onClick={() => props.setLocalStore('open', 'true')}
|
|
264
|
+
class="tsqd-open-btn"
|
|
263
265
|
>
|
|
264
266
|
<TanstackLogo />
|
|
265
267
|
</button>
|
|
@@ -692,6 +694,7 @@ const ContentView: Component<DevtoolsPanelProps> = (props) => {
|
|
|
692
694
|
}
|
|
693
695
|
}}
|
|
694
696
|
class="tsqd-query-filter-textfield"
|
|
697
|
+
name="tsqd-query-filter-input"
|
|
695
698
|
value={
|
|
696
699
|
selectedView() === 'queries'
|
|
697
700
|
? props.localStore.filter || ''
|
|
@@ -708,6 +711,7 @@ const ContentView: Component<DevtoolsPanelProps> = (props) => {
|
|
|
708
711
|
<Show when={selectedView() === 'queries'}>
|
|
709
712
|
<select
|
|
710
713
|
value={sort()}
|
|
714
|
+
name="tsqd-queries-filter-sort"
|
|
711
715
|
onChange={(e) => {
|
|
712
716
|
props.setLocalStore('sort', e.currentTarget.value)
|
|
713
717
|
}}
|
|
@@ -720,6 +724,7 @@ const ContentView: Component<DevtoolsPanelProps> = (props) => {
|
|
|
720
724
|
<Show when={selectedView() === 'mutations'}>
|
|
721
725
|
<select
|
|
722
726
|
value={mutationSort()}
|
|
727
|
+
name="tsqd-mutations-filter-sort"
|
|
723
728
|
onChange={(e) => {
|
|
724
729
|
props.setLocalStore('mutationSort', e.currentTarget.value)
|
|
725
730
|
}}
|
|
@@ -2417,7 +2422,7 @@ const stylesFactory = (theme: 'light' | 'dark') => {
|
|
|
2417
2422
|
display: flex;
|
|
2418
2423
|
flex-direction: column;
|
|
2419
2424
|
& * {
|
|
2420
|
-
font-family:
|
|
2425
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
2421
2426
|
}
|
|
2422
2427
|
`,
|
|
2423
2428
|
dragHandle: css`
|
|
@@ -2782,7 +2787,8 @@ const stylesFactory = (theme: 'light' | 'dark') => {
|
|
|
2782
2787
|
min-height: ${tokens.size[6]};
|
|
2783
2788
|
flex: 1;
|
|
2784
2789
|
padding: ${tokens.size[1]} ${tokens.size[2]};
|
|
2785
|
-
font-family:
|
|
2790
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
2791
|
+
'Liberation Mono', 'Courier New', monospace;
|
|
2786
2792
|
border-bottom: 1px solid ${t(colors.gray[300], colors.darkGray[400])};
|
|
2787
2793
|
text-align: left;
|
|
2788
2794
|
text-overflow: clip;
|
|
@@ -2807,7 +2813,7 @@ const stylesFactory = (theme: 'light' | 'dark') => {
|
|
|
2807
2813
|
flex: 1 1 700px;
|
|
2808
2814
|
background-color: ${t(colors.gray[50], colors.darkGray[700])};
|
|
2809
2815
|
color: ${t(colors.gray[700], colors.gray[300])};
|
|
2810
|
-
font-family:
|
|
2816
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
2811
2817
|
display: flex;
|
|
2812
2818
|
flex-direction: column;
|
|
2813
2819
|
overflow-y: auto;
|
|
@@ -2815,7 +2821,7 @@ const stylesFactory = (theme: 'light' | 'dark') => {
|
|
|
2815
2821
|
text-align: left;
|
|
2816
2822
|
`,
|
|
2817
2823
|
detailsHeader: css`
|
|
2818
|
-
font-family:
|
|
2824
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
2819
2825
|
position: sticky;
|
|
2820
2826
|
top: 0;
|
|
2821
2827
|
z-index: 2;
|
|
@@ -2847,7 +2853,8 @@ const stylesFactory = (theme: 'light' | 'dark') => {
|
|
|
2847
2853
|
}
|
|
2848
2854
|
|
|
2849
2855
|
& code {
|
|
2850
|
-
font-family:
|
|
2856
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
2857
|
+
'Liberation Mono', 'Courier New', monospace;
|
|
2851
2858
|
margin: 0;
|
|
2852
2859
|
font-size: ${font.size.xs};
|
|
2853
2860
|
line-height: ${font.lineHeight.xs};
|
|
@@ -2872,7 +2879,7 @@ const stylesFactory = (theme: 'light' | 'dark') => {
|
|
|
2872
2879
|
gap: ${tokens.size[2]};
|
|
2873
2880
|
padding: 0px ${tokens.size[2]};
|
|
2874
2881
|
& > button {
|
|
2875
|
-
font-family:
|
|
2882
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
2876
2883
|
font-size: ${font.size.xs};
|
|
2877
2884
|
padding: ${tokens.size[1]} ${tokens.size[2]};
|
|
2878
2885
|
display: flex;
|
|
@@ -2957,7 +2964,7 @@ const stylesFactory = (theme: 'light' | 'dark') => {
|
|
|
2957
2964
|
settingsMenu: css`
|
|
2958
2965
|
display: flex;
|
|
2959
2966
|
& * {
|
|
2960
|
-
font-family:
|
|
2967
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
2961
2968
|
}
|
|
2962
2969
|
flex-direction: column;
|
|
2963
2970
|
gap: ${size[0.5]};
|
package/src/Explorer.tsx
CHANGED
|
@@ -489,7 +489,8 @@ const stylesFactory = (theme: 'light' | 'dark') => {
|
|
|
489
489
|
entry: css`
|
|
490
490
|
& * {
|
|
491
491
|
font-size: ${font.size.xs};
|
|
492
|
-
font-family:
|
|
492
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
493
|
+
'Liberation Mono', 'Courier New', monospace;
|
|
493
494
|
}
|
|
494
495
|
position: relative;
|
|
495
496
|
outline: none;
|