zudoku 0.3.0-dev.60 → 0.3.0-dev.62
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/config/config.d.ts +6 -0
- package/dist/config/validators/validate.d.ts +30 -0
- package/dist/config/validators/validate.js +6 -0
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +2 -5
- package/dist/lib/authentication/AuthenticationPlugin.js +12 -12
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +3 -5
- package/dist/lib/authentication/components/SignIn.d.ts +1 -0
- package/dist/lib/authentication/components/{Logout.js → SignIn.js} +3 -3
- package/dist/lib/authentication/components/{Logout.js.map → SignIn.js.map} +1 -1
- package/dist/lib/authentication/components/SignOut.d.ts +1 -0
- package/dist/lib/authentication/components/SignOut.js +10 -0
- package/dist/lib/authentication/components/SignOut.js.map +1 -0
- package/dist/lib/authentication/components/SignUp.d.ts +1 -0
- package/dist/lib/authentication/components/{Login.js → SignUp.js} +3 -3
- package/dist/lib/authentication/components/SignUp.js.map +1 -0
- package/dist/lib/authentication/hook.js +2 -2
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +2 -2
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +17 -6
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +10 -5
- package/dist/lib/authentication/providers/openid.js +24 -6
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/navigation/SideNavigationItem.d.ts +0 -4
- package/dist/lib/components/navigation/SideNavigationItem.js +2 -2
- package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -1
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/lib/AuthenticationPlugin-RvXALgvS.js +52 -0
- package/lib/AuthenticationPlugin-RvXALgvS.js.map +1 -0
- package/lib/{hook-Q_gAL2NZ.js → hook-BY1NP0kj.js} +9 -9
- package/lib/{hook-Q_gAL2NZ.js.map → hook-BY1NP0kj.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +9 -7
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +48 -35
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +472 -456
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +64 -64
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +1 -1
- package/package.json +1 -1
- package/src/lib/authentication/AuthenticationPlugin.tsx +12 -10
- package/src/lib/authentication/authentication.ts +3 -5
- package/src/lib/authentication/components/{Login.tsx → SignIn.tsx} +2 -2
- package/src/lib/authentication/components/SignOut.tsx +11 -0
- package/src/lib/authentication/components/{Logout.tsx → SignUp.tsx} +2 -2
- package/src/lib/authentication/hook.ts +2 -2
- package/src/lib/authentication/providers/auth0.tsx +4 -2
- package/src/lib/authentication/providers/clerk.tsx +22 -7
- package/src/lib/authentication/providers/openid.tsx +33 -5
- package/src/lib/components/Header.tsx +27 -23
- package/src/lib/components/navigation/SideNavigationItem.tsx +2 -2
- package/src/lib/core/DevPortalContext.ts +2 -0
- package/dist/lib/authentication/components/Login.d.ts +0 -1
- package/dist/lib/authentication/components/Login.js.map +0 -1
- package/dist/lib/authentication/components/Logout.d.ts +0 -1
- package/dist/lib/authentication/routes.d.ts +0 -5
- package/dist/lib/authentication/routes.js +0 -12
- package/dist/lib/authentication/routes.js.map +0 -1
- package/lib/AuthenticationPlugin-CG6Bw32B.js +0 -46
- package/lib/AuthenticationPlugin-CG6Bw32B.js.map +0 -1
- package/src/lib/authentication/routes.tsx +0 -10
package/lib/zudoku.components.js
CHANGED
|
@@ -13,16 +13,16 @@ var Me = (t, e, n, r) => ({
|
|
|
13
13
|
return f(t, e, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { H as Ct, a as
|
|
17
|
-
import { c as pe, d as ur, R as lr, a as P, C as dr, N as
|
|
18
|
-
import { E as Pt, u as yr, R as wr } from "./hook-
|
|
16
|
+
import { H as Ct, a as Be, M as sr, A as ir, u as cr } from "./AnchorLink-Bj1hwDuD.js";
|
|
17
|
+
import { c as pe, d as ur, R as lr, a as P, C as dr, N as Fe, b as hr, u as pr, L as Re, M as fr, T as mr, V as gr, e as Qe, f as vr, g as xr } from "./Markdown-BjRJKl_E.js";
|
|
18
|
+
import { E as Pt, u as yr, R as wr } from "./hook-BY1NP0kj.js";
|
|
19
19
|
import { j as o, d as Mr, u as br, a as se, O as Cr } from "./jsx-runtime-BIr0WBt_.js";
|
|
20
|
-
import { M as Pr, c as Rr, a as Rt, b as _t, A as _r, u as fe, h as Er, d as y, e as Sr, F as Nr, D as jr, C as Dr, P as ie, f as Ue, g as Ir, i as Et, R as Ar, S as Or, j as Tr, k as kr, l as St, m as Fr, n as
|
|
20
|
+
import { M as Pr, c as Rr, a as Rt, b as _t, A as _r, u as fe, h as Er, d as y, e as Sr, F as Nr, D as jr, C as Dr, P as ie, f as Ue, g as Ir, i as Et, R as Ar, S as Or, j as Tr, k as kr, l as St, m as Fr, n as _e, o as Nt, B as Le } from "./Combination-lAFQBd6U.js";
|
|
21
21
|
import * as c from "react";
|
|
22
|
-
import Lr, { StrictMode as jt, createContext as Dt, Component as Kr, createElement as lt, isValidElement as $r, memo as It, useMemo as be, useContext as Br, useState as At, useEffect as oe, Fragment as Qr, useRef as
|
|
22
|
+
import Lr, { StrictMode as jt, createContext as Dt, Component as Kr, createElement as lt, isValidElement as $r, memo as It, useMemo as be, useContext as Br, useState as At, useEffect as oe, Fragment as Qr, useRef as Ne, forwardRef as Ur, Suspense as Gr } from "react";
|
|
23
23
|
import { g as Ge } from "./_commonjsHelpers-BVfed4GL.js";
|
|
24
24
|
import { r as Hr } from "./router-BiRCp01d.js";
|
|
25
|
-
import { S as
|
|
25
|
+
import { S as Ke, c as Ot, P as je, R as qr, I as zr, a as Tt, T as kt, C as Ft, b as Vr } from "./Spinner-Ciq_pWU7.js";
|
|
26
26
|
import { S as Lt, h as Kt, Q as Yr, n as E, m as dt, a as ht, b as $, e as Xr, c as Wr, d as Jr, f as Zr, o as pt, r as ft, g as ea, i as mt, p as gt, s as ta, u as He, j as na, D as ra, k as qe, l as vt, q as $t, t as aa, v as oa, w as sa } from "./DevPortalProvider-BBhQ8kgI.js";
|
|
27
27
|
/**
|
|
28
28
|
* @license lucide-react v0.378.0 - ISC
|
|
@@ -356,7 +356,7 @@ me.createStaticRouter = ba;
|
|
|
356
356
|
const Sa = ({
|
|
357
357
|
router: t,
|
|
358
358
|
hydrate: e = !1
|
|
359
|
-
}) => /* @__PURE__ */ o.jsx(jt, { children: /* @__PURE__ */ o.jsx(Ct, { children: /* @__PURE__ */ o.jsx(
|
|
359
|
+
}) => /* @__PURE__ */ o.jsx(jt, { children: /* @__PURE__ */ o.jsx(Ct, { children: /* @__PURE__ */ o.jsx(Ke.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ o.jsx(lr, { router: t }) }) }) }), Na = ({
|
|
360
360
|
router: t,
|
|
361
361
|
context: e,
|
|
362
362
|
helmetContext: n
|
|
@@ -801,13 +801,13 @@ var w, G, H, te, ne, q, re, ae, bt, Oa = (bt = class {
|
|
|
801
801
|
f(this, w).clear(), f(this, G).clear();
|
|
802
802
|
}
|
|
803
803
|
}, w = new WeakMap(), G = new WeakMap(), H = new WeakMap(), te = new WeakMap(), ne = new WeakMap(), q = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), bt);
|
|
804
|
-
const Ta = Dt(null),
|
|
804
|
+
const Ta = Dt(null), ke = {
|
|
805
805
|
didCatch: !1,
|
|
806
806
|
error: null
|
|
807
807
|
};
|
|
808
808
|
class ka extends Kr {
|
|
809
809
|
constructor(e) {
|
|
810
|
-
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
810
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ke;
|
|
811
811
|
}
|
|
812
812
|
static getDerivedStateFromError(e) {
|
|
813
813
|
return {
|
|
@@ -825,7 +825,7 @@ class ka extends Kr {
|
|
|
825
825
|
(n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
|
|
826
826
|
args: s,
|
|
827
827
|
reason: "imperative-api"
|
|
828
|
-
}), this.setState(
|
|
828
|
+
}), this.setState(ke);
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
componentDidCatch(e, n) {
|
|
@@ -844,7 +844,7 @@ class ka extends Kr {
|
|
|
844
844
|
next: a,
|
|
845
845
|
prev: e.resetKeys,
|
|
846
846
|
reason: "keys"
|
|
847
|
-
}), this.setState(
|
|
847
|
+
}), this.setState(ke);
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
850
|
render() {
|
|
@@ -928,9 +928,9 @@ class Ua {
|
|
|
928
928
|
function Ga({ error: t, resetErrorBoundary: e }) {
|
|
929
929
|
return /* @__PURE__ */ o.jsx(Pt, { error: t });
|
|
930
930
|
}
|
|
931
|
-
var
|
|
932
|
-
ltr: [
|
|
933
|
-
rtl: [
|
|
931
|
+
var $e = ["Enter", " "], Ha = ["ArrowDown", "PageUp", "Home"], Ht = ["ArrowUp", "PageDown", "End"], qa = [...Ha, ...Ht], za = {
|
|
932
|
+
ltr: [...$e, "ArrowRight"],
|
|
933
|
+
rtl: [...$e, "ArrowLeft"]
|
|
934
934
|
}, Va = {
|
|
935
935
|
ltr: ["ArrowLeft"],
|
|
936
936
|
rtl: ["ArrowRight"]
|
|
@@ -981,13 +981,13 @@ var Xe = "MenuPortal", [Za, Xt] = W(Xe, {
|
|
|
981
981
|
forceMount: void 0
|
|
982
982
|
}), Wt = (t) => {
|
|
983
983
|
const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = z(Xe, e);
|
|
984
|
-
return /* @__PURE__ */ o.jsx(Za, { scope: e, forceMount: n, children: /* @__PURE__ */ o.jsx(
|
|
984
|
+
return /* @__PURE__ */ o.jsx(Za, { scope: e, forceMount: n, children: /* @__PURE__ */ o.jsx(je, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Fr, { asChild: !0, container: a, children: r }) }) });
|
|
985
985
|
};
|
|
986
986
|
Wt.displayName = Xe;
|
|
987
987
|
var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
988
988
|
(t, e) => {
|
|
989
989
|
const n = Xt(D, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = z(D, t.__scopeMenu), i = xe(D, t.__scopeMenu);
|
|
990
|
-
return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
|
|
990
|
+
return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(je, { present: r || s.open, children: /* @__PURE__ */ o.jsx(le.Slot, { scope: t.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(to, { ...a, ref: e }) : /* @__PURE__ */ o.jsx(no, { ...a, ref: e }) }) }) });
|
|
991
991
|
}
|
|
992
992
|
), to = c.forwardRef(
|
|
993
993
|
(t, e) => {
|
|
@@ -1042,9 +1042,9 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1042
1042
|
onDismiss: v,
|
|
1043
1043
|
disableOutsideScroll: x,
|
|
1044
1044
|
...R
|
|
1045
|
-
} = t, F = z(D, n), Q = xe(D, n), V = ve(n), M = zt(n), I = Ya(n), [L, Y] = c.useState(null), J = c.useRef(null), ye = fe(e, J, F.onContentChange), X = c.useRef(0), we = c.useRef(""), er = c.useRef(0),
|
|
1045
|
+
} = t, F = z(D, n), Q = xe(D, n), V = ve(n), M = zt(n), I = Ya(n), [L, Y] = c.useState(null), J = c.useRef(null), ye = fe(e, J, F.onContentChange), X = c.useRef(0), we = c.useRef(""), er = c.useRef(0), Ie = c.useRef(null), at = c.useRef("right"), Ae = c.useRef(0), tr = x ? Ar : c.Fragment, nr = x ? { as: Or, allowPinchZoom: !0 } : void 0, rr = (g) => {
|
|
1046
1046
|
var ee, st;
|
|
1047
|
-
const S = we.current + g, A = I().filter((K) => !K.disabled), U = document.activeElement,
|
|
1047
|
+
const S = we.current + g, A = I().filter((K) => !K.disabled), U = document.activeElement, Oe = (ee = A.find((K) => K.ref.current === U)) == null ? void 0 : ee.textValue, Te = A.map((K) => K.textValue), ot = mo(Te, S, Oe), ce = (st = A.find((K) => K.textValue === ot)) == null ? void 0 : st.ref.current;
|
|
1048
1048
|
(function K(it) {
|
|
1049
1049
|
we.current = it, window.clearTimeout(X.current), it !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
|
|
1050
1050
|
})(S), ce && setTimeout(() => ce.focus());
|
|
@@ -1052,7 +1052,7 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1052
1052
|
c.useEffect(() => () => window.clearTimeout(X.current), []), Sr();
|
|
1053
1053
|
const Z = c.useCallback((g) => {
|
|
1054
1054
|
var A, U;
|
|
1055
|
-
return at.current === ((A =
|
|
1055
|
+
return at.current === ((A = Ie.current) == null ? void 0 : A.side) && vo(g, (U = Ie.current) == null ? void 0 : U.area);
|
|
1056
1056
|
}, []);
|
|
1057
1057
|
return /* @__PURE__ */ o.jsx(
|
|
1058
1058
|
eo,
|
|
@@ -1080,7 +1080,7 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1080
1080
|
),
|
|
1081
1081
|
pointerGraceTimerRef: er,
|
|
1082
1082
|
onPointerGraceIntentChange: c.useCallback((g) => {
|
|
1083
|
-
|
|
1083
|
+
Ie.current = g;
|
|
1084
1084
|
}, []),
|
|
1085
1085
|
children: /* @__PURE__ */ o.jsx(tr, { ...nr, children: /* @__PURE__ */ o.jsx(
|
|
1086
1086
|
Nr,
|
|
@@ -1129,10 +1129,10 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1129
1129
|
ref: ye,
|
|
1130
1130
|
style: { outline: "none", ...R.style },
|
|
1131
1131
|
onKeyDown: y(R.onKeyDown, (g) => {
|
|
1132
|
-
const A = g.target.closest("[data-radix-menu-content]") === g.currentTarget, U = g.ctrlKey || g.altKey || g.metaKey,
|
|
1133
|
-
A && (g.key === "Tab" && g.preventDefault(), !U &&
|
|
1134
|
-
const
|
|
1135
|
-
if (g.target !==
|
|
1132
|
+
const A = g.target.closest("[data-radix-menu-content]") === g.currentTarget, U = g.ctrlKey || g.altKey || g.metaKey, Oe = g.key.length === 1;
|
|
1133
|
+
A && (g.key === "Tab" && g.preventDefault(), !U && Oe && rr(g.key));
|
|
1134
|
+
const Te = J.current;
|
|
1135
|
+
if (g.target !== Te || !qa.includes(g.key)) return;
|
|
1136
1136
|
g.preventDefault();
|
|
1137
1137
|
const ce = I().filter((ee) => !ee.disabled).map((ee) => ee.ref.current);
|
|
1138
1138
|
Ht.includes(g.key) && ce.reverse(), po(ce);
|
|
@@ -1143,10 +1143,10 @@ var D = "MenuContent", [eo, We] = W(D), Jt = c.forwardRef(
|
|
|
1143
1143
|
onPointerMove: y(
|
|
1144
1144
|
t.onPointerMove,
|
|
1145
1145
|
de((g) => {
|
|
1146
|
-
const S = g.target, A =
|
|
1146
|
+
const S = g.target, A = Ae.current !== g.clientX;
|
|
1147
1147
|
if (g.currentTarget.contains(S) && A) {
|
|
1148
|
-
const U = g.clientX >
|
|
1149
|
-
at.current = U,
|
|
1148
|
+
const U = g.clientX > Ae.current ? "right" : "left";
|
|
1149
|
+
at.current = U, Ae.current = g.clientX;
|
|
1150
1150
|
}
|
|
1151
1151
|
})
|
|
1152
1152
|
)
|
|
@@ -1177,9 +1177,9 @@ var ao = "MenuLabel", Zt = c.forwardRef(
|
|
|
1177
1177
|
}
|
|
1178
1178
|
);
|
|
1179
1179
|
Zt.displayName = ao;
|
|
1180
|
-
var
|
|
1180
|
+
var Ee = "MenuItem", yt = "menu.itemSelect", De = c.forwardRef(
|
|
1181
1181
|
(t, e) => {
|
|
1182
|
-
const { disabled: n = !1, onSelect: r, ...a } = t, s = c.useRef(null), i = xe(
|
|
1182
|
+
const { disabled: n = !1, onSelect: r, ...a } = t, s = c.useRef(null), i = xe(Ee, t.__scopeMenu), u = We(Ee, t.__scopeMenu), d = fe(e, s), h = c.useRef(!1), p = () => {
|
|
1183
1183
|
const l = s.current;
|
|
1184
1184
|
if (!n && l) {
|
|
1185
1185
|
const m = new CustomEvent(yt, { bubbles: !0, cancelable: !0 });
|
|
@@ -1203,16 +1203,16 @@ var _e = "MenuItem", yt = "menu.itemSelect", je = c.forwardRef(
|
|
|
1203
1203
|
}),
|
|
1204
1204
|
onKeyDown: y(t.onKeyDown, (l) => {
|
|
1205
1205
|
const m = u.searchRef.current !== "";
|
|
1206
|
-
n || m && l.key === " " ||
|
|
1206
|
+
n || m && l.key === " " || $e.includes(l.key) && (l.currentTarget.click(), l.preventDefault());
|
|
1207
1207
|
})
|
|
1208
1208
|
}
|
|
1209
1209
|
);
|
|
1210
1210
|
}
|
|
1211
1211
|
);
|
|
1212
|
-
|
|
1212
|
+
De.displayName = Ee;
|
|
1213
1213
|
var en = c.forwardRef(
|
|
1214
1214
|
(t, e) => {
|
|
1215
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = We(
|
|
1215
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = We(Ee, n), u = zt(n), d = c.useRef(null), h = fe(e, d), [p, l] = c.useState(!1), [m, v] = c.useState("");
|
|
1216
1216
|
return c.useEffect(() => {
|
|
1217
1217
|
const x = d.current;
|
|
1218
1218
|
x && v((x.textContent ?? "").trim());
|
|
@@ -1252,16 +1252,16 @@ var en = c.forwardRef(
|
|
|
1252
1252
|
(t, e) => {
|
|
1253
1253
|
const { checked: n = !1, onCheckedChange: r, ...a } = t;
|
|
1254
1254
|
return /* @__PURE__ */ o.jsx(sn, { scope: t.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
|
|
1255
|
-
|
|
1255
|
+
De,
|
|
1256
1256
|
{
|
|
1257
1257
|
role: "menuitemcheckbox",
|
|
1258
|
-
"aria-checked":
|
|
1258
|
+
"aria-checked": Se(n) ? "mixed" : n,
|
|
1259
1259
|
...a,
|
|
1260
1260
|
ref: e,
|
|
1261
1261
|
"data-state": nt(n),
|
|
1262
1262
|
onSelect: y(
|
|
1263
1263
|
a.onSelect,
|
|
1264
|
-
() => r == null ? void 0 : r(
|
|
1264
|
+
() => r == null ? void 0 : r(Se(n) ? !0 : !n),
|
|
1265
1265
|
{ checkForDefaultPrevented: !1 }
|
|
1266
1266
|
)
|
|
1267
1267
|
}
|
|
@@ -1284,7 +1284,7 @@ var an = "MenuRadioItem", on = c.forwardRef(
|
|
|
1284
1284
|
(t, e) => {
|
|
1285
1285
|
const { value: n, ...r } = t, a = io(an, t.__scopeMenu), s = n === a.value;
|
|
1286
1286
|
return /* @__PURE__ */ o.jsx(sn, { scope: t.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
|
|
1287
|
-
|
|
1287
|
+
De,
|
|
1288
1288
|
{
|
|
1289
1289
|
role: "menuitemradio",
|
|
1290
1290
|
"aria-checked": s,
|
|
@@ -1311,9 +1311,9 @@ var et = "MenuItemIndicator", [sn, co] = W(
|
|
|
1311
1311
|
(t, e) => {
|
|
1312
1312
|
const { __scopeMenu: n, forceMount: r, ...a } = t, s = co(et, n);
|
|
1313
1313
|
return /* @__PURE__ */ o.jsx(
|
|
1314
|
-
|
|
1314
|
+
je,
|
|
1315
1315
|
{
|
|
1316
|
-
present: r ||
|
|
1316
|
+
present: r || Se(s.checked) || s.checked === !0,
|
|
1317
1317
|
children: /* @__PURE__ */ o.jsx(
|
|
1318
1318
|
ie.span,
|
|
1319
1319
|
{
|
|
@@ -1363,8 +1363,8 @@ var tt = "MenuSub", [ho, dn] = W(tt), hn = (t) => {
|
|
|
1363
1363
|
ho,
|
|
1364
1364
|
{
|
|
1365
1365
|
scope: e,
|
|
1366
|
-
contentId:
|
|
1367
|
-
triggerId:
|
|
1366
|
+
contentId: _e(),
|
|
1367
|
+
triggerId: _e(),
|
|
1368
1368
|
trigger: u,
|
|
1369
1369
|
onTriggerChange: d,
|
|
1370
1370
|
children: n
|
|
@@ -1448,7 +1448,7 @@ pn.displayName = ue;
|
|
|
1448
1448
|
var fn = "MenuSubContent", mn = c.forwardRef(
|
|
1449
1449
|
(t, e) => {
|
|
1450
1450
|
const n = Xt(D, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = z(D, t.__scopeMenu), i = xe(D, t.__scopeMenu), u = dn(fn, t.__scopeMenu), d = c.useRef(null), h = fe(e, d);
|
|
1451
|
-
return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
|
|
1451
|
+
return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(je, { present: r || s.open, children: /* @__PURE__ */ o.jsx(le.Slot, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
|
|
1452
1452
|
Je,
|
|
1453
1453
|
{
|
|
1454
1454
|
id: u.contentId,
|
|
@@ -1484,11 +1484,11 @@ mn.displayName = fn;
|
|
|
1484
1484
|
function gn(t) {
|
|
1485
1485
|
return t ? "open" : "closed";
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function Se(t) {
|
|
1488
1488
|
return t === "indeterminate";
|
|
1489
1489
|
}
|
|
1490
1490
|
function nt(t) {
|
|
1491
|
-
return
|
|
1491
|
+
return Se(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
1492
1492
|
}
|
|
1493
1493
|
function po(t) {
|
|
1494
1494
|
const e = document.activeElement;
|
|
@@ -1524,7 +1524,7 @@ function vo(t, e) {
|
|
|
1524
1524
|
function de(t) {
|
|
1525
1525
|
return (e) => e.pointerType === "mouse" ? t(e) : void 0;
|
|
1526
1526
|
}
|
|
1527
|
-
var xo = Yt, yo = Ye, wo = Wt, Mo = Jt, bo = Ze, Co = Zt, Po =
|
|
1527
|
+
var xo = Yt, yo = Ye, wo = Wt, Mo = Jt, bo = Ze, Co = Zt, Po = De, Ro = tn, _o = rn, Eo = on, So = cn, No = un, jo = ln, Do = hn, Io = pn, Ao = mn, rt = "DropdownMenu", [Oo, js] = Rt(
|
|
1528
1528
|
rt,
|
|
1529
1529
|
[qt]
|
|
1530
1530
|
), C = qt(), [To, vn] = Oo(rt), xn = (t) => {
|
|
@@ -1545,9 +1545,9 @@ var xo = Yt, yo = Ye, wo = Wt, Mo = Jt, bo = Ze, Co = Zt, Po = je, Ro = tn, _o =
|
|
|
1545
1545
|
To,
|
|
1546
1546
|
{
|
|
1547
1547
|
scope: e,
|
|
1548
|
-
triggerId:
|
|
1548
|
+
triggerId: _e(),
|
|
1549
1549
|
triggerRef: h,
|
|
1550
|
-
contentId:
|
|
1550
|
+
contentId: _e(),
|
|
1551
1551
|
open: p,
|
|
1552
1552
|
onOpenChange: l,
|
|
1553
1553
|
onOpenToggle: c.useCallback(() => l((m) => !m), [l]),
|
|
@@ -1821,7 +1821,7 @@ zn.displayName = Kn.displayName;
|
|
|
1821
1821
|
const is = () => {
|
|
1822
1822
|
const { navigation: t } = He();
|
|
1823
1823
|
return t.length <= 1 ? null : /* @__PURE__ */ o.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
|
|
1824
|
-
|
|
1824
|
+
Fe,
|
|
1825
1825
|
{
|
|
1826
1826
|
className: ({ isActive: n }) => hr(
|
|
1827
1827
|
"block py-3.5 font-medium -mb-px border-b-2",
|
|
@@ -1837,11 +1837,11 @@ const is = () => {
|
|
|
1837
1837
|
// eslint-disable-next-line react/no-array-index-key
|
|
1838
1838
|
/* @__PURE__ */ o.jsx(Vn, { item: e }, n)
|
|
1839
1839
|
)) }) })
|
|
1840
|
-
] }, t.label) : /* @__PURE__ */ o.jsx(
|
|
1840
|
+
] }, t.label) : /* @__PURE__ */ o.jsx(Re, { to: t.path ?? "", children: /* @__PURE__ */ o.jsx(Hn, { children: t.label }, t.label) }), Yn = It(function() {
|
|
1841
1841
|
const [e, n] = pr(), { isAuthenticated: r, profile: a, isAuthEnabled: s, login: i, logout: u } = yr(), d = He(), { page: h, plugins: p } = d, l = e ? ua : la;
|
|
1842
1842
|
return /* @__PURE__ */ o.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
1843
1843
|
/* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
|
|
1844
|
-
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1844
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Re, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
1845
1845
|
(h == null ? void 0 : h.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1846
1846
|
/* @__PURE__ */ o.jsx(
|
|
1847
1847
|
"img",
|
|
@@ -1865,12 +1865,12 @@ const is = () => {
|
|
|
1865
1865
|
)
|
|
1866
1866
|
] }),
|
|
1867
1867
|
/* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: h == null ? void 0 : h.pageTitle })
|
|
1868
|
-
] }),
|
|
1868
|
+
] }) }) }),
|
|
1869
1869
|
/* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
|
|
1870
1870
|
/* @__PURE__ */ o.jsx("div", { className: "w-full max-w-prose" }),
|
|
1871
1871
|
/* @__PURE__ */ o.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
|
|
1872
|
-
s && !r ? /* @__PURE__ */ o.jsx(
|
|
1873
|
-
/* @__PURE__ */ o.jsx(ns, { asChild: !0, children: /* @__PURE__ */ o.jsx(
|
|
1872
|
+
s && !r ? /* @__PURE__ */ o.jsx(Le, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ o.jsx(Re, { to: "/signin", children: "Login" }) }) : /* @__PURE__ */ o.jsxs(ts, { children: [
|
|
1873
|
+
/* @__PURE__ */ o.jsx(ns, { asChild: !0, children: /* @__PURE__ */ o.jsx(Le, { variant: "ghost", children: a != null && a.email ? `${a.email}` : "My Account" }) }),
|
|
1874
1874
|
/* @__PURE__ */ o.jsxs(Gn, { className: "w-56", children: [
|
|
1875
1875
|
/* @__PURE__ */ o.jsx(qn, { children: "My Account" }),
|
|
1876
1876
|
/* @__PURE__ */ o.jsx(zn, {}),
|
|
@@ -1908,7 +1908,7 @@ const is = () => {
|
|
|
1908
1908
|
return { ...fr, ...(v = e.mdx) == null ? void 0 : v.components };
|
|
1909
1909
|
},
|
|
1910
1910
|
[(l = e.mdx) == null ? void 0 : l.components]
|
|
1911
|
-
), { stagger: a } = Br(
|
|
1911
|
+
), { stagger: a } = Br(Ke), [s, i] = At(!1), u = be(
|
|
1912
1912
|
() => s ? { stagger: !0 } : { stagger: a },
|
|
1913
1913
|
[a, s]
|
|
1914
1914
|
), d = br();
|
|
@@ -1924,8 +1924,8 @@ const is = () => {
|
|
|
1924
1924
|
return /* @__PURE__ */ o.jsx(Qr, { children: (R = v.getHead) == null ? void 0 : R.call(v) }, x);
|
|
1925
1925
|
});
|
|
1926
1926
|
return /* @__PURE__ */ o.jsxs(na, { client: Gt, children: [
|
|
1927
|
-
/* @__PURE__ */ o.jsx(
|
|
1928
|
-
/* @__PURE__ */ o.jsx(
|
|
1927
|
+
/* @__PURE__ */ o.jsx(Be, { children: p }),
|
|
1928
|
+
/* @__PURE__ */ o.jsx(Ke.Provider, { value: u, children: /* @__PURE__ */ o.jsx(ra, { value: h, children: /* @__PURE__ */ o.jsx(sr, { components: r, children: /* @__PURE__ */ o.jsx(mr, { children: /* @__PURE__ */ o.jsx(us, { value: n, children: /* @__PURE__ */ o.jsx(gr, { children: t }) }) }) }) }) })
|
|
1929
1929
|
] });
|
|
1930
1930
|
}, ds = It(ls), Wn = (t) => /* @__PURE__ */ o.jsx(ka, { FallbackComponent: Ga, children: /* @__PURE__ */ o.jsx(ds, { ...t }) });
|
|
1931
1931
|
Wn.displayName = "DevPortal";
|
|
@@ -1947,7 +1947,7 @@ const hs = () => {
|
|
|
1947
1947
|
return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
|
|
1948
1948
|
}, [t.hash, e]);
|
|
1949
1949
|
}, ps = () => {
|
|
1950
|
-
const t = se(), e =
|
|
1950
|
+
const t = se(), e = Ne(t.pathname);
|
|
1951
1951
|
oe(() => {
|
|
1952
1952
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
1953
1953
|
}, [t.pathname]);
|
|
@@ -1956,7 +1956,7 @@ const hs = () => {
|
|
|
1956
1956
|
defaultOpen: e,
|
|
1957
1957
|
path: n
|
|
1958
1958
|
}) => {
|
|
1959
|
-
const [r, a] = At(e), s = se(), i =
|
|
1959
|
+
const [r, a] = At(e), s = se(), i = Ne(s.pathname);
|
|
1960
1960
|
return oe(() => {
|
|
1961
1961
|
!r && i.current !== s.pathname && a(qe(t, s.pathname, n)), i.current = s.pathname;
|
|
1962
1962
|
}, [r, t, n, s.pathname]), [r, a];
|
|
@@ -1984,7 +1984,7 @@ const hs = () => {
|
|
|
1984
1984
|
const s = vt(e) ? $t(a, e.path) : "", i = se(), [u, d] = Jn({
|
|
1985
1985
|
item: e,
|
|
1986
1986
|
path: s,
|
|
1987
|
-
defaultOpen: () => qe(e, i.pathname,
|
|
1987
|
+
defaultOpen: () => qe(e, i.pathname, a)
|
|
1988
1988
|
});
|
|
1989
1989
|
if (aa(e)) {
|
|
1990
1990
|
const p = P(
|
|
@@ -2005,7 +2005,7 @@ const hs = () => {
|
|
|
2005
2005
|
/* @__PURE__ */ o.jsx(ca, { size: 14 })
|
|
2006
2006
|
]
|
|
2007
2007
|
}
|
|
2008
|
-
) : /* @__PURE__ */ o.jsx(
|
|
2008
|
+
) : /* @__PURE__ */ o.jsx(Fe, { className: p, to: e.href, children: e.label });
|
|
2009
2009
|
}
|
|
2010
2010
|
const h = /* @__PURE__ */ o.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
2011
2011
|
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
@@ -2062,7 +2062,7 @@ const hs = () => {
|
|
|
2062
2062
|
children: h
|
|
2063
2063
|
}
|
|
2064
2064
|
) : /* @__PURE__ */ o.jsx(
|
|
2065
|
-
|
|
2065
|
+
Fe,
|
|
2066
2066
|
{
|
|
2067
2067
|
className: ({ isActive: p }) => Pe({ isActive: p }),
|
|
2068
2068
|
to: s,
|
|
@@ -2131,7 +2131,7 @@ const hs = () => {
|
|
|
2131
2131
|
}
|
|
2132
2132
|
);
|
|
2133
2133
|
}), vs = () => {
|
|
2134
|
-
const t =
|
|
2134
|
+
const t = Ne(null), e = sa();
|
|
2135
2135
|
return /* @__PURE__ */ o.jsx(
|
|
2136
2136
|
gs,
|
|
2137
2137
|
{
|
|
@@ -2143,11 +2143,11 @@ const hs = () => {
|
|
|
2143
2143
|
}, xs = ({ children: t }) => {
|
|
2144
2144
|
const e = se(), { setActiveAnchor: n } = Qe(), { meta: r } = He();
|
|
2145
2145
|
hs(), ps();
|
|
2146
|
-
const a =
|
|
2146
|
+
const a = Ne(e.pathname);
|
|
2147
2147
|
return oe(() => {
|
|
2148
2148
|
e.pathname !== a.current && n(""), a.current = e.pathname;
|
|
2149
2149
|
}, [e.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2150
|
-
/* @__PURE__ */ o.jsxs(
|
|
2150
|
+
/* @__PURE__ */ o.jsxs(Be, { titleTemplate: r == null ? void 0 : r.title, children: [
|
|
2151
2151
|
(r == null ? void 0 : r.description) && /* @__PURE__ */ o.jsx("meta", { name: "description", content: r.description }),
|
|
2152
2152
|
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ o.jsx("link", { rel: "icon", href: r.favicon })
|
|
2153
2153
|
] }),
|
|
@@ -2174,7 +2174,7 @@ const hs = () => {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
) })
|
|
2176
2176
|
] });
|
|
2177
|
-
}, Ds = cr, Is = xr, As = Wn, Os = xs, Ts =
|
|
2177
|
+
}, Ds = cr, Is = xr, As = Wn, Os = xs, Ts = Re, ks = wr, Fs = da, Ls = Sa, Ks = Na, $s = Le, Bs = Be;
|
|
2178
2178
|
export {
|
|
2179
2179
|
Ls as Bootstrap,
|
|
2180
2180
|
Ks as BootstrapStatic,
|