zudoku 0.3.0-dev.7 → 0.3.0-dev.9
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/lib/components/Header.js +2 -2
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -2
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/lib/zudoku.components.js +85 -101
- package/lib/zudoku.plugins.js +423 -421
- package/package.json +1 -1
- package/src/lib/components/Header.tsx +3 -3
- package/src/lib/plugins/openapi/OperationListItem.tsx +33 -29
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { MoonStarIcon,
|
|
2
|
+
import { MoonStarIcon, SunIcon } from "lucide-react";
|
|
3
3
|
import { memo } from "react";
|
|
4
4
|
import { useAuth } from "../authentication/hook.js";
|
|
5
5
|
import { TopNavigation } from "./TopNavigation.js";
|
|
@@ -10,6 +10,6 @@ export const Header = memo(function HeaderInner() {
|
|
|
10
10
|
const { isAuthenticated, profile, isAuthEnabled, login, logout } = useAuth();
|
|
11
11
|
const { meta } = useDevPortal();
|
|
12
12
|
const ThemeIcon = isDark ? MoonStarIcon : SunIcon;
|
|
13
|
-
return (_jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: _jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [_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: [_jsxs("div", { className: "flex items-center gap-3.5", children: [meta?.logo && (_jsx("img", { src: meta.logo, alt: "My Dev Portal", className: "h-10" })), _jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: meta?.headerTitle })] }), _jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [_jsx("div", { className: "w-full max-w-prose"
|
|
13
|
+
return (_jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: _jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [_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: [_jsxs("div", { className: "flex items-center gap-3.5", children: [meta?.logo && (_jsx("img", { src: meta.logo, alt: "My Dev Portal", className: "h-10" })), _jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: meta?.headerTitle })] }), _jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [_jsx("div", { className: "w-full max-w-prose" }), _jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [isAuthEnabled && (_jsx(_Fragment, { children: isAuthenticated ? (_jsxs("button", { className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap", onClick: logout, children: ["Logout ", profile?.email ? `(${profile.email})` : null] })) : (_jsx("button", { className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded", onClick: login, children: "Login" })) })), _jsx("button", { className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full", onClick: toggleTheme, children: _jsx(ThemeIcon, { size: 18 }) })] })] })] }), _jsx(TopNavigation, {})] }) }));
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/lib/components/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/lib/components/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,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CAAC,CAAC,IAAI,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,IAC7C,CACV,CAAC,CAAC,CAAC,CACF,iBACE,SAAS,EAAC,yDAAyD,EACnE,OAAO,EAAE,KAAK,sBAGP,CACV,GACA,CACJ,EACD,iBACE,SAAS,EAAC,6DAA6D,EACvE,OAAO,EAAE,WAAW,YAEpB,KAAC,SAAS,IAAC,IAAI,EAAE,EAAE,GAAI,GAChB,IACL,IACF,IACF,EACN,KAAC,aAAa,KAAG,IACb,GACC,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Heading } from "../../components/Heading.js";
|
|
3
3
|
import { Markdown, ProseClasses } from "../../components/Markdown.js";
|
|
4
4
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../ui/Tabs.js";
|
|
@@ -12,6 +12,6 @@ export const OperationListItem = ({ operationFragment, }) => {
|
|
|
12
12
|
const operation = useFragment(OperationsFragment, operationFragment);
|
|
13
13
|
const groupedParameters = Object.groupBy(operation.parameters ?? [], (param) => param.in);
|
|
14
14
|
const first = operation.responses.find((re) => re.statusCode === "200");
|
|
15
|
-
return (_jsxs("div", { className: "grid grid-cols-2 gap-8 items-start border-b-2 mb-16 pb-16 border-border", children: [_jsxs("div", { className: ProseClasses, children: [_jsx(Heading, { level: 2, className: "mt-0", id: operation.slug, registerSidebarAnchor: true, children: operation.summary }), operation.description && _jsx(Markdown, { content: operation.description }), operation.parameters && operation.parameters.length > 0 && (_jsx("div", { className: "mt-4", children: PARAM_GROUPS.flatMap((group) => groupedParameters[group]?.length ? (_jsx(ParameterList, { id: operation.slug, parameters: groupedParameters[group], group: group }, group)) : ([])) })), _jsx(Heading, { level: 3, className: "capitalize", children: "Responses" }), _jsxs(Tabs, { defaultValue: `${first?.statusCode}${first?.description}`, children: [_jsx(TabsList, { children: operation.responses.map((response) => (_jsx(TabsTrigger, { value: response.statusCode + response.description, title: response.description, children: response.statusCode }, response.statusCode))) }), _jsx("ul", { className: "list-none m-0 px-0 overflow-hidden", children: operation.responses.map((response) => (_jsx(TabsContent, { value: response.statusCode + response.description, children: _jsx(SchemaListView, { schema: response.content?.at(0)?.schema, name: "" }) }, response.statusCode))) })] })] }), _jsx(Sidecar, { operation: operation })] }, operation.operationId));
|
|
15
|
+
return (_jsxs("div", { className: "grid grid-cols-2 gap-8 items-start border-b-2 mb-16 pb-16 border-border", children: [_jsxs("div", { className: ProseClasses, children: [_jsx(Heading, { level: 2, className: "mt-0", id: operation.slug, registerSidebarAnchor: true, children: operation.summary }), operation.description && _jsx(Markdown, { content: operation.description }), operation.parameters && operation.parameters.length > 0 && (_jsx("div", { className: "mt-4", children: PARAM_GROUPS.flatMap((group) => groupedParameters[group]?.length ? (_jsx(ParameterList, { id: operation.slug, parameters: groupedParameters[group], group: group }, group)) : ([])) })), operation.responses.length > 0 && (_jsxs(_Fragment, { children: [_jsx(Heading, { level: 3, className: "capitalize", children: "Responses" }), _jsxs(Tabs, { defaultValue: `${first?.statusCode}${first?.description}`, children: [_jsx(TabsList, { children: operation.responses.map((response) => (_jsx(TabsTrigger, { value: response.statusCode + response.description, title: response.description, children: response.statusCode }, response.statusCode))) }), _jsx("ul", { className: "list-none m-0 px-0 overflow-hidden", children: operation.responses.map((response) => (_jsx(TabsContent, { value: response.statusCode + response.description, children: _jsx(SchemaListView, { schema: response.content?.at(0)?.schema, name: "" }) }, response.statusCode))) })] })] }))] }), _jsx(Sidecar, { operation: operation })] }, operation.operationId));
|
|
16
16
|
};
|
|
17
17
|
//# sourceMappingURL=OperationListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationListItem.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/OperationListItem.tsx"],"names":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Y,EAAE,GAAG,KAAK,EAAE,UAAU,GAAG,KAAK,EAAE,WAAW,EAAE,aAC7D,KAAC,QAAQ,cACN,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CACrC,KAAC,WAAW,IACV,KAAK,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,EAEjD,KAAK,EAAE,QAAQ,CAAC,WAAW,YAE1B,QAAQ,CAAC,UAAU,IAHf,QAAQ,CAAC,UAAU,CAIZ,CACf,CAAC,GACO,EACX,aAAI,SAAS,EAAC,oCAAoC,YAC/C,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CACrC,KAAC,WAAW,IACV,KAAK,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,WAAW,YAGjD,KAAC,cAAc,IACb,MAAM,EAAE,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EACvC,IAAI,EAAC,EAAE,GACP,IALG,QAAQ,CAAC,UAAU,CAMZ,CACf,CAAC,GACC,IACA,IACN,CACJ,IACG,EAEN,KAAC,OAAO,IAAC,SAAS,EAAE,SAAS,GAAI,KAhE5B,SAAS,CAAC,WAAW,CAiEtB,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -55,7 +55,7 @@ const getConverted = (snippet, option) => {
|
|
|
55
55
|
};
|
|
56
56
|
export const Sidecar = ({ operation, }) => {
|
|
57
57
|
const methodTextColor = MethodTextColorMap[operation.method];
|
|
58
|
-
const [option, setOption] = useState("
|
|
58
|
+
const [option, setOption] = useState("shell");
|
|
59
59
|
const requestBodyContent = operation.requestBody?.content;
|
|
60
60
|
const path = operation.path.split("/").map((part) => (_jsxs(Fragment, { children: [part.startsWith("{") && part.endsWith("}") ? (_jsx(ColorizedParam, { name: part.slice(1, -1), backgroundOpacity: "0",
|
|
61
61
|
// same as in `ParameterListItem`
|
|
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C,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;yCACnC,GACD,EACF,KAAC,WAAW,IAAC,SAAS,EAAE,SAAS,GAAI,IACjC,IACU,EAClB,KAAC,UAAU,CAAC,IAAI,cACd,KAAC,eAAe,IACd,QAAQ,EAAE,MAAM,EAChB,YAAY,QACZ,SAAS,EAAC,SAAS,EACnB,IAAI,EAAE,IAAI,GACV,GACc,IACF,EACjB,kBAAkB,IAAI,CACrB,KAAC,qBAAqB,IAAC,OAAO,EAAE,kBAAkB,GAAI,CACvD,EACA,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CACjC,KAAC,mBAAmB,IAAC,SAAS,EAAE,SAAS,CAAC,SAAS,GAAI,CACxD,IACK,CACT,CAAC;AACJ,CAAC,CAAC"}
|
package/lib/zudoku.components.js
CHANGED
|
@@ -3,9 +3,9 @@ var se = (t) => {
|
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
5
|
var Te = (t, e, s) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
6
|
-
var
|
|
6
|
+
var y = (t, e, s) => Te(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)), m = (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
|
},
|
|
@@ -14,20 +14,20 @@ var F = (t, e, s, a) => ({
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import { j as n, u as D, O as Ie } from "./index-PyGcnQFX.js";
|
|
17
|
-
import { S as me, h as ge, Q as
|
|
18
|
-
import { X as
|
|
19
|
-
import { memo as je, createContext as lt, useEffect as
|
|
17
|
+
import { S as me, h as ge, Q as Ee, n as p, m as ne, M as Se, a as re, b as j, e as Fe, c as Re, d as He, f as Le, o as ie, r as oe, g as ze, i as le, p as ce, s as Ke, j as z, u as U, N as B, k as _e, l as Be, q as Ve, t as W, v as X, w as V, x as ve, y as Ue, z as L, R as ye, T as xe, C as be, A as We, B as Xe, D as $e, E as Ge, H as Je, F as Ye, G as Ze, I as et, J as tt, K as st, L as at, O as nt, P as rt, U as it, V as ot } from "./Spinner-BewqqUU-.js";
|
|
18
|
+
import { X as _t, W as Bt } from "./Spinner-BewqqUU-.js";
|
|
19
|
+
import { memo as je, createContext as lt, useEffect as I, useRef as K, useState as ct, forwardRef as ht, Suspense as Pe, useMemo as H } from "react";
|
|
20
20
|
import { c as ut } from "./state-2Hu1renZ.js";
|
|
21
|
-
var
|
|
21
|
+
var x, de, dt = (de = class extends me {
|
|
22
22
|
constructor(e = {}) {
|
|
23
23
|
super();
|
|
24
|
-
m(this,
|
|
25
|
-
this.config = e, u(this,
|
|
24
|
+
m(this, x);
|
|
25
|
+
this.config = e, u(this, x, /* @__PURE__ */ new Map());
|
|
26
26
|
}
|
|
27
27
|
build(e, s, a) {
|
|
28
28
|
const r = s.queryKey, o = s.queryHash ?? ge(r, s);
|
|
29
29
|
let l = this.get(o);
|
|
30
|
-
return l || (l = new
|
|
30
|
+
return l || (l = new Ee({
|
|
31
31
|
cache: this,
|
|
32
32
|
queryKey: r,
|
|
33
33
|
queryHash: o,
|
|
@@ -37,14 +37,14 @@ var y, de, dt = (de = class extends me {
|
|
|
37
37
|
}), this.add(l)), l;
|
|
38
38
|
}
|
|
39
39
|
add(e) {
|
|
40
|
-
i(this,
|
|
40
|
+
i(this, x).has(e.queryHash) || (i(this, x).set(e.queryHash, e), this.notify({
|
|
41
41
|
type: "added",
|
|
42
42
|
query: e
|
|
43
43
|
}));
|
|
44
44
|
}
|
|
45
45
|
remove(e) {
|
|
46
|
-
const s = i(this,
|
|
47
|
-
s && (e.destroy(), s === e && i(this,
|
|
46
|
+
const s = i(this, x).get(e.queryHash);
|
|
47
|
+
s && (e.destroy(), s === e && i(this, x).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
48
48
|
}
|
|
49
49
|
clear() {
|
|
50
50
|
p.batch(() => {
|
|
@@ -54,10 +54,10 @@ var y, de, dt = (de = class extends me {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
get(e) {
|
|
57
|
-
return i(this,
|
|
57
|
+
return i(this, x).get(e);
|
|
58
58
|
}
|
|
59
59
|
getAll() {
|
|
60
|
-
return [...i(this,
|
|
60
|
+
return [...i(this, x).values()];
|
|
61
61
|
}
|
|
62
62
|
find(e) {
|
|
63
63
|
const s = { exact: !0, ...e };
|
|
@@ -90,7 +90,7 @@ var y, de, dt = (de = class extends me {
|
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
},
|
|
93
|
+
}, x = new WeakMap(), de), f, T, fe, ft = (fe = class extends me {
|
|
94
94
|
constructor(e = {}) {
|
|
95
95
|
super();
|
|
96
96
|
m(this, f);
|
|
@@ -98,21 +98,21 @@ var y, de, dt = (de = class extends me {
|
|
|
98
98
|
this.config = e, u(this, f, /* @__PURE__ */ new Map()), u(this, T, Date.now());
|
|
99
99
|
}
|
|
100
100
|
build(e, s, a) {
|
|
101
|
-
const r = new
|
|
101
|
+
const r = new Se({
|
|
102
102
|
mutationCache: this,
|
|
103
|
-
mutationId: ++
|
|
103
|
+
mutationId: ++S(this, T)._,
|
|
104
104
|
options: e.defaultMutationOptions(s),
|
|
105
105
|
state: a
|
|
106
106
|
});
|
|
107
107
|
return this.add(r), r;
|
|
108
108
|
}
|
|
109
109
|
add(e) {
|
|
110
|
-
const s =
|
|
110
|
+
const s = F(e), a = i(this, f).get(s) ?? [];
|
|
111
111
|
a.push(e), i(this, f).set(s, a), this.notify({ type: "added", mutation: e });
|
|
112
112
|
}
|
|
113
113
|
remove(e) {
|
|
114
114
|
var a;
|
|
115
|
-
const s =
|
|
115
|
+
const s = F(e);
|
|
116
116
|
if (i(this, f).has(s)) {
|
|
117
117
|
const r = (a = i(this, f).get(s)) == null ? void 0 : a.filter((o) => o !== e);
|
|
118
118
|
r && (r.length === 0 ? i(this, f).delete(s) : i(this, f).set(s, r));
|
|
@@ -121,12 +121,12 @@ var y, de, dt = (de = class extends me {
|
|
|
121
121
|
}
|
|
122
122
|
canRun(e) {
|
|
123
123
|
var a;
|
|
124
|
-
const s = (a = i(this, f).get(
|
|
124
|
+
const s = (a = i(this, f).get(F(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
|
|
125
125
|
return !s || s === e;
|
|
126
126
|
}
|
|
127
127
|
runNext(e) {
|
|
128
128
|
var a;
|
|
129
|
-
const s = (a = i(this, f).get(
|
|
129
|
+
const s = (a = i(this, f).get(F(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
|
|
130
130
|
return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
|
|
131
131
|
}
|
|
132
132
|
clear() {
|
|
@@ -164,7 +164,7 @@ var y, de, dt = (de = class extends me {
|
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
166
|
}, f = new WeakMap(), T = new WeakMap(), fe);
|
|
167
|
-
function
|
|
167
|
+
function F(t) {
|
|
168
168
|
var e;
|
|
169
169
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
170
170
|
}
|
|
@@ -270,7 +270,7 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
|
|
|
270
270
|
u(this, c, t.queryCache || new dt()), u(this, w, t.mutationCache || new ft()), u(this, N, t.defaultOptions || {}), u(this, M, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, k, 0);
|
|
271
271
|
}
|
|
272
272
|
mount() {
|
|
273
|
-
|
|
273
|
+
S(this, k)._++, i(this, k) === 1 && (u(this, Q, Le.subscribe(async (t) => {
|
|
274
274
|
t && (await this.resumePausedMutations(), i(this, c).onFocus());
|
|
275
275
|
})), u(this, q, ie.subscribe(async (t) => {
|
|
276
276
|
t && (await this.resumePausedMutations(), i(this, c).onOnline());
|
|
@@ -278,7 +278,7 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
|
|
|
278
278
|
}
|
|
279
279
|
unmount() {
|
|
280
280
|
var t, e;
|
|
281
|
-
|
|
281
|
+
S(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));
|
|
282
282
|
}
|
|
283
283
|
isFetching(t) {
|
|
284
284
|
return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -458,27 +458,27 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
|
|
|
458
458
|
i(this, c).clear(), i(this, w).clear();
|
|
459
459
|
}
|
|
460
460
|
}, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), M = new WeakMap(), A = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
|
|
461
|
-
const we = (t) => "getRoutes" in t && typeof t.getRoutes == "function", vt = (t) => "initialize" in t && typeof t.initialize == "function",
|
|
461
|
+
const we = (t) => "getRoutes" in t && typeof t.getRoutes == "function", vt = (t) => "initialize" in t && typeof t.initialize == "function", yt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ne = new gt(), xt = ut(() => ({}));
|
|
462
462
|
class bt {
|
|
463
463
|
constructor(e) {
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
464
|
+
y(this, "plugins", []);
|
|
465
|
+
y(this, "navigationPlugins");
|
|
466
|
+
y(this, "navigation");
|
|
467
|
+
y(this, "meta");
|
|
468
|
+
y(this, "authentication");
|
|
469
|
+
y(this, "state");
|
|
470
|
+
y(this, "initialize", async () => {
|
|
471
471
|
await Promise.all([
|
|
472
472
|
this.plugins.filter(vt).map((e) => e.initialize(this))
|
|
473
473
|
]);
|
|
474
474
|
});
|
|
475
|
-
|
|
475
|
+
y(this, "invalidateCache", async (e) => {
|
|
476
476
|
await Ne.invalidateQueries({ queryKey: e });
|
|
477
477
|
});
|
|
478
|
-
|
|
479
|
-
this.plugins.filter(
|
|
478
|
+
y(this, "getApiIdentities", async () => (await Promise.all(
|
|
479
|
+
this.plugins.filter(yt).map((s) => s.getIdentities(this))
|
|
480
480
|
)).flat());
|
|
481
|
-
|
|
481
|
+
y(this, "getNavigation", async (e) => (await Promise.all(
|
|
482
482
|
this.navigationPlugins.map(
|
|
483
483
|
async (a) => {
|
|
484
484
|
var r;
|
|
@@ -486,7 +486,7 @@ class bt {
|
|
|
486
486
|
}
|
|
487
487
|
)
|
|
488
488
|
)).flatMap((a) => a ?? []));
|
|
489
|
-
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(we), this.authentication = e.authentication, this.meta = e.meta, this.state =
|
|
489
|
+
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(we), this.authentication = e.authentication, this.meta = e.meta, this.state = xt;
|
|
490
490
|
}
|
|
491
491
|
async signRequest(e) {
|
|
492
492
|
if (!this.authentication)
|
|
@@ -501,7 +501,7 @@ class bt {
|
|
|
501
501
|
* This source code is licensed under the ISC license.
|
|
502
502
|
* See the LICENSE file in the root directory of this source tree.
|
|
503
503
|
*/
|
|
504
|
-
const ke =
|
|
504
|
+
const ke = z("ChevronRight", [
|
|
505
505
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
506
506
|
]);
|
|
507
507
|
/**
|
|
@@ -510,7 +510,7 @@ const ke = I("ChevronRight", [
|
|
|
510
510
|
* This source code is licensed under the ISC license.
|
|
511
511
|
* See the LICENSE file in the root directory of this source tree.
|
|
512
512
|
*/
|
|
513
|
-
const jt =
|
|
513
|
+
const jt = z("ExternalLink", [
|
|
514
514
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
515
515
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
516
516
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -521,7 +521,7 @@ const jt = I("ExternalLink", [
|
|
|
521
521
|
* This source code is licensed under the ISC license.
|
|
522
522
|
* See the LICENSE file in the root directory of this source tree.
|
|
523
523
|
*/
|
|
524
|
-
const Pt =
|
|
524
|
+
const Pt = z("MoonStar", [
|
|
525
525
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
526
526
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
527
527
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -532,17 +532,7 @@ const Pt = I("MoonStar", [
|
|
|
532
532
|
* This source code is licensed under the ISC license.
|
|
533
533
|
* See the LICENSE file in the root directory of this source tree.
|
|
534
534
|
*/
|
|
535
|
-
const wt =
|
|
536
|
-
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
537
|
-
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
538
|
-
]);
|
|
539
|
-
/**
|
|
540
|
-
* @license lucide-react v0.378.0 - ISC
|
|
541
|
-
*
|
|
542
|
-
* This source code is licensed under the ISC license.
|
|
543
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
544
|
-
*/
|
|
545
|
-
const Nt = I("Sun", [
|
|
535
|
+
const wt = z("Sun", [
|
|
546
536
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
547
537
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
548
538
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -552,7 +542,7 @@ const Nt = I("Sun", [
|
|
|
552
542
|
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
553
543
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
554
544
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
555
|
-
]),
|
|
545
|
+
]), Nt = () => {
|
|
556
546
|
const { navigation: t } = U();
|
|
557
547
|
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(
|
|
558
548
|
B,
|
|
@@ -566,7 +556,7 @@ const Nt = I("Sun", [
|
|
|
566
556
|
}
|
|
567
557
|
) }, e.label)) }) });
|
|
568
558
|
}, Oe = je(function() {
|
|
569
|
-
const [e, s] = Be(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = Ve(), { meta: g } = U(), b = e ? Pt :
|
|
559
|
+
const [e, s] = Be(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = Ve(), { meta: g } = U(), b = e ? Pt : wt;
|
|
570
560
|
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: [
|
|
571
561
|
/* @__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: [
|
|
572
562
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
@@ -574,13 +564,7 @@ const Nt = I("Sun", [
|
|
|
574
564
|
/* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: g == null ? void 0 : g.headerTitle })
|
|
575
565
|
] }),
|
|
576
566
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
577
|
-
/* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose"
|
|
578
|
-
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
579
|
-
/* @__PURE__ */ n.jsx(wt, { size: 14 }),
|
|
580
|
-
"Search"
|
|
581
|
-
] }),
|
|
582
|
-
/* @__PURE__ */ n.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border border-border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
|
|
583
|
-
] }) }),
|
|
567
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
|
|
584
568
|
/* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
|
|
585
569
|
o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
|
|
586
570
|
"button",
|
|
@@ -611,13 +595,13 @@ const Nt = I("Sun", [
|
|
|
611
595
|
] })
|
|
612
596
|
] })
|
|
613
597
|
] }),
|
|
614
|
-
/* @__PURE__ */ n.jsx(
|
|
598
|
+
/* @__PURE__ */ n.jsx(Nt, {})
|
|
615
599
|
] }) });
|
|
616
600
|
}), Ce = {
|
|
617
601
|
Header: Oe
|
|
618
|
-
},
|
|
602
|
+
}, kt = lt(Ce), Ot = kt.Provider, Ct = () => {
|
|
619
603
|
const t = D(), { setActiveAnchor: e } = W();
|
|
620
|
-
|
|
604
|
+
I(() => {
|
|
621
605
|
if (!t.hash) return;
|
|
622
606
|
const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
|
|
623
607
|
if (a) {
|
|
@@ -632,9 +616,9 @@ const Nt = I("Sun", [
|
|
|
632
616
|
});
|
|
633
617
|
return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
634
618
|
}, [t.hash, e]);
|
|
635
|
-
},
|
|
619
|
+
}, Mt = () => {
|
|
636
620
|
const t = D(), e = K(t.pathname);
|
|
637
|
-
|
|
621
|
+
I(() => {
|
|
638
622
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
639
623
|
}, [t.pathname]);
|
|
640
624
|
}, Me = ({
|
|
@@ -643,10 +627,10 @@ const Nt = I("Sun", [
|
|
|
643
627
|
path: s
|
|
644
628
|
}) => {
|
|
645
629
|
const [a, r] = ct(e), o = D(), l = K(o.pathname);
|
|
646
|
-
return
|
|
630
|
+
return I(() => {
|
|
647
631
|
!a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
|
|
648
632
|
}, [a, t, s, o.pathname]), [a, r];
|
|
649
|
-
},
|
|
633
|
+
}, R = Xe(
|
|
650
634
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
651
635
|
{
|
|
652
636
|
variants: {
|
|
@@ -660,7 +644,7 @@ const Nt = I("Sun", [
|
|
|
660
644
|
}
|
|
661
645
|
}
|
|
662
646
|
}
|
|
663
|
-
),
|
|
647
|
+
), At = "data-anchor", Ae = ({
|
|
664
648
|
category: t,
|
|
665
649
|
item: e,
|
|
666
650
|
activeAnchor: s,
|
|
@@ -673,9 +657,9 @@ const Nt = I("Sun", [
|
|
|
673
657
|
defaultOpen: () => X(e, l.pathname, o)
|
|
674
658
|
});
|
|
675
659
|
if (Ue(e)) {
|
|
676
|
-
const d =
|
|
660
|
+
const d = L(
|
|
677
661
|
"flex items-center gap-2",
|
|
678
|
-
|
|
662
|
+
R({
|
|
679
663
|
isActive: e.href === l.pathname
|
|
680
664
|
})
|
|
681
665
|
);
|
|
@@ -707,18 +691,18 @@ const Nt = I("Sun", [
|
|
|
707
691
|
)
|
|
708
692
|
] });
|
|
709
693
|
return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
|
|
710
|
-
|
|
694
|
+
ye,
|
|
711
695
|
{
|
|
712
696
|
open: h,
|
|
713
697
|
onOpenChange: () => g((d) => !d),
|
|
714
698
|
className: "flex flex-col",
|
|
715
699
|
children: [
|
|
716
700
|
/* @__PURE__ */ n.jsx(
|
|
717
|
-
|
|
701
|
+
xe,
|
|
718
702
|
{
|
|
719
|
-
className:
|
|
703
|
+
className: L(
|
|
720
704
|
"group text-start",
|
|
721
|
-
|
|
705
|
+
R({ isActive: !1 })
|
|
722
706
|
),
|
|
723
707
|
children: b
|
|
724
708
|
}
|
|
@@ -740,8 +724,8 @@ const Nt = I("Sun", [
|
|
|
740
724
|
We,
|
|
741
725
|
{
|
|
742
726
|
to: e.path,
|
|
743
|
-
[
|
|
744
|
-
className:
|
|
727
|
+
[At]: e.path,
|
|
728
|
+
className: R({
|
|
745
729
|
isActive: e.path.slice(1) === s,
|
|
746
730
|
isMuted: e.muted
|
|
747
731
|
}),
|
|
@@ -750,12 +734,12 @@ const Nt = I("Sun", [
|
|
|
750
734
|
) : /* @__PURE__ */ n.jsx(
|
|
751
735
|
B,
|
|
752
736
|
{
|
|
753
|
-
className: ({ isActive: d }) =>
|
|
737
|
+
className: ({ isActive: d }) => R({ isActive: d }),
|
|
754
738
|
to: o,
|
|
755
739
|
children: b
|
|
756
740
|
}
|
|
757
741
|
) });
|
|
758
|
-
},
|
|
742
|
+
}, Qt = ({
|
|
759
743
|
category: t
|
|
760
744
|
}) => {
|
|
761
745
|
const { activeAnchor: e } = W(), s = $e(), a = D(), r = t.collapsible ?? !0, [o, l] = Me({
|
|
@@ -764,15 +748,15 @@ const Nt = I("Sun", [
|
|
|
764
748
|
defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
|
|
765
749
|
});
|
|
766
750
|
return /* @__PURE__ */ n.jsxs(
|
|
767
|
-
|
|
751
|
+
ye,
|
|
768
752
|
{
|
|
769
753
|
open: o,
|
|
770
754
|
onOpenChange: () => l((h) => !h),
|
|
771
755
|
children: [
|
|
772
|
-
t.label.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
756
|
+
t.label.length > 0 ? /* @__PURE__ */ n.jsx(xe, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
|
|
773
757
|
"h5",
|
|
774
758
|
{
|
|
775
|
-
className:
|
|
759
|
+
className: L(
|
|
776
760
|
"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]",
|
|
777
761
|
r ? "hover:bg-accent" : "cursor-auto"
|
|
778
762
|
),
|
|
@@ -803,12 +787,12 @@ const Nt = I("Sun", [
|
|
|
803
787
|
},
|
|
804
788
|
t.label
|
|
805
789
|
);
|
|
806
|
-
},
|
|
790
|
+
}, qt = ht(function({ children: e, className: s, pushMainContent: a }, r) {
|
|
807
791
|
return /* @__PURE__ */ n.jsx(
|
|
808
792
|
"nav",
|
|
809
793
|
{
|
|
810
794
|
"data-navigation": String(a),
|
|
811
|
-
className:
|
|
795
|
+
className: L(
|
|
812
796
|
"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",
|
|
813
797
|
s
|
|
814
798
|
),
|
|
@@ -816,21 +800,21 @@ const Nt = I("Sun", [
|
|
|
816
800
|
children: e
|
|
817
801
|
}
|
|
818
802
|
);
|
|
819
|
-
}),
|
|
803
|
+
}), Dt = () => {
|
|
820
804
|
const t = K(null), e = Ge();
|
|
821
805
|
return /* @__PURE__ */ n.jsx(
|
|
822
|
-
|
|
806
|
+
qt,
|
|
823
807
|
{
|
|
824
808
|
ref: t,
|
|
825
809
|
pushMainContent: e.data.items.length > 0,
|
|
826
|
-
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(
|
|
810
|
+
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Qt, { category: s }, s.label))
|
|
827
811
|
}
|
|
828
812
|
);
|
|
829
813
|
}, ue = ({ children: t }) => {
|
|
830
814
|
const e = D(), { setActiveAnchor: s } = W(), { meta: a } = U();
|
|
831
|
-
|
|
815
|
+
Ct(), Mt();
|
|
832
816
|
const r = K(e.pathname);
|
|
833
|
-
return
|
|
817
|
+
return I(() => {
|
|
834
818
|
e.pathname !== r.current && s(""), r.current = e.pathname;
|
|
835
819
|
}, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
836
820
|
/* @__PURE__ */ n.jsxs(Je, { titleTemplate: a == null ? void 0 : a.pageTitle, children: [
|
|
@@ -844,7 +828,7 @@ const Nt = I("Sun", [
|
|
|
844
828
|
{
|
|
845
829
|
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Ye, {}) }),
|
|
846
830
|
children: [
|
|
847
|
-
/* @__PURE__ */ n.jsx(
|
|
831
|
+
/* @__PURE__ */ n.jsx(Dt, {}),
|
|
848
832
|
/* @__PURE__ */ n.jsx(
|
|
849
833
|
"main",
|
|
850
834
|
{
|
|
@@ -860,8 +844,8 @@ const Nt = I("Sun", [
|
|
|
860
844
|
) })
|
|
861
845
|
] });
|
|
862
846
|
};
|
|
863
|
-
function
|
|
864
|
-
const e =
|
|
847
|
+
function Tt({ plugins: t }) {
|
|
848
|
+
const e = H(() => {
|
|
865
849
|
const s = (t ?? []).flatMap(
|
|
866
850
|
(a) => we(a) ? a.getRoutes() : []
|
|
867
851
|
);
|
|
@@ -876,22 +860,22 @@ function It({ plugins: t }) {
|
|
|
876
860
|
}, [t]);
|
|
877
861
|
return /* @__PURE__ */ n.jsx(et, { router: e });
|
|
878
862
|
}
|
|
879
|
-
const
|
|
880
|
-
const e =
|
|
863
|
+
const It = (t) => {
|
|
864
|
+
const e = H(
|
|
881
865
|
() => ({ ...Ce, ...t.overrides }),
|
|
882
866
|
[t.overrides]
|
|
883
|
-
), s =
|
|
867
|
+
), s = H(
|
|
884
868
|
() => ({ ...tt, ...t.mdxComponents }),
|
|
885
869
|
[t.mdxComponents]
|
|
886
|
-
), a =
|
|
887
|
-
return
|
|
870
|
+
), a = H(() => new bt(t), [t]);
|
|
871
|
+
return I(() => {
|
|
888
872
|
a.initialize();
|
|
889
|
-
}, [a]), /* @__PURE__ */ n.jsx(st, { client: Ne, children: /* @__PURE__ */ n.jsx(at, { children: /* @__PURE__ */ n.jsx(nt, { value: a, children: /* @__PURE__ */ n.jsx(rt, { components: s, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(
|
|
873
|
+
}, [a]), /* @__PURE__ */ n.jsx(st, { client: Ne, children: /* @__PURE__ */ n.jsx(at, { children: /* @__PURE__ */ n.jsx(nt, { value: a, children: /* @__PURE__ */ n.jsx(rt, { components: s, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(Ot, { value: e, children: /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx(
|
|
890
874
|
Pe,
|
|
891
875
|
{
|
|
892
876
|
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
893
877
|
children: /* @__PURE__ */ n.jsx(
|
|
894
|
-
|
|
878
|
+
Tt,
|
|
895
879
|
{
|
|
896
880
|
plugins: [
|
|
897
881
|
...t.plugins ?? [],
|
|
@@ -901,10 +885,10 @@ const St = (t) => {
|
|
|
901
885
|
)
|
|
902
886
|
}
|
|
903
887
|
) }) }) }) }) }) }) });
|
|
904
|
-
}, Et = je(
|
|
888
|
+
}, Et = je(It);
|
|
905
889
|
Et.displayName = "DevPortal";
|
|
906
890
|
export {
|
|
907
891
|
Et as DevPortal,
|
|
908
|
-
|
|
909
|
-
|
|
892
|
+
_t as Link,
|
|
893
|
+
Bt as useMDXComponents
|
|
910
894
|
};
|