zudoku 0.13.6 → 0.13.7
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.js +1 -1
- package/dist/app/main.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +2 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/ui/Accordion.d.ts +7 -0
- package/dist/lib/ui/Accordion.js +14 -0
- package/dist/lib/ui/Accordion.js.map +1 -0
- package/dist/lib/ui/Alert.d.ts +8 -0
- package/dist/lib/ui/Alert.js +23 -0
- package/dist/lib/ui/Alert.js.map +1 -0
- package/dist/lib/ui/AlertDialog.d.ts +20 -0
- package/dist/lib/ui/AlertDialog.js +27 -0
- package/dist/lib/ui/AlertDialog.js.map +1 -0
- package/dist/lib/ui/AspectRatio.d.ts +3 -0
- package/dist/lib/ui/AspectRatio.js +4 -0
- package/dist/lib/ui/AspectRatio.js.map +1 -0
- package/dist/lib/ui/Badge.d.ts +9 -0
- package/dist/lib/ui/Badge.js +21 -0
- package/dist/lib/ui/Badge.js.map +1 -0
- package/dist/lib/ui/Breadcrumb.d.ts +19 -0
- package/dist/lib/ui/Breadcrumb.js +24 -0
- package/dist/lib/ui/Breadcrumb.js.map +1 -0
- package/dist/lib/ui/Button.d.ts +1 -2
- package/dist/lib/ui/Button.js +1 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Carousel.d.ts +18 -0
- package/dist/lib/ui/Carousel.js +99 -0
- package/dist/lib/ui/Carousel.js.map +1 -0
- package/dist/lib/ui/Checkbox.d.ts +4 -0
- package/dist/lib/ui/Checkbox.js +9 -0
- package/dist/lib/ui/Checkbox.js.map +1 -0
- package/dist/lib/ui/Collapsible.d.ts +5 -0
- package/dist/lib/ui/Collapsible.js +6 -0
- package/dist/lib/ui/Collapsible.js.map +1 -0
- package/dist/lib/{components → ui}/Dialog.js +2 -2
- package/dist/lib/ui/Dialog.js.map +1 -0
- package/dist/lib/ui/Form.d.ts +23 -0
- package/dist/lib/ui/Form.js +63 -0
- package/dist/lib/ui/Form.js.map +1 -0
- package/dist/lib/ui/HoverCard.d.ts +6 -0
- package/dist/lib/ui/HoverCard.js +10 -0
- package/dist/lib/ui/HoverCard.js.map +1 -0
- package/dist/lib/ui/Label.d.ts +5 -0
- package/dist/lib/ui/Label.js +10 -0
- package/dist/lib/ui/Label.js.map +1 -0
- package/dist/lib/ui/Pagination.d.ts +28 -0
- package/dist/lib/ui/Pagination.js +24 -0
- package/dist/lib/ui/Pagination.js.map +1 -0
- package/dist/lib/ui/Popover.d.ts +6 -0
- package/dist/lib/ui/Popover.js +10 -0
- package/dist/lib/ui/Popover.js.map +1 -0
- package/dist/lib/ui/Progress.d.ts +4 -0
- package/dist/lib/ui/Progress.js +8 -0
- package/dist/lib/ui/Progress.js.map +1 -0
- package/dist/lib/ui/RadioGroup.d.ts +5 -0
- package/dist/lib/ui/RadioGroup.js +15 -0
- package/dist/lib/ui/RadioGroup.js.map +1 -0
- package/dist/lib/ui/ScrollArea.d.ts +5 -0
- package/dist/lib/ui/ScrollArea.js +12 -0
- package/dist/lib/ui/ScrollArea.js.map +1 -0
- package/dist/lib/ui/Select.js.map +1 -0
- package/dist/lib/ui/Skeleton.d.ts +2 -0
- package/dist/lib/ui/Skeleton.js +7 -0
- package/dist/lib/ui/Skeleton.js.map +1 -0
- package/dist/lib/ui/Slider.d.ts +4 -0
- package/dist/lib/ui/Slider.js +8 -0
- package/dist/lib/ui/Slider.js.map +1 -0
- package/dist/lib/ui/Switch.d.ts +4 -0
- package/dist/lib/ui/Switch.js +8 -0
- package/dist/lib/ui/Switch.js.map +1 -0
- package/dist/lib/ui/Textarea.d.ts +4 -0
- package/dist/lib/ui/Textarea.js +9 -0
- package/dist/lib/ui/Textarea.js.map +1 -0
- package/dist/lib/ui/Toggle.d.ts +12 -0
- package/dist/lib/ui/Toggle.js +26 -0
- package/dist/lib/ui/Toggle.js.map +1 -0
- package/dist/lib/ui/ToggleGroup.d.ts +12 -0
- package/dist/lib/ui/ToggleGroup.js +21 -0
- package/dist/lib/ui/ToggleGroup.js.map +1 -0
- package/dist/lib/ui/Tooltip.d.ts +7 -0
- package/dist/lib/ui/Tooltip.js +11 -0
- package/dist/lib/ui/Tooltip.js.map +1 -0
- package/dist/vite/plugin-component.js +17 -7
- package/dist/vite/plugin-component.js.map +1 -1
- package/lib/{AuthenticationPlugin-tBvLKsFg.js → AuthenticationPlugin-Bpdes0cJ.js} +2 -2
- package/lib/{AuthenticationPlugin-tBvLKsFg.js.map → AuthenticationPlugin-Bpdes0cJ.js.map} +1 -1
- package/lib/{CategoryHeading-D2WS6sRI.js → CategoryHeading-Bb9dqxD3.js} +4 -4
- package/lib/{CategoryHeading-D2WS6sRI.js.map → CategoryHeading-Bb9dqxD3.js.map} +1 -1
- package/lib/{DeveloperHint-CRiZjqd2.js → DeveloperHint-DHdLXGHA.js} +2 -2
- package/lib/{DeveloperHint-CRiZjqd2.js.map → DeveloperHint-DHdLXGHA.js.map} +1 -1
- package/lib/{Markdown-DM4zv3MA.js → Markdown-1BO9EA_X.js} +4265 -6650
- package/lib/Markdown-1BO9EA_X.js.map +1 -0
- package/lib/{MdxPage-tWI_P8wP.js → MdxPage-BEOcOICU.js} +26 -25
- package/lib/{MdxPage-tWI_P8wP.js.map → MdxPage-BEOcOICU.js.map} +1 -1
- package/lib/{OperationList-Cd3lue0b.js → OperationList-Cea2Yt8e.js} +131 -127
- package/lib/{OperationList-Cd3lue0b.js.map → OperationList-Cea2Yt8e.js.map} +1 -1
- package/lib/{Route-DI0Y0pIV.js → Route-BHT-onwf.js} +2 -2
- package/lib/{Route-DI0Y0pIV.js.map → Route-BHT-onwf.js.map} +1 -1
- package/lib/Select-m1aXZGAP.js +223 -0
- package/lib/Select-m1aXZGAP.js.map +1 -0
- package/lib/{SlotletProvider-CBqY8mp6.js → SlotletProvider-CPfsBw39.js} +4 -4
- package/lib/{SlotletProvider-CBqY8mp6.js.map → SlotletProvider-CPfsBw39.js.map} +1 -1
- package/lib/Spinner-C6zroowC.js +40 -0
- package/lib/Spinner-C6zroowC.js.map +1 -0
- package/lib/StaggeredRender-DDHSzQKE.js +17 -0
- package/lib/StaggeredRender-DDHSzQKE.js.map +1 -0
- package/lib/{ZudokuContext-DEoP3GGJ.js → ZudokuContext-D1D8Anlj.js} +19 -19
- package/lib/{ZudokuContext-DEoP3GGJ.js.map → ZudokuContext-D1D8Anlj.js.map} +1 -1
- package/lib/cn-BmFQLtkS.js +2279 -0
- package/lib/cn-BmFQLtkS.js.map +1 -0
- package/lib/hook-JSRuxV1P.js +229 -0
- package/lib/hook-JSRuxV1P.js.map +1 -0
- package/lib/index-BuAyrJe3.js +46 -0
- package/lib/index-BuAyrJe3.js.map +1 -0
- package/lib/{index-Bs9roz8y.js → index-Cj-F-4ME.js} +1203 -1428
- package/lib/index-Cj-F-4ME.js.map +1 -0
- package/lib/index.esm-C5mr_sKO.js +1193 -0
- package/lib/index.esm-C5mr_sKO.js.map +1 -0
- package/lib/ui/Accordion.js +47 -0
- package/lib/ui/Accordion.js.map +1 -0
- package/lib/ui/Alert.js +51 -0
- package/lib/ui/Alert.js.map +1 -0
- package/lib/ui/AlertDialog.js +114 -0
- package/lib/ui/AlertDialog.js.map +1 -0
- package/lib/ui/AspectRatio.js +6 -0
- package/lib/ui/AspectRatio.js.map +1 -0
- package/lib/ui/Badge.js +27 -0
- package/lib/ui/Badge.js.map +1 -0
- package/lib/ui/Breadcrumb.js +94 -0
- package/lib/ui/Breadcrumb.js.map +1 -0
- package/lib/ui/Button.js +49 -0
- package/lib/ui/Button.js.map +1 -0
- package/lib/ui/Callout.js +77 -0
- package/lib/ui/Callout.js.map +1 -0
- package/lib/ui/Card.js +62 -0
- package/lib/ui/Card.js.map +1 -0
- package/lib/ui/Carousel.js +1410 -0
- package/lib/ui/Carousel.js.map +1 -0
- package/lib/ui/Checkbox.js +28 -0
- package/lib/ui/Checkbox.js.map +1 -0
- package/lib/ui/Collapsible.js +8 -0
- package/lib/ui/Collapsible.js.map +1 -0
- package/lib/ui/Dialog.js +101 -0
- package/lib/ui/Dialog.js.map +1 -0
- package/lib/ui/Drawer.js +1153 -0
- package/lib/ui/Drawer.js.map +1 -0
- package/lib/ui/DropdownMenu.js +145 -0
- package/lib/ui/DropdownMenu.js.map +1 -0
- package/lib/ui/Form.js +95 -0
- package/lib/ui/Form.js.map +1 -0
- package/lib/ui/HoverCard.js +24 -0
- package/lib/ui/HoverCard.js.map +1 -0
- package/lib/ui/Input.js +22 -0
- package/lib/ui/Input.js.map +1 -0
- package/lib/ui/Label.js +20 -0
- package/lib/ui/Label.js.map +1 -0
- package/lib/ui/Note.js +51 -0
- package/lib/ui/Note.js.map +1 -0
- package/lib/ui/Pagination.js +106 -0
- package/lib/ui/Pagination.js.map +1 -0
- package/lib/ui/Popover.js +24 -0
- package/lib/ui/Popover.js.map +1 -0
- package/lib/ui/Progress.js +27 -0
- package/lib/ui/Progress.js.map +1 -0
- package/lib/ui/RadioGroup.js +32 -0
- package/lib/ui/RadioGroup.js.map +1 -0
- package/lib/ui/ScrollArea.js +39 -0
- package/lib/ui/ScrollArea.js.map +1 -0
- package/lib/ui/Select.js +122 -0
- package/lib/ui/Select.js.map +1 -0
- package/lib/ui/Skeleton.js +18 -0
- package/lib/ui/Skeleton.js.map +1 -0
- package/lib/ui/Slider.js +24 -0
- package/lib/ui/Slider.js.map +1 -0
- package/lib/ui/Switch.js +28 -0
- package/lib/ui/Switch.js.map +1 -0
- package/lib/ui/Tabs.js +47 -0
- package/lib/ui/Tabs.js.map +1 -0
- package/lib/ui/Textarea.js +21 -0
- package/lib/ui/Textarea.js.map +1 -0
- package/lib/ui/Toggle.js +38 -0
- package/lib/ui/Toggle.js.map +1 -0
- package/lib/ui/ToggleGroup.js +42 -0
- package/lib/ui/ToggleGroup.js.map +1 -0
- package/lib/ui/Tooltip.js +24 -0
- package/lib/ui/Tooltip.js.map +1 -0
- package/lib/{utils-G5XSiZc9.js → utils-B2yoT99j.js} +61 -61
- package/lib/{utils-G5XSiZc9.js.map → utils-B2yoT99j.js.map} +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +847 -2844
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +22 -19
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +14 -13
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -5
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/package.json +28 -6
- package/src/app/main.tsx +1 -1
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +2 -2
- package/src/lib/plugins/openapi/playground/Playground.tsx +3 -3
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/ui/Accordion.tsx +56 -0
- package/src/lib/ui/Alert.tsx +59 -0
- package/src/lib/ui/AlertDialog.tsx +139 -0
- package/src/lib/ui/AspectRatio.tsx +5 -0
- package/src/lib/ui/Badge.tsx +36 -0
- package/src/lib/ui/Breadcrumb.tsx +115 -0
- package/src/lib/ui/Button.tsx +1 -1
- package/src/lib/ui/Carousel.tsx +260 -0
- package/src/lib/ui/Checkbox.tsx +28 -0
- package/src/lib/ui/Collapsible.tsx +9 -0
- package/src/lib/{components → ui}/Dialog.tsx +4 -3
- package/src/lib/ui/Form.tsx +177 -0
- package/src/lib/ui/HoverCard.tsx +27 -0
- package/src/lib/ui/Label.tsx +24 -0
- package/src/lib/ui/Pagination.tsx +117 -0
- package/src/lib/ui/Popover.tsx +29 -0
- package/src/lib/ui/Progress.tsx +26 -0
- package/src/lib/ui/RadioGroup.tsx +42 -0
- package/src/lib/ui/ScrollArea.tsx +46 -0
- package/src/lib/ui/Skeleton.tsx +15 -0
- package/src/lib/ui/Slider.tsx +26 -0
- package/src/lib/ui/Switch.tsx +27 -0
- package/src/lib/ui/Textarea.tsx +23 -0
- package/src/lib/ui/Toggle.tsx +43 -0
- package/src/lib/ui/ToggleGroup.tsx +59 -0
- package/src/lib/ui/Tooltip.tsx +28 -0
- package/dist/internal.d.ts +0 -1
- package/dist/internal.js +0 -2
- package/dist/internal.js.map +0 -1
- package/dist/lib/components/Dialog.js.map +0 -1
- package/dist/lib/components/Select.js.map +0 -1
- package/lib/Input-CO-1DOZa.js +0 -2229
- package/lib/Input-CO-1DOZa.js.map +0 -1
- package/lib/Markdown-DM4zv3MA.js.map +0 -1
- package/lib/Spinner-DFQhPMBl.js +0 -505
- package/lib/Spinner-DFQhPMBl.js.map +0 -1
- package/lib/index-Bs9roz8y.js.map +0 -1
- package/lib/index-CBr6BM_4.js +0 -2867
- package/lib/index-CBr6BM_4.js.map +0 -1
- package/lib/index-UUT9q9f9.js +0 -124
- package/lib/index-UUT9q9f9.js.map +0 -1
- /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.d.ts +0 -0
- /package/dist/lib/{components → ui}/Select.js +0 -0
- /package/src/lib/{components → ui}/Select.tsx +0 -0
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { g as
|
|
3
|
-
import { C as
|
|
4
|
-
import { D as
|
|
5
|
-
import { I as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
2
|
+
import { g as v, u as w, a as q, S as $, C as L, b as R, E as z } from "./index-Cj-F-4ME.js";
|
|
3
|
+
import { C as O } from "./CategoryHeading-Bb9dqxD3.js";
|
|
4
|
+
import { D as E } from "./DeveloperHint-DHdLXGHA.js";
|
|
5
|
+
import { I as b, M as x, H as h, P as u, S as F } from "./Markdown-1BO9EA_X.js";
|
|
6
|
+
import { c as j } from "./cn-BmFQLtkS.js";
|
|
7
|
+
import { CheckIcon as D, CopyIcon as H, ChevronDownIcon as B, CircleFadingPlusIcon as M, CircleDotIcon as G, CircleIcon as Q, SquareMinusIcon as V, SquarePlusIcon as _, ListPlusIcon as J } from "lucide-react";
|
|
8
|
+
import { useTransition as K, useState as y, useCallback as U } from "react";
|
|
9
|
+
import { a as W } from "./state-CsuHT8ZO.js";
|
|
10
|
+
import { Button as P } from "./ui/Button.js";
|
|
11
|
+
import { Tabs as Z, TabsList as X, TabsTrigger as Y, TabsContent as ee } from "./ui/Tabs.js";
|
|
12
|
+
import { S as se } from "./StaggeredRender-DDHSzQKE.js";
|
|
13
|
+
import { Card as p, CardHeader as te, CardTitle as re, CardContent as ne } from "./ui/Card.js";
|
|
14
|
+
import * as m from "@radix-ui/react-collapsible";
|
|
15
|
+
function ie(t, s) {
|
|
12
16
|
return s;
|
|
13
17
|
}
|
|
14
|
-
const
|
|
18
|
+
const ae = v(
|
|
15
19
|
/* GraphQL */
|
|
16
20
|
`
|
|
17
21
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -23,10 +27,10 @@ const le = N(
|
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
`
|
|
26
|
-
),
|
|
27
|
-
const [s, n] =
|
|
30
|
+
), S = ({ url: t }) => {
|
|
31
|
+
const [s, n] = y(!1);
|
|
28
32
|
return /* @__PURE__ */ e.jsx(
|
|
29
|
-
|
|
33
|
+
P,
|
|
30
34
|
{
|
|
31
35
|
onClick: () => {
|
|
32
36
|
navigator.clipboard.writeText(t).then(() => {
|
|
@@ -35,28 +39,28 @@ const le = N(
|
|
|
35
39
|
},
|
|
36
40
|
variant: "ghost",
|
|
37
41
|
size: "icon",
|
|
38
|
-
children: s ? /* @__PURE__ */ e.jsx(
|
|
42
|
+
children: s ? /* @__PURE__ */ e.jsx(D, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ e.jsx(H, { size: 14, strokeWidth: 1.3 })
|
|
39
43
|
}
|
|
40
44
|
);
|
|
41
|
-
},
|
|
42
|
-
const [t] =
|
|
43
|
-
query:
|
|
44
|
-
variables:
|
|
45
|
-
context:
|
|
46
|
-
}), [, s] =
|
|
45
|
+
}, oe = { suspense: !0 }, le = () => {
|
|
46
|
+
const [t] = w({
|
|
47
|
+
query: ae,
|
|
48
|
+
variables: q(),
|
|
49
|
+
context: oe
|
|
50
|
+
}), [, s] = K(), { selectedServer: n, setSelectedServer: i } = W();
|
|
47
51
|
if (!t.data) return null;
|
|
48
52
|
const { servers: r } = t.data.schema;
|
|
49
53
|
return r.length === 1 ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
50
54
|
/* @__PURE__ */ e.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
|
|
51
|
-
/* @__PURE__ */ e.jsx(
|
|
52
|
-
/* @__PURE__ */ e.jsx(
|
|
55
|
+
/* @__PURE__ */ e.jsx(b, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: r[0].url }),
|
|
56
|
+
/* @__PURE__ */ e.jsx(S, { url: r[0].url })
|
|
53
57
|
] }) : /* @__PURE__ */ e.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
54
58
|
/* @__PURE__ */ e.jsxs("span", { className: "font-medium text-sm", children: [
|
|
55
59
|
r.length > 1 ? "Endpoints" : "Endpoint",
|
|
56
60
|
":"
|
|
57
61
|
] }),
|
|
58
62
|
/* @__PURE__ */ e.jsx(
|
|
59
|
-
|
|
63
|
+
$,
|
|
60
64
|
{
|
|
61
65
|
className: "font-mono text-xs bg-border/50 dark:bg-border/70 py-1.5 max-w-[450px] truncate",
|
|
62
66
|
onChange: (a) => s(() => {
|
|
@@ -70,24 +74,24 @@ const le = N(
|
|
|
70
74
|
}))
|
|
71
75
|
}
|
|
72
76
|
),
|
|
73
|
-
/* @__PURE__ */ e.jsx(
|
|
77
|
+
/* @__PURE__ */ e.jsx(S, { url: n ?? t.data.schema.url })
|
|
74
78
|
] });
|
|
75
|
-
},
|
|
79
|
+
}, T = (t, s) => t.reduce(
|
|
76
80
|
(n, i) => {
|
|
77
81
|
const r = s(i);
|
|
78
82
|
return n[r] || (n[r] = []), n[r].push(i), n;
|
|
79
83
|
},
|
|
80
84
|
{}
|
|
81
|
-
),
|
|
85
|
+
), ce = (t, s) => t ? s(t) : void 0, I = (t) => t.schema != null && typeof t.schema == "object" ? t.schema : {
|
|
82
86
|
type: "string"
|
|
83
|
-
},
|
|
87
|
+
}, de = ({
|
|
84
88
|
parameter: t,
|
|
85
89
|
group: s,
|
|
86
90
|
id: n
|
|
87
91
|
}) => /* @__PURE__ */ e.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1", children: [
|
|
88
92
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
89
93
|
/* @__PURE__ */ e.jsx("code", { children: s === "path" ? /* @__PURE__ */ e.jsx(
|
|
90
|
-
|
|
94
|
+
L,
|
|
91
95
|
{
|
|
92
96
|
name: t.name,
|
|
93
97
|
backgroundOpacity: "15%",
|
|
@@ -95,23 +99,23 @@ const le = N(
|
|
|
95
99
|
}
|
|
96
100
|
) : t.name }),
|
|
97
101
|
t.required && /* @__PURE__ */ e.jsx("span", { className: "py-px px-1.5 font-medium bg-primary/75 text-muted rounded-lg", children: "required" }),
|
|
98
|
-
|
|
102
|
+
I(t).type && /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: I(t).type })
|
|
99
103
|
] }),
|
|
100
104
|
t.description && /* @__PURE__ */ e.jsx(
|
|
101
|
-
|
|
105
|
+
x,
|
|
102
106
|
{
|
|
103
107
|
content: t.description,
|
|
104
108
|
className: "text-sm prose-p:my-1 prose-code:whitespace-pre-line"
|
|
105
109
|
}
|
|
106
110
|
)
|
|
107
|
-
] }),
|
|
111
|
+
] }), pe = ({
|
|
108
112
|
group: t,
|
|
109
113
|
parameters: s,
|
|
110
114
|
id: n
|
|
111
115
|
}) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
112
116
|
/* @__PURE__ */ e.jsx(h, { level: 3, id: `${n}/${t}-parameters`, className: "capitalize", children: t === "header" ? "Headers" : `${t} Parameters` }),
|
|
113
117
|
/* @__PURE__ */ e.jsx(p, { children: /* @__PURE__ */ e.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: s.sort((i, r) => i.required === r.required ? 0 : i.required ? -1 : 1).map((i) => /* @__PURE__ */ e.jsx(
|
|
114
|
-
|
|
118
|
+
de,
|
|
115
119
|
{
|
|
116
120
|
parameter: i,
|
|
117
121
|
id: n,
|
|
@@ -119,75 +123,75 @@ const le = N(
|
|
|
119
123
|
},
|
|
120
124
|
`${i.name}-${i.in}`
|
|
121
125
|
)) }) })
|
|
122
|
-
] }),
|
|
123
|
-
AND: /* @__PURE__ */ e.jsx(
|
|
124
|
-
OR: /* @__PURE__ */ e.jsx(
|
|
125
|
-
ONE: /* @__PURE__ */ e.jsx(
|
|
126
|
-
},
|
|
126
|
+
] }), me = (t) => Object.entries(t), xe = {
|
|
127
|
+
AND: /* @__PURE__ */ e.jsx(M, { size: 16, className: "fill-card" }),
|
|
128
|
+
OR: /* @__PURE__ */ e.jsx(G, { size: 16, className: "fill-card" }),
|
|
129
|
+
ONE: /* @__PURE__ */ e.jsx(Q, { size: 14, className: "fill-card" })
|
|
130
|
+
}, ue = {
|
|
127
131
|
AND: "text-green-500 dark:text-green-300/60",
|
|
128
132
|
OR: "text-blue-400 dark:text-blue-500",
|
|
129
133
|
ONE: "text-purple-500 dark:text-purple-300/60"
|
|
130
|
-
},
|
|
134
|
+
}, je = ({
|
|
131
135
|
type: t,
|
|
132
136
|
isOpen: s,
|
|
133
137
|
className: n
|
|
134
138
|
}) => /* @__PURE__ */ e.jsx(
|
|
135
139
|
"div",
|
|
136
140
|
{
|
|
137
|
-
className:
|
|
138
|
-
|
|
141
|
+
className: j(
|
|
142
|
+
ue[t],
|
|
139
143
|
"relative text-sm flex py-2",
|
|
140
144
|
"before:border-l before:absolute before:-top-2 before:-bottom-2 before:border-border before:border-dashed before:content-['']",
|
|
141
145
|
n
|
|
142
146
|
),
|
|
143
147
|
children: /* @__PURE__ */ e.jsxs("div", { className: "-translate-x-[7px] flex gap-1 items-center", children: [
|
|
144
|
-
|
|
148
|
+
xe[t],
|
|
145
149
|
/* @__PURE__ */ e.jsx(
|
|
146
150
|
"div",
|
|
147
151
|
{
|
|
148
|
-
className:
|
|
152
|
+
className: j(
|
|
149
153
|
"translate-y-px mx-px opacity-0 group-hover:opacity-100 transition",
|
|
150
154
|
!s && "-rotate-90"
|
|
151
155
|
),
|
|
152
|
-
children: /* @__PURE__ */ e.jsx(
|
|
156
|
+
children: /* @__PURE__ */ e.jsx(B, { size: 16 })
|
|
153
157
|
}
|
|
154
158
|
)
|
|
155
159
|
] })
|
|
156
160
|
}
|
|
157
|
-
),
|
|
158
|
-
const [s, n] =
|
|
161
|
+
), ge = (t) => {
|
|
162
|
+
const [s, n] = y(!0);
|
|
159
163
|
return /* @__PURE__ */ e.jsxs(
|
|
160
|
-
|
|
164
|
+
m.Root,
|
|
161
165
|
{
|
|
162
166
|
open: s,
|
|
163
167
|
onOpenChange: () => n((i) => !i),
|
|
164
168
|
className: "group",
|
|
165
169
|
children: [
|
|
166
|
-
/* @__PURE__ */ e.jsx(
|
|
170
|
+
/* @__PURE__ */ e.jsx(m.Trigger, { children: /* @__PURE__ */ e.jsx(je, { type: t.type, isOpen: s }) }),
|
|
167
171
|
!s && /* @__PURE__ */ e.jsx("div", { className: "wavy-line bg-border translate-y-1" }),
|
|
168
|
-
/* @__PURE__ */ e.jsx(
|
|
172
|
+
/* @__PURE__ */ e.jsx(m.Content, { children: /* @__PURE__ */ e.jsx(f, { schema: t.schema, level: t.level + 1 }) })
|
|
169
173
|
]
|
|
170
174
|
}
|
|
171
175
|
);
|
|
172
|
-
},
|
|
176
|
+
}, he = {
|
|
173
177
|
AND: "All of",
|
|
174
178
|
OR: "Any of",
|
|
175
179
|
ONE: "One of"
|
|
176
|
-
},
|
|
180
|
+
}, fe = ({
|
|
177
181
|
schemas: t,
|
|
178
182
|
type: s,
|
|
179
183
|
isOpen: n,
|
|
180
184
|
level: i,
|
|
181
185
|
toggleOpen: r
|
|
182
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
183
|
-
/* @__PURE__ */ e.jsxs(
|
|
184
|
-
n ? /* @__PURE__ */ e.jsx(
|
|
185
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
186
|
+
}) => /* @__PURE__ */ e.jsx(m.Root, { open: n, onOpenChange: r, asChild: !0, children: /* @__PURE__ */ e.jsxs(p, { className: "px-6", children: [
|
|
187
|
+
/* @__PURE__ */ e.jsxs(m.Trigger, { className: "flex gap-2 items-center py-2 w-full text-sm text-muted-foreground -translate-x-1.5", children: [
|
|
188
|
+
n ? /* @__PURE__ */ e.jsx(V, { size: 14 }) : /* @__PURE__ */ e.jsx(_, { size: 14 }),
|
|
189
|
+
/* @__PURE__ */ e.jsx("span", { children: he[s] })
|
|
186
190
|
] }),
|
|
187
|
-
/* @__PURE__ */ e.jsx(
|
|
191
|
+
/* @__PURE__ */ e.jsx(m.Content, { className: "pb-4", children: t.map((a, l) => (
|
|
188
192
|
// eslint-disable-next-line react/no-array-index-key
|
|
189
193
|
/* @__PURE__ */ e.jsx(
|
|
190
|
-
|
|
194
|
+
ge,
|
|
191
195
|
{
|
|
192
196
|
type: s,
|
|
193
197
|
schema: a,
|
|
@@ -196,19 +200,19 @@ const le = N(
|
|
|
196
200
|
l
|
|
197
201
|
)
|
|
198
202
|
)) })
|
|
199
|
-
] }) }),
|
|
203
|
+
] }) }), ye = (t) => t.type === "object" || t.type === "array" && typeof t.items == "object" && (!t.items.type || t.items.type === "object"), N = (t) => !!(t.oneOf ?? t.allOf ?? t.anyOf), be = {
|
|
200
204
|
allOf: "AND",
|
|
201
205
|
anyOf: "OR",
|
|
202
206
|
oneOf: "ONE"
|
|
203
|
-
},
|
|
207
|
+
}, A = ({
|
|
204
208
|
schema: t,
|
|
205
209
|
level: s
|
|
206
210
|
}) => {
|
|
207
|
-
const [n, i] =
|
|
208
|
-
for (const [a, l] of
|
|
211
|
+
const [n, i] = y(!0), r = U(() => i((a) => !a), []);
|
|
212
|
+
for (const [a, l] of me(be))
|
|
209
213
|
if (t[a])
|
|
210
214
|
return /* @__PURE__ */ e.jsx(
|
|
211
|
-
|
|
215
|
+
fe,
|
|
212
216
|
{
|
|
213
217
|
schemas: t[a],
|
|
214
218
|
type: l,
|
|
@@ -217,7 +221,7 @@ const le = N(
|
|
|
217
221
|
level: s
|
|
218
222
|
}
|
|
219
223
|
);
|
|
220
|
-
},
|
|
224
|
+
}, Ne = ({
|
|
221
225
|
name: t,
|
|
222
226
|
schema: s,
|
|
223
227
|
group: n,
|
|
@@ -225,7 +229,7 @@ const le = N(
|
|
|
225
229
|
defaultOpen: r = !1,
|
|
226
230
|
showCollapseButton: a = !0
|
|
227
231
|
}) => {
|
|
228
|
-
const [l,
|
|
232
|
+
const [l, g] = y(r);
|
|
229
233
|
return /* @__PURE__ */ e.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1 justify-between text-sm", children: [
|
|
230
234
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
231
235
|
/* @__PURE__ */ e.jsx("code", { children: t }),
|
|
@@ -236,37 +240,37 @@ const le = N(
|
|
|
236
240
|
n === "optional" && /* @__PURE__ */ e.jsx("span", { className: "py-px px-1.5 font-medium border rounded-lg", children: "optional" })
|
|
237
241
|
] }),
|
|
238
242
|
s.description && /* @__PURE__ */ e.jsx(
|
|
239
|
-
|
|
243
|
+
x,
|
|
240
244
|
{
|
|
241
|
-
className:
|
|
245
|
+
className: j(u, "text-sm leading-normal line-clamp-4"),
|
|
242
246
|
content: s.description
|
|
243
247
|
}
|
|
244
248
|
),
|
|
245
|
-
(
|
|
246
|
-
|
|
249
|
+
(N(s) || ye(s)) && /* @__PURE__ */ e.jsxs(
|
|
250
|
+
m.Root,
|
|
247
251
|
{
|
|
248
252
|
defaultOpen: r,
|
|
249
253
|
open: l,
|
|
250
|
-
onOpenChange: () =>
|
|
254
|
+
onOpenChange: () => g(!l),
|
|
251
255
|
children: [
|
|
252
|
-
a && /* @__PURE__ */ e.jsx(
|
|
253
|
-
|
|
256
|
+
a && /* @__PURE__ */ e.jsx(m.Trigger, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
257
|
+
P,
|
|
254
258
|
{
|
|
255
259
|
variant: "outline",
|
|
256
260
|
size: "sm",
|
|
257
261
|
className: "mt-2 flex gap-1.5",
|
|
258
262
|
children: [
|
|
259
|
-
/* @__PURE__ */ e.jsx(
|
|
263
|
+
/* @__PURE__ */ e.jsx(J, { size: 18 }),
|
|
260
264
|
l ? "Hide nested properties" : "Show nested properties"
|
|
261
265
|
]
|
|
262
266
|
}
|
|
263
267
|
) }),
|
|
264
|
-
/* @__PURE__ */ e.jsx(
|
|
268
|
+
/* @__PURE__ */ e.jsx(m.Content, { children: /* @__PURE__ */ e.jsx("div", { className: "mt-2", children: N(s) ? /* @__PURE__ */ e.jsx(A, { schema: s, level: i + 1 }) : s.type === "object" ? /* @__PURE__ */ e.jsx(f, { schema: s, level: i + 1 }) : s.type === "array" && typeof s.items == "object" && /* @__PURE__ */ e.jsx(f, { schema: s.items, level: i + 1 }) }) })
|
|
265
269
|
]
|
|
266
270
|
}
|
|
267
271
|
)
|
|
268
272
|
] }) });
|
|
269
|
-
},
|
|
273
|
+
}, f = ({
|
|
270
274
|
schema: t,
|
|
271
275
|
level: s = 0,
|
|
272
276
|
defaultOpen: n = !1
|
|
@@ -274,8 +278,8 @@ const le = N(
|
|
|
274
278
|
if (!t || Object.keys(t).length === 0)
|
|
275
279
|
return /* @__PURE__ */ e.jsx(p, { className: "p-4", children: /* @__PURE__ */ e.jsx("span", { className: "text-sm text-muted-foreground italic", children: "No response specified" }) });
|
|
276
280
|
const i = (r, a) => {
|
|
277
|
-
if (
|
|
278
|
-
return /* @__PURE__ */ e.jsx(
|
|
281
|
+
if (N(r))
|
|
282
|
+
return /* @__PURE__ */ e.jsx(A, { schema: r, level: a });
|
|
279
283
|
if (r.type === "array" && r.items) {
|
|
280
284
|
const l = r.items;
|
|
281
285
|
return typeof l.type == "string" && ["string", "number", "boolean", "integer"].includes(l.type) ? /* @__PURE__ */ e.jsxs(p, { className: "p-4", children: [
|
|
@@ -284,9 +288,9 @@ const le = N(
|
|
|
284
288
|
"[]"
|
|
285
289
|
] }),
|
|
286
290
|
r.description && /* @__PURE__ */ e.jsx(
|
|
287
|
-
|
|
291
|
+
x,
|
|
288
292
|
{
|
|
289
|
-
className:
|
|
293
|
+
className: j(
|
|
290
294
|
u,
|
|
291
295
|
"text-sm leading-normal line-clamp-4"
|
|
292
296
|
),
|
|
@@ -303,9 +307,9 @@ const le = N(
|
|
|
303
307
|
"name" in r && /* @__PURE__ */ e.jsx(e.Fragment, { children: r.name }),
|
|
304
308
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm text-muted-foreground", children: "object" }),
|
|
305
309
|
r.description && /* @__PURE__ */ e.jsx(
|
|
306
|
-
|
|
310
|
+
x,
|
|
307
311
|
{
|
|
308
|
-
className:
|
|
312
|
+
className: j(
|
|
309
313
|
u,
|
|
310
314
|
"text-sm leading-normal line-clamp-4"
|
|
311
315
|
),
|
|
@@ -314,16 +318,16 @@ const le = N(
|
|
|
314
318
|
)
|
|
315
319
|
] });
|
|
316
320
|
if (r.properties) {
|
|
317
|
-
const l =
|
|
321
|
+
const l = T(
|
|
318
322
|
Object.entries(r.properties),
|
|
319
323
|
([d, o]) => {
|
|
320
324
|
var c;
|
|
321
325
|
return o.deprecated ? "deprecated" : (c = r.required) != null && c.includes(d) ? "required" : "optional";
|
|
322
326
|
}
|
|
323
|
-
),
|
|
324
|
-
return /* @__PURE__ */ e.jsx(p, { className: "divide-y overflow-hidden", children:
|
|
327
|
+
), g = ["required", "optional", "deprecated"];
|
|
328
|
+
return /* @__PURE__ */ e.jsx(p, { className: "divide-y overflow-hidden", children: g.map(
|
|
325
329
|
(d) => l[d] && /* @__PURE__ */ e.jsx("ul", { className: "divide-y", children: l[d].map(([o, c]) => /* @__PURE__ */ e.jsx(
|
|
326
|
-
|
|
330
|
+
Ne,
|
|
327
331
|
{
|
|
328
332
|
name: o,
|
|
329
333
|
schema: c,
|
|
@@ -338,9 +342,9 @@ const le = N(
|
|
|
338
342
|
return typeof r.type == "string" && ["string", "number", "boolean", "integer", "null"].includes(r.type) ? /* @__PURE__ */ e.jsxs(p, { className: "p-4", children: [
|
|
339
343
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm text-muted-foreground", children: r.type }),
|
|
340
344
|
r.description && /* @__PURE__ */ e.jsx(
|
|
341
|
-
|
|
345
|
+
x,
|
|
342
346
|
{
|
|
343
|
-
className:
|
|
347
|
+
className: j(
|
|
344
348
|
u,
|
|
345
349
|
"text-sm leading-normal line-clamp-4"
|
|
346
350
|
),
|
|
@@ -348,22 +352,22 @@ const le = N(
|
|
|
348
352
|
}
|
|
349
353
|
)
|
|
350
354
|
] }) : r.additionalProperties ? /* @__PURE__ */ e.jsxs(p, { className: "my-2", children: [
|
|
351
|
-
/* @__PURE__ */ e.jsx(
|
|
352
|
-
/* @__PURE__ */ e.jsx(
|
|
355
|
+
/* @__PURE__ */ e.jsx(te, { children: /* @__PURE__ */ e.jsx(re, { children: "Additional Properties:" }) }),
|
|
356
|
+
/* @__PURE__ */ e.jsx(ne, { children: i(
|
|
353
357
|
r.additionalProperties,
|
|
354
358
|
a + 1
|
|
355
359
|
) })
|
|
356
360
|
] }) : null;
|
|
357
361
|
};
|
|
358
362
|
return i(t, s);
|
|
359
|
-
},
|
|
363
|
+
}, ve = ["path", "query", "header", "cookie"], Ce = ({
|
|
360
364
|
operationFragment: t
|
|
361
365
|
}) => {
|
|
362
|
-
var l,
|
|
363
|
-
const s =
|
|
366
|
+
var l, g, d;
|
|
367
|
+
const s = ie(Oe, t), n = T(
|
|
364
368
|
s.parameters ?? [],
|
|
365
369
|
(o) => o.in
|
|
366
|
-
), i = s.responses.at(0), [r, a] =
|
|
370
|
+
), i = s.responses.at(0), [r, a] = y(i == null ? void 0 : i.statusCode);
|
|
367
371
|
return /* @__PURE__ */ e.jsxs(
|
|
368
372
|
"div",
|
|
369
373
|
{
|
|
@@ -372,17 +376,17 @@ const le = N(
|
|
|
372
376
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
373
377
|
/* @__PURE__ */ e.jsx(h, { level: 2, id: s.slug, registerSidebarAnchor: !0, children: s.summary }),
|
|
374
378
|
s.description && /* @__PURE__ */ e.jsx(
|
|
375
|
-
|
|
379
|
+
x,
|
|
376
380
|
{
|
|
377
381
|
className: `${u} max-w-full prose-img:max-w-prose`,
|
|
378
382
|
content: s.description
|
|
379
383
|
}
|
|
380
384
|
),
|
|
381
|
-
s.parameters && s.parameters.length > 0 && /* @__PURE__ */ e.jsx(e.Fragment, { children:
|
|
385
|
+
s.parameters && s.parameters.length > 0 && /* @__PURE__ */ e.jsx(e.Fragment, { children: ve.flatMap(
|
|
382
386
|
(o) => {
|
|
383
387
|
var c;
|
|
384
388
|
return (c = n[o]) != null && c.length ? /* @__PURE__ */ e.jsx(
|
|
385
|
-
|
|
389
|
+
pe,
|
|
386
390
|
{
|
|
387
391
|
id: s.slug,
|
|
388
392
|
parameters: n[o],
|
|
@@ -392,7 +396,7 @@ const le = N(
|
|
|
392
396
|
) : [];
|
|
393
397
|
}
|
|
394
398
|
) }),
|
|
395
|
-
|
|
399
|
+
ce((d = (g = (l = s.requestBody) == null ? void 0 : l.content) == null ? void 0 : g.at(0)) == null ? void 0 : d.schema, (o) => /* @__PURE__ */ e.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
|
|
396
400
|
/* @__PURE__ */ e.jsx(
|
|
397
401
|
h,
|
|
398
402
|
{
|
|
@@ -403,7 +407,7 @@ const le = N(
|
|
|
403
407
|
children: "Request Body"
|
|
404
408
|
}
|
|
405
409
|
),
|
|
406
|
-
/* @__PURE__ */ e.jsx(
|
|
410
|
+
/* @__PURE__ */ e.jsx(f, { schema: o })
|
|
407
411
|
] })),
|
|
408
412
|
s.responses.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
409
413
|
/* @__PURE__ */ e.jsx(
|
|
@@ -417,13 +421,13 @@ const le = N(
|
|
|
417
421
|
}
|
|
418
422
|
),
|
|
419
423
|
/* @__PURE__ */ e.jsxs(
|
|
420
|
-
|
|
424
|
+
Z,
|
|
421
425
|
{
|
|
422
426
|
onValueChange: (o) => a(o),
|
|
423
427
|
value: r,
|
|
424
428
|
children: [
|
|
425
|
-
s.responses.length > 1 && /* @__PURE__ */ e.jsx(
|
|
426
|
-
|
|
429
|
+
s.responses.length > 1 && /* @__PURE__ */ e.jsx(X, { children: s.responses.map((o) => /* @__PURE__ */ e.jsx(
|
|
430
|
+
Y,
|
|
427
431
|
{
|
|
428
432
|
value: o.statusCode,
|
|
429
433
|
title: o.description ?? void 0,
|
|
@@ -432,15 +436,15 @@ const le = N(
|
|
|
432
436
|
o.statusCode
|
|
433
437
|
)) }),
|
|
434
438
|
/* @__PURE__ */ e.jsx("ul", { className: "list-none m-0 px-0", children: s.responses.map((o) => {
|
|
435
|
-
var c,
|
|
439
|
+
var c, C;
|
|
436
440
|
return /* @__PURE__ */ e.jsx(
|
|
437
|
-
|
|
441
|
+
ee,
|
|
438
442
|
{
|
|
439
443
|
value: o.statusCode,
|
|
440
444
|
children: /* @__PURE__ */ e.jsx(
|
|
441
|
-
|
|
445
|
+
f,
|
|
442
446
|
{
|
|
443
|
-
schema: (
|
|
447
|
+
schema: (C = (c = o.content) == null ? void 0 : c.find((k) => k.schema)) == null ? void 0 : C.schema
|
|
444
448
|
}
|
|
445
449
|
)
|
|
446
450
|
},
|
|
@@ -453,7 +457,7 @@ const le = N(
|
|
|
453
457
|
] })
|
|
454
458
|
] }),
|
|
455
459
|
/* @__PURE__ */ e.jsx(
|
|
456
|
-
|
|
460
|
+
R,
|
|
457
461
|
{
|
|
458
462
|
selectedResponse: r,
|
|
459
463
|
onSelectResponse: a,
|
|
@@ -464,7 +468,7 @@ const le = N(
|
|
|
464
468
|
},
|
|
465
469
|
s.operationId
|
|
466
470
|
);
|
|
467
|
-
},
|
|
471
|
+
}, Oe = v(
|
|
468
472
|
/* GraphQL */
|
|
469
473
|
`
|
|
470
474
|
fragment OperationsFragment on OperationItem {
|
|
@@ -515,7 +519,7 @@ const le = N(
|
|
|
515
519
|
}
|
|
516
520
|
}
|
|
517
521
|
`
|
|
518
|
-
),
|
|
522
|
+
), Se = v(
|
|
519
523
|
/* GraphQL */
|
|
520
524
|
`
|
|
521
525
|
query AllOperations($input: JSON!, $type: SchemaType!) {
|
|
@@ -535,56 +539,56 @@ const le = N(
|
|
|
535
539
|
}
|
|
536
540
|
}
|
|
537
541
|
`
|
|
538
|
-
),
|
|
542
|
+
), Ie = { suspense: !0 }, He = () => {
|
|
539
543
|
var r;
|
|
540
|
-
const { type: t, input: s } =
|
|
541
|
-
query:
|
|
544
|
+
const { type: t, input: s } = q(), [n] = w({
|
|
545
|
+
query: Se,
|
|
542
546
|
variables: { type: t, input: s },
|
|
543
|
-
context:
|
|
547
|
+
context: Ie
|
|
544
548
|
}), i = (r = n.error) == null ? void 0 : r.graphQLErrors.at(0);
|
|
545
549
|
return i ? /* @__PURE__ */ e.jsx(
|
|
546
|
-
|
|
550
|
+
z,
|
|
547
551
|
{
|
|
548
552
|
category: "Error",
|
|
549
553
|
title: "Schema cannot be displayed",
|
|
550
554
|
message: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
551
|
-
/* @__PURE__ */ e.jsxs(
|
|
555
|
+
/* @__PURE__ */ e.jsxs(E, { className: "mb-4", children: [
|
|
552
556
|
"Check your configuration value ",
|
|
553
|
-
/* @__PURE__ */ e.jsx(
|
|
557
|
+
/* @__PURE__ */ e.jsx(b, { children: "apis.type" }),
|
|
554
558
|
" ",
|
|
555
559
|
"and ",
|
|
556
|
-
/* @__PURE__ */ e.jsx(
|
|
560
|
+
/* @__PURE__ */ e.jsx(b, { children: "apis.input" }),
|
|
557
561
|
" in the Zudoku config."
|
|
558
562
|
] }),
|
|
559
563
|
"An error occurred while trying to fetch the API reference:",
|
|
560
|
-
/* @__PURE__ */ e.jsx(
|
|
564
|
+
/* @__PURE__ */ e.jsx(F, { code: i.toString(), language: "plain" })
|
|
561
565
|
] })
|
|
562
566
|
}
|
|
563
567
|
) : n.data ? /* @__PURE__ */ e.jsxs("div", { className: "pt-[--padding-content-top]", children: [
|
|
564
568
|
/* @__PURE__ */ e.jsxs(
|
|
565
569
|
"div",
|
|
566
570
|
{
|
|
567
|
-
className:
|
|
571
|
+
className: j(u, "mb-16 max-w-full prose-img:max-w-prose"),
|
|
568
572
|
children: [
|
|
569
|
-
/* @__PURE__ */ e.jsx(
|
|
573
|
+
/* @__PURE__ */ e.jsx(O, { children: "Overview" }),
|
|
570
574
|
/* @__PURE__ */ e.jsx(h, { level: 1, id: "description", registerSidebarAnchor: !0, children: n.data.schema.title }),
|
|
571
|
-
/* @__PURE__ */ e.jsx(
|
|
575
|
+
/* @__PURE__ */ e.jsx(x, { content: n.data.schema.description ?? "" })
|
|
572
576
|
]
|
|
573
577
|
}
|
|
574
578
|
),
|
|
575
579
|
/* @__PURE__ */ e.jsx("hr", {}),
|
|
576
|
-
/* @__PURE__ */ e.jsx("div", { className: "my-4 flex justify-end", children: /* @__PURE__ */ e.jsx(
|
|
580
|
+
/* @__PURE__ */ e.jsx("div", { className: "my-4 flex justify-end", children: /* @__PURE__ */ e.jsx(le, {}) }),
|
|
577
581
|
n.data.schema.tags.filter((a) => a.operations.length > 0).map((a) => /* @__PURE__ */ e.jsxs("div", { children: [
|
|
578
|
-
a.name && /* @__PURE__ */ e.jsx(
|
|
582
|
+
a.name && /* @__PURE__ */ e.jsx(O, { children: a.name }),
|
|
579
583
|
a.description && /* @__PURE__ */ e.jsx(
|
|
580
|
-
|
|
584
|
+
x,
|
|
581
585
|
{
|
|
582
586
|
className: `${u} max-w-full prose-img:max-w-prose w-full mt-2 mb-12`,
|
|
583
587
|
content: a.description
|
|
584
588
|
}
|
|
585
589
|
),
|
|
586
|
-
/* @__PURE__ */ e.jsx("div", { className: "operation mb-12", children: /* @__PURE__ */ e.jsx(
|
|
587
|
-
|
|
590
|
+
/* @__PURE__ */ e.jsx("div", { className: "operation mb-12", children: /* @__PURE__ */ e.jsx(se, { children: a.operations.map((l) => /* @__PURE__ */ e.jsx(
|
|
591
|
+
Ce,
|
|
588
592
|
{
|
|
589
593
|
operationFragment: l
|
|
590
594
|
},
|
|
@@ -594,7 +598,7 @@ const le = N(
|
|
|
594
598
|
] }) : null;
|
|
595
599
|
};
|
|
596
600
|
export {
|
|
597
|
-
|
|
598
|
-
|
|
601
|
+
He as OperationList,
|
|
602
|
+
Oe as OperationsFragment
|
|
599
603
|
};
|
|
600
|
-
//# sourceMappingURL=OperationList-
|
|
604
|
+
//# sourceMappingURL=OperationList-Cea2Yt8e.js.map
|