@tanstack/query-devtools 5.0.0-beta.34 → 5.0.0-beta.36
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/{R2CQWG4T.jsx → DWELN6EN.jsx} +47 -3
- package/build/Devtools/{DK6B4TZH.jsx → FASZSC6H.jsx} +47 -3
- package/build/Devtools/{26QOLXHC.js → OXAQM7EL.js} +200 -179
- package/build/Devtools/{HUV7AL53.js → PCOU65Y2.js} +200 -179
- package/build/dev.cjs +203 -182
- package/build/dev.js +1 -1
- package/build/dev.jsx +1 -1
- package/build/index.cjs +203 -182
- package/build/index.js +1 -1
- package/build/index.jsx +1 -1
- package/package.json +2 -2
- package/src/Devtools.tsx +35 -3
- package/src/icons/index.tsx +20 -0
|
@@ -2705,6 +2705,21 @@ function Search() {
|
|
|
2705
2705
|
stroke-linejoin="round"
|
|
2706
2706
|
/></svg>;
|
|
2707
2707
|
}
|
|
2708
|
+
function Trash() {
|
|
2709
|
+
return <svg
|
|
2710
|
+
width="24"
|
|
2711
|
+
height="24"
|
|
2712
|
+
viewBox="0 0 24 24"
|
|
2713
|
+
fill="none"
|
|
2714
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2715
|
+
><path
|
|
2716
|
+
d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"
|
|
2717
|
+
stroke="#98A2B3"
|
|
2718
|
+
stroke-width="1.66667"
|
|
2719
|
+
stroke-linecap="round"
|
|
2720
|
+
stroke-linejoin="round"
|
|
2721
|
+
/></svg>;
|
|
2722
|
+
}
|
|
2708
2723
|
function ChevronDown() {
|
|
2709
2724
|
return <svg
|
|
2710
2725
|
width="10"
|
|
@@ -4176,6 +4191,17 @@ var DevtoolsPanel = (props) => {
|
|
|
4176
4191
|
</button>
|
|
4177
4192
|
</div>
|
|
4178
4193
|
<div class={clsx(styles.actionsContainer, "tsqd-actions-container")}>
|
|
4194
|
+
<button
|
|
4195
|
+
onClick={() => {
|
|
4196
|
+
cache().clear();
|
|
4197
|
+
}}
|
|
4198
|
+
class={clsx(
|
|
4199
|
+
styles.actionsBtn,
|
|
4200
|
+
"tsqd-actions-btn",
|
|
4201
|
+
"tsqd-action-clear-cache"
|
|
4202
|
+
)}
|
|
4203
|
+
aria-label="Clear query cache"
|
|
4204
|
+
><Trash /></button>
|
|
4179
4205
|
<button
|
|
4180
4206
|
onClick={() => {
|
|
4181
4207
|
if (offline()) {
|
|
@@ -4595,6 +4621,27 @@ var QueryDetails = () => {
|
|
|
4595
4621
|
/>
|
|
4596
4622
|
{"Reset"}
|
|
4597
4623
|
</button>
|
|
4624
|
+
<button
|
|
4625
|
+
class={clsx(
|
|
4626
|
+
u`
|
|
4627
|
+
color: ${tokens.colors.pink[400]};
|
|
4628
|
+
`,
|
|
4629
|
+
"tsqd-query-details-actions-btn",
|
|
4630
|
+
"tsqd-query-details-action-remove"
|
|
4631
|
+
)}
|
|
4632
|
+
onClick={() => {
|
|
4633
|
+
queryClient.removeQueries(activeQuery());
|
|
4634
|
+
setSelectedQueryHash(null);
|
|
4635
|
+
}}
|
|
4636
|
+
disabled={statusLabel() === "fetching"}
|
|
4637
|
+
>
|
|
4638
|
+
<span
|
|
4639
|
+
class={u`
|
|
4640
|
+
background-color: ${tokens.colors.pink[400]};
|
|
4641
|
+
`}
|
|
4642
|
+
/>
|
|
4643
|
+
{"Remove"}
|
|
4644
|
+
</button>
|
|
4598
4645
|
<button
|
|
4599
4646
|
class={clsx(
|
|
4600
4647
|
u`
|
|
@@ -5085,9 +5132,6 @@ var getStyles2 = () => {
|
|
|
5085
5132
|
outline-offset: 2px;
|
|
5086
5133
|
outline: 2px solid ${colors.blue[800]};
|
|
5087
5134
|
}
|
|
5088
|
-
& span:nth-child(2) {
|
|
5089
|
-
color: ${colors.gray[300]}${alpha[80]};
|
|
5090
|
-
}
|
|
5091
5135
|
`,
|
|
5092
5136
|
statusTooltip: u`
|
|
5093
5137
|
position: absolute;
|
|
@@ -2704,6 +2704,21 @@ function Search() {
|
|
|
2704
2704
|
stroke-linejoin="round"
|
|
2705
2705
|
/></svg>;
|
|
2706
2706
|
}
|
|
2707
|
+
function Trash() {
|
|
2708
|
+
return <svg
|
|
2709
|
+
width="24"
|
|
2710
|
+
height="24"
|
|
2711
|
+
viewBox="0 0 24 24"
|
|
2712
|
+
fill="none"
|
|
2713
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2714
|
+
><path
|
|
2715
|
+
d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"
|
|
2716
|
+
stroke="#98A2B3"
|
|
2717
|
+
stroke-width="1.66667"
|
|
2718
|
+
stroke-linecap="round"
|
|
2719
|
+
stroke-linejoin="round"
|
|
2720
|
+
/></svg>;
|
|
2721
|
+
}
|
|
2707
2722
|
function ChevronDown() {
|
|
2708
2723
|
return <svg
|
|
2709
2724
|
width="10"
|
|
@@ -4174,6 +4189,17 @@ var DevtoolsPanel = (props) => {
|
|
|
4174
4189
|
</button>
|
|
4175
4190
|
</div>
|
|
4176
4191
|
<div class={clsx(styles.actionsContainer, "tsqd-actions-container")}>
|
|
4192
|
+
<button
|
|
4193
|
+
onClick={() => {
|
|
4194
|
+
cache().clear();
|
|
4195
|
+
}}
|
|
4196
|
+
class={clsx(
|
|
4197
|
+
styles.actionsBtn,
|
|
4198
|
+
"tsqd-actions-btn",
|
|
4199
|
+
"tsqd-action-clear-cache"
|
|
4200
|
+
)}
|
|
4201
|
+
aria-label="Clear query cache"
|
|
4202
|
+
><Trash /></button>
|
|
4177
4203
|
<button
|
|
4178
4204
|
onClick={() => {
|
|
4179
4205
|
if (offline()) {
|
|
@@ -4593,6 +4619,27 @@ var QueryDetails = () => {
|
|
|
4593
4619
|
/>
|
|
4594
4620
|
{"Reset"}
|
|
4595
4621
|
</button>
|
|
4622
|
+
<button
|
|
4623
|
+
class={clsx(
|
|
4624
|
+
u`
|
|
4625
|
+
color: ${tokens.colors.pink[400]};
|
|
4626
|
+
`,
|
|
4627
|
+
"tsqd-query-details-actions-btn",
|
|
4628
|
+
"tsqd-query-details-action-remove"
|
|
4629
|
+
)}
|
|
4630
|
+
onClick={() => {
|
|
4631
|
+
queryClient.removeQueries(activeQuery());
|
|
4632
|
+
setSelectedQueryHash(null);
|
|
4633
|
+
}}
|
|
4634
|
+
disabled={statusLabel() === "fetching"}
|
|
4635
|
+
>
|
|
4636
|
+
<span
|
|
4637
|
+
class={u`
|
|
4638
|
+
background-color: ${tokens.colors.pink[400]};
|
|
4639
|
+
`}
|
|
4640
|
+
/>
|
|
4641
|
+
{"Remove"}
|
|
4642
|
+
</button>
|
|
4596
4643
|
<button
|
|
4597
4644
|
class={clsx(
|
|
4598
4645
|
u`
|
|
@@ -5083,9 +5130,6 @@ var getStyles2 = () => {
|
|
|
5083
5130
|
outline-offset: 2px;
|
|
5084
5131
|
outline: 2px solid ${colors.blue[800]};
|
|
5085
5132
|
}
|
|
5086
|
-
& span:nth-child(2) {
|
|
5087
|
-
color: ${colors.gray[300]}${alpha[80]};
|
|
5088
|
-
}
|
|
5089
5133
|
`,
|
|
5090
5134
|
statusTooltip: u`
|
|
5091
5135
|
position: absolute;
|