zudoku 0.53.0 → 0.53.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/app/demo.js +14 -0
- package/dist/app/demo.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +2 -0
- package/dist/lib/authentication/components/SignIn.js +4 -3
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +4 -2
- package/dist/lib/authentication/providers/openid.js +11 -5
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +8 -5
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +5 -0
- package/dist/lib/components/TopNavigation.js +16 -12
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +2 -1
- package/dist/lib/core/ZudokuContext.js +14 -1
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +3 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/lib/{MdxPage-swXPJ0gf.js → MdxPage-8UuEK446.js} +37 -37
- package/lib/MdxPage-8UuEK446.js.map +1 -0
- package/lib/{OasProvider-CDAM3TB1.js → OasProvider-BsWpguVO.js} +2 -2
- package/lib/{OasProvider-CDAM3TB1.js.map → OasProvider-BsWpguVO.js.map} +1 -1
- package/lib/{OperationList-C9Hb9ql8.js → OperationList-PnZbf3b2.js} +6 -6
- package/lib/{OperationList-C9Hb9ql8.js.map → OperationList-PnZbf3b2.js.map} +1 -1
- package/lib/{Pagination-VGlgeCmS.js → Pagination-DY7gCrm4.js} +2 -2
- package/lib/{Pagination-VGlgeCmS.js.map → Pagination-DY7gCrm4.js.map} +1 -1
- package/lib/{SchemaList-BAbh1BXO.js → SchemaList-D6k4DKWH.js} +3 -3
- package/lib/{SchemaList-BAbh1BXO.js.map → SchemaList-D6k4DKWH.js.map} +1 -1
- package/lib/{SchemaView-C2Io712T.js → SchemaView-BhgJ9WB8.js} +3 -3
- package/lib/{SchemaView-C2Io712T.js.map → SchemaView-BhgJ9WB8.js.map} +1 -1
- package/lib/SignUp-CpUD6DUM.js +56 -0
- package/lib/SignUp-CpUD6DUM.js.map +1 -0
- package/lib/{circular-B42RaanD.js → circular-BUMjK3JF.js} +2 -2
- package/lib/{circular-B42RaanD.js.map → circular-BUMjK3JF.js.map} +1 -1
- package/lib/{createServer-BKFsRuuk.js → createServer-BPz8ZCrd.js} +3 -3
- package/lib/createServer-BPz8ZCrd.js.map +1 -0
- package/lib/{errors-CF2X_x5o.js → errors-DY-qOx9n.js} +3 -3
- package/lib/{errors-CF2X_x5o.js.map → errors-DY-qOx9n.js.map} +1 -1
- package/lib/{index-CLy1XyH0.js → index-C_xVKbf9.js} +1285 -1240
- package/lib/index-C_xVKbf9.js.map +1 -0
- package/lib/{index-B6Re5_cx.js → index-dVBKCNMa.js} +123 -123
- package/lib/{index-B6Re5_cx.js.map → index-dVBKCNMa.js.map} +1 -1
- package/lib/zudoku.auth-azureb2c.js +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +114 -105
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +271 -265
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +4 -4
- package/src/app/demo.tsx +16 -1
- package/src/lib/authentication/authentication.ts +2 -2
- package/src/lib/authentication/components/SignIn.tsx +5 -12
- package/src/lib/authentication/providers/openid.tsx +23 -4
- package/src/lib/components/MobileTopNavigation.tsx +56 -7
- package/src/lib/components/TopNavigation.tsx +30 -14
- package/src/lib/core/ZudokuContext.ts +21 -0
- package/src/lib/plugins/api-keys/index.tsx +1 -1
- package/src/lib/plugins/markdown/MdxPage.tsx +3 -2
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/index.tsx +1 -1
- package/dist/flat-config.d.ts +0 -325
- package/lib/MdxPage-swXPJ0gf.js.map +0 -1
- package/lib/SignUp-5RUdVhnq.js +0 -63
- package/lib/SignUp-5RUdVhnq.js.map +0 -1
- package/lib/createServer-BKFsRuuk.js.map +0 -1
- package/lib/index-CLy1XyH0.js.map +0 -1
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { s as
|
|
3
|
-
import { H as
|
|
4
|
-
import { EditIcon as
|
|
5
|
-
import { useEffect as
|
|
6
|
-
import { B as
|
|
7
|
-
import { T as
|
|
8
|
-
import { P as
|
|
9
|
-
import { T as
|
|
10
|
-
import { a as
|
|
11
|
-
import { u as
|
|
12
|
-
const
|
|
2
|
+
import { s as T } from "./index-CcV90rin.js";
|
|
3
|
+
import { H as M } from "./RouteGuard-CbKd7_9h.js";
|
|
4
|
+
import { EditIcon as P } from "lucide-react";
|
|
5
|
+
import { useEffect as L } from "react";
|
|
6
|
+
import { B as S } from "./Button-BE9IVkWV.js";
|
|
7
|
+
import { T as k, C, H as h } from "./Slot-DwZlQ-vX.js";
|
|
8
|
+
import { P as H } from "./Pagination-DY7gCrm4.js";
|
|
9
|
+
import { T as D } from "./Toc-WCmwFkX-.js";
|
|
10
|
+
import { a as I, b as R } from "./hook-Bd0yS8M0.js";
|
|
11
|
+
import { u as A } from "./index-ClhS5TxS.js";
|
|
12
|
+
const _ = {
|
|
13
13
|
h2: ({ children: t, id: s }) => /* @__PURE__ */ e.jsx(h, { level: 2, id: s, registerNavigationAnchor: !0, children: t }),
|
|
14
14
|
h3: ({ children: t, id: s }) => /* @__PURE__ */ e.jsx(h, { level: 3, id: s, registerNavigationAnchor: !0, children: t })
|
|
15
|
-
},
|
|
15
|
+
}, Q = ({
|
|
16
16
|
mdxComponent: t,
|
|
17
17
|
frontmatter: s = {},
|
|
18
18
|
defaultOptions: r,
|
|
19
|
-
__filepath:
|
|
20
|
-
tableOfContents:
|
|
21
|
-
excerpt:
|
|
19
|
+
__filepath: n,
|
|
20
|
+
tableOfContents: a,
|
|
21
|
+
excerpt: u
|
|
22
22
|
}) => {
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
return
|
|
23
|
+
const v = I()?.categoryLabel, o = s.title, p = s.description ?? u, c = s.category ?? v, w = s.toc === !1 || r?.toc === !1, b = o ?? a.find((i) => i.depth === 1)?.value, N = s.disable_pager ?? s.disablePager ?? r?.disablePager ?? !1, f = s.showLastModified ?? r?.showLastModified ?? !0, d = s.lastModifiedTime ? new Date(s.lastModifiedTime) : null, l = s.suggestEdit !== !1 && (s.suggestEdit ?? r?.suggestEdit), x = l ? l.url.replaceAll("{filePath}", n) : null, y = l ? l.text || "Edit this page" : null, j = a.find((i) => i.depth === 1)?.children ?? // if `title` is provided by frontmatter it does not appear in the table of contents
|
|
24
|
+
a.filter((i) => i.depth === 2), E = !w && j.length > 0, { prev: g, next: m } = R();
|
|
25
|
+
return L(() => {
|
|
26
26
|
if (process.env.NODE_ENV === "development")
|
|
27
27
|
return window.__getReactRefreshIgnoredExports = ({ id: i }) => {
|
|
28
|
-
if (i.endsWith(
|
|
28
|
+
if (i.endsWith(n))
|
|
29
29
|
return ["frontmatter", "tableOfContents"];
|
|
30
30
|
}, () => {
|
|
31
31
|
window.__getReactRefreshIgnoredExports = void 0;
|
|
32
32
|
};
|
|
33
|
-
}, [
|
|
33
|
+
}, [n]), /* @__PURE__ */ e.jsxs(
|
|
34
34
|
"div",
|
|
35
35
|
{
|
|
36
36
|
className: "grid grid-cols-1 xl:grid-cols-(--sidecar-grid-cols) gap-8 justify-between",
|
|
37
37
|
"data-pagefind-filter": "section:markdown",
|
|
38
38
|
"data-pagefind-meta": "section:markdown",
|
|
39
39
|
children: [
|
|
40
|
-
/* @__PURE__ */ e.jsxs(
|
|
41
|
-
/* @__PURE__ */ e.jsx("title", { children:
|
|
40
|
+
/* @__PURE__ */ e.jsxs(M, { children: [
|
|
41
|
+
/* @__PURE__ */ e.jsx("title", { children: b }),
|
|
42
42
|
p && /* @__PURE__ */ e.jsx("meta", { name: "description", content: p })
|
|
43
43
|
] }),
|
|
44
|
-
/* @__PURE__ */ e.jsxs(
|
|
44
|
+
/* @__PURE__ */ e.jsxs(k, { className: "max-w-full xl:w-full xl:max-w-3xl flex-1 shrink pt-(--padding-content-top)", children: [
|
|
45
45
|
(c || o) && /* @__PURE__ */ e.jsxs("header", { children: [
|
|
46
|
-
c && /* @__PURE__ */ e.jsx(
|
|
47
|
-
o && /* @__PURE__ */ e.jsx(h, { level: 1, id:
|
|
46
|
+
c && /* @__PURE__ */ e.jsx(C, { children: c }),
|
|
47
|
+
o && /* @__PURE__ */ e.jsx(h, { level: 1, id: T(o), children: o })
|
|
48
48
|
] }),
|
|
49
49
|
/* @__PURE__ */ e.jsx(
|
|
50
50
|
t,
|
|
51
51
|
{
|
|
52
|
-
components: { ...
|
|
52
|
+
components: { ...A(), ..._ }
|
|
53
53
|
}
|
|
54
54
|
),
|
|
55
55
|
/* @__PURE__ */ e.jsx("div", { className: "h-16" }),
|
|
56
|
-
f && d ||
|
|
56
|
+
f && d || x ? /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-muted-foreground ", children: [
|
|
57
57
|
/* @__PURE__ */ e.jsx("div", {}),
|
|
58
58
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
59
|
-
/* @__PURE__ */ e.jsx("div", { children:
|
|
59
|
+
/* @__PURE__ */ e.jsx("div", { children: x && /* @__PURE__ */ e.jsx(S, { asChild: !0, variant: "ghost", size: "sm", children: /* @__PURE__ */ e.jsxs(
|
|
60
60
|
"a",
|
|
61
61
|
{
|
|
62
|
-
href:
|
|
62
|
+
href: x,
|
|
63
63
|
target: "_blank",
|
|
64
64
|
rel: "noopener noreferrer",
|
|
65
65
|
className: "flex items-center gap-1",
|
|
66
66
|
children: [
|
|
67
|
-
/* @__PURE__ */ e.jsx(
|
|
68
|
-
|
|
67
|
+
/* @__PURE__ */ e.jsx(P, { size: 12 }),
|
|
68
|
+
y
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
71
|
) }) }),
|
|
@@ -87,24 +87,24 @@ const A = {
|
|
|
87
87
|
) })
|
|
88
88
|
] })
|
|
89
89
|
] }) : null,
|
|
90
|
-
!
|
|
90
|
+
!N && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
91
91
|
/* @__PURE__ */ e.jsx("div", { className: "h-px bg-border mt-2 mb-6" }),
|
|
92
92
|
/* @__PURE__ */ e.jsx(
|
|
93
|
-
|
|
93
|
+
H,
|
|
94
94
|
{
|
|
95
95
|
prev: g ? { to: g.id, label: g.label } : void 0,
|
|
96
|
-
next:
|
|
96
|
+
next: m ? { to: m.id, label: m.label } : void 0,
|
|
97
97
|
className: "mb-10"
|
|
98
98
|
}
|
|
99
99
|
)
|
|
100
100
|
] })
|
|
101
101
|
] }),
|
|
102
|
-
/* @__PURE__ */ e.jsx("div", { className: "hidden xl:block", children:
|
|
102
|
+
/* @__PURE__ */ e.jsx("div", { className: "hidden xl:block", children: E && /* @__PURE__ */ e.jsx(D, { entries: j }) })
|
|
103
103
|
]
|
|
104
104
|
}
|
|
105
105
|
);
|
|
106
106
|
};
|
|
107
107
|
export {
|
|
108
|
-
|
|
108
|
+
Q as MdxPage
|
|
109
109
|
};
|
|
110
|
-
//# sourceMappingURL=MdxPage-
|
|
110
|
+
//# sourceMappingURL=MdxPage-8UuEK446.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MdxPage-8UuEK446.js","sources":["../src/lib/plugins/markdown/MdxPage.tsx"],"sourcesContent":["import { useMDXComponents } from \"@mdx-js/react\";\nimport slugify from \"@sindresorhus/slugify\";\nimport { Helmet } from \"@zudoku/react-helmet-async\";\nimport { EditIcon } from \"lucide-react\";\nimport { type PropsWithChildren, useEffect } from \"react\";\nimport { Button } from \"zudoku/ui/Button.js\";\nimport { CategoryHeading } from \"../../components/CategoryHeading.js\";\nimport { Heading } from \"../../components/Heading.js\";\nimport { Pagination } from \"../../components/Pagination.js\";\nimport { Typography } from \"../../components/Typography.js\";\nimport { Toc } from \"../../components/navigation/Toc.js\";\nimport {\n useCurrentItem,\n usePrevNext,\n} from \"../../components/navigation/utils.js\";\nimport type { MdxComponentsType } from \"../../util/MdxComponents.js\";\nimport { type MarkdownPluginDefaultOptions, type MDXImport } from \"./index.js\";\n\ndeclare global {\n interface Window {\n __getReactRefreshIgnoredExports?: (args: {\n id: string;\n }) => string[] | undefined;\n }\n}\n\nconst MarkdownHeadings = {\n h2: ({ children, id }) => (\n <Heading level={2} id={id} registerNavigationAnchor>\n {children}\n </Heading>\n ),\n h3: ({ children, id }) => (\n <Heading level={3} id={id} registerNavigationAnchor>\n {children}\n </Heading>\n ),\n} satisfies MdxComponentsType;\n\nexport const MdxPage = ({\n mdxComponent: MdxComponent,\n frontmatter = {},\n defaultOptions,\n __filepath,\n tableOfContents,\n excerpt,\n}: PropsWithChildren<\n Omit<MDXImport, \"default\"> & {\n mdxComponent: MDXImport[\"default\"];\n defaultOptions?: MarkdownPluginDefaultOptions;\n }\n>) => {\n const categoryTitle = useCurrentItem()?.categoryLabel;\n\n const title = frontmatter.title;\n const description = frontmatter.description ?? excerpt;\n const category = frontmatter.category ?? categoryTitle;\n const hideToc = frontmatter.toc === false || defaultOptions?.toc === false;\n const pageTitle =\n title ?? tableOfContents.find((item) => item.depth === 1)?.value;\n const hidePager =\n frontmatter.disable_pager ??\n frontmatter.disablePager ??\n defaultOptions?.disablePager ??\n false;\n\n const showLastModified =\n frontmatter.showLastModified ?? defaultOptions?.showLastModified ?? true;\n\n const lastModifiedDate = frontmatter.lastModifiedTime\n ? new Date(frontmatter.lastModifiedTime)\n : null;\n\n const editConfig =\n frontmatter.suggestEdit !== false &&\n (frontmatter.suggestEdit ?? defaultOptions?.suggestEdit);\n\n const editUrl = editConfig\n ? editConfig.url.replaceAll(\"{filePath}\", __filepath)\n : null;\n const editText = editConfig ? editConfig.text || \"Edit this page\" : null;\n\n const tocEntries =\n tableOfContents.find((item) => item.depth === 1)?.children ??\n // if `title` is provided by frontmatter it does not appear in the table of contents\n tableOfContents.filter((item) => item.depth === 2);\n\n const showToc = !hideToc && tocEntries.length > 0;\n\n const { prev, next } = usePrevNext();\n\n useEffect(() => {\n if (process.env.NODE_ENV === \"development\") {\n window.__getReactRefreshIgnoredExports = ({ id }) => {\n if (!id.endsWith(__filepath)) return;\n\n return [\"frontmatter\", \"tableOfContents\"];\n };\n\n return () => {\n window.__getReactRefreshIgnoredExports = undefined;\n };\n }\n }, [__filepath]);\n\n return (\n <div\n className=\"grid grid-cols-1 xl:grid-cols-(--sidecar-grid-cols) gap-8 justify-between\"\n data-pagefind-filter=\"section:markdown\"\n data-pagefind-meta=\"section:markdown\"\n >\n <Helmet>\n <title>{pageTitle}</title>\n {description && <meta name=\"description\" content={description} />}\n </Helmet>\n <Typography className=\"max-w-full xl:w-full xl:max-w-3xl flex-1 shrink pt-(--padding-content-top)\">\n {(category || title) && (\n <header>\n {category && <CategoryHeading>{category}</CategoryHeading>}\n {title && (\n <Heading level={1} id={slugify(title)}>\n {title}\n </Heading>\n )}\n </header>\n )}\n <MdxComponent\n components={{ ...useMDXComponents(), ...MarkdownHeadings }}\n />\n <div className=\"h-16\" />\n {(showLastModified && lastModifiedDate) || editUrl ? (\n <div className=\"flex justify-between text-xs text-muted-foreground \">\n <div />\n <div className=\"flex items-center gap-2\">\n <div>\n {editUrl && (\n <Button asChild variant=\"ghost\" size=\"sm\">\n <a\n href={editUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"flex items-center gap-1\"\n >\n <EditIcon size={12} />\n {editText}\n </a>\n </Button>\n )}\n </div>\n <div>\n {showLastModified && lastModifiedDate && (\n <div\n title={lastModifiedDate.toLocaleString(undefined, {\n dateStyle: \"full\",\n timeStyle: \"medium\",\n })}\n >\n Last modified on{\" \"}\n <time dateTime={lastModifiedDate.toISOString()}>\n {lastModifiedDate.toLocaleDateString(undefined, {\n dateStyle: \"long\",\n })}\n </time>\n </div>\n )}\n </div>\n </div>\n </div>\n ) : null}\n {!hidePager && (\n <>\n <div className=\"h-px bg-border mt-2 mb-6\" />\n <Pagination\n prev={prev ? { to: prev.id, label: prev.label } : undefined}\n next={next ? { to: next.id, label: next.label } : undefined}\n className=\"mb-10\"\n />\n </>\n )}\n </Typography>\n <div className=\"hidden xl:block\">\n {showToc && <Toc entries={tocEntries} />}\n </div>\n </div>\n );\n};\n"],"names":["MarkdownHeadings","children","id","jsx","Heading","MdxPage","MdxComponent","frontmatter","defaultOptions","__filepath","tableOfContents","excerpt","categoryTitle","useCurrentItem","title","description","category","hideToc","pageTitle","item","hidePager","showLastModified","lastModifiedDate","editConfig","editUrl","editText","tocEntries","showToc","prev","next","usePrevNext","useEffect","jsxs","Helmet","Typography","CategoryHeading","slugify","useMDXComponents","Button","EditIcon","Fragment","Pagination","Toc"],"mappings":";;;;;;;;;;;AA0BA,MAAMA,IAAmB;AAAA,EACvB,IAAI,CAAC,EAAE,UAAAC,GAAU,IAAAC,EAAG,MACjBC,gBAAAA,EAAA,IAAAC,GAAA,EAAQ,OAAO,GAAG,IAAAF,GAAQ,0BAAwB,IAChD,UAAAD,EACH,CAAA;AAAA,EAEF,IAAI,CAAC,EAAE,UAAAA,GAAU,IAAAC,EAAG,MACjBC,gBAAAA,EAAAA,IAAAC,GAAA,EAAQ,OAAO,GAAG,IAAAF,GAAQ,0BAAwB,IAChD,UAAAD,EACH,CAAA;AAEJ,GAEaI,IA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AEJ;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as s } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { useMemo as m } from "react";
|
|
3
3
|
import { O as l } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
|
|
4
|
-
import { d as j, O as c, G as O } from "./index-
|
|
4
|
+
import { d as j, O as c, G as O } from "./index-dVBKCNMa.js";
|
|
5
5
|
const d = (...r) => {
|
|
6
6
|
const e = r.filter((t) => !!t).map((t) => t.replace(/(^\/+|\/+$)/g, "")).join("/").replace(/(^\/+|\/+$)/g, "");
|
|
7
7
|
return e ? `/${e}` : "/";
|
|
@@ -32,4 +32,4 @@ const d = (...r) => {
|
|
|
32
32
|
export {
|
|
33
33
|
P as OasProvider
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=OasProvider-
|
|
35
|
+
//# sourceMappingURL=OasProvider-BsWpguVO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OasProvider-
|
|
1
|
+
{"version":3,"file":"OasProvider-BsWpguVO.js","sources":["../src/lib/util/joinPath.tsx","../src/lib/plugins/openapi/OasProvider.tsx"],"sourcesContent":["/**\n * @deprecated Use `joinUrl` instead.\n */\nexport const joinPath = (\n ...parts: Array<string | null | undefined | boolean>\n) => {\n const cleanPath = parts\n .filter((part): part is string => Boolean(part))\n .map((part) => part.replace(/(^\\/+|\\/+$)/g, \"\")) // Strip leading and trailing slashes\n .join(\"/\")\n .replace(/(^\\/+|\\/+$)/g, \"\");\n\n return cleanPath ? `/${cleanPath}` : \"/\";\n};\n","import { useMemo } from \"react\";\nimport { Outlet } from \"react-router\";\nimport { joinPath } from \"../../util/joinPath.js\";\nimport type { GraphQLClient } from \"./client/GraphQLClient.js\";\nimport { GraphQLProvider } from \"./client/GraphQLContext.js\";\nimport { OasConfigProvider } from \"./context.js\";\nimport { type OasPluginConfig } from \"./interfaces.js\";\nimport { getVersions } from \"./util/getRoutes.js\";\n\nexport const OasProvider = ({\n basePath,\n version,\n config,\n client,\n}: {\n basePath: string;\n version?: string;\n config: OasPluginConfig;\n client: GraphQLClient;\n}) => {\n const value = useMemo(() => {\n const versions = getVersions(config);\n const firstVersion = Object.values(config.input).at(0);\n const input =\n config.type === \"file\"\n ? {\n type: config.type,\n input: version ? config.input[version]! : firstVersion!,\n }\n : { type: config.type, input: config.input };\n\n return {\n config: {\n ...config,\n version: version ?? versions.at(0),\n versions: Object.fromEntries(\n versions.map((version) => [version, joinPath(basePath, version)]),\n ),\n ...input,\n },\n };\n }, [config, basePath, version]);\n\n return (\n <OasConfigProvider value={value}>\n <GraphQLProvider client={client}>\n <Outlet />\n </GraphQLProvider>\n </OasConfigProvider>\n );\n};\n"],"names":["joinPath","parts","cleanPath","part","OasProvider","basePath","version","config","client","value","useMemo","versions","getVersions","firstVersion","input","jsx","OasConfigProvider","GraphQLProvider","Outlet"],"mappings":";;;;AAGa,MAAAA,IAAW,IACnBC,MACA;AACG,QAAAC,IAAYD,EACf,OAAO,CAACE,MAAyB,EAAQA,CAAK,EAC9C,IAAI,CAACA,MAASA,EAAK,QAAQ,gBAAgB,EAAE,CAAC,EAC9C,KAAK,GAAG,EACR,QAAQ,gBAAgB,EAAE;AAEtB,SAAAD,IAAY,IAAIA,CAAS,KAAK;AACvC,GCJaE,IAAc,CAAC;AAAA,EAC1B,UAAAC;AAAA,EACA,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AACF,MAKM;AACE,QAAAC,IAAQC,EAAQ,MAAM;AACpB,UAAAC,IAAWC,EAAYL,CAAM,GAC7BM,IAAe,OAAO,OAAON,EAAO,KAAK,EAAE,GAAG,CAAC,GAC/CO,IACJP,EAAO,SAAS,SACZ;AAAA,MACE,MAAMA,EAAO;AAAA,MACb,OAAOD,IAAUC,EAAO,MAAMD,CAAO,IAAKO;AAAA,IAAA,IAE5C,EAAE,MAAMN,EAAO,MAAM,OAAOA,EAAO,MAAM;AAExC,WAAA;AAAA,MACL,QAAQ;AAAA,QACN,GAAGA;AAAA,QACH,SAASD,KAAWK,EAAS,GAAG,CAAC;AAAA,QACjC,UAAU,OAAO;AAAA,UACfA,EAAS,IAAI,CAACL,MAAY,CAACA,GAASN,EAASK,GAAUC,CAAO,CAAC,CAAC;AAAA,QAClE;AAAA,QACA,GAAGQ;AAAA,MAAA;AAAA,IAEP;AAAA,EACC,GAAA,CAACP,GAAQF,GAAUC,CAAO,CAAC;AAG5B,SAAAS,gBAAAA,EAAAA,IAACC,KAAkB,OAAAP,GACjB,UAAAM,gBAAAA,EAAA,IAACE,KAAgB,QAAAT,GACf,UAAAO,gBAAAA,EAAAA,IAACG,GAAO,CAAA,CAAA,EAAA,CACV,EACF,CAAA;AAEJ;"}
|
|
@@ -3,21 +3,21 @@ import { c as gr, u as Ia, l as Ua, r as La } from "./hook-Bd0yS8M0.js";
|
|
|
3
3
|
import { H as Fa } from "./RouteGuard-CbKd7_9h.js";
|
|
4
4
|
import { ChevronsUpDownIcon as Zn, CheckIcon as _a, CopyIcon as Ba, MinusIcon as Ha, PlusIcon as Ma, UnfoldVerticalIcon as za, FoldVerticalIcon as Wa, ChevronsDownUpIcon as Ja } from "lucide-react";
|
|
5
5
|
import { b as Va, c as Ga, a as Da } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
|
|
6
|
-
import { u as et, a as Ke, g as Me, e as vr, f as ea, C as ta, c as ra, b as dr, P as Qa, h as Ka, S as na, i as aa, j as oa, k as ia, l as sa, U as Ya } from "./index-
|
|
6
|
+
import { u as et, a as Ke, g as Me, e as vr, f as ea, C as ta, c as ra, b as dr, P as Qa, h as Ka, S as na, i as aa, j as oa, k as ia, l as sa, U as Ya } from "./index-dVBKCNMa.js";
|
|
7
7
|
import { I as Xa, S as la, M as _e, H as Fe, C as Za } from "./Slot-DwZlQ-vX.js";
|
|
8
|
-
import { P as eo } from "./Pagination-
|
|
8
|
+
import { P as eo } from "./Pagination-DY7gCrm4.js";
|
|
9
9
|
import { useTransition as ca, useState as ge, useRef as ua, useEffect as br, useLayoutEffect as to, useMemo as fa } from "react";
|
|
10
10
|
import { Button as pa } from "./ui/Button.js";
|
|
11
11
|
import { c as pe } from "./cn-wvCW-ho6.js";
|
|
12
12
|
import { VisuallyHidden as hr } from "@radix-ui/react-visually-hidden";
|
|
13
13
|
import { c as ro } from "./index-DI5SPFK9.js";
|
|
14
|
-
import { i as no, P as ao, E as Ur, a as oo, S as xr, b as io, g as so } from "./SchemaView-
|
|
14
|
+
import { i as no, P as ao, E as Ur, a as oo, S as xr, b as io, g as so } from "./SchemaView-BhgJ9WB8.js";
|
|
15
15
|
import { Card as lo } from "./ui/Card.js";
|
|
16
16
|
import * as dt from "@radix-ui/react-collapsible";
|
|
17
17
|
import { useZudoku as co } from "./zudoku.hooks.js";
|
|
18
18
|
import { S as da } from "./SyntaxHighlight-CrjhGEwT.js";
|
|
19
19
|
import { B as Lr } from "./Button-BE9IVkWV.js";
|
|
20
|
-
import { b as uo, M as fo } from "./index-
|
|
20
|
+
import { b as uo, M as fo } from "./index-C_xVKbf9.js";
|
|
21
21
|
import * as je from "@radix-ui/react-tabs";
|
|
22
22
|
import { g as po, c as Ye, a as ho } from "./invariant-DAFpPywt.js";
|
|
23
23
|
function yo(e, n) {
|
|
@@ -5081,7 +5081,7 @@ const _s = Me(
|
|
|
5081
5081
|
registerNavigationAnchor: !0,
|
|
5082
5082
|
className: "mb-0",
|
|
5083
5083
|
children: [
|
|
5084
|
-
d.tag.name ?? "
|
|
5084
|
+
d.tag.name ?? "Documentation",
|
|
5085
5085
|
g && /* @__PURE__ */ b.jsxs("span", { className: "text-xl text-muted-foreground ms-1.5", children: [
|
|
5086
5086
|
" ",
|
|
5087
5087
|
"(",
|
|
@@ -5163,4 +5163,4 @@ export {
|
|
|
5163
5163
|
ll as OperationList,
|
|
5164
5164
|
_s as OperationsFragment
|
|
5165
5165
|
};
|
|
5166
|
-
//# sourceMappingURL=OperationList-
|
|
5166
|
+
//# sourceMappingURL=OperationList-PnZbf3b2.js.map
|