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