zudoku 0.3.0-dev.10 → 0.3.0-dev.12
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/App.js +8 -6
- package/dist/app/App.js.map +1 -1
- package/dist/config/config.d.ts +5 -14
- package/dist/lib/authentication/authentication.d.ts +2 -2
- package/dist/lib/components/DevPortal.d.ts +2 -20
- package/dist/lib/components/DevPortal.js +13 -8
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/Header.js +2 -2
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +9 -4
- package/dist/lib/components/Heading.js +17 -2
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
- package/dist/lib/components/context/DevPortalProvider.js +2 -2
- package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +33 -3
- package/dist/lib/core/DevPortalContext.js +4 -2
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +7 -4
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +1 -1
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/index.js +3 -1
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
- package/dist/lib/plugins/markdown/MdxPage.js +5 -4
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +2 -2
- package/dist/lib/plugins/markdown/generateRoutes.js +2 -2
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +4 -1
- package/dist/lib/plugins/markdown/index.js +2 -2
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +4 -3
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +8 -4
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +1 -1
- package/dist/lib/plugins/openapi/{MakeRequest.js → PlaygroundDialogWrapper.js} +4 -4
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +1 -9
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListView.js +4 -26
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js +16 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.js +2 -2
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +8 -0
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +4 -4
- package/dist/lib/plugins/openapi/playground/Playground.js +7 -11
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +10 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/prose.js +4 -0
- package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
- package/dist/lib/plugins/openapi/worker/worker.js +25 -1
- package/dist/lib/plugins/openapi/worker/worker.js.map +1 -1
- package/dist/lib/ui/button-variants.d.ts +1 -1
- package/dist/lib/util/MdxComponents.js +1 -1
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/objectEntries.d.ts +4 -0
- package/dist/lib/util/objectEntries.js +2 -0
- package/dist/lib/util/objectEntries.js.map +1 -0
- package/dist/lib/util/renderIf.d.ts +1 -0
- package/dist/lib/util/renderIf.js +2 -0
- package/dist/lib/util/renderIf.js.map +1 -0
- package/dist/vite/plugin-docs.js +1 -1
- package/dist/vite/plugin-docs.js.map +1 -1
- package/lib/{Spinner-DCwVN24H.js → Spinner-CbtkR-Im.js} +3249 -3232
- package/lib/assets/{worker-BCcpCNJ7.js → worker-DGvzLstc.js} +9843 -9800
- package/lib/zudoku.components.js +174 -161
- package/lib/zudoku.openapi-worker.js +12 -12
- package/lib/zudoku.plugins.js +3722 -3712
- package/package.json +2 -1
- package/src/app/App.tsx +9 -7
- package/src/lib/authentication/authentication.ts +2 -5
- package/src/lib/components/DevPortal.tsx +12 -27
- package/src/lib/components/Header.tsx +4 -4
- package/src/lib/components/Heading.tsx +26 -7
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/components/context/DevPortalProvider.ts +2 -2
- package/src/lib/core/DevPortalContext.ts +38 -10
- package/src/lib/core/plugins.ts +10 -5
- package/src/lib/oas/graphql/index.ts +2 -2
- package/src/lib/oas/parser/index.ts +3 -1
- package/src/lib/plugins/markdown/MdxPage.tsx +49 -32
- package/src/lib/plugins/markdown/generateRoutes.tsx +12 -2
- package/src/lib/plugins/markdown/index.tsx +8 -1
- package/src/lib/plugins/openapi/OperationList.tsx +9 -3
- package/src/lib/plugins/openapi/OperationListItem.tsx +39 -18
- package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
- package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
- package/src/lib/plugins/openapi/{MakeRequest.tsx → PlaygroundDialogWrapper.tsx} +3 -3
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -17
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -1
- package/src/lib/plugins/openapi/SchemaListView.tsx +15 -182
- package/src/lib/plugins/openapi/SchemaListViewItem.tsx +110 -0
- package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +2 -2
- package/src/lib/plugins/openapi/index.tsx +17 -4
- package/src/lib/plugins/openapi/playground/Playground.tsx +157 -187
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +34 -0
- package/src/lib/plugins/openapi/util/prose.ts +7 -0
- package/src/lib/plugins/openapi/worker/worker.ts +27 -1
- package/src/lib/util/MdxComponents.tsx +1 -1
- package/src/lib/util/objectEntries.ts +5 -0
- package/src/lib/util/renderIf.ts +4 -0
- package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Te = Object.defineProperty;
|
|
2
2
|
var se = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)),
|
|
5
|
+
var Ie = (t, e, s) => e in t ? Te(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
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
|
+
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
8
|
var S = (t, e, s, a) => ({
|
|
9
9
|
set _(r) {
|
|
10
10
|
u(t, e, r, s);
|
|
@@ -13,21 +13,21 @@ var S = (t, e, s, a) => ({
|
|
|
13
13
|
return i(t, e, a);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { j as n, u as D, O as
|
|
17
|
-
import { S as me, h as ge, Q as
|
|
18
|
-
import { X as
|
|
19
|
-
import { memo as
|
|
20
|
-
import { c as
|
|
21
|
-
var x, de,
|
|
16
|
+
import { j as n, u as D, O as Ee } from "./index-PyGcnQFX.js";
|
|
17
|
+
import { S as me, h as ge, Q as Se, n as m, m as ne, M as Fe, a as re, b as j, e as Re, c as He, d as Le, f as ze, o as ie, r as oe, g as Ke, i as le, p as ce, s as _e, j as z, u as U, N as B, k as Be, l as Ve, q as Ue, t as W, v as X, w as V, x as ve, y as We, z as L, R as ye, T as xe, C as be, A as Xe, B as $e, D as Ge, E as Je, 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-CbtkR-Im.js";
|
|
18
|
+
import { X as Vt, W as Ut } from "./Spinner-CbtkR-Im.js";
|
|
19
|
+
import { memo as Pe, createContext as lt, useEffect as I, useRef as K, useState as ct, forwardRef as ht, Suspense as we, useMemo as H, Fragment as ut } from "react";
|
|
20
|
+
import { c as dt } from "./state-2Hu1renZ.js";
|
|
21
|
+
var x, de, ft = (de = class extends me {
|
|
22
22
|
constructor(e = {}) {
|
|
23
23
|
super();
|
|
24
|
-
|
|
24
|
+
v(this, x);
|
|
25
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 Se({
|
|
31
31
|
cache: this,
|
|
32
32
|
queryKey: r,
|
|
33
33
|
queryHash: o,
|
|
@@ -47,7 +47,7 @@ var x, de, dt = (de = class extends me {
|
|
|
47
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
|
+
m.batch(() => {
|
|
51
51
|
this.getAll().forEach((e) => {
|
|
52
52
|
this.remove(e);
|
|
53
53
|
});
|
|
@@ -70,35 +70,35 @@ var x, de, dt = (de = class extends me {
|
|
|
70
70
|
return Object.keys(e).length > 0 ? s.filter((a) => ne(e, a)) : s;
|
|
71
71
|
}
|
|
72
72
|
notify(e) {
|
|
73
|
-
|
|
73
|
+
m.batch(() => {
|
|
74
74
|
this.listeners.forEach((s) => {
|
|
75
75
|
s(e);
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
onFocus() {
|
|
80
|
-
|
|
80
|
+
m.batch(() => {
|
|
81
81
|
this.getAll().forEach((e) => {
|
|
82
82
|
e.onFocus();
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
onOnline() {
|
|
87
|
-
|
|
87
|
+
m.batch(() => {
|
|
88
88
|
this.getAll().forEach((e) => {
|
|
89
89
|
e.onOnline();
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
}, x = new WeakMap(), de),
|
|
93
|
+
}, x = new WeakMap(), de), p, T, fe, pt = (fe = class extends me {
|
|
94
94
|
constructor(e = {}) {
|
|
95
95
|
super();
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
this.config = e, u(this,
|
|
96
|
+
v(this, p);
|
|
97
|
+
v(this, T);
|
|
98
|
+
this.config = e, u(this, p, /* @__PURE__ */ new Map()), u(this, T, Date.now());
|
|
99
99
|
}
|
|
100
100
|
build(e, s, a) {
|
|
101
|
-
const r = new
|
|
101
|
+
const r = new Fe({
|
|
102
102
|
mutationCache: this,
|
|
103
103
|
mutationId: ++S(this, T)._,
|
|
104
104
|
options: e.defaultMutationOptions(s),
|
|
@@ -107,37 +107,37 @@ var x, de, dt = (de = class extends me {
|
|
|
107
107
|
return this.add(r), r;
|
|
108
108
|
}
|
|
109
109
|
add(e) {
|
|
110
|
-
const s = F(e), a = i(this,
|
|
111
|
-
a.push(e), i(this,
|
|
110
|
+
const s = F(e), a = i(this, p).get(s) ?? [];
|
|
111
|
+
a.push(e), i(this, p).set(s, a), this.notify({ type: "added", mutation: e });
|
|
112
112
|
}
|
|
113
113
|
remove(e) {
|
|
114
114
|
var a;
|
|
115
115
|
const s = F(e);
|
|
116
|
-
if (i(this,
|
|
117
|
-
const r = (a = i(this,
|
|
118
|
-
r && (r.length === 0 ? i(this,
|
|
116
|
+
if (i(this, p).has(s)) {
|
|
117
|
+
const r = (a = i(this, p).get(s)) == null ? void 0 : a.filter((o) => o !== e);
|
|
118
|
+
r && (r.length === 0 ? i(this, p).delete(s) : i(this, p).set(s, r));
|
|
119
119
|
}
|
|
120
120
|
this.notify({ type: "removed", mutation: e });
|
|
121
121
|
}
|
|
122
122
|
canRun(e) {
|
|
123
123
|
var a;
|
|
124
|
-
const s = (a = i(this,
|
|
124
|
+
const s = (a = i(this, p).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,
|
|
129
|
+
const s = (a = i(this, p).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() {
|
|
133
|
-
|
|
133
|
+
m.batch(() => {
|
|
134
134
|
this.getAll().forEach((e) => {
|
|
135
135
|
this.remove(e);
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
getAll() {
|
|
140
|
-
return [...i(this,
|
|
140
|
+
return [...i(this, p).values()].flat();
|
|
141
141
|
}
|
|
142
142
|
find(e) {
|
|
143
143
|
const s = { exact: !0, ...e };
|
|
@@ -149,7 +149,7 @@ var x, de, dt = (de = class extends me {
|
|
|
149
149
|
return this.getAll().filter((s) => re(e, s));
|
|
150
150
|
}
|
|
151
151
|
notify(e) {
|
|
152
|
-
|
|
152
|
+
m.batch(() => {
|
|
153
153
|
this.listeners.forEach((s) => {
|
|
154
154
|
s(e);
|
|
155
155
|
});
|
|
@@ -157,65 +157,65 @@ var x, de, dt = (de = class extends me {
|
|
|
157
157
|
}
|
|
158
158
|
resumePausedMutations() {
|
|
159
159
|
const e = this.getAll().filter((s) => s.state.isPaused);
|
|
160
|
-
return
|
|
160
|
+
return m.batch(
|
|
161
161
|
() => Promise.all(
|
|
162
162
|
e.map((s) => s.continue().catch(j))
|
|
163
163
|
)
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
|
-
},
|
|
166
|
+
}, p = new WeakMap(), T = new WeakMap(), fe);
|
|
167
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
|
}
|
|
171
|
-
function
|
|
171
|
+
function mt(t) {
|
|
172
172
|
return {
|
|
173
173
|
onFetch: (e, s) => {
|
|
174
174
|
const a = async () => {
|
|
175
175
|
var $, G, J, Y, Z;
|
|
176
|
-
const r = e.options, o = (J = (G = ($ = e.fetchOptions) == null ? void 0 : $.meta) == null ? void 0 : G.fetchMore) == null ? void 0 : J.direction, l = ((Y = e.state.data) == null ? void 0 : Y.pages) || [], h = ((Z = e.state.data) == null ? void 0 : Z.pageParams) || [],
|
|
176
|
+
const r = e.options, o = (J = (G = ($ = e.fetchOptions) == null ? void 0 : $.meta) == null ? void 0 : G.fetchMore) == null ? void 0 : J.direction, l = ((Y = e.state.data) == null ? void 0 : Y.pages) || [], h = ((Z = e.state.data) == null ? void 0 : Z.pageParams) || [], d = { pages: [], pageParams: [] };
|
|
177
177
|
let b = !1;
|
|
178
|
-
const
|
|
179
|
-
Object.defineProperty(
|
|
178
|
+
const f = (y) => {
|
|
179
|
+
Object.defineProperty(y, "signal", {
|
|
180
180
|
enumerable: !0,
|
|
181
181
|
get: () => (e.signal.aborted ? b = !0 : e.signal.addEventListener("abort", () => {
|
|
182
182
|
b = !0;
|
|
183
183
|
}), e.signal)
|
|
184
184
|
});
|
|
185
|
-
},
|
|
185
|
+
}, qe = Re(e.options, e.fetchOptions), _ = async (y, P, O) => {
|
|
186
186
|
if (b)
|
|
187
187
|
return Promise.reject();
|
|
188
|
-
if (P == null &&
|
|
189
|
-
return Promise.resolve(
|
|
188
|
+
if (P == null && y.pages.length)
|
|
189
|
+
return Promise.resolve(y);
|
|
190
190
|
const E = {
|
|
191
191
|
queryKey: e.queryKey,
|
|
192
192
|
pageParam: P,
|
|
193
193
|
direction: O ? "backward" : "forward",
|
|
194
194
|
meta: e.options.meta
|
|
195
195
|
};
|
|
196
|
-
|
|
197
|
-
const
|
|
196
|
+
f(E);
|
|
197
|
+
const De = await qe(
|
|
198
198
|
E
|
|
199
|
-
), { maxPages: ee } = e.options, te = O ?
|
|
199
|
+
), { maxPages: ee } = e.options, te = O ? He : Le;
|
|
200
200
|
return {
|
|
201
|
-
pages: te(
|
|
202
|
-
pageParams: te(
|
|
201
|
+
pages: te(y.pages, De, ee),
|
|
202
|
+
pageParams: te(y.pageParams, P, ee)
|
|
203
203
|
};
|
|
204
204
|
};
|
|
205
205
|
let C;
|
|
206
206
|
if (o && l.length) {
|
|
207
|
-
const
|
|
207
|
+
const y = o === "backward", P = y ? gt : he, O = {
|
|
208
208
|
pages: l,
|
|
209
209
|
pageParams: h
|
|
210
210
|
}, E = P(r, O);
|
|
211
|
-
C = await _(O, E,
|
|
211
|
+
C = await _(O, E, y);
|
|
212
212
|
} else {
|
|
213
213
|
C = await _(
|
|
214
|
-
|
|
214
|
+
d,
|
|
215
215
|
h[0] ?? r.initialPageParam
|
|
216
216
|
);
|
|
217
|
-
const
|
|
218
|
-
for (let P = 1; P <
|
|
217
|
+
const y = t ?? l.length;
|
|
218
|
+
for (let P = 1; P < y; P++) {
|
|
219
219
|
const O = he(r, C);
|
|
220
220
|
C = await _(C, O);
|
|
221
221
|
}
|
|
@@ -247,7 +247,7 @@ function he(t, { pages: e, pageParams: s }) {
|
|
|
247
247
|
s
|
|
248
248
|
);
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function gt(t, { pages: e, pageParams: s }) {
|
|
251
251
|
var a;
|
|
252
252
|
return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
|
|
253
253
|
t,
|
|
@@ -257,20 +257,20 @@ function mt(t, { pages: e, pageParams: s }) {
|
|
|
257
257
|
s
|
|
258
258
|
);
|
|
259
259
|
}
|
|
260
|
-
var c, w, N, M, A, k, Q, q, pe,
|
|
260
|
+
var c, w, N, M, A, k, Q, q, pe, vt = (pe = class {
|
|
261
261
|
constructor(t = {}) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
u(this, c, t.queryCache || new
|
|
262
|
+
v(this, c);
|
|
263
|
+
v(this, w);
|
|
264
|
+
v(this, N);
|
|
265
|
+
v(this, M);
|
|
266
|
+
v(this, A);
|
|
267
|
+
v(this, k);
|
|
268
|
+
v(this, Q);
|
|
269
|
+
v(this, q);
|
|
270
|
+
u(this, c, t.queryCache || new ft()), u(this, w, t.mutationCache || new pt()), 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
|
-
S(this, k)._++, i(this, k) === 1 && (u(this, Q,
|
|
273
|
+
S(this, k)._++, i(this, k) === 1 && (u(this, Q, ze.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());
|
|
@@ -309,12 +309,12 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
|
|
|
309
309
|
setQueryData(t, e, s) {
|
|
310
310
|
const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
|
|
311
311
|
a.queryHash
|
|
312
|
-
), o = r == null ? void 0 : r.state.data, l =
|
|
312
|
+
), o = r == null ? void 0 : r.state.data, l = Ke(e, o);
|
|
313
313
|
if (l !== void 0)
|
|
314
314
|
return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
|
|
315
315
|
}
|
|
316
316
|
setQueriesData(t, e, s) {
|
|
317
|
-
return
|
|
317
|
+
return m.batch(
|
|
318
318
|
() => i(this, c).findAll(t).map(({ queryKey: a }) => [
|
|
319
319
|
a,
|
|
320
320
|
this.setQueryData(a, e, s)
|
|
@@ -328,7 +328,7 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
|
|
|
328
328
|
}
|
|
329
329
|
removeQueries(t) {
|
|
330
330
|
const e = i(this, c);
|
|
331
|
-
|
|
331
|
+
m.batch(() => {
|
|
332
332
|
e.findAll(t).forEach((s) => {
|
|
333
333
|
e.remove(s);
|
|
334
334
|
});
|
|
@@ -339,18 +339,18 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
|
|
|
339
339
|
type: "active",
|
|
340
340
|
...t
|
|
341
341
|
};
|
|
342
|
-
return
|
|
342
|
+
return m.batch(() => (s.findAll(t).forEach((r) => {
|
|
343
343
|
r.reset();
|
|
344
344
|
}), this.refetchQueries(a, e)));
|
|
345
345
|
}
|
|
346
346
|
cancelQueries(t = {}, e = {}) {
|
|
347
|
-
const s = { revert: !0, ...e }, a =
|
|
347
|
+
const s = { revert: !0, ...e }, a = m.batch(
|
|
348
348
|
() => i(this, c).findAll(t).map((r) => r.cancel(s))
|
|
349
349
|
);
|
|
350
350
|
return Promise.all(a).then(j).catch(j);
|
|
351
351
|
}
|
|
352
352
|
invalidateQueries(t = {}, e = {}) {
|
|
353
|
-
return
|
|
353
|
+
return m.batch(() => {
|
|
354
354
|
if (i(this, c).findAll(t).forEach((a) => {
|
|
355
355
|
a.invalidate();
|
|
356
356
|
}), t.refetchType === "none")
|
|
@@ -366,7 +366,7 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
|
|
|
366
366
|
const s = {
|
|
367
367
|
...e,
|
|
368
368
|
cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
|
|
369
|
-
}, a =
|
|
369
|
+
}, a = m.batch(
|
|
370
370
|
() => i(this, c).findAll(t).filter((r) => !r.isDisabled()).map((r) => {
|
|
371
371
|
let o = r.fetch(void 0, s);
|
|
372
372
|
return s.throwOnError || (o = o.catch(j)), r.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
@@ -386,7 +386,7 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
|
|
|
386
386
|
return this.fetchQuery(t).then(j).catch(j);
|
|
387
387
|
}
|
|
388
388
|
fetchInfiniteQuery(t) {
|
|
389
|
-
return t.behavior =
|
|
389
|
+
return t.behavior = mt(t.pages), this.fetchQuery(t);
|
|
390
390
|
}
|
|
391
391
|
prefetchInfiniteQuery(t) {
|
|
392
392
|
return this.fetchInfiniteQuery(t).then(j).catch(j);
|
|
@@ -444,7 +444,7 @@ var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
|
|
|
444
444
|
return e.queryHash || (e.queryHash = ge(
|
|
445
445
|
e.queryKey,
|
|
446
446
|
e
|
|
447
|
-
)), 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 ===
|
|
447
|
+
)), 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 === _e && (e.enabled = !1), e;
|
|
448
448
|
}
|
|
449
449
|
defaultMutationOptions(t) {
|
|
450
450
|
return t != null && t._defaulted ? t : {
|
|
@@ -458,27 +458,31 @@ 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
|
|
462
|
-
class
|
|
461
|
+
const Ne = (t) => "getRoutes" in t && typeof t.getRoutes == "function", yt = (t) => "initialize" in t && typeof t.initialize == "function", xt = (t) => "getHead" in t && typeof t.getHead == "function", bt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", ke = new vt(), jt = dt(() => ({}));
|
|
462
|
+
class Pt {
|
|
463
463
|
constructor(e) {
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
464
|
+
g(this, "plugins", []);
|
|
465
|
+
g(this, "navigationPlugins");
|
|
466
|
+
g(this, "navigation");
|
|
467
|
+
g(this, "meta");
|
|
468
|
+
g(this, "page");
|
|
469
|
+
g(this, "authentication");
|
|
470
|
+
g(this, "state");
|
|
471
|
+
g(this, "initialize", async () => {
|
|
471
472
|
await Promise.all([
|
|
472
|
-
this.plugins.filter(
|
|
473
|
+
this.plugins.filter(yt).map((e) => {
|
|
474
|
+
var s;
|
|
475
|
+
return (s = e.initialize) == null ? void 0 : s.call(e, this);
|
|
476
|
+
})
|
|
473
477
|
]);
|
|
474
478
|
});
|
|
475
|
-
|
|
476
|
-
await
|
|
479
|
+
g(this, "invalidateCache", async (e) => {
|
|
480
|
+
await ke.invalidateQueries({ queryKey: e });
|
|
477
481
|
});
|
|
478
|
-
|
|
479
|
-
this.plugins.filter(
|
|
482
|
+
g(this, "getApiIdentities", async () => (await Promise.all(
|
|
483
|
+
this.plugins.filter(bt).map((s) => s.getIdentities(this))
|
|
480
484
|
)).flat());
|
|
481
|
-
|
|
485
|
+
g(this, "getNavigation", async (e) => (await Promise.all(
|
|
482
486
|
this.navigationPlugins.map(
|
|
483
487
|
async (a) => {
|
|
484
488
|
var r;
|
|
@@ -486,7 +490,7 @@ class bt {
|
|
|
486
490
|
}
|
|
487
491
|
)
|
|
488
492
|
)).flatMap((a) => a ?? []));
|
|
489
|
-
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(
|
|
493
|
+
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ne), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = jt;
|
|
490
494
|
}
|
|
491
495
|
async signRequest(e) {
|
|
492
496
|
if (!this.authentication)
|
|
@@ -501,7 +505,7 @@ class bt {
|
|
|
501
505
|
* This source code is licensed under the ISC license.
|
|
502
506
|
* See the LICENSE file in the root directory of this source tree.
|
|
503
507
|
*/
|
|
504
|
-
const
|
|
508
|
+
const Oe = z("ChevronRight", [
|
|
505
509
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
506
510
|
]);
|
|
507
511
|
/**
|
|
@@ -510,7 +514,7 @@ const ke = z("ChevronRight", [
|
|
|
510
514
|
* This source code is licensed under the ISC license.
|
|
511
515
|
* See the LICENSE file in the root directory of this source tree.
|
|
512
516
|
*/
|
|
513
|
-
const
|
|
517
|
+
const wt = z("ExternalLink", [
|
|
514
518
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
515
519
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
516
520
|
["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 +525,7 @@ const jt = z("ExternalLink", [
|
|
|
521
525
|
* This source code is licensed under the ISC license.
|
|
522
526
|
* See the LICENSE file in the root directory of this source tree.
|
|
523
527
|
*/
|
|
524
|
-
const
|
|
528
|
+
const Nt = z("MoonStar", [
|
|
525
529
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
526
530
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
527
531
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -532,7 +536,7 @@ const Pt = z("MoonStar", [
|
|
|
532
536
|
* This source code is licensed under the ISC license.
|
|
533
537
|
* See the LICENSE file in the root directory of this source tree.
|
|
534
538
|
*/
|
|
535
|
-
const
|
|
539
|
+
const kt = z("Sun", [
|
|
536
540
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
537
541
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
538
542
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -542,12 +546,12 @@ const wt = z("Sun", [
|
|
|
542
546
|
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
543
547
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
544
548
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
545
|
-
]),
|
|
549
|
+
]), Ot = () => {
|
|
546
550
|
const { navigation: t } = U();
|
|
547
551
|
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(
|
|
548
552
|
B,
|
|
549
553
|
{
|
|
550
|
-
className: ({ isActive: s }) =>
|
|
554
|
+
className: ({ isActive: s }) => Be(
|
|
551
555
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
552
556
|
s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
553
557
|
),
|
|
@@ -555,13 +559,13 @@ const wt = z("Sun", [
|
|
|
555
559
|
children: e.label
|
|
556
560
|
}
|
|
557
561
|
) }, e.label)) }) });
|
|
558
|
-
},
|
|
559
|
-
const [e, s] =
|
|
562
|
+
}, Ce = Pe(function() {
|
|
563
|
+
const [e, s] = Ve(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = Ue(), { page: d } = U(), b = e ? Nt : kt;
|
|
560
564
|
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: [
|
|
561
565
|
/* @__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: [
|
|
562
566
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
563
|
-
(
|
|
564
|
-
/* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children:
|
|
567
|
+
(d == null ? void 0 : d.logo) && /* @__PURE__ */ n.jsx("img", { src: d.logo, alt: d.pageTitle, className: "h-10" }),
|
|
568
|
+
/* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: d == null ? void 0 : d.pageTitle })
|
|
565
569
|
] }),
|
|
566
570
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
567
571
|
/* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
|
|
@@ -595,11 +599,11 @@ const wt = z("Sun", [
|
|
|
595
599
|
] })
|
|
596
600
|
] })
|
|
597
601
|
] }),
|
|
598
|
-
/* @__PURE__ */ n.jsx(
|
|
602
|
+
/* @__PURE__ */ n.jsx(Ot, {})
|
|
599
603
|
] }) });
|
|
600
|
-
}),
|
|
601
|
-
Header:
|
|
602
|
-
},
|
|
604
|
+
}), Me = {
|
|
605
|
+
Header: Ce
|
|
606
|
+
}, Ct = lt(Me), Mt = Ct.Provider, At = () => {
|
|
603
607
|
const t = D(), { setActiveAnchor: e } = W();
|
|
604
608
|
I(() => {
|
|
605
609
|
if (!t.hash) return;
|
|
@@ -616,12 +620,12 @@ const wt = z("Sun", [
|
|
|
616
620
|
});
|
|
617
621
|
return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
618
622
|
}, [t.hash, e]);
|
|
619
|
-
},
|
|
623
|
+
}, Qt = () => {
|
|
620
624
|
const t = D(), e = K(t.pathname);
|
|
621
625
|
I(() => {
|
|
622
626
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
623
627
|
}, [t.pathname]);
|
|
624
|
-
},
|
|
628
|
+
}, Ae = ({
|
|
625
629
|
item: t,
|
|
626
630
|
defaultOpen: e,
|
|
627
631
|
path: s
|
|
@@ -630,7 +634,7 @@ const wt = z("Sun", [
|
|
|
630
634
|
return I(() => {
|
|
631
635
|
!a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
|
|
632
636
|
}, [a, t, s, o.pathname]), [a, r];
|
|
633
|
-
}, R =
|
|
637
|
+
}, R = $e(
|
|
634
638
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
635
639
|
{
|
|
636
640
|
variants: {
|
|
@@ -644,20 +648,20 @@ const wt = z("Sun", [
|
|
|
644
648
|
}
|
|
645
649
|
}
|
|
646
650
|
}
|
|
647
|
-
),
|
|
651
|
+
), qt = "data-anchor", Qe = ({
|
|
648
652
|
category: t,
|
|
649
653
|
item: e,
|
|
650
654
|
activeAnchor: s,
|
|
651
655
|
currentTopNavItem: a,
|
|
652
656
|
basePath: r = ""
|
|
653
657
|
}) => {
|
|
654
|
-
const o = V(e) ? ve(r, e.path) : "", l = D(), [h,
|
|
658
|
+
const o = V(e) ? ve(r, e.path) : "", l = D(), [h, d] = Ae({
|
|
655
659
|
item: e,
|
|
656
660
|
path: o,
|
|
657
661
|
defaultOpen: () => X(e, l.pathname, o)
|
|
658
662
|
});
|
|
659
|
-
if (
|
|
660
|
-
const
|
|
663
|
+
if (We(e)) {
|
|
664
|
+
const f = L(
|
|
661
665
|
"flex items-center gap-2",
|
|
662
666
|
R({
|
|
663
667
|
isActive: e.href === l.pathname
|
|
@@ -666,16 +670,16 @@ const wt = z("Sun", [
|
|
|
666
670
|
return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
|
|
667
671
|
"a",
|
|
668
672
|
{
|
|
669
|
-
className:
|
|
673
|
+
className: f,
|
|
670
674
|
href: e.href,
|
|
671
675
|
target: "_blank",
|
|
672
676
|
rel: "noopener noreferrer",
|
|
673
677
|
children: [
|
|
674
678
|
e.label,
|
|
675
|
-
/* @__PURE__ */ n.jsx(
|
|
679
|
+
/* @__PURE__ */ n.jsx(wt, { size: 14 })
|
|
676
680
|
]
|
|
677
681
|
}
|
|
678
|
-
) : /* @__PURE__ */ n.jsx(B, { className:
|
|
682
|
+
) : /* @__PURE__ */ n.jsx(B, { className: f, to: e.href, children: e.label });
|
|
679
683
|
}
|
|
680
684
|
const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
681
685
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
@@ -683,7 +687,7 @@ const wt = z("Sun", [
|
|
|
683
687
|
typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
|
|
684
688
|
] }),
|
|
685
689
|
e.children && /* @__PURE__ */ n.jsx(
|
|
686
|
-
|
|
690
|
+
Oe,
|
|
687
691
|
{
|
|
688
692
|
size: 16,
|
|
689
693
|
className: "transition shrink-0 group-data-[state=open]:rotate-90"
|
|
@@ -694,7 +698,7 @@ const wt = z("Sun", [
|
|
|
694
698
|
ye,
|
|
695
699
|
{
|
|
696
700
|
open: h,
|
|
697
|
-
onOpenChange: () =>
|
|
701
|
+
onOpenChange: () => d((f) => !f),
|
|
698
702
|
className: "flex flex-col",
|
|
699
703
|
children: [
|
|
700
704
|
/* @__PURE__ */ n.jsx(
|
|
@@ -707,24 +711,24 @@ const wt = z("Sun", [
|
|
|
707
711
|
children: b
|
|
708
712
|
}
|
|
709
713
|
),
|
|
710
|
-
/* @__PURE__ */ n.jsx(be, { 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((
|
|
711
|
-
|
|
714
|
+
/* @__PURE__ */ n.jsx(be, { 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(
|
|
715
|
+
Qe,
|
|
712
716
|
{
|
|
713
717
|
category: t,
|
|
714
|
-
item:
|
|
718
|
+
item: f,
|
|
715
719
|
activeAnchor: s,
|
|
716
720
|
currentTopNavItem: a,
|
|
717
721
|
basePath: o
|
|
718
722
|
},
|
|
719
|
-
V(
|
|
723
|
+
V(f) ? f.path : f.href
|
|
720
724
|
)) }) })
|
|
721
725
|
]
|
|
722
726
|
}
|
|
723
727
|
) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
|
|
724
|
-
|
|
728
|
+
Xe,
|
|
725
729
|
{
|
|
726
730
|
to: e.path,
|
|
727
|
-
[
|
|
731
|
+
[qt]: e.path,
|
|
728
732
|
className: R({
|
|
729
733
|
isActive: e.path.slice(1) === s,
|
|
730
734
|
isMuted: e.muted
|
|
@@ -734,15 +738,15 @@ const wt = z("Sun", [
|
|
|
734
738
|
) : /* @__PURE__ */ n.jsx(
|
|
735
739
|
B,
|
|
736
740
|
{
|
|
737
|
-
className: ({ isActive:
|
|
741
|
+
className: ({ isActive: f }) => R({ isActive: f }),
|
|
738
742
|
to: o,
|
|
739
743
|
children: b
|
|
740
744
|
}
|
|
741
745
|
) });
|
|
742
|
-
},
|
|
746
|
+
}, Dt = ({
|
|
743
747
|
category: t
|
|
744
748
|
}) => {
|
|
745
|
-
const { activeAnchor: e } = W(), s =
|
|
749
|
+
const { activeAnchor: e } = W(), s = Ge(), a = D(), r = t.collapsible ?? !0, [o, l] = Ae({
|
|
746
750
|
item: t,
|
|
747
751
|
path: (s == null ? void 0 : s.path) ?? "",
|
|
748
752
|
defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
|
|
@@ -763,7 +767,7 @@ const wt = z("Sun", [
|
|
|
763
767
|
children: [
|
|
764
768
|
t.label,
|
|
765
769
|
r && /* @__PURE__ */ n.jsx(
|
|
766
|
-
|
|
770
|
+
Oe,
|
|
767
771
|
{
|
|
768
772
|
className: "group-data-[state=open]:rotate-90 transition",
|
|
769
773
|
size: 16
|
|
@@ -773,7 +777,7 @@ const wt = z("Sun", [
|
|
|
773
777
|
}
|
|
774
778
|
) }) : "Endpoints",
|
|
775
779
|
/* @__PURE__ */ n.jsx(be, { 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(
|
|
776
|
-
|
|
780
|
+
Qe,
|
|
777
781
|
{
|
|
778
782
|
category: t,
|
|
779
783
|
item: h,
|
|
@@ -787,7 +791,7 @@ const wt = z("Sun", [
|
|
|
787
791
|
},
|
|
788
792
|
t.label
|
|
789
793
|
);
|
|
790
|
-
},
|
|
794
|
+
}, Tt = ht(function({ children: e, className: s, pushMainContent: a }, r) {
|
|
791
795
|
return /* @__PURE__ */ n.jsx(
|
|
792
796
|
"nav",
|
|
793
797
|
{
|
|
@@ -800,35 +804,35 @@ const wt = z("Sun", [
|
|
|
800
804
|
children: e
|
|
801
805
|
}
|
|
802
806
|
);
|
|
803
|
-
}),
|
|
804
|
-
const t = K(null), e =
|
|
807
|
+
}), It = () => {
|
|
808
|
+
const t = K(null), e = Je();
|
|
805
809
|
return /* @__PURE__ */ n.jsx(
|
|
806
|
-
|
|
810
|
+
Tt,
|
|
807
811
|
{
|
|
808
812
|
ref: t,
|
|
809
813
|
pushMainContent: e.data.items.length > 0,
|
|
810
|
-
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(
|
|
814
|
+
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Dt, { category: s }, s.label))
|
|
811
815
|
}
|
|
812
816
|
);
|
|
813
817
|
}, ue = ({ children: t }) => {
|
|
814
818
|
const e = D(), { setActiveAnchor: s } = W(), { meta: a } = U();
|
|
815
|
-
|
|
819
|
+
At(), Qt();
|
|
816
820
|
const r = K(e.pathname);
|
|
817
821
|
return I(() => {
|
|
818
822
|
e.pathname !== r.current && s(""), r.current = e.pathname;
|
|
819
823
|
}, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
820
|
-
/* @__PURE__ */ n.jsxs(
|
|
824
|
+
/* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.title, children: [
|
|
821
825
|
/* @__PURE__ */ n.jsx("title", { children: "Home" }),
|
|
822
826
|
(a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
|
|
823
827
|
(a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
|
|
824
828
|
] }),
|
|
825
|
-
/* @__PURE__ */ n.jsx(
|
|
829
|
+
/* @__PURE__ */ n.jsx(Ce, {}),
|
|
826
830
|
/* @__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(
|
|
827
|
-
|
|
831
|
+
we,
|
|
828
832
|
{
|
|
829
833
|
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Ye, {}) }),
|
|
830
834
|
children: [
|
|
831
|
-
/* @__PURE__ */ n.jsx(
|
|
835
|
+
/* @__PURE__ */ n.jsx(It, {}),
|
|
832
836
|
/* @__PURE__ */ n.jsx(
|
|
833
837
|
"main",
|
|
834
838
|
{
|
|
@@ -836,7 +840,7 @@ const wt = z("Sun", [
|
|
|
836
840
|
lg:overflow-visible
|
|
837
841
|
lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
|
|
838
842
|
lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
|
|
839
|
-
children: t ?? /* @__PURE__ */ n.jsx(
|
|
843
|
+
children: t ?? /* @__PURE__ */ n.jsx(Ee, {})
|
|
840
844
|
}
|
|
841
845
|
)
|
|
842
846
|
]
|
|
@@ -844,10 +848,10 @@ const wt = z("Sun", [
|
|
|
844
848
|
) })
|
|
845
849
|
] });
|
|
846
850
|
};
|
|
847
|
-
function
|
|
851
|
+
function Et({ plugins: t }) {
|
|
848
852
|
const e = H(() => {
|
|
849
853
|
const s = (t ?? []).flatMap(
|
|
850
|
-
(a) =>
|
|
854
|
+
(a) => Ne(a) ? a.getRoutes() : []
|
|
851
855
|
);
|
|
852
856
|
return Ze([
|
|
853
857
|
{
|
|
@@ -860,35 +864,44 @@ function Tt({ plugins: t }) {
|
|
|
860
864
|
}, [t]);
|
|
861
865
|
return /* @__PURE__ */ n.jsx(et, { router: e });
|
|
862
866
|
}
|
|
863
|
-
const
|
|
867
|
+
const St = (t) => {
|
|
868
|
+
var o;
|
|
864
869
|
const e = H(
|
|
865
|
-
() => ({ ...
|
|
870
|
+
() => ({ ...Me, ...t.overrides }),
|
|
866
871
|
[t.overrides]
|
|
867
872
|
), s = H(
|
|
868
873
|
() => ({ ...tt, ...t.mdxComponents }),
|
|
869
874
|
[t.mdxComponents]
|
|
870
|
-
), a = H(() => new
|
|
871
|
-
|
|
875
|
+
), a = H(() => new Pt(t), [t]);
|
|
876
|
+
I(() => {
|
|
872
877
|
a.initialize();
|
|
873
|
-
}, [a])
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
878
|
+
}, [a]);
|
|
879
|
+
const r = (o = t.plugins) == null ? void 0 : o.filter(xt).map((l, h) => {
|
|
880
|
+
var d;
|
|
881
|
+
return /* @__PURE__ */ n.jsx(ut, { children: (d = l.getHead) == null ? void 0 : d.call(l) }, h);
|
|
882
|
+
});
|
|
883
|
+
return /* @__PURE__ */ n.jsx(st, { client: ke, children: /* @__PURE__ */ n.jsxs(at, { children: [
|
|
884
|
+
/* @__PURE__ */ n.jsx(je, { children: r }),
|
|
885
|
+
/* @__PURE__ */ n.jsx(nt, { value: a, children: /* @__PURE__ */ n.jsx(rt, { components: s, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(Mt, { value: e, children: /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx(
|
|
886
|
+
we,
|
|
887
|
+
{
|
|
888
|
+
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
889
|
+
children: /* @__PURE__ */ n.jsx(
|
|
890
|
+
Et,
|
|
891
|
+
{
|
|
892
|
+
plugins: [
|
|
893
|
+
...t.plugins ?? [],
|
|
894
|
+
...t.authentication ? [t.authentication] : []
|
|
895
|
+
]
|
|
896
|
+
}
|
|
897
|
+
)
|
|
898
|
+
}
|
|
899
|
+
) }) }) }) }) })
|
|
900
|
+
] }) });
|
|
901
|
+
}, Ft = Pe(St);
|
|
902
|
+
Ft.displayName = "DevPortal";
|
|
890
903
|
export {
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
904
|
+
Ft as DevPortal,
|
|
905
|
+
Vt as Link,
|
|
906
|
+
Ut as useMDXComponents
|
|
894
907
|
};
|