@tanstack/react-query-devtools 4.0.3 → 4.0.8
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/cjs/noop.js +24 -0
- package/build/cjs/noop.js.map +1 -0
- package/build/cjs/packages/react-query-devtools/src/devtools.js +3 -16
- package/build/cjs/packages/react-query-devtools/src/devtools.js.map +1 -1
- package/build/cjs/packages/react-query-devtools/src/index.js +8 -4
- package/build/cjs/packages/react-query-devtools/src/index.js.map +1 -1
- package/build/cjs/packages/react-query-devtools/src/utils.js +13 -0
- package/build/cjs/packages/react-query-devtools/src/utils.js.map +1 -1
- package/build/esm/index.js +23 -16
- package/build/esm/index.js.map +1 -1
- package/build/esm/noop.js +19 -0
- package/build/esm/noop.js.map +1 -0
- package/build/stats-html.html +1 -1
- package/build/stats.json +9 -387
- package/build/types/react-query-devtools/src/__tests__/utils.d.ts +1 -1
- package/build/types/react-query-devtools/src/devtools.d.ts +2 -3
- package/build/types/react-query-devtools/src/index.d.ts +3 -1
- package/build/types/react-query-devtools/src/utils.d.ts +1 -0
- package/build/umd/index.development.js +9 -1980
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +2 -19
- package/build/umd/index.production.js.map +1 -1
- package/package.json +11 -1
- package/src/__tests__/devtools.test.tsx +1 -1
- package/src/__tests__/utils.tsx +1 -1
- package/src/devtools.tsx +2 -24
- package/src/index.ts +15 -1
- package/src/utils.ts +21 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* react-query-devtools-noop
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) TanStack
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
function ReactQueryDevtools() {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
function ReactQueryDevtoolsPanel() {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { ReactQueryDevtools, ReactQueryDevtoolsPanel };
|
|
19
|
+
//# sourceMappingURL=noop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noop.js","sources":["../../src/noop.ts"],"sourcesContent":["export function ReactQueryDevtools() {\n return null\n}\n\nexport function ReactQueryDevtoolsPanel() {\n return null\n}\n"],"names":["ReactQueryDevtools","ReactQueryDevtoolsPanel"],"mappings":";;;;;;;;;;AAAO,SAASA,kBAAT,GAA8B;AACnC,EAAA,OAAO,IAAP,CAAA;AACD,CAAA;AAEM,SAASC,uBAAT,GAAmC;AACxC,EAAA,OAAO,IAAP,CAAA;AACD;;;;"}
|
package/build/stats-html.html
CHANGED
|
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
|
|
|
2669
2669
|
</script>
|
|
2670
2670
|
<script>
|
|
2671
2671
|
/*<!--*/
|
|
2672
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"
|
|
2672
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages/react-query-devtools/src/noop.ts","uid":"f3bc-245"}]}],"isRoot":true},"nodeParts":{"f3bc-245":{"renderedLength":114,"gzipLength":82,"brotliLength":0,"mainUid":"f3bc-244"}},"nodeMetas":{"f3bc-244":{"id":"/packages/react-query-devtools/src/noop.ts","moduleParts":{"index.production.js":"f3bc-245"},"imported":[],"importedBy":[],"isEntry":true}},"env":{"rollup":"2.76.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
2673
2673
|
|
|
2674
2674
|
const run = () => {
|
|
2675
2675
|
const width = window.innerWidth;
|
package/build/stats.json
CHANGED
|
@@ -7,53 +7,8 @@
|
|
|
7
7
|
"name": "index.production.js",
|
|
8
8
|
"children": [
|
|
9
9
|
{
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"name": "node_modules/@tanstack/match-sorter-utils/build/esm/index.js",
|
|
15
|
-
"uid": "f312-242"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "packages/react-query-devtools/src",
|
|
19
|
-
"children": [
|
|
20
|
-
{
|
|
21
|
-
"uid": "f312-244",
|
|
22
|
-
"name": "useLocalStorage.ts"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"uid": "f312-246",
|
|
26
|
-
"name": "theme.tsx"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"uid": "f312-248",
|
|
30
|
-
"name": "useMediaQuery.ts"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"uid": "f312-250",
|
|
34
|
-
"name": "utils.ts"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"uid": "f312-252",
|
|
38
|
-
"name": "styledComponents.ts"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"uid": "f312-254",
|
|
42
|
-
"name": "Explorer.tsx"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"uid": "f312-256",
|
|
46
|
-
"name": "Logo.tsx"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"uid": "f312-258",
|
|
50
|
-
"name": "devtools.tsx"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"uid": "f312-260",
|
|
54
|
-
"name": "index.ts"
|
|
55
|
-
}
|
|
56
|
-
]
|
|
10
|
+
"name": "packages/react-query-devtools/src/noop.ts",
|
|
11
|
+
"uid": "f3bc-247"
|
|
57
12
|
}
|
|
58
13
|
]
|
|
59
14
|
}
|
|
@@ -61,355 +16,22 @@
|
|
|
61
16
|
"isRoot": true
|
|
62
17
|
},
|
|
63
18
|
"nodeParts": {
|
|
64
|
-
"
|
|
65
|
-
"renderedLength":
|
|
66
|
-
"gzipLength":
|
|
67
|
-
"brotliLength": 0,
|
|
68
|
-
"mainUid": "f312-239"
|
|
69
|
-
},
|
|
70
|
-
"f312-242": {
|
|
71
|
-
"renderedLength": 15355,
|
|
72
|
-
"gzipLength": 4575,
|
|
73
|
-
"brotliLength": 0,
|
|
74
|
-
"mainUid": "f312-241"
|
|
75
|
-
},
|
|
76
|
-
"f312-244": {
|
|
77
|
-
"renderedLength": 1063,
|
|
78
|
-
"gzipLength": 411,
|
|
79
|
-
"brotliLength": 0,
|
|
80
|
-
"mainUid": "f312-243"
|
|
81
|
-
},
|
|
82
|
-
"f312-246": {
|
|
83
|
-
"renderedLength": 682,
|
|
84
|
-
"gzipLength": 351,
|
|
85
|
-
"brotliLength": 0,
|
|
86
|
-
"mainUid": "f312-245"
|
|
87
|
-
},
|
|
88
|
-
"f312-248": {
|
|
89
|
-
"renderedLength": 821,
|
|
90
|
-
"gzipLength": 363,
|
|
91
|
-
"brotliLength": 0,
|
|
92
|
-
"mainUid": "f312-247"
|
|
93
|
-
},
|
|
94
|
-
"f312-250": {
|
|
95
|
-
"renderedLength": 2045,
|
|
96
|
-
"gzipLength": 831,
|
|
97
|
-
"brotliLength": 0,
|
|
98
|
-
"mainUid": "f312-249"
|
|
99
|
-
},
|
|
100
|
-
"f312-252": {
|
|
101
|
-
"renderedLength": 2420,
|
|
102
|
-
"gzipLength": 864,
|
|
103
|
-
"brotliLength": 0,
|
|
104
|
-
"mainUid": "f312-251"
|
|
105
|
-
},
|
|
106
|
-
"f312-254": {
|
|
107
|
-
"renderedLength": 5578,
|
|
108
|
-
"gzipLength": 1707,
|
|
19
|
+
"f3bc-247": {
|
|
20
|
+
"renderedLength": 114,
|
|
21
|
+
"gzipLength": 82,
|
|
109
22
|
"brotliLength": 0,
|
|
110
|
-
"mainUid": "
|
|
111
|
-
},
|
|
112
|
-
"f312-256": {
|
|
113
|
-
"renderedLength": 9512,
|
|
114
|
-
"gzipLength": 4254,
|
|
115
|
-
"brotliLength": 0,
|
|
116
|
-
"mainUid": "f312-255"
|
|
117
|
-
},
|
|
118
|
-
"f312-258": {
|
|
119
|
-
"renderedLength": 28952,
|
|
120
|
-
"gzipLength": 5568,
|
|
121
|
-
"brotliLength": 0,
|
|
122
|
-
"mainUid": "f312-257"
|
|
123
|
-
},
|
|
124
|
-
"f312-260": {
|
|
125
|
-
"renderedLength": 0,
|
|
126
|
-
"gzipLength": 0,
|
|
127
|
-
"brotliLength": 0,
|
|
128
|
-
"mainUid": "f312-259"
|
|
23
|
+
"mainUid": "f3bc-246"
|
|
129
24
|
}
|
|
130
25
|
},
|
|
131
26
|
"nodeMetas": {
|
|
132
|
-
"
|
|
133
|
-
"id": "
|
|
27
|
+
"f3bc-246": {
|
|
28
|
+
"id": "/packages/react-query-devtools/src/noop.ts",
|
|
134
29
|
"moduleParts": {
|
|
135
|
-
"index.production.js": "
|
|
30
|
+
"index.production.js": "f3bc-247"
|
|
136
31
|
},
|
|
137
32
|
"imported": [],
|
|
138
|
-
"importedBy": [
|
|
139
|
-
{
|
|
140
|
-
"uid": "f312-257"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"uid": "f312-245"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"uid": "f312-253"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"uid": "f312-255"
|
|
150
|
-
}
|
|
151
|
-
]
|
|
152
|
-
},
|
|
153
|
-
"f312-241": {
|
|
154
|
-
"id": "/node_modules/@tanstack/match-sorter-utils/build/esm/index.js",
|
|
155
|
-
"moduleParts": {
|
|
156
|
-
"index.production.js": "f312-242"
|
|
157
|
-
},
|
|
158
|
-
"imported": [],
|
|
159
|
-
"importedBy": [
|
|
160
|
-
{
|
|
161
|
-
"uid": "f312-257"
|
|
162
|
-
}
|
|
163
|
-
]
|
|
164
|
-
},
|
|
165
|
-
"f312-243": {
|
|
166
|
-
"id": "/packages/react-query-devtools/src/useLocalStorage.ts",
|
|
167
|
-
"moduleParts": {
|
|
168
|
-
"index.production.js": "f312-244"
|
|
169
|
-
},
|
|
170
|
-
"imported": [
|
|
171
|
-
{
|
|
172
|
-
"uid": "f312-261"
|
|
173
|
-
}
|
|
174
|
-
],
|
|
175
|
-
"importedBy": [
|
|
176
|
-
{
|
|
177
|
-
"uid": "f312-257"
|
|
178
|
-
}
|
|
179
|
-
]
|
|
180
|
-
},
|
|
181
|
-
"f312-245": {
|
|
182
|
-
"id": "/packages/react-query-devtools/src/theme.tsx",
|
|
183
|
-
"moduleParts": {
|
|
184
|
-
"index.production.js": "f312-246"
|
|
185
|
-
},
|
|
186
|
-
"imported": [
|
|
187
|
-
{
|
|
188
|
-
"uid": "f312-239"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"uid": "f312-261"
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
"importedBy": [
|
|
195
|
-
{
|
|
196
|
-
"uid": "f312-257"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"uid": "f312-249"
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
},
|
|
203
|
-
"f312-247": {
|
|
204
|
-
"id": "/packages/react-query-devtools/src/useMediaQuery.ts",
|
|
205
|
-
"moduleParts": {
|
|
206
|
-
"index.production.js": "f312-248"
|
|
207
|
-
},
|
|
208
|
-
"imported": [
|
|
209
|
-
{
|
|
210
|
-
"uid": "f312-261"
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"importedBy": [
|
|
214
|
-
{
|
|
215
|
-
"uid": "f312-249"
|
|
216
|
-
}
|
|
217
|
-
]
|
|
218
|
-
},
|
|
219
|
-
"f312-249": {
|
|
220
|
-
"id": "/packages/react-query-devtools/src/utils.ts",
|
|
221
|
-
"moduleParts": {
|
|
222
|
-
"index.production.js": "f312-250"
|
|
223
|
-
},
|
|
224
|
-
"imported": [
|
|
225
|
-
{
|
|
226
|
-
"uid": "f312-261"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"uid": "f312-245"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"uid": "f312-247"
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
|
-
"importedBy": [
|
|
236
|
-
{
|
|
237
|
-
"uid": "f312-257"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"uid": "f312-251"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"uid": "f312-253"
|
|
244
|
-
}
|
|
245
|
-
]
|
|
246
|
-
},
|
|
247
|
-
"f312-251": {
|
|
248
|
-
"id": "/packages/react-query-devtools/src/styledComponents.ts",
|
|
249
|
-
"moduleParts": {
|
|
250
|
-
"index.production.js": "f312-252"
|
|
251
|
-
},
|
|
252
|
-
"imported": [
|
|
253
|
-
{
|
|
254
|
-
"uid": "f312-249"
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
|
-
"importedBy": [
|
|
258
|
-
{
|
|
259
|
-
"uid": "f312-257"
|
|
260
|
-
}
|
|
261
|
-
]
|
|
262
|
-
},
|
|
263
|
-
"f312-253": {
|
|
264
|
-
"id": "/packages/react-query-devtools/src/Explorer.tsx",
|
|
265
|
-
"moduleParts": {
|
|
266
|
-
"index.production.js": "f312-254"
|
|
267
|
-
},
|
|
268
|
-
"imported": [
|
|
269
|
-
{
|
|
270
|
-
"uid": "f312-239"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"uid": "f312-261"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"uid": "f312-249"
|
|
277
|
-
}
|
|
278
|
-
],
|
|
279
|
-
"importedBy": [
|
|
280
|
-
{
|
|
281
|
-
"uid": "f312-257"
|
|
282
|
-
}
|
|
283
|
-
]
|
|
284
|
-
},
|
|
285
|
-
"f312-255": {
|
|
286
|
-
"id": "/packages/react-query-devtools/src/Logo.tsx",
|
|
287
|
-
"moduleParts": {
|
|
288
|
-
"index.production.js": "f312-256"
|
|
289
|
-
},
|
|
290
|
-
"imported": [
|
|
291
|
-
{
|
|
292
|
-
"uid": "f312-239"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"uid": "f312-261"
|
|
296
|
-
}
|
|
297
|
-
],
|
|
298
|
-
"importedBy": [
|
|
299
|
-
{
|
|
300
|
-
"uid": "f312-257"
|
|
301
|
-
}
|
|
302
|
-
]
|
|
303
|
-
},
|
|
304
|
-
"f312-257": {
|
|
305
|
-
"id": "/packages/react-query-devtools/src/devtools.tsx",
|
|
306
|
-
"moduleParts": {
|
|
307
|
-
"index.production.js": "f312-258"
|
|
308
|
-
},
|
|
309
|
-
"imported": [
|
|
310
|
-
{
|
|
311
|
-
"uid": "f312-239"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"uid": "f312-261"
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
"uid": "f312-262"
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"uid": "f312-263"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"uid": "f312-241"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
"uid": "f312-243"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"uid": "f312-249"
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
"uid": "f312-251"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"uid": "f312-245"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"uid": "f312-253"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"uid": "f312-255"
|
|
342
|
-
}
|
|
343
|
-
],
|
|
344
|
-
"importedBy": [
|
|
345
|
-
{
|
|
346
|
-
"uid": "f312-259"
|
|
347
|
-
}
|
|
348
|
-
]
|
|
349
|
-
},
|
|
350
|
-
"f312-259": {
|
|
351
|
-
"id": "/packages/react-query-devtools/src/index.ts",
|
|
352
|
-
"moduleParts": {
|
|
353
|
-
"index.production.js": "f312-260"
|
|
354
|
-
},
|
|
355
|
-
"imported": [
|
|
356
|
-
{
|
|
357
|
-
"uid": "f312-257"
|
|
358
|
-
}
|
|
359
|
-
],
|
|
360
33
|
"importedBy": [],
|
|
361
34
|
"isEntry": true
|
|
362
|
-
},
|
|
363
|
-
"f312-261": {
|
|
364
|
-
"id": "react",
|
|
365
|
-
"moduleParts": {},
|
|
366
|
-
"imported": [],
|
|
367
|
-
"importedBy": [
|
|
368
|
-
{
|
|
369
|
-
"uid": "f312-257"
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
"uid": "f312-243"
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
"uid": "f312-249"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"uid": "f312-245"
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"uid": "f312-253"
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
"uid": "f312-255"
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
"uid": "f312-247"
|
|
388
|
-
}
|
|
389
|
-
],
|
|
390
|
-
"isExternal": true
|
|
391
|
-
},
|
|
392
|
-
"f312-262": {
|
|
393
|
-
"id": "use-sync-external-store/shim",
|
|
394
|
-
"moduleParts": {},
|
|
395
|
-
"imported": [],
|
|
396
|
-
"importedBy": [
|
|
397
|
-
{
|
|
398
|
-
"uid": "f312-257"
|
|
399
|
-
}
|
|
400
|
-
],
|
|
401
|
-
"isExternal": true
|
|
402
|
-
},
|
|
403
|
-
"f312-263": {
|
|
404
|
-
"id": "@tanstack/react-query",
|
|
405
|
-
"moduleParts": {},
|
|
406
|
-
"imported": [],
|
|
407
|
-
"importedBy": [
|
|
408
|
-
{
|
|
409
|
-
"uid": "f312-257"
|
|
410
|
-
}
|
|
411
|
-
],
|
|
412
|
-
"isExternal": true
|
|
413
35
|
}
|
|
414
36
|
},
|
|
415
37
|
"env": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MatcherFunction } from '@testing-library/dom/types/matches';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { ReactQueryDevtools } from '
|
|
4
|
+
import { ReactQueryDevtools } from '../devtools';
|
|
5
5
|
import { QueryClient, QueryCache } from '@tanstack/react-query';
|
|
6
6
|
export declare function renderWithClient(client: QueryClient, ui: React.ReactElement, devtoolsOptions?: Parameters<typeof ReactQueryDevtools>[number]): ReturnType<typeof render>;
|
|
7
7
|
export declare function sleep(timeout: number): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface DevtoolsOptions extends ContextOptions {
|
|
2
|
+
import { ContextOptions } from '@tanstack/react-query';
|
|
3
|
+
export interface DevtoolsOptions extends ContextOptions {
|
|
4
4
|
/**
|
|
5
5
|
* Set this true if you want the dev tools to default to being open
|
|
6
6
|
*/
|
|
@@ -60,6 +60,5 @@ interface DevtoolsPanelOptions extends ContextOptions {
|
|
|
60
60
|
handleDragStart: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
61
61
|
}
|
|
62
62
|
export declare function ReactQueryDevtools({ initialIsOpen, panelProps, closeButtonProps, toggleButtonProps, position, containerElement: Container, context, styleNonce, }: DevtoolsOptions): React.ReactElement | null;
|
|
63
|
-
export declare const sortFns: Record<string, (a: Query, b: Query) => number>;
|
|
64
63
|
export declare const ReactQueryDevtoolsPanel: React.ForwardRefExoticComponent<DevtoolsPanelOptions & React.RefAttributes<HTMLDivElement>>;
|
|
65
64
|
export {};
|
|
@@ -18,4 +18,5 @@ export declare function useIsMounted(): () => boolean;
|
|
|
18
18
|
* @param {unknown} value Value to be stringified
|
|
19
19
|
*/
|
|
20
20
|
export declare const displayValue: (value: unknown) => string;
|
|
21
|
+
export declare const sortFns: Record<string, (a: Query, b: Query) => number>;
|
|
21
22
|
export {};
|