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.
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/.external/cjs/lodash@4.17.21/lodash/_baseCreate.cjs +2 -2
- package/dist/.external/cjs/lodash@4.17.21/lodash/_defineProperty.cjs +2 -2
- package/dist/.external/cjs/lodash@4.17.21/lodash/_isMasked.cjs +2 -2
- package/dist/.external/cjs/lodash@4.17.21/lodash/_nodeUtil.cjs +2 -2
- package/dist/.external/cjs/lodash@4.17.21/lodash/fp/_mapping.cjs +2 -2
- package/dist/.external/cjs/lodash@4.17.21/lodash/isArguments.cjs +2 -2
- package/dist/.external/cjs/lodash@4.17.21/lodash/lodash.cjs +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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/.external/esm/lodash@4.17.21/lodash/_baseCreate.mjs +2 -2
- package/dist/.external/esm/lodash@4.17.21/lodash/_defineProperty.mjs +2 -2
- package/dist/.external/esm/lodash@4.17.21/lodash/_isMasked.mjs +2 -2
- package/dist/.external/esm/lodash@4.17.21/lodash/_nodeUtil.mjs +2 -2
- package/dist/.external/esm/lodash@4.17.21/lodash/fp/_mapping.mjs +2 -2
- package/dist/.external/esm/lodash@4.17.21/lodash/isArguments.mjs +2 -2
- package/dist/.external/esm/lodash@4.17.21/lodash/lodash.mjs +14 -14
- 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
- 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
- package/dist/core/cjs/ActionIcons/Modals/CommonModal.cjs +12 -4
- package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +1 -1
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +2 -2
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideForm.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/Provider.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +1 -1
- package/dist/core/esm/ActionIcons/Modals/CommonModal.mjs +12 -4
- package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +1 -1
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +2 -2
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideForm.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/Provider.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +1 -1
- package/dist/core/lib/ActionIcons/Add/AddDialog.d.ts +16 -0
- package/dist/core/lib/ActionIcons/Edit/EditDialog.d.ts +16 -0
- package/dist/core/lib/ActionIcons/Modals/CommonModal.d.ts +16 -0
- package/dist/zustand/cjs/useProxy/useProxy.cjs +1 -1
- package/dist/zustand/esm/useProxy/useProxy.mjs +1 -1
- package/package.json +1 -1
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
|
@@ -9,7 +9,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
9
9
|
var _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _a;
|
|
10
10
|
import { replaceData, noop, resolveEnabled, skipToken, resolveStaleTime, timeUntilStale, ensureQueryFn } from "./utils.mjs";
|
|
11
11
|
import { notifyManager } from "./notifyManager.mjs";
|
|
12
|
-
import { canFetch, createRetryer,
|
|
12
|
+
import { canFetch, createRetryer, CancelledError } from "./retryer.mjs";
|
|
13
13
|
import { Removable } from "./removable.mjs";
|
|
14
14
|
var Query = (_a = class extends Removable {
|
|
15
15
|
constructor(config) {
|
|
@@ -159,9 +159,12 @@ var Query = (_a = class extends Removable {
|
|
|
159
159
|
__privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "invalidate" });
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
fetch(options, fetchOptions) {
|
|
163
|
-
var _a2, _b, _c;
|
|
164
|
-
if (this.state.fetchStatus !== "idle"
|
|
162
|
+
async fetch(options, fetchOptions) {
|
|
163
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
164
|
+
if (this.state.fetchStatus !== "idle" && // If the promise in the retyer is already rejected, we have to definitely
|
|
165
|
+
// re-start the fetch; there is a chance that the query is still in a
|
|
166
|
+
// pending state when that happens
|
|
167
|
+
((_a2 = __privateGet(this, _retryer)) == null ? void 0 : _a2.status()) !== "rejected") {
|
|
165
168
|
if (this.state.data !== void 0 && (fetchOptions == null ? void 0 : fetchOptions.cancelRefetch)) {
|
|
166
169
|
this.cancel({ silent: true });
|
|
167
170
|
} else if (__privateGet(this, _retryer)) {
|
|
@@ -230,65 +233,15 @@ var Query = (_a = class extends Removable {
|
|
|
230
233
|
return context2;
|
|
231
234
|
};
|
|
232
235
|
const context = createFetchContext();
|
|
233
|
-
(
|
|
236
|
+
(_b = this.options.behavior) == null ? void 0 : _b.onFetch(context, this);
|
|
234
237
|
__privateSet(this, _revertState, this.state);
|
|
235
|
-
if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((
|
|
236
|
-
__privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "fetch", meta: (
|
|
238
|
+
if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((_c = context.fetchOptions) == null ? void 0 : _c.meta)) {
|
|
239
|
+
__privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "fetch", meta: (_d = context.fetchOptions) == null ? void 0 : _d.meta });
|
|
237
240
|
}
|
|
238
|
-
const onError = (error) => {
|
|
239
|
-
var _a3, _b2, _c2, _d;
|
|
240
|
-
if (!(isCancelledError(error) && error.silent)) {
|
|
241
|
-
__privateMethod(this, _Query_instances, dispatch_fn).call(this, {
|
|
242
|
-
type: "error",
|
|
243
|
-
error
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
if (!isCancelledError(error)) {
|
|
247
|
-
(_b2 = (_a3 = __privateGet(this, _cache).config).onError) == null ? void 0 : _b2.call(
|
|
248
|
-
_a3,
|
|
249
|
-
error,
|
|
250
|
-
this
|
|
251
|
-
);
|
|
252
|
-
(_d = (_c2 = __privateGet(this, _cache).config).onSettled) == null ? void 0 : _d.call(
|
|
253
|
-
_c2,
|
|
254
|
-
this.state.data,
|
|
255
|
-
error,
|
|
256
|
-
this
|
|
257
|
-
);
|
|
258
|
-
}
|
|
259
|
-
this.scheduleGc();
|
|
260
|
-
};
|
|
261
241
|
__privateSet(this, _retryer, createRetryer({
|
|
262
242
|
initialPromise: fetchOptions == null ? void 0 : fetchOptions.initialPromise,
|
|
263
243
|
fn: context.fetchFn,
|
|
264
244
|
abort: abortController.abort.bind(abortController),
|
|
265
|
-
onSuccess: (data) => {
|
|
266
|
-
var _a3, _b2, _c2, _d;
|
|
267
|
-
if (data === void 0) {
|
|
268
|
-
if (process.env.NODE_ENV !== "production") {
|
|
269
|
-
console.error(
|
|
270
|
-
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
271
|
-
);
|
|
272
|
-
}
|
|
273
|
-
onError(new Error(`${this.queryHash} data is undefined`));
|
|
274
|
-
return;
|
|
275
|
-
}
|
|
276
|
-
try {
|
|
277
|
-
this.setData(data);
|
|
278
|
-
} catch (error) {
|
|
279
|
-
onError(error);
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
(_b2 = (_a3 = __privateGet(this, _cache).config).onSuccess) == null ? void 0 : _b2.call(_a3, data, this);
|
|
283
|
-
(_d = (_c2 = __privateGet(this, _cache).config).onSettled) == null ? void 0 : _d.call(
|
|
284
|
-
_c2,
|
|
285
|
-
data,
|
|
286
|
-
this.state.error,
|
|
287
|
-
this
|
|
288
|
-
);
|
|
289
|
-
this.scheduleGc();
|
|
290
|
-
},
|
|
291
|
-
onError,
|
|
292
245
|
onFail: (failureCount, error) => {
|
|
293
246
|
__privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "failed", failureCount, error });
|
|
294
247
|
},
|
|
@@ -303,7 +256,59 @@ var Query = (_a = class extends Removable {
|
|
|
303
256
|
networkMode: context.options.networkMode,
|
|
304
257
|
canRun: () => true
|
|
305
258
|
}));
|
|
306
|
-
|
|
259
|
+
try {
|
|
260
|
+
const data = await __privateGet(this, _retryer).start();
|
|
261
|
+
if (data === void 0) {
|
|
262
|
+
if (process.env.NODE_ENV !== "production") {
|
|
263
|
+
console.error(
|
|
264
|
+
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
throw new Error(`${this.queryHash} data is undefined`);
|
|
268
|
+
}
|
|
269
|
+
this.setData(data);
|
|
270
|
+
(_f = (_e = __privateGet(this, _cache).config).onSuccess) == null ? void 0 : _f.call(_e, data, this);
|
|
271
|
+
(_h = (_g = __privateGet(this, _cache).config).onSettled) == null ? void 0 : _h.call(
|
|
272
|
+
_g,
|
|
273
|
+
data,
|
|
274
|
+
this.state.error,
|
|
275
|
+
this
|
|
276
|
+
);
|
|
277
|
+
return data;
|
|
278
|
+
} catch (error) {
|
|
279
|
+
if (error instanceof CancelledError) {
|
|
280
|
+
if (error.silent) {
|
|
281
|
+
return __privateGet(this, _retryer).promise;
|
|
282
|
+
} else if (error.revert) {
|
|
283
|
+
this.setState({
|
|
284
|
+
...__privateGet(this, _revertState),
|
|
285
|
+
fetchStatus: "idle"
|
|
286
|
+
});
|
|
287
|
+
if (this.state.data === void 0) {
|
|
288
|
+
throw error;
|
|
289
|
+
}
|
|
290
|
+
return this.state.data;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
__privateMethod(this, _Query_instances, dispatch_fn).call(this, {
|
|
294
|
+
type: "error",
|
|
295
|
+
error
|
|
296
|
+
});
|
|
297
|
+
(_j = (_i = __privateGet(this, _cache).config).onError) == null ? void 0 : _j.call(
|
|
298
|
+
_i,
|
|
299
|
+
error,
|
|
300
|
+
this
|
|
301
|
+
);
|
|
302
|
+
(_l = (_k = __privateGet(this, _cache).config).onSettled) == null ? void 0 : _l.call(
|
|
303
|
+
_k,
|
|
304
|
+
this.state.data,
|
|
305
|
+
error,
|
|
306
|
+
this
|
|
307
|
+
);
|
|
308
|
+
throw error;
|
|
309
|
+
} finally {
|
|
310
|
+
this.scheduleGc();
|
|
311
|
+
}
|
|
307
312
|
}
|
|
308
313
|
}, _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) {
|
|
309
314
|
const reducer = (state) => {
|
|
@@ -331,8 +336,7 @@ var Query = (_a = class extends Removable {
|
|
|
331
336
|
fetchMeta: action.meta ?? null
|
|
332
337
|
};
|
|
333
338
|
case "success":
|
|
334
|
-
|
|
335
|
-
return {
|
|
339
|
+
const newState = {
|
|
336
340
|
...state,
|
|
337
341
|
data: action.data,
|
|
338
342
|
dataUpdateCount: state.dataUpdateCount + 1,
|
|
@@ -346,11 +350,10 @@ var Query = (_a = class extends Removable {
|
|
|
346
350
|
fetchFailureReason: null
|
|
347
351
|
}
|
|
348
352
|
};
|
|
353
|
+
__privateSet(this, _revertState, action.manual ? newState : void 0);
|
|
354
|
+
return newState;
|
|
349
355
|
case "error":
|
|
350
356
|
const error = action.error;
|
|
351
|
-
if (isCancelledError(error) && error.revert && __privateGet(this, _revertState)) {
|
|
352
|
-
return { ...__privateGet(this, _revertState), fetchStatus: "idle" };
|
|
353
|
-
}
|
|
354
357
|
return {
|
|
355
358
|
...state,
|
|
356
359
|
error,
|
|
@@ -38,11 +38,6 @@ var QueryObserver = (_a = class extends Subscribable {
|
|
|
38
38
|
__privateSet(this, _client, client);
|
|
39
39
|
__privateSet(this, _selectError, null);
|
|
40
40
|
__privateSet(this, _currentThenable, pendingThenable());
|
|
41
|
-
if (!this.options.experimental_prefetchInRender) {
|
|
42
|
-
__privateGet(this, _currentThenable).reject(
|
|
43
|
-
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
41
|
this.bindMethods();
|
|
47
42
|
this.setOptions(options);
|
|
48
43
|
}
|
|
@@ -139,6 +134,13 @@ var QueryObserver = (_a = class extends Subscribable {
|
|
|
139
134
|
get: (target, key) => {
|
|
140
135
|
this.trackProp(key);
|
|
141
136
|
onPropTracked == null ? void 0 : onPropTracked(key);
|
|
137
|
+
if (key === "promise" && !this.options.experimental_prefetchInRender && __privateGet(this, _currentThenable).status === "pending") {
|
|
138
|
+
__privateGet(this, _currentThenable).reject(
|
|
139
|
+
new Error(
|
|
140
|
+
"experimental_prefetchInRender feature flag is not enabled"
|
|
141
|
+
)
|
|
142
|
+
);
|
|
143
|
+
}
|
|
142
144
|
return Reflect.get(target, key);
|
|
143
145
|
}
|
|
144
146
|
});
|
|
@@ -15,18 +15,15 @@ var CancelledError = class extends Error {
|
|
|
15
15
|
this.silent = options == null ? void 0 : options.silent;
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
function isCancelledError(value) {
|
|
19
|
-
return value instanceof CancelledError;
|
|
20
|
-
}
|
|
21
18
|
function createRetryer(config) {
|
|
22
19
|
let isRetryCancelled = false;
|
|
23
20
|
let failureCount = 0;
|
|
24
|
-
let isResolved = false;
|
|
25
21
|
let continueFn;
|
|
26
22
|
const thenable = pendingThenable();
|
|
23
|
+
const isResolved = () => thenable.status !== "pending";
|
|
27
24
|
const cancel = (cancelOptions) => {
|
|
28
25
|
var _a;
|
|
29
|
-
if (!isResolved) {
|
|
26
|
+
if (!isResolved()) {
|
|
30
27
|
reject(new CancelledError(cancelOptions));
|
|
31
28
|
(_a = config.abort) == null ? void 0 : _a.call(config);
|
|
32
29
|
}
|
|
@@ -40,19 +37,13 @@ function createRetryer(config) {
|
|
|
40
37
|
const canContinue = () => focusManager.isFocused() && (config.networkMode === "always" || onlineManager.isOnline()) && config.canRun();
|
|
41
38
|
const canStart = () => canFetch(config.networkMode) && config.canRun();
|
|
42
39
|
const resolve = (value) => {
|
|
43
|
-
|
|
44
|
-
if (!isResolved) {
|
|
45
|
-
isResolved = true;
|
|
46
|
-
(_a = config.onSuccess) == null ? void 0 : _a.call(config, value);
|
|
40
|
+
if (!isResolved()) {
|
|
47
41
|
continueFn == null ? void 0 : continueFn();
|
|
48
42
|
thenable.resolve(value);
|
|
49
43
|
}
|
|
50
44
|
};
|
|
51
45
|
const reject = (value) => {
|
|
52
|
-
|
|
53
|
-
if (!isResolved) {
|
|
54
|
-
isResolved = true;
|
|
55
|
-
(_a = config.onError) == null ? void 0 : _a.call(config, value);
|
|
46
|
+
if (!isResolved()) {
|
|
56
47
|
continueFn == null ? void 0 : continueFn();
|
|
57
48
|
thenable.reject(value);
|
|
58
49
|
}
|
|
@@ -61,7 +52,7 @@ function createRetryer(config) {
|
|
|
61
52
|
return new Promise((continueResolve) => {
|
|
62
53
|
var _a;
|
|
63
54
|
continueFn = (value) => {
|
|
64
|
-
if (isResolved || canContinue()) {
|
|
55
|
+
if (isResolved() || canContinue()) {
|
|
65
56
|
continueResolve(value);
|
|
66
57
|
}
|
|
67
58
|
};
|
|
@@ -69,13 +60,13 @@ function createRetryer(config) {
|
|
|
69
60
|
}).then(() => {
|
|
70
61
|
var _a;
|
|
71
62
|
continueFn = void 0;
|
|
72
|
-
if (!isResolved) {
|
|
63
|
+
if (!isResolved()) {
|
|
73
64
|
(_a = config.onContinue) == null ? void 0 : _a.call(config);
|
|
74
65
|
}
|
|
75
66
|
});
|
|
76
67
|
};
|
|
77
68
|
const run = () => {
|
|
78
|
-
if (isResolved) {
|
|
69
|
+
if (isResolved()) {
|
|
79
70
|
return;
|
|
80
71
|
}
|
|
81
72
|
let promiseOrValue;
|
|
@@ -87,7 +78,7 @@ function createRetryer(config) {
|
|
|
87
78
|
}
|
|
88
79
|
Promise.resolve(promiseOrValue).then(resolve).catch((error) => {
|
|
89
80
|
var _a;
|
|
90
|
-
if (isResolved) {
|
|
81
|
+
if (isResolved()) {
|
|
91
82
|
return;
|
|
92
83
|
}
|
|
93
84
|
const retry = config.retry ?? (isServer ? 0 : 3);
|
|
@@ -113,6 +104,7 @@ function createRetryer(config) {
|
|
|
113
104
|
};
|
|
114
105
|
return {
|
|
115
106
|
promise: thenable,
|
|
107
|
+
status: () => thenable.status,
|
|
116
108
|
cancel,
|
|
117
109
|
continue: () => {
|
|
118
110
|
continueFn == null ? void 0 : continueFn();
|
|
@@ -134,6 +126,5 @@ function createRetryer(config) {
|
|
|
134
126
|
export {
|
|
135
127
|
CancelledError,
|
|
136
128
|
canFetch,
|
|
137
|
-
createRetryer
|
|
138
|
-
isCancelledError
|
|
129
|
+
createRetryer
|
|
139
130
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { shouldThrowError } from "../../../../../@tanstack_query-core@5.
|
|
2
|
+
import { shouldThrowError } from "../../../../../@tanstack_query-core@5.85.5/@tanstack/query-core/build/modern/utils.mjs";
|
|
3
3
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
|
|
4
4
|
if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
|
|
5
5
|
if (!errorResetBoundary.isReset()) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { notifyManager } from "../../../../../@tanstack_query-core@5.
|
|
3
|
-
import { noop, isServer } from "../../../../../@tanstack_query-core@5.
|
|
2
|
+
import { notifyManager } from "../../../../../@tanstack_query-core@5.85.5/@tanstack/query-core/build/modern/notifyManager.mjs";
|
|
3
|
+
import { noop, isServer } from "../../../../../@tanstack_query-core@5.85.5/@tanstack/query-core/build/modern/utils.mjs";
|
|
4
4
|
import { useQueryClient } from "./QueryClientProvider.mjs";
|
|
5
5
|
import { useQueryErrorResetBoundary } from "./QueryErrorResetBoundary.mjs";
|
|
6
6
|
import { ensurePreventErrorBoundaryRetry, useClearResetErrorBoundary, getHasError } from "./errorBoundaryUtils.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryObserver } from "../../../../../@tanstack_query-core@5.
|
|
1
|
+
import { QueryObserver } from "../../../../../@tanstack_query-core@5.85.5/@tanstack/query-core/build/modern/queryObserver.mjs";
|
|
2
2
|
import { useBaseQuery } from "./useBaseQuery.mjs";
|
|
3
3
|
function useQuery(options, queryClient) {
|
|
4
4
|
return useBaseQuery(options, QueryObserver);
|
|
@@ -6,7 +6,7 @@ function require_baseCreate() {
|
|
|
6
6
|
hasRequired_baseCreate = 1;
|
|
7
7
|
var isObject = requireIsObject();
|
|
8
8
|
var objectCreate = Object.create;
|
|
9
|
-
var baseCreate = /* @__PURE__ */ function() {
|
|
9
|
+
var baseCreate = /* @__PURE__ */ (function() {
|
|
10
10
|
function object() {
|
|
11
11
|
}
|
|
12
12
|
return function(proto) {
|
|
@@ -21,7 +21,7 @@ function require_baseCreate() {
|
|
|
21
21
|
object.prototype = void 0;
|
|
22
22
|
return result;
|
|
23
23
|
};
|
|
24
|
-
}();
|
|
24
|
+
})();
|
|
25
25
|
_baseCreate = baseCreate;
|
|
26
26
|
return _baseCreate;
|
|
27
27
|
}
|
|
@@ -5,14 +5,14 @@ function require_defineProperty() {
|
|
|
5
5
|
if (hasRequired_defineProperty) return _defineProperty;
|
|
6
6
|
hasRequired_defineProperty = 1;
|
|
7
7
|
var getNative = require_getNative();
|
|
8
|
-
var defineProperty = function() {
|
|
8
|
+
var defineProperty = (function() {
|
|
9
9
|
try {
|
|
10
10
|
var func = getNative(Object, "defineProperty");
|
|
11
11
|
func({}, "", {});
|
|
12
12
|
return func;
|
|
13
13
|
} catch (e) {
|
|
14
14
|
}
|
|
15
|
-
}();
|
|
15
|
+
})();
|
|
16
16
|
_defineProperty = defineProperty;
|
|
17
17
|
return _defineProperty;
|
|
18
18
|
}
|
|
@@ -5,10 +5,10 @@ function require_isMasked() {
|
|
|
5
5
|
if (hasRequired_isMasked) return _isMasked;
|
|
6
6
|
hasRequired_isMasked = 1;
|
|
7
7
|
var coreJsData = require_coreJsData();
|
|
8
|
-
var maskSrcKey = function() {
|
|
8
|
+
var maskSrcKey = (function() {
|
|
9
9
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
10
10
|
return uid ? "Symbol(src)_1." + uid : "";
|
|
11
|
-
}();
|
|
11
|
+
})();
|
|
12
12
|
function isMasked(func) {
|
|
13
13
|
return !!maskSrcKey && maskSrcKey in func;
|
|
14
14
|
}
|
|
@@ -11,7 +11,7 @@ function require_nodeUtil() {
|
|
|
11
11
|
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
12
12
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
13
13
|
var freeProcess = moduleExports && freeGlobal.process;
|
|
14
|
-
var nodeUtil = function() {
|
|
14
|
+
var nodeUtil = (function() {
|
|
15
15
|
try {
|
|
16
16
|
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
17
17
|
if (types) {
|
|
@@ -20,7 +20,7 @@ function require_nodeUtil() {
|
|
|
20
20
|
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
21
21
|
} catch (e) {
|
|
22
22
|
}
|
|
23
|
-
}();
|
|
23
|
+
})();
|
|
24
24
|
module.exports = nodeUtil;
|
|
25
25
|
})(_nodeUtil, _nodeUtil.exports);
|
|
26
26
|
return _nodeUtil.exports;
|
|
@@ -435,7 +435,7 @@ function require_mapping() {
|
|
|
435
435
|
"updateWith": true
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
|
-
exports.realToAlias = function() {
|
|
438
|
+
exports.realToAlias = (function() {
|
|
439
439
|
var hasOwnProperty = Object.prototype.hasOwnProperty, object = exports.aliasToReal, result = {};
|
|
440
440
|
for (var key in object) {
|
|
441
441
|
var value = object[key];
|
|
@@ -446,7 +446,7 @@ function require_mapping() {
|
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
return result;
|
|
449
|
-
}();
|
|
449
|
+
})();
|
|
450
450
|
exports.remap = {
|
|
451
451
|
"assignAll": "assign",
|
|
452
452
|
"assignAllWith": "assignWith",
|
|
@@ -9,9 +9,9 @@ function requireIsArguments() {
|
|
|
9
9
|
var objectProto = Object.prototype;
|
|
10
10
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
11
11
|
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
12
|
-
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
12
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ (function() {
|
|
13
13
|
return arguments;
|
|
14
|
-
}()) ? baseIsArguments : function(value) {
|
|
14
|
+
})()) ? baseIsArguments : function(value) {
|
|
15
15
|
return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
16
16
|
};
|
|
17
17
|
isArguments_1 = isArguments;
|
|
@@ -345,7 +345,7 @@ function requireLodash() {
|
|
|
345
345
|
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
346
346
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
347
347
|
var freeProcess = moduleExports && freeGlobal.process;
|
|
348
|
-
var nodeUtil = function() {
|
|
348
|
+
var nodeUtil = (function() {
|
|
349
349
|
try {
|
|
350
350
|
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
351
351
|
if (types) {
|
|
@@ -354,7 +354,7 @@ function requireLodash() {
|
|
|
354
354
|
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
355
355
|
} catch (e) {
|
|
356
356
|
}
|
|
357
|
-
}();
|
|
357
|
+
})();
|
|
358
358
|
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;
|
|
359
359
|
function apply(func, thisArg, args) {
|
|
360
360
|
switch (args.length) {
|
|
@@ -700,7 +700,7 @@ function requireLodash() {
|
|
|
700
700
|
function unicodeWords(string) {
|
|
701
701
|
return string.match(reUnicodeWord) || [];
|
|
702
702
|
}
|
|
703
|
-
var runInContext = function runInContext2(context) {
|
|
703
|
+
var runInContext = (function runInContext2(context) {
|
|
704
704
|
context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
|
|
705
705
|
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;
|
|
706
706
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
|
@@ -708,10 +708,10 @@ function requireLodash() {
|
|
|
708
708
|
var funcToString = funcProto.toString;
|
|
709
709
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
710
710
|
var idCounter = 0;
|
|
711
|
-
var maskSrcKey = function() {
|
|
711
|
+
var maskSrcKey = (function() {
|
|
712
712
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
713
713
|
return uid ? "Symbol(src)_1." + uid : "";
|
|
714
|
-
}();
|
|
714
|
+
})();
|
|
715
715
|
var nativeObjectToString = objectProto.toString;
|
|
716
716
|
var objectCtorString = funcToString.call(Object2);
|
|
717
717
|
var oldDash = root._;
|
|
@@ -719,14 +719,14 @@ function requireLodash() {
|
|
|
719
719
|
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
720
720
|
);
|
|
721
721
|
var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol = 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 = Symbol ? Symbol.isConcatSpreadable : undefined$1, symIterator = Symbol ? Symbol.iterator : undefined$1, symToStringTag = Symbol ? Symbol.toStringTag : undefined$1;
|
|
722
|
-
var defineProperty = function() {
|
|
722
|
+
var defineProperty = (function() {
|
|
723
723
|
try {
|
|
724
724
|
var func = getNative(Object2, "defineProperty");
|
|
725
725
|
func({}, "", {});
|
|
726
726
|
return func;
|
|
727
727
|
} catch (e) {
|
|
728
728
|
}
|
|
729
|
-
}();
|
|
729
|
+
})();
|
|
730
730
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
731
731
|
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;
|
|
732
732
|
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");
|
|
@@ -745,7 +745,7 @@ function requireLodash() {
|
|
|
745
745
|
}
|
|
746
746
|
return new LodashWrapper(value);
|
|
747
747
|
}
|
|
748
|
-
var baseCreate = /* @__PURE__ */ function() {
|
|
748
|
+
var baseCreate = /* @__PURE__ */ (function() {
|
|
749
749
|
function object() {
|
|
750
750
|
}
|
|
751
751
|
return function(proto) {
|
|
@@ -760,7 +760,7 @@ function requireLodash() {
|
|
|
760
760
|
object.prototype = undefined$1;
|
|
761
761
|
return result2;
|
|
762
762
|
};
|
|
763
|
-
}();
|
|
763
|
+
})();
|
|
764
764
|
function baseLodash() {
|
|
765
765
|
}
|
|
766
766
|
function LodashWrapper(value, chainAll) {
|
|
@@ -4052,9 +4052,9 @@ function requireLodash() {
|
|
|
4052
4052
|
var gte = createRelationalOperation(function(value, other) {
|
|
4053
4053
|
return value >= other;
|
|
4054
4054
|
});
|
|
4055
|
-
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
4055
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ (function() {
|
|
4056
4056
|
return arguments;
|
|
4057
|
-
}()) ? baseIsArguments : function(value) {
|
|
4057
|
+
})()) ? baseIsArguments : function(value) {
|
|
4058
4058
|
return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
4059
4059
|
};
|
|
4060
4060
|
var isArray = Array2.isArray;
|
|
@@ -5306,7 +5306,7 @@ function requireLodash() {
|
|
|
5306
5306
|
lodash2.each = forEach;
|
|
5307
5307
|
lodash2.eachRight = forEachRight;
|
|
5308
5308
|
lodash2.first = head;
|
|
5309
|
-
mixin(lodash2, function() {
|
|
5309
|
+
mixin(lodash2, (function() {
|
|
5310
5310
|
var source = {};
|
|
5311
5311
|
baseForOwn(lodash2, function(func, methodName) {
|
|
5312
5312
|
if (!hasOwnProperty.call(lodash2.prototype, methodName)) {
|
|
@@ -5314,7 +5314,7 @@ function requireLodash() {
|
|
|
5314
5314
|
}
|
|
5315
5315
|
});
|
|
5316
5316
|
return source;
|
|
5317
|
-
}(), { "chain": false });
|
|
5317
|
+
})(), { "chain": false });
|
|
5318
5318
|
lodash2.VERSION = VERSION;
|
|
5319
5319
|
arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
|
|
5320
5320
|
lodash2[methodName].placeholder = lodash2;
|
|
@@ -5474,7 +5474,7 @@ function requireLodash() {
|
|
|
5474
5474
|
lodash2.prototype[symIterator] = wrapperToIterator;
|
|
5475
5475
|
}
|
|
5476
5476
|
return lodash2;
|
|
5477
|
-
};
|
|
5477
|
+
});
|
|
5478
5478
|
var _ = runInContext();
|
|
5479
5479
|
if (freeModule) {
|
|
5480
5480
|
(freeModule.exports = _)._ = _;
|
|
@@ -16,7 +16,7 @@ const createImpl = (createState) => {
|
|
|
16
16
|
Object.assign(useBoundStore, api);
|
|
17
17
|
return useBoundStore;
|
|
18
18
|
};
|
|
19
|
-
const create = (createState) => createState ? createImpl(createState) : createImpl;
|
|
19
|
+
const create = ((createState) => createState ? createImpl(createState) : createImpl);
|
|
20
20
|
export {
|
|
21
21
|
create,
|
|
22
22
|
useStore
|
|
@@ -19,7 +19,7 @@ const createStoreImpl = (createState) => {
|
|
|
19
19
|
const initialState = state = createState(setState, getState, api);
|
|
20
20
|
return api;
|
|
21
21
|
};
|
|
22
|
-
const createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
22
|
+
const createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
|
|
23
23
|
export {
|
|
24
24
|
createStore
|
|
25
25
|
};
|
|
@@ -65,7 +65,10 @@ function CommonModal({
|
|
|
65
65
|
!(titleOptions == null ? void 0 : titleOptions.hideOverlay) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
66
66
|
core.CloseButton,
|
|
67
67
|
{
|
|
68
|
-
onClick: () =>
|
|
68
|
+
onClick: (e) => {
|
|
69
|
+
e == null ? void 0 : e.stopPropagation();
|
|
70
|
+
setView(view !== constants.VIEW_MODE.OVERLAY ? constants.VIEW_MODE.OVERLAY : constants.VIEW_MODE.NORMAL);
|
|
71
|
+
},
|
|
69
72
|
title: view !== constants.VIEW_MODE.OVERLAY ? "Overlay" : "Exit overlay",
|
|
70
73
|
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
71
74
|
iconify.Icon,
|
|
@@ -73,13 +76,17 @@ function CommonModal({
|
|
|
73
76
|
icon: view !== constants.VIEW_MODE.OVERLAY ? "tabler:stack-forward" : "tabler:stack",
|
|
74
77
|
fontSize: "1.25rem"
|
|
75
78
|
}
|
|
76
|
-
)
|
|
79
|
+
),
|
|
80
|
+
...utils.parseFromValuesOrFunc(titleOptions == null ? void 0 : titleOptions.overlayButtonProps, { view, setView })
|
|
77
81
|
}
|
|
78
82
|
),
|
|
79
83
|
!(titleOptions == null ? void 0 : titleOptions.hideFullScreen) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
80
84
|
core.CloseButton,
|
|
81
85
|
{
|
|
82
|
-
onClick: () =>
|
|
86
|
+
onClick: (e) => {
|
|
87
|
+
e == null ? void 0 : e.stopPropagation();
|
|
88
|
+
setView(view !== constants.VIEW_MODE.FULL_SCREEN ? constants.VIEW_MODE.FULL_SCREEN : constants.VIEW_MODE.NORMAL);
|
|
89
|
+
},
|
|
83
90
|
title: view !== constants.VIEW_MODE.FULL_SCREEN ? "Full screen" : "Exit full screen",
|
|
84
91
|
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
85
92
|
iconify.Icon,
|
|
@@ -87,7 +94,8 @@ function CommonModal({
|
|
|
87
94
|
icon: view !== constants.VIEW_MODE.FULL_SCREEN ? "tabler:maximize" : "tabler:minimize",
|
|
88
95
|
fontSize: "1.25rem"
|
|
89
96
|
}
|
|
90
|
-
)
|
|
97
|
+
),
|
|
98
|
+
...utils.parseFromValuesOrFunc(titleOptions == null ? void 0 : titleOptions.fullScreenButtonProps, { view, setView })
|
|
91
99
|
}
|
|
92
100
|
),
|
|
93
101
|
utils.parseFromValuesOrFunc(titleOptions == null ? void 0 : titleOptions.right, { view, setView })
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const core = require("@mantine/core");
|
|
5
5
|
const form = require("@mantine/form");
|
|
6
6
|
const hooks = require("@mantine/hooks");
|
|
7
|
-
const index = require("../../../../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.
|
|
7
|
+
const index = require("../../../../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.7_yup@1.7.0/mantine-form-yup-resolver/dist/esm/index.cjs");
|
|
8
8
|
const React = require("react");
|
|
9
9
|
const index_esm = require("../../../../../../.external/cjs/yup@1.7.0/yup/index.esm.cjs");
|
|
10
10
|
const useApi = require("../../../../hooks/api/useApi.cjs");
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const utils = require("fastapi-rtk/utils");
|
|
5
5
|
const hooks = require("@mantine/hooks");
|
|
6
|
-
const utils$1 = require("../../../../../.external/cjs/@tanstack_query-core@5.
|
|
7
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
6
|
+
const utils$1 = require("../../../../../.external/cjs/@tanstack_query-core@5.85.5/@tanstack/query-core/build/modern/utils.cjs");
|
|
7
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.85.5_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
8
8
|
const createItem = require("../utils/api/createItem.cjs");
|
|
9
9
|
const deleteItem = require("../utils/api/deleteItem.cjs");
|
|
10
10
|
const downloadItems = require("../utils/api/downloadItems.cjs");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const constants = require("fastapi-rtk/constants");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const react = require("../../../../../.external/cjs/zustand@5.0.
|
|
5
|
+
const react = require("../../../../../.external/cjs/zustand@5.0.8_@types_react@18.3.24_react@18.3.1/zustand/esm/react.cjs");
|
|
6
6
|
const useProvideForm = () => {
|
|
7
7
|
const [storeAdd] = React.useState(
|
|
8
8
|
() => react.create((set, get) => ({
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const zustand = require("fastapi-rtk/zustand");
|
|
5
|
-
const queryClient = require("../../../../.external/cjs/@tanstack_query-core@5.
|
|
6
|
-
const QueryClientProvider = require("../../../../.external/cjs/@tanstack_react-query@5.
|
|
5
|
+
const queryClient = require("../../../../.external/cjs/@tanstack_query-core@5.85.5/@tanstack/query-core/build/modern/queryClient.cjs");
|
|
6
|
+
const QueryClientProvider = require("../../../../.external/cjs/@tanstack_react-query@5.85.5_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
7
7
|
const React = require("react");
|
|
8
8
|
const useProvideAuth = require("../../fab-react-toolkit-patch/auth/hooks/useProvideAuth.cjs");
|
|
9
9
|
const useProvideInfo = require("../../fab-react-toolkit-patch/auth/hooks/useProvideInfo.cjs");
|