fastapi-rtk 0.2.21 → 0.2.23

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 (84) hide show
  1. package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/query.cjs +65 -62
  2. package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/queryObserver.cjs +7 -5
  3. package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/retryer.cjs +9 -18
  4. package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +1 -1
  5. package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.cjs +2 -2
  6. package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.cjs +1 -1
  7. package/dist/.external/cjs/lodash@4.17.21/lodash/_baseCreate.cjs +2 -2
  8. package/dist/.external/cjs/lodash@4.17.21/lodash/_defineProperty.cjs +2 -2
  9. package/dist/.external/cjs/lodash@4.17.21/lodash/_isMasked.cjs +2 -2
  10. package/dist/.external/cjs/lodash@4.17.21/lodash/_nodeUtil.cjs +2 -2
  11. package/dist/.external/cjs/lodash@4.17.21/lodash/fp/_mapping.cjs +2 -2
  12. package/dist/.external/cjs/lodash@4.17.21/lodash/isArguments.cjs +2 -2
  13. package/dist/.external/cjs/lodash@4.17.21/lodash/lodash.cjs +14 -14
  14. package/dist/.external/cjs/{zustand@5.0.7_@types_react@18.3.23_react@18.3.1 → zustand@5.0.8_@types_react@18.3.24_react@18.3.1}/zustand/esm/react.cjs +1 -1
  15. package/dist/.external/cjs/{zustand@5.0.7_@types_react@18.3.23_react@18.3.1 → zustand@5.0.8_@types_react@18.3.24_react@18.3.1}/zustand/esm/vanilla.cjs +1 -1
  16. package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/query.mjs +66 -63
  17. package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/queryObserver.mjs +7 -5
  18. package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/retryer.mjs +10 -19
  19. package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +1 -1
  20. package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.mjs +2 -2
  21. package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.mjs +1 -1
  22. package/dist/.external/esm/lodash@4.17.21/lodash/_baseCreate.mjs +2 -2
  23. package/dist/.external/esm/lodash@4.17.21/lodash/_defineProperty.mjs +2 -2
  24. package/dist/.external/esm/lodash@4.17.21/lodash/_isMasked.mjs +2 -2
  25. package/dist/.external/esm/lodash@4.17.21/lodash/_nodeUtil.mjs +2 -2
  26. package/dist/.external/esm/lodash@4.17.21/lodash/fp/_mapping.mjs +2 -2
  27. package/dist/.external/esm/lodash@4.17.21/lodash/isArguments.mjs +2 -2
  28. package/dist/.external/esm/lodash@4.17.21/lodash/lodash.mjs +14 -14
  29. package/dist/.external/esm/{zustand@5.0.7_@types_react@18.3.23_react@18.3.1 → zustand@5.0.8_@types_react@18.3.24_react@18.3.1}/zustand/esm/react.mjs +1 -1
  30. package/dist/.external/esm/{zustand@5.0.7_@types_react@18.3.23_react@18.3.1 → zustand@5.0.8_@types_react@18.3.24_react@18.3.1}/zustand/esm/vanilla.mjs +1 -1
  31. package/dist/core/cjs/ActionIcons/Modals/CommonModal.cjs +12 -4
  32. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +1 -1
  33. package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +2 -2
  34. package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideForm.cjs +1 -1
  35. package/dist/core/cjs/Wrappers/Provider/Provider.cjs +2 -2
  36. package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +2 -2
  37. package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +1 -1
  38. package/dist/core/esm/ActionIcons/Modals/CommonModal.mjs +12 -4
  39. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +1 -1
  40. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +2 -2
  41. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideForm.mjs +1 -1
  42. package/dist/core/esm/Wrappers/Provider/Provider.mjs +2 -2
  43. package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +2 -2
  44. package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +1 -1
  45. package/dist/core/lib/ActionIcons/Add/AddDialog.d.ts +16 -0
  46. package/dist/core/lib/ActionIcons/Edit/EditDialog.d.ts +16 -0
  47. package/dist/core/lib/ActionIcons/Modals/CommonModal.d.ts +16 -0
  48. package/dist/zustand/cjs/useProxy/useProxy.cjs +1 -1
  49. package/dist/zustand/esm/useProxy/useProxy.mjs +1 -1
  50. package/package.json +1 -1
  51. /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/focusManager.cjs +0 -0
  52. /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
  53. /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/mutation.cjs +0 -0
  54. /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/mutationCache.cjs +0 -0
  55. /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/notifyManager.cjs +0 -0
  56. /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/onlineManager.cjs +0 -0
  57. /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
  58. /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
  59. /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/removable.cjs +0 -0
  60. /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
  61. /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
  62. /package/dist/.external/cjs/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/utils.cjs +0 -0
  63. /package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
  64. /package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
  65. /package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
  66. /package/dist/.external/cjs/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
  67. /package/dist/.external/cjs/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.4_yup@1.7.0 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.7_yup@1.7.0}/mantine-form-yup-resolver/dist/esm/index.cjs +0 -0
  68. /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/focusManager.mjs +0 -0
  69. /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
  70. /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/mutation.mjs +0 -0
  71. /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/mutationCache.mjs +0 -0
  72. /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/notifyManager.mjs +0 -0
  73. /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/onlineManager.mjs +0 -0
  74. /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
  75. /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
  76. /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/removable.mjs +0 -0
  77. /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
  78. /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
  79. /package/dist/.external/esm/{@tanstack_query-core@5.83.1 → @tanstack_query-core@5.85.5}/@tanstack/query-core/build/modern/utils.mjs +0 -0
  80. /package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
  81. /package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
  82. /package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
  83. /package/dist/.external/esm/{@tanstack_react-query@5.84.1_react@18.3.1 → @tanstack_react-query@5.85.5_react@18.3.1}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
  84. /package/dist/.external/esm/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.4_yup@1.7.0 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.7_yup@1.7.0}/mantine-form-yup-resolver/dist/esm/index.mjs +0 -0
@@ -161,9 +161,12 @@ var Query = (_a = class extends removable.Removable {
161
161
  __privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "invalidate" });
162
162
  }
163
163
  }
164
- fetch(options, fetchOptions) {
165
- var _a2, _b, _c;
166
- if (this.state.fetchStatus !== "idle") {
164
+ async fetch(options, fetchOptions) {
165
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
166
+ if (this.state.fetchStatus !== "idle" && // If the promise in the retyer is already rejected, we have to definitely
167
+ // re-start the fetch; there is a chance that the query is still in a
168
+ // pending state when that happens
169
+ ((_a2 = __privateGet(this, _retryer)) == null ? void 0 : _a2.status()) !== "rejected") {
167
170
  if (this.state.data !== void 0 && (fetchOptions == null ? void 0 : fetchOptions.cancelRefetch)) {
168
171
  this.cancel({ silent: true });
169
172
  } else if (__privateGet(this, _retryer)) {
@@ -232,65 +235,15 @@ var Query = (_a = class extends removable.Removable {
232
235
  return context2;
233
236
  };
234
237
  const context = createFetchContext();
235
- (_a2 = this.options.behavior) == null ? void 0 : _a2.onFetch(context, this);
238
+ (_b = this.options.behavior) == null ? void 0 : _b.onFetch(context, this);
236
239
  __privateSet(this, _revertState, this.state);
237
- if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((_b = context.fetchOptions) == null ? void 0 : _b.meta)) {
238
- __privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "fetch", meta: (_c = context.fetchOptions) == null ? void 0 : _c.meta });
240
+ if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((_c = context.fetchOptions) == null ? void 0 : _c.meta)) {
241
+ __privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "fetch", meta: (_d = context.fetchOptions) == null ? void 0 : _d.meta });
239
242
  }
240
- const onError = (error) => {
241
- var _a3, _b2, _c2, _d;
242
- if (!(retryer.isCancelledError(error) && error.silent)) {
243
- __privateMethod(this, _Query_instances, dispatch_fn).call(this, {
244
- type: "error",
245
- error
246
- });
247
- }
248
- if (!retryer.isCancelledError(error)) {
249
- (_b2 = (_a3 = __privateGet(this, _cache).config).onError) == null ? void 0 : _b2.call(
250
- _a3,
251
- error,
252
- this
253
- );
254
- (_d = (_c2 = __privateGet(this, _cache).config).onSettled) == null ? void 0 : _d.call(
255
- _c2,
256
- this.state.data,
257
- error,
258
- this
259
- );
260
- }
261
- this.scheduleGc();
262
- };
263
243
  __privateSet(this, _retryer, retryer.createRetryer({
264
244
  initialPromise: fetchOptions == null ? void 0 : fetchOptions.initialPromise,
265
245
  fn: context.fetchFn,
266
246
  abort: abortController.abort.bind(abortController),
267
- onSuccess: (data) => {
268
- var _a3, _b2, _c2, _d;
269
- if (data === void 0) {
270
- if (process.env.NODE_ENV !== "production") {
271
- console.error(
272
- `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
273
- );
274
- }
275
- onError(new Error(`${this.queryHash} data is undefined`));
276
- return;
277
- }
278
- try {
279
- this.setData(data);
280
- } catch (error) {
281
- onError(error);
282
- return;
283
- }
284
- (_b2 = (_a3 = __privateGet(this, _cache).config).onSuccess) == null ? void 0 : _b2.call(_a3, data, this);
285
- (_d = (_c2 = __privateGet(this, _cache).config).onSettled) == null ? void 0 : _d.call(
286
- _c2,
287
- data,
288
- this.state.error,
289
- this
290
- );
291
- this.scheduleGc();
292
- },
293
- onError,
294
247
  onFail: (failureCount, error) => {
295
248
  __privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "failed", failureCount, error });
296
249
  },
@@ -305,7 +258,59 @@ var Query = (_a = class extends removable.Removable {
305
258
  networkMode: context.options.networkMode,
306
259
  canRun: () => true
307
260
  }));
308
- return __privateGet(this, _retryer).start();
261
+ try {
262
+ const data = await __privateGet(this, _retryer).start();
263
+ if (data === void 0) {
264
+ if (process.env.NODE_ENV !== "production") {
265
+ console.error(
266
+ `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
267
+ );
268
+ }
269
+ throw new Error(`${this.queryHash} data is undefined`);
270
+ }
271
+ this.setData(data);
272
+ (_f = (_e = __privateGet(this, _cache).config).onSuccess) == null ? void 0 : _f.call(_e, data, this);
273
+ (_h = (_g = __privateGet(this, _cache).config).onSettled) == null ? void 0 : _h.call(
274
+ _g,
275
+ data,
276
+ this.state.error,
277
+ this
278
+ );
279
+ return data;
280
+ } catch (error) {
281
+ if (error instanceof retryer.CancelledError) {
282
+ if (error.silent) {
283
+ return __privateGet(this, _retryer).promise;
284
+ } else if (error.revert) {
285
+ this.setState({
286
+ ...__privateGet(this, _revertState),
287
+ fetchStatus: "idle"
288
+ });
289
+ if (this.state.data === void 0) {
290
+ throw error;
291
+ }
292
+ return this.state.data;
293
+ }
294
+ }
295
+ __privateMethod(this, _Query_instances, dispatch_fn).call(this, {
296
+ type: "error",
297
+ error
298
+ });
299
+ (_j = (_i = __privateGet(this, _cache).config).onError) == null ? void 0 : _j.call(
300
+ _i,
301
+ error,
302
+ this
303
+ );
304
+ (_l = (_k = __privateGet(this, _cache).config).onSettled) == null ? void 0 : _l.call(
305
+ _k,
306
+ this.state.data,
307
+ error,
308
+ this
309
+ );
310
+ throw error;
311
+ } finally {
312
+ this.scheduleGc();
313
+ }
309
314
  }
310
315
  }, _initialState = new WeakMap(), _revertState = new WeakMap(), _cache = new WeakMap(), _client = new WeakMap(), _retryer = new WeakMap(), _defaultOptions = new WeakMap(), _abortSignalConsumed = new WeakMap(), _Query_instances = new WeakSet(), dispatch_fn = function(action) {
311
316
  const reducer = (state) => {
@@ -333,8 +338,7 @@ var Query = (_a = class extends removable.Removable {
333
338
  fetchMeta: action.meta ?? null
334
339
  };
335
340
  case "success":
336
- __privateSet(this, _revertState, void 0);
337
- return {
341
+ const newState = {
338
342
  ...state,
339
343
  data: action.data,
340
344
  dataUpdateCount: state.dataUpdateCount + 1,
@@ -348,11 +352,10 @@ var Query = (_a = class extends removable.Removable {
348
352
  fetchFailureReason: null
349
353
  }
350
354
  };
355
+ __privateSet(this, _revertState, action.manual ? newState : void 0);
356
+ return newState;
351
357
  case "error":
352
358
  const error = action.error;
353
- if (retryer.isCancelledError(error) && error.revert && __privateGet(this, _revertState)) {
354
- return { ...__privateGet(this, _revertState), fetchStatus: "idle" };
355
- }
356
359
  return {
357
360
  ...state,
358
361
  error,
@@ -40,11 +40,6 @@ var QueryObserver = (_a = class extends subscribable.Subscribable {
40
40
  __privateSet(this, _client, client);
41
41
  __privateSet(this, _selectError, null);
42
42
  __privateSet(this, _currentThenable, thenable.pendingThenable());
43
- if (!this.options.experimental_prefetchInRender) {
44
- __privateGet(this, _currentThenable).reject(
45
- new Error("experimental_prefetchInRender feature flag is not enabled")
46
- );
47
- }
48
43
  this.bindMethods();
49
44
  this.setOptions(options);
50
45
  }
@@ -141,6 +136,13 @@ var QueryObserver = (_a = class extends subscribable.Subscribable {
141
136
  get: (target, key) => {
142
137
  this.trackProp(key);
143
138
  onPropTracked == null ? void 0 : onPropTracked(key);
139
+ if (key === "promise" && !this.options.experimental_prefetchInRender && __privateGet(this, _currentThenable).status === "pending") {
140
+ __privateGet(this, _currentThenable).reject(
141
+ new Error(
142
+ "experimental_prefetchInRender feature flag is not enabled"
143
+ )
144
+ );
145
+ }
144
146
  return Reflect.get(target, key);
145
147
  }
146
148
  });
@@ -17,18 +17,15 @@ var CancelledError = class extends Error {
17
17
  this.silent = options == null ? void 0 : options.silent;
18
18
  }
19
19
  };
20
- function isCancelledError(value) {
21
- return value instanceof CancelledError;
22
- }
23
20
  function createRetryer(config) {
24
21
  let isRetryCancelled = false;
25
22
  let failureCount = 0;
26
- let isResolved = false;
27
23
  let continueFn;
28
24
  const thenable$1 = thenable.pendingThenable();
25
+ const isResolved = () => thenable$1.status !== "pending";
29
26
  const cancel = (cancelOptions) => {
30
27
  var _a;
31
- if (!isResolved) {
28
+ if (!isResolved()) {
32
29
  reject(new CancelledError(cancelOptions));
33
30
  (_a = config.abort) == null ? void 0 : _a.call(config);
34
31
  }
@@ -42,19 +39,13 @@ function createRetryer(config) {
42
39
  const canContinue = () => focusManager.focusManager.isFocused() && (config.networkMode === "always" || onlineManager.onlineManager.isOnline()) && config.canRun();
43
40
  const canStart = () => canFetch(config.networkMode) && config.canRun();
44
41
  const resolve = (value) => {
45
- var _a;
46
- if (!isResolved) {
47
- isResolved = true;
48
- (_a = config.onSuccess) == null ? void 0 : _a.call(config, value);
42
+ if (!isResolved()) {
49
43
  continueFn == null ? void 0 : continueFn();
50
44
  thenable$1.resolve(value);
51
45
  }
52
46
  };
53
47
  const reject = (value) => {
54
- var _a;
55
- if (!isResolved) {
56
- isResolved = true;
57
- (_a = config.onError) == null ? void 0 : _a.call(config, value);
48
+ if (!isResolved()) {
58
49
  continueFn == null ? void 0 : continueFn();
59
50
  thenable$1.reject(value);
60
51
  }
@@ -63,7 +54,7 @@ function createRetryer(config) {
63
54
  return new Promise((continueResolve) => {
64
55
  var _a;
65
56
  continueFn = (value) => {
66
- if (isResolved || canContinue()) {
57
+ if (isResolved() || canContinue()) {
67
58
  continueResolve(value);
68
59
  }
69
60
  };
@@ -71,13 +62,13 @@ function createRetryer(config) {
71
62
  }).then(() => {
72
63
  var _a;
73
64
  continueFn = void 0;
74
- if (!isResolved) {
65
+ if (!isResolved()) {
75
66
  (_a = config.onContinue) == null ? void 0 : _a.call(config);
76
67
  }
77
68
  });
78
69
  };
79
70
  const run = () => {
80
- if (isResolved) {
71
+ if (isResolved()) {
81
72
  return;
82
73
  }
83
74
  let promiseOrValue;
@@ -89,7 +80,7 @@ function createRetryer(config) {
89
80
  }
90
81
  Promise.resolve(promiseOrValue).then(resolve).catch((error) => {
91
82
  var _a;
92
- if (isResolved) {
83
+ if (isResolved()) {
93
84
  return;
94
85
  }
95
86
  const retry = config.retry ?? (utils.isServer ? 0 : 3);
@@ -115,6 +106,7 @@ function createRetryer(config) {
115
106
  };
116
107
  return {
117
108
  promise: thenable$1,
109
+ status: () => thenable$1.status,
118
110
  cancel,
119
111
  continue: () => {
120
112
  continueFn == null ? void 0 : continueFn();
@@ -136,4 +128,3 @@ function createRetryer(config) {
136
128
  exports.CancelledError = CancelledError;
137
129
  exports.canFetch = canFetch;
138
130
  exports.createRetryer = createRetryer;
139
- exports.isCancelledError = isCancelledError;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
- const utils = require("../../../../../@tanstack_query-core@5.83.1/@tanstack/query-core/build/modern/utils.cjs");
4
+ const utils = require("../../../../../@tanstack_query-core@5.85.5/@tanstack/query-core/build/modern/utils.cjs");
5
5
  function _interopNamespaceDefault(e) {
6
6
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
7
7
  if (e) {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
- const notifyManager = require("../../../../../@tanstack_query-core@5.83.1/@tanstack/query-core/build/modern/notifyManager.cjs");
5
- const utils = require("../../../../../@tanstack_query-core@5.83.1/@tanstack/query-core/build/modern/utils.cjs");
4
+ const notifyManager = require("../../../../../@tanstack_query-core@5.85.5/@tanstack/query-core/build/modern/notifyManager.cjs");
5
+ const utils = require("../../../../../@tanstack_query-core@5.85.5/@tanstack/query-core/build/modern/utils.cjs");
6
6
  const QueryClientProvider = require("./QueryClientProvider.cjs");
7
7
  const QueryErrorResetBoundary = require("./QueryErrorResetBoundary.cjs");
8
8
  const errorBoundaryUtils = require("./errorBoundaryUtils.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const queryObserver = require("../../../../../@tanstack_query-core@5.83.1/@tanstack/query-core/build/modern/queryObserver.cjs");
3
+ const queryObserver = require("../../../../../@tanstack_query-core@5.85.5/@tanstack/query-core/build/modern/queryObserver.cjs");
4
4
  const useBaseQuery = require("./useBaseQuery.cjs");
5
5
  function useQuery(options, queryClient) {
6
6
  return useBaseQuery.useBaseQuery(options, queryObserver.QueryObserver);
@@ -8,7 +8,7 @@ function require_baseCreate() {
8
8
  hasRequired_baseCreate = 1;
9
9
  var isObject$1 = isObject.__require();
10
10
  var objectCreate = Object.create;
11
- var baseCreate = /* @__PURE__ */ function() {
11
+ var baseCreate = /* @__PURE__ */ (function() {
12
12
  function object() {
13
13
  }
14
14
  return function(proto) {
@@ -23,7 +23,7 @@ function require_baseCreate() {
23
23
  object.prototype = void 0;
24
24
  return result;
25
25
  };
26
- }();
26
+ })();
27
27
  _baseCreate = baseCreate;
28
28
  return _baseCreate;
29
29
  }
@@ -7,14 +7,14 @@ function require_defineProperty() {
7
7
  if (hasRequired_defineProperty) return _defineProperty;
8
8
  hasRequired_defineProperty = 1;
9
9
  var getNative = _getNative.__require();
10
- var defineProperty = function() {
10
+ var defineProperty = (function() {
11
11
  try {
12
12
  var func = getNative(Object, "defineProperty");
13
13
  func({}, "", {});
14
14
  return func;
15
15
  } catch (e) {
16
16
  }
17
- }();
17
+ })();
18
18
  _defineProperty = defineProperty;
19
19
  return _defineProperty;
20
20
  }
@@ -7,10 +7,10 @@ function require_isMasked() {
7
7
  if (hasRequired_isMasked) return _isMasked;
8
8
  hasRequired_isMasked = 1;
9
9
  var coreJsData = _coreJsData.__require();
10
- var maskSrcKey = function() {
10
+ var maskSrcKey = (function() {
11
11
  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
12
12
  return uid ? "Symbol(src)_1." + uid : "";
13
- }();
13
+ })();
14
14
  function isMasked(func) {
15
15
  return !!maskSrcKey && maskSrcKey in func;
16
16
  }
@@ -13,7 +13,7 @@ function require_nodeUtil() {
13
13
  var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
14
14
  var moduleExports = freeModule && freeModule.exports === freeExports;
15
15
  var freeProcess = moduleExports && freeGlobal.process;
16
- var nodeUtil = function() {
16
+ var nodeUtil = (function() {
17
17
  try {
18
18
  var types = freeModule && freeModule.require && freeModule.require("util").types;
19
19
  if (types) {
@@ -22,7 +22,7 @@ function require_nodeUtil() {
22
22
  return freeProcess && freeProcess.binding && freeProcess.binding("util");
23
23
  } catch (e) {
24
24
  }
25
- }();
25
+ })();
26
26
  module2.exports = nodeUtil;
27
27
  })(_nodeUtil.__module, _nodeUtil.__module.exports);
28
28
  return _nodeUtil.__module.exports;
@@ -437,7 +437,7 @@ function require_mapping() {
437
437
  "updateWith": true
438
438
  }
439
439
  };
440
- exports2.realToAlias = function() {
440
+ exports2.realToAlias = (function() {
441
441
  var hasOwnProperty = Object.prototype.hasOwnProperty, object = exports2.aliasToReal, result = {};
442
442
  for (var key in object) {
443
443
  var value = object[key];
@@ -448,7 +448,7 @@ function require_mapping() {
448
448
  }
449
449
  }
450
450
  return result;
451
- }();
451
+ })();
452
452
  exports2.remap = {
453
453
  "assignAll": "assign",
454
454
  "assignAllWith": "assignWith",
@@ -11,9 +11,9 @@ function requireIsArguments() {
11
11
  var objectProto = Object.prototype;
12
12
  var hasOwnProperty = objectProto.hasOwnProperty;
13
13
  var propertyIsEnumerable = objectProto.propertyIsEnumerable;
14
- var isArguments = baseIsArguments(/* @__PURE__ */ function() {
14
+ var isArguments = baseIsArguments(/* @__PURE__ */ (function() {
15
15
  return arguments;
16
- }()) ? baseIsArguments : function(value) {
16
+ })()) ? baseIsArguments : function(value) {
17
17
  return isObjectLike$1(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
18
18
  };
19
19
  isArguments_1 = isArguments;
@@ -347,7 +347,7 @@ function requireLodash() {
347
347
  var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
348
348
  var moduleExports = freeModule && freeModule.exports === freeExports;
349
349
  var freeProcess = moduleExports && freeGlobal.process;
350
- var nodeUtil = function() {
350
+ var nodeUtil = (function() {
351
351
  try {
352
352
  var types = freeModule && freeModule.require && freeModule.require("util").types;
353
353
  if (types) {
@@ -356,7 +356,7 @@ function requireLodash() {
356
356
  return freeProcess && freeProcess.binding && freeProcess.binding("util");
357
357
  } catch (e) {
358
358
  }
359
- }();
359
+ })();
360
360
  var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
361
361
  function apply(func, thisArg, args) {
362
362
  switch (args.length) {
@@ -702,7 +702,7 @@ function requireLodash() {
702
702
  function unicodeWords(string) {
703
703
  return string.match(reUnicodeWord) || [];
704
704
  }
705
- var runInContext = function runInContext2(context) {
705
+ var runInContext = (function runInContext2(context) {
706
706
  context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
707
707
  var Array2 = context.Array, Date = context.Date, Error = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String = context.String, TypeError = context.TypeError;
708
708
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
@@ -710,10 +710,10 @@ function requireLodash() {
710
710
  var funcToString = funcProto.toString;
711
711
  var hasOwnProperty = objectProto.hasOwnProperty;
712
712
  var idCounter = 0;
713
- var maskSrcKey = function() {
713
+ var maskSrcKey = (function() {
714
714
  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
715
715
  return uid ? "Symbol(src)_1." + uid : "";
716
- }();
716
+ })();
717
717
  var nativeObjectToString = objectProto.toString;
718
718
  var objectCtorString = funcToString.call(Object2);
719
719
  var oldDash = root._;
@@ -721,14 +721,14 @@ function requireLodash() {
721
721
  "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
722
722
  );
723
723
  var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
724
- var defineProperty = function() {
724
+ var defineProperty = (function() {
725
725
  try {
726
726
  var func = getNative(Object2, "defineProperty");
727
727
  func({}, "", {});
728
728
  return func;
729
729
  } catch (e) {
730
730
  }
731
- }();
731
+ })();
732
732
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
733
733
  var nativeCeil = Math.ceil, nativeFloor = Math.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math.max, nativeMin = Math.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math.random, nativeReverse = arrayProto.reverse;
734
734
  var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
@@ -747,7 +747,7 @@ function requireLodash() {
747
747
  }
748
748
  return new LodashWrapper(value);
749
749
  }
750
- var baseCreate = /* @__PURE__ */ function() {
750
+ var baseCreate = /* @__PURE__ */ (function() {
751
751
  function object() {
752
752
  }
753
753
  return function(proto) {
@@ -762,7 +762,7 @@ function requireLodash() {
762
762
  object.prototype = undefined$1;
763
763
  return result2;
764
764
  };
765
- }();
765
+ })();
766
766
  function baseLodash() {
767
767
  }
768
768
  function LodashWrapper(value, chainAll) {
@@ -4054,9 +4054,9 @@ function requireLodash() {
4054
4054
  var gte = createRelationalOperation(function(value, other) {
4055
4055
  return value >= other;
4056
4056
  });
4057
- var isArguments = baseIsArguments(/* @__PURE__ */ function() {
4057
+ var isArguments = baseIsArguments(/* @__PURE__ */ (function() {
4058
4058
  return arguments;
4059
- }()) ? baseIsArguments : function(value) {
4059
+ })()) ? baseIsArguments : function(value) {
4060
4060
  return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
4061
4061
  };
4062
4062
  var isArray = Array2.isArray;
@@ -5308,7 +5308,7 @@ function requireLodash() {
5308
5308
  lodash2.each = forEach;
5309
5309
  lodash2.eachRight = forEachRight;
5310
5310
  lodash2.first = head;
5311
- mixin(lodash2, function() {
5311
+ mixin(lodash2, (function() {
5312
5312
  var source = {};
5313
5313
  baseForOwn(lodash2, function(func, methodName) {
5314
5314
  if (!hasOwnProperty.call(lodash2.prototype, methodName)) {
@@ -5316,7 +5316,7 @@ function requireLodash() {
5316
5316
  }
5317
5317
  });
5318
5318
  return source;
5319
- }(), { "chain": false });
5319
+ })(), { "chain": false });
5320
5320
  lodash2.VERSION = VERSION;
5321
5321
  arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
5322
5322
  lodash2[methodName].placeholder = lodash2;
@@ -5476,7 +5476,7 @@ function requireLodash() {
5476
5476
  lodash2.prototype[symIterator] = wrapperToIterator;
5477
5477
  }
5478
5478
  return lodash2;
5479
- };
5479
+ });
5480
5480
  var _ = runInContext();
5481
5481
  if (freeModule) {
5482
5482
  (freeModule.exports = _)._ = _;
@@ -18,6 +18,6 @@ const createImpl = (createState) => {
18
18
  Object.assign(useBoundStore, api);
19
19
  return useBoundStore;
20
20
  };
21
- const create = (createState) => createState ? createImpl(createState) : createImpl;
21
+ const create = ((createState) => createState ? createImpl(createState) : createImpl);
22
22
  exports.create = create;
23
23
  exports.useStore = useStore;
@@ -21,5 +21,5 @@ const createStoreImpl = (createState) => {
21
21
  const initialState = state = createState(setState, getState, api);
22
22
  return api;
23
23
  };
24
- const createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
24
+ const createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
25
25
  exports.createStore = createStore;