zudoku 0.1.1-dev.43 → 0.1.1-dev.44
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/Layout.js +2 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Spinner.d.ts +3 -0
- package/dist/lib/components/Spinner.js +4 -0
- package/dist/lib/components/Spinner.js.map +1 -0
- package/dist/lib/components/navigation/SideNavigation.js +1 -1
- package/dist/lib/components/navigation/SideNavigation.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationWrapper.d.ts +1 -1
- package/dist/lib/components/navigation/SideNavigationWrapper.js +1 -1
- package/dist/lib/components/navigation/SideNavigationWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +2 -0
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +3 -2
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/lib/{util-CnHdxZvn.js → Spinner-Zry2k_pD.js} +278 -268
- package/lib/zudoku.components.js +91 -85
- package/lib/zudoku.plugins.js +127 -135
- package/package.json +1 -1
- package/src/lib/components/Layout.tsx +9 -3
- package/src/lib/components/Spinner.tsx +5 -0
- package/src/lib/components/navigation/SideNavigation.tsx +1 -1
- package/src/lib/components/navigation/SideNavigationWrapper.tsx +7 -3
- package/src/lib/plugins/openapi/OperationList.tsx +3 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +2 -1
package/lib/zudoku.components.js
CHANGED
|
@@ -13,11 +13,11 @@ var Y = (t, e, n, r) => ({
|
|
|
13
13
|
return o(t, e, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as We, h as Ue, Q as vt, n as D, m as Ce, M as gt, a as Pe, b as I, e as yt, c as xt, d as bt, f as St, o as Ae, r as Ne, g as Ot, i as Re, p as De, s as _t, j as Et, k as $, u as ge, l as a, N as fe, q as wt, t as jt, v as z, w as ye, x as Ct, y as Pt, z as At, P as xe, A as Nt, B as Rt, C as Dt, D as Mt, E as be, F as pe, G as Ge, H as Tt, I as ne, J as Lt, K as It, L as kt, O as qt, R as Qt, T as Vt, U as Ft, V as Ht, W as Kt, X as Bt, Y as zt, Z as Wt, _ as Ut, $ as Gt, a0 as $t } from "./
|
|
17
|
-
import {
|
|
16
|
+
import { S as We, h as Ue, Q as vt, n as D, m as Ce, M as gt, a as Pe, b as I, e as yt, c as xt, d as bt, f as St, o as Ae, r as Ne, g as Ot, i as Re, p as De, s as _t, j as Et, k as $, u as ge, l as a, N as fe, q as wt, t as jt, v as z, w as ye, x as Ct, y as Pt, z as At, P as xe, A as Nt, B as Rt, C as Dt, D as Mt, E as be, F as pe, G as Ge, H as Tt, I as ne, J as Lt, K as It, L as kt, O as qt, R as Qt, T as Vt, U as Ft, V as Ht, W as Kt, X as Bt, Y as zt, Z as Wt, _ as Ut, $ as Gt, a0 as $t, a1 as Xt } from "./Spinner-Zry2k_pD.js";
|
|
17
|
+
import { a3 as $n, a2 as Xn } from "./Spinner-Zry2k_pD.js";
|
|
18
18
|
import * as T from "react";
|
|
19
|
-
import X, { memo as $e, createContext as
|
|
20
|
-
var L, Ke,
|
|
19
|
+
import X, { memo as $e, createContext as Yt, useEffect as B, useRef as re, useState as Jt, forwardRef as Zt, Suspense as Xe, useMemo as te } from "react";
|
|
20
|
+
var L, Ke, en = (Ke = class extends We {
|
|
21
21
|
constructor(e = {}) {
|
|
22
22
|
super();
|
|
23
23
|
M(this, L);
|
|
@@ -89,7 +89,7 @@ var L, Ke, Zt = (Ke = class extends We {
|
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
}, L = new WeakMap(), Ke), R, G, Be,
|
|
92
|
+
}, L = new WeakMap(), Ke), R, G, Be, tn = (Be = class extends We {
|
|
93
93
|
constructor(e = {}) {
|
|
94
94
|
super();
|
|
95
95
|
M(this, R);
|
|
@@ -167,7 +167,7 @@ function J(t) {
|
|
|
167
167
|
var e;
|
|
168
168
|
return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function nn(t) {
|
|
171
171
|
return {
|
|
172
172
|
onFetch: (e, n) => {
|
|
173
173
|
const r = async () => {
|
|
@@ -203,7 +203,7 @@ function tn(t) {
|
|
|
203
203
|
};
|
|
204
204
|
let p;
|
|
205
205
|
if (i && c.length) {
|
|
206
|
-
const h = i === "backward", u = h ?
|
|
206
|
+
const h = i === "backward", u = h ? rn : Me, S = {
|
|
207
207
|
pages: c,
|
|
208
208
|
pageParams: v
|
|
209
209
|
}, m = u(s, S);
|
|
@@ -246,7 +246,7 @@ function Me(t, { pages: e, pageParams: n }) {
|
|
|
246
246
|
n
|
|
247
247
|
);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function rn(t, { pages: e, pageParams: n }) {
|
|
250
250
|
var r;
|
|
251
251
|
return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
|
|
252
252
|
t,
|
|
@@ -256,7 +256,7 @@ function nn(t, { pages: e, pageParams: n }) {
|
|
|
256
256
|
n
|
|
257
257
|
);
|
|
258
258
|
}
|
|
259
|
-
var O, k, q, V, F, Q, H, K, ze,
|
|
259
|
+
var O, k, q, V, F, Q, H, K, ze, sn = (ze = class {
|
|
260
260
|
constructor(t = {}) {
|
|
261
261
|
M(this, O);
|
|
262
262
|
M(this, k);
|
|
@@ -266,7 +266,7 @@ var O, k, q, V, F, Q, H, K, ze, rn = (ze = class {
|
|
|
266
266
|
M(this, Q);
|
|
267
267
|
M(this, H);
|
|
268
268
|
M(this, K);
|
|
269
|
-
P(this, O, t.queryCache || new
|
|
269
|
+
P(this, O, t.queryCache || new en()), P(this, k, t.mutationCache || new tn()), P(this, q, t.defaultOptions || {}), P(this, V, /* @__PURE__ */ new Map()), P(this, F, /* @__PURE__ */ new Map()), P(this, Q, 0);
|
|
270
270
|
}
|
|
271
271
|
mount() {
|
|
272
272
|
Y(this, Q)._++, o(this, Q) === 1 && (P(this, H, St.subscribe(async (t) => {
|
|
@@ -385,7 +385,7 @@ var O, k, q, V, F, Q, H, K, ze, rn = (ze = class {
|
|
|
385
385
|
return this.fetchQuery(t).then(I).catch(I);
|
|
386
386
|
}
|
|
387
387
|
fetchInfiniteQuery(t) {
|
|
388
|
-
return t.behavior =
|
|
388
|
+
return t.behavior = nn(t.pages), this.fetchQuery(t);
|
|
389
389
|
}
|
|
390
390
|
prefetchInfiniteQuery(t) {
|
|
391
391
|
return this.fetchInfiniteQuery(t).then(I).catch(I);
|
|
@@ -456,7 +456,7 @@ var O, k, q, V, F, Q, H, K, ze, rn = (ze = class {
|
|
|
456
456
|
clear() {
|
|
457
457
|
o(this, O).clear(), o(this, k).clear();
|
|
458
458
|
}
|
|
459
|
-
}, O = new WeakMap(), k = new WeakMap(), q = new WeakMap(), V = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), H = new WeakMap(), K = new WeakMap(), ze),
|
|
459
|
+
}, O = new WeakMap(), k = new WeakMap(), q = new WeakMap(), V = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), H = new WeakMap(), K = new WeakMap(), ze), an = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
460
460
|
const Te = (t) => {
|
|
461
461
|
let e;
|
|
462
462
|
const n = /* @__PURE__ */ new Set(), r = (l, d) => {
|
|
@@ -466,12 +466,12 @@ const Te = (t) => {
|
|
|
466
466
|
e = d ?? (typeof f != "object" || f === null) ? f : Object.assign({}, e, f), n.forEach((x) => x(e, p));
|
|
467
467
|
}
|
|
468
468
|
}, s = () => e, _ = { setState: r, getState: s, getInitialState: () => g, subscribe: (l) => (n.add(l), () => n.delete(l)), destroy: () => {
|
|
469
|
-
(
|
|
469
|
+
(an ? "production" : void 0) !== "production" && console.warn(
|
|
470
470
|
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
471
471
|
), n.clear();
|
|
472
472
|
} }, g = e = t(r, s, _);
|
|
473
473
|
return _;
|
|
474
|
-
},
|
|
474
|
+
}, on = (t) => t ? Te(t) : Te;
|
|
475
475
|
var me = { exports: {} }, le = {}, Z = { exports: {} }, ue = {};
|
|
476
476
|
/**
|
|
477
477
|
* @license React
|
|
@@ -483,7 +483,7 @@ var me = { exports: {} }, le = {}, Z = { exports: {} }, ue = {};
|
|
|
483
483
|
* LICENSE file in the root directory of this source tree.
|
|
484
484
|
*/
|
|
485
485
|
var Le;
|
|
486
|
-
function
|
|
486
|
+
function cn() {
|
|
487
487
|
if (Le) return ue;
|
|
488
488
|
Le = 1;
|
|
489
489
|
var t = X;
|
|
@@ -528,7 +528,7 @@ var de = {};
|
|
|
528
528
|
* LICENSE file in the root directory of this source tree.
|
|
529
529
|
*/
|
|
530
530
|
var Ie;
|
|
531
|
-
function
|
|
531
|
+
function ln() {
|
|
532
532
|
return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
|
|
533
533
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
534
534
|
var t = X, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -600,7 +600,7 @@ function cn() {
|
|
|
600
600
|
}
|
|
601
601
|
var ke;
|
|
602
602
|
function Ye() {
|
|
603
|
-
return ke || (ke = 1, process.env.NODE_ENV === "production" ? Z.exports =
|
|
603
|
+
return ke || (ke = 1, process.env.NODE_ENV === "production" ? Z.exports = cn() : Z.exports = ln()), Z.exports;
|
|
604
604
|
}
|
|
605
605
|
/**
|
|
606
606
|
* @license React
|
|
@@ -612,7 +612,7 @@ function Ye() {
|
|
|
612
612
|
* LICENSE file in the root directory of this source tree.
|
|
613
613
|
*/
|
|
614
614
|
var qe;
|
|
615
|
-
function
|
|
615
|
+
function un() {
|
|
616
616
|
if (qe) return le;
|
|
617
617
|
qe = 1;
|
|
618
618
|
var t = X, e = Ye();
|
|
@@ -663,7 +663,7 @@ var he = {};
|
|
|
663
663
|
* LICENSE file in the root directory of this source tree.
|
|
664
664
|
*/
|
|
665
665
|
var Qe;
|
|
666
|
-
function
|
|
666
|
+
function dn() {
|
|
667
667
|
return Qe || (Qe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
668
668
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
669
669
|
var t = X, e = Ye();
|
|
@@ -708,38 +708,38 @@ function un() {
|
|
|
708
708
|
he.useSyncExternalStoreWithSelector = g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
709
709
|
}()), he;
|
|
710
710
|
}
|
|
711
|
-
process.env.NODE_ENV === "production" ? me.exports =
|
|
712
|
-
var
|
|
713
|
-
const
|
|
711
|
+
process.env.NODE_ENV === "production" ? me.exports = un() : me.exports = dn();
|
|
712
|
+
var hn = me.exports;
|
|
713
|
+
const fn = /* @__PURE__ */ Et(hn);
|
|
714
714
|
var Je = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
715
|
-
const { useDebugValue:
|
|
715
|
+
const { useDebugValue: pn } = X, { useSyncExternalStoreWithSelector: mn } = fn;
|
|
716
716
|
let Ve = !1;
|
|
717
|
-
const
|
|
718
|
-
function
|
|
717
|
+
const vn = (t) => t;
|
|
718
|
+
function gn(t, e = vn, n) {
|
|
719
719
|
(Je ? "production" : void 0) !== "production" && n && !Ve && (console.warn(
|
|
720
720
|
"[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
|
|
721
721
|
), Ve = !0);
|
|
722
|
-
const r =
|
|
722
|
+
const r = mn(
|
|
723
723
|
t.subscribe,
|
|
724
724
|
t.getState,
|
|
725
725
|
t.getServerState || t.getInitialState,
|
|
726
726
|
e,
|
|
727
727
|
n
|
|
728
728
|
);
|
|
729
|
-
return
|
|
729
|
+
return pn(r), r;
|
|
730
730
|
}
|
|
731
731
|
const Fe = (t) => {
|
|
732
732
|
(Je ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
|
|
733
733
|
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
734
734
|
);
|
|
735
|
-
const e = typeof t == "function" ?
|
|
735
|
+
const e = typeof t == "function" ? on(t) : t, n = (r, s) => gn(e, r, s);
|
|
736
736
|
return Object.assign(n, e), n;
|
|
737
|
-
},
|
|
737
|
+
}, yn = (t) => t ? Fe(t) : Fe, Ze = (t) => "getRoutes" in t && typeof t.getRoutes == "function", xn = (t) => "initialize" in t && typeof t.initialize == "function", bn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", et = new sn(), ve = yn(
|
|
738
738
|
() => ({
|
|
739
739
|
isLoggedIn: !1
|
|
740
740
|
})
|
|
741
741
|
);
|
|
742
|
-
class
|
|
742
|
+
class Sn {
|
|
743
743
|
constructor(e) {
|
|
744
744
|
C(this, "plugins", []);
|
|
745
745
|
C(this, "navigationPlugins");
|
|
@@ -749,14 +749,14 @@ class bn {
|
|
|
749
749
|
C(this, "state");
|
|
750
750
|
C(this, "initialize", async () => {
|
|
751
751
|
var e;
|
|
752
|
-
this.plugins.filter(
|
|
752
|
+
this.plugins.filter(xn).forEach((n) => n.initialize(this)), (e = this.authentication) == null || e.initialize(this);
|
|
753
753
|
});
|
|
754
754
|
C(this, "setUserProfile", async (e) => ve.setState(e));
|
|
755
755
|
C(this, "invalidateCache", async (e) => {
|
|
756
756
|
et.invalidateQueries({ queryKey: e });
|
|
757
757
|
});
|
|
758
758
|
C(this, "getApiIdentities", async () => (await Promise.all(
|
|
759
|
-
this.plugins.filter(
|
|
759
|
+
this.plugins.filter(bn).map((n) => n.getIdentities(this))
|
|
760
760
|
)).flat());
|
|
761
761
|
C(this, "login", async () => {
|
|
762
762
|
if (!this.authentication)
|
|
@@ -804,7 +804,7 @@ const tt = $("ChevronRight", [
|
|
|
804
804
|
* This source code is licensed under the ISC license.
|
|
805
805
|
* See the LICENSE file in the root directory of this source tree.
|
|
806
806
|
*/
|
|
807
|
-
const
|
|
807
|
+
const On = $("ExternalLink", [
|
|
808
808
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
809
809
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
810
810
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -815,7 +815,7 @@ const Sn = $("ExternalLink", [
|
|
|
815
815
|
* This source code is licensed under the ISC license.
|
|
816
816
|
* See the LICENSE file in the root directory of this source tree.
|
|
817
817
|
*/
|
|
818
|
-
const
|
|
818
|
+
const _n = $("MoonStar", [
|
|
819
819
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
|
|
820
820
|
["path", { d: "M20 3v4", key: "1olli1" }],
|
|
821
821
|
["path", { d: "M22 5h-4", key: "1gvqau" }]
|
|
@@ -826,7 +826,7 @@ const On = $("MoonStar", [
|
|
|
826
826
|
* This source code is licensed under the ISC license.
|
|
827
827
|
* See the LICENSE file in the root directory of this source tree.
|
|
828
828
|
*/
|
|
829
|
-
const
|
|
829
|
+
const En = $("Search", [
|
|
830
830
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
831
831
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
832
832
|
]);
|
|
@@ -836,7 +836,7 @@ const _n = $("Search", [
|
|
|
836
836
|
* This source code is licensed under the ISC license.
|
|
837
837
|
* See the LICENSE file in the root directory of this source tree.
|
|
838
838
|
*/
|
|
839
|
-
const
|
|
839
|
+
const wn = $("Sun", [
|
|
840
840
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
841
841
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
842
842
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -846,7 +846,7 @@ const En = $("Sun", [
|
|
|
846
846
|
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
847
847
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
848
848
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
849
|
-
]),
|
|
849
|
+
]), jn = () => {
|
|
850
850
|
const { navigation: t } = ge();
|
|
851
851
|
return /* @__PURE__ */ a.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
852
852
|
fe,
|
|
@@ -860,7 +860,7 @@ const En = $("Sun", [
|
|
|
860
860
|
}
|
|
861
861
|
) }, e.label)) }) });
|
|
862
862
|
}, nt = $e(() => {
|
|
863
|
-
const [t, e] = jt(), { isLoggedIn: n, email: r } = ve(), { login: s, logout: i, meta: c } = ge(), v = t ?
|
|
863
|
+
const [t, e] = jt(), { isLoggedIn: n, email: r } = ve(), { login: s, logout: i, meta: c } = ge(), v = t ? _n : wn;
|
|
864
864
|
return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
865
865
|
/* @__PURE__ */ a.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: [
|
|
866
866
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
@@ -870,7 +870,7 @@ const En = $("Sun", [
|
|
|
870
870
|
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
871
871
|
/* @__PURE__ */ a.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ a.jsxs("button", { className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72", children: [
|
|
872
872
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
|
|
873
|
-
/* @__PURE__ */ a.jsx(
|
|
873
|
+
/* @__PURE__ */ a.jsx(En, { size: 14 }),
|
|
874
874
|
"Search"
|
|
875
875
|
] }),
|
|
876
876
|
/* @__PURE__ */ a.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" })
|
|
@@ -905,11 +905,11 @@ const En = $("Sun", [
|
|
|
905
905
|
] })
|
|
906
906
|
] })
|
|
907
907
|
] }),
|
|
908
|
-
/* @__PURE__ */ a.jsx(
|
|
908
|
+
/* @__PURE__ */ a.jsx(jn, {})
|
|
909
909
|
] }) });
|
|
910
910
|
}), rt = {
|
|
911
911
|
Header: nt
|
|
912
|
-
},
|
|
912
|
+
}, Cn = Yt(rt), Pn = Cn.Provider, An = () => {
|
|
913
913
|
const t = z(), { setActiveAnchor: e } = ye();
|
|
914
914
|
B(() => {
|
|
915
915
|
if (!t.hash) return;
|
|
@@ -926,13 +926,13 @@ const En = $("Sun", [
|
|
|
926
926
|
});
|
|
927
927
|
return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
|
|
928
928
|
}, [t.hash, e]);
|
|
929
|
-
},
|
|
929
|
+
}, Nn = () => {
|
|
930
930
|
const t = z(), e = re(t.pathname);
|
|
931
931
|
B(() => {
|
|
932
932
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
933
933
|
}, [t.pathname]);
|
|
934
934
|
};
|
|
935
|
-
var Se = "Collapsible", [
|
|
935
|
+
var Se = "Collapsible", [Rn, Wn] = Ct(Se), [Dn, Oe] = Rn(Se), st = T.forwardRef(
|
|
936
936
|
(t, e) => {
|
|
937
937
|
const {
|
|
938
938
|
__scopeCollapsible: n,
|
|
@@ -947,7 +947,7 @@ var Se = "Collapsible", [Nn, zn] = Ct(Se), [Rn, Oe] = Nn(Se), st = T.forwardRef(
|
|
|
947
947
|
onChange: c
|
|
948
948
|
});
|
|
949
949
|
return /* @__PURE__ */ a.jsx(
|
|
950
|
-
|
|
950
|
+
Dn,
|
|
951
951
|
{
|
|
952
952
|
scope: n,
|
|
953
953
|
disabled: i,
|
|
@@ -991,11 +991,11 @@ it.displayName = at;
|
|
|
991
991
|
var _e = "CollapsibleContent", ot = T.forwardRef(
|
|
992
992
|
(t, e) => {
|
|
993
993
|
const { forceMount: n, ...r } = t, s = Oe(_e, t.__scopeCollapsible);
|
|
994
|
-
return /* @__PURE__ */ a.jsx(Rt, { present: n || s.open, children: ({ present: i }) => /* @__PURE__ */ a.jsx(
|
|
994
|
+
return /* @__PURE__ */ a.jsx(Rt, { present: n || s.open, children: ({ present: i }) => /* @__PURE__ */ a.jsx(Mn, { ...r, ref: e, present: i }) });
|
|
995
995
|
}
|
|
996
996
|
);
|
|
997
997
|
ot.displayName = _e;
|
|
998
|
-
var
|
|
998
|
+
var Mn = T.forwardRef((t, e) => {
|
|
999
999
|
const { __scopeCollapsible: n, present: r, children: s, ...i } = t, c = Oe(_e, n), [v, _] = T.useState(r), g = T.useRef(null), l = Dt(e, g), d = T.useRef(0), f = d.current, p = T.useRef(0), x = p.current, y = c.open || v, b = T.useRef(y), A = T.useRef();
|
|
1000
1000
|
return T.useEffect(() => {
|
|
1001
1001
|
const E = requestAnimationFrame(() => b.current = !1);
|
|
@@ -1032,15 +1032,15 @@ function Ee(t) {
|
|
|
1032
1032
|
return t ? "open" : "closed";
|
|
1033
1033
|
}
|
|
1034
1034
|
var ct = st, lt = it, ut = ot;
|
|
1035
|
-
function
|
|
1035
|
+
function Tn(t) {
|
|
1036
1036
|
return !0;
|
|
1037
1037
|
}
|
|
1038
|
-
const
|
|
1038
|
+
const Ln = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
1039
1039
|
item: t,
|
|
1040
1040
|
defaultOpen: e,
|
|
1041
1041
|
path: n
|
|
1042
1042
|
}) => {
|
|
1043
|
-
const [r, s] =
|
|
1043
|
+
const [r, s] = Jt(e), i = z(), c = re(i.pathname);
|
|
1044
1044
|
return B(() => {
|
|
1045
1045
|
!r && c.current !== i.pathname && s(be(t, i.pathname, n)), c.current = i.pathname;
|
|
1046
1046
|
}, [r, t, n, i.pathname]), [r, s];
|
|
@@ -1058,7 +1058,7 @@ const Tn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
}
|
|
1061
|
-
),
|
|
1061
|
+
), In = "data-anchor", ht = ({
|
|
1062
1062
|
category: t,
|
|
1063
1063
|
item: e,
|
|
1064
1064
|
activeAnchor: n,
|
|
@@ -1086,14 +1086,14 @@ const Tn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1086
1086
|
rel: "noopener noreferrer",
|
|
1087
1087
|
children: [
|
|
1088
1088
|
e.label,
|
|
1089
|
-
/* @__PURE__ */ a.jsx(
|
|
1089
|
+
/* @__PURE__ */ a.jsx(On, { size: 14 })
|
|
1090
1090
|
]
|
|
1091
1091
|
}
|
|
1092
1092
|
) : /* @__PURE__ */ a.jsx(fe, { className: l, to: e.href, children: e.label });
|
|
1093
1093
|
}
|
|
1094
1094
|
const g = /* @__PURE__ */ a.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
1095
1095
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
1096
|
-
|
|
1096
|
+
Tn(e.icon) && /* @__PURE__ */ a.jsx(Ln, { name: e.icon, size: 16 }),
|
|
1097
1097
|
typeof e.label != "string" ? e.label : /* @__PURE__ */ a.jsx("span", { className: "truncate", children: e.label })
|
|
1098
1098
|
] }),
|
|
1099
1099
|
e.children && /* @__PURE__ */ a.jsx(
|
|
@@ -1138,7 +1138,7 @@ const Tn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1138
1138
|
Lt,
|
|
1139
1139
|
{
|
|
1140
1140
|
to: e.path,
|
|
1141
|
-
[
|
|
1141
|
+
[In]: e.path,
|
|
1142
1142
|
className: ee({
|
|
1143
1143
|
isActive: e.path.slice(1) === n,
|
|
1144
1144
|
isMuted: e.muted
|
|
@@ -1153,7 +1153,7 @@ const Tn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1153
1153
|
children: g
|
|
1154
1154
|
}
|
|
1155
1155
|
) });
|
|
1156
|
-
},
|
|
1156
|
+
}, kn = ({
|
|
1157
1157
|
category: t
|
|
1158
1158
|
}) => {
|
|
1159
1159
|
const { activeAnchor: e } = ye(), n = kt(), r = z(), s = t.collapsible ?? !0, [i, c] = dt({
|
|
@@ -1201,10 +1201,10 @@ const Tn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1201
1201
|
},
|
|
1202
1202
|
t.label
|
|
1203
1203
|
);
|
|
1204
|
-
},
|
|
1204
|
+
}, qn = Zt(({ children: t, className: e, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
|
|
1205
1205
|
"nav",
|
|
1206
1206
|
{
|
|
1207
|
-
"data-navigation": n,
|
|
1207
|
+
"data-navigation": String(n),
|
|
1208
1208
|
className: ne(
|
|
1209
1209
|
"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",
|
|
1210
1210
|
e
|
|
@@ -1212,21 +1212,21 @@ const Tn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1212
1212
|
ref: r,
|
|
1213
1213
|
children: t
|
|
1214
1214
|
}
|
|
1215
|
-
)),
|
|
1215
|
+
)), Qn = () => {
|
|
1216
1216
|
const t = re(null), e = qt();
|
|
1217
1217
|
return /* @__PURE__ */ a.jsx(
|
|
1218
|
-
|
|
1218
|
+
qn,
|
|
1219
1219
|
{
|
|
1220
1220
|
ref: t,
|
|
1221
|
-
|
|
1222
|
-
children: e.data.items.map((n) => /* @__PURE__ */ a.jsx(
|
|
1221
|
+
pushMainContent: e.data.items.length > 0,
|
|
1222
|
+
children: e.data.items.map((n) => /* @__PURE__ */ a.jsx(kn, { category: n }, n.label))
|
|
1223
1223
|
}
|
|
1224
1224
|
);
|
|
1225
1225
|
}, He = ({ children: t }) => {
|
|
1226
1226
|
const e = z(), { setActiveAnchor: n } = ye(), { meta: r, handleAuthenticationResponse: s } = ge();
|
|
1227
1227
|
B(() => {
|
|
1228
1228
|
s(e);
|
|
1229
|
-
}, [s, e]),
|
|
1229
|
+
}, [s, e]), An(), Nn();
|
|
1230
1230
|
const i = re(e.pathname);
|
|
1231
1231
|
return B(() => {
|
|
1232
1232
|
e.pathname !== i.current && n(""), i.current = e.pathname;
|
|
@@ -1237,27 +1237,33 @@ const Tn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1237
1237
|
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
|
|
1238
1238
|
] }),
|
|
1239
1239
|
/* @__PURE__ */ a.jsx(nt, {}),
|
|
1240
|
-
/* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12", children: /* @__PURE__ */ a.jsxs(
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
"
|
|
1244
|
-
|
|
1245
|
-
|
|
1240
|
+
/* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
|
|
1241
|
+
Xe,
|
|
1242
|
+
{
|
|
1243
|
+
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(Vt, {}) }),
|
|
1244
|
+
children: [
|
|
1245
|
+
/* @__PURE__ */ a.jsx(Qn, {}),
|
|
1246
|
+
/* @__PURE__ */ a.jsx(
|
|
1247
|
+
"main",
|
|
1248
|
+
{
|
|
1249
|
+
className: `dark:border-white/10 translate-x-0
|
|
1246
1250
|
lg:overflow-visible
|
|
1247
1251
|
lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
|
|
1248
1252
|
lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
+
children: t ?? /* @__PURE__ */ a.jsx(Ft, {})
|
|
1254
|
+
}
|
|
1255
|
+
)
|
|
1256
|
+
]
|
|
1257
|
+
}
|
|
1258
|
+
) })
|
|
1253
1259
|
] });
|
|
1254
1260
|
};
|
|
1255
|
-
function
|
|
1261
|
+
function Vn({ plugins: t }) {
|
|
1256
1262
|
const e = te(() => {
|
|
1257
1263
|
const n = (t ?? []).flatMap(
|
|
1258
1264
|
(r) => Ze(r) ? r.getRoutes() : []
|
|
1259
1265
|
);
|
|
1260
|
-
return
|
|
1266
|
+
return Ht([
|
|
1261
1267
|
{
|
|
1262
1268
|
path: "/",
|
|
1263
1269
|
element: /* @__PURE__ */ a.jsx(He, {}),
|
|
@@ -1266,30 +1272,30 @@ function Qn({ plugins: t }) {
|
|
|
1266
1272
|
}
|
|
1267
1273
|
]);
|
|
1268
1274
|
}, [t]);
|
|
1269
|
-
return /* @__PURE__ */ a.jsx(
|
|
1275
|
+
return /* @__PURE__ */ a.jsx(Kt, { router: e });
|
|
1270
1276
|
}
|
|
1271
|
-
const
|
|
1277
|
+
const Fn = (t) => {
|
|
1272
1278
|
const e = te(
|
|
1273
1279
|
() => ({ ...rt, ...t.overrides }),
|
|
1274
1280
|
[t.overrides]
|
|
1275
1281
|
), n = te(
|
|
1276
|
-
() => ({ ...
|
|
1282
|
+
() => ({ ...Bt, ...t.mdxComponents }),
|
|
1277
1283
|
[t.mdxComponents]
|
|
1278
|
-
), r = te(() => new
|
|
1284
|
+
), r = te(() => new Sn(t), [t]);
|
|
1279
1285
|
return B(() => {
|
|
1280
1286
|
r.initialize();
|
|
1281
|
-
}, [r]), /* @__PURE__ */ a.jsx(
|
|
1287
|
+
}, [r]), /* @__PURE__ */ a.jsx(zt, { client: et, children: /* @__PURE__ */ a.jsx(Wt, { children: /* @__PURE__ */ a.jsx(Ut, { value: r, children: /* @__PURE__ */ a.jsx(Gt, { components: n, children: /* @__PURE__ */ a.jsx($t, { children: /* @__PURE__ */ a.jsx(Pn, { value: e, children: /* @__PURE__ */ a.jsx(Xt, { children: /* @__PURE__ */ a.jsx(
|
|
1282
1288
|
Xe,
|
|
1283
1289
|
{
|
|
1284
1290
|
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
1285
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1291
|
+
children: /* @__PURE__ */ a.jsx(Vn, { plugins: t.plugins })
|
|
1286
1292
|
}
|
|
1287
1293
|
) }) }) }) }) }) }) });
|
|
1288
|
-
},
|
|
1289
|
-
|
|
1294
|
+
}, Hn = $e(Fn);
|
|
1295
|
+
Hn.displayName = "DevPortal";
|
|
1290
1296
|
export {
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1297
|
+
Hn as DevPortal,
|
|
1298
|
+
Ln as DynamicIcon,
|
|
1299
|
+
$n as Link,
|
|
1300
|
+
Xn as useMDXComponents
|
|
1295
1301
|
};
|