zudoku 0.57.0 → 0.57.1
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/MobileTopNavigation.js +2 -2
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/TopNavigation.js +2 -2
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/navigation/NavigationItem.js +2 -2
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/utils.d.ts +1 -1
- package/dist/lib/components/navigation/utils.js +1 -1
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
- package/dist/vite/mdx/remark-inject-filepath.js +6 -0
- package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
- package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
- package/dist/vite/mdx/remark-link-rewrite.js +20 -0
- package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
- package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
- package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
- package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
- package/dist/vite/{remarkStaticGeneration.d.ts → mdx/remark-static-generation.d.ts} +2 -2
- package/dist/vite/{remarkStaticGeneration.js → mdx/remark-static-generation.js} +1 -1
- package/dist/vite/mdx/remark-static-generation.js.map +1 -0
- package/dist/vite/plugin-mdx.js +6 -23
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-navigation.js +33 -34
- package/dist/vite/plugin-navigation.js.map +1 -1
- package/lib/{MdxPage-BmOQ5m5g.js → MdxPage-CsYakgbK.js} +2 -2
- package/lib/{MdxPage-BmOQ5m5g.js.map → MdxPage-CsYakgbK.js.map} +1 -1
- package/lib/{OAuthErrorPage-Jv3r8wnL.js → OAuthErrorPage-CW81kc7H.js} +3 -3
- package/lib/{OAuthErrorPage-Jv3r8wnL.js.map → OAuthErrorPage-CW81kc7H.js.map} +1 -1
- package/lib/{OasProvider-CA_lpILt.js → OasProvider-DF34c7Tj.js} +2 -2
- package/lib/{OasProvider-CA_lpILt.js.map → OasProvider-DF34c7Tj.js.map} +1 -1
- package/lib/{OperationList-C-TObVw6.js → OperationList-BT3T9cyh.js} +5 -5
- package/lib/{OperationList-C-TObVw6.js.map → OperationList-BT3T9cyh.js.map} +1 -1
- package/lib/{Pagination-CBiRGddW.js → Pagination-BvcjSQfr.js} +2 -2
- package/lib/{Pagination-CBiRGddW.js.map → Pagination-BvcjSQfr.js.map} +1 -1
- package/lib/{SchemaList-BeYWvBC7.js → SchemaList-BSTuCiI1.js} +3 -3
- package/lib/{SchemaList-BeYWvBC7.js.map → SchemaList-BSTuCiI1.js.map} +1 -1
- package/lib/{SchemaView-CRcShewo.js → SchemaView-B5oMHFaS.js} +3 -3
- package/lib/{SchemaView-CRcShewo.js.map → SchemaView-B5oMHFaS.js.map} +1 -1
- package/lib/{SignUp-CxBGHgba.js → SignUp-BHw9Ci8d.js} +2 -2
- package/lib/{SignUp-CxBGHgba.js.map → SignUp-BHw9Ci8d.js.map} +1 -1
- package/lib/Slot-DOtTvoyj.js.map +1 -1
- package/lib/ZudokuContext-BuJD7yIX.js.map +1 -1
- package/lib/{circular-CGTcsqA3.js → circular-DKJCbMIs.js} +2 -2
- package/lib/{circular-CGTcsqA3.js.map → circular-DKJCbMIs.js.map} +1 -1
- package/lib/{createServer-DjgpuLne.js → createServer-DR-J5mEE.js} +3 -3
- package/lib/{createServer-DjgpuLne.js.map → createServer-DR-J5mEE.js.map} +1 -1
- package/lib/{errors-CrI3s7mR.js → errors-C1fOoSR8.js} +2 -2
- package/lib/{errors-CrI3s7mR.js.map → errors-C1fOoSR8.js.map} +1 -1
- package/lib/{index-DzO-Qh6S.js → index-DDHx4NBX.js} +47 -47
- package/lib/index-DDHx4NBX.js.map +1 -0
- package/lib/{index-CvTWnHZF.js → index-DLcG9mHm.js} +7 -7
- package/lib/{index-CvTWnHZF.js.map → index-DLcG9mHm.js.map} +1 -1
- package/lib/zudoku.__internal.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +3 -3
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +3 -3
- package/lib/zudoku.auth-supabase.js +1 -1
- package/lib/zudoku.components.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +2 -1
- package/src/lib/components/MobileTopNavigation.tsx +2 -2
- package/src/lib/components/TopNavigation.tsx +2 -2
- package/src/lib/components/navigation/NavigationItem.tsx +2 -2
- package/src/lib/components/navigation/utils.ts +1 -1
- package/dist/vite/remarkStaticGeneration.js.map +0 -1
- package/lib/index-DzO-Qh6S.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { LogOutIcon as n } from "lucide-react";
|
|
3
|
-
import { S as i, a, b as u } from "./SignUp-
|
|
3
|
+
import { S as i, a, b as u } from "./SignUp-BHw9Ci8d.js";
|
|
4
4
|
import { Z as m } from "./invariant-Bm-FVUQE.js";
|
|
5
5
|
class h {
|
|
6
6
|
getRoutes() {
|
|
@@ -42,4 +42,4 @@ export {
|
|
|
42
42
|
h as C,
|
|
43
43
|
f as O
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=errors-
|
|
45
|
+
//# sourceMappingURL=errors-C1fOoSR8.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors-
|
|
1
|
+
{"version":3,"file":"errors-C1fOoSR8.js","sources":["../src/lib/authentication/AuthenticationPlugin.tsx","../src/lib/authentication/errors.ts"],"sourcesContent":["import { LogOutIcon } from \"lucide-react\";\nimport {\n type CommonPlugin,\n type NavigationPlugin,\n type ProfileMenuPlugin,\n} from \"../core/plugins.js\";\nimport { SignIn } from \"./components/SignIn.js\";\nimport { SignOut } from \"./components/SignOut.js\";\nimport { SignUp } from \"./components/SignUp.js\";\n\ntype PluginInterface = NavigationPlugin & CommonPlugin & ProfileMenuPlugin;\n\nexport class CoreAuthenticationPlugin implements PluginInterface {\n getRoutes() {\n return [\n {\n path: \"/signout\",\n element: <SignOut />,\n },\n {\n path: \"/signin\",\n element: <SignIn />,\n },\n {\n path: \"/signup\",\n element: <SignUp />,\n },\n ];\n }\n\n getProfileMenuItems() {\n return [\n {\n label: \"Logout\",\n path: \"/signout\",\n category: \"bottom\",\n icon: LogOutIcon,\n } as const,\n ];\n }\n}\n","import type { OAuth2Error } from \"oauth4webapi\";\nimport { ZudokuError, type ZudokuErrorOptions } from \"../util/invariant.js\";\n\nexport class AuthorizationError extends Error {}\n\nexport class OAuthAuthorizationError extends ZudokuError {\n constructor(\n message: string,\n public error: OAuth2Error,\n options?: ZudokuErrorOptions,\n ) {\n super(message, options);\n }\n}\n\nexport type OAuthErrorType =\n // Authorization errors\n | \"invalid_request\"\n | \"unauthorized_client\"\n | \"access_denied\"\n | \"unsupported_response_type\"\n | \"invalid_scope\"\n | \"server_error\"\n | \"temporarily_unavailable\"\n // Token errors\n | \"invalid_client\"\n | \"invalid_grant\"\n | \"unsupported_grant_type\"\n // Custom errors\n | \"invalid_state\"\n | \"missing_code_verifier\"\n | \"network_error\"\n | \"token_expired\"\n | \"configuration_error\"\n | \"unknown_error\";\n"],"names":["CoreAuthenticationPlugin","SignOut","SignIn","SignUp","LogOutIcon","AuthorizationError","OAuthAuthorizationError","ZudokuError","message","error","options"],"mappings":";;;;AAYO,MAAMA,EAAoD;AAAA,EAC/D,YAAY;AACV,WAAO;AAAA,MACL;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAA,CAAA,CAAQ;AAAA,MAAA;AAAA,MAEpB;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAA,CAAA,CAAO;AAAA,MAAA;AAAA,MAEnB;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAA,CAAA,CAAO;AAAA,MAAA;AAAA,IACnB;AAAA,EAEJ;AAAA,EAEA,sBAAsB;AACpB,WAAO;AAAA,MACL;AAAA,QACE,OAAO;AAAA,QACP,MAAM;AAAA,QACN,UAAU;AAAA,QACV,MAAMC;AAAA,MAAA;AAAA,IACR;AAAA,EAEJ;AACF;ACrCO,MAAMC,UAA2B,MAAM;AAAC;AAExC,MAAMC,UAAgCC,EAAY;AAAA,EACvD,YACEC,GACOC,GACPC,GACA;AACA,UAAMF,GAASE,CAAO,GAHf,KAAA,QAAAD;AAAA,EAIT;AACF;"}
|
|
@@ -4,17 +4,17 @@ import { aQ as Ee, N as st, L as re, aM as Se, O as at } from "./chunk-QMGIS6GS-
|
|
|
4
4
|
import { u as it, a as z } from "./hook-bv3iuX7X.js";
|
|
5
5
|
import { Button as ct } from "./ui/Button.js";
|
|
6
6
|
import { Callout as lt } from "./ui/Callout.js";
|
|
7
|
-
import { j as q, d as k, m as
|
|
7
|
+
import { j as q, d as k, m as we, o as ut, p as dt, b as ft, N as mt, Z as ht, g as pt, f as gt, C as vt } from "./ZudokuContext-BuJD7yIX.js";
|
|
8
8
|
import { C as F } from "./ClientOnly-E7hGysn1.js";
|
|
9
|
-
import { E as xt, a as I, d as yt, b as bt, c as jt, V as Et, M as St, T as
|
|
10
|
-
import { S as
|
|
9
|
+
import { E as xt, a as I, d as yt, b as bt, c as jt, V as Et, M as St, T as wt } from "./Slot-DOtTvoyj.js";
|
|
10
|
+
import { S as Ct } from "./Spinner-mNLZ6awP.js";
|
|
11
11
|
import { j as r } from "./jsx-runtime-C5mzlN2N.js";
|
|
12
|
-
import { Component as Pt, createElement as ie, createContext as ne, useState as L, useRef as D, useCallback as _, useEffect as O, Suspense as
|
|
12
|
+
import { Component as Pt, createElement as ie, createContext as ne, useState as L, useRef as D, useCallback as _, useEffect as O, Suspense as Ce, Fragment as Nt, memo as Pe, useMemo as W, useContext as Tt } from "react";
|
|
13
13
|
import { isNavigationPlugin as ce, isAuthenticationPlugin as Mt, isEventConsumerPlugin as _t, needsInitialization as At, isApiIdentityPlugin as Rt, isProfileMenuPlugin as Ne, isSearchPlugin as kt, isMdxProviderPlugin as Ot, hasHead as $t } from "./zudoku.plugins.js";
|
|
14
14
|
import { B as J } from "./Button-B3o-2Xdf.js";
|
|
15
15
|
import { c as R } from "./cn-dYga0KKN.js";
|
|
16
|
-
import { DropdownMenu as It, DropdownMenuTrigger as Dt, DropdownMenuContent as Ft, DropdownMenuLabel as Lt, DropdownMenuSeparator as Q, DropdownMenuSub as zt, DropdownMenuSubTrigger as qt, DropdownMenuPortal as Bt, DropdownMenuSubContent as Yt, DropdownMenuItem as
|
|
17
|
-
import { CircleXIcon as
|
|
16
|
+
import { DropdownMenu as It, DropdownMenuTrigger as Dt, DropdownMenuContent as Ft, DropdownMenuLabel as Lt, DropdownMenuSeparator as Q, DropdownMenuSub as zt, DropdownMenuSubTrigger as qt, DropdownMenuPortal as Bt, DropdownMenuSubContent as Yt, DropdownMenuItem as Zt } from "./ui/DropdownMenu.js";
|
|
17
|
+
import { CircleXIcon as Ht, ChevronRightIcon as Kt, SearchIcon as Ut, SunIcon as Vt, MoonIcon as Wt, MenuIcon as Qt } from "lucide-react";
|
|
18
18
|
import { VisuallyHidden as Xt } from "@radix-ui/react-visually-hidden";
|
|
19
19
|
import { D as Gt, a as Jt, b as er, c as tr } from "./Drawer-DJ05s2pH.js";
|
|
20
20
|
import { a as rr } from "./index-DI5SPFK9.js";
|
|
@@ -227,7 +227,7 @@ const de = {
|
|
|
227
227
|
type: "button",
|
|
228
228
|
className: "md:absolute md:end-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
229
229
|
onClick: () => n(!1),
|
|
230
|
-
children: /* @__PURE__ */ r.jsx(
|
|
230
|
+
children: /* @__PURE__ */ r.jsx(Ht, { size: 16 })
|
|
231
231
|
}
|
|
232
232
|
)
|
|
233
233
|
]
|
|
@@ -298,7 +298,7 @@ function K() {
|
|
|
298
298
|
return e;
|
|
299
299
|
}, K.apply(null, arguments);
|
|
300
300
|
}
|
|
301
|
-
var
|
|
301
|
+
var Z = { exports: {} }, h = {};
|
|
302
302
|
/** @license React v16.13.1
|
|
303
303
|
* react-is.production.min.js
|
|
304
304
|
*
|
|
@@ -311,7 +311,7 @@ var fe;
|
|
|
311
311
|
function mr() {
|
|
312
312
|
if (fe) return h;
|
|
313
313
|
fe = 1;
|
|
314
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121,
|
|
314
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
|
|
315
315
|
function j(a) {
|
|
316
316
|
if (typeof a == "object" && a !== null) {
|
|
317
317
|
var x = a.$$typeof;
|
|
@@ -370,7 +370,7 @@ function mr() {
|
|
|
370
370
|
}, h.isSuspense = function(a) {
|
|
371
371
|
return j(a) === y;
|
|
372
372
|
}, h.isValidElementType = function(a) {
|
|
373
|
-
return typeof a == "string" || typeof a == "function" || a === o || a === f || a === c || a === i || a === y || a === m || typeof a == "object" && a !== null && (a.$$typeof === g || a.$$typeof === l || a.$$typeof === s || a.$$typeof === d || a.$$typeof === b || a.$$typeof ===
|
|
373
|
+
return typeof a == "string" || typeof a == "function" || a === o || a === f || a === c || a === i || a === y || a === m || typeof a == "object" && a !== null && (a.$$typeof === g || a.$$typeof === l || a.$$typeof === s || a.$$typeof === d || a.$$typeof === b || a.$$typeof === w || a.$$typeof === C || a.$$typeof === P || a.$$typeof === S);
|
|
374
374
|
}, h.typeOf = j, h;
|
|
375
375
|
}
|
|
376
376
|
var p = {};
|
|
@@ -385,10 +385,10 @@ var p = {};
|
|
|
385
385
|
var me;
|
|
386
386
|
function hr() {
|
|
387
387
|
return me || (me = 1, process.env.NODE_ENV !== "production" && function() {
|
|
388
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121,
|
|
388
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
|
|
389
389
|
function j(u) {
|
|
390
390
|
return typeof u == "string" || typeof u == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
391
|
-
u === o || u === f || u === c || u === i || u === y || u === m || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === l || u.$$typeof === s || u.$$typeof === d || u.$$typeof === b || u.$$typeof ===
|
|
391
|
+
u === o || u === f || u === c || u === i || u === y || u === m || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === l || u.$$typeof === s || u.$$typeof === d || u.$$typeof === b || u.$$typeof === w || u.$$typeof === C || u.$$typeof === P || u.$$typeof === S);
|
|
392
392
|
}
|
|
393
393
|
function E(u) {
|
|
394
394
|
if (typeof u == "object" && u !== null) {
|
|
@@ -423,13 +423,13 @@ function hr() {
|
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
var a = v, x = f, N = d, T = s, $ = t, M = b, U = o, A = g, Le = l, ze = n, qe = c, Be = i, Ye = y, oe = !1;
|
|
426
|
-
function
|
|
426
|
+
function Ze(u) {
|
|
427
427
|
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), se(u) || E(u) === v;
|
|
428
428
|
}
|
|
429
429
|
function se(u) {
|
|
430
430
|
return E(u) === f;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function He(u) {
|
|
433
433
|
return E(u) === d;
|
|
434
434
|
}
|
|
435
435
|
function Ke(u) {
|
|
@@ -462,12 +462,12 @@ function hr() {
|
|
|
462
462
|
function tt(u) {
|
|
463
463
|
return E(u) === y;
|
|
464
464
|
}
|
|
465
|
-
p.AsyncMode = a, p.ConcurrentMode = x, p.ContextConsumer = N, p.ContextProvider = T, p.Element = $, p.ForwardRef = M, p.Fragment = U, p.Lazy = A, p.Memo = Le, p.Portal = ze, p.Profiler = qe, p.StrictMode = Be, p.Suspense = Ye, p.isAsyncMode =
|
|
465
|
+
p.AsyncMode = a, p.ConcurrentMode = x, p.ContextConsumer = N, p.ContextProvider = T, p.Element = $, p.ForwardRef = M, p.Fragment = U, p.Lazy = A, p.Memo = Le, p.Portal = ze, p.Profiler = qe, p.StrictMode = Be, p.Suspense = Ye, p.isAsyncMode = Ze, p.isConcurrentMode = se, p.isContextConsumer = He, p.isContextProvider = Ke, p.isElement = Ue, p.isForwardRef = Ve, p.isFragment = We, p.isLazy = Qe, p.isMemo = Xe, p.isPortal = Ge, p.isProfiler = Je, p.isStrictMode = et, p.isSuspense = tt, p.isValidElementType = j, p.typeOf = E;
|
|
466
466
|
}()), p;
|
|
467
467
|
}
|
|
468
468
|
var he;
|
|
469
469
|
function pr() {
|
|
470
|
-
return he || (he = 1, process.env.NODE_ENV === "production" ?
|
|
470
|
+
return he || (he = 1, process.env.NODE_ENV === "production" ? Z.exports = mr() : Z.exports = hr()), Z.exports;
|
|
471
471
|
}
|
|
472
472
|
var G, pe;
|
|
473
473
|
function gr() {
|
|
@@ -512,17 +512,17 @@ function gr() {
|
|
|
512
512
|
return e.isMemo(g) ? i : c[g.$$typeof] || t;
|
|
513
513
|
}
|
|
514
514
|
var d = Object.defineProperty, v = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, b = Object.getOwnPropertyDescriptor, y = Object.getPrototypeOf, m = Object.prototype;
|
|
515
|
-
function l(g, S,
|
|
515
|
+
function l(g, S, w) {
|
|
516
516
|
if (typeof S != "string") {
|
|
517
517
|
if (m) {
|
|
518
|
-
var
|
|
519
|
-
|
|
518
|
+
var C = y(S);
|
|
519
|
+
C && C !== m && l(g, C, w);
|
|
520
520
|
}
|
|
521
521
|
var P = v(S);
|
|
522
522
|
f && (P = P.concat(f(S)));
|
|
523
523
|
for (var j = s(g), E = s(S), a = 0; a < P.length; ++a) {
|
|
524
524
|
var x = P[a];
|
|
525
|
-
if (!n[x] && !(
|
|
525
|
+
if (!n[x] && !(w && w[x]) && !(E && E[x]) && !(j && j[x])) {
|
|
526
526
|
var N = b(S, x);
|
|
527
527
|
try {
|
|
528
528
|
d(g, x, N);
|
|
@@ -605,19 +605,19 @@ var Me = function(t, n, o) {
|
|
|
605
605
|
isFinished: !0,
|
|
606
606
|
progress: 0,
|
|
607
607
|
sideEffect: _e
|
|
608
|
-
},
|
|
608
|
+
}, wr = function(t) {
|
|
609
609
|
var n = t === void 0 ? {} : t, o = n.animationDuration, i = o === void 0 ? 200 : o, c = n.incrementDuration, s = c === void 0 ? 800 : c, d = n.isAnimating, v = d === void 0 ? !1 : d, f = n.minimum, b = f === void 0 ? 0.08 : f, y = Er(xe), m = y[0], l = y[1], g = D(null), S = D(null);
|
|
610
610
|
ge(function() {
|
|
611
611
|
g.current = vr(), S.current = xr();
|
|
612
612
|
});
|
|
613
|
-
var
|
|
613
|
+
var w = _(function() {
|
|
614
614
|
var x, N;
|
|
615
615
|
(x = S.current) == null || x.cancel(), (N = g.current) == null || N.clear();
|
|
616
|
-
}, []),
|
|
616
|
+
}, []), C = _(function(x) {
|
|
617
617
|
var N;
|
|
618
618
|
if (x = Me(x, b, 1), x === 1) {
|
|
619
619
|
var T, $;
|
|
620
|
-
|
|
620
|
+
w(), (T = g.current) == null || T.enqueue(function(M) {
|
|
621
621
|
l({
|
|
622
622
|
progress: x,
|
|
623
623
|
sideEffect: function() {
|
|
@@ -628,7 +628,7 @@ var Me = function(t, n, o) {
|
|
|
628
628
|
}), ($ = g.current) == null || $.enqueue(function() {
|
|
629
629
|
l({
|
|
630
630
|
isFinished: !0,
|
|
631
|
-
sideEffect:
|
|
631
|
+
sideEffect: w
|
|
632
632
|
});
|
|
633
633
|
});
|
|
634
634
|
return;
|
|
@@ -643,9 +643,9 @@ var Me = function(t, n, o) {
|
|
|
643
643
|
}
|
|
644
644
|
});
|
|
645
645
|
});
|
|
646
|
-
}, [i,
|
|
647
|
-
|
|
648
|
-
}, [m,
|
|
646
|
+
}, [i, w, b, g, l, S]), P = _(function() {
|
|
647
|
+
C(yr(m().progress));
|
|
648
|
+
}, [m, C]), j = _(function() {
|
|
649
649
|
var x = function() {
|
|
650
650
|
var T;
|
|
651
651
|
P(), (T = g.current) == null || T.enqueue(function($) {
|
|
@@ -660,14 +660,14 @@ var Me = function(t, n, o) {
|
|
|
660
660
|
return O(function() {
|
|
661
661
|
E.current = P;
|
|
662
662
|
}), ge(function() {
|
|
663
|
-
return v && j(),
|
|
663
|
+
return v && j(), w;
|
|
664
664
|
}), ve(function() {
|
|
665
665
|
m().sideEffect();
|
|
666
666
|
}, [m, a]), ve(function() {
|
|
667
667
|
v ? l(K({}, xe, {
|
|
668
668
|
sideEffect: j
|
|
669
|
-
})) :
|
|
670
|
-
}, [v,
|
|
669
|
+
})) : C(1);
|
|
670
|
+
}, [v, C, l, j]), {
|
|
671
671
|
animationDuration: i,
|
|
672
672
|
isFinished: m().isFinished,
|
|
673
673
|
progress: m().progress
|
|
@@ -679,7 +679,7 @@ const Ae = () => {
|
|
|
679
679
|
const s = setTimeout(() => o(t), 200);
|
|
680
680
|
return () => clearTimeout(s);
|
|
681
681
|
}, [t]);
|
|
682
|
-
const { isFinished: i, progress: c } =
|
|
682
|
+
const { isFinished: i, progress: c } = wr({ isAnimating: n });
|
|
683
683
|
return /* @__PURE__ */ r.jsx(
|
|
684
684
|
"div",
|
|
685
685
|
{
|
|
@@ -691,7 +691,7 @@ const Ae = () => {
|
|
|
691
691
|
}
|
|
692
692
|
);
|
|
693
693
|
};
|
|
694
|
-
function
|
|
694
|
+
function Cr() {
|
|
695
695
|
const e = navigator.userAgent.toLowerCase();
|
|
696
696
|
if (e.includes("win")) return "Windows";
|
|
697
697
|
if (e.includes("mac")) return "macOS";
|
|
@@ -726,13 +726,13 @@ const Re = ({ className: e }) => {
|
|
|
726
726
|
]
|
|
727
727
|
}
|
|
728
728
|
),
|
|
729
|
-
/* @__PURE__ */ r.jsx(
|
|
729
|
+
/* @__PURE__ */ r.jsx(Ce, { fallback: null, children: c.renderSearch({
|
|
730
730
|
isOpen: n,
|
|
731
731
|
onClose: i
|
|
732
732
|
}) })
|
|
733
733
|
] }) : null;
|
|
734
734
|
}, Pr = () => {
|
|
735
|
-
const e =
|
|
735
|
+
const e = Cr();
|
|
736
736
|
return /* @__PURE__ */ r.jsxs("kbd", { className: "absolute end-1.5 hidden h-5 select-none items-center gap-1 rounded-sm border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: [
|
|
737
737
|
e === "macOS" ? "⌘" : "Ctrl",
|
|
738
738
|
"+K"
|
|
@@ -773,8 +773,8 @@ const Re = ({ className: e }) => {
|
|
|
773
773
|
}
|
|
774
774
|
) });
|
|
775
775
|
}, Nr = () => {
|
|
776
|
-
const e = k(), { navigation: t } = e, n = z(), o = t.filter(
|
|
777
|
-
return o.length === 0 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(
|
|
776
|
+
const e = k(), { navigation: t } = e, n = z(), o = t.filter(we(n, e));
|
|
777
|
+
return o.length === 0 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(Ce, { children: /* @__PURE__ */ r.jsxs("div", { className: "items-center justify-between px-8 h-(--top-nav-height) hidden lg:flex text-sm relative", children: [
|
|
778
778
|
/* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: o.map((i) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx($e, { ...i }) }, i.label + i.type)) }) }),
|
|
779
779
|
/* @__PURE__ */ r.jsx(I.Target, { name: "top-navigation-side" })
|
|
780
780
|
] }) });
|
|
@@ -828,7 +828,7 @@ const Re = ({ className: e }) => {
|
|
|
828
828
|
] })
|
|
829
829
|
);
|
|
830
830
|
}, Tr = () => {
|
|
831
|
-
const e = k(), t = z(), { navigation: n, options: o, getProfileMenuItems: i } = e, { isAuthenticated: c, profile: s, isAuthEnabled: d } = t, [v, f] = L(!1), b = i(), y = n.filter(
|
|
831
|
+
const e = k(), t = z(), { navigation: n, options: o, getProfileMenuItems: i } = e, { isAuthenticated: c, profile: s, isAuthEnabled: d } = t, [v, f] = L(!1), b = i(), y = n.filter(we(t, e));
|
|
832
832
|
return /* @__PURE__ */ r.jsxs(
|
|
833
833
|
Gt,
|
|
834
834
|
{
|
|
@@ -893,13 +893,13 @@ const Re = ({ className: e }) => {
|
|
|
893
893
|
]
|
|
894
894
|
}
|
|
895
895
|
);
|
|
896
|
-
},
|
|
896
|
+
}, H = ({ item: e }) => e.children ? /* @__PURE__ */ r.jsxs(zt, { children: [
|
|
897
897
|
/* @__PURE__ */ r.jsx(qt, { children: e.label }),
|
|
898
898
|
/* @__PURE__ */ r.jsx(Bt, { children: /* @__PURE__ */ r.jsx(Yt, { children: e.children.map((t, n) => (
|
|
899
899
|
// eslint-disable-next-line react/no-array-index-key
|
|
900
|
-
/* @__PURE__ */ r.jsx(
|
|
900
|
+
/* @__PURE__ */ r.jsx(H, { item: t }, n)
|
|
901
901
|
)) }) })
|
|
902
|
-
] }, e.label) : /* @__PURE__ */ r.jsx(re, { to: e.path ?? "", children: /* @__PURE__ */ r.jsxs(
|
|
902
|
+
] }, e.label) : /* @__PURE__ */ r.jsx(re, { to: e.path ?? "", children: /* @__PURE__ */ r.jsxs(Zt, { className: "flex gap-2", children: [
|
|
903
903
|
e.icon && /* @__PURE__ */ r.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
904
904
|
e.label
|
|
905
905
|
] }, e.label) }), Mr = Pe(function() {
|
|
@@ -953,15 +953,15 @@ const Re = ({ className: e }) => {
|
|
|
953
953
|
o?.email && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: o.email })
|
|
954
954
|
] }),
|
|
955
955
|
f.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ r.jsx(Q, {}),
|
|
956
|
-
f.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ r.jsx(
|
|
956
|
+
f.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ r.jsx(H, { item: l }, l.label)),
|
|
957
957
|
f.filter(
|
|
958
958
|
(l) => !l.category || l.category === "middle"
|
|
959
959
|
).length > 0 && /* @__PURE__ */ r.jsx(Q, {}),
|
|
960
960
|
f.filter(
|
|
961
961
|
(l) => !l.category || l.category === "middle"
|
|
962
|
-
).map((l) => /* @__PURE__ */ r.jsx(
|
|
962
|
+
).map((l) => /* @__PURE__ */ r.jsx(H, { item: l }, l.label)),
|
|
963
963
|
f.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(Q, {}),
|
|
964
|
-
f.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ r.jsx(
|
|
964
|
+
f.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ r.jsx(H, { item: l }, l.label))
|
|
965
965
|
] })
|
|
966
966
|
] }) : /* @__PURE__ */ r.jsx(J, { variant: "ghost", onClick: () => t.login(), children: "Login" })
|
|
967
967
|
}
|
|
@@ -1034,7 +1034,7 @@ const De = Pe(
|
|
|
1034
1034
|
De.displayName = "ZudokoInner";
|
|
1035
1035
|
const Fe = (e) => /* @__PURE__ */ r.jsx(or, { FallbackComponent: ur, children: /* @__PURE__ */ r.jsx(De, { ...e }) });
|
|
1036
1036
|
Fe.displayName = "Zudoku";
|
|
1037
|
-
const en = be, tn = lt, rn = St, nn =
|
|
1037
|
+
const en = be, tn = lt, rn = St, nn = Ct, on = F, sn = ct, an = re, cn = Fe, ln = wt, un = ot, dn = k, fn = z, mn = gt, hn = vt, pn = je;
|
|
1038
1038
|
export {
|
|
1039
1039
|
sn as B,
|
|
1040
1040
|
tn as C,
|
|
@@ -1047,7 +1047,7 @@ export {
|
|
|
1047
1047
|
ln as T,
|
|
1048
1048
|
cn as Z,
|
|
1049
1049
|
ue as a,
|
|
1050
|
-
|
|
1050
|
+
wr as b,
|
|
1051
1051
|
fn as c,
|
|
1052
1052
|
en as d,
|
|
1053
1053
|
on as e,
|
|
@@ -1058,4 +1058,4 @@ export {
|
|
|
1058
1058
|
ir as o,
|
|
1059
1059
|
dn as u
|
|
1060
1060
|
};
|
|
1061
|
-
//# sourceMappingURL=index-
|
|
1061
|
+
//# sourceMappingURL=index-DDHx4NBX.js.map
|