zudoku 0.53.5 → 0.54.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/config/config.d.ts +1 -0
- package/dist/config/validators/InputNavigationSchema.d.ts +254 -158
- package/dist/config/validators/InputNavigationSchema.js +4 -1
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +12 -0
- package/dist/config/validators/ProtectedRoutesSchema.js +19 -0
- package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/icon-types.js +16 -0
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +32 -19
- package/dist/config/validators/validate.js +6 -2
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js +11 -9
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
- package/dist/lib/authentication/errors.d.ts +6 -12
- package/dist/lib/authentication/errors.js +2 -1
- package/dist/lib/authentication/errors.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +1 -0
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/azureb2c.js +4 -2
- package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +4 -2
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.js +3 -1
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +5 -3
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/TopNavigation.js +4 -3
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.js +21 -13
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/navigation/NavigationItem.d.ts +1 -1
- package/dist/lib/components/navigation/NavigationItem.js +8 -1
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/utils.d.ts +3 -1
- package/dist/lib/components/navigation/utils.js +6 -3
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.js +9 -9
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +2 -1
- package/dist/lib/core/ZudokuContext.js +13 -1
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +2 -1
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js +7 -3
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +3 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +1 -0
- package/dist/lib/plugins/api-keys/index.js +3 -7
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +1 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js +1 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +42 -10
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/ui/ActionButton.js +1 -1
- package/dist/lib/ui/ActionButton.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +1 -1
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/lib/ui/Command.d.ts +1 -1
- package/dist/lib/util/invariant.d.ts +6 -5
- package/dist/lib/util/invariant.js +1 -1
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/vite/dev-server.js +1 -1
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-docs.js +15 -10
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/prerender/worker.js +5 -1
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +8 -8
- package/lib/{Command-C9AC5cf-.js → Command-BYukybsa.js} +2 -2
- package/lib/{Command-C9AC5cf-.js.map → Command-BYukybsa.js.map} +1 -1
- package/lib/{Dialog-DMWw1doX.js → Dialog-u9Uz9sTt.js} +4 -4
- package/lib/{Dialog-DMWw1doX.js.map → Dialog-u9Uz9sTt.js.map} +1 -1
- package/lib/{MdxPage-DVI4iYgW.js → MdxPage-Bsko6_kb.js} +11 -11
- package/lib/{MdxPage-DVI4iYgW.js.map → MdxPage-Bsko6_kb.js.map} +1 -1
- package/lib/OAuthErrorPage-DJzGiIBt.js +150 -0
- package/lib/OAuthErrorPage-DJzGiIBt.js.map +1 -0
- package/lib/{OasProvider-CbwsKPNc.js → OasProvider-DQQRt3oS.js} +3 -3
- package/lib/{OasProvider-CbwsKPNc.js.map → OasProvider-DQQRt3oS.js.map} +1 -1
- package/lib/{OperationList-Bn9ggxw8.js → OperationList-DpmkHf26.js} +45 -43
- package/lib/{OperationList-Bn9ggxw8.js.map → OperationList-DpmkHf26.js.map} +1 -1
- package/lib/{Pagination-bavPec-z.js → Pagination-kqFNgtnI.js} +3 -3
- package/lib/{Pagination-bavPec-z.js.map → Pagination-kqFNgtnI.js.map} +1 -1
- package/lib/{RouteGuard-Vnlz_t51.js → RouteGuard-0wPUKdxJ.js} +166 -165
- package/lib/{RouteGuard-Vnlz_t51.js.map → RouteGuard-0wPUKdxJ.js.map} +1 -1
- package/lib/{SchemaList-DETyCVqu.js → SchemaList-DS-pMd6B.js} +8 -8
- package/lib/{SchemaList-DETyCVqu.js.map → SchemaList-DS-pMd6B.js.map} +1 -1
- package/lib/{SchemaView-Dvxo2RNe.js → SchemaView-BnN6WHjw.js} +4 -4
- package/lib/{SchemaView-Dvxo2RNe.js.map → SchemaView-BnN6WHjw.js.map} +1 -1
- package/lib/Select-BmTTKNPp.js +273 -0
- package/lib/Select-BmTTKNPp.js.map +1 -0
- package/lib/{SignUp-ClYhZq9H.js → SignUp-BwOSCD-6.js} +9 -9
- package/lib/{SignUp-ClYhZq9H.js.map → SignUp-BwOSCD-6.js.map} +1 -1
- package/lib/{Slot-B31yZlfB.js → Slot-DAyXieeZ.js} +1352 -1349
- package/lib/{Slot-B31yZlfB.js.map → Slot-DAyXieeZ.js.map} +1 -1
- package/lib/{SyntaxHighlight-bm761HDo.js → SyntaxHighlight-BMKR4pl6.js} +3 -3
- package/lib/{SyntaxHighlight-bm761HDo.js.map → SyntaxHighlight-BMKR4pl6.js.map} +1 -1
- package/lib/{Toc-D4oBWE8D.js → Toc-BKDRCQzU.js} +2 -2
- package/lib/{Toc-D4oBWE8D.js.map → Toc-BKDRCQzU.js.map} +1 -1
- package/lib/ZudokuContext-CLl5w57E.js +1278 -0
- package/lib/ZudokuContext-CLl5w57E.js.map +1 -0
- package/lib/{chunk-DQRVZFIR-DHK7_Ilc.js → chunk-QMGIS6GS-CEOk3lro.js} +3 -3
- package/lib/chunk-QMGIS6GS-CEOk3lro.js.map +1 -0
- package/lib/{circular-CRbFI6Zl.js → circular-8GWQDvCW.js} +2 -2
- package/lib/{circular-CRbFI6Zl.js.map → circular-8GWQDvCW.js.map} +1 -1
- package/lib/{createServer-DNyGJJNX.js → createServer-BsezSzvV.js} +5 -5
- package/lib/{createServer-DNyGJJNX.js.map → createServer-BsezSzvV.js.map} +1 -1
- package/lib/{errors-C1GlNcV3.js → errors-Cs7hKmdL.js} +11 -10
- package/lib/errors-Cs7hKmdL.js.map +1 -0
- package/lib/hook-DbUCLQNg.js +247 -0
- package/lib/hook-DbUCLQNg.js.map +1 -0
- package/lib/{index-D09PbNex.js → index-A5Qdwj1B.js} +1521 -1420
- package/lib/index-A5Qdwj1B.js.map +1 -0
- package/lib/{index-C_PXQ8Bx.js → index-Bg7Js3jB.js} +832 -912
- package/lib/index-Bg7Js3jB.js.map +1 -0
- package/lib/{index-CZTEgYDd.js → index-BkW9tJ6j.js} +2 -2
- package/lib/{index-CZTEgYDd.js.map → index-BkW9tJ6j.js.map} +1 -1
- package/lib/index.esm-CdzlRw50.js +1254 -0
- package/lib/index.esm-CdzlRw50.js.map +1 -0
- package/lib/{invariant-DAFpPywt.js → invariant-Bm-FVUQE.js} +2 -6
- package/lib/invariant-Bm-FVUQE.js.map +1 -0
- package/lib/ui/ActionButton.js +9 -9
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Command.js +1 -1
- package/lib/ui/Form.js +1 -1
- package/lib/ui/SyntaxHighlight.js +3 -3
- package/lib/{useExposedProps-BIYjecPD.js → useExposedProps-KcgXHKeE.js} +2 -2
- package/lib/{useExposedProps-BIYjecPD.js.map → useExposedProps-KcgXHKeE.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +25 -17
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +24 -21
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +213 -205
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +2 -2
- package/lib/zudoku.components.js +29 -28
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +16 -15
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +26 -25
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +404 -289
- 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 +7 -6
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +28 -27
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +8 -8
- package/src/lib/authentication/components/CallbackHandler.tsx +22 -15
- package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
- package/src/lib/authentication/errors.ts +27 -13
- package/src/lib/authentication/hook.ts +2 -0
- package/src/lib/authentication/providers/azureb2c.tsx +8 -3
- package/src/lib/authentication/providers/clerk.tsx +4 -1
- package/src/lib/authentication/providers/openid.tsx +7 -1
- package/src/lib/components/Heading.tsx +1 -1
- package/src/lib/components/MobileTopNavigation.tsx +6 -3
- package/src/lib/components/TopNavigation.tsx +4 -4
- package/src/lib/components/context/ZudokuContext.ts +25 -18
- package/src/lib/components/navigation/NavigationItem.tsx +9 -1
- package/src/lib/components/navigation/utils.ts +9 -3
- package/src/lib/core/RouteGuard.tsx +13 -13
- package/src/lib/core/ZudokuContext.ts +18 -5
- package/src/lib/core/plugins.ts +2 -1
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +12 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +24 -4
- package/src/lib/plugins/api-keys/index.tsx +7 -8
- package/src/lib/plugins/openapi/graphql/gql.ts +3 -3
- package/src/lib/plugins/openapi/graphql/graphql.ts +2 -0
- package/src/lib/plugins/openapi/index.tsx +66 -16
- package/src/lib/ui/ActionButton.tsx +3 -1
- package/src/lib/util/invariant.ts +7 -5
- package/lib/Alert-CWApD0CL.js +0 -161
- package/lib/Alert-CWApD0CL.js.map +0 -1
- package/lib/CallbackHandler-Dr5Lva9x.js +0 -38
- package/lib/CallbackHandler-Dr5Lva9x.js.map +0 -1
- package/lib/chunk-DQRVZFIR-DHK7_Ilc.js.map +0 -1
- package/lib/errors-C1GlNcV3.js.map +0 -1
- package/lib/hook-CZjW2buS.js +0 -1510
- package/lib/hook-CZjW2buS.js.map +0 -1
- package/lib/index-C_PXQ8Bx.js.map +0 -1
- package/lib/index-D09PbNex.js.map +0 -1
- package/lib/index.esm-Cp4wkyud.js +0 -1236
- package/lib/index.esm-Cp4wkyud.js.map +0 -1
- package/lib/invariant-DAFpPywt.js.map +0 -1
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import { j as b } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import {
|
|
3
|
-
import { H as
|
|
4
|
-
import { ChevronsUpDownIcon as Zn, CheckIcon as
|
|
5
|
-
import { b as
|
|
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
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { b as gr, i as Ia, l as Ua } from "./ZudokuContext-CLl5w57E.js";
|
|
3
|
+
import { H as La } from "./RouteGuard-0wPUKdxJ.js";
|
|
4
|
+
import { ChevronsUpDownIcon as Zn, CheckIcon as Fa, CopyIcon as _a, MinusIcon as Ba, PlusIcon as Ha, UnfoldVerticalIcon as Ma, FoldVerticalIcon as za, ChevronsDownUpIcon as Wa } from "lucide-react";
|
|
5
|
+
import { b as Ja, c as Va, a as Ga } from "./chunk-QMGIS6GS-CEOk3lro.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 Da, h as Qa, U as Ka } from "./index-Bg7Js3jB.js";
|
|
7
|
+
import { S as na, c as aa, d as oa, e as ia, g as sa } from "./Select-BmTTKNPp.js";
|
|
8
|
+
import { I as Ya, S as la, M as _e, H as Fe, C as Xa } from "./Slot-DAyXieeZ.js";
|
|
9
|
+
import { P as Za } from "./Pagination-kqFNgtnI.js";
|
|
10
|
+
import { useTransition as ca, useState as ge, useRef as ua, useEffect as br, useLayoutEffect as eo, useMemo as fa } from "react";
|
|
10
11
|
import { Button as pa } from "./ui/Button.js";
|
|
11
12
|
import { c as pe } from "./cn-dYga0KKN.js";
|
|
12
13
|
import { VisuallyHidden as hr } from "@radix-ui/react-visually-hidden";
|
|
13
|
-
import { c as
|
|
14
|
-
import { i as
|
|
15
|
-
import { Card as
|
|
14
|
+
import { c as to } from "./index-DI5SPFK9.js";
|
|
15
|
+
import { i as ro, P as no, E as Ur, a as ao, S as xr, b as oo, g as io } from "./SchemaView-BnN6WHjw.js";
|
|
16
|
+
import { Card as so } from "./ui/Card.js";
|
|
16
17
|
import * as dt from "@radix-ui/react-collapsible";
|
|
17
|
-
import { useZudoku as
|
|
18
|
-
import {
|
|
18
|
+
import { useZudoku as lo } from "./zudoku.hooks.js";
|
|
19
|
+
import { u as co } from "./hook-DbUCLQNg.js";
|
|
20
|
+
import { S as da } from "./SyntaxHighlight-BMKR4pl6.js";
|
|
19
21
|
import { B as Lr } from "./Button-B3o-2Xdf.js";
|
|
20
|
-
import { b as uo, M as fo } from "./index-
|
|
22
|
+
import { b as uo, M as fo } from "./index-A5Qdwj1B.js";
|
|
21
23
|
import * as je from "@radix-ui/react-tabs";
|
|
22
|
-
import { g as po, c as Ye, a as ho } from "./invariant-
|
|
24
|
+
import { g as po, c as Ye, a as ho } from "./invariant-Bm-FVUQE.js";
|
|
23
25
|
function yo(e, n) {
|
|
24
26
|
return n;
|
|
25
27
|
}
|
|
@@ -77,7 +79,7 @@ const Xe = ({
|
|
|
77
79
|
},
|
|
78
80
|
variant: "ghost",
|
|
79
81
|
size: "icon",
|
|
80
|
-
children: n ? /* @__PURE__ */ b.jsx(
|
|
82
|
+
children: n ? /* @__PURE__ */ b.jsx(Fa, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ b.jsx(_a, { size: 14, strokeWidth: 1.3 })
|
|
81
83
|
}
|
|
82
84
|
);
|
|
83
85
|
}, go = () => {
|
|
@@ -88,7 +90,7 @@ const Xe = ({
|
|
|
88
90
|
const i = o.at(0);
|
|
89
91
|
return o.length === 1 ? /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
90
92
|
/* @__PURE__ */ b.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
|
|
91
|
-
/* @__PURE__ */ b.jsx(
|
|
93
|
+
/* @__PURE__ */ b.jsx(Ya, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: i.url }),
|
|
92
94
|
/* @__PURE__ */ b.jsx(Fr, { url: i.url })
|
|
93
95
|
] }) : /* @__PURE__ */ b.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
94
96
|
/* @__PURE__ */ b.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
|
|
@@ -107,7 +109,7 @@ const Xe = ({
|
|
|
107
109
|
),
|
|
108
110
|
/* @__PURE__ */ b.jsx(Fr, { url: s })
|
|
109
111
|
] });
|
|
110
|
-
}, vo =
|
|
112
|
+
}, vo = to(
|
|
111
113
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
112
114
|
{
|
|
113
115
|
variants: {
|
|
@@ -147,7 +149,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
147
149
|
}
|
|
148
150
|
) : e.name }) }),
|
|
149
151
|
/* @__PURE__ */ b.jsx(
|
|
150
|
-
|
|
152
|
+
no,
|
|
151
153
|
{
|
|
152
154
|
schema: a,
|
|
153
155
|
extraItems: [
|
|
@@ -173,8 +175,8 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
173
175
|
}
|
|
174
176
|
),
|
|
175
177
|
a.type === "array" && a.items.enum ? /* @__PURE__ */ b.jsx(Ur, { values: a.items.enum }) : a.enum && /* @__PURE__ */ b.jsx(Ur, { values: a.enum }),
|
|
176
|
-
/* @__PURE__ */ b.jsx(
|
|
177
|
-
(a.type === "object" ||
|
|
178
|
+
/* @__PURE__ */ b.jsx(ao, { schema: a }),
|
|
179
|
+
(a.type === "object" || ro(a)) && /* @__PURE__ */ b.jsxs(
|
|
178
180
|
dt.Root,
|
|
179
181
|
{
|
|
180
182
|
defaultOpen: !1,
|
|
@@ -182,7 +184,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
182
184
|
open: c,
|
|
183
185
|
children: [
|
|
184
186
|
/* @__PURE__ */ b.jsx(dt.Trigger, { asChild: !0, children: /* @__PURE__ */ b.jsxs(pa, { variant: "expand", size: "sm", children: [
|
|
185
|
-
c ? /* @__PURE__ */ b.jsx(
|
|
187
|
+
c ? /* @__PURE__ */ b.jsx(Ba, { size: 12 }) : /* @__PURE__ */ b.jsx(Ha, { size: 12 }),
|
|
186
188
|
c ? "Hide properties" : "Show properties"
|
|
187
189
|
] }) }),
|
|
188
190
|
/* @__PURE__ */ b.jsx(dt.Content, { children: /* @__PURE__ */ b.jsx("div", { className: "mt-2", children: /* @__PURE__ */ b.jsx(
|
|
@@ -208,7 +210,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
208
210
|
] }),
|
|
209
211
|
n === "header" ? "Headers" : `${n} Parameters`
|
|
210
212
|
] }),
|
|
211
|
-
/* @__PURE__ */ b.jsx(
|
|
213
|
+
/* @__PURE__ */ b.jsx(so, { children: /* @__PURE__ */ b.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__ */ b.jsx(
|
|
212
214
|
xo,
|
|
213
215
|
{
|
|
214
216
|
parameter: c,
|
|
@@ -233,7 +235,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
233
235
|
if (o)
|
|
234
236
|
return r.observe(o), () => r.unobserve(o);
|
|
235
237
|
}, [t, e, n]), [s, a];
|
|
236
|
-
}, jo = typeof window < "u" ?
|
|
238
|
+
}, jo = typeof window < "u" ? eo : br, ha = ({
|
|
237
239
|
children: e,
|
|
238
240
|
maxHeight: n = 250
|
|
239
241
|
}) => {
|
|
@@ -271,7 +273,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
271
273
|
className: "absolute inset-0 grid place-items-center z-10 cursor-pointer peer",
|
|
272
274
|
asChild: !0,
|
|
273
275
|
children: /* @__PURE__ */ b.jsx("div", { children: /* @__PURE__ */ b.jsxs(Lr, { variant: "outline", className: "hidden group-hover:flex", children: [
|
|
274
|
-
/* @__PURE__ */ b.jsx(
|
|
276
|
+
/* @__PURE__ */ b.jsx(Ma, { size: 14, className: "me-1.5" }),
|
|
275
277
|
"Click to expand"
|
|
276
278
|
] }) })
|
|
277
279
|
}
|
|
@@ -288,7 +290,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
288
290
|
),
|
|
289
291
|
children: /* @__PURE__ */ b.jsx(dr, { asChild: !0, children: /* @__PURE__ */ b.jsxs(Lr, { variant: "outline", size: "sm", children: [
|
|
290
292
|
"Collapse",
|
|
291
|
-
/* @__PURE__ */ b.jsx(
|
|
293
|
+
/* @__PURE__ */ b.jsx(za, { size: 14, className: "ms-1.5" })
|
|
292
294
|
] }) })
|
|
293
295
|
}
|
|
294
296
|
)
|
|
@@ -320,7 +322,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
320
322
|
defaultValue: f.schema?.default
|
|
321
323
|
}));
|
|
322
324
|
return /* @__PURE__ */ b.jsx(
|
|
323
|
-
|
|
325
|
+
Da,
|
|
324
326
|
{
|
|
325
327
|
server: e,
|
|
326
328
|
servers: n,
|
|
@@ -351,7 +353,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
351
353
|
children: e
|
|
352
354
|
}
|
|
353
355
|
), ya = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx("div", { className: pe("bg-card overflow-auto p-2", n), children: e }), ma = ({ children: e, className: n }) => /* @__PURE__ */ b.jsx("div", { className: pe("border-t bg-muted dark:bg-transparent p-3", n), children: e }), we = (e, n) => {
|
|
354
|
-
if (!e ||
|
|
356
|
+
if (!e || oo(e))
|
|
355
357
|
return null;
|
|
356
358
|
if (e.example !== void 0)
|
|
357
359
|
return e.example;
|
|
@@ -4611,14 +4613,14 @@ const qs = ({
|
|
|
4611
4613
|
selectedResponse: n,
|
|
4612
4614
|
onSelectResponse: t
|
|
4613
4615
|
}) => {
|
|
4614
|
-
const { input: a, type: c, options: s } = et(), r =
|
|
4616
|
+
const { input: a, type: c, options: s } = et(), r = co(), o = Ke(ks, { input: a, type: c }), i = gr(o), l = lo(), d = qa(e.method), [y, f] = Ja(), [, h] = ca(), [x, $] = ge(), u = y.get("lang") ?? s?.examplesLanguage ?? "shell", m = e.requestBody?.content, v = m && s?.transformExamples ? s.transformExamples({
|
|
4615
4617
|
auth: r,
|
|
4616
4618
|
type: "request",
|
|
4617
4619
|
operation: e,
|
|
4618
4620
|
content: m,
|
|
4619
4621
|
context: l
|
|
4620
4622
|
}) : m, S = /* @__PURE__ */ b.jsx(
|
|
4621
|
-
|
|
4623
|
+
Qa,
|
|
4622
4624
|
{
|
|
4623
4625
|
path: e.path,
|
|
4624
4626
|
renderParam: ({ name: R }) => /* @__PURE__ */ b.jsx(
|
|
@@ -4792,7 +4794,7 @@ const qs = ({
|
|
|
4792
4794
|
operationFragment: e,
|
|
4793
4795
|
serverUrl: n
|
|
4794
4796
|
}) => {
|
|
4795
|
-
const t = yo(_s, e), a =
|
|
4797
|
+
const t = yo(_s, e), a = io(
|
|
4796
4798
|
t.parameters ?? [],
|
|
4797
4799
|
(i) => i.in
|
|
4798
4800
|
), { options: c } = et(), s = t.responses.at(0), [r, o] = ge(s?.statusCode);
|
|
@@ -5029,23 +5031,23 @@ const _s = Me(
|
|
|
5029
5031
|
}
|
|
5030
5032
|
}
|
|
5031
5033
|
`
|
|
5032
|
-
),
|
|
5034
|
+
), ul = ({
|
|
5033
5035
|
tag: e,
|
|
5034
5036
|
untagged: n
|
|
5035
5037
|
}) => {
|
|
5036
|
-
const { input: t, type: a, versions: c, version: s, options: r } = et(), { tag: o } =
|
|
5038
|
+
const { input: t, type: a, versions: c, version: s, options: r } = et(), { tag: o } = Va(), i = Ke(Hs, {
|
|
5037
5039
|
input: t,
|
|
5038
5040
|
type: a,
|
|
5039
5041
|
tag: e ?? o,
|
|
5040
5042
|
untagged: n
|
|
5041
5043
|
}), l = gr(i), {
|
|
5042
5044
|
data: { schema: d }
|
|
5043
|
-
} = l, { selectedServer: y } = vr(d.servers), f = d.title, h = d.summary, x = d.description, $ =
|
|
5044
|
-
if (
|
|
5045
|
+
} = l, { selectedServer: y } = vr(d.servers), f = d.title, h = d.summary, x = d.description, $ = Ga(), u = Ke(Bs, { input: t, type: a });
|
|
5046
|
+
if (Ia({
|
|
5045
5047
|
...u,
|
|
5046
5048
|
enabled: typeof window < "u",
|
|
5047
5049
|
notifyOnChangeProps: []
|
|
5048
|
-
}),
|
|
5050
|
+
}), Ua(), !d.tag)
|
|
5049
5051
|
return /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col h-full items-center justify-center text-center", children: [
|
|
5050
5052
|
/* @__PURE__ */ b.jsx("div", { className: "text-muted-foreground font-medium", children: "No operations found" }),
|
|
5051
5053
|
/* @__PURE__ */ b.jsx("div", { className: "mt-2 text-sm text-muted-foreground", children: "This API doesn't have any operations defined yet." })
|
|
@@ -5053,7 +5055,7 @@ const _s = Me(
|
|
|
5053
5055
|
const { operations: m, next: v, prev: S, description: T } = d.tag, p = T ? Xn(T) : h || (x ? Xn(x) : void 0), O = Object.entries(c).length > 1, g = r?.showVersionSelect === "always" || O && r?.showVersionSelect !== "hide", k = {
|
|
5054
5056
|
prev: S?.name ? { to: `../${S.slug}`, label: S.name } : void 0,
|
|
5055
5057
|
next: v ? {
|
|
5056
|
-
to: `../${v.slug ??
|
|
5058
|
+
to: `../${v.slug ?? Ka}`,
|
|
5057
5059
|
label: v.name ?? "Other endpoints"
|
|
5058
5060
|
} : void 0
|
|
5059
5061
|
}, R = [d.tag.name, f].filter(Boolean).join(" - ");
|
|
@@ -5064,7 +5066,7 @@ const _s = Me(
|
|
|
5064
5066
|
"data-pagefind-filter": "section:openapi",
|
|
5065
5067
|
"data-pagefind-meta": "section:openapi",
|
|
5066
5068
|
children: [
|
|
5067
|
-
/* @__PURE__ */ b.jsxs(
|
|
5069
|
+
/* @__PURE__ */ b.jsxs(La, { children: [
|
|
5068
5070
|
R && /* @__PURE__ */ b.jsx("title", { children: R }),
|
|
5069
5071
|
p && /* @__PURE__ */ b.jsx("meta", { name: "description", content: p })
|
|
5070
5072
|
] }),
|
|
@@ -5072,7 +5074,7 @@ const _s = Me(
|
|
|
5072
5074
|
/* @__PURE__ */ b.jsxs(ta, { className: "w-full", children: [
|
|
5073
5075
|
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-col gap-y-4 sm:flex-row justify-around items-start sm:items-end", children: [
|
|
5074
5076
|
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-col flex-1 gap-2", children: [
|
|
5075
|
-
/* @__PURE__ */ b.jsx(
|
|
5077
|
+
/* @__PURE__ */ b.jsx(Xa, { children: f }),
|
|
5076
5078
|
/* @__PURE__ */ b.jsxs(
|
|
5077
5079
|
Fe,
|
|
5078
5080
|
{
|
|
@@ -5116,7 +5118,7 @@ const _s = Me(
|
|
|
5116
5118
|
}
|
|
5117
5119
|
),
|
|
5118
5120
|
/* @__PURE__ */ b.jsx(
|
|
5119
|
-
|
|
5121
|
+
Wa,
|
|
5120
5122
|
{
|
|
5121
5123
|
className: "group-data-[state=closed]:hidden translate-y-px",
|
|
5122
5124
|
size: 13
|
|
@@ -5153,14 +5155,14 @@ const _s = Me(
|
|
|
5153
5155
|
),
|
|
5154
5156
|
/* @__PURE__ */ b.jsx("hr", { className: "my-10" })
|
|
5155
5157
|
] }, q.slug)),
|
|
5156
|
-
/* @__PURE__ */ b.jsx(
|
|
5158
|
+
/* @__PURE__ */ b.jsx(Za, { className: "mb-4", ...k })
|
|
5157
5159
|
] })
|
|
5158
5160
|
]
|
|
5159
5161
|
}
|
|
5160
5162
|
);
|
|
5161
5163
|
};
|
|
5162
5164
|
export {
|
|
5163
|
-
|
|
5165
|
+
ul as OperationList,
|
|
5164
5166
|
_s as OperationsFragment
|
|
5165
5167
|
};
|
|
5166
|
-
//# sourceMappingURL=OperationList-
|
|
5168
|
+
//# sourceMappingURL=OperationList-DpmkHf26.js.map
|