@tanstack/query-devtools 5.83.1 → 5.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/DevtoolsComponent/{HKROQVJD.js → EDEL3XIZ.js} +1 -1
- package/build/DevtoolsComponent/{JH472VU3.js → LNWAZHJI.js} +1 -1
- package/build/DevtoolsPanelComponent/{OPQFORGE.js → MWZ6AO7Z.js} +1 -1
- package/build/DevtoolsPanelComponent/{UT2DTSDK.js → RN252AT2.js} +1 -1
- package/build/chunk/{SNNOUPG2.js → YPM2AS64.js} +273 -202
- package/build/chunk/{BWXLFTZP.js → YTSEMULZ.js} +273 -202
- package/build/dev.cjs +290 -205
- package/build/dev.js +18 -4
- package/build/index.cjs +290 -205
- package/build/index.d.cts +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +18 -4
- package/package.json +1 -1
- package/src/Devtools.tsx +85 -2
- package/src/TanstackQueryDevtools.tsx +7 -0
- package/src/TanstackQueryDevtoolsPanel.tsx +7 -0
- package/src/contexts/QueryDevtoolsContext.ts +1 -0
package/build/dev.js
CHANGED
|
@@ -13,6 +13,7 @@ var TanstackQueryDevtools = class {
|
|
|
13
13
|
#position;
|
|
14
14
|
#initialIsOpen;
|
|
15
15
|
#errorTypes;
|
|
16
|
+
#hideDisabledQueries;
|
|
16
17
|
#Component;
|
|
17
18
|
#dispose;
|
|
18
19
|
constructor(config) {
|
|
@@ -26,7 +27,8 @@ var TanstackQueryDevtools = class {
|
|
|
26
27
|
initialIsOpen,
|
|
27
28
|
errorTypes,
|
|
28
29
|
styleNonce,
|
|
29
|
-
shadowDOMTarget
|
|
30
|
+
shadowDOMTarget,
|
|
31
|
+
hideDisabledQueries
|
|
30
32
|
} = config;
|
|
31
33
|
this.#client = createSignal(client);
|
|
32
34
|
this.#queryFlavor = queryFlavor;
|
|
@@ -38,6 +40,7 @@ var TanstackQueryDevtools = class {
|
|
|
38
40
|
this.#position = createSignal(position);
|
|
39
41
|
this.#initialIsOpen = createSignal(initialIsOpen);
|
|
40
42
|
this.#errorTypes = createSignal(errorTypes);
|
|
43
|
+
this.#hideDisabledQueries = createSignal(hideDisabledQueries);
|
|
41
44
|
}
|
|
42
45
|
setButtonPosition(position) {
|
|
43
46
|
this.#buttonPosition[1](position);
|
|
@@ -64,12 +67,13 @@ var TanstackQueryDevtools = class {
|
|
|
64
67
|
const [pos] = this.#position;
|
|
65
68
|
const [isOpen] = this.#initialIsOpen;
|
|
66
69
|
const [errors] = this.#errorTypes;
|
|
70
|
+
const [hideDisabledQueries] = this.#hideDisabledQueries;
|
|
67
71
|
const [queryClient] = this.#client;
|
|
68
72
|
let Devtools;
|
|
69
73
|
if (this.#Component) {
|
|
70
74
|
Devtools = this.#Component;
|
|
71
75
|
} else {
|
|
72
|
-
Devtools = lazy(() => import('./DevtoolsComponent/
|
|
76
|
+
Devtools = lazy(() => import('./DevtoolsComponent/EDEL3XIZ.js'));
|
|
73
77
|
this.#Component = Devtools;
|
|
74
78
|
}
|
|
75
79
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
@@ -101,6 +105,9 @@ var TanstackQueryDevtools = class {
|
|
|
101
105
|
},
|
|
102
106
|
get errorTypes() {
|
|
103
107
|
return errors();
|
|
108
|
+
},
|
|
109
|
+
get hideDisabledQueries() {
|
|
110
|
+
return hideDisabledQueries();
|
|
104
111
|
}
|
|
105
112
|
}));
|
|
106
113
|
}, el);
|
|
@@ -129,6 +136,7 @@ var TanstackQueryDevtoolsPanel = class {
|
|
|
129
136
|
#position;
|
|
130
137
|
#initialIsOpen;
|
|
131
138
|
#errorTypes;
|
|
139
|
+
#hideDisabledQueries;
|
|
132
140
|
#onClose;
|
|
133
141
|
#Component;
|
|
134
142
|
#dispose;
|
|
@@ -144,7 +152,8 @@ var TanstackQueryDevtoolsPanel = class {
|
|
|
144
152
|
errorTypes,
|
|
145
153
|
styleNonce,
|
|
146
154
|
shadowDOMTarget,
|
|
147
|
-
onClose
|
|
155
|
+
onClose,
|
|
156
|
+
hideDisabledQueries
|
|
148
157
|
} = config;
|
|
149
158
|
this.#client = createSignal(client);
|
|
150
159
|
this.#queryFlavor = queryFlavor;
|
|
@@ -156,6 +165,7 @@ var TanstackQueryDevtoolsPanel = class {
|
|
|
156
165
|
this.#position = createSignal(position);
|
|
157
166
|
this.#initialIsOpen = createSignal(initialIsOpen);
|
|
158
167
|
this.#errorTypes = createSignal(errorTypes);
|
|
168
|
+
this.#hideDisabledQueries = createSignal(hideDisabledQueries);
|
|
159
169
|
this.#onClose = createSignal(onClose);
|
|
160
170
|
}
|
|
161
171
|
setButtonPosition(position) {
|
|
@@ -186,13 +196,14 @@ var TanstackQueryDevtoolsPanel = class {
|
|
|
186
196
|
const [pos] = this.#position;
|
|
187
197
|
const [isOpen] = this.#initialIsOpen;
|
|
188
198
|
const [errors] = this.#errorTypes;
|
|
199
|
+
const [hideDisabledQueries] = this.#hideDisabledQueries;
|
|
189
200
|
const [queryClient] = this.#client;
|
|
190
201
|
const [onClose] = this.#onClose;
|
|
191
202
|
let Devtools;
|
|
192
203
|
if (this.#Component) {
|
|
193
204
|
Devtools = this.#Component;
|
|
194
205
|
} else {
|
|
195
|
-
Devtools = lazy(() => import('./DevtoolsPanelComponent/
|
|
206
|
+
Devtools = lazy(() => import('./DevtoolsPanelComponent/RN252AT2.js'));
|
|
196
207
|
this.#Component = Devtools;
|
|
197
208
|
}
|
|
198
209
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
@@ -225,6 +236,9 @@ var TanstackQueryDevtoolsPanel = class {
|
|
|
225
236
|
get errorTypes() {
|
|
226
237
|
return errors();
|
|
227
238
|
},
|
|
239
|
+
get hideDisabledQueries() {
|
|
240
|
+
return hideDisabledQueries();
|
|
241
|
+
},
|
|
228
242
|
get onClose() {
|
|
229
243
|
return onClose();
|
|
230
244
|
}
|