zudoku 0.3.0-dev.56 → 0.3.0-dev.58
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.js +6 -1
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +1 -1
- package/dist/app/entry.client.js +1 -1
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +1 -1
- package/dist/app/entry.server.js +1 -1
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +1 -1
- package/dist/app/main.js +9 -2
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +6 -1
- package/dist/app/standalone.js.map +1 -1
- package/dist/config/validators/validate.d.ts +65 -5
- package/dist/config/validators/validate.js +7 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/components/Header.js +3 -2
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationCategory.js +2 -2
- package/dist/lib/components/navigation/SideNavigationCategory.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +8 -1
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +5 -3
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +2 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +5 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js +13 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -0
- package/dist/vite/plugin-custom-css.js +2 -3
- package/dist/vite/plugin-custom-css.js.map +1 -1
- package/lib/{AnchorLink-GNsUeGSX.js → AnchorLink-B4IgsA83.js} +2 -2
- package/lib/{AnchorLink-GNsUeGSX.js.map → AnchorLink-B4IgsA83.js.map} +1 -1
- package/lib/{Button-DpHMZvVs.js → Button-CnuhSW99.js} +2 -2
- package/lib/{Button-DpHMZvVs.js.map → Button-CnuhSW99.js.map} +1 -1
- package/lib/{Markdown-DtLFdxD1.js → Markdown-DQrAhTkw.js} +3 -3
- package/lib/{Markdown-DtLFdxD1.js.map → Markdown-DQrAhTkw.js.map} +1 -1
- package/lib/{MdxPage-CbwYRKf5.js → MdxPage-DMP-pM_g.js} +3 -3
- package/lib/{MdxPage-CbwYRKf5.js.map → MdxPage-DMP-pM_g.js.map} +1 -1
- package/lib/{OperationList-DpR4KzIJ.js → OperationList-Dw2SadHL.js} +813 -805
- package/lib/OperationList-Dw2SadHL.js.map +1 -0
- package/lib/{Spinner-Bhbs5aPI.js → Spinner-BuBOzK_8.js} +2 -2
- package/lib/{Spinner-Bhbs5aPI.js.map → Spinner-BuBOzK_8.js.map} +1 -1
- package/lib/assets/{worker-BjPv-hjP.js → worker-BWwCA-wk.js} +8 -5
- package/lib/assets/{worker-BjPv-hjP.js.map → worker-BWwCA-wk.js.map} +1 -1
- package/lib/{hook-Biq3zYel.js → hook-CrQMC_eg.js} +2 -2
- package/lib/{hook-Biq3zYel.js.map → hook-CrQMC_eg.js.map} +1 -1
- package/lib/{index-DZ910ttL.js → index-tOwoT-uJ.js} +3 -3
- package/lib/{index-DZ910ttL.js.map → index-tOwoT-uJ.js.map} +1 -1
- package/lib/zudoku.components.js +127 -106
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +8 -5
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +6 -6
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/package.json +2 -2
- package/src/app/demo.tsx +6 -1
- package/src/app/entry.client.tsx +1 -1
- package/src/app/entry.server.tsx +1 -1
- package/src/app/main.tsx +11 -2
- package/src/app/standalone.tsx +6 -1
- package/src/lib/components/Header.tsx +17 -1
- package/src/lib/components/navigation/SideNavigationCategory.tsx +3 -3
- package/src/lib/core/DevPortalContext.ts +8 -1
- package/src/lib/oas/graphql/index.ts +7 -3
- package/src/lib/plugins/openapi/OperationList.tsx +9 -6
- package/src/lib/plugins/openapi/StaggeredRender.tsx +17 -0
- package/lib/OperationList-DpR4KzIJ.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var $e = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var le = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
5
|
var Ve = (t, e, r) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
-
var v = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r),
|
|
7
|
-
var l = (t, e, r) => (
|
|
6
|
+
var v = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r), ce = (t, e, r) => e.has(t) || le("Cannot " + r);
|
|
7
|
+
var l = (t, e, r) => (ce(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? le("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), f = (t, e, r, a) => (ce(t, e, "write to private field"), a ? a.call(t, r) : e.set(t, r), r);
|
|
8
8
|
var L = (t, e, r, a) => ({
|
|
9
9
|
set _(s) {
|
|
10
10
|
f(t, e, s, r);
|
|
@@ -13,17 +13,17 @@ var L = (t, e, r, a) => ({
|
|
|
13
13
|
return l(t, e, a);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { c as U, d as Ye, R as Je, N as J, a as Xe, u as We, M as Ge, T as Ze, V as et,
|
|
17
|
-
import { E as Ee, u as st, R as nt } from "./hook-
|
|
18
|
-
import { j as n, d as it, u as
|
|
19
|
-
import { H as Pe, a as je, M as lt, A as ct, u as ut } from "./AnchorLink-
|
|
20
|
-
import ht, { StrictMode as Se, createContext as Ne, Component as dt, createElement as
|
|
21
|
-
import { g as
|
|
16
|
+
import { c as U, d as Ye, R as Je, N as J, a as Xe, u as We, b as R, M as Ge, T as Ze, V as et, e as X, f as tt, C as rt, L as at } from "./Markdown-DQrAhTkw.js";
|
|
17
|
+
import { E as Ee, u as st, R as nt } from "./hook-CrQMC_eg.js";
|
|
18
|
+
import { j as n, d as it, u as F, O as ot } from "./jsx-runtime-CJZJivg2.js";
|
|
19
|
+
import { H as Pe, a as je, M as lt, A as ct, u as ut } from "./AnchorLink-B4IgsA83.js";
|
|
20
|
+
import ht, { StrictMode as Se, createContext as Ne, Component as dt, createElement as ue, isValidElement as ft, memo as Ce, useMemo as V, useEffect as I, Fragment as pt, useRef as K, useState as mt, forwardRef as gt, Suspense as vt } from "react";
|
|
21
|
+
import { g as W } from "./_commonjsHelpers-BVfed4GL.js";
|
|
22
22
|
import { r as yt } from "./router-CBw2vqJE.js";
|
|
23
|
-
import { S as Oe, h as Ae, Q as bt, n as m, m as
|
|
23
|
+
import { S as Oe, h as Ae, Q as bt, n as m, m as he, a as de, b as P, e as xt, c as wt, d as Et, f as Pt, o as fe, r as pe, g as jt, i as me, p as ge, s as St, u as G, j as Nt, D as Ct, k as Ot, l as At } from "./DevPortalProvider-Do9oJqme.js";
|
|
24
24
|
import { M as Rt } from "./index-gsAuUwQh.js";
|
|
25
|
-
import { R as Re, T as ke, C as Me, S as kt } from "./Spinner-
|
|
26
|
-
import { c as
|
|
25
|
+
import { R as Re, T as ke, C as Me, S as kt } from "./Spinner-BuBOzK_8.js";
|
|
26
|
+
import { c as Z, i as ve, j as De, a as Mt } from "./util-_jwUlTBU.js";
|
|
27
27
|
/**
|
|
28
28
|
* @license lucide-react v0.378.0 - ISC
|
|
29
29
|
*
|
|
@@ -76,9 +76,9 @@ function Ft({ error: t }) {
|
|
|
76
76
|
return /* @__PURE__ */ n.jsx(Ee, { error: t });
|
|
77
77
|
}
|
|
78
78
|
var q = {};
|
|
79
|
-
const Qt = /* @__PURE__ */
|
|
79
|
+
const Qt = /* @__PURE__ */ W(yt), It = /* @__PURE__ */ W(it), qt = /* @__PURE__ */ W(Ye);
|
|
80
80
|
Object.defineProperty(q, "__esModule", { value: !0 });
|
|
81
|
-
var Ht = ht, E = Qt,
|
|
81
|
+
var Ht = ht, E = Qt, ee = It, j = qt;
|
|
82
82
|
function Lt(t) {
|
|
83
83
|
if (t && t.__esModule) return t;
|
|
84
84
|
var e = /* @__PURE__ */ Object.create(null);
|
|
@@ -134,20 +134,20 @@ function zt({
|
|
|
134
134
|
basename: t.basename || "/"
|
|
135
135
|
}, o = /* @__PURE__ */ new Map(), i = "";
|
|
136
136
|
if (r !== !1) {
|
|
137
|
-
let
|
|
137
|
+
let c = {
|
|
138
138
|
loaderData: t.loaderData,
|
|
139
139
|
actionData: t.actionData,
|
|
140
140
|
errors: Kt(t.errors)
|
|
141
141
|
};
|
|
142
|
-
i = `window.__staticRouterHydrationData = JSON.parse(${Wt(JSON.stringify(JSON.stringify(
|
|
142
|
+
i = `window.__staticRouterHydrationData = JSON.parse(${Wt(JSON.stringify(JSON.stringify(c)))});`;
|
|
143
143
|
}
|
|
144
144
|
let {
|
|
145
|
-
state:
|
|
145
|
+
state: u
|
|
146
146
|
} = s.router;
|
|
147
147
|
return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterContext.Provider, {
|
|
148
148
|
value: s
|
|
149
149
|
}, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterStateContext.Provider, {
|
|
150
|
-
value:
|
|
150
|
+
value: u
|
|
151
151
|
}, /* @__PURE__ */ x.createElement(j.UNSAFE_FetchersContext.Provider, {
|
|
152
152
|
value: o
|
|
153
153
|
}, /* @__PURE__ */ x.createElement(j.UNSAFE_ViewTransitionContext.Provider, {
|
|
@@ -156,8 +156,8 @@ function zt({
|
|
|
156
156
|
}
|
|
157
157
|
}, /* @__PURE__ */ x.createElement(j.Router, {
|
|
158
158
|
basename: s.basename,
|
|
159
|
-
location:
|
|
160
|
-
navigationType:
|
|
159
|
+
location: u.location,
|
|
160
|
+
navigationType: u.historyAction,
|
|
161
161
|
navigator: s.navigator,
|
|
162
162
|
static: s.static,
|
|
163
163
|
future: {
|
|
@@ -166,7 +166,7 @@ function zt({
|
|
|
166
166
|
}, /* @__PURE__ */ x.createElement(Ut, {
|
|
167
167
|
routes: e.routes,
|
|
168
168
|
future: e.future,
|
|
169
|
-
state:
|
|
169
|
+
state: u
|
|
170
170
|
})))))), i ? /* @__PURE__ */ x.createElement("script", {
|
|
171
171
|
suppressHydrationWarning: !0,
|
|
172
172
|
nonce: a,
|
|
@@ -180,7 +180,7 @@ function Ut({
|
|
|
180
180
|
future: e,
|
|
181
181
|
state: r
|
|
182
182
|
}) {
|
|
183
|
-
return
|
|
183
|
+
return ee.UNSAFE_useRoutesImpl(t, void 0, r, e);
|
|
184
184
|
}
|
|
185
185
|
function Kt(t) {
|
|
186
186
|
if (!t) return null;
|
|
@@ -224,29 +224,29 @@ function Te() {
|
|
|
224
224
|
function $t(t, e) {
|
|
225
225
|
return E.createStaticHandler(t, {
|
|
226
226
|
...e,
|
|
227
|
-
mapRouteProperties:
|
|
227
|
+
mapRouteProperties: ee.UNSAFE_mapRouteProperties
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
function Vt(t, e, r = {}) {
|
|
231
|
-
let a = {}, s = E.UNSAFE_convertRoutesToDataRoutes(t,
|
|
232
|
-
let
|
|
231
|
+
let a = {}, s = E.UNSAFE_convertRoutesToDataRoutes(t, ee.UNSAFE_mapRouteProperties, void 0, a), o = e.matches.map((u) => {
|
|
232
|
+
let c = a[u.route.id] || u.route;
|
|
233
233
|
return {
|
|
234
|
-
...
|
|
235
|
-
route:
|
|
234
|
+
...u,
|
|
235
|
+
route: c
|
|
236
236
|
};
|
|
237
|
-
}), i = (
|
|
237
|
+
}), i = (u) => `You cannot use router.${u}() on the server because it is a stateless environment`;
|
|
238
238
|
return {
|
|
239
239
|
get basename() {
|
|
240
240
|
return e.basename;
|
|
241
241
|
},
|
|
242
242
|
get future() {
|
|
243
|
-
var
|
|
243
|
+
var u, c;
|
|
244
244
|
return {
|
|
245
245
|
v7_fetcherPersist: !1,
|
|
246
246
|
v7_normalizeFormMethod: !1,
|
|
247
|
-
v7_partialHydration: ((
|
|
247
|
+
v7_partialHydration: ((u = r.future) == null ? void 0 : u.v7_partialHydration) === !0,
|
|
248
248
|
v7_prependBasename: !1,
|
|
249
|
-
v7_relativeSplatPath: ((
|
|
249
|
+
v7_relativeSplatPath: ((c = r.future) == null ? void 0 : c.v7_relativeSplatPath) === !0,
|
|
250
250
|
unstable_skipActionErrorRevalidation: !1
|
|
251
251
|
};
|
|
252
252
|
},
|
|
@@ -395,12 +395,12 @@ var w, be, tr = (be = class extends Oe {
|
|
|
395
395
|
find(e) {
|
|
396
396
|
const r = { exact: !0, ...e };
|
|
397
397
|
return this.getAll().find(
|
|
398
|
-
(a) =>
|
|
398
|
+
(a) => he(r, a)
|
|
399
399
|
);
|
|
400
400
|
}
|
|
401
401
|
findAll(e = {}) {
|
|
402
402
|
const r = this.getAll();
|
|
403
|
-
return Object.keys(e).length > 0 ? r.filter((a) =>
|
|
403
|
+
return Object.keys(e).length > 0 ? r.filter((a) => he(e, a)) : r;
|
|
404
404
|
}
|
|
405
405
|
notify(e) {
|
|
406
406
|
m.batch(() => {
|
|
@@ -475,11 +475,11 @@ var w, be, tr = (be = class extends Oe {
|
|
|
475
475
|
find(e) {
|
|
476
476
|
const r = { exact: !0, ...e };
|
|
477
477
|
return this.getAll().find(
|
|
478
|
-
(a) =>
|
|
478
|
+
(a) => de(r, a)
|
|
479
479
|
);
|
|
480
480
|
}
|
|
481
481
|
findAll(e = {}) {
|
|
482
|
-
return this.getAll().filter((r) =>
|
|
482
|
+
return this.getAll().filter((r) => de(e, r));
|
|
483
483
|
}
|
|
484
484
|
notify(e) {
|
|
485
485
|
m.batch(() => {
|
|
@@ -505,8 +505,8 @@ function ar(t) {
|
|
|
505
505
|
return {
|
|
506
506
|
onFetch: (e, r) => {
|
|
507
507
|
const a = async () => {
|
|
508
|
-
var re, ae, se, ne
|
|
509
|
-
const s = e.options, o = (
|
|
508
|
+
var te, re, ae, se, ne;
|
|
509
|
+
const s = e.options, o = (ae = (re = (te = e.fetchOptions) == null ? void 0 : te.meta) == null ? void 0 : re.fetchMore) == null ? void 0 : ae.direction, i = ((se = e.state.data) == null ? void 0 : se.pages) || [], u = ((ne = e.state.data) == null ? void 0 : ne.pageParams) || [], c = { pages: [], pageParams: [] };
|
|
510
510
|
let g = !1;
|
|
511
511
|
const d = (b) => {
|
|
512
512
|
Object.defineProperty(b, "signal", {
|
|
@@ -529,31 +529,31 @@ function ar(t) {
|
|
|
529
529
|
d(H);
|
|
530
530
|
const Ke = await Ue(
|
|
531
531
|
H
|
|
532
|
-
), { maxPages:
|
|
532
|
+
), { maxPages: ie } = e.options, oe = A ? wt : Et;
|
|
533
533
|
return {
|
|
534
|
-
pages:
|
|
535
|
-
pageParams:
|
|
534
|
+
pages: oe(b.pages, Ke, ie),
|
|
535
|
+
pageParams: oe(b.pageParams, S, ie)
|
|
536
536
|
};
|
|
537
537
|
};
|
|
538
|
-
let
|
|
538
|
+
let k;
|
|
539
539
|
if (o && i.length) {
|
|
540
540
|
const b = o === "backward", S = b ? sr : ye, A = {
|
|
541
541
|
pages: i,
|
|
542
|
-
pageParams:
|
|
542
|
+
pageParams: u
|
|
543
543
|
}, H = S(s, A);
|
|
544
|
-
|
|
544
|
+
k = await $(A, H, b);
|
|
545
545
|
} else {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
546
|
+
k = await $(
|
|
547
|
+
c,
|
|
548
|
+
u[0] ?? s.initialPageParam
|
|
549
549
|
);
|
|
550
550
|
const b = t ?? i.length;
|
|
551
551
|
for (let S = 1; S < b; S++) {
|
|
552
|
-
const A = ye(s,
|
|
553
|
-
|
|
552
|
+
const A = ye(s, k);
|
|
553
|
+
k = await $(k, A);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
return
|
|
556
|
+
return k;
|
|
557
557
|
};
|
|
558
558
|
e.options.persister ? e.fetchFn = () => {
|
|
559
559
|
var s, o;
|
|
@@ -590,28 +590,28 @@ function sr(t, { pages: e, pageParams: r }) {
|
|
|
590
590
|
r
|
|
591
591
|
);
|
|
592
592
|
}
|
|
593
|
-
var h, N, C,
|
|
593
|
+
var h, N, C, M, D, O, _, T, we, nr = (we = class {
|
|
594
594
|
constructor(t = {}) {
|
|
595
595
|
y(this, h);
|
|
596
596
|
y(this, N);
|
|
597
597
|
y(this, C);
|
|
598
|
-
y(this, k);
|
|
599
598
|
y(this, M);
|
|
600
|
-
y(this, O);
|
|
601
599
|
y(this, D);
|
|
600
|
+
y(this, O);
|
|
602
601
|
y(this, _);
|
|
603
|
-
|
|
602
|
+
y(this, T);
|
|
603
|
+
f(this, h, t.queryCache || new tr()), f(this, N, t.mutationCache || new rr()), f(this, C, t.defaultOptions || {}), f(this, M, /* @__PURE__ */ new Map()), f(this, D, /* @__PURE__ */ new Map()), f(this, O, 0);
|
|
604
604
|
}
|
|
605
605
|
mount() {
|
|
606
|
-
L(this, O)._++, l(this, O) === 1 && (f(this,
|
|
606
|
+
L(this, O)._++, l(this, O) === 1 && (f(this, _, Pt.subscribe(async (t) => {
|
|
607
607
|
t && (await this.resumePausedMutations(), l(this, h).onFocus());
|
|
608
|
-
})), f(this,
|
|
608
|
+
})), f(this, T, fe.subscribe(async (t) => {
|
|
609
609
|
t && (await this.resumePausedMutations(), l(this, h).onOnline());
|
|
610
610
|
})));
|
|
611
611
|
}
|
|
612
612
|
unmount() {
|
|
613
613
|
var t, e;
|
|
614
|
-
L(this, O)._--, l(this, O) === 0 && ((t = l(this,
|
|
614
|
+
L(this, O)._--, l(this, O) === 0 && ((t = l(this, _)) == null || t.call(this), f(this, _, void 0), (e = l(this, T)) == null || e.call(this), f(this, T, void 0));
|
|
615
615
|
}
|
|
616
616
|
isFetching(t) {
|
|
617
617
|
return l(this, h).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -630,7 +630,7 @@ var h, N, C, k, M, O, D, _, we, nr = (we = class {
|
|
|
630
630
|
return this.fetchQuery(t);
|
|
631
631
|
{
|
|
632
632
|
const r = this.defaultQueryOptions(t), a = l(this, h).build(this, r);
|
|
633
|
-
return t.revalidateIfStale && a.isStaleByTime(
|
|
633
|
+
return t.revalidateIfStale && a.isStaleByTime(pe(r.staleTime, a)) && this.prefetchQuery(r), Promise.resolve(e);
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
getQueriesData(t) {
|
|
@@ -712,7 +712,7 @@ var h, N, C, k, M, O, D, _, we, nr = (we = class {
|
|
|
712
712
|
e.retry === void 0 && (e.retry = !1);
|
|
713
713
|
const r = l(this, h).build(this, e);
|
|
714
714
|
return r.isStaleByTime(
|
|
715
|
-
|
|
715
|
+
pe(e.staleTime, r)
|
|
716
716
|
) ? r.fetch(e) : Promise.resolve(r.state.data);
|
|
717
717
|
}
|
|
718
718
|
prefetchQuery(t) {
|
|
@@ -725,7 +725,7 @@ var h, N, C, k, M, O, D, _, we, nr = (we = class {
|
|
|
725
725
|
return this.fetchInfiniteQuery(t).then(P).catch(P);
|
|
726
726
|
}
|
|
727
727
|
resumePausedMutations() {
|
|
728
|
-
return
|
|
728
|
+
return fe.isOnline() ? l(this, N).resumePausedMutations() : Promise.resolve();
|
|
729
729
|
}
|
|
730
730
|
getQueryCache() {
|
|
731
731
|
return l(this, h);
|
|
@@ -740,29 +740,29 @@ var h, N, C, k, M, O, D, _, we, nr = (we = class {
|
|
|
740
740
|
f(this, C, t);
|
|
741
741
|
}
|
|
742
742
|
setQueryDefaults(t, e) {
|
|
743
|
-
l(this,
|
|
743
|
+
l(this, M).set(me(t), {
|
|
744
744
|
queryKey: t,
|
|
745
745
|
defaultOptions: e
|
|
746
746
|
});
|
|
747
747
|
}
|
|
748
748
|
getQueryDefaults(t) {
|
|
749
|
-
const e = [...l(this,
|
|
749
|
+
const e = [...l(this, M).values()];
|
|
750
750
|
let r = {};
|
|
751
751
|
return e.forEach((a) => {
|
|
752
|
-
|
|
752
|
+
ge(t, a.queryKey) && (r = { ...r, ...a.defaultOptions });
|
|
753
753
|
}), r;
|
|
754
754
|
}
|
|
755
755
|
setMutationDefaults(t, e) {
|
|
756
|
-
l(this,
|
|
756
|
+
l(this, D).set(me(t), {
|
|
757
757
|
mutationKey: t,
|
|
758
758
|
defaultOptions: e
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
761
|
getMutationDefaults(t) {
|
|
762
|
-
const e = [...l(this,
|
|
762
|
+
const e = [...l(this, D).values()];
|
|
763
763
|
let r = {};
|
|
764
764
|
return e.forEach((a) => {
|
|
765
|
-
|
|
765
|
+
ge(t, a.mutationKey) && (r = { ...r, ...a.defaultOptions });
|
|
766
766
|
}), r;
|
|
767
767
|
}
|
|
768
768
|
defaultQueryOptions(t) {
|
|
@@ -790,7 +790,7 @@ var h, N, C, k, M, O, D, _, we, nr = (we = class {
|
|
|
790
790
|
clear() {
|
|
791
791
|
l(this, h).clear(), l(this, N).clear();
|
|
792
792
|
}
|
|
793
|
-
}, h = new WeakMap(), N = new WeakMap(), C = new WeakMap(),
|
|
793
|
+
}, h = new WeakMap(), N = new WeakMap(), C = new WeakMap(), M = new WeakMap(), D = new WeakMap(), O = new WeakMap(), _ = new WeakMap(), T = new WeakMap(), we);
|
|
794
794
|
const ir = Ne(null), Y = {
|
|
795
795
|
didCatch: !1,
|
|
796
796
|
error: null
|
|
@@ -847,28 +847,28 @@ class or extends dt {
|
|
|
847
847
|
didCatch: o,
|
|
848
848
|
error: i
|
|
849
849
|
} = this.state;
|
|
850
|
-
let
|
|
850
|
+
let u = e;
|
|
851
851
|
if (o) {
|
|
852
|
-
const
|
|
852
|
+
const c = {
|
|
853
853
|
error: i,
|
|
854
854
|
resetErrorBoundary: this.resetErrorBoundary
|
|
855
855
|
};
|
|
856
856
|
if (typeof r == "function")
|
|
857
|
-
|
|
857
|
+
u = r(c);
|
|
858
858
|
else if (a)
|
|
859
|
-
|
|
859
|
+
u = ue(a, c);
|
|
860
860
|
else if (s === null || ft(s))
|
|
861
|
-
|
|
861
|
+
u = s;
|
|
862
862
|
else
|
|
863
863
|
throw i;
|
|
864
864
|
}
|
|
865
|
-
return
|
|
865
|
+
return ue(ir.Provider, {
|
|
866
866
|
value: {
|
|
867
867
|
didCatch: o,
|
|
868
868
|
error: i,
|
|
869
869
|
resetErrorBoundary: this.resetErrorBoundary
|
|
870
870
|
}
|
|
871
|
-
},
|
|
871
|
+
}, u);
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
874
|
function lr() {
|
|
@@ -919,7 +919,7 @@ function pr({ error: t, resetErrorBoundary: e }) {
|
|
|
919
919
|
return /* @__PURE__ */ n.jsx(Ee, { error: t });
|
|
920
920
|
}
|
|
921
921
|
const mr = () => {
|
|
922
|
-
const { navigation: t } =
|
|
922
|
+
const { navigation: t } = G();
|
|
923
923
|
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(
|
|
924
924
|
J,
|
|
925
925
|
{
|
|
@@ -932,12 +932,33 @@ const mr = () => {
|
|
|
932
932
|
}
|
|
933
933
|
) }, e.label)) }) });
|
|
934
934
|
}, qe = Ce(function() {
|
|
935
|
-
const [e, r] = We(), { isAuthenticated: a, profile: s, isAuthEnabled: o, login: i, logout:
|
|
935
|
+
const [e, r] = We(), { isAuthenticated: a, profile: s, isAuthEnabled: o, login: i, logout: u } = st(), { page: c } = G(), g = e ? _t : Tt;
|
|
936
936
|
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: [
|
|
937
937
|
/* @__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: [
|
|
938
938
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
939
|
-
(
|
|
940
|
-
|
|
939
|
+
(c == null ? void 0 : c.logo) && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
940
|
+
/* @__PURE__ */ n.jsx(
|
|
941
|
+
"img",
|
|
942
|
+
{
|
|
943
|
+
src: c.logo.src.light,
|
|
944
|
+
alt: c.logo.alt ?? c.pageTitle,
|
|
945
|
+
style: { width: c.logo.width },
|
|
946
|
+
className: R("h-10", e && "hidden"),
|
|
947
|
+
loading: "lazy"
|
|
948
|
+
}
|
|
949
|
+
),
|
|
950
|
+
/* @__PURE__ */ n.jsx(
|
|
951
|
+
"img",
|
|
952
|
+
{
|
|
953
|
+
src: c.logo.src.dark,
|
|
954
|
+
alt: c.logo.alt ?? c.pageTitle,
|
|
955
|
+
style: { width: c.logo.width },
|
|
956
|
+
className: R("h-10", !e && "hidden"),
|
|
957
|
+
loading: "lazy"
|
|
958
|
+
}
|
|
959
|
+
)
|
|
960
|
+
] }),
|
|
961
|
+
/* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: c == null ? void 0 : c.pageTitle })
|
|
941
962
|
] }),
|
|
942
963
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
943
964
|
/* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
|
|
@@ -947,7 +968,7 @@ const mr = () => {
|
|
|
947
968
|
{
|
|
948
969
|
type: "button",
|
|
949
970
|
className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
|
|
950
|
-
onClick:
|
|
971
|
+
onClick: u,
|
|
951
972
|
children: [
|
|
952
973
|
"Logout ",
|
|
953
974
|
s != null && s.email ? `(${s.email})` : null
|
|
@@ -983,23 +1004,23 @@ const mr = () => {
|
|
|
983
1004
|
children: t,
|
|
984
1005
|
...e
|
|
985
1006
|
}) => {
|
|
986
|
-
var i,
|
|
1007
|
+
var i, u;
|
|
987
1008
|
const r = V(
|
|
988
1009
|
() => ({ ...He, ...e.overrides }),
|
|
989
1010
|
[e.overrides]
|
|
990
1011
|
), a = V(
|
|
991
1012
|
() => {
|
|
992
|
-
var
|
|
993
|
-
return { ...Ge, ...(
|
|
1013
|
+
var c;
|
|
1014
|
+
return { ...Ge, ...(c = e.mdx) == null ? void 0 : c.components };
|
|
994
1015
|
},
|
|
995
1016
|
[(i = e.mdx) == null ? void 0 : i.components]
|
|
996
1017
|
), s = V(() => new fr(e), [e]);
|
|
997
1018
|
I(() => {
|
|
998
1019
|
s.initialize();
|
|
999
1020
|
}, [s]);
|
|
1000
|
-
const o = (
|
|
1021
|
+
const o = (u = e.plugins) == null ? void 0 : u.filter(hr).map((c, g) => {
|
|
1001
1022
|
var d;
|
|
1002
|
-
return /* @__PURE__ */ n.jsx(pt, { children: (d =
|
|
1023
|
+
return /* @__PURE__ */ n.jsx(pt, { children: (d = c.getHead) == null ? void 0 : d.call(c) }, g);
|
|
1003
1024
|
});
|
|
1004
1025
|
return /* @__PURE__ */ n.jsxs(Nt, { client: Ie, children: [
|
|
1005
1026
|
/* @__PURE__ */ n.jsx(je, { children: o }),
|
|
@@ -1008,7 +1029,7 @@ const mr = () => {
|
|
|
1008
1029
|
}, br = Ce(yr), Le = (t) => /* @__PURE__ */ n.jsx(or, { FallbackComponent: pr, children: /* @__PURE__ */ n.jsx(br, { ...t }) });
|
|
1009
1030
|
Le.displayName = "DevPortal";
|
|
1010
1031
|
const xr = () => {
|
|
1011
|
-
const t =
|
|
1032
|
+
const t = F(), { setActiveAnchor: e } = X();
|
|
1012
1033
|
I(() => {
|
|
1013
1034
|
if (!t.hash) return;
|
|
1014
1035
|
const r = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(r));
|
|
@@ -1019,13 +1040,13 @@ const xr = () => {
|
|
|
1019
1040
|
return;
|
|
1020
1041
|
}
|
|
1021
1042
|
const s = new MutationObserver((o, i) => {
|
|
1022
|
-
const
|
|
1023
|
-
|
|
1043
|
+
const u = document.getElementById(decodeURIComponent(r));
|
|
1044
|
+
u && (u.scrollIntoView(), requestIdleCallback(() => e(r)), i.disconnect());
|
|
1024
1045
|
});
|
|
1025
1046
|
return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
|
|
1026
1047
|
}, [t.hash, e]);
|
|
1027
1048
|
}, wr = () => {
|
|
1028
|
-
const t =
|
|
1049
|
+
const t = F(), e = K(t.pathname);
|
|
1029
1050
|
I(() => {
|
|
1030
1051
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
1031
1052
|
}, [t.pathname]);
|
|
@@ -1034,9 +1055,9 @@ const xr = () => {
|
|
|
1034
1055
|
defaultOpen: e,
|
|
1035
1056
|
path: r
|
|
1036
1057
|
}) => {
|
|
1037
|
-
const [a, s] = mt(e), o =
|
|
1058
|
+
const [a, s] = mt(e), o = F(), i = K(o.pathname);
|
|
1038
1059
|
return I(() => {
|
|
1039
|
-
!a && i.current !== o.pathname && s(
|
|
1060
|
+
!a && i.current !== o.pathname && s(Z(t, o.pathname, r)), i.current = o.pathname;
|
|
1040
1061
|
}, [a, t, r, o.pathname]), [a, s];
|
|
1041
1062
|
}, z = tt(
|
|
1042
1063
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
@@ -1059,13 +1080,13 @@ const xr = () => {
|
|
|
1059
1080
|
currentTopNavItem: a,
|
|
1060
1081
|
basePath: s = ""
|
|
1061
1082
|
}) => {
|
|
1062
|
-
const o =
|
|
1083
|
+
const o = ve(e) ? De(s, e.path) : "", i = F(), [u, c] = Be({
|
|
1063
1084
|
item: e,
|
|
1064
1085
|
path: o,
|
|
1065
|
-
defaultOpen: () =>
|
|
1086
|
+
defaultOpen: () => Z(e, i.pathname, o)
|
|
1066
1087
|
});
|
|
1067
1088
|
if (Mt(e)) {
|
|
1068
|
-
const d =
|
|
1089
|
+
const d = R(
|
|
1069
1090
|
"flex items-center gap-2",
|
|
1070
1091
|
z({
|
|
1071
1092
|
isActive: e.href === i.pathname
|
|
@@ -1101,14 +1122,14 @@ const xr = () => {
|
|
|
1101
1122
|
return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
|
|
1102
1123
|
Re,
|
|
1103
1124
|
{
|
|
1104
|
-
open:
|
|
1105
|
-
onOpenChange: () =>
|
|
1125
|
+
open: u,
|
|
1126
|
+
onOpenChange: () => c((d) => !d),
|
|
1106
1127
|
className: "flex flex-col",
|
|
1107
1128
|
children: [
|
|
1108
1129
|
/* @__PURE__ */ n.jsx(
|
|
1109
1130
|
ke,
|
|
1110
1131
|
{
|
|
1111
|
-
className:
|
|
1132
|
+
className: R(
|
|
1112
1133
|
"group text-start",
|
|
1113
1134
|
z({ isActive: !1 })
|
|
1114
1135
|
),
|
|
@@ -1124,7 +1145,7 @@ const xr = () => {
|
|
|
1124
1145
|
currentTopNavItem: a,
|
|
1125
1146
|
basePath: o
|
|
1126
1147
|
},
|
|
1127
|
-
|
|
1148
|
+
ve(d) ? d.path : d.href
|
|
1128
1149
|
)) }) })
|
|
1129
1150
|
]
|
|
1130
1151
|
}
|
|
@@ -1150,21 +1171,21 @@ const xr = () => {
|
|
|
1150
1171
|
}, Pr = ({
|
|
1151
1172
|
category: t
|
|
1152
1173
|
}) => {
|
|
1153
|
-
const { activeAnchor: e } =
|
|
1174
|
+
const { activeAnchor: e } = X(), r = Ot(), a = F(), s = t.collapsible ?? !0, [o, i] = Be({
|
|
1154
1175
|
item: t,
|
|
1155
1176
|
path: (r == null ? void 0 : r.path) ?? "",
|
|
1156
|
-
defaultOpen: () => !s || t.expanded ||
|
|
1177
|
+
defaultOpen: () => !s || t.expanded || Z(t, a.pathname, (r == null ? void 0 : r.path) ?? "")
|
|
1157
1178
|
});
|
|
1158
1179
|
return /* @__PURE__ */ n.jsxs(
|
|
1159
1180
|
Re,
|
|
1160
1181
|
{
|
|
1161
1182
|
open: o,
|
|
1162
|
-
onOpenChange: () => i((
|
|
1183
|
+
onOpenChange: () => i((u) => !u),
|
|
1163
1184
|
children: [
|
|
1164
1185
|
t.label.length > 0 ? /* @__PURE__ */ n.jsx(ke, { asChild: s, disabled: !s, children: /* @__PURE__ */ n.jsxs(
|
|
1165
1186
|
"h5",
|
|
1166
1187
|
{
|
|
1167
|
-
className:
|
|
1188
|
+
className: R(
|
|
1168
1189
|
"flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
|
|
1169
1190
|
s ? "hover:bg-accent" : "cursor-auto"
|
|
1170
1191
|
),
|
|
@@ -1180,16 +1201,16 @@ const xr = () => {
|
|
|
1180
1201
|
]
|
|
1181
1202
|
}
|
|
1182
1203
|
) }) : "Endpoints",
|
|
1183
|
-
/* @__PURE__ */ n.jsx(Me, { 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((c) => /* @__PURE__ */ n.jsx(
|
|
1204
|
+
/* @__PURE__ */ n.jsx(Me, { 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((u, c) => /* @__PURE__ */ n.jsx(
|
|
1184
1205
|
ze,
|
|
1185
1206
|
{
|
|
1186
1207
|
category: t,
|
|
1187
|
-
item:
|
|
1208
|
+
item: u,
|
|
1188
1209
|
activeAnchor: e,
|
|
1189
1210
|
currentTopNavItem: r,
|
|
1190
1211
|
basePath: De(r == null ? void 0 : r.path, t.path)
|
|
1191
1212
|
},
|
|
1192
|
-
|
|
1213
|
+
c
|
|
1193
1214
|
)) }) })
|
|
1194
1215
|
]
|
|
1195
1216
|
},
|
|
@@ -1200,7 +1221,7 @@ const xr = () => {
|
|
|
1200
1221
|
"nav",
|
|
1201
1222
|
{
|
|
1202
1223
|
"data-navigation": String(a),
|
|
1203
|
-
className:
|
|
1224
|
+
className: R(
|
|
1204
1225
|
"peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
|
|
1205
1226
|
r
|
|
1206
1227
|
),
|
|
@@ -1219,7 +1240,7 @@ const xr = () => {
|
|
|
1219
1240
|
}
|
|
1220
1241
|
);
|
|
1221
1242
|
}, Nr = ({ children: t }) => {
|
|
1222
|
-
const e =
|
|
1243
|
+
const e = F(), { setActiveAnchor: r } = X(), { meta: a } = G();
|
|
1223
1244
|
xr(), wr();
|
|
1224
1245
|
const s = K(e.pathname);
|
|
1225
1246
|
return I(() => {
|
|
@@ -1239,7 +1260,7 @@ const xr = () => {
|
|
|
1239
1260
|
/* @__PURE__ */ n.jsx(
|
|
1240
1261
|
"main",
|
|
1241
1262
|
{
|
|
1242
|
-
className:
|
|
1263
|
+
className: R(
|
|
1243
1264
|
"dark:border-white/10 translate-x-0 h-full",
|
|
1244
1265
|
"lg:overflow-visible",
|
|
1245
1266
|
"lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
|