zudoku 0.3.0-dev.16 → 0.3.0-dev.17
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/config/config.d.ts +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -0
- 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 +2 -2
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-docs.js +1 -1
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-redirect.js +2 -2
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/lib/DevPortalProvider-CRKuwoXc.js +4123 -0
- package/lib/Markdown-5LmPZyLV.js +8620 -0
- package/lib/MdxComponents-DYD_QPVF.js +3017 -0
- package/lib/Select-DR3PiqjV.js +4569 -0
- package/lib/Spinner-DjQ2eBxC.js +181 -0
- package/lib/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/lib/hook-FCY9-FHO.js +24 -0
- package/lib/index-By9bEW57.js +411 -0
- package/lib/{loglevel-CoH7VSwE.js → loglevel-CA34MiFn.js} +10 -10
- package/lib/state-Ds_OxRHP.js +288 -0
- package/lib/util-voKLTRDG.js +740 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +111 -104
- package/lib/zudoku.plugin-api-keys.js +292 -0
- package/lib/zudoku.plugin-markdown.js +255 -0
- package/lib/zudoku.plugin-openapi.js +6240 -0
- package/lib/zudoku.plugin-redirect.js +10 -0
- package/package.json +12 -3
- package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
- package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
- package/dist/lib/plugins/api-key/index.js.map +0 -1
- package/dist/lib/plugins/index.d.ts +0 -4
- package/dist/lib/plugins/index.js +0 -5
- package/dist/lib/plugins/index.js.map +0 -1
- package/lib/Spinner-Cf0Eb7YI.js +0 -8460
- package/lib/state-2Hu1renZ.js +0 -313
- package/lib/zudoku.plugins.js +0 -19918
- package/src/lib/plugins/index.ts +0 -4
- /package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.d.ts +0 -0
- /package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +0 -0
- /package/dist/lib/plugins/{api-key → api-keys}/SettingsApiKeys.d.ts +0 -0
- /package/dist/lib/plugins/{api-key → api-keys}/SettingsApiKeys.js +0 -0
- /package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +0 -0
- /package/dist/lib/plugins/{api-key → api-keys}/index.js +0 -0
- /package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +0 -0
- /package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +0 -0
- /package/src/lib/plugins/{api-key → api-keys}/index.tsx +0 -0
package/lib/zudoku.auth-auth0.js
CHANGED
package/lib/zudoku.auth-clerk.js
CHANGED
|
@@ -2,9 +2,9 @@ var ue = Object.defineProperty;
|
|
|
2
2
|
var he = (e, t, n) => t in e ? ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var w = (e, t, n) => he(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { a as de, j as g } from "./index-PyGcnQFX.js";
|
|
5
|
-
import { l as I } from "./loglevel-
|
|
5
|
+
import { l as I } from "./loglevel-CA34MiFn.js";
|
|
6
6
|
import { useRef as fe, useState as le, useEffect as pe } from "react";
|
|
7
|
-
import { u as M } from "./state-
|
|
7
|
+
import { u as M } from "./state-Ds_OxRHP.js";
|
|
8
8
|
let z;
|
|
9
9
|
var v, Z;
|
|
10
10
|
(typeof navigator > "u" || !((Z = (v = navigator.userAgent) == null ? void 0 : v.startsWith) != null && Z.call(v, "Mozilla/5.0 "))) && (z = "oauth4webapi/v2.11.1");
|
package/lib/zudoku.components.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
1
|
+
var De = Object.defineProperty;
|
|
2
2
|
var se = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var Ie = (t, e, s) => e in t ?
|
|
5
|
+
var Ie = (t, e, s) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
6
6
|
var g = (t, e, s) => Ie(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 E = (t, e, s, a) => ({
|
|
9
9
|
set _(r) {
|
|
10
10
|
u(t, e, r, s);
|
|
11
11
|
},
|
|
@@ -13,11 +13,18 @@ var S = (t, e, s, a) => ({
|
|
|
13
13
|
return i(t, e, a);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { j as n, u as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
16
|
+
import { u as Se, a as U, M as Ee, T as Re, V as Fe } from "./MdxComponents-DYD_QPVF.js";
|
|
17
|
+
import { C as Gt } from "./MdxComponents-DYD_QPVF.js";
|
|
18
|
+
import { j as n, u as T, O as He } from "./index-PyGcnQFX.js";
|
|
19
|
+
import { c as z, S as me, h as ge, Q as Le, n as m, m as ne, a as re, b as j, e as ze, d as Ke, f as _e, g as Be, o as ie, r as oe, i as Ve, j as le, p as ce, s as Ue, u as W, N as B, k as We, l as L, q as Xe, t as $e, v as Ge, w as Je, R as Ye, x as Ze, D as et } from "./DevPortalProvider-CRKuwoXc.js";
|
|
20
|
+
import { L as Yt } from "./DevPortalProvider-CRKuwoXc.js";
|
|
21
|
+
import { memo as ve, createContext as tt, useEffect as I, useRef as K, useState as st, forwardRef as at, Suspense as ye, useMemo as H, Fragment as nt } from "react";
|
|
22
|
+
import { c as rt } from "./state-Ds_OxRHP.js";
|
|
23
|
+
import { M as it } from "./index-By9bEW57.js";
|
|
24
|
+
import { c as X, i as V, j as xe, a as ot, A as lt, H as be, b as ct, M as ht } from "./util-voKLTRDG.js";
|
|
25
|
+
import { u as es } from "./util-voKLTRDG.js";
|
|
26
|
+
import { u as ut } from "./hook-FCY9-FHO.js";
|
|
27
|
+
import { R as je, T as Pe, C as we, S as dt } from "./Spinner-DjQ2eBxC.js";
|
|
21
28
|
/**
|
|
22
29
|
* @license lucide-react v0.378.0 - ISC
|
|
23
30
|
*
|
|
@@ -75,7 +82,7 @@ var x, de, gt = (de = class extends me {
|
|
|
75
82
|
build(e, s, a) {
|
|
76
83
|
const r = s.queryKey, o = s.queryHash ?? ge(r, s);
|
|
77
84
|
let l = this.get(o);
|
|
78
|
-
return l || (l = new
|
|
85
|
+
return l || (l = new Le({
|
|
79
86
|
cache: this,
|
|
80
87
|
queryKey: r,
|
|
81
88
|
queryHash: o,
|
|
@@ -138,29 +145,29 @@ var x, de, gt = (de = class extends me {
|
|
|
138
145
|
});
|
|
139
146
|
});
|
|
140
147
|
}
|
|
141
|
-
}, x = new WeakMap(), de), p,
|
|
148
|
+
}, x = new WeakMap(), de), p, D, fe, vt = (fe = class extends me {
|
|
142
149
|
constructor(e = {}) {
|
|
143
150
|
super();
|
|
144
151
|
v(this, p);
|
|
145
|
-
v(this,
|
|
146
|
-
this.config = e, u(this, p, /* @__PURE__ */ new Map()), u(this,
|
|
152
|
+
v(this, D);
|
|
153
|
+
this.config = e, u(this, p, /* @__PURE__ */ new Map()), u(this, D, Date.now());
|
|
147
154
|
}
|
|
148
155
|
build(e, s, a) {
|
|
149
|
-
const r = new
|
|
156
|
+
const r = new it({
|
|
150
157
|
mutationCache: this,
|
|
151
|
-
mutationId: ++
|
|
158
|
+
mutationId: ++E(this, D)._,
|
|
152
159
|
options: e.defaultMutationOptions(s),
|
|
153
160
|
state: a
|
|
154
161
|
});
|
|
155
162
|
return this.add(r), r;
|
|
156
163
|
}
|
|
157
164
|
add(e) {
|
|
158
|
-
const s =
|
|
165
|
+
const s = R(e), a = i(this, p).get(s) ?? [];
|
|
159
166
|
a.push(e), i(this, p).set(s, a), this.notify({ type: "added", mutation: e });
|
|
160
167
|
}
|
|
161
168
|
remove(e) {
|
|
162
169
|
var a;
|
|
163
|
-
const s =
|
|
170
|
+
const s = R(e);
|
|
164
171
|
if (i(this, p).has(s)) {
|
|
165
172
|
const r = (a = i(this, p).get(s)) == null ? void 0 : a.filter((o) => o !== e);
|
|
166
173
|
r && (r.length === 0 ? i(this, p).delete(s) : i(this, p).set(s, r));
|
|
@@ -169,12 +176,12 @@ var x, de, gt = (de = class extends me {
|
|
|
169
176
|
}
|
|
170
177
|
canRun(e) {
|
|
171
178
|
var a;
|
|
172
|
-
const s = (a = i(this, p).get(
|
|
179
|
+
const s = (a = i(this, p).get(R(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
|
|
173
180
|
return !s || s === e;
|
|
174
181
|
}
|
|
175
182
|
runNext(e) {
|
|
176
183
|
var a;
|
|
177
|
-
const s = (a = i(this, p).get(
|
|
184
|
+
const s = (a = i(this, p).get(R(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
|
|
178
185
|
return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
|
|
179
186
|
}
|
|
180
187
|
clear() {
|
|
@@ -211,8 +218,8 @@ var x, de, gt = (de = class extends me {
|
|
|
211
218
|
)
|
|
212
219
|
);
|
|
213
220
|
}
|
|
214
|
-
}, p = new WeakMap(),
|
|
215
|
-
function
|
|
221
|
+
}, p = new WeakMap(), D = new WeakMap(), fe);
|
|
222
|
+
function R(t) {
|
|
216
223
|
var e;
|
|
217
224
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
218
225
|
}
|
|
@@ -230,45 +237,45 @@ function yt(t) {
|
|
|
230
237
|
b = !0;
|
|
231
238
|
}), e.signal)
|
|
232
239
|
});
|
|
233
|
-
}, qe =
|
|
240
|
+
}, qe = ze(e.options, e.fetchOptions), _ = async (y, P, C) => {
|
|
234
241
|
if (b)
|
|
235
242
|
return Promise.reject();
|
|
236
243
|
if (P == null && y.pages.length)
|
|
237
244
|
return Promise.resolve(y);
|
|
238
|
-
const
|
|
245
|
+
const S = {
|
|
239
246
|
queryKey: e.queryKey,
|
|
240
247
|
pageParam: P,
|
|
241
|
-
direction:
|
|
248
|
+
direction: C ? "backward" : "forward",
|
|
242
249
|
meta: e.options.meta
|
|
243
250
|
};
|
|
244
|
-
f(
|
|
245
|
-
const
|
|
246
|
-
|
|
247
|
-
), { maxPages: ee } = e.options, te =
|
|
251
|
+
f(S);
|
|
252
|
+
const Te = await qe(
|
|
253
|
+
S
|
|
254
|
+
), { maxPages: ee } = e.options, te = C ? Ke : _e;
|
|
248
255
|
return {
|
|
249
|
-
pages: te(y.pages,
|
|
256
|
+
pages: te(y.pages, Te, ee),
|
|
250
257
|
pageParams: te(y.pageParams, P, ee)
|
|
251
258
|
};
|
|
252
259
|
};
|
|
253
|
-
let
|
|
260
|
+
let M;
|
|
254
261
|
if (o && l.length) {
|
|
255
|
-
const y = o === "backward", P = y ? xt : he,
|
|
262
|
+
const y = o === "backward", P = y ? xt : he, C = {
|
|
256
263
|
pages: l,
|
|
257
264
|
pageParams: h
|
|
258
|
-
},
|
|
259
|
-
|
|
265
|
+
}, S = P(r, C);
|
|
266
|
+
M = await _(C, S, y);
|
|
260
267
|
} else {
|
|
261
|
-
|
|
268
|
+
M = await _(
|
|
262
269
|
d,
|
|
263
270
|
h[0] ?? r.initialPageParam
|
|
264
271
|
);
|
|
265
272
|
const y = t ?? l.length;
|
|
266
273
|
for (let P = 1; P < y; P++) {
|
|
267
|
-
const
|
|
268
|
-
|
|
274
|
+
const C = he(r, M);
|
|
275
|
+
M = await _(M, C);
|
|
269
276
|
}
|
|
270
277
|
}
|
|
271
|
-
return
|
|
278
|
+
return M;
|
|
272
279
|
};
|
|
273
280
|
e.options.persister ? e.fetchFn = () => {
|
|
274
281
|
var r, o;
|
|
@@ -305,20 +312,20 @@ function xt(t, { pages: e, pageParams: s }) {
|
|
|
305
312
|
s
|
|
306
313
|
);
|
|
307
314
|
}
|
|
308
|
-
var c, w, N,
|
|
315
|
+
var c, w, N, O, A, k, Q, q, pe, bt = (pe = class {
|
|
309
316
|
constructor(t = {}) {
|
|
310
317
|
v(this, c);
|
|
311
318
|
v(this, w);
|
|
312
319
|
v(this, N);
|
|
313
|
-
v(this,
|
|
320
|
+
v(this, O);
|
|
314
321
|
v(this, A);
|
|
315
322
|
v(this, k);
|
|
316
323
|
v(this, Q);
|
|
317
324
|
v(this, q);
|
|
318
|
-
u(this, c, t.queryCache || new gt()), u(this, w, t.mutationCache || new vt()), u(this, N, t.defaultOptions || {}), u(this,
|
|
325
|
+
u(this, c, t.queryCache || new gt()), u(this, w, t.mutationCache || new vt()), u(this, N, t.defaultOptions || {}), u(this, O, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, k, 0);
|
|
319
326
|
}
|
|
320
327
|
mount() {
|
|
321
|
-
|
|
328
|
+
E(this, k)._++, i(this, k) === 1 && (u(this, Q, Be.subscribe(async (t) => {
|
|
322
329
|
t && (await this.resumePausedMutations(), i(this, c).onFocus());
|
|
323
330
|
})), u(this, q, ie.subscribe(async (t) => {
|
|
324
331
|
t && (await this.resumePausedMutations(), i(this, c).onOnline());
|
|
@@ -326,7 +333,7 @@ var c, w, N, M, A, k, Q, q, pe, bt = (pe = class {
|
|
|
326
333
|
}
|
|
327
334
|
unmount() {
|
|
328
335
|
var t, e;
|
|
329
|
-
|
|
336
|
+
E(this, k)._--, i(this, k) === 0 && ((t = i(this, Q)) == null || t.call(this), u(this, Q, void 0), (e = i(this, q)) == null || e.call(this), u(this, q, void 0));
|
|
330
337
|
}
|
|
331
338
|
isFetching(t) {
|
|
332
339
|
return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -357,7 +364,7 @@ var c, w, N, M, A, k, Q, q, pe, bt = (pe = class {
|
|
|
357
364
|
setQueryData(t, e, s) {
|
|
358
365
|
const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
|
|
359
366
|
a.queryHash
|
|
360
|
-
), o = r == null ? void 0 : r.state.data, l =
|
|
367
|
+
), o = r == null ? void 0 : r.state.data, l = Ve(e, o);
|
|
361
368
|
if (l !== void 0)
|
|
362
369
|
return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
|
|
363
370
|
}
|
|
@@ -455,13 +462,13 @@ var c, w, N, M, A, k, Q, q, pe, bt = (pe = class {
|
|
|
455
462
|
u(this, N, t);
|
|
456
463
|
}
|
|
457
464
|
setQueryDefaults(t, e) {
|
|
458
|
-
i(this,
|
|
465
|
+
i(this, O).set(le(t), {
|
|
459
466
|
queryKey: t,
|
|
460
467
|
defaultOptions: e
|
|
461
468
|
});
|
|
462
469
|
}
|
|
463
470
|
getQueryDefaults(t) {
|
|
464
|
-
const e = [...i(this,
|
|
471
|
+
const e = [...i(this, O).values()];
|
|
465
472
|
let s = {};
|
|
466
473
|
return e.forEach((a) => {
|
|
467
474
|
ce(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
|
|
@@ -492,7 +499,7 @@ var c, w, N, M, A, k, Q, q, pe, bt = (pe = class {
|
|
|
492
499
|
return e.queryHash || (e.queryHash = ge(
|
|
493
500
|
e.queryKey,
|
|
494
501
|
e
|
|
495
|
-
)), 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 ===
|
|
502
|
+
)), 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 === Ue && (e.enabled = !1), e;
|
|
496
503
|
}
|
|
497
504
|
defaultMutationOptions(t) {
|
|
498
505
|
return t != null && t._defaulted ? t : {
|
|
@@ -505,8 +512,8 @@ var c, w, N, M, A, k, Q, q, pe, bt = (pe = class {
|
|
|
505
512
|
clear() {
|
|
506
513
|
i(this, c).clear(), i(this, w).clear();
|
|
507
514
|
}
|
|
508
|
-
}, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(),
|
|
509
|
-
const ke = (t) => "getRoutes" in t && typeof t.getRoutes == "function", jt = (t) => "initialize" in t && typeof t.initialize == "function", Pt = (t) => "getHead" in t && typeof t.getHead == "function", wt = (t) => "getIdentities" in t && typeof t.getIdentities == "function",
|
|
515
|
+
}, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), O = new WeakMap(), A = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
|
|
516
|
+
const ke = (t) => "getRoutes" in t && typeof t.getRoutes == "function", jt = (t) => "initialize" in t && typeof t.initialize == "function", Pt = (t) => "getHead" in t && typeof t.getHead == "function", wt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ce = new bt(), Nt = rt(() => ({}));
|
|
510
517
|
class kt {
|
|
511
518
|
constructor(e) {
|
|
512
519
|
g(this, "plugins", []);
|
|
@@ -525,7 +532,7 @@ class kt {
|
|
|
525
532
|
]);
|
|
526
533
|
});
|
|
527
534
|
g(this, "invalidateCache", async (e) => {
|
|
528
|
-
await
|
|
535
|
+
await Ce.invalidateQueries({ queryKey: e });
|
|
529
536
|
});
|
|
530
537
|
g(this, "getApiIdentities", async () => (await Promise.all(
|
|
531
538
|
this.plugins.filter(wt).map((s) => s.getIdentities(this))
|
|
@@ -547,12 +554,12 @@ class kt {
|
|
|
547
554
|
return e.headers.set("Authorization", `Bearer ${s}`), e;
|
|
548
555
|
}
|
|
549
556
|
}
|
|
550
|
-
const
|
|
551
|
-
const { navigation: t } =
|
|
557
|
+
const Ct = () => {
|
|
558
|
+
const { navigation: t } = W();
|
|
552
559
|
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(
|
|
553
560
|
B,
|
|
554
561
|
{
|
|
555
|
-
className: ({ isActive: s }) =>
|
|
562
|
+
className: ({ isActive: s }) => We(
|
|
556
563
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
557
564
|
s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
558
565
|
),
|
|
@@ -560,8 +567,8 @@ const Ot = () => {
|
|
|
560
567
|
children: e.label
|
|
561
568
|
}
|
|
562
569
|
) }, e.label)) }) });
|
|
563
|
-
},
|
|
564
|
-
const [e, s] =
|
|
570
|
+
}, Me = ve(function() {
|
|
571
|
+
const [e, s] = Se(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = ut(), { page: d } = W(), b = e ? pt : mt;
|
|
565
572
|
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: [
|
|
566
573
|
/* @__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: [
|
|
567
574
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
@@ -600,12 +607,12 @@ const Ot = () => {
|
|
|
600
607
|
] })
|
|
601
608
|
] })
|
|
602
609
|
] }),
|
|
603
|
-
/* @__PURE__ */ n.jsx(
|
|
610
|
+
/* @__PURE__ */ n.jsx(Ct, {})
|
|
604
611
|
] }) });
|
|
605
|
-
}),
|
|
606
|
-
Header:
|
|
607
|
-
},
|
|
608
|
-
const t =
|
|
612
|
+
}), Oe = {
|
|
613
|
+
Header: Me
|
|
614
|
+
}, Mt = tt(Oe), Ot = Mt.Provider, At = () => {
|
|
615
|
+
const t = T(), { setActiveAnchor: e } = U();
|
|
609
616
|
I(() => {
|
|
610
617
|
if (!t.hash) return;
|
|
611
618
|
const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
|
|
@@ -622,7 +629,7 @@ const Ot = () => {
|
|
|
622
629
|
return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
623
630
|
}, [t.hash, e]);
|
|
624
631
|
}, Qt = () => {
|
|
625
|
-
const t =
|
|
632
|
+
const t = T(), e = K(t.pathname);
|
|
626
633
|
I(() => {
|
|
627
634
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
628
635
|
}, [t.pathname]);
|
|
@@ -631,11 +638,11 @@ const Ot = () => {
|
|
|
631
638
|
defaultOpen: e,
|
|
632
639
|
path: s
|
|
633
640
|
}) => {
|
|
634
|
-
const [a, r] =
|
|
641
|
+
const [a, r] = st(e), o = T(), l = K(o.pathname);
|
|
635
642
|
return I(() => {
|
|
636
643
|
!a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
|
|
637
644
|
}, [a, t, s, o.pathname]), [a, r];
|
|
638
|
-
},
|
|
645
|
+
}, F = Xe(
|
|
639
646
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
640
647
|
{
|
|
641
648
|
variants: {
|
|
@@ -656,15 +663,15 @@ const Ot = () => {
|
|
|
656
663
|
currentTopNavItem: a,
|
|
657
664
|
basePath: r = ""
|
|
658
665
|
}) => {
|
|
659
|
-
const o = V(e) ?
|
|
666
|
+
const o = V(e) ? xe(r, e.path) : "", l = T(), [h, d] = Ae({
|
|
660
667
|
item: e,
|
|
661
668
|
path: o,
|
|
662
669
|
defaultOpen: () => X(e, l.pathname, o)
|
|
663
670
|
});
|
|
664
|
-
if (
|
|
671
|
+
if (ot(e)) {
|
|
665
672
|
const f = L(
|
|
666
673
|
"flex items-center gap-2",
|
|
667
|
-
|
|
674
|
+
F({
|
|
668
675
|
isActive: e.href === l.pathname
|
|
669
676
|
})
|
|
670
677
|
);
|
|
@@ -696,23 +703,23 @@ const Ot = () => {
|
|
|
696
703
|
)
|
|
697
704
|
] });
|
|
698
705
|
return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
|
|
699
|
-
|
|
706
|
+
je,
|
|
700
707
|
{
|
|
701
708
|
open: h,
|
|
702
709
|
onOpenChange: () => d((f) => !f),
|
|
703
710
|
className: "flex flex-col",
|
|
704
711
|
children: [
|
|
705
712
|
/* @__PURE__ */ n.jsx(
|
|
706
|
-
|
|
713
|
+
Pe,
|
|
707
714
|
{
|
|
708
715
|
className: L(
|
|
709
716
|
"group text-start",
|
|
710
|
-
|
|
717
|
+
F({ isActive: !1 })
|
|
711
718
|
),
|
|
712
719
|
children: b
|
|
713
720
|
}
|
|
714
721
|
),
|
|
715
|
-
/* @__PURE__ */ n.jsx(
|
|
722
|
+
/* @__PURE__ */ n.jsx(we, { 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(
|
|
716
723
|
Qe,
|
|
717
724
|
{
|
|
718
725
|
category: t,
|
|
@@ -726,11 +733,11 @@ const Ot = () => {
|
|
|
726
733
|
]
|
|
727
734
|
}
|
|
728
735
|
) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
|
|
729
|
-
|
|
736
|
+
lt,
|
|
730
737
|
{
|
|
731
738
|
to: e.path,
|
|
732
739
|
[qt]: e.path,
|
|
733
|
-
className:
|
|
740
|
+
className: F({
|
|
734
741
|
isActive: e.path.slice(1) === s,
|
|
735
742
|
isMuted: e.muted
|
|
736
743
|
}),
|
|
@@ -739,26 +746,26 @@ const Ot = () => {
|
|
|
739
746
|
) : /* @__PURE__ */ n.jsx(
|
|
740
747
|
B,
|
|
741
748
|
{
|
|
742
|
-
className: ({ isActive: f }) =>
|
|
749
|
+
className: ({ isActive: f }) => F({ isActive: f }),
|
|
743
750
|
to: o,
|
|
744
751
|
children: b
|
|
745
752
|
}
|
|
746
753
|
) });
|
|
747
|
-
},
|
|
754
|
+
}, Tt = ({
|
|
748
755
|
category: t
|
|
749
756
|
}) => {
|
|
750
|
-
const { activeAnchor: e } =
|
|
757
|
+
const { activeAnchor: e } = U(), s = $e(), a = T(), r = t.collapsible ?? !0, [o, l] = Ae({
|
|
751
758
|
item: t,
|
|
752
759
|
path: (s == null ? void 0 : s.path) ?? "",
|
|
753
760
|
defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
|
|
754
761
|
});
|
|
755
762
|
return /* @__PURE__ */ n.jsxs(
|
|
756
|
-
|
|
763
|
+
je,
|
|
757
764
|
{
|
|
758
765
|
open: o,
|
|
759
766
|
onOpenChange: () => l((h) => !h),
|
|
760
767
|
children: [
|
|
761
|
-
t.label.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
768
|
+
t.label.length > 0 ? /* @__PURE__ */ n.jsx(Pe, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
|
|
762
769
|
"h5",
|
|
763
770
|
{
|
|
764
771
|
className: L(
|
|
@@ -777,14 +784,14 @@ const Ot = () => {
|
|
|
777
784
|
]
|
|
778
785
|
}
|
|
779
786
|
) }) : "Endpoints",
|
|
780
|
-
/* @__PURE__ */ n.jsx(
|
|
787
|
+
/* @__PURE__ */ n.jsx(we, { 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(
|
|
781
788
|
Qe,
|
|
782
789
|
{
|
|
783
790
|
category: t,
|
|
784
791
|
item: h,
|
|
785
792
|
activeAnchor: e,
|
|
786
793
|
currentTopNavItem: s,
|
|
787
|
-
basePath:
|
|
794
|
+
basePath: xe(s == null ? void 0 : s.path, t.path)
|
|
788
795
|
},
|
|
789
796
|
V(h) ? h.path + h.label : h.href
|
|
790
797
|
)) }) })
|
|
@@ -792,7 +799,7 @@ const Ot = () => {
|
|
|
792
799
|
},
|
|
793
800
|
t.label
|
|
794
801
|
);
|
|
795
|
-
},
|
|
802
|
+
}, Dt = at(function({ children: e, className: s, pushMainContent: a }, r) {
|
|
796
803
|
return /* @__PURE__ */ n.jsx(
|
|
797
804
|
"nav",
|
|
798
805
|
{
|
|
@@ -808,30 +815,30 @@ const Ot = () => {
|
|
|
808
815
|
}), It = () => {
|
|
809
816
|
const t = K(null), e = Ge();
|
|
810
817
|
return /* @__PURE__ */ n.jsx(
|
|
811
|
-
|
|
818
|
+
Dt,
|
|
812
819
|
{
|
|
813
820
|
ref: t,
|
|
814
821
|
pushMainContent: e.data.items.length > 0,
|
|
815
|
-
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(
|
|
822
|
+
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Tt, { category: s }, s.label))
|
|
816
823
|
}
|
|
817
824
|
);
|
|
818
825
|
}, ue = ({ children: t }) => {
|
|
819
|
-
const e =
|
|
826
|
+
const e = T(), { setActiveAnchor: s } = U(), { meta: a } = W();
|
|
820
827
|
At(), Qt();
|
|
821
828
|
const r = K(e.pathname);
|
|
822
829
|
return I(() => {
|
|
823
830
|
e.pathname !== r.current && s(""), r.current = e.pathname;
|
|
824
831
|
}, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
825
|
-
/* @__PURE__ */ n.jsxs(
|
|
832
|
+
/* @__PURE__ */ n.jsxs(be, { titleTemplate: a == null ? void 0 : a.title, children: [
|
|
826
833
|
/* @__PURE__ */ n.jsx("title", { children: "Home" }),
|
|
827
834
|
(a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
|
|
828
835
|
(a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
|
|
829
836
|
] }),
|
|
830
|
-
/* @__PURE__ */ n.jsx(
|
|
837
|
+
/* @__PURE__ */ n.jsx(Me, {}),
|
|
831
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(
|
|
832
|
-
|
|
839
|
+
ye,
|
|
833
840
|
{
|
|
834
|
-
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(dt, {}) }),
|
|
835
842
|
children: [
|
|
836
843
|
/* @__PURE__ */ n.jsx(It, {}),
|
|
837
844
|
/* @__PURE__ */ n.jsx(
|
|
@@ -841,7 +848,7 @@ const Ot = () => {
|
|
|
841
848
|
lg:overflow-visible
|
|
842
849
|
lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
|
|
843
850
|
lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
|
|
844
|
-
children: t ?? /* @__PURE__ */ n.jsx(
|
|
851
|
+
children: t ?? /* @__PURE__ */ n.jsx(He, {})
|
|
845
852
|
}
|
|
846
853
|
)
|
|
847
854
|
]
|
|
@@ -849,12 +856,12 @@ const Ot = () => {
|
|
|
849
856
|
) })
|
|
850
857
|
] });
|
|
851
858
|
};
|
|
852
|
-
function
|
|
859
|
+
function St({ plugins: t }) {
|
|
853
860
|
const e = H(() => {
|
|
854
861
|
const s = (t ?? []).flatMap(
|
|
855
862
|
(a) => ke(a) ? a.getRoutes() : []
|
|
856
863
|
);
|
|
857
|
-
return
|
|
864
|
+
return Je([
|
|
858
865
|
{
|
|
859
866
|
path: "/",
|
|
860
867
|
element: /* @__PURE__ */ n.jsx(ue, {}),
|
|
@@ -863,15 +870,15 @@ function Et({ plugins: t }) {
|
|
|
863
870
|
}
|
|
864
871
|
]);
|
|
865
872
|
}, [t]);
|
|
866
|
-
return /* @__PURE__ */ n.jsx(
|
|
873
|
+
return /* @__PURE__ */ n.jsx(Ye, { router: e });
|
|
867
874
|
}
|
|
868
|
-
const
|
|
875
|
+
const Et = (t) => {
|
|
869
876
|
var o;
|
|
870
877
|
const e = H(
|
|
871
|
-
() => ({ ...
|
|
878
|
+
() => ({ ...Oe, ...t.overrides }),
|
|
872
879
|
[t.overrides]
|
|
873
880
|
), s = H(
|
|
874
|
-
() => ({ ...
|
|
881
|
+
() => ({ ...Ee, ...t.mdxComponents }),
|
|
875
882
|
[t.mdxComponents]
|
|
876
883
|
), a = H(() => new kt(t), [t]);
|
|
877
884
|
I(() => {
|
|
@@ -879,16 +886,16 @@ const St = (t) => {
|
|
|
879
886
|
}, [a]);
|
|
880
887
|
const r = (o = t.plugins) == null ? void 0 : o.filter(Pt).map((l, h) => {
|
|
881
888
|
var d;
|
|
882
|
-
return /* @__PURE__ */ n.jsx(
|
|
889
|
+
return /* @__PURE__ */ n.jsx(nt, { children: (d = l.getHead) == null ? void 0 : d.call(l) }, h);
|
|
883
890
|
});
|
|
884
|
-
return /* @__PURE__ */ n.jsx(
|
|
885
|
-
/* @__PURE__ */ n.jsx(
|
|
886
|
-
/* @__PURE__ */ n.jsx(
|
|
887
|
-
|
|
891
|
+
return /* @__PURE__ */ n.jsx(Ze, { client: Ce, children: /* @__PURE__ */ n.jsxs(ct, { children: [
|
|
892
|
+
/* @__PURE__ */ n.jsx(be, { children: r }),
|
|
893
|
+
/* @__PURE__ */ n.jsx(et, { value: a, children: /* @__PURE__ */ n.jsx(ht, { components: s, children: /* @__PURE__ */ n.jsx(Re, { children: /* @__PURE__ */ n.jsx(Ot, { value: e, children: /* @__PURE__ */ n.jsx(Fe, { children: /* @__PURE__ */ n.jsx(
|
|
894
|
+
ye,
|
|
888
895
|
{
|
|
889
896
|
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
890
897
|
children: /* @__PURE__ */ n.jsx(
|
|
891
|
-
|
|
898
|
+
St,
|
|
892
899
|
{
|
|
893
900
|
plugins: [
|
|
894
901
|
...t.plugins ?? [],
|
|
@@ -899,11 +906,11 @@ const St = (t) => {
|
|
|
899
906
|
}
|
|
900
907
|
) }) }) }) }) })
|
|
901
908
|
] }) });
|
|
902
|
-
},
|
|
903
|
-
|
|
909
|
+
}, Rt = ve(Et);
|
|
910
|
+
Rt.displayName = "DevPortal";
|
|
904
911
|
export {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
912
|
+
Gt as Callout,
|
|
913
|
+
Rt as DevPortal,
|
|
914
|
+
Yt as Link,
|
|
915
|
+
es as useMDXComponents
|
|
909
916
|
};
|