zudoku 0.54.2 → 0.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/main.d.ts +1 -1
- package/dist/app/main.js +1 -3
- package/dist/app/main.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +63 -63
- package/dist/config/validators/validate.d.ts +24 -15
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +327 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.js +9 -3
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +9 -5
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +4 -4
- package/lib/{MdxPage-C6Ru5mfp.js → MdxPage-D1XC3kwu.js} +8 -8
- package/lib/{MdxPage-C6Ru5mfp.js.map → MdxPage-D1XC3kwu.js.map} +1 -1
- package/lib/{OAuthErrorPage-Dd0fl6Lh.js → OAuthErrorPage-CSYvzsNJ.js} +7 -7
- package/lib/{OAuthErrorPage-Dd0fl6Lh.js.map → OAuthErrorPage-CSYvzsNJ.js.map} +1 -1
- package/lib/{OasProvider-DNmLItHj.js → OasProvider-Ch3fGSNb.js} +3 -3
- package/lib/{OasProvider-DNmLItHj.js.map → OasProvider-Ch3fGSNb.js.map} +1 -1
- package/lib/{OperationList-BE_BNejn.js → OperationList-Boc5tg5n.js} +12 -12
- package/lib/{OperationList-BE_BNejn.js.map → OperationList-Boc5tg5n.js.map} +1 -1
- package/lib/{Pagination-29CJ3c2k.js → Pagination-DdqTabDR.js} +3 -3
- package/lib/{Pagination-29CJ3c2k.js.map → Pagination-DdqTabDR.js.map} +1 -1
- package/lib/{RouteGuard-0wPUKdxJ.js → RouteGuard-D17dUEM_.js} +4 -4
- package/lib/{RouteGuard-0wPUKdxJ.js.map → RouteGuard-D17dUEM_.js.map} +1 -1
- package/lib/{SchemaList-BTkZiol0.js → SchemaList-BbkMdqgT.js} +8 -8
- package/lib/{SchemaList-BTkZiol0.js.map → SchemaList-BbkMdqgT.js.map} +1 -1
- package/lib/{SchemaView-Bc5_uIbh.js → SchemaView-Bo48Qzuu.js} +4 -4
- package/lib/{SchemaView-Bc5_uIbh.js.map → SchemaView-Bo48Qzuu.js.map} +1 -1
- package/lib/{Select-DVKfV8Vb.js → Select-BgBGJ5cF.js} +3 -3
- package/lib/{Select-DVKfV8Vb.js.map → Select-BgBGJ5cF.js.map} +1 -1
- package/lib/{SignUp-DUmbxjcy.js → SignUp-ckLqfC6h.js} +4 -4
- package/lib/{SignUp-DUmbxjcy.js.map → SignUp-ckLqfC6h.js.map} +1 -1
- package/lib/{Slot-BahfuM5e.js → Slot-CkWazhCn.js} +6 -6
- package/lib/{Slot-BahfuM5e.js.map → Slot-CkWazhCn.js.map} +1 -1
- package/lib/{SyntaxHighlight-BaPoOBLD.js → SyntaxHighlight-DQ64ObSH.js} +2 -2
- package/lib/{SyntaxHighlight-BaPoOBLD.js.map → SyntaxHighlight-DQ64ObSH.js.map} +1 -1
- package/lib/{Toc-MF9YxB9B.js → Toc-cVDQRzE6.js} +2 -2
- package/lib/{Toc-MF9YxB9B.js.map → Toc-cVDQRzE6.js.map} +1 -1
- package/lib/{ZudokuContext-CLl5w57E.js → ZudokuContext-Coxa0DfE.js} +2 -2
- package/lib/{ZudokuContext-CLl5w57E.js.map → ZudokuContext-Coxa0DfE.js.map} +1 -1
- package/lib/{chunk-QMGIS6GS-CEOk3lro.js → chunk-QMGIS6GS-CdEm9pzB.js} +6 -6
- package/lib/{chunk-QMGIS6GS-CEOk3lro.js.map → chunk-QMGIS6GS-CdEm9pzB.js.map} +1 -1
- package/lib/{circular-Bv1c2Yd3.js → circular-CshZkiOV.js} +2 -2
- package/lib/{circular-Bv1c2Yd3.js.map → circular-CshZkiOV.js.map} +1 -1
- package/lib/{createServer-B4o75XI3.js → createServer-CHAS8ilN.js} +4 -4
- package/lib/{createServer-B4o75XI3.js.map → createServer-CHAS8ilN.js.map} +1 -1
- package/lib/{errors-7Pb4eZXa.js → errors-BQk2rSTP.js} +2 -2
- package/lib/{errors-7Pb4eZXa.js.map → errors-BQk2rSTP.js.map} +1 -1
- package/lib/{hook-DbUCLQNg.js → hook-DEPqwjke.js} +2 -2
- package/lib/{hook-DbUCLQNg.js.map → hook-DEPqwjke.js.map} +1 -1
- package/lib/{index-fHJ5WmM5.js → index-BB_X3XYb.js} +2 -2
- package/lib/{index-fHJ5WmM5.js.map → index-BB_X3XYb.js.map} +1 -1
- package/lib/{index-D_weJvKR.js → index-BIP4zJwn.js} +15 -15
- package/lib/{index-D_weJvKR.js.map → index-BIP4zJwn.js.map} +1 -1
- package/lib/{index-BqrVgyZ3.js → index-BruDSPOJ.js} +7 -7
- package/lib/{index-BqrVgyZ3.js.map → index-BruDSPOJ.js.map} +1 -1
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/useExposedProps-DUoV7MCU.js +113 -0
- package/lib/useExposedProps-DUoV7MCU.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +5 -5
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +5 -5
- package/lib/zudoku.auth-supabase.js +2 -2
- package/lib/zudoku.components.js +7 -7
- package/lib/zudoku.hooks.js +18 -19
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +7 -7
- package/lib/zudoku.plugin-api-keys.js +189 -187
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +4 -4
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +10 -10
- package/package.json +1 -1
- package/src/app/main.tsx +3 -6
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +6 -3
- package/src/lib/plugins/api-keys/index.tsx +10 -4
- package/src/shiki/langs/vue-vine.js +1 -0
- package/lib/index-Bm35Tkgf.js +0 -107
- package/lib/index-Bm35Tkgf.js.map +0 -1
- package/lib/useExposedProps-KcgXHKeE.js +0 -9
- package/lib/useExposedProps-KcgXHKeE.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../ZudokuContext-
|
|
4
|
-
import { S as h } from "../SyntaxHighlight-
|
|
3
|
+
import "../ZudokuContext-Coxa0DfE.js";
|
|
4
|
+
import { S as h } from "../SyntaxHighlight-DQ64ObSH.js";
|
|
5
5
|
import "../invariant-Bm-FVUQE.js";
|
|
6
6
|
import "../CodeBlock-NFCmSWOK.js";
|
|
7
7
|
import "./EmbeddedCodeBlock.js";
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import T from "react";
|
|
3
|
+
import { c as K, b as R, a as V, d as W } from "./chunk-QMGIS6GS-CdEm9pzB.js";
|
|
4
|
+
const L = {}, D = T.createContext(L);
|
|
5
|
+
function X(e) {
|
|
6
|
+
const t = T.useContext(D);
|
|
7
|
+
return T.useMemo(
|
|
8
|
+
function() {
|
|
9
|
+
return typeof e == "function" ? e(t) : { ...t, ...e };
|
|
10
|
+
},
|
|
11
|
+
[t, e]
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
function Y(e) {
|
|
15
|
+
let t;
|
|
16
|
+
return e.disableParentContext ? t = typeof e.components == "function" ? e.components(L) : e.components || L : t = X(e.components), T.createElement(
|
|
17
|
+
D.Provider,
|
|
18
|
+
{ value: t },
|
|
19
|
+
e.children
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
var z = (e, t, r, u, m, l, d, h) => {
|
|
23
|
+
let i = document.documentElement, v = ["light", "dark"];
|
|
24
|
+
function f(o) {
|
|
25
|
+
(Array.isArray(e) ? e : [e]).forEach((y) => {
|
|
26
|
+
let S = y === "class", P = S && l ? m.map((b) => l[b] || b) : m;
|
|
27
|
+
S ? (i.classList.remove(...P), i.classList.add(l && l[o] ? l[o] : o)) : i.setAttribute(y, o);
|
|
28
|
+
}), k(o);
|
|
29
|
+
}
|
|
30
|
+
function k(o) {
|
|
31
|
+
h && v.includes(o) && (i.style.colorScheme = o);
|
|
32
|
+
}
|
|
33
|
+
function c() {
|
|
34
|
+
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
35
|
+
}
|
|
36
|
+
if (u) f(u);
|
|
37
|
+
else try {
|
|
38
|
+
let o = localStorage.getItem(t) || r, y = d && o === "system" ? c() : o;
|
|
39
|
+
f(y);
|
|
40
|
+
} catch {
|
|
41
|
+
}
|
|
42
|
+
}, _ = ["light", "dark"], N = "(prefers-color-scheme: dark)", J = typeof window > "u", M = n.createContext(void 0), $ = { setTheme: (e) => {
|
|
43
|
+
}, themes: [] }, Z = () => {
|
|
44
|
+
var e;
|
|
45
|
+
return (e = n.useContext(M)) != null ? e : $;
|
|
46
|
+
}, ee = (e) => n.useContext(M) ? n.createElement(n.Fragment, null, e.children) : n.createElement(F, { ...e }), j = ["light", "dark"], F = ({ forcedTheme: e, disableTransitionOnChange: t = !1, enableSystem: r = !0, enableColorScheme: u = !0, storageKey: m = "theme", themes: l = j, defaultTheme: d = r ? "system" : "light", attribute: h = "data-theme", value: i, children: v, nonce: f, scriptProps: k }) => {
|
|
47
|
+
let [c, o] = n.useState(() => U(m, d)), [y, S] = n.useState(() => c === "system" ? x() : c), P = i ? Object.values(i) : l, b = n.useCallback((a) => {
|
|
48
|
+
let s = a;
|
|
49
|
+
if (!s) return;
|
|
50
|
+
a === "system" && r && (s = x());
|
|
51
|
+
let g = i ? i[s] : s, A = t ? q(f) : null, C = document.documentElement, I = (p) => {
|
|
52
|
+
p === "class" ? (C.classList.remove(...P), g && C.classList.add(g)) : p.startsWith("data-") && (g ? C.setAttribute(p, g) : C.removeAttribute(p));
|
|
53
|
+
};
|
|
54
|
+
if (Array.isArray(h) ? h.forEach(I) : I(h), u) {
|
|
55
|
+
let p = _.includes(d) ? d : null, H = _.includes(s) ? s : p;
|
|
56
|
+
C.style.colorScheme = H;
|
|
57
|
+
}
|
|
58
|
+
A?.();
|
|
59
|
+
}, [f]), w = n.useCallback((a) => {
|
|
60
|
+
let s = typeof a == "function" ? a(c) : a;
|
|
61
|
+
o(s);
|
|
62
|
+
try {
|
|
63
|
+
localStorage.setItem(m, s);
|
|
64
|
+
} catch {
|
|
65
|
+
}
|
|
66
|
+
}, [c]), E = n.useCallback((a) => {
|
|
67
|
+
let s = x(a);
|
|
68
|
+
S(s), c === "system" && r && !e && b("system");
|
|
69
|
+
}, [c, e]);
|
|
70
|
+
n.useEffect(() => {
|
|
71
|
+
let a = window.matchMedia(N);
|
|
72
|
+
return a.addListener(E), E(a), () => a.removeListener(E);
|
|
73
|
+
}, [E]), n.useEffect(() => {
|
|
74
|
+
let a = (s) => {
|
|
75
|
+
s.key === m && (s.newValue ? o(s.newValue) : w(d));
|
|
76
|
+
};
|
|
77
|
+
return window.addEventListener("storage", a), () => window.removeEventListener("storage", a);
|
|
78
|
+
}, [w]), n.useEffect(() => {
|
|
79
|
+
b(e ?? c);
|
|
80
|
+
}, [e, c]);
|
|
81
|
+
let O = n.useMemo(() => ({ theme: c, setTheme: w, forcedTheme: e, resolvedTheme: c === "system" ? y : c, themes: r ? [...l, "system"] : l, systemTheme: r ? y : void 0 }), [c, w, e, y, r, l]);
|
|
82
|
+
return n.createElement(M.Provider, { value: O }, n.createElement(Q, { forcedTheme: e, storageKey: m, attribute: h, enableSystem: r, enableColorScheme: u, defaultTheme: d, value: i, themes: l, nonce: f, scriptProps: k }), v);
|
|
83
|
+
}, Q = n.memo(({ forcedTheme: e, storageKey: t, attribute: r, enableSystem: u, enableColorScheme: m, defaultTheme: l, value: d, themes: h, nonce: i, scriptProps: v }) => {
|
|
84
|
+
let f = JSON.stringify([r, t, l, e, h, d, u, m]).slice(1, -1);
|
|
85
|
+
return n.createElement("script", { ...v, suppressHydrationWarning: !0, nonce: typeof window > "u" ? i : "", dangerouslySetInnerHTML: { __html: `(${z.toString()})(${f})` } });
|
|
86
|
+
}), U = (e, t) => {
|
|
87
|
+
if (J) return;
|
|
88
|
+
let r;
|
|
89
|
+
try {
|
|
90
|
+
r = localStorage.getItem(e) || void 0;
|
|
91
|
+
} catch {
|
|
92
|
+
}
|
|
93
|
+
return r || t;
|
|
94
|
+
}, q = (e) => {
|
|
95
|
+
let t = document.createElement("style");
|
|
96
|
+
return e && t.setAttribute("nonce", e), t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), document.head.appendChild(t), () => {
|
|
97
|
+
window.getComputedStyle(document.body), setTimeout(() => {
|
|
98
|
+
document.head.removeChild(t);
|
|
99
|
+
}, 1);
|
|
100
|
+
};
|
|
101
|
+
}, x = (e) => (e || (e = window.matchMedia(N)), e.matches ? "dark" : "light");
|
|
102
|
+
const te = () => {
|
|
103
|
+
const e = K(), t = R(), [r, u] = V(), m = W();
|
|
104
|
+
return { location: e, navigate: t, params: m, searchParams: r, setSearchParams: u };
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
ee as J,
|
|
108
|
+
Y as M,
|
|
109
|
+
te as a,
|
|
110
|
+
X as u,
|
|
111
|
+
Z as z
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=useExposedProps-DUoV7MCU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExposedProps-DUoV7MCU.js","sources":["../../../node_modules/.pnpm/@mdx-js+react@3.1.0_@types+react@19.1.8_react@19.1.0/node_modules/@mdx-js/react/lib/index.js","../../../node_modules/.pnpm/next-themes@0.4.6_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next-themes/dist/index.mjs","../src/lib/util/useExposedProps.tsx"],"sourcesContent":["/**\n * @import {MDXComponents} from 'mdx/types.js'\n * @import {Component, ReactElement, ReactNode} from 'react'\n */\n\n/**\n * @callback MergeComponents\n * Custom merge function.\n * @param {Readonly<MDXComponents>} currentComponents\n * Current components from the context.\n * @returns {MDXComponents}\n * Additional components.\n *\n * @typedef Props\n * Configuration for `MDXProvider`.\n * @property {ReactNode | null | undefined} [children]\n * Children (optional).\n * @property {Readonly<MDXComponents> | MergeComponents | null | undefined} [components]\n * Additional components to use or a function that creates them (optional).\n * @property {boolean | null | undefined} [disableParentContext=false]\n * Turn off outer component context (default: `false`).\n */\n\nimport React from 'react'\n\n/** @type {Readonly<MDXComponents>} */\nconst emptyComponents = {}\n\nconst MDXContext = React.createContext(emptyComponents)\n\n/**\n * Get current components from the MDX Context.\n *\n * @param {Readonly<MDXComponents> | MergeComponents | null | undefined} [components]\n * Additional components to use or a function that creates them (optional).\n * @returns {MDXComponents}\n * Current components.\n */\nexport function useMDXComponents(components) {\n const contextComponents = React.useContext(MDXContext)\n\n // Memoize to avoid unnecessary top-level context changes\n return React.useMemo(\n function () {\n // Custom merge via a function prop\n if (typeof components === 'function') {\n return components(contextComponents)\n }\n\n return {...contextComponents, ...components}\n },\n [contextComponents, components]\n )\n}\n\n/**\n * Provider for MDX context.\n *\n * @param {Readonly<Props>} properties\n * Properties.\n * @returns {ReactElement}\n * Element.\n * @satisfies {Component}\n */\nexport function MDXProvider(properties) {\n /** @type {Readonly<MDXComponents>} */\n let allComponents\n\n if (properties.disableParentContext) {\n allComponents =\n typeof properties.components === 'function'\n ? properties.components(emptyComponents)\n : properties.components || emptyComponents\n } else {\n allComponents = useMDXComponents(properties.components)\n }\n\n return React.createElement(\n MDXContext.Provider,\n {value: allComponents},\n properties.children\n )\n}\n","\"use client\";import*as t from\"react\";var M=(e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=[\"light\",\"dark\"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y===\"class\",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n===\"system\"?c():n;p(y)}catch(n){}};var b=[\"light\",\"dark\"],I=\"(prefers-color-scheme: dark)\",O=typeof window==\"undefined\",x=t.createContext(void 0),U={setTheme:e=>{},themes:[]},z=()=>{var e;return(e=t.useContext(x))!=null?e:U},J=e=>t.useContext(x)?t.createElement(t.Fragment,null,e.children):t.createElement(V,{...e}),N=[\"light\",\"dark\"],V=({forcedTheme:e,disableTransitionOnChange:i=!1,enableSystem:s=!0,enableColorScheme:u=!0,storageKey:m=\"theme\",themes:a=N,defaultTheme:l=s?\"system\":\"light\",attribute:h=\"data-theme\",value:d,children:w,nonce:p,scriptProps:R})=>{let[c,n]=t.useState(()=>H(m,l)),[T,y]=t.useState(()=>c===\"system\"?E():c),k=d?Object.values(d):a,S=t.useCallback(o=>{let r=o;if(!r)return;o===\"system\"&&s&&(r=E());let v=d?d[r]:r,C=i?W(p):null,P=document.documentElement,L=g=>{g===\"class\"?(P.classList.remove(...k),v&&P.classList.add(v)):g.startsWith(\"data-\")&&(v?P.setAttribute(g,v):P.removeAttribute(g))};if(Array.isArray(h)?h.forEach(L):L(h),u){let g=b.includes(l)?l:null,D=b.includes(r)?r:g;P.style.colorScheme=D}C==null||C()},[p]),f=t.useCallback(o=>{let r=typeof o==\"function\"?o(c):o;n(r);try{localStorage.setItem(m,r)}catch(v){}},[c]),A=t.useCallback(o=>{let r=E(o);y(r),c===\"system\"&&s&&!e&&S(\"system\")},[c,e]);t.useEffect(()=>{let o=window.matchMedia(I);return o.addListener(A),A(o),()=>o.removeListener(A)},[A]),t.useEffect(()=>{let o=r=>{r.key===m&&(r.newValue?n(r.newValue):f(l))};return window.addEventListener(\"storage\",o),()=>window.removeEventListener(\"storage\",o)},[f]),t.useEffect(()=>{S(e!=null?e:c)},[e,c]);let Q=t.useMemo(()=>({theme:c,setTheme:f,forcedTheme:e,resolvedTheme:c===\"system\"?T:c,themes:s?[...a,\"system\"]:a,systemTheme:s?T:void 0}),[c,f,e,T,s,a]);return t.createElement(x.Provider,{value:Q},t.createElement(_,{forcedTheme:e,storageKey:m,attribute:h,enableSystem:s,enableColorScheme:u,defaultTheme:l,value:d,themes:a,nonce:p,scriptProps:R}),w)},_=t.memo(({forcedTheme:e,storageKey:i,attribute:s,enableSystem:u,enableColorScheme:m,defaultTheme:a,value:l,themes:h,nonce:d,scriptProps:w})=>{let p=JSON.stringify([s,i,a,e,h,l,u,m]).slice(1,-1);return t.createElement(\"script\",{...w,suppressHydrationWarning:!0,nonce:typeof window==\"undefined\"?d:\"\",dangerouslySetInnerHTML:{__html:`(${M.toString()})(${p})`}})}),H=(e,i)=>{if(O)return;let s;try{s=localStorage.getItem(e)||void 0}catch(u){}return s||i},W=e=>{let i=document.createElement(\"style\");return e&&i.setAttribute(\"nonce\",e),i.appendChild(document.createTextNode(\"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(i)},1)}},E=e=>(e||(e=window.matchMedia(I)),e.matches?\"dark\":\"light\");export{J as ThemeProvider,z as useTheme};\n","import {\n type Location,\n type NavigateFunction,\n type Params,\n type SetURLSearchParams,\n useLocation,\n useNavigate,\n useParams,\n useSearchParams,\n} from \"react-router\";\n\nexport type ExposedComponentProps = {\n location: Location;\n navigate: NavigateFunction;\n searchParams: URLSearchParams;\n setSearchParams: SetURLSearchParams;\n params: Params;\n};\n\nexport const useExposedProps = (): ExposedComponentProps => {\n const location = useLocation();\n const navigate = useNavigate();\n const [searchParams, setSearchParams] = useSearchParams();\n const params = useParams();\n\n return { location, navigate, params, searchParams, setSearchParams };\n};\n"],"names":["emptyComponents","MDXContext","React","useMDXComponents","components","contextComponents","MDXProvider","properties","allComponents","M","i","s","a","l","d","w","p","n","k","S","f","R","b","I","O","x","t","U","z","J","V","N","H","T","y","E","o","r","v","C","W","P","L","g","D","A","Q","_","useExposedProps","location","useLocation","navigate","useNavigate","searchParams","setSearchParams","useSearchParams","params","useParams"],"mappings":";;;AA0BA,MAAMA,IAAkB,CAAA,GAElBC,IAAaC,EAAM,cAAcF,CAAe;AAU/C,SAASG,EAAiBC,GAAY;AAC3C,QAAMC,IAAoBH,EAAM,WAAWD,CAAU;AAGrD,SAAOC,EAAM;AAAA,IACX,WAAY;AAEV,aAAI,OAAOE,KAAe,aACjBA,EAAWC,CAAiB,IAG9B,EAAC,GAAGA,GAAmB,GAAGD,EAAU;AAAA,IAC7C;AAAA,IACA,CAACC,GAAmBD,CAAU;AAAA,EAClC;AACA;AAWO,SAASE,EAAYC,GAAY;AAEtC,MAAIC;AAEJ,SAAID,EAAW,uBACbC,IACE,OAAOD,EAAW,cAAe,aAC7BA,EAAW,WAAWP,CAAe,IACrCO,EAAW,cAAcP,IAE/BQ,IAAgBL,EAAiBI,EAAW,UAAU,GAGjDL,EAAM;AAAA,IACXD,EAAW;AAAA,IACX,EAAC,OAAOO,EAAa;AAAA,IACrBD,EAAW;AAAA,EACf;AACA;AClFqC,IAAIE,IAAE,CAAC,GAAEC,GAAEC,GAAE,GAAE,GAAEC,GAAEC,GAAE,MAAI;AAAC,MAAIC,IAAE,SAAS,iBAAgBC,IAAE,CAAC,SAAQ,MAAM;AAAE,WAASC,EAAEC,GAAE;AAAC,KAAC,MAAM,QAAQ,CAAC,IAAE,IAAE,CAAC,CAAC,GAAG,QAAQ,OAAG;AAAC,UAAIC,IAAE,MAAI,SAAQC,IAAED,KAAGN,IAAE,EAAE,IAAI,CAAAQ,MAAGR,EAAEQ,CAAC,KAAGA,CAAC,IAAE;AAAE,MAAAF,KAAGJ,EAAE,UAAU,OAAO,GAAGK,CAAC,GAAEL,EAAE,U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E,GAAU,QAAAK,GAAQ,cAAAH,GAAc,iBAAAC,EAAA;AACrD;","x_google_ignoreList":[0,1]}
|
package/lib/zudoku.auth-auth0.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as o } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { PublicClientApplication as A, EventType as f } from "@azure/msal-browser";
|
|
3
|
-
import { E as I } from "./index-
|
|
3
|
+
import { E as I } from "./index-BruDSPOJ.js";
|
|
4
4
|
import { C as T } from "./ClientOnly-E7hGysn1.js";
|
|
5
|
-
import { j as S } from "./ZudokuContext-
|
|
6
|
-
import { C, A as c } from "./errors-
|
|
7
|
-
import { C as k, O as w } from "./OAuthErrorPage-
|
|
8
|
-
import { u as h } from "./hook-
|
|
5
|
+
import { j as S } from "./ZudokuContext-Coxa0DfE.js";
|
|
6
|
+
import { C, A as c } from "./errors-BQk2rSTP.js";
|
|
7
|
+
import { C as k, O as w } from "./OAuthErrorPage-CSYvzsNJ.js";
|
|
8
|
+
import { u as h } from "./hook-DEPqwjke.js";
|
|
9
9
|
const u = "/oauth/callback";
|
|
10
10
|
class y extends C {
|
|
11
11
|
msalInstance;
|
package/lib/zudoku.auth-clerk.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as l } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { LogOutIcon as f } from "lucide-react";
|
|
3
|
-
import { S as w, a as p, b as v } from "./SignUp-
|
|
4
|
-
import { u as n } from "./hook-
|
|
3
|
+
import { S as w, a as p, b as v } from "./SignUp-ckLqfC6h.js";
|
|
4
|
+
import { u as n } from "./hook-DEPqwjke.js";
|
|
5
5
|
const b = ({
|
|
6
6
|
clerkPubKey: d,
|
|
7
7
|
jwtTemplateName: m,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as D } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { g as Le } from "./invariant-Bm-FVUQE.js";
|
|
3
|
-
import { E as Ue } from "./index-
|
|
3
|
+
import { E as Ue } from "./index-BruDSPOJ.js";
|
|
4
4
|
import { C as xe } from "./ClientOnly-E7hGysn1.js";
|
|
5
|
-
import { j as Ce } from "./ZudokuContext-
|
|
6
|
-
import { C as Ie, O as re, A as R } from "./errors-
|
|
7
|
-
import { C as je, O as Oe } from "./OAuthErrorPage-
|
|
8
|
-
import { u as S } from "./hook-
|
|
5
|
+
import { j as Ce } from "./ZudokuContext-Coxa0DfE.js";
|
|
6
|
+
import { C as Ie, O as re, A as R } from "./errors-BQk2rSTP.js";
|
|
7
|
+
import { C as je, O as Oe } from "./OAuthErrorPage-CSYvzsNJ.js";
|
|
8
|
+
import { u as S } from "./hook-DEPqwjke.js";
|
|
9
9
|
var J = { exports: {} }, De = J.exports, oe;
|
|
10
10
|
function Je() {
|
|
11
11
|
return oe || (oe = 1, function(t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createClient as l } from "@supabase/supabase-js";
|
|
2
|
-
import { C as g, A as p } from "./errors-
|
|
3
|
-
import { u as r } from "./hook-
|
|
2
|
+
import { C as g, A as p } from "./errors-BQk2rSTP.js";
|
|
3
|
+
import { u as r } from "./hook-DEPqwjke.js";
|
|
4
4
|
class f extends g {
|
|
5
5
|
client;
|
|
6
6
|
provider;
|
package/lib/zudoku.components.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./RouteGuard-
|
|
2
|
-
import "./
|
|
3
|
-
import "./chunk-QMGIS6GS-
|
|
4
|
-
import "./hook-
|
|
5
|
-
import "./Slot-
|
|
6
|
-
import { e as d, f as h, j as k, B as l, m as S, C as B, i as c, H as y, c as E, L as g, M as H, g as L, R as M, d as R, S as T, h as Z, T as f, Z as A, b, l as j, k as v, n as w, u as x } from "./index-
|
|
1
|
+
import "./RouteGuard-D17dUEM_.js";
|
|
2
|
+
import "./useExposedProps-DUoV7MCU.js";
|
|
3
|
+
import "./chunk-QMGIS6GS-CdEm9pzB.js";
|
|
4
|
+
import "./hook-DEPqwjke.js";
|
|
5
|
+
import "./Slot-CkWazhCn.js";
|
|
6
|
+
import { e as d, f as h, j as k, B as l, m as S, C as B, i as c, H as y, c as E, L as g, M as H, g as L, R as M, d as R, S as T, h as Z, T as f, Z as A, b, l as j, k as v, n as w, u as x } from "./index-BruDSPOJ.js";
|
|
7
7
|
import "./ui/Button.js";
|
|
8
8
|
import "./ui/Callout.js";
|
|
9
|
-
import "./ZudokuContext-
|
|
9
|
+
import "./ZudokuContext-Coxa0DfE.js";
|
|
10
10
|
import "./ClientOnly-E7hGysn1.js";
|
|
11
11
|
import "./Spinner-mNLZ6awP.js";
|
|
12
12
|
export {
|
package/lib/zudoku.hooks.js
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { z as p, u as
|
|
2
|
-
import { a as
|
|
3
|
-
import { c as n, d
|
|
4
|
-
import { C as
|
|
5
|
-
import {
|
|
6
|
-
import { useState as i, useEffect as E } from "react";
|
|
1
|
+
import { z as m, a as p, u as c } from "./useExposedProps-DUoV7MCU.js";
|
|
2
|
+
import { a as f } from "./hook-DEPqwjke.js";
|
|
3
|
+
import { c as n, d } from "./ZudokuContext-Coxa0DfE.js";
|
|
4
|
+
import { C as k } from "./ZudokuContext-Coxa0DfE.js";
|
|
5
|
+
import { useState as E, useEffect as i } from "react";
|
|
7
6
|
function C(e, s) {
|
|
8
|
-
const t = n(), [r, o] =
|
|
9
|
-
return
|
|
7
|
+
const t = n(), [r, o] = E();
|
|
8
|
+
return i(() => t.addEventListener(e, (...u) => {
|
|
10
9
|
if (s) {
|
|
11
|
-
const
|
|
12
|
-
o(
|
|
10
|
+
const a = s(...u);
|
|
11
|
+
o(a);
|
|
13
12
|
} else
|
|
14
13
|
o(u);
|
|
15
14
|
}), [t, e, s]), r;
|
|
16
15
|
}
|
|
17
|
-
const
|
|
16
|
+
const A = C, v = m, z = p, L = c, M = f, P = n, S = d;
|
|
18
17
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
k as CACHE_KEYS,
|
|
19
|
+
M as useAuth,
|
|
20
|
+
S as useCache,
|
|
21
|
+
A as useEvent,
|
|
22
|
+
z as useExposedProps,
|
|
23
|
+
L as useMDXComponents,
|
|
24
|
+
v as useTheme,
|
|
25
|
+
P as useZudoku
|
|
27
26
|
};
|
|
28
27
|
//# sourceMappingURL=zudoku.hooks.js.map
|
package/lib/zudoku.hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zudoku.hooks.js","sources":["../src/lib/hooks/useEvent.ts","../src/lib/hooks/index.ts"],"sourcesContent":["import { useEffect, useState } from \"react\";\nimport { useZudoku } from \"../components/context/ZudokuContext.js\";\nimport type { ZudokuEvents } from \"../core/ZudokuContext.js\";\n\ntype EventParameters<Event extends keyof ZudokuEvents> = Parameters<\n ZudokuEvents[Event]\n>;\n\n/**\n * Hook to subscribe to Zudoku events with automatic cleanup\n * @param event The event to subscribe to\n * @param callback Optional callback to be called when the event is emitted\n * @returns The latest event data if no callback is provided, or the callback's return value if it returns something\n */\nexport function useEvent<E extends keyof ZudokuEvents>(\n event: E,\n): EventParameters<E>;\nexport function useEvent<E extends keyof ZudokuEvents, R>(\n event: E,\n callback: (...args: EventParameters<E>) => R,\n): R;\nexport function useEvent<E extends keyof ZudokuEvents, R>(\n event: E,\n callback?: (...args: EventParameters<E>) => R,\n) {\n const zudoku = useZudoku();\n const [latestData, setLatestData] = useState<R | EventParameters<E>>();\n\n useEffect(() => {\n return zudoku.addEventListener(event, ((...args: EventParameters<E>) => {\n if (callback) {\n const result = callback(...args);\n setLatestData(result);\n } else {\n setLatestData(args);\n }\n }) as ZudokuEvents[E]);\n }, [zudoku, event, callback]);\n\n return latestData;\n}\n","import { useMDXComponents as useMDXComponentsImport } from \"@mdx-js/react\";\nimport { useTheme as useThemeImport } from \"next-themes\";\nimport { useAuth as useAuthImport } from \"../authentication/hook.js\";\nimport { CACHE_KEYS, useCache as useCacheImport } from \"../components/cache.js\";\nimport { useZudoku as useZudokuImport } from \"../components/context/ZudokuContext.js\";\nimport { useExposedProps as useExposedPropsImport } from \"../util/useExposedProps.js\";\nimport { useEvent as useEventImport } from \"./useEvent.js\";\n\nexport const useEvent = /*@__PURE__*/ useEventImport;\nexport const useTheme = /*@__PURE__*/ useThemeImport;\nexport const useExposedProps = /*@__PURE__*/ useExposedPropsImport;\nexport const useMDXComponents = /*@__PURE__*/ useMDXComponentsImport;\nexport const useAuth = /*@__PURE__*/ useAuthImport;\nexport const useZudoku = /*@__PURE__*/ useZudokuImport;\nexport const useCache = /*@__PURE__*/ useCacheImport;\nexport { CACHE_KEYS };\n"],"names":["useEvent","event","callback","zudoku","useZudoku","latestData","setLatestData","useState","useEffect","args","result","useEventImport","useTheme","useThemeImport","useExposedProps","useExposedPropsImport","useMDXComponents","useMDXComponentsImport","useAuth","useAuthImport","useZudokuImport","useCache","useCacheImport"],"mappings":"
|
|
1
|
+
{"version":3,"file":"zudoku.hooks.js","sources":["../src/lib/hooks/useEvent.ts","../src/lib/hooks/index.ts"],"sourcesContent":["import { useEffect, useState } from \"react\";\nimport { useZudoku } from \"../components/context/ZudokuContext.js\";\nimport type { ZudokuEvents } from \"../core/ZudokuContext.js\";\n\ntype EventParameters<Event extends keyof ZudokuEvents> = Parameters<\n ZudokuEvents[Event]\n>;\n\n/**\n * Hook to subscribe to Zudoku events with automatic cleanup\n * @param event The event to subscribe to\n * @param callback Optional callback to be called when the event is emitted\n * @returns The latest event data if no callback is provided, or the callback's return value if it returns something\n */\nexport function useEvent<E extends keyof ZudokuEvents>(\n event: E,\n): EventParameters<E>;\nexport function useEvent<E extends keyof ZudokuEvents, R>(\n event: E,\n callback: (...args: EventParameters<E>) => R,\n): R;\nexport function useEvent<E extends keyof ZudokuEvents, R>(\n event: E,\n callback?: (...args: EventParameters<E>) => R,\n) {\n const zudoku = useZudoku();\n const [latestData, setLatestData] = useState<R | EventParameters<E>>();\n\n useEffect(() => {\n return zudoku.addEventListener(event, ((...args: EventParameters<E>) => {\n if (callback) {\n const result = callback(...args);\n setLatestData(result);\n } else {\n setLatestData(args);\n }\n }) as ZudokuEvents[E]);\n }, [zudoku, event, callback]);\n\n return latestData;\n}\n","import { useMDXComponents as useMDXComponentsImport } from \"@mdx-js/react\";\nimport { useTheme as useThemeImport } from \"next-themes\";\nimport { useAuth as useAuthImport } from \"../authentication/hook.js\";\nimport { CACHE_KEYS, useCache as useCacheImport } from \"../components/cache.js\";\nimport { useZudoku as useZudokuImport } from \"../components/context/ZudokuContext.js\";\nimport { useExposedProps as useExposedPropsImport } from \"../util/useExposedProps.js\";\nimport { useEvent as useEventImport } from \"./useEvent.js\";\n\nexport const useEvent = /*@__PURE__*/ useEventImport;\nexport const useTheme = /*@__PURE__*/ useThemeImport;\nexport const useExposedProps = /*@__PURE__*/ useExposedPropsImport;\nexport const useMDXComponents = /*@__PURE__*/ useMDXComponentsImport;\nexport const useAuth = /*@__PURE__*/ useAuthImport;\nexport const useZudoku = /*@__PURE__*/ useZudokuImport;\nexport const useCache = /*@__PURE__*/ useCacheImport;\nexport { CACHE_KEYS };\n"],"names":["useEvent","event","callback","zudoku","useZudoku","latestData","setLatestData","useState","useEffect","args","result","useEventImport","useTheme","useThemeImport","useExposedProps","useExposedPropsImport","useMDXComponents","useMDXComponentsImport","useAuth","useAuthImport","useZudokuImport","useCache","useCacheImport"],"mappings":";;;;;AAqBO,SAASA,EACdC,GACAC,GACA;AACA,QAAMC,IAASC,EAAA,GACT,CAACC,GAAYC,CAAa,IAAIC,EAAA;AAEpC,SAAAC,EAAU,MACDL,EAAO,iBAAiBF,GAAQ,IAAIQ,MAA6B;AACtE,QAAIP,GAAU;AACZ,YAAMQ,IAASR,EAAS,GAAGO,CAAI;AAC/B,MAAAH,EAAcI,CAAM;AAAA,IACtB;AACE,MAAAJ,EAAcG,CAAI;AAAA,EAEtB,CAAqB,GACpB,CAACN,GAAQF,GAAOC,CAAQ,CAAC,GAErBG;AACT;AChCO,MAAML,IAAyBW,GACzBC,IAAyBC,GACzBC,IAAgCC,GAChCC,IAAiCC,GACjCC,IAAwBC,GACxBf,IAA0BgB,GAC1BC,IAAyBC;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { s as f } from "./index-
|
|
3
|
-
import {
|
|
4
|
-
import { b as x, j as d } from "./ZudokuContext-
|
|
5
|
-
import { H as v } from "./RouteGuard-
|
|
6
|
-
import { L as y } from "./index-
|
|
7
|
-
import { u as N } from "./hook-
|
|
8
|
-
import { H as k, M as S } from "./Slot-
|
|
2
|
+
import { s as f } from "./index-BB_X3XYb.js";
|
|
3
|
+
import { u as b, m as j } from "./chunk-QMGIS6GS-CdEm9pzB.js";
|
|
4
|
+
import { b as x, j as d } from "./ZudokuContext-Coxa0DfE.js";
|
|
5
|
+
import { H as v } from "./RouteGuard-D17dUEM_.js";
|
|
6
|
+
import { L as y } from "./index-BruDSPOJ.js";
|
|
7
|
+
import { u as N } from "./hook-DEPqwjke.js";
|
|
8
|
+
import { H as k, M as S } from "./Slot-CkWazhCn.js";
|
|
9
9
|
const w = ({
|
|
10
10
|
items: o,
|
|
11
11
|
filterCatalogItems: r = (n) => n,
|