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