zudoku 0.3.0-dev.35 → 0.3.0-dev.37
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/app/entry.client.js +1 -1
- package/dist/app/entry.client.js.map +1 -1
- package/dist/internal.d.ts +2 -0
- package/dist/internal.js +3 -0
- package/dist/internal.js.map +1 -0
- package/dist/lib/components/index.d.ts +2 -0
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/{app → lib}/main.d.ts +3 -3
- package/dist/{app → lib}/main.js +4 -3
- package/dist/lib/main.js.map +1 -0
- package/dist/vite/config.js +5 -2
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-component.js +1 -0
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/{app → vite/ssr}/entry.server.d.ts +1 -1
- package/dist/{app → vite/ssr}/entry.server.js +3 -3
- package/dist/vite/ssr/entry.server.js.map +1 -0
- package/dist/{app → vite/ssr}/zudoku-manifest.js +1 -1
- package/dist/vite/ssr/zudoku-manifest.js.map +1 -0
- package/lib/{AnchorLink-DCzimaMt.js → AnchorLink-Sx89bfCW.js} +2 -2
- package/lib/{AnchorLink-DCzimaMt.js.map → AnchorLink-Sx89bfCW.js.map} +1 -1
- package/lib/Markdown-DMEnjeMH.js +14499 -0
- package/lib/Markdown-DMEnjeMH.js.map +1 -0
- package/lib/{MdxPage-CGTgSCJL.js → MdxPage-s9RlKFtt.js} +25 -26
- package/lib/{MdxPage-CGTgSCJL.js.map → MdxPage-s9RlKFtt.js.map} +1 -1
- package/lib/{OperationList-BDAtLdf9.js → OperationList-9NIdTqS0.js} +15 -16
- package/lib/{OperationList-BDAtLdf9.js.map → OperationList-9NIdTqS0.js.map} +1 -1
- package/lib/{Select-DIOQWPp3.js → Select-CJamK_wp.js} +2 -2
- package/lib/{Select-DIOQWPp3.js.map → Select-CJamK_wp.js.map} +1 -1
- package/lib/{Spinner-B9MAj2Pw.js → Spinner-3YT-WUu5.js} +2 -2
- package/lib/{Spinner-B9MAj2Pw.js.map → Spinner-3YT-WUu5.js.map} +1 -1
- package/lib/hook-Cq3Jb1lX.js +77 -0
- package/lib/hook-Cq3Jb1lX.js.map +1 -0
- package/lib/{index-CdZQPXUQ.js → index-DhKGMJM2.js} +17 -18
- package/lib/{index-CdZQPXUQ.js.map → index-DhKGMJM2.js.map} +1 -1
- package/lib/zudoku.components.js +103 -102
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +50 -92
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/package.json +7 -1
- package/src/app/entry.client.tsx +1 -2
- package/src/lib/components/index.ts +2 -0
- package/src/{app → lib}/main.tsx +4 -3
- package/dist/app/entry.server.js.map +0 -1
- package/dist/app/main.js.map +0 -1
- package/dist/app/zudoku-manifest.js.map +0 -1
- package/lib/Markdown-kde-UTpz.js +0 -8620
- package/lib/Markdown-kde-UTpz.js.map +0 -1
- package/lib/MdxComponents-BZ-Y_6jI.js +0 -5885
- package/lib/MdxComponents-BZ-Y_6jI.js.map +0 -1
- package/lib/hook-D1DiFbcT.js +0 -35
- package/lib/hook-D1DiFbcT.js.map +0 -1
- package/src/app/entry.server.tsx +0 -158
- package/src/app/zudoku-manifest.ts +0 -22
- /package/dist/{app → vite/ssr}/zudoku-manifest.d.ts +0 -0
package/lib/zudoku.components.js
CHANGED
|
@@ -13,23 +13,23 @@ var F = (t, e, s, a) => ({
|
|
|
13
13
|
return i(t, e, a);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { c as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { R as je, T as Pe, C as we, S as
|
|
25
|
-
import { c as
|
|
16
|
+
import { c as L, N as U, a as Ie, u as Fe, M as Re, T as He, V as Le, b as X, d as T, e as Be, C as Ke, L as ze } from "./Markdown-DMEnjeMH.js";
|
|
17
|
+
import { E as Ve, u as Ue, R as We } from "./hook-Cq3Jb1lX.js";
|
|
18
|
+
import { j as r, u as D, O as Xe } from "./jsx-runtime-Bt86M5tA.js";
|
|
19
|
+
import { S as ge, h as ve, Q as _e, n as m, m as re, a as ie, b as j, e as $e, c as Ge, d as Je, f as Ye, o as oe, r as le, g as Ze, i as ce, p as ue, s as et, u as _, j as tt, D as st, k as at, l as nt } from "./DevPortalProvider-Demv4Ngx.js";
|
|
20
|
+
import { createContext as ye, Component as rt, createElement as he, isValidElement as it, memo as xe, useMemo as z, useEffect as q, Fragment as ot, useRef as B, useState as lt, forwardRef as ct, Suspense as ut } from "react";
|
|
21
|
+
import { H as be, M as ht, A as dt, u as ft } from "./AnchorLink-Sx89bfCW.js";
|
|
22
|
+
import { c as pt } from "./state-Ds_OxRHP.js";
|
|
23
|
+
import { M as mt } from "./index-BB2EBBgh.js";
|
|
24
|
+
import { R as je, T as Pe, C as we, S as gt } from "./Spinner-3YT-WUu5.js";
|
|
25
|
+
import { c as $, i as W, j as Ce, a as vt } from "./util-CYBrkBUo.js";
|
|
26
26
|
/**
|
|
27
27
|
* @license lucide-react v0.378.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
31
|
*/
|
|
32
|
-
const Ne =
|
|
32
|
+
const Ne = L("ChevronRight", [
|
|
33
33
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
34
34
|
]);
|
|
35
35
|
/**
|
|
@@ -38,7 +38,7 @@ const Ne = R("ChevronRight", [
|
|
|
38
38
|
* This source code is licensed under the ISC license.
|
|
39
39
|
* See the LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/
|
|
41
|
-
const
|
|
41
|
+
const yt = L("ExternalLink", [
|
|
42
42
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
43
43
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
44
44
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -49,7 +49,7 @@ const vt = R("ExternalLink", [
|
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
51
|
*/
|
|
52
|
-
const
|
|
52
|
+
const xt = L("MoonStar", [
|
|
53
53
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
54
54
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
55
55
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -60,7 +60,7 @@ const yt = R("MoonStar", [
|
|
|
60
60
|
* This source code is licensed under the ISC license.
|
|
61
61
|
* See the LICENSE file in the root directory of this source tree.
|
|
62
62
|
*/
|
|
63
|
-
const
|
|
63
|
+
const bt = L("Sun", [
|
|
64
64
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
65
65
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
66
66
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -71,7 +71,7 @@ const xt = R("Sun", [
|
|
|
71
71
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
72
72
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
73
73
|
]);
|
|
74
|
-
var b, fe,
|
|
74
|
+
var b, fe, jt = (fe = class extends ge {
|
|
75
75
|
constructor(e = {}) {
|
|
76
76
|
super();
|
|
77
77
|
y(this, b);
|
|
@@ -80,7 +80,7 @@ var b, fe, bt = (fe = class extends ge {
|
|
|
80
80
|
build(e, s, a) {
|
|
81
81
|
const n = s.queryKey, o = s.queryHash ?? ve(n, s);
|
|
82
82
|
let l = this.get(o);
|
|
83
|
-
return l || (l = new
|
|
83
|
+
return l || (l = new _e({
|
|
84
84
|
cache: this,
|
|
85
85
|
queryKey: n,
|
|
86
86
|
queryHash: o,
|
|
@@ -143,7 +143,7 @@ var b, fe, bt = (fe = class extends ge {
|
|
|
143
143
|
});
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
}, b = new WeakMap(), fe), p, S, pe,
|
|
146
|
+
}, b = new WeakMap(), fe), p, S, pe, Pt = (pe = class extends ge {
|
|
147
147
|
constructor(e = {}) {
|
|
148
148
|
super();
|
|
149
149
|
y(this, p);
|
|
@@ -151,7 +151,7 @@ var b, fe, bt = (fe = class extends ge {
|
|
|
151
151
|
this.config = e, d(this, p, /* @__PURE__ */ new Map()), d(this, S, Date.now());
|
|
152
152
|
}
|
|
153
153
|
build(e, s, a) {
|
|
154
|
-
const n = new
|
|
154
|
+
const n = new mt({
|
|
155
155
|
mutationCache: this,
|
|
156
156
|
mutationId: ++F(this, S)._,
|
|
157
157
|
options: e.defaultMutationOptions(s),
|
|
@@ -160,12 +160,12 @@ var b, fe, bt = (fe = class extends ge {
|
|
|
160
160
|
return this.add(n), n;
|
|
161
161
|
}
|
|
162
162
|
add(e) {
|
|
163
|
-
const s =
|
|
163
|
+
const s = R(e), a = i(this, p).get(s) ?? [];
|
|
164
164
|
a.push(e), i(this, p).set(s, a), this.notify({ type: "added", mutation: e });
|
|
165
165
|
}
|
|
166
166
|
remove(e) {
|
|
167
167
|
var a;
|
|
168
|
-
const s =
|
|
168
|
+
const s = R(e);
|
|
169
169
|
if (i(this, p).has(s)) {
|
|
170
170
|
const n = (a = i(this, p).get(s)) == null ? void 0 : a.filter((o) => o !== e);
|
|
171
171
|
n && (n.length === 0 ? i(this, p).delete(s) : i(this, p).set(s, n));
|
|
@@ -174,12 +174,12 @@ var b, fe, bt = (fe = class extends ge {
|
|
|
174
174
|
}
|
|
175
175
|
canRun(e) {
|
|
176
176
|
var a;
|
|
177
|
-
const s = (a = i(this, p).get(
|
|
177
|
+
const s = (a = i(this, p).get(R(e))) == null ? void 0 : a.find((n) => n.state.status === "pending");
|
|
178
178
|
return !s || s === e;
|
|
179
179
|
}
|
|
180
180
|
runNext(e) {
|
|
181
181
|
var a;
|
|
182
|
-
const s = (a = i(this, p).get(
|
|
182
|
+
const s = (a = i(this, p).get(R(e))) == null ? void 0 : a.find((n) => n !== e && n.state.isPaused);
|
|
183
183
|
return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
|
|
184
184
|
}
|
|
185
185
|
clear() {
|
|
@@ -217,16 +217,16 @@ var b, fe, bt = (fe = class extends ge {
|
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
219
|
}, p = new WeakMap(), S = new WeakMap(), pe);
|
|
220
|
-
function
|
|
220
|
+
function R(t) {
|
|
221
221
|
var e;
|
|
222
222
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function wt(t) {
|
|
225
225
|
return {
|
|
226
226
|
onFetch: (e, s) => {
|
|
227
227
|
const a = async () => {
|
|
228
|
-
var J, Y, Z,
|
|
229
|
-
const n = e.options, o = (
|
|
228
|
+
var G, J, Y, Z, ee;
|
|
229
|
+
const n = e.options, o = (Y = (J = (G = e.fetchOptions) == null ? void 0 : G.meta) == null ? void 0 : J.fetchMore) == null ? void 0 : Y.direction, l = ((Z = e.state.data) == null ? void 0 : Z.pages) || [], c = ((ee = e.state.data) == null ? void 0 : ee.pageParams) || [], h = { pages: [], pageParams: [] };
|
|
230
230
|
let g = !1;
|
|
231
231
|
const f = (x) => {
|
|
232
232
|
Object.defineProperty(x, "signal", {
|
|
@@ -235,7 +235,7 @@ function Pt(t) {
|
|
|
235
235
|
g = !0;
|
|
236
236
|
}), e.signal)
|
|
237
237
|
});
|
|
238
|
-
}, De =
|
|
238
|
+
}, De = $e(e.options, e.fetchOptions), K = async (x, P, k) => {
|
|
239
239
|
if (g)
|
|
240
240
|
return Promise.reject();
|
|
241
241
|
if (P == null && x.pages.length)
|
|
@@ -249,7 +249,7 @@ function Pt(t) {
|
|
|
249
249
|
f(I);
|
|
250
250
|
const Te = await De(
|
|
251
251
|
I
|
|
252
|
-
), { maxPages: te } = e.options, se = k ?
|
|
252
|
+
), { maxPages: te } = e.options, se = k ? Ge : Je;
|
|
253
253
|
return {
|
|
254
254
|
pages: se(x.pages, Te, te),
|
|
255
255
|
pageParams: se(x.pageParams, P, te)
|
|
@@ -257,7 +257,7 @@ function Pt(t) {
|
|
|
257
257
|
};
|
|
258
258
|
let O;
|
|
259
259
|
if (o && l.length) {
|
|
260
|
-
const x = o === "backward", P = x ?
|
|
260
|
+
const x = o === "backward", P = x ? Ct : de, k = {
|
|
261
261
|
pages: l,
|
|
262
262
|
pageParams: c
|
|
263
263
|
}, I = P(n, k);
|
|
@@ -300,7 +300,7 @@ function de(t, { pages: e, pageParams: s }) {
|
|
|
300
300
|
s
|
|
301
301
|
);
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function Ct(t, { pages: e, pageParams: s }) {
|
|
304
304
|
var a;
|
|
305
305
|
return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
|
|
306
306
|
t,
|
|
@@ -310,7 +310,7 @@ function wt(t, { pages: e, pageParams: s }) {
|
|
|
310
310
|
s
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
|
-
var u, w, C, M, A, N,
|
|
313
|
+
var u, w, C, M, A, N, E, Q, me, Nt = (me = class {
|
|
314
314
|
constructor(t = {}) {
|
|
315
315
|
y(this, u);
|
|
316
316
|
y(this, w);
|
|
@@ -318,20 +318,20 @@ var u, w, C, M, A, N, Q, E, me, Ct = (me = class {
|
|
|
318
318
|
y(this, M);
|
|
319
319
|
y(this, A);
|
|
320
320
|
y(this, N);
|
|
321
|
-
y(this, Q);
|
|
322
321
|
y(this, E);
|
|
323
|
-
|
|
322
|
+
y(this, Q);
|
|
323
|
+
d(this, u, t.queryCache || new jt()), d(this, w, t.mutationCache || new Pt()), d(this, C, t.defaultOptions || {}), d(this, M, /* @__PURE__ */ new Map()), d(this, A, /* @__PURE__ */ new Map()), d(this, N, 0);
|
|
324
324
|
}
|
|
325
325
|
mount() {
|
|
326
|
-
F(this, N)._++, i(this, N) === 1 && (d(this,
|
|
326
|
+
F(this, N)._++, i(this, N) === 1 && (d(this, E, Ye.subscribe(async (t) => {
|
|
327
327
|
t && (await this.resumePausedMutations(), i(this, u).onFocus());
|
|
328
|
-
})), d(this,
|
|
328
|
+
})), d(this, Q, oe.subscribe(async (t) => {
|
|
329
329
|
t && (await this.resumePausedMutations(), i(this, u).onOnline());
|
|
330
330
|
})));
|
|
331
331
|
}
|
|
332
332
|
unmount() {
|
|
333
333
|
var t, e;
|
|
334
|
-
F(this, N)._--, i(this, N) === 0 && ((t = i(this,
|
|
334
|
+
F(this, N)._--, i(this, N) === 0 && ((t = i(this, E)) == null || t.call(this), d(this, E, void 0), (e = i(this, Q)) == null || e.call(this), d(this, Q, void 0));
|
|
335
335
|
}
|
|
336
336
|
isFetching(t) {
|
|
337
337
|
return i(this, u).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -362,7 +362,7 @@ var u, w, C, M, A, N, Q, E, me, Ct = (me = class {
|
|
|
362
362
|
setQueryData(t, e, s) {
|
|
363
363
|
const a = this.defaultQueryOptions({ queryKey: t }), n = i(this, u).get(
|
|
364
364
|
a.queryHash
|
|
365
|
-
), o = n == null ? void 0 : n.state.data, l =
|
|
365
|
+
), o = n == null ? void 0 : n.state.data, l = Ze(e, o);
|
|
366
366
|
if (l !== void 0)
|
|
367
367
|
return i(this, u).build(this, a).setData(l, { ...s, manual: !0 });
|
|
368
368
|
}
|
|
@@ -439,7 +439,7 @@ var u, w, C, M, A, N, Q, E, me, Ct = (me = class {
|
|
|
439
439
|
return this.fetchQuery(t).then(j).catch(j);
|
|
440
440
|
}
|
|
441
441
|
fetchInfiniteQuery(t) {
|
|
442
|
-
return t.behavior =
|
|
442
|
+
return t.behavior = wt(t.pages), this.fetchQuery(t);
|
|
443
443
|
}
|
|
444
444
|
prefetchInfiniteQuery(t) {
|
|
445
445
|
return this.fetchInfiniteQuery(t).then(j).catch(j);
|
|
@@ -497,7 +497,7 @@ var u, w, C, M, A, N, Q, E, me, Ct = (me = class {
|
|
|
497
497
|
return e.queryHash || (e.queryHash = ve(
|
|
498
498
|
e.queryKey,
|
|
499
499
|
e
|
|
500
|
-
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn ===
|
|
500
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === et && (e.enabled = !1), e;
|
|
501
501
|
}
|
|
502
502
|
defaultMutationOptions(t) {
|
|
503
503
|
return t != null && t._defaulted ? t : {
|
|
@@ -510,12 +510,12 @@ var u, w, C, M, A, N, Q, E, me, Ct = (me = class {
|
|
|
510
510
|
clear() {
|
|
511
511
|
i(this, u).clear(), i(this, w).clear();
|
|
512
512
|
}
|
|
513
|
-
}, u = new WeakMap(), w = new WeakMap(), C = new WeakMap(), M = new WeakMap(), A = new WeakMap(), N = new WeakMap(),
|
|
514
|
-
const
|
|
513
|
+
}, u = new WeakMap(), w = new WeakMap(), C = new WeakMap(), M = new WeakMap(), A = new WeakMap(), N = new WeakMap(), E = new WeakMap(), Q = new WeakMap(), me);
|
|
514
|
+
const kt = ye(null), V = {
|
|
515
515
|
didCatch: !1,
|
|
516
516
|
error: null
|
|
517
517
|
};
|
|
518
|
-
class
|
|
518
|
+
class Ot extends rt {
|
|
519
519
|
constructor(e) {
|
|
520
520
|
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = V;
|
|
521
521
|
}
|
|
@@ -548,7 +548,7 @@ class kt extends st {
|
|
|
548
548
|
} = this.state, {
|
|
549
549
|
resetKeys: n
|
|
550
550
|
} = this.props;
|
|
551
|
-
if (a && s.error !== null &&
|
|
551
|
+
if (a && s.error !== null && Mt(e.resetKeys, n)) {
|
|
552
552
|
var o, l;
|
|
553
553
|
(o = (l = this.props).onReset) === null || o === void 0 || o.call(l, {
|
|
554
554
|
next: n,
|
|
@@ -577,12 +577,12 @@ class kt extends st {
|
|
|
577
577
|
c = s(h);
|
|
578
578
|
else if (a)
|
|
579
579
|
c = he(a, h);
|
|
580
|
-
else if (n === null ||
|
|
580
|
+
else if (n === null || it(n))
|
|
581
581
|
c = n;
|
|
582
582
|
else
|
|
583
583
|
throw l;
|
|
584
584
|
}
|
|
585
|
-
return he(
|
|
585
|
+
return he(kt.Provider, {
|
|
586
586
|
value: {
|
|
587
587
|
didCatch: o,
|
|
588
588
|
error: l,
|
|
@@ -591,12 +591,12 @@ class kt extends st {
|
|
|
591
591
|
}, c);
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Mt() {
|
|
595
595
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
596
596
|
return t.length !== e.length || t.some((s, a) => !Object.is(s, e[a]));
|
|
597
597
|
}
|
|
598
|
-
const
|
|
599
|
-
class
|
|
598
|
+
const At = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Et = (t) => "initialize" in t && typeof t.initialize == "function", Qt = (t) => "getHead" in t && typeof t.getHead == "function", Dt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", ke = new Nt(), Tt = pt(() => ({}));
|
|
599
|
+
class St {
|
|
600
600
|
constructor(e) {
|
|
601
601
|
v(this, "plugins", []);
|
|
602
602
|
v(this, "navigationPlugins");
|
|
@@ -607,7 +607,7 @@ class Tt {
|
|
|
607
607
|
v(this, "state");
|
|
608
608
|
v(this, "initialize", async () => {
|
|
609
609
|
await Promise.all([
|
|
610
|
-
this.plugins.filter(
|
|
610
|
+
this.plugins.filter(Et).map((e) => {
|
|
611
611
|
var s;
|
|
612
612
|
return (s = e.initialize) == null ? void 0 : s.call(e, this);
|
|
613
613
|
})
|
|
@@ -617,7 +617,7 @@ class Tt {
|
|
|
617
617
|
await ke.invalidateQueries({ queryKey: e });
|
|
618
618
|
});
|
|
619
619
|
v(this, "getApiIdentities", async () => (await Promise.all(
|
|
620
|
-
this.plugins.filter(
|
|
620
|
+
this.plugins.filter(Dt).map((s) => s.getIdentities(this))
|
|
621
621
|
)).flat());
|
|
622
622
|
v(this, "getNavigation", async (e) => (await Promise.all(
|
|
623
623
|
this.navigationPlugins.map(
|
|
@@ -627,7 +627,7 @@ class Tt {
|
|
|
627
627
|
}
|
|
628
628
|
)
|
|
629
629
|
)).flatMap((a) => a ?? []));
|
|
630
|
-
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(
|
|
630
|
+
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(At), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = Tt;
|
|
631
631
|
}
|
|
632
632
|
async signRequest(e) {
|
|
633
633
|
if (!this.authentication)
|
|
@@ -636,10 +636,10 @@ class Tt {
|
|
|
636
636
|
return e.headers.set("Authorization", `Bearer ${s}`), e;
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
return /* @__PURE__ */ r.jsx(
|
|
639
|
+
function qt({ error: t, resetErrorBoundary: e }) {
|
|
640
|
+
return /* @__PURE__ */ r.jsx(Ve, { error: t });
|
|
641
641
|
}
|
|
642
|
-
const
|
|
642
|
+
const It = () => {
|
|
643
643
|
const { navigation: t } = _();
|
|
644
644
|
return t.length <= 1 ? null : /* @__PURE__ */ r.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
645
645
|
U,
|
|
@@ -653,7 +653,7 @@ const qt = () => {
|
|
|
653
653
|
}
|
|
654
654
|
) }, e.label)) }) });
|
|
655
655
|
}, Oe = xe(function() {
|
|
656
|
-
const [e, s] = Fe(), { isAuthenticated: a, profile: n, isAuthEnabled: o, login: l, logout: c } =
|
|
656
|
+
const [e, s] = Fe(), { isAuthenticated: a, profile: n, isAuthEnabled: o, login: l, logout: c } = Ue(), { page: h } = _(), g = e ? xt : bt;
|
|
657
657
|
return /* @__PURE__ */ r.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
658
658
|
/* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
|
|
659
659
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
@@ -692,11 +692,11 @@ const qt = () => {
|
|
|
692
692
|
] })
|
|
693
693
|
] })
|
|
694
694
|
] }),
|
|
695
|
-
/* @__PURE__ */ r.jsx(
|
|
695
|
+
/* @__PURE__ */ r.jsx(It, {})
|
|
696
696
|
] }) });
|
|
697
697
|
}), Me = {
|
|
698
698
|
Header: Oe
|
|
699
|
-
},
|
|
699
|
+
}, Ft = ye(Me), Rt = Ft.Provider, Ht = ({
|
|
700
700
|
children: t,
|
|
701
701
|
...e
|
|
702
702
|
}) => {
|
|
@@ -705,23 +705,23 @@ const qt = () => {
|
|
|
705
705
|
() => ({ ...Me, ...e.overrides }),
|
|
706
706
|
[e.overrides]
|
|
707
707
|
), a = z(
|
|
708
|
-
() => ({ ...
|
|
708
|
+
() => ({ ...Re, ...e.mdxComponents }),
|
|
709
709
|
[e.mdxComponents]
|
|
710
|
-
), n = z(() => new
|
|
710
|
+
), n = z(() => new St(e), [e]);
|
|
711
711
|
q(() => {
|
|
712
712
|
n.initialize();
|
|
713
713
|
}, [n]);
|
|
714
714
|
const o = (l = e.plugins) == null ? void 0 : l.filter(Qt).map((c, h) => {
|
|
715
715
|
var g;
|
|
716
|
-
return /* @__PURE__ */ r.jsx(
|
|
716
|
+
return /* @__PURE__ */ r.jsx(ot, { children: (g = c.getHead) == null ? void 0 : g.call(c) }, h);
|
|
717
717
|
});
|
|
718
|
-
return /* @__PURE__ */ r.jsxs(
|
|
718
|
+
return /* @__PURE__ */ r.jsxs(tt, { client: ke, children: [
|
|
719
719
|
/* @__PURE__ */ r.jsx(be, { children: o }),
|
|
720
|
-
/* @__PURE__ */ r.jsx(
|
|
720
|
+
/* @__PURE__ */ r.jsx(st, { value: n, children: /* @__PURE__ */ r.jsx(ht, { components: a, children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(Rt, { value: s, children: /* @__PURE__ */ r.jsx(Le, { children: t }) }) }) }) })
|
|
721
721
|
] });
|
|
722
|
-
}, Lt = xe(Ht), Ae = (t) => /* @__PURE__ */ r.jsx(
|
|
722
|
+
}, Lt = xe(Ht), Ae = (t) => /* @__PURE__ */ r.jsx(Ot, { FallbackComponent: qt, children: /* @__PURE__ */ r.jsx(Lt, { ...t }) });
|
|
723
723
|
Ae.displayName = "DevPortal";
|
|
724
|
-
const
|
|
724
|
+
const Bt = () => {
|
|
725
725
|
const t = D(), { setActiveAnchor: e } = X();
|
|
726
726
|
q(() => {
|
|
727
727
|
if (!t.hash) return;
|
|
@@ -738,21 +738,21 @@ const Rt = () => {
|
|
|
738
738
|
});
|
|
739
739
|
return n.observe(document.body, { childList: !0, subtree: !0 }), () => n.disconnect();
|
|
740
740
|
}, [t.hash, e]);
|
|
741
|
-
},
|
|
741
|
+
}, Kt = () => {
|
|
742
742
|
const t = D(), e = B(t.pathname);
|
|
743
743
|
q(() => {
|
|
744
744
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
745
745
|
}, [t.pathname]);
|
|
746
|
-
},
|
|
746
|
+
}, Ee = ({
|
|
747
747
|
item: t,
|
|
748
748
|
defaultOpen: e,
|
|
749
749
|
path: s
|
|
750
750
|
}) => {
|
|
751
|
-
const [a, n] =
|
|
751
|
+
const [a, n] = lt(e), o = D(), l = B(o.pathname);
|
|
752
752
|
return q(() => {
|
|
753
|
-
!a && l.current !== o.pathname && n(
|
|
753
|
+
!a && l.current !== o.pathname && n($(t, o.pathname, s)), l.current = o.pathname;
|
|
754
754
|
}, [a, t, s, o.pathname]), [a, n];
|
|
755
|
-
},
|
|
755
|
+
}, H = Be(
|
|
756
756
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
757
757
|
{
|
|
758
758
|
variants: {
|
|
@@ -766,22 +766,22 @@ const Rt = () => {
|
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
|
-
),
|
|
769
|
+
), zt = "data-anchor", Qe = ({
|
|
770
770
|
category: t,
|
|
771
771
|
item: e,
|
|
772
772
|
activeAnchor: s,
|
|
773
773
|
currentTopNavItem: a,
|
|
774
774
|
basePath: n = ""
|
|
775
775
|
}) => {
|
|
776
|
-
const o = W(e) ? Ce(n, e.path) : "", l = D(), [c, h] =
|
|
776
|
+
const o = W(e) ? Ce(n, e.path) : "", l = D(), [c, h] = Ee({
|
|
777
777
|
item: e,
|
|
778
778
|
path: o,
|
|
779
|
-
defaultOpen: () =>
|
|
779
|
+
defaultOpen: () => $(e, l.pathname, o)
|
|
780
780
|
});
|
|
781
|
-
if (
|
|
781
|
+
if (vt(e)) {
|
|
782
782
|
const f = T(
|
|
783
783
|
"flex items-center gap-2",
|
|
784
|
-
|
|
784
|
+
H({
|
|
785
785
|
isActive: e.href === l.pathname
|
|
786
786
|
})
|
|
787
787
|
);
|
|
@@ -794,7 +794,7 @@ const Rt = () => {
|
|
|
794
794
|
rel: "noopener noreferrer",
|
|
795
795
|
children: [
|
|
796
796
|
e.label,
|
|
797
|
-
/* @__PURE__ */ r.jsx(
|
|
797
|
+
/* @__PURE__ */ r.jsx(yt, { size: 14 })
|
|
798
798
|
]
|
|
799
799
|
}
|
|
800
800
|
) : /* @__PURE__ */ r.jsx(U, { className: f, to: e.href, children: e.label });
|
|
@@ -824,13 +824,13 @@ const Rt = () => {
|
|
|
824
824
|
{
|
|
825
825
|
className: T(
|
|
826
826
|
"group text-start",
|
|
827
|
-
|
|
827
|
+
H({ isActive: !1 })
|
|
828
828
|
),
|
|
829
829
|
children: g
|
|
830
830
|
}
|
|
831
831
|
),
|
|
832
832
|
/* @__PURE__ */ r.jsx(we, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ r.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((f) => /* @__PURE__ */ r.jsx(
|
|
833
|
-
|
|
833
|
+
Qe,
|
|
834
834
|
{
|
|
835
835
|
category: t,
|
|
836
836
|
item: f,
|
|
@@ -843,11 +843,11 @@ const Rt = () => {
|
|
|
843
843
|
]
|
|
844
844
|
}
|
|
845
845
|
) : e.path.startsWith("#") ? /* @__PURE__ */ r.jsx(
|
|
846
|
-
|
|
846
|
+
dt,
|
|
847
847
|
{
|
|
848
848
|
to: e.path,
|
|
849
|
-
[
|
|
850
|
-
className:
|
|
849
|
+
[zt]: e.path,
|
|
850
|
+
className: H({
|
|
851
851
|
isActive: e.path.slice(1) === s,
|
|
852
852
|
isMuted: e.muted
|
|
853
853
|
}),
|
|
@@ -856,18 +856,18 @@ const Rt = () => {
|
|
|
856
856
|
) : /* @__PURE__ */ r.jsx(
|
|
857
857
|
U,
|
|
858
858
|
{
|
|
859
|
-
className: ({ isActive: f }) =>
|
|
859
|
+
className: ({ isActive: f }) => H({ isActive: f }),
|
|
860
860
|
to: o,
|
|
861
861
|
children: g
|
|
862
862
|
}
|
|
863
863
|
) });
|
|
864
|
-
},
|
|
864
|
+
}, Vt = ({
|
|
865
865
|
category: t
|
|
866
866
|
}) => {
|
|
867
|
-
const { activeAnchor: e } = X(), s =
|
|
867
|
+
const { activeAnchor: e } = X(), s = at(), a = D(), n = t.collapsible ?? !0, [o, l] = Ee({
|
|
868
868
|
item: t,
|
|
869
869
|
path: (s == null ? void 0 : s.path) ?? "",
|
|
870
|
-
defaultOpen: () => !n || t.expanded ||
|
|
870
|
+
defaultOpen: () => !n || t.expanded || $(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
|
|
871
871
|
});
|
|
872
872
|
return /* @__PURE__ */ r.jsxs(
|
|
873
873
|
je,
|
|
@@ -895,7 +895,7 @@ const Rt = () => {
|
|
|
895
895
|
}
|
|
896
896
|
) }) : "Endpoints",
|
|
897
897
|
/* @__PURE__ */ r.jsx(we, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ r.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((c) => /* @__PURE__ */ r.jsx(
|
|
898
|
-
|
|
898
|
+
Qe,
|
|
899
899
|
{
|
|
900
900
|
category: t,
|
|
901
901
|
item: c,
|
|
@@ -909,7 +909,7 @@ const Rt = () => {
|
|
|
909
909
|
},
|
|
910
910
|
t.label
|
|
911
911
|
);
|
|
912
|
-
},
|
|
912
|
+
}, Ut = ct(function({ children: e, className: s, pushMainContent: a }, n) {
|
|
913
913
|
return /* @__PURE__ */ r.jsx(
|
|
914
914
|
"nav",
|
|
915
915
|
{
|
|
@@ -922,19 +922,19 @@ const Rt = () => {
|
|
|
922
922
|
children: e
|
|
923
923
|
}
|
|
924
924
|
);
|
|
925
|
-
}),
|
|
926
|
-
const t = B(null), e =
|
|
925
|
+
}), Wt = () => {
|
|
926
|
+
const t = B(null), e = nt();
|
|
927
927
|
return /* @__PURE__ */ r.jsx(
|
|
928
|
-
|
|
928
|
+
Ut,
|
|
929
929
|
{
|
|
930
930
|
ref: t,
|
|
931
931
|
pushMainContent: e.data.items.length > 0,
|
|
932
|
-
children: e.data.items.map((s) => /* @__PURE__ */ r.jsx(
|
|
932
|
+
children: e.data.items.map((s) => /* @__PURE__ */ r.jsx(Vt, { category: s }, s.label))
|
|
933
933
|
}
|
|
934
934
|
);
|
|
935
|
-
},
|
|
935
|
+
}, Xt = ({ children: t }) => {
|
|
936
936
|
const e = D(), { setActiveAnchor: s } = X(), { meta: a } = _();
|
|
937
|
-
|
|
937
|
+
Bt(), Kt();
|
|
938
938
|
const n = B(e.pathname);
|
|
939
939
|
return q(() => {
|
|
940
940
|
e.pathname !== n.current && s(""), n.current = e.pathname;
|
|
@@ -945,11 +945,11 @@ const Rt = () => {
|
|
|
945
945
|
] }),
|
|
946
946
|
/* @__PURE__ */ r.jsx(Oe, {}),
|
|
947
947
|
/* @__PURE__ */ r.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ r.jsxs(
|
|
948
|
-
|
|
948
|
+
ut,
|
|
949
949
|
{
|
|
950
|
-
fallback: /* @__PURE__ */ r.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ r.jsx(
|
|
950
|
+
fallback: /* @__PURE__ */ r.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ r.jsx(gt, {}) }),
|
|
951
951
|
children: [
|
|
952
|
-
/* @__PURE__ */ r.jsx(
|
|
952
|
+
/* @__PURE__ */ r.jsx(Wt, {}),
|
|
953
953
|
/* @__PURE__ */ r.jsx(
|
|
954
954
|
"main",
|
|
955
955
|
{
|
|
@@ -959,19 +959,20 @@ const Rt = () => {
|
|
|
959
959
|
"lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
|
|
960
960
|
"lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12"
|
|
961
961
|
),
|
|
962
|
-
children: t ?? /* @__PURE__ */ r.jsx(
|
|
962
|
+
children: t ?? /* @__PURE__ */ r.jsx(Xe, {})
|
|
963
963
|
}
|
|
964
964
|
)
|
|
965
965
|
]
|
|
966
966
|
}
|
|
967
967
|
) })
|
|
968
968
|
] });
|
|
969
|
-
},
|
|
969
|
+
}, rs = ft, is = Ke, os = Ae, ls = Xt, cs = ze, us = We;
|
|
970
970
|
export {
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
971
|
+
is as Callout,
|
|
972
|
+
os as DevPortal,
|
|
973
|
+
ls as Layout,
|
|
974
|
+
cs as Link,
|
|
975
|
+
us as RouterError,
|
|
976
|
+
rs as useMDXComponents
|
|
976
977
|
};
|
|
977
978
|
//# sourceMappingURL=zudoku.components.js.map
|