zudoku 0.3.0-dev.22 → 0.3.0-dev.24
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/authentication/Callback.js +1 -1
- package/dist/lib/authentication/Callback.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +1 -1
- package/dist/lib/components/DevPortal.d.ts +1 -1
- package/dist/lib/components/DevPortal.js +2 -2
- package/dist/lib/components/DevPortal.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/index.d.ts +10 -5
- package/dist/lib/components/index.js +8 -5
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +2 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/Toc.js +1 -1
- package/dist/lib/plugins/markdown/Toc.js.map +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js +1 -1
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.js +1 -1
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
- package/dist/lib/ui/Callout.js +1 -1
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/vite/config.js +5 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-api-keys.js +3 -4
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +3 -7
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +2 -3
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +0 -1
- package/dist/vite/plugin-config.js +11 -6
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-redirect.js +2 -5
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/lib/{AnchorLink-DIUlXlf0.js → AnchorLink-BzDjVML_.js} +183 -183
- package/lib/{DevPortalProvider-gzyAGqHT.js → DevPortalProvider-DssVwuLz.js} +2 -2
- package/lib/{Markdown-BjA7peYW.js → Markdown-BX9FqDM4.js} +3 -3
- package/lib/{MdxComponents-W-fE1ISO.js → MdxComponents-DiOAVA3z.js} +2 -2
- package/lib/{MdxPage-DQ7lZBzE.js → MdxPage-C9wmWulr.js} +21 -21
- package/lib/{OperationList-DuIBqFNA.js → OperationList-CmWB9QNy.js} +9 -9
- package/lib/{Route-B98Y2MdH.js → Route-QN8KKlcN.js} +2 -2
- package/lib/{Select-DczD5e29.js → Select-BK8C7kpB.js} +4 -4
- package/lib/{Spinner-CSoij67T.js → Spinner-CQiMiphN.js} +3 -3
- package/lib/{hook-CBXxHulF.js → hook-Rc146Fwy.js} +1 -1
- package/lib/{index-Cg6lXS1z.js → index-B5n-zpzS.js} +3 -3
- package/lib/{index-ClDDiRmC.js → index-B7upi2sn.js} +11 -11
- package/lib/{index-CKvOcM7w.js → index-Bf5lvKIp.js} +169 -169
- package/lib/{index-C7O9D7f6.js → index-DbU_G5RQ.js} +2 -2
- package/lib/{router-DibNxKUP.js → jsx-runtime-D7DwziLW.js} +2843 -2843
- package/lib/{util-CaVongBq.js → util-DnDPBx_j.js} +1 -1
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +107 -109
- package/lib/zudoku.plugin-api-keys.js +6 -6
- package/lib/zudoku.plugin-markdown.js +5 -5
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/lib/zudoku.plugin-redirect.js +2 -2
- package/package.json +1 -1
- package/src/lib/authentication/Callback.tsx +1 -1
- package/src/lib/authentication/providers/openid.tsx +1 -1
- package/src/lib/components/DevPortal.tsx +2 -2
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/components/index.ts +8 -5
- package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
- package/src/lib/plugins/markdown/Toc.tsx +1 -1
- package/src/lib/plugins/markdown/generateRoutes.tsx +1 -1
- package/src/lib/plugins/openapi/Route.tsx +1 -1
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/index.tsx +1 -1
- package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/createUrl.ts +1 -1
- package/src/lib/ui/Callout.tsx +2 -2
- package/src/lib/util/MdxComponents.tsx +0 -1
- package/dist/lib/components/Link.d.ts +0 -1
- package/dist/lib/components/Link.js +0 -2
- package/dist/lib/components/Link.js.map +0 -1
- package/dist/lib/core/helmet.d.ts +0 -4
- package/dist/lib/core/helmet.js +0 -5
- package/dist/lib/core/helmet.js.map +0 -1
- package/dist/lib/core/icons.d.ts +0 -1
- package/dist/lib/core/icons.js +0 -2
- package/dist/lib/core/icons.js.map +0 -1
- package/dist/lib/core/router.d.ts +0 -1
- package/dist/lib/core/router.js +0 -2
- package/dist/lib/core/router.js.map +0 -1
- package/src/lib/components/Link.tsx +0 -1
- package/src/lib/core/helmet.ts +0 -5
- package/src/lib/core/icons.tsx +0 -1
- package/src/lib/core/router.tsx +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var ue = Object.defineProperty;
|
|
2
2
|
var he = (e, t, n) => t in e ? ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var w = (e, t, n) => he(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { j as g } from "./
|
|
4
|
+
import { j as g } from "./jsx-runtime-D7DwziLW.js";
|
|
5
5
|
import { l as I } from "./loglevel-CA34MiFn.js";
|
|
6
6
|
import { useRef as de, useState as fe, useEffect as le } from "react";
|
|
7
|
-
import { a as pe } from "./index-
|
|
7
|
+
import { a as pe } from "./index-B7upi2sn.js";
|
|
8
8
|
import { u as M } from "./state-Ds_OxRHP.js";
|
|
9
9
|
let z;
|
|
10
10
|
var v, Z;
|
package/lib/zudoku.components.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ie = Object.defineProperty;
|
|
2
2
|
var se = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var g = (t, e, s) =>
|
|
5
|
+
var Se = (t, e, s) => e in t ? Ie(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
6
|
+
var g = (t, e, s) => Se(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
|
|
7
7
|
var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)), v = (t, e, s) => e.has(t) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), u = (t, e, s, a) => (ae(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
|
|
8
8
|
var E = (t, e, s, a) => ({
|
|
9
9
|
set _(r) {
|
|
@@ -13,29 +13,26 @@ var E = (t, e, s, a) => ({
|
|
|
13
13
|
return i(t, e, a);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import {
|
|
17
|
-
import { C as
|
|
18
|
-
import { j as n } from "./
|
|
19
|
-
import { S as me, h as ge, Q as
|
|
20
|
-
import { memo as ve, createContext as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { u as
|
|
25
|
-
import { u as
|
|
26
|
-
import {
|
|
27
|
-
import { L as ns } from "./index-CKvOcM7w.js";
|
|
28
|
-
import { u as q, O as ht } from "./index-ClDDiRmC.js";
|
|
29
|
-
import { R as be, T as je, C as Pe, S as ut } from "./Spinner-CSoij67T.js";
|
|
16
|
+
import { c as z, N as B, a as Ee, b as Re, d as Fe, R as He, L as Le } from "./index-Bf5lvKIp.js";
|
|
17
|
+
import { u as ze, a as $, M as Ke, T as _e, V as Be, C as Ve } from "./MdxComponents-DiOAVA3z.js";
|
|
18
|
+
import { j as n } from "./jsx-runtime-D7DwziLW.js";
|
|
19
|
+
import { S as me, h as ge, Q as $e, n as m, m as ne, a as re, b as j, e as Ue, c as We, d as Xe, f as Ge, o as ie, r as oe, g as Je, i as le, p as ce, s as Ye, u as U, j as Ze, k as et, l as tt, D as st } from "./DevPortalProvider-DssVwuLz.js";
|
|
20
|
+
import { memo as ve, createContext as at, useEffect as I, useRef as K, useState as nt, forwardRef as rt, Suspense as ye, useMemo as H, Fragment as it } from "react";
|
|
21
|
+
import { A as ot, H as xe, a as lt, M as ct, u as ht } from "./AnchorLink-BzDjVML_.js";
|
|
22
|
+
import { c as ut } from "./state-Ds_OxRHP.js";
|
|
23
|
+
import { M as dt } from "./index-DbU_G5RQ.js";
|
|
24
|
+
import { u as ft } from "./hook-Rc146Fwy.js";
|
|
25
|
+
import { u as T, O as pt } from "./index-B7upi2sn.js";
|
|
26
|
+
import { R as be, T as je, C as Pe, S as mt } from "./Spinner-CQiMiphN.js";
|
|
30
27
|
import { c as L } from "./cn-DpqTslo9.js";
|
|
31
|
-
import { c as
|
|
28
|
+
import { c as W, i as V, j as we, a as gt } from "./util-DnDPBx_j.js";
|
|
32
29
|
/**
|
|
33
30
|
* @license lucide-react v0.378.0 - ISC
|
|
34
31
|
*
|
|
35
32
|
* This source code is licensed under the ISC license.
|
|
36
33
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
34
|
*/
|
|
38
|
-
const Ne =
|
|
35
|
+
const Ne = z("ChevronRight", [
|
|
39
36
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
40
37
|
]);
|
|
41
38
|
/**
|
|
@@ -44,7 +41,7 @@ const Ne = K("ChevronRight", [
|
|
|
44
41
|
* This source code is licensed under the ISC license.
|
|
45
42
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
43
|
*/
|
|
47
|
-
const
|
|
44
|
+
const vt = z("ExternalLink", [
|
|
48
45
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
49
46
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
50
47
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -55,7 +52,7 @@ const ft = K("ExternalLink", [
|
|
|
55
52
|
* This source code is licensed under the ISC license.
|
|
56
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
57
54
|
*/
|
|
58
|
-
const
|
|
55
|
+
const yt = z("MoonStar", [
|
|
59
56
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
60
57
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
61
58
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -66,7 +63,7 @@ const pt = K("MoonStar", [
|
|
|
66
63
|
* This source code is licensed under the ISC license.
|
|
67
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
68
65
|
*/
|
|
69
|
-
const
|
|
66
|
+
const xt = z("Sun", [
|
|
70
67
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
71
68
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
72
69
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -77,7 +74,7 @@ const mt = K("Sun", [
|
|
|
77
74
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
78
75
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
79
76
|
]);
|
|
80
|
-
var x, de,
|
|
77
|
+
var x, de, bt = (de = class extends me {
|
|
81
78
|
constructor(e = {}) {
|
|
82
79
|
super();
|
|
83
80
|
v(this, x);
|
|
@@ -86,7 +83,7 @@ var x, de, gt = (de = class extends me {
|
|
|
86
83
|
build(e, s, a) {
|
|
87
84
|
const r = s.queryKey, o = s.queryHash ?? ge(r, s);
|
|
88
85
|
let l = this.get(o);
|
|
89
|
-
return l || (l = new
|
|
86
|
+
return l || (l = new $e({
|
|
90
87
|
cache: this,
|
|
91
88
|
queryKey: r,
|
|
92
89
|
queryHash: o,
|
|
@@ -149,17 +146,17 @@ var x, de, gt = (de = class extends me {
|
|
|
149
146
|
});
|
|
150
147
|
});
|
|
151
148
|
}
|
|
152
|
-
}, x = new WeakMap(), de), p,
|
|
149
|
+
}, x = new WeakMap(), de), p, q, fe, jt = (fe = class extends me {
|
|
153
150
|
constructor(e = {}) {
|
|
154
151
|
super();
|
|
155
152
|
v(this, p);
|
|
156
|
-
v(this,
|
|
157
|
-
this.config = e, u(this, p, /* @__PURE__ */ new Map()), u(this,
|
|
153
|
+
v(this, q);
|
|
154
|
+
this.config = e, u(this, p, /* @__PURE__ */ new Map()), u(this, q, Date.now());
|
|
158
155
|
}
|
|
159
156
|
build(e, s, a) {
|
|
160
|
-
const r = new
|
|
157
|
+
const r = new dt({
|
|
161
158
|
mutationCache: this,
|
|
162
|
-
mutationId: ++E(this,
|
|
159
|
+
mutationId: ++E(this, q)._,
|
|
163
160
|
options: e.defaultMutationOptions(s),
|
|
164
161
|
state: a
|
|
165
162
|
});
|
|
@@ -222,17 +219,17 @@ var x, de, gt = (de = class extends me {
|
|
|
222
219
|
)
|
|
223
220
|
);
|
|
224
221
|
}
|
|
225
|
-
}, p = new WeakMap(),
|
|
222
|
+
}, p = new WeakMap(), q = new WeakMap(), fe);
|
|
226
223
|
function R(t) {
|
|
227
224
|
var e;
|
|
228
225
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
229
226
|
}
|
|
230
|
-
function
|
|
227
|
+
function Pt(t) {
|
|
231
228
|
return {
|
|
232
229
|
onFetch: (e, s) => {
|
|
233
230
|
const a = async () => {
|
|
234
|
-
var
|
|
235
|
-
const r = e.options, o = (J = (G = (
|
|
231
|
+
var X, G, J, Y, Z;
|
|
232
|
+
const r = e.options, o = (J = (G = (X = e.fetchOptions) == null ? void 0 : X.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: [] };
|
|
236
233
|
let b = !1;
|
|
237
234
|
const f = (y) => {
|
|
238
235
|
Object.defineProperty(y, "signal", {
|
|
@@ -241,7 +238,7 @@ function yt(t) {
|
|
|
241
238
|
b = !0;
|
|
242
239
|
}), e.signal)
|
|
243
240
|
});
|
|
244
|
-
}, Te =
|
|
241
|
+
}, Te = Ue(e.options, e.fetchOptions), _ = async (y, P, k) => {
|
|
245
242
|
if (b)
|
|
246
243
|
return Promise.reject();
|
|
247
244
|
if (P == null && y.pages.length)
|
|
@@ -249,13 +246,13 @@ function yt(t) {
|
|
|
249
246
|
const S = {
|
|
250
247
|
queryKey: e.queryKey,
|
|
251
248
|
pageParam: P,
|
|
252
|
-
direction:
|
|
249
|
+
direction: k ? "backward" : "forward",
|
|
253
250
|
meta: e.options.meta
|
|
254
251
|
};
|
|
255
252
|
f(S);
|
|
256
253
|
const qe = await Te(
|
|
257
254
|
S
|
|
258
|
-
), { maxPages: ee } = e.options, te =
|
|
255
|
+
), { maxPages: ee } = e.options, te = k ? We : Xe;
|
|
259
256
|
return {
|
|
260
257
|
pages: te(y.pages, qe, ee),
|
|
261
258
|
pageParams: te(y.pageParams, P, ee)
|
|
@@ -263,11 +260,11 @@ function yt(t) {
|
|
|
263
260
|
};
|
|
264
261
|
let M;
|
|
265
262
|
if (o && l.length) {
|
|
266
|
-
const y = o === "backward", P = y ?
|
|
263
|
+
const y = o === "backward", P = y ? wt : he, k = {
|
|
267
264
|
pages: l,
|
|
268
265
|
pageParams: h
|
|
269
|
-
}, S = P(r,
|
|
270
|
-
M = await _(
|
|
266
|
+
}, S = P(r, k);
|
|
267
|
+
M = await _(k, S, y);
|
|
271
268
|
} else {
|
|
272
269
|
M = await _(
|
|
273
270
|
d,
|
|
@@ -275,8 +272,8 @@ function yt(t) {
|
|
|
275
272
|
);
|
|
276
273
|
const y = t ?? l.length;
|
|
277
274
|
for (let P = 1; P < y; P++) {
|
|
278
|
-
const
|
|
279
|
-
M = await _(M,
|
|
275
|
+
const k = he(r, M);
|
|
276
|
+
M = await _(M, k);
|
|
280
277
|
}
|
|
281
278
|
}
|
|
282
279
|
return M;
|
|
@@ -306,7 +303,7 @@ function he(t, { pages: e, pageParams: s }) {
|
|
|
306
303
|
s
|
|
307
304
|
);
|
|
308
305
|
}
|
|
309
|
-
function
|
|
306
|
+
function wt(t, { pages: e, pageParams: s }) {
|
|
310
307
|
var a;
|
|
311
308
|
return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
|
|
312
309
|
t,
|
|
@@ -316,28 +313,28 @@ function xt(t, { pages: e, pageParams: s }) {
|
|
|
316
313
|
s
|
|
317
314
|
);
|
|
318
315
|
}
|
|
319
|
-
var c, w, N, O, A,
|
|
316
|
+
var c, w, N, O, A, C, Q, D, pe, Nt = (pe = class {
|
|
320
317
|
constructor(t = {}) {
|
|
321
318
|
v(this, c);
|
|
322
319
|
v(this, w);
|
|
323
320
|
v(this, N);
|
|
324
321
|
v(this, O);
|
|
325
322
|
v(this, A);
|
|
326
|
-
v(this,
|
|
323
|
+
v(this, C);
|
|
327
324
|
v(this, Q);
|
|
328
|
-
v(this,
|
|
329
|
-
u(this, c, t.queryCache || new
|
|
325
|
+
v(this, D);
|
|
326
|
+
u(this, c, t.queryCache || new bt()), u(this, w, t.mutationCache || new jt()), u(this, N, t.defaultOptions || {}), u(this, O, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, C, 0);
|
|
330
327
|
}
|
|
331
328
|
mount() {
|
|
332
|
-
E(this,
|
|
329
|
+
E(this, C)._++, i(this, C) === 1 && (u(this, Q, Ge.subscribe(async (t) => {
|
|
333
330
|
t && (await this.resumePausedMutations(), i(this, c).onFocus());
|
|
334
|
-
})), u(this,
|
|
331
|
+
})), u(this, D, ie.subscribe(async (t) => {
|
|
335
332
|
t && (await this.resumePausedMutations(), i(this, c).onOnline());
|
|
336
333
|
})));
|
|
337
334
|
}
|
|
338
335
|
unmount() {
|
|
339
336
|
var t, e;
|
|
340
|
-
E(this,
|
|
337
|
+
E(this, C)._--, i(this, C) === 0 && ((t = i(this, Q)) == null || t.call(this), u(this, Q, void 0), (e = i(this, D)) == null || e.call(this), u(this, D, void 0));
|
|
341
338
|
}
|
|
342
339
|
isFetching(t) {
|
|
343
340
|
return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -368,7 +365,7 @@ var c, w, N, O, A, k, Q, T, pe, bt = (pe = class {
|
|
|
368
365
|
setQueryData(t, e, s) {
|
|
369
366
|
const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
|
|
370
367
|
a.queryHash
|
|
371
|
-
), o = r == null ? void 0 : r.state.data, l =
|
|
368
|
+
), o = r == null ? void 0 : r.state.data, l = Je(e, o);
|
|
372
369
|
if (l !== void 0)
|
|
373
370
|
return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
|
|
374
371
|
}
|
|
@@ -445,7 +442,7 @@ var c, w, N, O, A, k, Q, T, pe, bt = (pe = class {
|
|
|
445
442
|
return this.fetchQuery(t).then(j).catch(j);
|
|
446
443
|
}
|
|
447
444
|
fetchInfiniteQuery(t) {
|
|
448
|
-
return t.behavior =
|
|
445
|
+
return t.behavior = Pt(t.pages), this.fetchQuery(t);
|
|
449
446
|
}
|
|
450
447
|
prefetchInfiniteQuery(t) {
|
|
451
448
|
return this.fetchInfiniteQuery(t).then(j).catch(j);
|
|
@@ -503,7 +500,7 @@ var c, w, N, O, A, k, Q, T, pe, bt = (pe = class {
|
|
|
503
500
|
return e.queryHash || (e.queryHash = ge(
|
|
504
501
|
e.queryKey,
|
|
505
502
|
e
|
|
506
|
-
)), 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 ===
|
|
503
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === Ye && (e.enabled = !1), e;
|
|
507
504
|
}
|
|
508
505
|
defaultMutationOptions(t) {
|
|
509
506
|
return t != null && t._defaulted ? t : {
|
|
@@ -516,9 +513,9 @@ var c, w, N, O, A, k, Q, T, pe, bt = (pe = class {
|
|
|
516
513
|
clear() {
|
|
517
514
|
i(this, c).clear(), i(this, w).clear();
|
|
518
515
|
}
|
|
519
|
-
}, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), O = new WeakMap(), A = new WeakMap(),
|
|
520
|
-
const
|
|
521
|
-
class
|
|
516
|
+
}, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), O = new WeakMap(), A = new WeakMap(), C = new WeakMap(), Q = new WeakMap(), D = new WeakMap(), pe);
|
|
517
|
+
const Ce = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Ct = (t) => "initialize" in t && typeof t.initialize == "function", kt = (t) => "getHead" in t && typeof t.getHead == "function", Mt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", ke = new Nt(), Ot = ut(() => ({}));
|
|
518
|
+
class At {
|
|
522
519
|
constructor(e) {
|
|
523
520
|
g(this, "plugins", []);
|
|
524
521
|
g(this, "navigationPlugins");
|
|
@@ -529,17 +526,17 @@ class kt {
|
|
|
529
526
|
g(this, "state");
|
|
530
527
|
g(this, "initialize", async () => {
|
|
531
528
|
await Promise.all([
|
|
532
|
-
this.plugins.filter(
|
|
529
|
+
this.plugins.filter(Ct).map((e) => {
|
|
533
530
|
var s;
|
|
534
531
|
return (s = e.initialize) == null ? void 0 : s.call(e, this);
|
|
535
532
|
})
|
|
536
533
|
]);
|
|
537
534
|
});
|
|
538
535
|
g(this, "invalidateCache", async (e) => {
|
|
539
|
-
await
|
|
536
|
+
await ke.invalidateQueries({ queryKey: e });
|
|
540
537
|
});
|
|
541
538
|
g(this, "getApiIdentities", async () => (await Promise.all(
|
|
542
|
-
this.plugins.filter(
|
|
539
|
+
this.plugins.filter(Mt).map((s) => s.getIdentities(this))
|
|
543
540
|
)).flat());
|
|
544
541
|
g(this, "getNavigation", async (e) => (await Promise.all(
|
|
545
542
|
this.navigationPlugins.map(
|
|
@@ -549,7 +546,7 @@ class kt {
|
|
|
549
546
|
}
|
|
550
547
|
)
|
|
551
548
|
)).flatMap((a) => a ?? []));
|
|
552
|
-
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(
|
|
549
|
+
this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ce), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = Ot;
|
|
553
550
|
}
|
|
554
551
|
async signRequest(e) {
|
|
555
552
|
if (!this.authentication)
|
|
@@ -558,12 +555,12 @@ class kt {
|
|
|
558
555
|
return e.headers.set("Authorization", `Bearer ${s}`), e;
|
|
559
556
|
}
|
|
560
557
|
}
|
|
561
|
-
const
|
|
562
|
-
const { navigation: t } =
|
|
558
|
+
const Qt = () => {
|
|
559
|
+
const { navigation: t } = U();
|
|
563
560
|
return /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
564
561
|
B,
|
|
565
562
|
{
|
|
566
|
-
className: ({ isActive: s }) =>
|
|
563
|
+
className: ({ isActive: s }) => Ee(
|
|
567
564
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
568
565
|
s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
|
|
569
566
|
),
|
|
@@ -572,7 +569,7 @@ const Ct = () => {
|
|
|
572
569
|
}
|
|
573
570
|
) }, e.label)) }) });
|
|
574
571
|
}, Me = ve(function() {
|
|
575
|
-
const [e, s] =
|
|
572
|
+
const [e, s] = ze(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = ft(), { page: d } = U(), b = e ? yt : xt;
|
|
576
573
|
return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
577
574
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
|
|
578
575
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
@@ -611,12 +608,12 @@ const Ct = () => {
|
|
|
611
608
|
] })
|
|
612
609
|
] })
|
|
613
610
|
] }),
|
|
614
|
-
/* @__PURE__ */ n.jsx(
|
|
611
|
+
/* @__PURE__ */ n.jsx(Qt, {})
|
|
615
612
|
] }) });
|
|
616
613
|
}), Oe = {
|
|
617
614
|
Header: Me
|
|
618
|
-
},
|
|
619
|
-
const t =
|
|
615
|
+
}, Dt = at(Oe), Tt = Dt.Provider, qt = () => {
|
|
616
|
+
const t = T(), { setActiveAnchor: e } = $();
|
|
620
617
|
I(() => {
|
|
621
618
|
if (!t.hash) return;
|
|
622
619
|
const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
|
|
@@ -632,8 +629,8 @@ const Ct = () => {
|
|
|
632
629
|
});
|
|
633
630
|
return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
634
631
|
}, [t.hash, e]);
|
|
635
|
-
},
|
|
636
|
-
const t =
|
|
632
|
+
}, It = () => {
|
|
633
|
+
const t = T(), e = K(t.pathname);
|
|
637
634
|
I(() => {
|
|
638
635
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
639
636
|
}, [t.pathname]);
|
|
@@ -642,11 +639,11 @@ const Ct = () => {
|
|
|
642
639
|
defaultOpen: e,
|
|
643
640
|
path: s
|
|
644
641
|
}) => {
|
|
645
|
-
const [a, r] =
|
|
642
|
+
const [a, r] = nt(e), o = T(), l = K(o.pathname);
|
|
646
643
|
return I(() => {
|
|
647
|
-
!a && l.current !== o.pathname && r(
|
|
644
|
+
!a && l.current !== o.pathname && r(W(t, o.pathname, s)), l.current = o.pathname;
|
|
648
645
|
}, [a, t, s, o.pathname]), [a, r];
|
|
649
|
-
}, F =
|
|
646
|
+
}, F = Re(
|
|
650
647
|
"flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
|
|
651
648
|
{
|
|
652
649
|
variants: {
|
|
@@ -660,19 +657,19 @@ const Ct = () => {
|
|
|
660
657
|
}
|
|
661
658
|
}
|
|
662
659
|
}
|
|
663
|
-
),
|
|
660
|
+
), St = "data-anchor", Qe = ({
|
|
664
661
|
category: t,
|
|
665
662
|
item: e,
|
|
666
663
|
activeAnchor: s,
|
|
667
664
|
currentTopNavItem: a,
|
|
668
665
|
basePath: r = ""
|
|
669
666
|
}) => {
|
|
670
|
-
const o = V(e) ? we(r, e.path) : "", l =
|
|
667
|
+
const o = V(e) ? we(r, e.path) : "", l = T(), [h, d] = Ae({
|
|
671
668
|
item: e,
|
|
672
669
|
path: o,
|
|
673
|
-
defaultOpen: () =>
|
|
670
|
+
defaultOpen: () => W(e, l.pathname, o)
|
|
674
671
|
});
|
|
675
|
-
if (
|
|
672
|
+
if (gt(e)) {
|
|
676
673
|
const f = L(
|
|
677
674
|
"flex items-center gap-2",
|
|
678
675
|
F({
|
|
@@ -688,7 +685,7 @@ const Ct = () => {
|
|
|
688
685
|
rel: "noopener noreferrer",
|
|
689
686
|
children: [
|
|
690
687
|
e.label,
|
|
691
|
-
/* @__PURE__ */ n.jsx(
|
|
688
|
+
/* @__PURE__ */ n.jsx(vt, { size: 14 })
|
|
692
689
|
]
|
|
693
690
|
}
|
|
694
691
|
) : /* @__PURE__ */ n.jsx(B, { className: f, to: e.href, children: e.label });
|
|
@@ -737,10 +734,10 @@ const Ct = () => {
|
|
|
737
734
|
]
|
|
738
735
|
}
|
|
739
736
|
) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
|
|
740
|
-
|
|
737
|
+
ot,
|
|
741
738
|
{
|
|
742
739
|
to: e.path,
|
|
743
|
-
[
|
|
740
|
+
[St]: e.path,
|
|
744
741
|
className: F({
|
|
745
742
|
isActive: e.path.slice(1) === s,
|
|
746
743
|
isMuted: e.muted
|
|
@@ -755,13 +752,13 @@ const Ct = () => {
|
|
|
755
752
|
children: b
|
|
756
753
|
}
|
|
757
754
|
) });
|
|
758
|
-
},
|
|
755
|
+
}, Et = ({
|
|
759
756
|
category: t
|
|
760
757
|
}) => {
|
|
761
|
-
const { activeAnchor: e } =
|
|
758
|
+
const { activeAnchor: e } = $(), s = Ze(), a = T(), r = t.collapsible ?? !0, [o, l] = Ae({
|
|
762
759
|
item: t,
|
|
763
760
|
path: (s == null ? void 0 : s.path) ?? "",
|
|
764
|
-
defaultOpen: () => !r || t.expanded ||
|
|
761
|
+
defaultOpen: () => !r || t.expanded || W(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
|
|
765
762
|
});
|
|
766
763
|
return /* @__PURE__ */ n.jsxs(
|
|
767
764
|
be,
|
|
@@ -803,7 +800,7 @@ const Ct = () => {
|
|
|
803
800
|
},
|
|
804
801
|
t.label
|
|
805
802
|
);
|
|
806
|
-
},
|
|
803
|
+
}, Rt = rt(function({ children: e, className: s, pushMainContent: a }, r) {
|
|
807
804
|
return /* @__PURE__ */ n.jsx(
|
|
808
805
|
"nav",
|
|
809
806
|
{
|
|
@@ -816,20 +813,20 @@ const Ct = () => {
|
|
|
816
813
|
children: e
|
|
817
814
|
}
|
|
818
815
|
);
|
|
819
|
-
}),
|
|
820
|
-
const t =
|
|
816
|
+
}), Ft = () => {
|
|
817
|
+
const t = K(null), e = et();
|
|
821
818
|
return /* @__PURE__ */ n.jsx(
|
|
822
|
-
|
|
819
|
+
Rt,
|
|
823
820
|
{
|
|
824
821
|
ref: t,
|
|
825
822
|
pushMainContent: e.data.items.length > 0,
|
|
826
|
-
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(
|
|
823
|
+
children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Et, { category: s }, s.label))
|
|
827
824
|
}
|
|
828
825
|
);
|
|
829
826
|
}, ue = ({ children: t }) => {
|
|
830
|
-
const e =
|
|
831
|
-
|
|
832
|
-
const r =
|
|
827
|
+
const e = T(), { setActiveAnchor: s } = $(), { meta: a } = U();
|
|
828
|
+
qt(), It();
|
|
829
|
+
const r = K(e.pathname);
|
|
833
830
|
return I(() => {
|
|
834
831
|
e.pathname !== r.current && s(""), r.current = e.pathname;
|
|
835
832
|
}, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
@@ -842,9 +839,9 @@ const Ct = () => {
|
|
|
842
839
|
/* @__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(
|
|
843
840
|
ye,
|
|
844
841
|
{
|
|
845
|
-
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(
|
|
842
|
+
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(mt, {}) }),
|
|
846
843
|
children: [
|
|
847
|
-
/* @__PURE__ */ n.jsx(
|
|
844
|
+
/* @__PURE__ */ n.jsx(Ft, {}),
|
|
848
845
|
/* @__PURE__ */ n.jsx(
|
|
849
846
|
"main",
|
|
850
847
|
{
|
|
@@ -852,7 +849,7 @@ const Ct = () => {
|
|
|
852
849
|
lg:overflow-visible
|
|
853
850
|
lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
|
|
854
851
|
lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
|
|
855
|
-
children: t ?? /* @__PURE__ */ n.jsx(
|
|
852
|
+
children: t ?? /* @__PURE__ */ n.jsx(pt, {})
|
|
856
853
|
}
|
|
857
854
|
)
|
|
858
855
|
]
|
|
@@ -860,12 +857,12 @@ const Ct = () => {
|
|
|
860
857
|
) })
|
|
861
858
|
] });
|
|
862
859
|
};
|
|
863
|
-
function
|
|
860
|
+
function Ht({ plugins: t }) {
|
|
864
861
|
const e = H(() => {
|
|
865
862
|
const s = (t ?? []).flatMap(
|
|
866
|
-
(a) =>
|
|
863
|
+
(a) => Ce(a) ? a.getRoutes() : []
|
|
867
864
|
);
|
|
868
|
-
return
|
|
865
|
+
return Fe([
|
|
869
866
|
{
|
|
870
867
|
path: "/",
|
|
871
868
|
element: /* @__PURE__ */ n.jsx(ue, {}),
|
|
@@ -874,32 +871,32 @@ function St({ plugins: t }) {
|
|
|
874
871
|
}
|
|
875
872
|
]);
|
|
876
873
|
}, [t]);
|
|
877
|
-
return /* @__PURE__ */ n.jsx(
|
|
874
|
+
return /* @__PURE__ */ n.jsx(He, { router: e });
|
|
878
875
|
}
|
|
879
|
-
const
|
|
876
|
+
const Lt = (t) => {
|
|
880
877
|
var o;
|
|
881
878
|
const e = H(
|
|
882
879
|
() => ({ ...Oe, ...t.overrides }),
|
|
883
880
|
[t.overrides]
|
|
884
881
|
), s = H(
|
|
885
|
-
() => ({ ...
|
|
882
|
+
() => ({ ...Ke, ...t.mdxComponents }),
|
|
886
883
|
[t.mdxComponents]
|
|
887
|
-
), a = H(() => new
|
|
884
|
+
), a = H(() => new At(t), [t]);
|
|
888
885
|
I(() => {
|
|
889
886
|
a.initialize();
|
|
890
887
|
}, [a]);
|
|
891
|
-
const r = (o = t.plugins) == null ? void 0 : o.filter(
|
|
888
|
+
const r = (o = t.plugins) == null ? void 0 : o.filter(kt).map((l, h) => {
|
|
892
889
|
var d;
|
|
893
|
-
return /* @__PURE__ */ n.jsx(
|
|
890
|
+
return /* @__PURE__ */ n.jsx(it, { children: (d = l.getHead) == null ? void 0 : d.call(l) }, h);
|
|
894
891
|
});
|
|
895
|
-
return /* @__PURE__ */ n.jsx(
|
|
892
|
+
return /* @__PURE__ */ n.jsx(tt, { client: ke, children: /* @__PURE__ */ n.jsxs(lt, { children: [
|
|
896
893
|
/* @__PURE__ */ n.jsx(xe, { children: r }),
|
|
897
|
-
/* @__PURE__ */ n.jsx(
|
|
894
|
+
/* @__PURE__ */ n.jsx(st, { value: a, children: /* @__PURE__ */ n.jsx(ct, { components: s, children: /* @__PURE__ */ n.jsx(_e, { children: /* @__PURE__ */ n.jsx(Tt, { value: e, children: /* @__PURE__ */ n.jsx(Be, { children: /* @__PURE__ */ n.jsx(
|
|
898
895
|
ye,
|
|
899
896
|
{
|
|
900
897
|
fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
901
898
|
children: /* @__PURE__ */ n.jsx(
|
|
902
|
-
|
|
899
|
+
Ht,
|
|
903
900
|
{
|
|
904
901
|
plugins: [
|
|
905
902
|
...t.plugins ?? [],
|
|
@@ -910,11 +907,12 @@ const Et = (t) => {
|
|
|
910
907
|
}
|
|
911
908
|
) }) }) }) }) })
|
|
912
909
|
] }) });
|
|
913
|
-
},
|
|
914
|
-
|
|
910
|
+
}, De = ve(Lt);
|
|
911
|
+
De.displayName = "DevPortal";
|
|
912
|
+
const ts = ht, ss = Ve, as = De, ns = Le;
|
|
915
913
|
export {
|
|
916
|
-
|
|
917
|
-
|
|
914
|
+
ss as Callout,
|
|
915
|
+
as as DevPortal,
|
|
918
916
|
ns as Link,
|
|
919
|
-
|
|
917
|
+
ts as useMDXComponents
|
|
920
918
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as e } from "./
|
|
1
|
+
import { j as e } from "./jsx-runtime-D7DwziLW.js";
|
|
2
2
|
import { l as g } from "./loglevel-CA34MiFn.js";
|
|
3
|
-
import { u as j } from "./hook-
|
|
4
|
-
import { u as v, a as m, S as b, b as w, c as N, d as k, e as K, f as p, B as o } from "./Select-
|
|
5
|
-
import { c as l, L as x } from "./index-
|
|
6
|
-
import { u as h, q as S, t as E } from "./DevPortalProvider-
|
|
3
|
+
import { u as j } from "./hook-Rc146Fwy.js";
|
|
4
|
+
import { u as v, a as m, S as b, b as w, c as N, d as k, e as K, f as p, B as o } from "./Select-BK8C7kpB.js";
|
|
5
|
+
import { c as l, L as x } from "./index-Bf5lvKIp.js";
|
|
6
|
+
import { u as h, q as S, t as E } from "./DevPortalProvider-DssVwuLz.js";
|
|
7
7
|
import * as A from "react";
|
|
8
8
|
import { useState as C } from "react";
|
|
9
9
|
import { c as P } from "./cn-DpqTslo9.js";
|
|
10
|
-
import { a as D, O as I, b as O } from "./index-
|
|
10
|
+
import { a as D, O as I, b as O } from "./index-B7upi2sn.js";
|
|
11
11
|
/**
|
|
12
12
|
* @license lucide-react v0.378.0 - ISC
|
|
13
13
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as s } from "./
|
|
2
|
-
import { j as x } from "./DevPortalProvider-
|
|
3
|
-
import { t as f, i as d } from "./util-
|
|
4
|
-
import { N as g } from "./index-
|
|
1
|
+
import { j as s } from "./jsx-runtime-D7DwziLW.js";
|
|
2
|
+
import { j as x } from "./DevPortalProvider-DssVwuLz.js";
|
|
3
|
+
import { t as f, i as d } from "./util-DnDPBx_j.js";
|
|
4
|
+
import { N as g } from "./index-B7upi2sn.js";
|
|
5
5
|
const h = (t, e) => {
|
|
6
6
|
const n = Object.entries(t).flatMap(
|
|
7
7
|
([r, p]) => {
|
|
@@ -11,7 +11,7 @@ const h = (t, e) => {
|
|
|
11
11
|
return {
|
|
12
12
|
path: i.at(-1) === "index" ? i.slice(0, -1).join("/") : a,
|
|
13
13
|
lazy: async () => {
|
|
14
|
-
const { MdxPage: u } = await import("./MdxPage-
|
|
14
|
+
const { MdxPage: u } = await import("./MdxPage-C9wmWulr.js"), { default: c, ...l } = await p();
|
|
15
15
|
return {
|
|
16
16
|
element: /* @__PURE__ */ s.jsx(
|
|
17
17
|
u,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as s } from "./
|
|
2
|
-
import { N as i } from "./index-
|
|
1
|
+
import { j as s } from "./jsx-runtime-D7DwziLW.js";
|
|
2
|
+
import { N as i } from "./index-B7upi2sn.js";
|
|
3
3
|
const p = (t) => ({
|
|
4
4
|
getRoutes: () => t.redirects.map(({ from: e, to: r, replace: o }) => ({
|
|
5
5
|
path: e,
|