zudoku 0.3.0-dev.24 → 0.3.0-dev.27
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/demo.d.ts +2 -0
- package/dist/app/demo.js +23 -0
- package/dist/app/demo.js.map +1 -0
- package/dist/app/main.d.ts +2 -1
- package/dist/app/main.js +29 -10
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.d.ts +2 -0
- package/dist/app/standalone.js +28 -0
- package/dist/app/standalone.js.map +1 -0
- package/dist/config/config.d.ts +1 -0
- package/dist/lib/components/Error.d.ts +1 -0
- package/dist/lib/components/Error.js +10 -0
- package/dist/lib/components/Error.js.map +1 -0
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Router.js +2 -1
- package/dist/lib/components/Router.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -1
- package/dist/lib/components/TopNavigation.js +4 -0
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js +3 -0
- package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +1 -1
- package/dist/lib/util/logInit.d.ts +1 -0
- package/dist/lib/util/logInit.js +9 -0
- package/dist/lib/util/logInit.js.map +1 -0
- package/dist/vite/config.d.ts +5 -1
- package/dist/vite/config.js +16 -9
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-api-keys.js +2 -2
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +1 -1
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +2 -2
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.js +1 -1
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-docs.js +7 -6
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-html.js +1 -9
- package/dist/vite/plugin-html.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +3 -1
- package/dist/vite/plugin-mdx.js +4 -4
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-openapi-worker.js +1 -1
- package/dist/vite/plugin-openapi-worker.js.map +1 -1
- package/dist/vite/plugin-redirect.js +4 -1
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin.js +1 -1
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{AnchorLink-BzDjVML_.js → AnchorLink-BtVKbEwm.js} +2 -2
- package/lib/{DevPortalProvider-DssVwuLz.js → DevPortalProvider--xZTs0RJ.js} +1 -1
- package/lib/{Markdown-BX9FqDM4.js → Markdown-oJFqm0uk.js} +2 -2
- package/lib/{MdxComponents-DiOAVA3z.js → MdxComponents-CsU8yR42.js} +1 -1
- package/lib/{MdxPage-C9wmWulr.js → MdxPage-BV_9ncEk.js} +6 -6
- package/lib/{OperationList-CmWB9QNy.js → OperationList-C9t7wPj8.js} +8 -8
- package/lib/{Route-QN8KKlcN.js → Route-CHqr53jb.js} +1 -1
- package/lib/{Select-BK8C7kpB.js → Select-CNmXi4JU.js} +3 -3
- package/lib/{Spinner-CQiMiphN.js → Spinner-By5opWs5.js} +2 -2
- package/lib/{hook-Rc146Fwy.js → hook-kVJ4gpk5.js} +1 -1
- package/lib/{index-Bf5lvKIp.js → index-CUIxJAeE.js} +1 -1
- package/lib/{index-DbU_G5RQ.js → index-Cr3hgaqt.js} +1 -1
- package/lib/{index-B5n-zpzS.js → index-CySUl0uj.js} +2 -2
- package/lib/{index-B7upi2sn.js → index-fXFJf9Ua.js} +2 -2
- package/lib/zudoku.auth-openid.js +1 -1
- package/lib/zudoku.components.js +105 -102
- package/lib/zudoku.openapi-worker.js +3 -1
- package/lib/zudoku.plugin-api-keys.js +5 -5
- package/lib/zudoku.plugin-markdown.js +3 -3
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/package.json +3 -1
- package/src/app/demo-cdn.html +14 -0
- package/src/app/demo.html +14 -0
- package/src/app/demo.tsx +35 -0
- package/src/app/main.css +74 -0
- package/src/app/main.tsx +40 -9
- package/src/app/standalone.html +16 -0
- package/src/app/standalone.tsx +42 -0
- package/src/lib/components/Error.tsx +15 -0
- package/src/lib/components/Layout.tsx +0 -1
- package/src/lib/components/Router.tsx +2 -7
- package/src/lib/components/TopNavigation.tsx +5 -0
- package/src/lib/plugins/openapi/worker/createSharedWorkerClient.ts +4 -0
- package/src/lib/util/logInit.ts +9 -0
- package/dist/app/App.d.ts +0 -2
- package/dist/app/App.js +0 -32
- package/dist/app/App.js.map +0 -1
- package/src/app/App.tsx +0 -44
package/lib/zudoku.components.js
CHANGED
|
@@ -2,10 +2,10 @@ var Ie = Object.defineProperty;
|
|
|
2
2
|
var se = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var g = (t, e, s) =>
|
|
5
|
+
var Ee = (t, e, s) => e in t ? Ie(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
6
|
+
var g = (t, e, s) => Ee(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
|
|
7
7
|
var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)), v = (t, e, s) => e.has(t) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), u = (t, e, s, a) => (ae(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
|
|
8
|
-
var
|
|
8
|
+
var S = (t, e, s, a) => ({
|
|
9
9
|
set _(r) {
|
|
10
10
|
u(t, e, r, s);
|
|
11
11
|
},
|
|
@@ -13,26 +13,26 @@ var E = (t, e, s, a) => ({
|
|
|
13
13
|
return i(t, e, a);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { c as z, N as B, a as
|
|
17
|
-
import { u as ze, a as $, M as Ke, T as _e, V as Be, C as Ve } from "./MdxComponents-
|
|
16
|
+
import { c as z, N as B, a as Se, b as Re, d as Fe, R as He, L as Le } from "./index-CUIxJAeE.js";
|
|
17
|
+
import { u as ze, a as $, M as Ke, T as _e, V as Be, C as Ve } from "./MdxComponents-CsU8yR42.js";
|
|
18
18
|
import { j as n } from "./jsx-runtime-D7DwziLW.js";
|
|
19
|
-
import { S as
|
|
20
|
-
import { memo as
|
|
21
|
-
import { A as ot, H as
|
|
19
|
+
import { S as pe, h as me, Q as $e, n as m, m as ne, a as re, b as j, e as Ue, c as We, d as Xe, f as Ge, o as ie, r as oe, g as Je, i as le, p as ce, s as Ye, u as U, j as Ze, k as et, l as tt, D as st } from "./DevPortalProvider--xZTs0RJ.js";
|
|
20
|
+
import { memo as ge, createContext as at, useEffect as I, useRef as K, useState as nt, forwardRef as rt, Suspense as ve, useMemo as H, Fragment as it } from "react";
|
|
21
|
+
import { A as ot, H as ye, a as lt, M as ct, u as ht } from "./AnchorLink-BtVKbEwm.js";
|
|
22
22
|
import { c as ut } from "./state-Ds_OxRHP.js";
|
|
23
|
-
import { M as dt } from "./index-
|
|
24
|
-
import { u as ft } from "./hook-
|
|
25
|
-
import { u as T, O as pt } from "./index-
|
|
26
|
-
import { R as
|
|
23
|
+
import { M as dt } from "./index-Cr3hgaqt.js";
|
|
24
|
+
import { u as ft } from "./hook-kVJ4gpk5.js";
|
|
25
|
+
import { u as T, O as pt, a as mt } from "./index-fXFJf9Ua.js";
|
|
26
|
+
import { R as xe, T as be, C as je, S as gt } from "./Spinner-By5opWs5.js";
|
|
27
27
|
import { c as L } from "./cn-DpqTslo9.js";
|
|
28
|
-
import { c as W, i as V, j as
|
|
28
|
+
import { c as W, i as V, j as Pe, a as vt } from "./util-DnDPBx_j.js";
|
|
29
29
|
/**
|
|
30
30
|
* @license lucide-react v0.378.0 - ISC
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the ISC license.
|
|
33
33
|
* See the LICENSE file in the root directory of this source tree.
|
|
34
34
|
*/
|
|
35
|
-
const
|
|
35
|
+
const we = z("ChevronRight", [
|
|
36
36
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
37
37
|
]);
|
|
38
38
|
/**
|
|
@@ -41,7 +41,7 @@ const Ne = z("ChevronRight", [
|
|
|
41
41
|
* This source code is licensed under the ISC license.
|
|
42
42
|
* See the LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
const
|
|
44
|
+
const yt = z("ExternalLink", [
|
|
45
45
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
46
46
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
47
47
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -52,7 +52,7 @@ const vt = z("ExternalLink", [
|
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
53
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
54
54
|
*/
|
|
55
|
-
const
|
|
55
|
+
const xt = z("MoonStar", [
|
|
56
56
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
57
57
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
58
58
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -63,7 +63,7 @@ const yt = z("MoonStar", [
|
|
|
63
63
|
* This source code is licensed under the ISC license.
|
|
64
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
65
65
|
*/
|
|
66
|
-
const
|
|
66
|
+
const bt = z("Sun", [
|
|
67
67
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
68
68
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
69
69
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -74,14 +74,14 @@ const xt = z("Sun", [
|
|
|
74
74
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
75
75
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
76
76
|
]);
|
|
77
|
-
var x,
|
|
77
|
+
var x, ue, jt = (ue = class extends pe {
|
|
78
78
|
constructor(e = {}) {
|
|
79
79
|
super();
|
|
80
80
|
v(this, x);
|
|
81
81
|
this.config = e, u(this, x, /* @__PURE__ */ new Map());
|
|
82
82
|
}
|
|
83
83
|
build(e, s, a) {
|
|
84
|
-
const r = s.queryKey, o = s.queryHash ??
|
|
84
|
+
const r = s.queryKey, o = s.queryHash ?? me(r, s);
|
|
85
85
|
let l = this.get(o);
|
|
86
86
|
return l || (l = new $e({
|
|
87
87
|
cache: this,
|
|
@@ -146,7 +146,7 @@ var x, de, bt = (de = class extends me {
|
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
}, x = new WeakMap(),
|
|
149
|
+
}, x = new WeakMap(), ue), p, q, de, Pt = (de = class extends pe {
|
|
150
150
|
constructor(e = {}) {
|
|
151
151
|
super();
|
|
152
152
|
v(this, p);
|
|
@@ -156,7 +156,7 @@ var x, de, bt = (de = class extends me {
|
|
|
156
156
|
build(e, s, a) {
|
|
157
157
|
const r = new dt({
|
|
158
158
|
mutationCache: this,
|
|
159
|
-
mutationId: ++
|
|
159
|
+
mutationId: ++S(this, q)._,
|
|
160
160
|
options: e.defaultMutationOptions(s),
|
|
161
161
|
state: a
|
|
162
162
|
});
|
|
@@ -219,12 +219,12 @@ var x, de, bt = (de = class extends me {
|
|
|
219
219
|
)
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
|
-
}, p = new WeakMap(), q = new WeakMap(),
|
|
222
|
+
}, p = new WeakMap(), q = new WeakMap(), de);
|
|
223
223
|
function R(t) {
|
|
224
224
|
var e;
|
|
225
225
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function wt(t) {
|
|
228
228
|
return {
|
|
229
229
|
onFetch: (e, s) => {
|
|
230
230
|
const a = async () => {
|
|
@@ -243,15 +243,15 @@ function Pt(t) {
|
|
|
243
243
|
return Promise.reject();
|
|
244
244
|
if (P == null && y.pages.length)
|
|
245
245
|
return Promise.resolve(y);
|
|
246
|
-
const
|
|
246
|
+
const E = {
|
|
247
247
|
queryKey: e.queryKey,
|
|
248
248
|
pageParam: P,
|
|
249
249
|
direction: k ? "backward" : "forward",
|
|
250
250
|
meta: e.options.meta
|
|
251
251
|
};
|
|
252
|
-
f(
|
|
252
|
+
f(E);
|
|
253
253
|
const qe = await Te(
|
|
254
|
-
|
|
254
|
+
E
|
|
255
255
|
), { maxPages: ee } = e.options, te = k ? We : Xe;
|
|
256
256
|
return {
|
|
257
257
|
pages: te(y.pages, qe, ee),
|
|
@@ -260,11 +260,11 @@ function Pt(t) {
|
|
|
260
260
|
};
|
|
261
261
|
let M;
|
|
262
262
|
if (o && l.length) {
|
|
263
|
-
const y = o === "backward", P = y ?
|
|
263
|
+
const y = o === "backward", P = y ? Nt : he, k = {
|
|
264
264
|
pages: l,
|
|
265
265
|
pageParams: h
|
|
266
|
-
},
|
|
267
|
-
M = await _(k,
|
|
266
|
+
}, E = P(r, k);
|
|
267
|
+
M = await _(k, E, y);
|
|
268
268
|
} else {
|
|
269
269
|
M = await _(
|
|
270
270
|
d,
|
|
@@ -303,7 +303,7 @@ function he(t, { pages: e, pageParams: s }) {
|
|
|
303
303
|
s
|
|
304
304
|
);
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function Nt(t, { pages: e, pageParams: s }) {
|
|
307
307
|
var a;
|
|
308
308
|
return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
|
|
309
309
|
t,
|
|
@@ -313,7 +313,7 @@ function wt(t, { pages: e, pageParams: s }) {
|
|
|
313
313
|
s
|
|
314
314
|
);
|
|
315
315
|
}
|
|
316
|
-
var c, w, N, O, A, C, Q, D,
|
|
316
|
+
var c, w, N, O, A, C, Q, D, fe, Ct = (fe = class {
|
|
317
317
|
constructor(t = {}) {
|
|
318
318
|
v(this, c);
|
|
319
319
|
v(this, w);
|
|
@@ -323,10 +323,10 @@ var c, w, N, O, A, C, Q, D, pe, Nt = (pe = class {
|
|
|
323
323
|
v(this, C);
|
|
324
324
|
v(this, Q);
|
|
325
325
|
v(this, D);
|
|
326
|
-
u(this, c, t.queryCache || new
|
|
326
|
+
u(this, c, t.queryCache || new jt()), u(this, w, t.mutationCache || new Pt()), u(this, N, t.defaultOptions || {}), u(this, O, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, C, 0);
|
|
327
327
|
}
|
|
328
328
|
mount() {
|
|
329
|
-
|
|
329
|
+
S(this, C)._++, i(this, C) === 1 && (u(this, Q, Ge.subscribe(async (t) => {
|
|
330
330
|
t && (await this.resumePausedMutations(), i(this, c).onFocus());
|
|
331
331
|
})), u(this, D, ie.subscribe(async (t) => {
|
|
332
332
|
t && (await this.resumePausedMutations(), i(this, c).onOnline());
|
|
@@ -334,7 +334,7 @@ var c, w, N, O, A, C, Q, D, pe, Nt = (pe = class {
|
|
|
334
334
|
}
|
|
335
335
|
unmount() {
|
|
336
336
|
var t, e;
|
|
337
|
-
|
|
337
|
+
S(this, C)._--, i(this, C) === 0 && ((t = i(this, Q)) == null || t.call(this), u(this, Q, void 0), (e = i(this, D)) == null || e.call(this), u(this, D, void 0));
|
|
338
338
|
}
|
|
339
339
|
isFetching(t) {
|
|
340
340
|
return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -442,7 +442,7 @@ var c, w, N, O, A, C, Q, D, pe, Nt = (pe = class {
|
|
|
442
442
|
return this.fetchQuery(t).then(j).catch(j);
|
|
443
443
|
}
|
|
444
444
|
fetchInfiniteQuery(t) {
|
|
445
|
-
return t.behavior =
|
|
445
|
+
return t.behavior = wt(t.pages), this.fetchQuery(t);
|
|
446
446
|
}
|
|
447
447
|
prefetchInfiniteQuery(t) {
|
|
448
448
|
return this.fetchInfiniteQuery(t).then(j).catch(j);
|
|
@@ -497,7 +497,7 @@ var c, w, N, O, A, C, Q, D, pe, Nt = (pe = class {
|
|
|
497
497
|
...t,
|
|
498
498
|
_defaulted: !0
|
|
499
499
|
};
|
|
500
|
-
return e.queryHash || (e.queryHash =
|
|
500
|
+
return e.queryHash || (e.queryHash = me(
|
|
501
501
|
e.queryKey,
|
|
502
502
|
e
|
|
503
503
|
)), 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 === Ye && (e.enabled = !1), e;
|
|
@@ -513,9 +513,9 @@ var c, w, N, O, A, C, Q, D, pe, Nt = (pe = class {
|
|
|
513
513
|
clear() {
|
|
514
514
|
i(this, c).clear(), i(this, w).clear();
|
|
515
515
|
}
|
|
516
|
-
}, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), O = new WeakMap(), A = new WeakMap(), C = new WeakMap(), Q = new WeakMap(), D = new WeakMap(),
|
|
517
|
-
const
|
|
518
|
-
class
|
|
516
|
+
}, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), O = new WeakMap(), A = new WeakMap(), C = new WeakMap(), Q = new WeakMap(), D = new WeakMap(), fe);
|
|
517
|
+
const Ne = (t) => "getRoutes" in t && typeof t.getRoutes == "function", kt = (t) => "initialize" in t && typeof t.initialize == "function", Mt = (t) => "getHead" in t && typeof t.getHead == "function", Ot = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ce = new Ct(), At = ut(() => ({}));
|
|
518
|
+
class Qt {
|
|
519
519
|
constructor(e) {
|
|
520
520
|
g(this, "plugins", []);
|
|
521
521
|
g(this, "navigationPlugins");
|
|
@@ -526,17 +526,17 @@ class At {
|
|
|
526
526
|
g(this, "state");
|
|
527
527
|
g(this, "initialize", async () => {
|
|
528
528
|
await Promise.all([
|
|
529
|
-
this.plugins.filter(
|
|
529
|
+
this.plugins.filter(kt).map((e) => {
|
|
530
530
|
var s;
|
|
531
531
|
return (s = e.initialize) == null ? void 0 : s.call(e, this);
|
|
532
532
|
})
|
|
533
533
|
]);
|
|
534
534
|
});
|
|
535
535
|
g(this, "invalidateCache", async (e) => {
|
|
536
|
-
await
|
|
536
|
+
await Ce.invalidateQueries({ queryKey: e });
|
|
537
537
|
});
|
|
538
538
|
g(this, "getApiIdentities", async () => (await Promise.all(
|
|
539
|
-
this.plugins.filter(
|
|
539
|
+
this.plugins.filter(Ot).map((s) => s.getIdentities(this))
|
|
540
540
|
)).flat());
|
|
541
541
|
g(this, "getNavigation", async (e) => (await Promise.all(
|
|
542
542
|
this.navigationPlugins.map(
|
|
@@ -546,7 +546,7 @@ class At {
|
|
|
546
546
|
}
|
|
547
547
|
)
|
|
548
548
|
)).flatMap((a) => a ?? []));
|
|
549
|
-
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(
|
|
549
|
+
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ne), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = At;
|
|
550
550
|
}
|
|
551
551
|
async signRequest(e) {
|
|
552
552
|
if (!this.authentication)
|
|
@@ -555,12 +555,12 @@ class At {
|
|
|
555
555
|
return e.headers.set("Authorization", `Bearer ${s}`), e;
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
const
|
|
558
|
+
const Dt = () => {
|
|
559
559
|
const { navigation: t } = U();
|
|
560
|
-
return /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
560
|
+
return t.length <= 1 ? null : /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
561
561
|
B,
|
|
562
562
|
{
|
|
563
|
-
className: ({ isActive: s }) =>
|
|
563
|
+
className: ({ isActive: s }) => Se(
|
|
564
564
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
565
565
|
s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
566
566
|
),
|
|
@@ -568,8 +568,8 @@ const Qt = () => {
|
|
|
568
568
|
children: e.label
|
|
569
569
|
}
|
|
570
570
|
) }, e.label)) }) });
|
|
571
|
-
},
|
|
572
|
-
const [e, s] = ze(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = ft(), { page: d } = U(), b = e ?
|
|
571
|
+
}, ke = ge(function() {
|
|
572
|
+
const [e, s] = ze(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = ft(), { page: d } = U(), b = e ? xt : bt;
|
|
573
573
|
return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
574
574
|
/* @__PURE__ */ n.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: [
|
|
575
575
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
@@ -608,11 +608,11 @@ const Qt = () => {
|
|
|
608
608
|
] })
|
|
609
609
|
] })
|
|
610
610
|
] }),
|
|
611
|
-
/* @__PURE__ */ n.jsx(
|
|
611
|
+
/* @__PURE__ */ n.jsx(Dt, {})
|
|
612
612
|
] }) });
|
|
613
|
-
}),
|
|
614
|
-
Header:
|
|
615
|
-
},
|
|
613
|
+
}), Me = {
|
|
614
|
+
Header: ke
|
|
615
|
+
}, Tt = at(Me), qt = Tt.Provider, It = () => {
|
|
616
616
|
const t = T(), { setActiveAnchor: e } = $();
|
|
617
617
|
I(() => {
|
|
618
618
|
if (!t.hash) return;
|
|
@@ -629,12 +629,12 @@ const Qt = () => {
|
|
|
629
629
|
});
|
|
630
630
|
return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
631
631
|
}, [t.hash, e]);
|
|
632
|
-
},
|
|
632
|
+
}, Et = () => {
|
|
633
633
|
const t = T(), e = K(t.pathname);
|
|
634
634
|
I(() => {
|
|
635
635
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
636
636
|
}, [t.pathname]);
|
|
637
|
-
},
|
|
637
|
+
}, Oe = ({
|
|
638
638
|
item: t,
|
|
639
639
|
defaultOpen: e,
|
|
640
640
|
path: s
|
|
@@ -657,19 +657,19 @@ const Qt = () => {
|
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
|
-
), St = "data-anchor",
|
|
660
|
+
), St = "data-anchor", Ae = ({
|
|
661
661
|
category: t,
|
|
662
662
|
item: e,
|
|
663
663
|
activeAnchor: s,
|
|
664
664
|
currentTopNavItem: a,
|
|
665
665
|
basePath: r = ""
|
|
666
666
|
}) => {
|
|
667
|
-
const o = V(e) ?
|
|
667
|
+
const o = V(e) ? Pe(r, e.path) : "", l = T(), [h, d] = Oe({
|
|
668
668
|
item: e,
|
|
669
669
|
path: o,
|
|
670
670
|
defaultOpen: () => W(e, l.pathname, o)
|
|
671
671
|
});
|
|
672
|
-
if (
|
|
672
|
+
if (vt(e)) {
|
|
673
673
|
const f = L(
|
|
674
674
|
"flex items-center gap-2",
|
|
675
675
|
F({
|
|
@@ -685,7 +685,7 @@ const Qt = () => {
|
|
|
685
685
|
rel: "noopener noreferrer",
|
|
686
686
|
children: [
|
|
687
687
|
e.label,
|
|
688
|
-
/* @__PURE__ */ n.jsx(
|
|
688
|
+
/* @__PURE__ */ n.jsx(yt, { size: 14 })
|
|
689
689
|
]
|
|
690
690
|
}
|
|
691
691
|
) : /* @__PURE__ */ n.jsx(B, { className: f, to: e.href, children: e.label });
|
|
@@ -696,7 +696,7 @@ const Qt = () => {
|
|
|
696
696
|
typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
|
|
697
697
|
] }),
|
|
698
698
|
e.children && /* @__PURE__ */ n.jsx(
|
|
699
|
-
|
|
699
|
+
we,
|
|
700
700
|
{
|
|
701
701
|
size: 16,
|
|
702
702
|
className: "transition shrink-0 group-data-[state=open]:rotate-90"
|
|
@@ -704,14 +704,14 @@ const Qt = () => {
|
|
|
704
704
|
)
|
|
705
705
|
] });
|
|
706
706
|
return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
|
|
707
|
-
|
|
707
|
+
xe,
|
|
708
708
|
{
|
|
709
709
|
open: h,
|
|
710
710
|
onOpenChange: () => d((f) => !f),
|
|
711
711
|
className: "flex flex-col",
|
|
712
712
|
children: [
|
|
713
713
|
/* @__PURE__ */ n.jsx(
|
|
714
|
-
|
|
714
|
+
be,
|
|
715
715
|
{
|
|
716
716
|
className: L(
|
|
717
717
|
"group text-start",
|
|
@@ -720,8 +720,8 @@ const Qt = () => {
|
|
|
720
720
|
children: b
|
|
721
721
|
}
|
|
722
722
|
),
|
|
723
|
-
/* @__PURE__ */ n.jsx(
|
|
724
|
-
|
|
723
|
+
/* @__PURE__ */ n.jsx(je, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((f) => /* @__PURE__ */ n.jsx(
|
|
724
|
+
Ae,
|
|
725
725
|
{
|
|
726
726
|
category: t,
|
|
727
727
|
item: f,
|
|
@@ -752,21 +752,21 @@ const Qt = () => {
|
|
|
752
752
|
children: b
|
|
753
753
|
}
|
|
754
754
|
) });
|
|
755
|
-
},
|
|
755
|
+
}, Rt = ({
|
|
756
756
|
category: t
|
|
757
757
|
}) => {
|
|
758
|
-
const { activeAnchor: e } = $(), s = Ze(), a = T(), r = t.collapsible ?? !0, [o, l] =
|
|
758
|
+
const { activeAnchor: e } = $(), s = Ze(), a = T(), r = t.collapsible ?? !0, [o, l] = Oe({
|
|
759
759
|
item: t,
|
|
760
760
|
path: (s == null ? void 0 : s.path) ?? "",
|
|
761
761
|
defaultOpen: () => !r || t.expanded || W(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
|
|
762
762
|
});
|
|
763
763
|
return /* @__PURE__ */ n.jsxs(
|
|
764
|
-
|
|
764
|
+
xe,
|
|
765
765
|
{
|
|
766
766
|
open: o,
|
|
767
767
|
onOpenChange: () => l((h) => !h),
|
|
768
768
|
children: [
|
|
769
|
-
t.label.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
769
|
+
t.label.length > 0 ? /* @__PURE__ */ n.jsx(be, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
|
|
770
770
|
"h5",
|
|
771
771
|
{
|
|
772
772
|
className: L(
|
|
@@ -776,7 +776,7 @@ const Qt = () => {
|
|
|
776
776
|
children: [
|
|
777
777
|
t.label,
|
|
778
778
|
r && /* @__PURE__ */ n.jsx(
|
|
779
|
-
|
|
779
|
+
we,
|
|
780
780
|
{
|
|
781
781
|
className: "group-data-[state=open]:rotate-90 transition",
|
|
782
782
|
size: 16
|
|
@@ -785,14 +785,14 @@ const Qt = () => {
|
|
|
785
785
|
]
|
|
786
786
|
}
|
|
787
787
|
) }) : "Endpoints",
|
|
788
|
-
/* @__PURE__ */ n.jsx(
|
|
789
|
-
|
|
788
|
+
/* @__PURE__ */ n.jsx(je, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((h) => /* @__PURE__ */ n.jsx(
|
|
789
|
+
Ae,
|
|
790
790
|
{
|
|
791
791
|
category: t,
|
|
792
792
|
item: h,
|
|
793
793
|
activeAnchor: e,
|
|
794
794
|
currentTopNavItem: s,
|
|
795
|
-
basePath:
|
|
795
|
+
basePath: Pe(s == null ? void 0 : s.path, t.path)
|
|
796
796
|
},
|
|
797
797
|
V(h) ? h.path + h.label : h.href
|
|
798
798
|
)) }) })
|
|
@@ -800,7 +800,7 @@ const Qt = () => {
|
|
|
800
800
|
},
|
|
801
801
|
t.label
|
|
802
802
|
);
|
|
803
|
-
},
|
|
803
|
+
}, Ft = rt(function({ children: e, className: s, pushMainContent: a }, r) {
|
|
804
804
|
return /* @__PURE__ */ n.jsx(
|
|
805
805
|
"nav",
|
|
806
806
|
{
|
|
@@ -813,35 +813,34 @@ const Qt = () => {
|
|
|
813
813
|
children: e
|
|
814
814
|
}
|
|
815
815
|
);
|
|
816
|
-
}),
|
|
816
|
+
}), Ht = () => {
|
|
817
817
|
const t = K(null), e = et();
|
|
818
818
|
return /* @__PURE__ */ n.jsx(
|
|
819
|
-
|
|
819
|
+
Ft,
|
|
820
820
|
{
|
|
821
821
|
ref: t,
|
|
822
822
|
pushMainContent: e.data.items.length > 0,
|
|
823
|
-
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(
|
|
823
|
+
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Rt, { category: s }, s.label))
|
|
824
824
|
}
|
|
825
825
|
);
|
|
826
|
-
},
|
|
826
|
+
}, Qe = ({ children: t }) => {
|
|
827
827
|
const e = T(), { setActiveAnchor: s } = $(), { meta: a } = U();
|
|
828
|
-
|
|
828
|
+
It(), Et();
|
|
829
829
|
const r = K(e.pathname);
|
|
830
830
|
return I(() => {
|
|
831
831
|
e.pathname !== r.current && s(""), r.current = e.pathname;
|
|
832
832
|
}, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
833
|
-
/* @__PURE__ */ n.jsxs(
|
|
834
|
-
/* @__PURE__ */ n.jsx("title", { children: "Home" }),
|
|
833
|
+
/* @__PURE__ */ n.jsxs(ye, { titleTemplate: a == null ? void 0 : a.title, children: [
|
|
835
834
|
(a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
|
|
836
835
|
(a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
|
|
837
836
|
] }),
|
|
838
|
-
/* @__PURE__ */ n.jsx(
|
|
837
|
+
/* @__PURE__ */ n.jsx(ke, {}),
|
|
839
838
|
/* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
|
|
840
|
-
|
|
839
|
+
ve,
|
|
841
840
|
{
|
|
842
|
-
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(
|
|
841
|
+
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(gt, {}) }),
|
|
843
842
|
children: [
|
|
844
|
-
/* @__PURE__ */ n.jsx(
|
|
843
|
+
/* @__PURE__ */ n.jsx(Ht, {}),
|
|
845
844
|
/* @__PURE__ */ n.jsx(
|
|
846
845
|
"main",
|
|
847
846
|
{
|
|
@@ -857,46 +856,50 @@ const Qt = () => {
|
|
|
857
856
|
) })
|
|
858
857
|
] });
|
|
859
858
|
};
|
|
860
|
-
function
|
|
859
|
+
function Lt() {
|
|
860
|
+
const t = mt();
|
|
861
|
+
return console.error(t), /* @__PURE__ */ n.jsx(Qe, { children: /* @__PURE__ */ n.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) });
|
|
862
|
+
}
|
|
863
|
+
function zt({ plugins: t }) {
|
|
861
864
|
const e = H(() => {
|
|
862
865
|
const s = (t ?? []).flatMap(
|
|
863
|
-
(a) =>
|
|
866
|
+
(a) => Ne(a) ? a.getRoutes() : []
|
|
864
867
|
);
|
|
865
868
|
return Fe([
|
|
866
869
|
{
|
|
867
870
|
path: "/",
|
|
868
|
-
element: /* @__PURE__ */ n.jsx(
|
|
869
|
-
errorElement: /* @__PURE__ */ n.jsx(
|
|
871
|
+
element: /* @__PURE__ */ n.jsx(Qe, {}),
|
|
872
|
+
errorElement: /* @__PURE__ */ n.jsx(Lt, {}),
|
|
870
873
|
children: s
|
|
871
874
|
}
|
|
872
875
|
]);
|
|
873
876
|
}, [t]);
|
|
874
877
|
return /* @__PURE__ */ n.jsx(He, { router: e });
|
|
875
878
|
}
|
|
876
|
-
const
|
|
879
|
+
const Kt = (t) => {
|
|
877
880
|
var o;
|
|
878
881
|
const e = H(
|
|
879
|
-
() => ({ ...
|
|
882
|
+
() => ({ ...Me, ...t.overrides }),
|
|
880
883
|
[t.overrides]
|
|
881
884
|
), s = H(
|
|
882
885
|
() => ({ ...Ke, ...t.mdxComponents }),
|
|
883
886
|
[t.mdxComponents]
|
|
884
|
-
), a = H(() => new
|
|
887
|
+
), a = H(() => new Qt(t), [t]);
|
|
885
888
|
I(() => {
|
|
886
889
|
a.initialize();
|
|
887
890
|
}, [a]);
|
|
888
|
-
const r = (o = t.plugins) == null ? void 0 : o.filter(
|
|
891
|
+
const r = (o = t.plugins) == null ? void 0 : o.filter(Mt).map((l, h) => {
|
|
889
892
|
var d;
|
|
890
893
|
return /* @__PURE__ */ n.jsx(it, { children: (d = l.getHead) == null ? void 0 : d.call(l) }, h);
|
|
891
894
|
});
|
|
892
|
-
return /* @__PURE__ */ n.jsx(tt, { client:
|
|
893
|
-
/* @__PURE__ */ n.jsx(
|
|
894
|
-
/* @__PURE__ */ n.jsx(st, { value: a, children: /* @__PURE__ */ n.jsx(ct, { components: s, children: /* @__PURE__ */ n.jsx(_e, { children: /* @__PURE__ */ n.jsx(
|
|
895
|
-
|
|
895
|
+
return /* @__PURE__ */ n.jsx(tt, { client: Ce, children: /* @__PURE__ */ n.jsxs(lt, { children: [
|
|
896
|
+
/* @__PURE__ */ n.jsx(ye, { children: r }),
|
|
897
|
+
/* @__PURE__ */ n.jsx(st, { value: a, children: /* @__PURE__ */ n.jsx(ct, { components: s, children: /* @__PURE__ */ n.jsx(_e, { children: /* @__PURE__ */ n.jsx(qt, { value: e, children: /* @__PURE__ */ n.jsx(Be, { children: /* @__PURE__ */ n.jsx(
|
|
898
|
+
ve,
|
|
896
899
|
{
|
|
897
900
|
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
898
901
|
children: /* @__PURE__ */ n.jsx(
|
|
899
|
-
|
|
902
|
+
zt,
|
|
900
903
|
{
|
|
901
904
|
plugins: [
|
|
902
905
|
...t.plugins ?? [],
|
|
@@ -907,12 +910,12 @@ const Lt = (t) => {
|
|
|
907
910
|
}
|
|
908
911
|
) }) }) }) }) })
|
|
909
912
|
] }) });
|
|
910
|
-
}, De =
|
|
913
|
+
}, De = ge(Kt);
|
|
911
914
|
De.displayName = "DevPortal";
|
|
912
|
-
const
|
|
915
|
+
const as = ht, ns = Ve, rs = De, is = Le;
|
|
913
916
|
export {
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
917
|
+
ns as Callout,
|
|
918
|
+
rs as DevPortal,
|
|
919
|
+
is as Link,
|
|
920
|
+
as as useMDXComponents
|
|
918
921
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-D7DwziLW.js";
|
|
2
2
|
import { l as g } from "./loglevel-CA34MiFn.js";
|
|
3
|
-
import { u as j } from "./hook-
|
|
4
|
-
import { u as v, a as m, S as b, b as w, c as N, d as k, e as K, f as p, B as o } from "./Select-
|
|
5
|
-
import { c as l, L as x } from "./index-
|
|
6
|
-
import { u as h, q as S, t as E } from "./DevPortalProvider
|
|
3
|
+
import { u as j } from "./hook-kVJ4gpk5.js";
|
|
4
|
+
import { u as v, a as m, S as b, b as w, c as N, d as k, e as K, f as p, B as o } from "./Select-CNmXi4JU.js";
|
|
5
|
+
import { c as l, L as x } from "./index-CUIxJAeE.js";
|
|
6
|
+
import { u as h, q as S, t as E } from "./DevPortalProvider--xZTs0RJ.js";
|
|
7
7
|
import * as A from "react";
|
|
8
8
|
import { useState as C } from "react";
|
|
9
9
|
import { c as P } from "./cn-DpqTslo9.js";
|
|
10
|
-
import {
|
|
10
|
+
import { b as D, O as I, a as O } from "./index-fXFJf9Ua.js";
|
|
11
11
|
/**
|
|
12
12
|
* @license lucide-react v0.378.0 - ISC
|
|
13
13
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as s } from "./jsx-runtime-D7DwziLW.js";
|
|
2
|
-
import { j as x } from "./DevPortalProvider
|
|
2
|
+
import { j as x } from "./DevPortalProvider--xZTs0RJ.js";
|
|
3
3
|
import { t as f, i as d } from "./util-DnDPBx_j.js";
|
|
4
|
-
import { N as g } from "./index-
|
|
4
|
+
import { N as g } from "./index-fXFJf9Ua.js";
|
|
5
5
|
const h = (t, e) => {
|
|
6
6
|
const n = Object.entries(t).flatMap(
|
|
7
7
|
([r, p]) => {
|
|
@@ -11,7 +11,7 @@ const h = (t, e) => {
|
|
|
11
11
|
return {
|
|
12
12
|
path: i.at(-1) === "index" ? i.slice(0, -1).join("/") : a,
|
|
13
13
|
lazy: async () => {
|
|
14
|
-
const { MdxPage: u } = await import("./MdxPage-
|
|
14
|
+
const { MdxPage: u } = await import("./MdxPage-BV_9ncEk.js"), { default: c, ...l } = await p();
|
|
15
15
|
return {
|
|
16
16
|
element: /* @__PURE__ */ s.jsx(
|
|
17
17
|
u,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zudoku",
|
|
3
|
-
"version": "0.3.0-dev.
|
|
3
|
+
"version": "0.3.0-dev.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -160,6 +160,8 @@
|
|
|
160
160
|
"scripts": {
|
|
161
161
|
"build": "tsc --project tsconfig.json",
|
|
162
162
|
"build:vite": "vite build && pnpm run hack:fix-worker-paths",
|
|
163
|
+
"build:standalone:vite": "vite build --config vite.standalone.config.ts && pnpm run hack:fix-worker-paths",
|
|
164
|
+
"build:standalone:html": "cp ./src/app/standalone.html ./standalone/standalone.html && cp ./src/app/demo.html ./standalone/demo.html && cp ./src/app/demo-cdn.html ./standalone/index.html",
|
|
163
165
|
"hack:fix-worker-paths": "node ./scripts/hack-worker.mjs",
|
|
164
166
|
"clean": "tsc --build --clean",
|
|
165
167
|
"test": "node --test --enable-source-maps"
|