zudoku 0.39.0 → 0.39.2
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/entry.server.d.ts +5 -4
- package/dist/app/entry.server.js +2 -2
- package/dist/app/entry.server.js.map +1 -1
- package/dist/cli/cmds/dev.js +1 -7
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/config/validators/common.d.ts +17 -0
- package/dist/config/validators/common.js +1 -0
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +7 -0
- package/dist/lib/components/Bootstrap.d.ts +2 -1
- package/dist/lib/components/Bootstrap.js +3 -2
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/Header.js +2 -2
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.js +1 -1
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +6 -3
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -0
- package/dist/lib/components/TopNavigation.js +2 -2
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +4 -1
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
- package/dist/lib/components/index.d.ts +2 -1
- package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +6 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/SidebarWrapper.js +9 -2
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
- package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
- package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
- package/dist/lib/core/RouteGuard.d.ts +1 -0
- package/dist/lib/core/RouteGuard.js +9 -3
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +1 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +9 -4
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +6 -12
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/index.d.ts +1 -3
- package/dist/vite/build.js +1 -9
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/plugin-search.js +1 -1
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +9 -5
- package/dist/vite/prerender/FileWritingResponse.js +5 -5
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
- package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
- package/dist/vite/prerender/InMemoryResponse.js +32 -0
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
- package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
- package/dist/vite/prerender/PrerenderResponse.js +2 -0
- package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +1 -0
- package/dist/vite/prerender/prerender.js +18 -0
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/worker.js +36 -8
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/zuplo/with-zuplo.js +4 -0
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{Callout-D5frCCJ0.js → Callout-B2vsR09t.js} +2 -2
- package/lib/{Callout-D5frCCJ0.js.map → Callout-B2vsR09t.js.map} +1 -1
- package/lib/{Dialog-Dv6WG8RN.js → Dialog-sbgekbjb.js} +5 -5
- package/lib/{Dialog-Dv6WG8RN.js.map → Dialog-sbgekbjb.js.map} +1 -1
- package/lib/{MdxPage-ZW1StNhp.js → MdxPage-JscVnWM8.js} +22 -21
- package/lib/{MdxPage-ZW1StNhp.js.map → MdxPage-JscVnWM8.js.map} +1 -1
- package/lib/{OasProvider-Cld9RAMQ.js → OasProvider-C4T5TU8Z.js} +2 -2
- package/lib/{OasProvider-Cld9RAMQ.js.map → OasProvider-C4T5TU8Z.js.map} +1 -1
- package/lib/{OperationList-D-OfzJm6.js → OperationList-C-gBHUou.js} +49 -48
- package/lib/{OperationList-D-OfzJm6.js.map → OperationList-C-gBHUou.js.map} +1 -1
- package/lib/{Pagination-CYB3nVYx.js → Pagination-DCCvGq0m.js} +2 -2
- package/lib/{Pagination-CYB3nVYx.js.map → Pagination-DCCvGq0m.js.map} +1 -1
- package/lib/RouteGuard-CqZPoZYJ.js +744 -0
- package/lib/RouteGuard-CqZPoZYJ.js.map +1 -0
- package/lib/{SchemaList-Ci1WxRh0.js → SchemaList-DuN6ThXR.js} +3 -3
- package/lib/{SchemaList-Ci1WxRh0.js.map → SchemaList-DuN6ThXR.js.map} +1 -1
- package/lib/{SchemaView-Brn-YxHY.js → SchemaView-B3fOPR4V.js} +112 -100
- package/lib/SchemaView-B3fOPR4V.js.map +1 -0
- package/lib/{createServer-mMau3eV_.js → createServer-mYvGvmc0.js} +2469 -2443
- package/lib/createServer-mYvGvmc0.js.map +1 -0
- package/lib/index-D6ktNq4i.js +1863 -0
- package/lib/index-D6ktNq4i.js.map +1 -0
- package/lib/{index-CjPMxpOV.js → index-DsdAaiwx.js} +13 -12
- package/lib/{index-CjPMxpOV.js.map → index-DsdAaiwx.js.map} +1 -1
- package/lib/objectEntries-yMIkr2mI.js +5 -0
- package/lib/objectEntries-yMIkr2mI.js.map +1 -0
- package/lib/ui/Command.js +1 -1
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/zudoku.components.js +15 -14
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +6 -5
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +132 -137
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/package.json +3 -3
- package/src/app/entry.server.tsx +6 -3
- package/src/lib/components/Bootstrap.tsx +13 -6
- package/src/lib/components/Header.tsx +2 -2
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/components/Main.tsx +3 -2
- package/src/lib/components/MobileTopNavigation.tsx +27 -18
- package/src/lib/components/TopNavigation.tsx +2 -2
- package/src/lib/components/Zudoku.tsx +5 -3
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/navigation/PoweredByZudoku.tsx +23 -0
- package/src/lib/components/navigation/SidebarWrapper.tsx +27 -13
- package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
- package/src/lib/core/RouteGuard.tsx +26 -4
- package/src/lib/core/ZudokuContext.ts +1 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +5 -1
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +6 -1
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +11 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +5 -16
- package/src/lib/plugins/search-pagefind/index.tsx +1 -1
- package/dist/cli/dev/pagefind-command.d.ts +0 -3
- package/dist/cli/dev/pagefind-command.js +0 -59
- package/dist/cli/dev/pagefind-command.js.map +0 -1
- package/dist/lib/components/context/PluginSystem.d.ts +0 -1
- package/dist/lib/components/context/PluginSystem.js +0 -2
- package/dist/lib/components/context/PluginSystem.js.map +0 -1
- package/lib/SchemaView-Brn-YxHY.js.map +0 -1
- package/lib/createServer-mMau3eV_.js.map +0 -1
- package/lib/index-Bt7MKhZq.js +0 -2514
- package/lib/index-Bt7MKhZq.js.map +0 -1
- package/lib/objectEntries-BS7aAgOm.js +0 -12
- package/lib/objectEntries-BS7aAgOm.js.map +0 -1
- package/src/lib/components/context/PluginSystem.ts +0 -0
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { j as $ } from "./jsx-runtime-CYK1ROHF.js";
|
|
2
2
|
import { d as yr, u as Pa, m as qa, t as Ca } from "./hook-CqpVYDqN.js";
|
|
3
|
-
import {
|
|
4
|
-
import { ChevronsUpDownIcon as Yn, CheckIcon as
|
|
5
|
-
import { b as
|
|
6
|
-
import { c as Fe, u as mr, d as Xn, C as Zn, b as ea, a as ur, P as
|
|
7
|
-
import { S as
|
|
8
|
-
import { C as
|
|
9
|
-
import { I as
|
|
10
|
-
import { P as
|
|
3
|
+
import { H as Ea } from "./RouteGuard-CqZPoZYJ.js";
|
|
4
|
+
import { ChevronsUpDownIcon as Yn, CheckIcon as Ra, CopyIcon as ka, UnfoldVerticalIcon as Na, FoldVerticalIcon as Aa, ChevronsDownUpIcon as Ia } from "lucide-react";
|
|
5
|
+
import { b as Ua, a as La } from "./chunk-HA7DTUK3-C4gP41vD.js";
|
|
6
|
+
import { c as Fe, u as mr, d as Xn, C as Zn, b as ea, a as ur, P as _a, m as ta, e as Fa, U as Ba } from "./index-DsdAaiwx.js";
|
|
7
|
+
import { S as Ha, a as Ma, b as za, c as Wa, e as Ja } from "./Select-DVFRKf1R.js";
|
|
8
|
+
import { C as Ga } from "./CategoryHeading-DpB47wvk.js";
|
|
9
|
+
import { I as Va, S as ra, M as De, H as Ie, P as fr } from "./Markdown-aF5FdsNi.js";
|
|
10
|
+
import { P as Da } from "./Pagination-DCCvGq0m.js";
|
|
11
11
|
import { c as pe } from "./cn-qaFjX9_3.js";
|
|
12
|
-
import { useTransition as na, useState as xe, useRef as aa, useEffect as gr, useLayoutEffect as
|
|
13
|
-
import { Button as
|
|
14
|
-
import { u as Qe, P as
|
|
12
|
+
import { useTransition as na, useState as xe, useRef as aa, useEffect as gr, useLayoutEffect as Qa, useMemo as oa } from "react";
|
|
13
|
+
import { Button as Ka } from "./ui/Button.js";
|
|
14
|
+
import { u as Qe, P as Ya, E as Ar, a as Xa, g as Za, S as Ir } from "./SchemaView-B3fOPR4V.js";
|
|
15
15
|
import { u as vr } from "./context-DLCwaMXN.js";
|
|
16
16
|
import { VisuallyHidden as pr } from "@radix-ui/react-visually-hidden";
|
|
17
|
-
import { c as
|
|
18
|
-
import { Tabs as
|
|
19
|
-
import { Card as
|
|
20
|
-
import { g as
|
|
17
|
+
import { c as eo } from "./index-CPNSgwSb.js";
|
|
18
|
+
import { Tabs as to, TabsList as ro, TabsTrigger as no, TabsContent as ao } from "./ui/Tabs.js";
|
|
19
|
+
import { Card as oo } from "./ui/Card.js";
|
|
20
|
+
import { g as io, c as Ke, a as so } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
21
|
+
import { a as lo, b as co } from "./index-D6ktNq4i.js";
|
|
21
22
|
import { S as ia } from "./SyntaxHighlight-BEoSoPEo.js";
|
|
22
23
|
import { B as Ur } from "./Button-Fp19CMUr.js";
|
|
23
24
|
import * as Ge from "@radix-ui/react-tabs";
|
|
@@ -69,7 +70,7 @@ const Ye = ({
|
|
|
69
70
|
), Lr = ({ url: e }) => {
|
|
70
71
|
const [n, t] = xe(!1);
|
|
71
72
|
return /* @__PURE__ */ $.jsx(
|
|
72
|
-
|
|
73
|
+
Ka,
|
|
73
74
|
{
|
|
74
75
|
onClick: () => {
|
|
75
76
|
navigator.clipboard.writeText(e).then(() => {
|
|
@@ -78,7 +79,7 @@ const Ye = ({
|
|
|
78
79
|
},
|
|
79
80
|
variant: "ghost",
|
|
80
81
|
size: "icon",
|
|
81
|
-
children: n ? /* @__PURE__ */ $.jsx(
|
|
82
|
+
children: n ? /* @__PURE__ */ $.jsx(Ra, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ $.jsx(ka, { size: 14, strokeWidth: 1.3 })
|
|
82
83
|
}
|
|
83
84
|
);
|
|
84
85
|
}, po = () => {
|
|
@@ -89,7 +90,7 @@ const Ye = ({
|
|
|
89
90
|
const i = o.at(0);
|
|
90
91
|
return o.length === 1 ? /* @__PURE__ */ $.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
91
92
|
/* @__PURE__ */ $.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
|
|
92
|
-
/* @__PURE__ */ $.jsx(
|
|
93
|
+
/* @__PURE__ */ $.jsx(Va, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: i.url }),
|
|
93
94
|
/* @__PURE__ */ $.jsx(Lr, { url: i.url })
|
|
94
95
|
] }) : /* @__PURE__ */ $.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
95
96
|
/* @__PURE__ */ $.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
|
|
@@ -108,7 +109,7 @@ const Ye = ({
|
|
|
108
109
|
),
|
|
109
110
|
/* @__PURE__ */ $.jsx(Lr, { url: s })
|
|
110
111
|
] });
|
|
111
|
-
}, ho =
|
|
112
|
+
}, ho = eo(
|
|
112
113
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
113
114
|
{
|
|
114
115
|
variants: {
|
|
@@ -148,7 +149,7 @@ const yo = (e, n) => e ? n(e) : void 0, mo = (e) => e.schema != null && typeof e
|
|
|
148
149
|
}
|
|
149
150
|
) : e.name }) }),
|
|
150
151
|
/* @__PURE__ */ $.jsx(
|
|
151
|
-
|
|
152
|
+
Ya,
|
|
152
153
|
{
|
|
153
154
|
schema: a,
|
|
154
155
|
extraItems: [
|
|
@@ -167,7 +168,7 @@ const yo = (e, n) => e ? n(e) : void 0, mo = (e) => e.schema != null && typeof e
|
|
|
167
168
|
}
|
|
168
169
|
),
|
|
169
170
|
a.type === "array" && a.items.enum ? /* @__PURE__ */ $.jsx(Ar, { values: a.items.enum }) : a.enum && /* @__PURE__ */ $.jsx(Ar, { values: a.enum }),
|
|
170
|
-
/* @__PURE__ */ $.jsx(
|
|
171
|
+
/* @__PURE__ */ $.jsx(Xa, { schema: a })
|
|
171
172
|
] });
|
|
172
173
|
}, vo = ({
|
|
173
174
|
summary: e,
|
|
@@ -182,7 +183,7 @@ const yo = (e, n) => e ? n(e) : void 0, mo = (e) => e.schema != null && typeof e
|
|
|
182
183
|
] }),
|
|
183
184
|
n === "header" ? "Headers" : `${n} Parameters`
|
|
184
185
|
] }),
|
|
185
|
-
/* @__PURE__ */ $.jsx(
|
|
186
|
+
/* @__PURE__ */ $.jsx(oo, { children: /* @__PURE__ */ $.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: t.sort((c, s) => c.required === s.required ? 0 : c.required ? -1 : 1).map((c) => /* @__PURE__ */ $.jsx(
|
|
186
187
|
go,
|
|
187
188
|
{
|
|
188
189
|
parameter: c,
|
|
@@ -299,7 +300,7 @@ function wo() {
|
|
|
299
300
|
}, dt;
|
|
300
301
|
}
|
|
301
302
|
var So = wo();
|
|
302
|
-
const ue = /* @__PURE__ */
|
|
303
|
+
const ue = /* @__PURE__ */ io(So);
|
|
303
304
|
function Le(e, n = {}) {
|
|
304
305
|
const { delimiter: t = '"', escapeChar: a = "\\", escapeNewlines: c = !0 } = n;
|
|
305
306
|
return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
|
|
@@ -2914,7 +2915,7 @@ function ls() {
|
|
|
2914
2915
|
const cs = {}, us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2915
2916
|
__proto__: null,
|
|
2916
2917
|
default: cs
|
|
2917
|
-
}, Symbol.toStringTag, { value: "Module" })), fs = /* @__PURE__ */
|
|
2918
|
+
}, Symbol.toStringTag, { value: "Module" })), fs = /* @__PURE__ */ so(us);
|
|
2918
2919
|
var tr, Mn;
|
|
2919
2920
|
function ps() {
|
|
2920
2921
|
if (Mn) return tr;
|
|
@@ -4188,7 +4189,7 @@ const bs = ({
|
|
|
4188
4189
|
if (o)
|
|
4189
4190
|
return r.observe(o), () => r.unobserve(o);
|
|
4190
4191
|
}, [t, e, n]), [s, a];
|
|
4191
|
-
}, xs = typeof window < "u" ?
|
|
4192
|
+
}, xs = typeof window < "u" ? Qa : gr, va = ({
|
|
4192
4193
|
children: e,
|
|
4193
4194
|
maxHeight: n = 250
|
|
4194
4195
|
}) => {
|
|
@@ -4226,7 +4227,7 @@ const bs = ({
|
|
|
4226
4227
|
className: "absolute inset-0 grid place-items-center z-10 cursor-pointer peer",
|
|
4227
4228
|
asChild: !0,
|
|
4228
4229
|
children: /* @__PURE__ */ $.jsx("div", { children: /* @__PURE__ */ $.jsxs(Ur, { variant: "outline", className: "hidden group-hover:flex", children: [
|
|
4229
|
-
/* @__PURE__ */ $.jsx(
|
|
4230
|
+
/* @__PURE__ */ $.jsx(Na, { size: 14, className: "mr-1.5" }),
|
|
4230
4231
|
"Click to expand"
|
|
4231
4232
|
] }) })
|
|
4232
4233
|
}
|
|
@@ -4240,7 +4241,7 @@ const bs = ({
|
|
|
4240
4241
|
className: pe("flex justify-center w-full mb-2", !s && "hidden"),
|
|
4241
4242
|
children: /* @__PURE__ */ $.jsx(ur, { asChild: !0, children: /* @__PURE__ */ $.jsxs(Ur, { variant: "outline", size: "sm", children: [
|
|
4242
4243
|
"Collapse",
|
|
4243
|
-
/* @__PURE__ */ $.jsx(
|
|
4244
|
+
/* @__PURE__ */ $.jsx(Aa, { size: 14, className: "ml-1.5" })
|
|
4244
4245
|
] }) })
|
|
4245
4246
|
}
|
|
4246
4247
|
)
|
|
@@ -4254,7 +4255,7 @@ const bs = ({
|
|
|
4254
4255
|
examples: a
|
|
4255
4256
|
}) => {
|
|
4256
4257
|
var g, m, x;
|
|
4257
|
-
const { isAuthEnabled: c, login: s, signup: r, isPending: o, isAuthenticated: i } =
|
|
4258
|
+
const { isAuthEnabled: c, login: s, signup: r, isPending: o, isAuthenticated: i } = lo(), l = (g = t.parameters) == null ? void 0 : g.filter((v) => v.in === "header").sort((v, u) => v.required && !u.required ? -1 : 1).map((v) => {
|
|
4258
4259
|
var u, h, d, j, T, p, O, b;
|
|
4259
4260
|
return {
|
|
4260
4261
|
name: v.name,
|
|
@@ -4275,7 +4276,7 @@ const bs = ({
|
|
|
4275
4276
|
};
|
|
4276
4277
|
}), y = (x = t.parameters) == null ? void 0 : x.filter((v) => v.in === "path").map((v) => ({ name: v.name }));
|
|
4277
4278
|
return /* @__PURE__ */ $.jsx(
|
|
4278
|
-
|
|
4279
|
+
_a,
|
|
4279
4280
|
{
|
|
4280
4281
|
server: e,
|
|
4281
4282
|
servers: n,
|
|
@@ -4532,14 +4533,14 @@ const bs = ({
|
|
|
4532
4533
|
onSelectResponse: t
|
|
4533
4534
|
}) => {
|
|
4534
4535
|
var A;
|
|
4535
|
-
const { input: a, type: c, options: s } = vr(), r = Pa(), o = Qe(qs, { input: a, type: c }), i = yr(o), l =
|
|
4536
|
+
const { input: a, type: c, options: s } = vr(), r = Pa(), o = Qe(qs, { input: a, type: c }), i = yr(o), l = co(), f = ta(e.method), [y, g] = Ua(), [, m] = na(), [x, v] = xe(), u = y.get("lang") ?? (s == null ? void 0 : s.examplesLanguage) ?? "shell", h = (A = e.requestBody) == null ? void 0 : A.content, d = h && (s != null && s.transformExamples) ? s.transformExamples({
|
|
4536
4537
|
auth: r,
|
|
4537
4538
|
type: "request",
|
|
4538
4539
|
operation: e,
|
|
4539
4540
|
content: h,
|
|
4540
4541
|
context: l
|
|
4541
4542
|
}) : h, j = /* @__PURE__ */ $.jsx(
|
|
4542
|
-
|
|
4543
|
+
Fa,
|
|
4543
4544
|
{
|
|
4544
4545
|
path: e.path,
|
|
4545
4546
|
renderParam: ({ name: E }) => /* @__PURE__ */ $.jsx(
|
|
@@ -4662,7 +4663,7 @@ const bs = ({
|
|
|
4662
4663
|
serverUrl: n
|
|
4663
4664
|
}) => {
|
|
4664
4665
|
var o, i, l;
|
|
4665
|
-
const t = uo(Ns, e), a =
|
|
4666
|
+
const t = uo(Ns, e), a = Za(
|
|
4666
4667
|
t.parameters ?? [],
|
|
4667
4668
|
(f) => f.in
|
|
4668
4669
|
), c = t.responses.at(0), [s, r] = xe(c == null ? void 0 : c.statusCode);
|
|
@@ -4756,13 +4757,13 @@ const bs = ({
|
|
|
4756
4757
|
}
|
|
4757
4758
|
),
|
|
4758
4759
|
/* @__PURE__ */ $.jsxs(
|
|
4759
|
-
|
|
4760
|
+
to,
|
|
4760
4761
|
{
|
|
4761
4762
|
onValueChange: (f) => r(f),
|
|
4762
4763
|
value: s,
|
|
4763
4764
|
children: [
|
|
4764
|
-
t.responses.length > 1 && /* @__PURE__ */ $.jsx(
|
|
4765
|
-
|
|
4765
|
+
t.responses.length > 1 && /* @__PURE__ */ $.jsx(ro, { children: t.responses.map((f) => /* @__PURE__ */ $.jsx(
|
|
4766
|
+
no,
|
|
4766
4767
|
{
|
|
4767
4768
|
value: f.statusCode,
|
|
4768
4769
|
title: f.description ?? void 0,
|
|
@@ -4773,7 +4774,7 @@ const bs = ({
|
|
|
4773
4774
|
/* @__PURE__ */ $.jsx("ul", { className: "list-none m-0 px-0", children: t.responses.map((f) => {
|
|
4774
4775
|
var y, g;
|
|
4775
4776
|
return /* @__PURE__ */ $.jsx(
|
|
4776
|
-
|
|
4777
|
+
ao,
|
|
4777
4778
|
{
|
|
4778
4779
|
value: f.statusCode,
|
|
4779
4780
|
children: /* @__PURE__ */ $.jsx(
|
|
@@ -4922,7 +4923,7 @@ const Ns = Fe(
|
|
|
4922
4923
|
}
|
|
4923
4924
|
}
|
|
4924
4925
|
`
|
|
4925
|
-
),
|
|
4926
|
+
), ol = ({
|
|
4926
4927
|
tag: e,
|
|
4927
4928
|
untagged: n
|
|
4928
4929
|
}) => {
|
|
@@ -4933,7 +4934,7 @@ const Ns = Fe(
|
|
|
4933
4934
|
untagged: n
|
|
4934
4935
|
}), i = yr(o), {
|
|
4935
4936
|
data: { schema: l }
|
|
4936
|
-
} = i, { selectedServer: f } = mr(l.servers), y = l.title, g = l.summary, m = l.description, x =
|
|
4937
|
+
} = i, { selectedServer: f } = mr(l.servers), y = l.title, g = l.summary, m = l.description, x = La(), v = Qe(As, { input: t, type: a });
|
|
4937
4938
|
if (qa({
|
|
4938
4939
|
...v,
|
|
4939
4940
|
enabled: typeof window < "u",
|
|
@@ -4942,7 +4943,7 @@ const Ns = Fe(
|
|
|
4942
4943
|
const { operations: u, next: h, prev: d, description: j } = l.tag, T = j ? Kn(j) : g || (m ? Kn(m) : void 0), p = Object.entries(c).length > 1, O = (r == null ? void 0 : r.showVersionSelect) === "always" || p && (r == null ? void 0 : r.showVersionSelect) !== "hide", b = {
|
|
4943
4944
|
prev: d != null && d.name ? { to: `../${d.slug}`, label: d.name } : void 0,
|
|
4944
4945
|
next: h ? {
|
|
4945
|
-
to: `../${h.slug ??
|
|
4946
|
+
to: `../${h.slug ?? Ba}`,
|
|
4946
4947
|
label: h.name ?? "Other endpoints"
|
|
4947
4948
|
} : void 0
|
|
4948
4949
|
};
|
|
@@ -4953,7 +4954,7 @@ const Ns = Fe(
|
|
|
4953
4954
|
"data-pagefind-filter": "section:openapi",
|
|
4954
4955
|
"data-pagefind-meta": "section:openapi",
|
|
4955
4956
|
children: [
|
|
4956
|
-
/* @__PURE__ */ $.jsxs(
|
|
4957
|
+
/* @__PURE__ */ $.jsxs(Ea, { children: [
|
|
4957
4958
|
/* @__PURE__ */ $.jsx("title", { children: [l.tag.name, y].filter(Boolean).join(" - ") }),
|
|
4958
4959
|
T && /* @__PURE__ */ $.jsx("meta", { name: "description", content: T })
|
|
4959
4960
|
] }),
|
|
@@ -4961,7 +4962,7 @@ const Ns = Fe(
|
|
|
4961
4962
|
/* @__PURE__ */ $.jsxs(Zn, { className: "w-full", children: [
|
|
4962
4963
|
/* @__PURE__ */ $.jsxs("div", { className: "flex flex-col gap-y-4 sm:flex-row justify-around items-start sm:items-end", children: [
|
|
4963
4964
|
/* @__PURE__ */ $.jsxs("div", { className: "flex flex-col flex-1 gap-2", children: [
|
|
4964
|
-
/* @__PURE__ */ $.jsx(
|
|
4965
|
+
/* @__PURE__ */ $.jsx(Ga, { children: y }),
|
|
4965
4966
|
/* @__PURE__ */ $.jsxs(
|
|
4966
4967
|
Ie,
|
|
4967
4968
|
{
|
|
@@ -4984,14 +4985,14 @@ const Ns = Fe(
|
|
|
4984
4985
|
] }),
|
|
4985
4986
|
/* @__PURE__ */ $.jsxs("div", { className: "flex flex-col gap-4 sm:items-end", children: [
|
|
4986
4987
|
O && /* @__PURE__ */ $.jsxs(
|
|
4987
|
-
|
|
4988
|
+
Ha,
|
|
4988
4989
|
{
|
|
4989
4990
|
onValueChange: (q) => x(c[q]),
|
|
4990
4991
|
defaultValue: s,
|
|
4991
4992
|
disabled: !p,
|
|
4992
4993
|
children: [
|
|
4993
|
-
/* @__PURE__ */ $.jsx(
|
|
4994
|
-
/* @__PURE__ */ $.jsx(
|
|
4994
|
+
/* @__PURE__ */ $.jsx(Ma, { className: "w-[180px]", children: /* @__PURE__ */ $.jsx(za, { placeholder: "Select version" }) }),
|
|
4995
|
+
/* @__PURE__ */ $.jsx(Wa, { children: Object.entries(c).map(([q]) => /* @__PURE__ */ $.jsx(Ja, { value: q, children: q }, q)) })
|
|
4995
4996
|
]
|
|
4996
4997
|
}
|
|
4997
4998
|
),
|
|
@@ -5005,7 +5006,7 @@ const Ns = Fe(
|
|
|
5005
5006
|
}
|
|
5006
5007
|
),
|
|
5007
5008
|
/* @__PURE__ */ $.jsx(
|
|
5008
|
-
|
|
5009
|
+
Ia,
|
|
5009
5010
|
{
|
|
5010
5011
|
className: "group-data-[state=closed]:hidden translate-y-px",
|
|
5011
5012
|
size: 13
|
|
@@ -5052,14 +5053,14 @@ const Ns = Fe(
|
|
|
5052
5053
|
},
|
|
5053
5054
|
q.slug
|
|
5054
5055
|
)),
|
|
5055
|
-
/* @__PURE__ */ $.jsx(
|
|
5056
|
+
/* @__PURE__ */ $.jsx(Da, { ...b })
|
|
5056
5057
|
] })
|
|
5057
5058
|
]
|
|
5058
5059
|
}
|
|
5059
5060
|
);
|
|
5060
5061
|
};
|
|
5061
5062
|
export {
|
|
5062
|
-
|
|
5063
|
+
ol as OperationList,
|
|
5063
5064
|
Ns as OperationsFragment
|
|
5064
5065
|
};
|
|
5065
|
-
//# sourceMappingURL=OperationList-
|
|
5066
|
+
//# sourceMappingURL=OperationList-C-gBHUou.js.map
|