@tanstack/query-devtools 5.13.3 → 5.14.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/{XEIAQO4C.js → 47NOZC6N.js} +19 -9
- package/build/Devtools/{HI6IFUTD.jsx → QLPNQ352.jsx} +20 -9
- package/build/Devtools/{EN5OW4QY.jsx → SEFWYCLN.jsx} +20 -9
- package/build/Devtools/{VWYHBKXD.js → TB2FSY4I.js} +19 -9
- package/build/dev.cjs +19 -15
- package/build/dev.js +1 -1
- package/build/dev.jsx +1 -1
- package/build/index.cjs +19 -15
- package/build/index.js +1 -1
- package/build/index.jsx +1 -1
- package/package.json +2 -2
- package/src/Devtools.tsx +22 -3
- package/src/fonts.ts +0 -7
|
@@ -9492,14 +9492,6 @@ var lightStyles = stylesFactory("light");
|
|
|
9492
9492
|
var darkStyles = stylesFactory("dark");
|
|
9493
9493
|
delegateEvents(["click"]);
|
|
9494
9494
|
|
|
9495
|
-
// src/fonts.ts
|
|
9496
|
-
var loadFonts = () => {
|
|
9497
|
-
const link = document.createElement("link");
|
|
9498
|
-
link.href = "https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto&display=swap";
|
|
9499
|
-
link.rel = "stylesheet";
|
|
9500
|
-
document.head.appendChild(link);
|
|
9501
|
-
};
|
|
9502
|
-
|
|
9503
9495
|
// src/Devtools.tsx
|
|
9504
9496
|
var _tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
|
|
9505
9497
|
var _tmpl$25 = /* @__PURE__ */ template(`<div>`);
|
|
@@ -9574,7 +9566,6 @@ var DevtoolsComponent = (props) => {
|
|
|
9574
9566
|
};
|
|
9575
9567
|
var Devtools_default = DevtoolsComponent;
|
|
9576
9568
|
var Devtools = (props) => {
|
|
9577
|
-
loadFonts();
|
|
9578
9569
|
const theme = useTheme();
|
|
9579
9570
|
const styles = createMemo(() => {
|
|
9580
9571
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
@@ -10235,6 +10226,9 @@ var ContentView = (props) => {
|
|
|
10235
10226
|
const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && u`
|
|
10236
10227
|
height: 50%;
|
|
10237
10228
|
max-height: 50%;
|
|
10229
|
+
`, panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && u`
|
|
10230
|
+
height: 100%;
|
|
10231
|
+
max-height: 100%;
|
|
10238
10232
|
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = styles().logoAndToggleContainer, _v$9 = clsx(styles().logo, "tsqd-text-logo-container"), _v$10 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$11 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$12 = clsx(styles().row, "tsqd-filters-actions-container"), _v$13 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$14 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$15 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$16 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$17 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$18 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$19 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$20 = `Clear ${selectedView()} cache`, _v$21 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = offline(), _v$24 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
|
|
10239
10233
|
_v$6 !== _p$._v$6 && className(_el$8, _p$._v$6 = _v$6);
|
|
10240
10234
|
_v$7 !== _p$._v$7 && className(_el$9, _p$._v$7 = _v$7);
|
|
@@ -11251,6 +11245,22 @@ var stylesFactory2 = (theme) => {
|
|
|
11251
11245
|
box-sizing: border-box;
|
|
11252
11246
|
text-transform: none;
|
|
11253
11247
|
}
|
|
11248
|
+
|
|
11249
|
+
& *::-webkit-scrollbar {
|
|
11250
|
+
width: 7px;
|
|
11251
|
+
}
|
|
11252
|
+
|
|
11253
|
+
& *::-webkit-scrollbar-track {
|
|
11254
|
+
background: transparent;
|
|
11255
|
+
}
|
|
11256
|
+
|
|
11257
|
+
& *::-webkit-scrollbar-thumb {
|
|
11258
|
+
background: ${t2(colors.gray[300], colors.darkGray[200])};
|
|
11259
|
+
}
|
|
11260
|
+
|
|
11261
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
11262
|
+
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
11263
|
+
}
|
|
11254
11264
|
`,
|
|
11255
11265
|
"devtoolsBtn-position-bottom-right": u`
|
|
11256
11266
|
bottom: 12px;
|
|
@@ -10422,14 +10422,6 @@ var stylesFactory = (theme) => {
|
|
|
10422
10422
|
var lightStyles = stylesFactory("light");
|
|
10423
10423
|
var darkStyles = stylesFactory("dark");
|
|
10424
10424
|
|
|
10425
|
-
// src/fonts.ts
|
|
10426
|
-
var loadFonts = () => {
|
|
10427
|
-
const link = document.createElement("link");
|
|
10428
|
-
link.href = "https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto&display=swap";
|
|
10429
|
-
link.rel = "stylesheet";
|
|
10430
|
-
document.head.appendChild(link);
|
|
10431
|
-
};
|
|
10432
|
-
|
|
10433
10425
|
// src/Devtools.tsx
|
|
10434
10426
|
var firstBreakpoint = 1024;
|
|
10435
10427
|
var secondBreakpoint = 796;
|
|
@@ -10465,7 +10457,6 @@ var DevtoolsComponent = (props) => {
|
|
|
10465
10457
|
};
|
|
10466
10458
|
var Devtools_default = DevtoolsComponent;
|
|
10467
10459
|
var Devtools = (props) => {
|
|
10468
|
-
loadFonts();
|
|
10469
10460
|
const theme = useTheme();
|
|
10470
10461
|
const styles = createMemo(() => {
|
|
10471
10462
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
@@ -10793,6 +10784,10 @@ var ContentView = (props) => {
|
|
|
10793
10784
|
height: 50%;
|
|
10794
10785
|
max-height: 50%;
|
|
10795
10786
|
`,
|
|
10787
|
+
panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && u`
|
|
10788
|
+
height: 100%;
|
|
10789
|
+
max-height: 100%;
|
|
10790
|
+
`,
|
|
10796
10791
|
"tsqd-queries-container"
|
|
10797
10792
|
)}
|
|
10798
10793
|
ref={containerRef}
|
|
@@ -12058,6 +12053,22 @@ var stylesFactory2 = (theme) => {
|
|
|
12058
12053
|
box-sizing: border-box;
|
|
12059
12054
|
text-transform: none;
|
|
12060
12055
|
}
|
|
12056
|
+
|
|
12057
|
+
& *::-webkit-scrollbar {
|
|
12058
|
+
width: 7px;
|
|
12059
|
+
}
|
|
12060
|
+
|
|
12061
|
+
& *::-webkit-scrollbar-track {
|
|
12062
|
+
background: transparent;
|
|
12063
|
+
}
|
|
12064
|
+
|
|
12065
|
+
& *::-webkit-scrollbar-thumb {
|
|
12066
|
+
background: ${t2(colors.gray[300], colors.darkGray[200])};
|
|
12067
|
+
}
|
|
12068
|
+
|
|
12069
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
12070
|
+
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
12071
|
+
}
|
|
12061
12072
|
`,
|
|
12062
12073
|
"devtoolsBtn-position-bottom-right": u`
|
|
12063
12074
|
bottom: 12px;
|
|
@@ -10423,14 +10423,6 @@ var stylesFactory = (theme) => {
|
|
|
10423
10423
|
var lightStyles = stylesFactory("light");
|
|
10424
10424
|
var darkStyles = stylesFactory("dark");
|
|
10425
10425
|
|
|
10426
|
-
// src/fonts.ts
|
|
10427
|
-
var loadFonts = () => {
|
|
10428
|
-
const link = document.createElement("link");
|
|
10429
|
-
link.href = "https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto&display=swap";
|
|
10430
|
-
link.rel = "stylesheet";
|
|
10431
|
-
document.head.appendChild(link);
|
|
10432
|
-
};
|
|
10433
|
-
|
|
10434
10426
|
// src/Devtools.tsx
|
|
10435
10427
|
var firstBreakpoint = 1024;
|
|
10436
10428
|
var secondBreakpoint = 796;
|
|
@@ -10466,7 +10458,6 @@ var DevtoolsComponent = (props) => {
|
|
|
10466
10458
|
};
|
|
10467
10459
|
var Devtools_default = DevtoolsComponent;
|
|
10468
10460
|
var Devtools = (props) => {
|
|
10469
|
-
loadFonts();
|
|
10470
10461
|
const theme = useTheme();
|
|
10471
10462
|
const styles = createMemo(() => {
|
|
10472
10463
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
@@ -10794,6 +10785,10 @@ var ContentView = (props) => {
|
|
|
10794
10785
|
height: 50%;
|
|
10795
10786
|
max-height: 50%;
|
|
10796
10787
|
`,
|
|
10788
|
+
panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && u`
|
|
10789
|
+
height: 100%;
|
|
10790
|
+
max-height: 100%;
|
|
10791
|
+
`,
|
|
10797
10792
|
"tsqd-queries-container"
|
|
10798
10793
|
)}
|
|
10799
10794
|
ref={containerRef}
|
|
@@ -12059,6 +12054,22 @@ var stylesFactory2 = (theme) => {
|
|
|
12059
12054
|
box-sizing: border-box;
|
|
12060
12055
|
text-transform: none;
|
|
12061
12056
|
}
|
|
12057
|
+
|
|
12058
|
+
& *::-webkit-scrollbar {
|
|
12059
|
+
width: 7px;
|
|
12060
|
+
}
|
|
12061
|
+
|
|
12062
|
+
& *::-webkit-scrollbar-track {
|
|
12063
|
+
background: transparent;
|
|
12064
|
+
}
|
|
12065
|
+
|
|
12066
|
+
& *::-webkit-scrollbar-thumb {
|
|
12067
|
+
background: ${t2(colors.gray[300], colors.darkGray[200])};
|
|
12068
|
+
}
|
|
12069
|
+
|
|
12070
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
12071
|
+
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
12072
|
+
}
|
|
12062
12073
|
`,
|
|
12063
12074
|
"devtoolsBtn-position-bottom-right": u`
|
|
12064
12075
|
bottom: 12px;
|
|
@@ -9493,14 +9493,6 @@ var lightStyles = stylesFactory("light");
|
|
|
9493
9493
|
var darkStyles = stylesFactory("dark");
|
|
9494
9494
|
delegateEvents(["click"]);
|
|
9495
9495
|
|
|
9496
|
-
// src/fonts.ts
|
|
9497
|
-
var loadFonts = () => {
|
|
9498
|
-
const link = document.createElement("link");
|
|
9499
|
-
link.href = "https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto&display=swap";
|
|
9500
|
-
link.rel = "stylesheet";
|
|
9501
|
-
document.head.appendChild(link);
|
|
9502
|
-
};
|
|
9503
|
-
|
|
9504
9496
|
// src/Devtools.tsx
|
|
9505
9497
|
var _tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
|
|
9506
9498
|
var _tmpl$25 = /* @__PURE__ */ template(`<div>`);
|
|
@@ -9575,7 +9567,6 @@ var DevtoolsComponent = (props) => {
|
|
|
9575
9567
|
};
|
|
9576
9568
|
var Devtools_default = DevtoolsComponent;
|
|
9577
9569
|
var Devtools = (props) => {
|
|
9578
|
-
loadFonts();
|
|
9579
9570
|
const theme = useTheme();
|
|
9580
9571
|
const styles = createMemo(() => {
|
|
9581
9572
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
@@ -10236,6 +10227,9 @@ var ContentView = (props) => {
|
|
|
10236
10227
|
const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && u`
|
|
10237
10228
|
height: 50%;
|
|
10238
10229
|
max-height: 50%;
|
|
10230
|
+
`, panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && u`
|
|
10231
|
+
height: 100%;
|
|
10232
|
+
max-height: 100%;
|
|
10239
10233
|
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = styles().logoAndToggleContainer, _v$9 = clsx(styles().logo, "tsqd-text-logo-container"), _v$10 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$11 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$12 = clsx(styles().row, "tsqd-filters-actions-container"), _v$13 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$14 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$15 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$16 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$17 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$18 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$19 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$20 = `Clear ${selectedView()} cache`, _v$21 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = offline(), _v$24 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
|
|
10240
10234
|
_v$6 !== _p$._v$6 && className(_el$8, _p$._v$6 = _v$6);
|
|
10241
10235
|
_v$7 !== _p$._v$7 && className(_el$9, _p$._v$7 = _v$7);
|
|
@@ -11252,6 +11246,22 @@ var stylesFactory2 = (theme) => {
|
|
|
11252
11246
|
box-sizing: border-box;
|
|
11253
11247
|
text-transform: none;
|
|
11254
11248
|
}
|
|
11249
|
+
|
|
11250
|
+
& *::-webkit-scrollbar {
|
|
11251
|
+
width: 7px;
|
|
11252
|
+
}
|
|
11253
|
+
|
|
11254
|
+
& *::-webkit-scrollbar-track {
|
|
11255
|
+
background: transparent;
|
|
11256
|
+
}
|
|
11257
|
+
|
|
11258
|
+
& *::-webkit-scrollbar-thumb {
|
|
11259
|
+
background: ${t2(colors.gray[300], colors.darkGray[200])};
|
|
11260
|
+
}
|
|
11261
|
+
|
|
11262
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
11263
|
+
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
11264
|
+
}
|
|
11255
11265
|
`,
|
|
11256
11266
|
"devtoolsBtn-position-bottom-right": u`
|
|
11257
11267
|
bottom: 12px;
|
package/build/dev.cjs
CHANGED
|
@@ -12978,19 +12978,6 @@ var init_Explorer = __esm({
|
|
|
12978
12978
|
}
|
|
12979
12979
|
});
|
|
12980
12980
|
|
|
12981
|
-
// src/fonts.ts
|
|
12982
|
-
var loadFonts;
|
|
12983
|
-
var init_fonts = __esm({
|
|
12984
|
-
"src/fonts.ts"() {
|
|
12985
|
-
loadFonts = () => {
|
|
12986
|
-
const link = document.createElement("link");
|
|
12987
|
-
link.href = "https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto&display=swap";
|
|
12988
|
-
link.rel = "stylesheet";
|
|
12989
|
-
document.head.appendChild(link);
|
|
12990
|
-
};
|
|
12991
|
-
}
|
|
12992
|
-
});
|
|
12993
|
-
|
|
12994
12981
|
// src/Devtools.tsx
|
|
12995
12982
|
var Devtools_exports = {};
|
|
12996
12983
|
__export(Devtools_exports, {
|
|
@@ -13024,7 +13011,6 @@ var init_Devtools = __esm({
|
|
|
13024
13011
|
init_icons();
|
|
13025
13012
|
init_Explorer();
|
|
13026
13013
|
init_Context();
|
|
13027
|
-
init_fonts();
|
|
13028
13014
|
_tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
|
|
13029
13015
|
_tmpl$25 = /* @__PURE__ */ template(`<div>`);
|
|
13030
13016
|
_tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
|
|
@@ -13098,7 +13084,6 @@ var init_Devtools = __esm({
|
|
|
13098
13084
|
};
|
|
13099
13085
|
Devtools_default = DevtoolsComponent;
|
|
13100
13086
|
Devtools = (props) => {
|
|
13101
|
-
loadFonts();
|
|
13102
13087
|
const theme = useTheme();
|
|
13103
13088
|
const styles = createMemo(() => {
|
|
13104
13089
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
@@ -13759,6 +13744,9 @@ var init_Devtools = __esm({
|
|
|
13759
13744
|
const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && u`
|
|
13760
13745
|
height: 50%;
|
|
13761
13746
|
max-height: 50%;
|
|
13747
|
+
`, panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && u`
|
|
13748
|
+
height: 100%;
|
|
13749
|
+
max-height: 100%;
|
|
13762
13750
|
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = styles().logoAndToggleContainer, _v$9 = clsx(styles().logo, "tsqd-text-logo-container"), _v$10 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$11 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$12 = clsx(styles().row, "tsqd-filters-actions-container"), _v$13 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$14 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$15 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$16 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$17 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$18 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$19 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$20 = `Clear ${selectedView()} cache`, _v$21 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = offline(), _v$24 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
|
|
13763
13751
|
_v$6 !== _p$._v$6 && className(_el$8, _p$._v$6 = _v$6);
|
|
13764
13752
|
_v$7 !== _p$._v$7 && className(_el$9, _p$._v$7 = _v$7);
|
|
@@ -14775,6 +14763,22 @@ var init_Devtools = __esm({
|
|
|
14775
14763
|
box-sizing: border-box;
|
|
14776
14764
|
text-transform: none;
|
|
14777
14765
|
}
|
|
14766
|
+
|
|
14767
|
+
& *::-webkit-scrollbar {
|
|
14768
|
+
width: 7px;
|
|
14769
|
+
}
|
|
14770
|
+
|
|
14771
|
+
& *::-webkit-scrollbar-track {
|
|
14772
|
+
background: transparent;
|
|
14773
|
+
}
|
|
14774
|
+
|
|
14775
|
+
& *::-webkit-scrollbar-thumb {
|
|
14776
|
+
background: ${t2(colors.gray[300], colors.darkGray[200])};
|
|
14777
|
+
}
|
|
14778
|
+
|
|
14779
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
14780
|
+
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
14781
|
+
}
|
|
14778
14782
|
`,
|
|
14779
14783
|
"devtoolsBtn-position-bottom-right": u`
|
|
14780
14784
|
bottom: 12px;
|
package/build/dev.js
CHANGED
|
@@ -65,7 +65,7 @@ var TanstackQueryDevtools = class {
|
|
|
65
65
|
if (this.#Component) {
|
|
66
66
|
Devtools = this.#Component;
|
|
67
67
|
} else {
|
|
68
|
-
Devtools = lazy(() => import('./Devtools/
|
|
68
|
+
Devtools = lazy(() => import('./Devtools/TB2FSY4I.js'));
|
|
69
69
|
this.#Component = Devtools;
|
|
70
70
|
}
|
|
71
71
|
setupStyleSheet(this.#styleNonce);
|
package/build/dev.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/SEFWYCLN.jsx"));
|
|
74
74
|
this.#Component = Devtools;
|
|
75
75
|
}
|
|
76
76
|
setupStyleSheet(this.#styleNonce);
|
package/build/index.cjs
CHANGED
|
@@ -12976,19 +12976,6 @@ var init_Explorer = __esm({
|
|
|
12976
12976
|
}
|
|
12977
12977
|
});
|
|
12978
12978
|
|
|
12979
|
-
// src/fonts.ts
|
|
12980
|
-
var loadFonts;
|
|
12981
|
-
var init_fonts = __esm({
|
|
12982
|
-
"src/fonts.ts"() {
|
|
12983
|
-
loadFonts = () => {
|
|
12984
|
-
const link = document.createElement("link");
|
|
12985
|
-
link.href = "https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto&display=swap";
|
|
12986
|
-
link.rel = "stylesheet";
|
|
12987
|
-
document.head.appendChild(link);
|
|
12988
|
-
};
|
|
12989
|
-
}
|
|
12990
|
-
});
|
|
12991
|
-
|
|
12992
12979
|
// src/Devtools.tsx
|
|
12993
12980
|
var Devtools_exports = {};
|
|
12994
12981
|
__export(Devtools_exports, {
|
|
@@ -13022,7 +13009,6 @@ var init_Devtools = __esm({
|
|
|
13022
13009
|
init_icons();
|
|
13023
13010
|
init_Explorer();
|
|
13024
13011
|
init_Context();
|
|
13025
|
-
init_fonts();
|
|
13026
13012
|
_tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
|
|
13027
13013
|
_tmpl$25 = /* @__PURE__ */ template(`<div>`);
|
|
13028
13014
|
_tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
|
|
@@ -13096,7 +13082,6 @@ var init_Devtools = __esm({
|
|
|
13096
13082
|
};
|
|
13097
13083
|
Devtools_default = DevtoolsComponent;
|
|
13098
13084
|
Devtools = (props) => {
|
|
13099
|
-
loadFonts();
|
|
13100
13085
|
const theme = useTheme();
|
|
13101
13086
|
const styles = createMemo(() => {
|
|
13102
13087
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
@@ -13757,6 +13742,9 @@ var init_Devtools = __esm({
|
|
|
13757
13742
|
const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && u`
|
|
13758
13743
|
height: 50%;
|
|
13759
13744
|
max-height: 50%;
|
|
13745
|
+
`, panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && u`
|
|
13746
|
+
height: 100%;
|
|
13747
|
+
max-height: 100%;
|
|
13760
13748
|
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = styles().logoAndToggleContainer, _v$9 = clsx(styles().logo, "tsqd-text-logo-container"), _v$10 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$11 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$12 = clsx(styles().row, "tsqd-filters-actions-container"), _v$13 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$14 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$15 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$16 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$17 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$18 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$19 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$20 = `Clear ${selectedView()} cache`, _v$21 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = offline(), _v$24 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
|
|
13761
13749
|
_v$6 !== _p$._v$6 && className(_el$8, _p$._v$6 = _v$6);
|
|
13762
13750
|
_v$7 !== _p$._v$7 && className(_el$9, _p$._v$7 = _v$7);
|
|
@@ -14773,6 +14761,22 @@ var init_Devtools = __esm({
|
|
|
14773
14761
|
box-sizing: border-box;
|
|
14774
14762
|
text-transform: none;
|
|
14775
14763
|
}
|
|
14764
|
+
|
|
14765
|
+
& *::-webkit-scrollbar {
|
|
14766
|
+
width: 7px;
|
|
14767
|
+
}
|
|
14768
|
+
|
|
14769
|
+
& *::-webkit-scrollbar-track {
|
|
14770
|
+
background: transparent;
|
|
14771
|
+
}
|
|
14772
|
+
|
|
14773
|
+
& *::-webkit-scrollbar-thumb {
|
|
14774
|
+
background: ${t2(colors.gray[300], colors.darkGray[200])};
|
|
14775
|
+
}
|
|
14776
|
+
|
|
14777
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
14778
|
+
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
14779
|
+
}
|
|
14776
14780
|
`,
|
|
14777
14781
|
"devtoolsBtn-position-bottom-right": u`
|
|
14778
14782
|
bottom: 12px;
|
package/build/index.js
CHANGED
|
@@ -65,7 +65,7 @@ var TanstackQueryDevtools = class {
|
|
|
65
65
|
if (this.#Component) {
|
|
66
66
|
Devtools = this.#Component;
|
|
67
67
|
} else {
|
|
68
|
-
Devtools = lazy(() => import('./Devtools/
|
|
68
|
+
Devtools = lazy(() => import('./Devtools/47NOZC6N.js'));
|
|
69
69
|
this.#Component = Devtools;
|
|
70
70
|
}
|
|
71
71
|
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/QLPNQ352.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.
|
|
3
|
+
"version": "5.14.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.12.4",
|
|
51
51
|
"tsup-preset-solid": "^2.1.0",
|
|
52
52
|
"vite-plugin-solid": "^2.7.2",
|
|
53
|
-
"@tanstack/query-core": "5.
|
|
53
|
+
"@tanstack/query-core": "5.14.2"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"clean": "rimraf ./build && rimraf ./coverage",
|
package/src/Devtools.tsx
CHANGED
|
@@ -57,7 +57,6 @@ import {
|
|
|
57
57
|
useQueryDevtoolsContext,
|
|
58
58
|
useTheme,
|
|
59
59
|
} from './Context'
|
|
60
|
-
import { loadFonts } from './fonts'
|
|
61
60
|
import type {
|
|
62
61
|
DevToolsErrorType,
|
|
63
62
|
DevtoolsButtonPosition,
|
|
@@ -138,8 +137,6 @@ const DevtoolsComponent: DevtoolsComponentType = (props) => {
|
|
|
138
137
|
export default DevtoolsComponent
|
|
139
138
|
|
|
140
139
|
const Devtools: Component<DevtoolsPanelProps> = (props) => {
|
|
141
|
-
loadFonts()
|
|
142
|
-
|
|
143
140
|
const theme = useTheme()
|
|
144
141
|
const styles = createMemo(() => {
|
|
145
142
|
return theme() === 'dark' ? darkStyles : lightStyles
|
|
@@ -601,6 +598,12 @@ const ContentView: Component<DevtoolsPanelProps> = (props) => {
|
|
|
601
598
|
height: 50%;
|
|
602
599
|
max-height: 50%;
|
|
603
600
|
`,
|
|
601
|
+
panelWidth() < secondBreakpoint &&
|
|
602
|
+
!(selectedQueryHash() || selectedMutationId()) &&
|
|
603
|
+
css`
|
|
604
|
+
height: 100%;
|
|
605
|
+
max-height: 100%;
|
|
606
|
+
`,
|
|
604
607
|
'tsqd-queries-container',
|
|
605
608
|
)}
|
|
606
609
|
ref={containerRef}
|
|
@@ -2233,6 +2236,22 @@ const stylesFactory = (theme: 'light' | 'dark') => {
|
|
|
2233
2236
|
box-sizing: border-box;
|
|
2234
2237
|
text-transform: none;
|
|
2235
2238
|
}
|
|
2239
|
+
|
|
2240
|
+
& *::-webkit-scrollbar {
|
|
2241
|
+
width: 7px;
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
& *::-webkit-scrollbar-track {
|
|
2245
|
+
background: transparent;
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
& *::-webkit-scrollbar-thumb {
|
|
2249
|
+
background: ${t(colors.gray[300], colors.darkGray[200])};
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
2253
|
+
background: ${t(colors.gray[400], colors.darkGray[300])};
|
|
2254
|
+
}
|
|
2236
2255
|
`,
|
|
2237
2256
|
'devtoolsBtn-position-bottom-right': css`
|
|
2238
2257
|
bottom: 12px;
|
package/src/fonts.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export const loadFonts = () => {
|
|
2
|
-
const link = document.createElement('link')
|
|
3
|
-
link.href =
|
|
4
|
-
'https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto&display=swap'
|
|
5
|
-
link.rel = 'stylesheet'
|
|
6
|
-
document.head.appendChild(link)
|
|
7
|
-
}
|