zudoku 0.6.2-dev.4 → 0.6.2-dev.6
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/cli/dev/handler.js +5 -1
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +9 -0
- package/dist/config/validators/InputSidebarSchema.js +2 -0
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/SidebarSchema.d.ts +9 -3
- package/dist/config/validators/SidebarSchema.js +7 -3
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/config/validators/validate.d.ts +26 -0
- package/dist/config/validators/validate.js +6 -0
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +5 -3
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +2 -2
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/icons.d.ts +1 -0
- package/dist/lib/icons.js +2 -0
- package/dist/lib/icons.js.map +1 -0
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/vite/plugin-icons.d.ts +3 -0
- package/dist/vite/plugin-icons.js +47 -0
- package/dist/vite/plugin-icons.js.map +1 -0
- package/dist/vite/plugin-sidebar.js +10 -1
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin.js +2 -0
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.js +23 -0
- package/dist/vite/prerender.js.map +1 -1
- package/lib/AuthenticationPlugin-BMjOjKqE.js +54 -0
- package/lib/{AuthenticationPlugin-DYnkydqa.js.map → AuthenticationPlugin-BMjOjKqE.js.map} +1 -1
- package/lib/CategoryHeading-BE8e6QdS.js +9 -0
- package/lib/{CategoryHeading-w2EW676o.js.map → CategoryHeading-BE8e6QdS.js.map} +1 -1
- package/lib/DeveloperHint-Bl9gIdNI.js +12 -0
- package/lib/{DeveloperHint-D87KcpDW.js.map → DeveloperHint-Bl9gIdNI.js.map} +1 -1
- package/lib/ErrorPage-CPR1XVKW.js +12 -0
- package/lib/{ErrorPage-BdHAg3Rg.js.map → ErrorPage-CPR1XVKW.js.map} +1 -1
- package/lib/Input-BBlyeDuG.js +2192 -0
- package/lib/Input-BBlyeDuG.js.map +1 -0
- package/lib/{Markdown-BZUoEvL7.js → Markdown-CCNihH_N.js} +3189 -3354
- package/lib/Markdown-CCNihH_N.js.map +1 -0
- package/lib/MdxPage-BavkYqzi.js +140 -0
- package/lib/MdxPage-BavkYqzi.js.map +1 -0
- package/lib/OperationList-C6Ps2keZ.js +460 -0
- package/lib/OperationList-C6Ps2keZ.js.map +1 -0
- package/lib/Route-xRJ9mJgH.js +13 -0
- package/lib/{Route-5sI-urRK.js.map → Route-xRJ9mJgH.js.map} +1 -1
- package/lib/{SidebarBadge-6EEz-Bwe.js → SidebarBadge-2JcxswKF.js} +47 -47
- package/lib/{SidebarBadge-6EEz-Bwe.js.map → SidebarBadge-2JcxswKF.js.map} +1 -1
- package/lib/SlotletProvider-CuB3Ts8r.js +213 -0
- package/lib/SlotletProvider-CuB3Ts8r.js.map +1 -0
- package/lib/Spinner-BlxzaFFF.js +6 -0
- package/lib/Spinner-BlxzaFFF.js.map +1 -0
- package/lib/{ZudokuContext-BHNQL3XO.js → ZudokuContext-JoyeA9dT.js} +78 -79
- package/lib/{ZudokuContext-BHNQL3XO.js.map → ZudokuContext-JoyeA9dT.js.map} +1 -1
- package/lib/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +3 -3
- package/lib/_commonjsHelpers-BkfeUUK-.js.map +1 -0
- package/lib/{index-DdUotMOQ.js → index-BF4cn28H.js} +1953 -2196
- package/lib/index-BF4cn28H.js.map +1 -0
- package/lib/{index-BGY8VjAV.js → index-BLvMkqjO.js} +26 -26
- package/lib/{index-BGY8VjAV.js.map → index-BLvMkqjO.js.map} +1 -1
- package/lib/{index-CbJpF8Yf.js → index-G1-TGLO1.js} +8 -8
- package/lib/{index-CbJpF8Yf.js.map → index-G1-TGLO1.js.map} +1 -1
- package/lib/jsx-runtime-lNnQYwFN.js +2403 -0
- package/lib/jsx-runtime-lNnQYwFN.js.map +1 -0
- package/lib/{router-BiRCp01d.js → router-D2p7Olpn.js} +22 -22
- package/lib/{router-BiRCp01d.js.map → router-D2p7Olpn.js.map} +1 -1
- package/lib/{slugify-CiPVjteN.js → slugify-DbLhpSPt.js} +2 -2
- package/lib/{slugify-CiPVjteN.js.map → slugify-DbLhpSPt.js.map} +1 -1
- package/lib/{state-DsXXkBLH.js → state-lIwt9isb.js} +15 -15
- package/lib/{state-DsXXkBLH.js.map → state-lIwt9isb.js.map} +1 -1
- package/lib/{utils-BPHLKjns.js → utils-B8R4grFM.js} +152 -153
- package/lib/{utils-BPHLKjns.js.map → utils-B8R4grFM.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +16 -21
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +32 -37
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +485 -505
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1574 -1782
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.icons.js +2 -0
- package/lib/zudoku.icons.js.map +1 -0
- package/lib/zudoku.openapi-worker.js +2 -2
- package/lib/zudoku.plugin-api-keys.js +153 -268
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-page.js +5 -6
- package/lib/zudoku.plugin-custom-page.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +12 -13
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +8 -8
- package/lib/zudoku.plugin-redirect.js +3 -3
- package/lib/zudoku.plugin-search-inkeep.js +20 -21
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +7 -3
- package/src/lib/components/navigation/SidebarCategory.tsx +43 -31
- package/src/lib/components/navigation/SidebarItem.tsx +2 -1
- package/src/lib/icons.ts +1 -0
- package/lib/AuthenticationPlugin-DYnkydqa.js +0 -55
- package/lib/CategoryHeading-w2EW676o.js +0 -10
- package/lib/DeveloperHint-D87KcpDW.js +0 -16
- package/lib/ErrorPage-BdHAg3Rg.js +0 -18
- package/lib/Input-BmwltPfA.js +0 -2214
- package/lib/Input-BmwltPfA.js.map +0 -1
- package/lib/Markdown-BZUoEvL7.js.map +0 -1
- package/lib/MdxPage-E4NFxzHQ.js +0 -183
- package/lib/MdxPage-E4NFxzHQ.js.map +0 -1
- package/lib/OperationList-DVIuzHN7.js +0 -628
- package/lib/OperationList-DVIuzHN7.js.map +0 -1
- package/lib/Route-5sI-urRK.js +0 -14
- package/lib/SlotletProvider-CNyl5wU0.js +0 -262
- package/lib/SlotletProvider-CNyl5wU0.js.map +0 -1
- package/lib/Spinner-B9eFggre.js +0 -15
- package/lib/Spinner-B9eFggre.js.map +0 -1
- package/lib/_commonjsHelpers-BVfed4GL.js.map +0 -1
- package/lib/index-ChhUJhLT.js +0 -1771
- package/lib/index-ChhUJhLT.js.map +0 -1
- package/lib/index-DdUotMOQ.js.map +0 -1
- package/lib/jsx-runtime-B6kdoens.js +0 -635
- package/lib/jsx-runtime-B6kdoens.js.map +0 -1
|
@@ -5,8 +5,7 @@ var ct = (e, t, s) => t.has(e) || qt("Cannot " + s);
|
|
|
5
5
|
var i = (e, t, s) => (ct(e, t, "read from private field"), s ? s.call(e) : t.get(e)), f = (e, t, s) => t.has(e) ? qt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), h = (e, t, s, r) => (ct(e, t, "write to private field"), r ? r.call(e, s) : t.set(e, s), s), v = (e, t, s) => (ct(e, t, "access private method"), s);
|
|
6
6
|
import * as T from "react";
|
|
7
7
|
import { createContext as re, useContext as ie } from "react";
|
|
8
|
-
import { j as ne } from "./jsx-runtime-
|
|
9
|
-
import { c as Bt } from "./index-ChhUJhLT.js";
|
|
8
|
+
import { j as ne, b as Bt } from "./jsx-runtime-lNnQYwFN.js";
|
|
10
9
|
var Dt = class {
|
|
11
10
|
constructor() {
|
|
12
11
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
@@ -26,7 +25,7 @@ var Dt = class {
|
|
|
26
25
|
}, st = typeof window > "u" || "Deno" in globalThis;
|
|
27
26
|
function dt() {
|
|
28
27
|
}
|
|
29
|
-
function
|
|
28
|
+
function Me(e, t) {
|
|
30
29
|
return typeof e == "function" ? e(t) : e;
|
|
31
30
|
}
|
|
32
31
|
function ft(e) {
|
|
@@ -41,7 +40,7 @@ function ut(e, t) {
|
|
|
41
40
|
function q(e, t) {
|
|
42
41
|
return typeof e == "function" ? e(t) : e;
|
|
43
42
|
}
|
|
44
|
-
function
|
|
43
|
+
function Le(e, t) {
|
|
45
44
|
const {
|
|
46
45
|
type: s = "all",
|
|
47
46
|
exact: r,
|
|
@@ -58,13 +57,13 @@ function Ne(e, t) {
|
|
|
58
57
|
return !1;
|
|
59
58
|
}
|
|
60
59
|
if (s !== "all") {
|
|
61
|
-
const
|
|
62
|
-
if (s === "active" && !
|
|
60
|
+
const m = t.isActive();
|
|
61
|
+
if (s === "active" && !m || s === "inactive" && m)
|
|
63
62
|
return !1;
|
|
64
63
|
}
|
|
65
64
|
return !(typeof l == "boolean" && t.isStale() !== l || n && n !== t.state.fetchStatus || c && !c(t));
|
|
66
65
|
}
|
|
67
|
-
function
|
|
66
|
+
function Ne(e, t) {
|
|
68
67
|
const { exact: s, status: r, predicate: n, mutationKey: c } = e;
|
|
69
68
|
if (c) {
|
|
70
69
|
if (!t.options.mutationKey)
|
|
@@ -95,12 +94,12 @@ function Ht(e, t) {
|
|
|
95
94
|
const s = It(e) && It(t);
|
|
96
95
|
if (s || vt(e) && vt(t)) {
|
|
97
96
|
const r = s ? e : Object.keys(e), n = r.length, c = s ? t : Object.keys(t), o = c.length, l = s ? [] : {};
|
|
98
|
-
let
|
|
97
|
+
let m = 0;
|
|
99
98
|
for (let R = 0; R < o; R++) {
|
|
100
|
-
const
|
|
101
|
-
(!s && r.includes(
|
|
99
|
+
const b = s ? R : c[R];
|
|
100
|
+
(!s && r.includes(b) || s) && e[b] === void 0 && t[b] === void 0 ? (l[b] = void 0, m++) : (l[b] = Ht(e[b], t[b]), l[b] === e[b] && e[b] !== void 0 && m++);
|
|
102
101
|
}
|
|
103
|
-
return n === o &&
|
|
102
|
+
return n === o && m === n ? e : l;
|
|
104
103
|
}
|
|
105
104
|
return t;
|
|
106
105
|
}
|
|
@@ -132,20 +131,20 @@ function oe(e) {
|
|
|
132
131
|
setTimeout(t, e);
|
|
133
132
|
});
|
|
134
133
|
}
|
|
135
|
-
function
|
|
134
|
+
function bt(e, t, s) {
|
|
136
135
|
return typeof s.structuralSharing == "function" ? s.structuralSharing(e, t) : s.structuralSharing !== !1 ? Ht(e, t) : t;
|
|
137
136
|
}
|
|
138
|
-
function
|
|
137
|
+
function Ke(e, t, s = 0) {
|
|
139
138
|
const r = [...e, t];
|
|
140
139
|
return s && r.length > s ? r.slice(1) : r;
|
|
141
140
|
}
|
|
142
|
-
function
|
|
141
|
+
function _e(e, t, s = 0) {
|
|
143
142
|
const r = [t, ...e];
|
|
144
143
|
return s && r.length > s ? r.slice(0, -1) : r;
|
|
145
144
|
}
|
|
146
|
-
var
|
|
145
|
+
var mt = Symbol(), ue = (e, t) => (process.env.NODE_ENV !== "production" && e.queryFn === mt && console.error(
|
|
147
146
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
|
148
|
-
), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn ===
|
|
147
|
+
), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === mt ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn), N, k, z, Mt, he = (Mt = class extends Dt {
|
|
149
148
|
constructor() {
|
|
150
149
|
super();
|
|
151
150
|
f(this, N);
|
|
@@ -239,12 +238,12 @@ function de(e) {
|
|
|
239
238
|
let t = !1, s = 0, r = !1, n, c, o;
|
|
240
239
|
const l = new Promise((g, S) => {
|
|
241
240
|
c = g, o = S;
|
|
242
|
-
}),
|
|
241
|
+
}), m = (g) => {
|
|
243
242
|
var S;
|
|
244
243
|
r || (O(new Wt(g)), (S = e.abort) == null || S.call(e));
|
|
245
244
|
}, R = () => {
|
|
246
245
|
t = !0;
|
|
247
|
-
},
|
|
246
|
+
}, b = () => {
|
|
248
247
|
t = !1;
|
|
249
248
|
}, a = () => Vt.isFocused() && (e.networkMode === "always" || zt.isOnline()) && e.canRun(), u = () => $t(e.networkMode) && e.canRun(), p = (g) => {
|
|
250
249
|
var S;
|
|
@@ -286,10 +285,10 @@ function de(e) {
|
|
|
286
285
|
};
|
|
287
286
|
return {
|
|
288
287
|
promise: l,
|
|
289
|
-
cancel:
|
|
288
|
+
cancel: m,
|
|
290
289
|
continue: () => (n == null || n(), l),
|
|
291
290
|
cancelRetry: R,
|
|
292
|
-
continueRetry:
|
|
291
|
+
continueRetry: b,
|
|
293
292
|
canStart: u,
|
|
294
293
|
start: () => (u() ? A() : U().then(A), l)
|
|
295
294
|
};
|
|
@@ -315,7 +314,7 @@ function fe() {
|
|
|
315
314
|
t ? e.push(u) : n(() => {
|
|
316
315
|
s(u);
|
|
317
316
|
});
|
|
318
|
-
},
|
|
317
|
+
}, m = (u) => (...p) => {
|
|
319
318
|
l(() => {
|
|
320
319
|
u(...p);
|
|
321
320
|
});
|
|
@@ -331,7 +330,7 @@ function fe() {
|
|
|
331
330
|
};
|
|
332
331
|
return {
|
|
333
332
|
batch: o,
|
|
334
|
-
batchCalls:
|
|
333
|
+
batchCalls: m,
|
|
335
334
|
schedule: l,
|
|
336
335
|
setNotifyFunction: (u) => {
|
|
337
336
|
s = u;
|
|
@@ -363,7 +362,7 @@ var Tt = fe(), K, Nt, ye = (Nt = class {
|
|
|
363
362
|
clearGcTimeout() {
|
|
364
363
|
i(this, K) && (clearTimeout(i(this, K)), h(this, K, void 0));
|
|
365
364
|
}
|
|
366
|
-
}, K = new WeakMap(), Nt), Z, J, P, C, it, _, Q, x, Kt,
|
|
365
|
+
}, K = new WeakMap(), Nt), Z, J, P, C, it, _, Q, x, Kt, Be = (Kt = class extends ye {
|
|
367
366
|
constructor(t) {
|
|
368
367
|
super();
|
|
369
368
|
f(this, Q);
|
|
@@ -389,7 +388,7 @@ var Tt = fe(), K, Nt, ye = (Nt = class {
|
|
|
389
388
|
!this.observers.length && this.state.fetchStatus === "idle" && i(this, P).remove(this);
|
|
390
389
|
}
|
|
391
390
|
setData(t, s) {
|
|
392
|
-
const r =
|
|
391
|
+
const r = bt(this.state.data, t, this.options);
|
|
393
392
|
return v(this, Q, x).call(this, {
|
|
394
393
|
data: r,
|
|
395
394
|
type: "success",
|
|
@@ -450,7 +449,7 @@ var Tt = fe(), K, Nt, ye = (Nt = class {
|
|
|
450
449
|
this.state.isInvalidated || v(this, Q, x).call(this, { type: "invalidate" });
|
|
451
450
|
}
|
|
452
451
|
fetch(t, s) {
|
|
453
|
-
var
|
|
452
|
+
var m, R, b;
|
|
454
453
|
if (this.state.fetchStatus !== "idle") {
|
|
455
454
|
if (this.state.data !== void 0 && (s != null && s.cancelRefetch))
|
|
456
455
|
this.cancel({ silent: !0 });
|
|
@@ -486,10 +485,10 @@ var Tt = fe(), K, Nt, ye = (Nt = class {
|
|
|
486
485
|
state: this.state,
|
|
487
486
|
fetchFn: c
|
|
488
487
|
};
|
|
489
|
-
n(o), (
|
|
488
|
+
n(o), (m = this.options.behavior) == null || m.onFetch(
|
|
490
489
|
o,
|
|
491
490
|
this
|
|
492
|
-
), h(this, J, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((R = o.fetchOptions) == null ? void 0 : R.meta)) && v(this, Q, x).call(this, { type: "fetch", meta: (
|
|
491
|
+
), h(this, J, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((R = o.fetchOptions) == null ? void 0 : R.meta)) && v(this, Q, x).call(this, { type: "fetch", meta: (b = o.fetchOptions) == null ? void 0 : b.meta });
|
|
493
492
|
const l = (a) => {
|
|
494
493
|
var u, p, O, U;
|
|
495
494
|
lt(a) && a.silent || v(this, Q, x).call(this, {
|
|
@@ -710,7 +709,7 @@ var E, d, nt, F, B, X, I, at, Y, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
|
|
|
710
709
|
}
|
|
711
710
|
getOptimisticResult(t) {
|
|
712
711
|
const s = i(this, E).getQueryCache().build(i(this, E), t), r = this.createResult(s, t);
|
|
713
|
-
return
|
|
712
|
+
return be(this, r) && (h(this, F, r), h(this, X, this.options), h(this, B, i(this, d).state)), r;
|
|
714
713
|
}
|
|
715
714
|
getCurrentResult() {
|
|
716
715
|
return i(this, F);
|
|
@@ -748,13 +747,13 @@ var E, d, nt, F, B, X, I, at, Y, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
|
|
|
748
747
|
}
|
|
749
748
|
createResult(t, s) {
|
|
750
749
|
var ot;
|
|
751
|
-
const r = i(this, d), n = this.options, c = i(this, F), o = i(this, B), l = i(this, X), R = t !== r ? t.state : i(this, nt), { state:
|
|
752
|
-
let a = { ...
|
|
750
|
+
const r = i(this, d), n = this.options, c = i(this, F), o = i(this, B), l = i(this, X), R = t !== r ? t.state : i(this, nt), { state: b } = t;
|
|
751
|
+
let a = { ...b }, u = !1, p;
|
|
753
752
|
if (s._optimisticResults) {
|
|
754
753
|
const w = this.hasListeners(), ht = !w && jt(t, s), se = w && kt(t, r, s, n);
|
|
755
754
|
(ht || se) && (a = {
|
|
756
755
|
...a,
|
|
757
|
-
...Zt(
|
|
756
|
+
...Zt(b.data, t.options)
|
|
758
757
|
}), s._optimisticResults === "isRestoring" && (a.fetchStatus = "idle");
|
|
759
758
|
}
|
|
760
759
|
let { error: O, errorUpdatedAt: U, status: A } = a;
|
|
@@ -763,7 +762,7 @@ var E, d, nt, F, B, X, I, at, Y, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
|
|
|
763
762
|
p = i(this, Y);
|
|
764
763
|
else
|
|
765
764
|
try {
|
|
766
|
-
h(this, at, s.select), p = s.select(a.data), p =
|
|
765
|
+
h(this, at, s.select), p = s.select(a.data), p = bt(c == null ? void 0 : c.data, p, s), h(this, Y, p), h(this, I, null);
|
|
767
766
|
} catch (w) {
|
|
768
767
|
h(this, I, w);
|
|
769
768
|
}
|
|
@@ -782,7 +781,7 @@ var E, d, nt, F, B, X, I, at, Y, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
|
|
|
782
781
|
} catch (ht) {
|
|
783
782
|
h(this, I, ht);
|
|
784
783
|
}
|
|
785
|
-
w !== void 0 && (A = "success", p =
|
|
784
|
+
w !== void 0 && (A = "success", p = bt(
|
|
786
785
|
c == null ? void 0 : c.data,
|
|
787
786
|
w,
|
|
788
787
|
s
|
|
@@ -828,12 +827,12 @@ var E, d, nt, F, B, X, I, at, Y, tt, G, H, L, et, y, rt, gt, Rt, St, Ct, wt, Ft,
|
|
|
828
827
|
const { notifyOnChangeProps: o } = this.options, l = typeof o == "function" ? o() : o;
|
|
829
828
|
if (l === "all" || !l && !i(this, et).size)
|
|
830
829
|
return !0;
|
|
831
|
-
const
|
|
830
|
+
const m = new Set(
|
|
832
831
|
l ?? i(this, et)
|
|
833
832
|
);
|
|
834
|
-
return this.options.throwOnError &&
|
|
835
|
-
const
|
|
836
|
-
return i(this, F)[
|
|
833
|
+
return this.options.throwOnError && m.add("error"), Object.keys(i(this, F)).some((R) => {
|
|
834
|
+
const b = R;
|
|
835
|
+
return i(this, F)[b] !== s[b] && m.has(b);
|
|
837
836
|
});
|
|
838
837
|
};
|
|
839
838
|
(t == null ? void 0 : t.listeners) !== !1 && c() && (n.listeners = !0), v(this, y, Xt).call(this, { ...n, ...t });
|
|
@@ -907,17 +906,17 @@ function kt(e, t, s, r) {
|
|
|
907
906
|
function Ut(e, t) {
|
|
908
907
|
return q(t.enabled, e) !== !1 && e.isStaleByTime(ut(t.staleTime, e));
|
|
909
908
|
}
|
|
910
|
-
function
|
|
909
|
+
function be(e, t) {
|
|
911
910
|
return !pt(e.getCurrentResult(), t);
|
|
912
911
|
}
|
|
913
912
|
var Yt = T.createContext(
|
|
914
913
|
void 0
|
|
915
|
-
),
|
|
914
|
+
), me = (e) => {
|
|
916
915
|
const t = T.useContext(Yt);
|
|
917
916
|
if (!t)
|
|
918
917
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
919
918
|
return t;
|
|
920
|
-
},
|
|
919
|
+
}, Ge = ({
|
|
921
920
|
client: e,
|
|
922
921
|
children: t
|
|
923
922
|
}) => (T.useEffect(() => (e.mount(), () => {
|
|
@@ -940,7 +939,7 @@ var Se = T.createContext(Re()), Ce = () => T.useContext(Se);
|
|
|
940
939
|
function we(e, t) {
|
|
941
940
|
return typeof e == "function" ? e(...t) : !!e;
|
|
942
941
|
}
|
|
943
|
-
function
|
|
942
|
+
function He() {
|
|
944
943
|
}
|
|
945
944
|
var Fe = (e, t) => {
|
|
946
945
|
(e.suspense || e.throwOnError) && (t.isReset() || (e.retryOnMount = !1));
|
|
@@ -959,13 +958,13 @@ var Fe = (e, t) => {
|
|
|
959
958
|
s.clearReset();
|
|
960
959
|
});
|
|
961
960
|
function ee(e, t, s) {
|
|
962
|
-
var R,
|
|
961
|
+
var R, b, a, u;
|
|
963
962
|
if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
|
|
964
963
|
throw new Error(
|
|
965
964
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
966
965
|
);
|
|
967
|
-
const r =
|
|
968
|
-
(
|
|
966
|
+
const r = me(), n = ge(), c = Ce(), o = r.defaultQueryOptions(e);
|
|
967
|
+
(b = (R = r.getDefaultOptions().queries) == null ? void 0 : R._experimental_beforeQuery) == null || b.call(
|
|
969
968
|
R,
|
|
970
969
|
o
|
|
971
970
|
), o._optimisticResults = n ? "isRestoring" : "optimistic", Pe(o), Fe(o, c), Oe(c);
|
|
@@ -974,7 +973,7 @@ function ee(e, t, s) {
|
|
|
974
973
|
r,
|
|
975
974
|
o
|
|
976
975
|
)
|
|
977
|
-
),
|
|
976
|
+
), m = l.getOptimisticResult(o);
|
|
978
977
|
if (T.useSyncExternalStore(
|
|
979
978
|
T.useCallback(
|
|
980
979
|
(p) => {
|
|
@@ -988,26 +987,26 @@ function ee(e, t, s) {
|
|
|
988
987
|
() => l.getCurrentResult()
|
|
989
988
|
), T.useEffect(() => {
|
|
990
989
|
l.setOptions(o, { listeners: !1 });
|
|
991
|
-
}, [o, l]), Te(o,
|
|
990
|
+
}, [o, l]), Te(o, m))
|
|
992
991
|
throw Ue(o, l, c);
|
|
993
992
|
if (Ee({
|
|
994
|
-
result:
|
|
993
|
+
result: m,
|
|
995
994
|
errorResetBoundary: c,
|
|
996
995
|
throwOnError: o.throwOnError,
|
|
997
996
|
query: r.getQueryCache().get(o.queryHash)
|
|
998
997
|
}))
|
|
999
|
-
throw
|
|
998
|
+
throw m.error;
|
|
1000
999
|
return (u = (a = r.getDefaultOptions().queries) == null ? void 0 : a._experimental_afterQuery) == null || u.call(
|
|
1001
1000
|
a,
|
|
1002
1001
|
o,
|
|
1003
|
-
|
|
1004
|
-
), o.notifyOnChangeProps ?
|
|
1002
|
+
m
|
|
1003
|
+
), o.notifyOnChangeProps ? m : l.trackResult(m);
|
|
1005
1004
|
}
|
|
1006
1005
|
function Ae(e, t) {
|
|
1007
1006
|
return ee(e, Jt);
|
|
1008
1007
|
}
|
|
1009
1008
|
function Qe(e, t) {
|
|
1010
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
1009
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === mt && console.error("skipToken is not allowed for useSuspenseQuery"), ee(
|
|
1011
1010
|
{
|
|
1012
1011
|
...e,
|
|
1013
1012
|
enabled: !0,
|
|
@@ -1025,7 +1024,7 @@ const qe = re(
|
|
|
1025
1024
|
if (!e)
|
|
1026
1025
|
throw new Error("useDevPortal must be used within a DevPortalProvider.");
|
|
1027
1026
|
return e;
|
|
1028
|
-
},
|
|
1027
|
+
}, Ve = () => {
|
|
1029
1028
|
const { getApiIdentities: e } = At();
|
|
1030
1029
|
return Ae({
|
|
1031
1030
|
queryFn: e,
|
|
@@ -1035,7 +1034,7 @@ const qe = re(
|
|
|
1035
1034
|
const { topNavigation: e } = At(), s = Bt().pathname.split("/").at(1);
|
|
1036
1035
|
if (s)
|
|
1037
1036
|
return e.find((r) => r.id === s);
|
|
1038
|
-
},
|
|
1037
|
+
}, ze = () => {
|
|
1039
1038
|
const { getPluginSidebar: e, sidebars: t } = At(), s = Ie(), r = s == null ? void 0 : s.id, n = r ? t[r] ?? [] : [], c = Bt();
|
|
1040
1039
|
return Qe({
|
|
1041
1040
|
queryFn: async () => {
|
|
@@ -1049,36 +1048,36 @@ const qe = re(
|
|
|
1049
1048
|
});
|
|
1050
1049
|
};
|
|
1051
1050
|
export {
|
|
1052
|
-
|
|
1053
|
-
|
|
1051
|
+
Ae as A,
|
|
1052
|
+
Be as Q,
|
|
1054
1053
|
ye as R,
|
|
1055
1054
|
Dt as S,
|
|
1056
1055
|
qe as Z,
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1056
|
+
me as a,
|
|
1057
|
+
Qe as b,
|
|
1058
|
+
Ie as c,
|
|
1059
|
+
He as d,
|
|
1060
|
+
we as e,
|
|
1061
|
+
ae as f,
|
|
1062
|
+
Ne as g,
|
|
1063
|
+
yt as h,
|
|
1064
|
+
dt as i,
|
|
1065
|
+
ue as j,
|
|
1066
|
+
_e as k,
|
|
1067
|
+
Ke as l,
|
|
1068
|
+
Le as m,
|
|
1070
1069
|
Tt as n,
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1070
|
+
Vt as o,
|
|
1071
|
+
zt as p,
|
|
1072
|
+
Me as q,
|
|
1074
1073
|
ut as r,
|
|
1075
|
-
|
|
1076
|
-
|
|
1074
|
+
pt as s,
|
|
1075
|
+
Pt as t,
|
|
1077
1076
|
At as u,
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1077
|
+
mt as v,
|
|
1078
|
+
Ge as w,
|
|
1079
|
+
ze as x,
|
|
1080
|
+
de as y,
|
|
1081
|
+
Ve as z
|
|
1083
1082
|
};
|
|
1084
|
-
//# sourceMappingURL=ZudokuContext-
|
|
1083
|
+
//# sourceMappingURL=ZudokuContext-JoyeA9dT.js.map
|