@tanstack/react-query 4.0.11-beta.1 → 4.2.1

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.
Files changed (103) hide show
  1. package/build/cjs/query-core/build/esm/index.js +3125 -0
  2. package/build/cjs/query-core/build/esm/index.js.map +1 -0
  3. package/build/cjs/react-query/src/Hydrate.js +66 -0
  4. package/build/cjs/react-query/src/Hydrate.js.map +1 -0
  5. package/build/cjs/react-query/src/QueryClientProvider.js +96 -0
  6. package/build/cjs/react-query/src/QueryClientProvider.js.map +1 -0
  7. package/build/cjs/react-query/src/QueryErrorResetBoundary.js +67 -0
  8. package/build/cjs/react-query/src/QueryErrorResetBoundary.js.map +1 -0
  9. package/build/cjs/react-query/src/index.js +64 -0
  10. package/build/cjs/react-query/src/index.js.map +1 -0
  11. package/build/cjs/react-query/src/isRestoring.js +43 -0
  12. package/build/cjs/react-query/src/isRestoring.js.map +1 -0
  13. package/build/cjs/react-query/src/useBaseQuery.js +117 -0
  14. package/build/cjs/react-query/src/useBaseQuery.js.map +1 -0
  15. package/build/cjs/react-query/src/useInfiniteQuery.js +24 -0
  16. package/build/cjs/react-query/src/useInfiniteQuery.js.map +1 -0
  17. package/build/cjs/react-query/src/useIsFetching.js +50 -0
  18. package/build/cjs/react-query/src/useIsFetching.js.map +1 -0
  19. package/build/cjs/react-query/src/useIsMutating.js +50 -0
  20. package/build/cjs/react-query/src/useIsMutating.js.map +1 -0
  21. package/build/cjs/react-query/src/useMutation.js +68 -0
  22. package/build/cjs/react-query/src/useMutation.js.map +1 -0
  23. package/build/cjs/react-query/src/useQueries.js +71 -0
  24. package/build/cjs/react-query/src/useQueries.js.map +1 -0
  25. package/build/cjs/react-query/src/useQuery.js +24 -0
  26. package/build/cjs/react-query/src/useQuery.js.map +1 -0
  27. package/build/cjs/react-query/src/utils.js +25 -0
  28. package/build/cjs/react-query/src/utils.js.map +1 -0
  29. package/build/esm/index.js +3383 -0
  30. package/build/esm/index.js.map +1 -0
  31. package/build/stats-html.html +2689 -0
  32. package/build/stats.json +666 -0
  33. package/build/types/packages/query-core/src/focusManager.d.ts +16 -0
  34. package/build/types/packages/query-core/src/hydration.d.ts +34 -0
  35. package/build/types/packages/query-core/src/index.d.ts +20 -0
  36. package/build/types/packages/query-core/src/infiniteQueryBehavior.d.ts +15 -0
  37. package/build/types/packages/query-core/src/infiniteQueryObserver.d.ts +18 -0
  38. package/build/types/packages/query-core/src/logger.d.ts +8 -0
  39. package/build/types/packages/query-core/src/mutation.d.ts +70 -0
  40. package/build/types/packages/query-core/src/mutationCache.d.ts +57 -0
  41. package/build/types/packages/query-core/src/mutationObserver.d.ts +23 -0
  42. package/build/types/packages/query-core/src/notifyManager.d.ts +18 -0
  43. package/build/types/packages/query-core/src/onlineManager.d.ts +16 -0
  44. package/build/types/packages/query-core/src/queriesObserver.d.ts +23 -0
  45. package/build/types/packages/query-core/src/query.d.ts +119 -0
  46. package/build/types/packages/query-core/src/queryCache.d.ts +64 -0
  47. package/build/types/packages/query-core/src/queryClient.d.ts +65 -0
  48. package/build/types/packages/query-core/src/queryObserver.d.ts +61 -0
  49. package/build/types/packages/query-core/src/removable.d.ts +9 -0
  50. package/build/types/packages/query-core/src/retryer.d.ts +33 -0
  51. package/build/types/packages/query-core/src/subscribable.d.ts +10 -0
  52. package/build/types/packages/query-core/src/types.d.ts +419 -0
  53. package/build/types/packages/query-core/src/utils.d.ts +99 -0
  54. package/build/{lib → types/packages/react-query/src}/Hydrate.d.ts +0 -0
  55. package/build/{lib → types/packages/react-query/src}/QueryClientProvider.d.ts +0 -0
  56. package/build/{lib → types/packages/react-query/src}/QueryErrorResetBoundary.d.ts +0 -0
  57. package/build/{lib/setBatchUpdatesFn.d.ts → types/packages/react-query/src/__tests__/Hydrate.test.d.ts} +0 -0
  58. package/build/types/packages/react-query/src/__tests__/QueryClientProvider.test.d.ts +1 -0
  59. package/build/types/packages/react-query/src/__tests__/QueryResetErrorBoundary.test.d.ts +6 -0
  60. package/build/types/packages/react-query/src/__tests__/ssr-hydration.test.d.ts +1 -0
  61. package/build/types/packages/react-query/src/__tests__/ssr.test.d.ts +4 -0
  62. package/build/types/packages/react-query/src/__tests__/suspense.test.d.ts +1 -0
  63. package/build/types/packages/react-query/src/__tests__/useInfiniteQuery.test.d.ts +1 -0
  64. package/build/types/packages/react-query/src/__tests__/useIsFetching.test.d.ts +1 -0
  65. package/build/types/packages/react-query/src/__tests__/useIsMutating.test.d.ts +1 -0
  66. package/build/types/packages/react-query/src/__tests__/useMutation.test.d.ts +1 -0
  67. package/build/types/packages/react-query/src/__tests__/useQueries.test.d.ts +1 -0
  68. package/build/types/packages/react-query/src/__tests__/useQuery.test.d.ts +1 -0
  69. package/build/types/packages/react-query/src/__tests__/useQuery.types.test.d.ts +2 -0
  70. package/build/types/packages/react-query/src/__tests__/utils.d.ts +8 -0
  71. package/build/{lib → types/packages/react-query/src}/index.d.ts +0 -0
  72. package/build/{lib → types/packages/react-query/src}/isRestoring.d.ts +0 -0
  73. package/build/{lib → types/packages/react-query/src}/reactBatchedUpdates.d.ts +0 -0
  74. package/build/{lib → types/packages/react-query/src}/reactBatchedUpdates.native.d.ts +0 -0
  75. package/build/types/packages/react-query/src/setBatchUpdatesFn.d.ts +1 -0
  76. package/build/{lib → types/packages/react-query/src}/types.d.ts +0 -0
  77. package/build/{lib → types/packages/react-query/src}/useBaseQuery.d.ts +0 -0
  78. package/build/{lib → types/packages/react-query/src}/useInfiniteQuery.d.ts +0 -0
  79. package/build/{lib → types/packages/react-query/src}/useIsFetching.d.ts +0 -0
  80. package/build/{lib → types/packages/react-query/src}/useIsMutating.d.ts +0 -0
  81. package/build/{lib → types/packages/react-query/src}/useMutation.d.ts +0 -0
  82. package/build/{lib → types/packages/react-query/src}/useQueries.d.ts +0 -0
  83. package/build/{lib → types/packages/react-query/src}/useQuery.d.ts +0 -0
  84. package/build/{lib → types/packages/react-query/src}/utils.d.ts +0 -0
  85. package/build/types/tests/utils.d.ts +24 -0
  86. package/build/umd/index.development.js +3045 -30710
  87. package/build/umd/index.development.js.map +1 -1
  88. package/build/umd/index.production.js +7 -6
  89. package/build/umd/index.production.js.map +1 -1
  90. package/package.json +14 -18
  91. package/src/useBaseQuery.ts +1 -1
  92. package/src/useIsFetching.ts +1 -1
  93. package/src/useIsMutating.ts +1 -1
  94. package/src/useMutation.ts +1 -1
  95. package/src/useQueries.ts +1 -1
  96. package/build/lib/index.js +0 -31527
  97. package/build/lib/index.js.map +0 -1
  98. package/build/lib/index.mjs +0 -31482
  99. package/build/lib/index.mjs.map +0 -1
  100. package/build/lib/useSyncExternalStore.d.ts +0 -1
  101. package/build/lib/useSyncExternalStore.native.d.ts +0 -1
  102. package/src/useSyncExternalStore.native.ts +0 -3
  103. package/src/useSyncExternalStore.ts +0 -2
@@ -0,0 +1,666 @@
1
+ {
2
+ "version": 2,
3
+ "tree": {
4
+ "name": "root",
5
+ "children": [
6
+ {
7
+ "name": "index.production.js",
8
+ "children": [
9
+ {
10
+ "name": "packages",
11
+ "children": [
12
+ {
13
+ "name": "query-core/build/esm/index.js",
14
+ "uid": "0a90-135"
15
+ },
16
+ {
17
+ "name": "react-query/src",
18
+ "children": [
19
+ {
20
+ "uid": "0a90-137",
21
+ "name": "QueryClientProvider.tsx"
22
+ },
23
+ {
24
+ "uid": "0a90-139",
25
+ "name": "isRestoring.tsx"
26
+ },
27
+ {
28
+ "uid": "0a90-141",
29
+ "name": "useQueries.ts"
30
+ },
31
+ {
32
+ "uid": "0a90-143",
33
+ "name": "QueryErrorResetBoundary.tsx"
34
+ },
35
+ {
36
+ "uid": "0a90-145",
37
+ "name": "utils.ts"
38
+ },
39
+ {
40
+ "uid": "0a90-147",
41
+ "name": "useBaseQuery.ts"
42
+ },
43
+ {
44
+ "uid": "0a90-149",
45
+ "name": "useQuery.ts"
46
+ },
47
+ {
48
+ "uid": "0a90-151",
49
+ "name": "Hydrate.tsx"
50
+ },
51
+ {
52
+ "uid": "0a90-153",
53
+ "name": "useIsFetching.ts"
54
+ },
55
+ {
56
+ "uid": "0a90-155",
57
+ "name": "useIsMutating.ts"
58
+ },
59
+ {
60
+ "uid": "0a90-157",
61
+ "name": "useMutation.ts"
62
+ },
63
+ {
64
+ "uid": "0a90-159",
65
+ "name": "useInfiniteQuery.ts"
66
+ },
67
+ {
68
+ "uid": "0a90-161",
69
+ "name": "index.ts"
70
+ }
71
+ ]
72
+ }
73
+ ]
74
+ }
75
+ ]
76
+ }
77
+ ],
78
+ "isRoot": true
79
+ },
80
+ "nodeParts": {
81
+ "0a90-135": {
82
+ "renderedLength": 90852,
83
+ "gzipLength": 17206,
84
+ "brotliLength": 0,
85
+ "mainUid": "0a90-134"
86
+ },
87
+ "0a90-137": {
88
+ "renderedLength": 1782,
89
+ "gzipLength": 630,
90
+ "brotliLength": 0,
91
+ "mainUid": "0a90-136"
92
+ },
93
+ "0a90-139": {
94
+ "renderedLength": 219,
95
+ "gzipLength": 141,
96
+ "brotliLength": 0,
97
+ "mainUid": "0a90-138"
98
+ },
99
+ "0a90-141": {
100
+ "renderedLength": 1446,
101
+ "gzipLength": 596,
102
+ "brotliLength": 0,
103
+ "mainUid": "0a90-140"
104
+ },
105
+ "0a90-143": {
106
+ "renderedLength": 792,
107
+ "gzipLength": 325,
108
+ "brotliLength": 0,
109
+ "mainUid": "0a90-142"
110
+ },
111
+ "0a90-145": {
112
+ "renderedLength": 283,
113
+ "gzipLength": 177,
114
+ "brotliLength": 0,
115
+ "mainUid": "0a90-144"
116
+ },
117
+ "0a90-147": {
118
+ "renderedLength": 3348,
119
+ "gzipLength": 1057,
120
+ "brotliLength": 0,
121
+ "mainUid": "0a90-146"
122
+ },
123
+ "0a90-149": {
124
+ "renderedLength": 158,
125
+ "gzipLength": 118,
126
+ "brotliLength": 0,
127
+ "mainUid": "0a90-148"
128
+ },
129
+ "0a90-151": {
130
+ "renderedLength": 760,
131
+ "gzipLength": 384,
132
+ "brotliLength": 0,
133
+ "mainUid": "0a90-150"
134
+ },
135
+ "0a90-153": {
136
+ "renderedLength": 491,
137
+ "gzipLength": 271,
138
+ "brotliLength": 0,
139
+ "mainUid": "0a90-152"
140
+ },
141
+ "0a90-155": {
142
+ "renderedLength": 511,
143
+ "gzipLength": 277,
144
+ "brotliLength": 0,
145
+ "mainUid": "0a90-154"
146
+ },
147
+ "0a90-157": {
148
+ "renderedLength": 1078,
149
+ "gzipLength": 480,
150
+ "brotliLength": 0,
151
+ "mainUid": "0a90-156"
152
+ },
153
+ "0a90-159": {
154
+ "renderedLength": 162,
155
+ "gzipLength": 124,
156
+ "brotliLength": 0,
157
+ "mainUid": "0a90-158"
158
+ },
159
+ "0a90-161": {
160
+ "renderedLength": 0,
161
+ "gzipLength": 0,
162
+ "brotliLength": 0,
163
+ "mainUid": "0a90-160"
164
+ }
165
+ },
166
+ "nodeMetas": {
167
+ "0a90-134": {
168
+ "id": "/packages/query-core/build/esm/index.js",
169
+ "moduleParts": {
170
+ "index.production.js": "0a90-135"
171
+ },
172
+ "imported": [],
173
+ "importedBy": [
174
+ {
175
+ "uid": "0a90-160"
176
+ },
177
+ {
178
+ "uid": "0a90-162"
179
+ },
180
+ {
181
+ "uid": "0a90-140"
182
+ },
183
+ {
184
+ "uid": "0a90-148"
185
+ },
186
+ {
187
+ "uid": "0a90-150"
188
+ },
189
+ {
190
+ "uid": "0a90-152"
191
+ },
192
+ {
193
+ "uid": "0a90-154"
194
+ },
195
+ {
196
+ "uid": "0a90-156"
197
+ },
198
+ {
199
+ "uid": "0a90-158"
200
+ },
201
+ {
202
+ "uid": "0a90-146"
203
+ }
204
+ ]
205
+ },
206
+ "0a90-136": {
207
+ "id": "/packages/react-query/src/QueryClientProvider.tsx",
208
+ "moduleParts": {
209
+ "index.production.js": "0a90-137"
210
+ },
211
+ "imported": [
212
+ {
213
+ "uid": "0a90-165"
214
+ }
215
+ ],
216
+ "importedBy": [
217
+ {
218
+ "uid": "0a90-160"
219
+ },
220
+ {
221
+ "uid": "0a90-140"
222
+ },
223
+ {
224
+ "uid": "0a90-150"
225
+ },
226
+ {
227
+ "uid": "0a90-152"
228
+ },
229
+ {
230
+ "uid": "0a90-154"
231
+ },
232
+ {
233
+ "uid": "0a90-156"
234
+ },
235
+ {
236
+ "uid": "0a90-146"
237
+ }
238
+ ]
239
+ },
240
+ "0a90-138": {
241
+ "id": "/packages/react-query/src/isRestoring.tsx",
242
+ "moduleParts": {
243
+ "index.production.js": "0a90-139"
244
+ },
245
+ "imported": [
246
+ {
247
+ "uid": "0a90-165"
248
+ }
249
+ ],
250
+ "importedBy": [
251
+ {
252
+ "uid": "0a90-160"
253
+ },
254
+ {
255
+ "uid": "0a90-140"
256
+ },
257
+ {
258
+ "uid": "0a90-146"
259
+ }
260
+ ]
261
+ },
262
+ "0a90-140": {
263
+ "id": "/packages/react-query/src/useQueries.ts",
264
+ "moduleParts": {
265
+ "index.production.js": "0a90-141"
266
+ },
267
+ "imported": [
268
+ {
269
+ "uid": "0a90-165"
270
+ },
271
+ {
272
+ "uid": "0a90-166"
273
+ },
274
+ {
275
+ "uid": "0a90-134"
276
+ },
277
+ {
278
+ "uid": "0a90-136"
279
+ },
280
+ {
281
+ "uid": "0a90-138"
282
+ }
283
+ ],
284
+ "importedBy": [
285
+ {
286
+ "uid": "0a90-160"
287
+ }
288
+ ]
289
+ },
290
+ "0a90-142": {
291
+ "id": "/packages/react-query/src/QueryErrorResetBoundary.tsx",
292
+ "moduleParts": {
293
+ "index.production.js": "0a90-143"
294
+ },
295
+ "imported": [
296
+ {
297
+ "uid": "0a90-165"
298
+ }
299
+ ],
300
+ "importedBy": [
301
+ {
302
+ "uid": "0a90-160"
303
+ },
304
+ {
305
+ "uid": "0a90-146"
306
+ }
307
+ ]
308
+ },
309
+ "0a90-144": {
310
+ "id": "/packages/react-query/src/utils.ts",
311
+ "moduleParts": {
312
+ "index.production.js": "0a90-145"
313
+ },
314
+ "imported": [],
315
+ "importedBy": [
316
+ {
317
+ "uid": "0a90-156"
318
+ },
319
+ {
320
+ "uid": "0a90-146"
321
+ }
322
+ ]
323
+ },
324
+ "0a90-146": {
325
+ "id": "/packages/react-query/src/useBaseQuery.ts",
326
+ "moduleParts": {
327
+ "index.production.js": "0a90-147"
328
+ },
329
+ "imported": [
330
+ {
331
+ "uid": "0a90-165"
332
+ },
333
+ {
334
+ "uid": "0a90-166"
335
+ },
336
+ {
337
+ "uid": "0a90-134"
338
+ },
339
+ {
340
+ "uid": "0a90-142"
341
+ },
342
+ {
343
+ "uid": "0a90-136"
344
+ },
345
+ {
346
+ "uid": "0a90-144"
347
+ },
348
+ {
349
+ "uid": "0a90-138"
350
+ }
351
+ ],
352
+ "importedBy": [
353
+ {
354
+ "uid": "0a90-148"
355
+ },
356
+ {
357
+ "uid": "0a90-158"
358
+ }
359
+ ]
360
+ },
361
+ "0a90-148": {
362
+ "id": "/packages/react-query/src/useQuery.ts",
363
+ "moduleParts": {
364
+ "index.production.js": "0a90-149"
365
+ },
366
+ "imported": [
367
+ {
368
+ "uid": "0a90-134"
369
+ },
370
+ {
371
+ "uid": "0a90-146"
372
+ }
373
+ ],
374
+ "importedBy": [
375
+ {
376
+ "uid": "0a90-160"
377
+ }
378
+ ]
379
+ },
380
+ "0a90-150": {
381
+ "id": "/packages/react-query/src/Hydrate.tsx",
382
+ "moduleParts": {
383
+ "index.production.js": "0a90-151"
384
+ },
385
+ "imported": [
386
+ {
387
+ "uid": "0a90-165"
388
+ },
389
+ {
390
+ "uid": "0a90-134"
391
+ },
392
+ {
393
+ "uid": "0a90-136"
394
+ }
395
+ ],
396
+ "importedBy": [
397
+ {
398
+ "uid": "0a90-160"
399
+ }
400
+ ]
401
+ },
402
+ "0a90-152": {
403
+ "id": "/packages/react-query/src/useIsFetching.ts",
404
+ "moduleParts": {
405
+ "index.production.js": "0a90-153"
406
+ },
407
+ "imported": [
408
+ {
409
+ "uid": "0a90-165"
410
+ },
411
+ {
412
+ "uid": "0a90-134"
413
+ },
414
+ {
415
+ "uid": "0a90-166"
416
+ },
417
+ {
418
+ "uid": "0a90-136"
419
+ }
420
+ ],
421
+ "importedBy": [
422
+ {
423
+ "uid": "0a90-160"
424
+ }
425
+ ]
426
+ },
427
+ "0a90-154": {
428
+ "id": "/packages/react-query/src/useIsMutating.ts",
429
+ "moduleParts": {
430
+ "index.production.js": "0a90-155"
431
+ },
432
+ "imported": [
433
+ {
434
+ "uid": "0a90-165"
435
+ },
436
+ {
437
+ "uid": "0a90-166"
438
+ },
439
+ {
440
+ "uid": "0a90-134"
441
+ },
442
+ {
443
+ "uid": "0a90-136"
444
+ }
445
+ ],
446
+ "importedBy": [
447
+ {
448
+ "uid": "0a90-160"
449
+ }
450
+ ]
451
+ },
452
+ "0a90-156": {
453
+ "id": "/packages/react-query/src/useMutation.ts",
454
+ "moduleParts": {
455
+ "index.production.js": "0a90-157"
456
+ },
457
+ "imported": [
458
+ {
459
+ "uid": "0a90-165"
460
+ },
461
+ {
462
+ "uid": "0a90-166"
463
+ },
464
+ {
465
+ "uid": "0a90-134"
466
+ },
467
+ {
468
+ "uid": "0a90-136"
469
+ },
470
+ {
471
+ "uid": "0a90-144"
472
+ }
473
+ ],
474
+ "importedBy": [
475
+ {
476
+ "uid": "0a90-160"
477
+ }
478
+ ]
479
+ },
480
+ "0a90-158": {
481
+ "id": "/packages/react-query/src/useInfiniteQuery.ts",
482
+ "moduleParts": {
483
+ "index.production.js": "0a90-159"
484
+ },
485
+ "imported": [
486
+ {
487
+ "uid": "0a90-134"
488
+ },
489
+ {
490
+ "uid": "0a90-146"
491
+ }
492
+ ],
493
+ "importedBy": [
494
+ {
495
+ "uid": "0a90-160"
496
+ }
497
+ ]
498
+ },
499
+ "0a90-160": {
500
+ "id": "/packages/react-query/src/index.ts",
501
+ "moduleParts": {
502
+ "index.production.js": "0a90-161"
503
+ },
504
+ "imported": [
505
+ {
506
+ "uid": "0a90-162"
507
+ },
508
+ {
509
+ "uid": "0a90-134"
510
+ },
511
+ {
512
+ "uid": "0a90-163"
513
+ },
514
+ {
515
+ "uid": "0a90-140"
516
+ },
517
+ {
518
+ "uid": "0a90-148"
519
+ },
520
+ {
521
+ "uid": "0a90-136"
522
+ },
523
+ {
524
+ "uid": "0a90-150"
525
+ },
526
+ {
527
+ "uid": "0a90-142"
528
+ },
529
+ {
530
+ "uid": "0a90-152"
531
+ },
532
+ {
533
+ "uid": "0a90-154"
534
+ },
535
+ {
536
+ "uid": "0a90-156"
537
+ },
538
+ {
539
+ "uid": "0a90-158"
540
+ },
541
+ {
542
+ "uid": "0a90-138"
543
+ }
544
+ ],
545
+ "importedBy": [],
546
+ "isEntry": true
547
+ },
548
+ "0a90-162": {
549
+ "id": "/packages/react-query/src/setBatchUpdatesFn.ts",
550
+ "moduleParts": {},
551
+ "imported": [
552
+ {
553
+ "uid": "0a90-134"
554
+ },
555
+ {
556
+ "uid": "0a90-164"
557
+ }
558
+ ],
559
+ "importedBy": [
560
+ {
561
+ "uid": "0a90-160"
562
+ }
563
+ ]
564
+ },
565
+ "0a90-163": {
566
+ "id": "/packages/react-query/src/types.ts",
567
+ "moduleParts": {},
568
+ "imported": [],
569
+ "importedBy": [
570
+ {
571
+ "uid": "0a90-160"
572
+ }
573
+ ]
574
+ },
575
+ "0a90-164": {
576
+ "id": "/packages/react-query/src/reactBatchedUpdates.ts",
577
+ "moduleParts": {},
578
+ "imported": [
579
+ {
580
+ "uid": "0a90-167"
581
+ }
582
+ ],
583
+ "importedBy": [
584
+ {
585
+ "uid": "0a90-162"
586
+ }
587
+ ]
588
+ },
589
+ "0a90-165": {
590
+ "id": "react",
591
+ "moduleParts": {},
592
+ "imported": [],
593
+ "importedBy": [
594
+ {
595
+ "uid": "0a90-140"
596
+ },
597
+ {
598
+ "uid": "0a90-136"
599
+ },
600
+ {
601
+ "uid": "0a90-150"
602
+ },
603
+ {
604
+ "uid": "0a90-142"
605
+ },
606
+ {
607
+ "uid": "0a90-152"
608
+ },
609
+ {
610
+ "uid": "0a90-154"
611
+ },
612
+ {
613
+ "uid": "0a90-156"
614
+ },
615
+ {
616
+ "uid": "0a90-138"
617
+ },
618
+ {
619
+ "uid": "0a90-146"
620
+ }
621
+ ],
622
+ "isExternal": true
623
+ },
624
+ "0a90-166": {
625
+ "id": "use-sync-external-store/shim",
626
+ "moduleParts": {},
627
+ "imported": [],
628
+ "importedBy": [
629
+ {
630
+ "uid": "0a90-140"
631
+ },
632
+ {
633
+ "uid": "0a90-152"
634
+ },
635
+ {
636
+ "uid": "0a90-154"
637
+ },
638
+ {
639
+ "uid": "0a90-156"
640
+ },
641
+ {
642
+ "uid": "0a90-146"
643
+ }
644
+ ],
645
+ "isExternal": true
646
+ },
647
+ "0a90-167": {
648
+ "id": "/node_modules/react-dom/index.js",
649
+ "moduleParts": {},
650
+ "imported": [],
651
+ "importedBy": [
652
+ {
653
+ "uid": "0a90-164"
654
+ }
655
+ ]
656
+ }
657
+ },
658
+ "env": {
659
+ "rollup": "2.76.0"
660
+ },
661
+ "options": {
662
+ "gzip": true,
663
+ "brotli": false,
664
+ "sourcemap": false
665
+ }
666
+ }
@@ -0,0 +1,16 @@
1
+ import { Subscribable } from './subscribable';
2
+ declare type SetupFn = (setFocused: (focused?: boolean) => void) => (() => void) | undefined;
3
+ export declare class FocusManager extends Subscribable {
4
+ private focused?;
5
+ private cleanup?;
6
+ private setup;
7
+ constructor();
8
+ protected onSubscribe(): void;
9
+ protected onUnsubscribe(): void;
10
+ setEventListener(setup: SetupFn): void;
11
+ setFocused(focused?: boolean): void;
12
+ onFocus(): void;
13
+ isFocused(): boolean;
14
+ }
15
+ export declare const focusManager: FocusManager;
16
+ export {};
@@ -0,0 +1,34 @@
1
+ import type { QueryClient } from './queryClient';
2
+ import type { Query, QueryState } from './query';
3
+ import type { MutationKey, MutationOptions, QueryKey, QueryOptions } from './types';
4
+ import type { Mutation, MutationState } from './mutation';
5
+ export interface DehydrateOptions {
6
+ dehydrateMutations?: boolean;
7
+ dehydrateQueries?: boolean;
8
+ shouldDehydrateMutation?: ShouldDehydrateMutationFunction;
9
+ shouldDehydrateQuery?: ShouldDehydrateQueryFunction;
10
+ }
11
+ export interface HydrateOptions {
12
+ defaultOptions?: {
13
+ queries?: QueryOptions;
14
+ mutations?: MutationOptions;
15
+ };
16
+ }
17
+ interface DehydratedMutation {
18
+ mutationKey?: MutationKey;
19
+ state: MutationState;
20
+ }
21
+ interface DehydratedQuery {
22
+ queryHash: string;
23
+ queryKey: QueryKey;
24
+ state: QueryState;
25
+ }
26
+ export interface DehydratedState {
27
+ mutations: DehydratedMutation[];
28
+ queries: DehydratedQuery[];
29
+ }
30
+ export declare type ShouldDehydrateQueryFunction = (query: Query) => boolean;
31
+ export declare type ShouldDehydrateMutationFunction = (mutation: Mutation) => boolean;
32
+ export declare function dehydrate(client: QueryClient, options?: DehydrateOptions): DehydratedState;
33
+ export declare function hydrate(client: QueryClient, dehydratedState: unknown, options?: HydrateOptions): void;
34
+ export {};