zudoku 0.47.2 → 0.48.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/dist/app/ZuploBuildConfig.d.ts +4 -114
  2. package/dist/app/ZuploBuildConfig.js +1 -1
  3. package/dist/app/ZuploBuildConfig.js.map +1 -1
  4. package/dist/app/demo.js +4 -3
  5. package/dist/app/demo.js.map +1 -1
  6. package/dist/app/main.js +5 -5
  7. package/dist/app/main.js.map +1 -1
  8. package/dist/app/standalone.js +4 -3
  9. package/dist/app/standalone.js.map +1 -1
  10. package/dist/config/loader.js +1 -2
  11. package/dist/config/loader.js.map +1 -1
  12. package/dist/config/validators/BuildSchema.d.ts +20 -44
  13. package/dist/config/validators/BuildSchema.js +3 -14
  14. package/dist/config/validators/BuildSchema.js.map +1 -1
  15. package/dist/config/validators/InputNavigationSchema.d.ts +7217 -0
  16. package/dist/config/validators/InputNavigationSchema.js +74 -0
  17. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  18. package/dist/config/validators/InputNavigationSchema.test-d.d.ts +1 -0
  19. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  20. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  21. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  22. package/dist/config/validators/NavigationSchema.js +95 -0
  23. package/dist/config/validators/NavigationSchema.js.map +1 -0
  24. package/dist/config/validators/icon-types.d.ts +2 -1
  25. package/dist/config/validators/icon-types.js +1775 -1
  26. package/dist/config/validators/icon-types.js.map +1 -1
  27. package/dist/config/validators/validate.d.ts +442 -5780
  28. package/dist/config/validators/validate.js +37 -55
  29. package/dist/config/validators/validate.js.map +1 -1
  30. package/dist/config/validators/validate.test.js +0 -2
  31. package/dist/config/validators/validate.test.js.map +1 -1
  32. package/dist/flat-config.d.ts +320 -0
  33. package/dist/index.d.ts +1 -1
  34. package/dist/index.js.map +1 -1
  35. package/dist/lib/components/BuildCheck.js +1 -1
  36. package/dist/lib/components/BuildCheck.js.map +1 -1
  37. package/dist/lib/components/Header.js +10 -9
  38. package/dist/lib/components/Header.js.map +1 -1
  39. package/dist/lib/components/Heading.d.ts +6 -2
  40. package/dist/lib/components/Heading.js +2 -2
  41. package/dist/lib/components/Heading.js.map +1 -1
  42. package/dist/lib/components/Main.js +4 -4
  43. package/dist/lib/components/Main.js.map +1 -1
  44. package/dist/lib/components/MobileTopNavigation.js +5 -5
  45. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  46. package/dist/lib/components/PageProgress.d.ts +1 -0
  47. package/dist/lib/components/PageProgress.js +20 -0
  48. package/dist/lib/components/PageProgress.js.map +1 -0
  49. package/dist/lib/components/TopNavigation.d.ts +2 -3
  50. package/dist/lib/components/TopNavigation.js +45 -44
  51. package/dist/lib/components/TopNavigation.js.map +1 -1
  52. package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
  53. package/dist/lib/components/context/ZudokuContext.js +44 -26
  54. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  55. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  56. package/dist/lib/components/navigation/Navigation.js +12 -0
  57. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  58. package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
  59. package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +2 -2
  60. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  61. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  62. package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +14 -12
  63. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  64. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  65. package/dist/lib/components/navigation/NavigationItem.js +47 -0
  66. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  67. package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
  68. package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +3 -3
  69. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  70. package/dist/lib/components/navigation/utils.d.ts +7 -9
  71. package/dist/lib/components/navigation/utils.js +17 -17
  72. package/dist/lib/components/navigation/utils.js.map +1 -1
  73. package/dist/lib/core/ZudokuContext.d.ts +6 -8
  74. package/dist/lib/core/ZudokuContext.js +5 -7
  75. package/dist/lib/core/ZudokuContext.js.map +1 -1
  76. package/dist/lib/core/plugins.d.ts +2 -2
  77. package/dist/lib/hooks/useEvent.test.js +5 -3
  78. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  79. package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
  80. package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
  81. package/dist/lib/plugins/api-catalog/index.js +10 -10
  82. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  83. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +4 -4
  84. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  85. package/dist/lib/plugins/custom-pages/index.d.ts +3 -2
  86. package/dist/lib/plugins/custom-pages/index.js +15 -8
  87. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  88. package/dist/lib/plugins/markdown/MdxPage.js +6 -3
  89. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  90. package/dist/lib/plugins/markdown/index.d.ts +2 -1
  91. package/dist/lib/plugins/markdown/index.js +9 -26
  92. package/dist/lib/plugins/markdown/index.js.map +1 -1
  93. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  94. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  95. package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
  96. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  97. package/dist/lib/plugins/openapi/SchemaList.js +1 -1
  98. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  99. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  100. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  101. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  102. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +3 -3
  103. package/dist/lib/plugins/openapi/graphql/graphql.js +2 -2
  104. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  105. package/dist/lib/plugins/openapi/index.d.ts +3 -3
  106. package/dist/lib/plugins/openapi/index.js +9 -9
  107. package/dist/lib/plugins/openapi/index.js.map +1 -1
  108. package/dist/lib/plugins/openapi/interfaces.d.ts +3 -3
  109. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  110. package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +5 -4
  111. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  112. package/dist/lib/plugins/openapi/util/getRoutes.js +2 -2
  113. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  114. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  115. package/dist/lib/util/useScrollToAnchor.js +3 -3
  116. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  117. package/dist/vite/api/SchemaManager.d.ts +4 -4
  118. package/dist/vite/api/SchemaManager.js +19 -19
  119. package/dist/vite/api/SchemaManager.js.map +1 -1
  120. package/dist/vite/api/SchemaManager.test.js +4 -4
  121. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  122. package/dist/vite/config.js +1 -0
  123. package/dist/vite/config.js.map +1 -1
  124. package/dist/vite/plugin-api.js +8 -8
  125. package/dist/vite/plugin-api.js.map +1 -1
  126. package/dist/vite/plugin-config-reload.js +2 -0
  127. package/dist/vite/plugin-config-reload.js.map +1 -1
  128. package/dist/vite/plugin-custom-pages.js +2 -2
  129. package/dist/vite/plugin-custom-pages.js.map +1 -1
  130. package/dist/vite/plugin-docs.js +61 -59
  131. package/dist/vite/plugin-docs.js.map +1 -1
  132. package/dist/vite/{plugin-sidebar.d.ts → plugin-navigation.d.ts} +1 -1
  133. package/dist/vite/{plugin-sidebar.js → plugin-navigation.js} +20 -19
  134. package/dist/vite/plugin-navigation.js.map +1 -0
  135. package/dist/vite/plugin.js +2 -2
  136. package/dist/vite/plugin.js.map +1 -1
  137. package/dist/vite/shadcn-registry.d.ts +4 -4
  138. package/lib/{Markdown-C5j8kKSX.js → Markdown-DCAIYXF5.js} +480 -475
  139. package/lib/Markdown-DCAIYXF5.js.map +1 -0
  140. package/lib/{MdxPage-CKTMf1cR.js → MdxPage-Cf9YXWoC.js} +30 -30
  141. package/lib/MdxPage-Cf9YXWoC.js.map +1 -0
  142. package/lib/OasProvider-JMVTfG6_.js +35 -0
  143. package/lib/OasProvider-JMVTfG6_.js.map +1 -0
  144. package/lib/{OperationList-BJAKaG5p.js → OperationList-m4tFCI4S.js} +8 -8
  145. package/lib/{OperationList-BJAKaG5p.js.map → OperationList-m4tFCI4S.js.map} +1 -1
  146. package/lib/{RouteGuard-B7GVW4oL.js → RouteGuard-gV7nvzi7.js} +2 -2
  147. package/lib/{RouteGuard-B7GVW4oL.js.map → RouteGuard-gV7nvzi7.js.map} +1 -1
  148. package/lib/{SchemaList-Dgc0A8x5.js → SchemaList-_wRy4aQ0.js} +20 -20
  149. package/lib/SchemaList-_wRy4aQ0.js.map +1 -0
  150. package/lib/{SchemaView-DVx-jFN4.js → SchemaView-CRl_cQYH.js} +3 -3
  151. package/lib/{SchemaView-DVx-jFN4.js.map → SchemaView-CRl_cQYH.js.map} +1 -1
  152. package/lib/{SignUp-CRIKdWt9.js → SignUp-B6w5AwHM.js} +2 -2
  153. package/lib/{SignUp-CRIKdWt9.js.map → SignUp-B6w5AwHM.js.map} +1 -1
  154. package/lib/{Slot-ITby_hMb.js → Slot-BkYrj_uC.js} +4 -4
  155. package/lib/{Slot-ITby_hMb.js.map → Slot-BkYrj_uC.js.map} +1 -1
  156. package/lib/{SyntaxHighlight-CqKHkyEy.js → SyntaxHighlight-CH9OUJre.js} +2 -2
  157. package/lib/{SyntaxHighlight-CqKHkyEy.js.map → SyntaxHighlight-CH9OUJre.js.map} +1 -1
  158. package/lib/{Toc-Csq3UNtW.js → Toc-DRxqEsFc.js} +2 -2
  159. package/lib/{Toc-Csq3UNtW.js.map → Toc-DRxqEsFc.js.map} +1 -1
  160. package/lib/{circular-BP4OrHFK.js → circular-wJaV4vh_.js} +2 -2
  161. package/lib/{circular-BP4OrHFK.js.map → circular-wJaV4vh_.js.map} +1 -1
  162. package/lib/{createServer-zu4cDiPe.js → createServer-DN5AJLcN.js} +3 -3
  163. package/lib/{createServer-zu4cDiPe.js.map → createServer-DN5AJLcN.js.map} +1 -1
  164. package/lib/{errors-CPPSp5F4.js → errors-D_5vKvUq.js} +3 -3
  165. package/lib/{errors-CPPSp5F4.js.map → errors-D_5vKvUq.js.map} +1 -1
  166. package/lib/hook-CHXroBFt.js +1503 -0
  167. package/lib/hook-CHXroBFt.js.map +1 -0
  168. package/lib/{index-jWXxqkni.js → index-DJVaRmzI.js} +63 -62
  169. package/lib/index-DJVaRmzI.js.map +1 -0
  170. package/lib/{mutation-C1XCQTQL.js → mutation-BpcyTgWI.js} +2 -2
  171. package/lib/{mutation-C1XCQTQL.js.map → mutation-BpcyTgWI.js.map} +1 -1
  172. package/lib/ui/SyntaxHighlight.js +2 -2
  173. package/lib/{useMutation-BKvPttRn.js → useMutation-N4ockVKi.js} +3 -3
  174. package/lib/{useMutation-BKvPttRn.js.map → useMutation-N4ockVKi.js.map} +1 -1
  175. package/lib/zudoku.auth-auth0.js +1 -1
  176. package/lib/zudoku.auth-azureb2c.js +2 -2
  177. package/lib/zudoku.auth-clerk.js +2 -2
  178. package/lib/zudoku.auth-openid.js +2 -2
  179. package/lib/zudoku.components.js +2756 -3424
  180. package/lib/zudoku.components.js.map +1 -1
  181. package/lib/zudoku.hooks.js +2 -2
  182. package/lib/zudoku.plugin-api-catalog.js +44 -44
  183. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  184. package/lib/zudoku.plugin-api-keys.js +42 -39
  185. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  186. package/lib/zudoku.plugin-custom-pages.js +22 -16
  187. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  188. package/lib/zudoku.plugin-markdown.js +20 -69
  189. package/lib/zudoku.plugin-markdown.js.map +1 -1
  190. package/lib/zudoku.plugin-openapi.js +5 -5
  191. package/lib/zudoku.plugin-search-pagefind.js +2 -2
  192. package/lib/zudoku.plugins.js.map +1 -1
  193. package/package.json +12 -9
  194. package/src/app/ZuploBuildConfig.ts +1 -1
  195. package/src/app/demo.tsx +4 -3
  196. package/src/app/main.css +5 -0
  197. package/src/app/main.tsx +6 -5
  198. package/src/app/standalone.tsx +4 -3
  199. package/src/lib/components/BuildCheck.tsx +1 -1
  200. package/src/lib/components/Header.tsx +5 -3
  201. package/src/lib/components/Heading.tsx +7 -3
  202. package/src/lib/components/Main.tsx +8 -8
  203. package/src/lib/components/MobileTopNavigation.tsx +12 -11
  204. package/src/lib/components/PageProgress.tsx +28 -0
  205. package/src/lib/components/TopNavigation.tsx +57 -66
  206. package/src/lib/components/context/ZudokuContext.ts +50 -32
  207. package/src/lib/components/navigation/{Sidebar.tsx → Navigation.tsx} +18 -16
  208. package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +1 -1
  209. package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +16 -14
  210. package/src/lib/components/navigation/{SidebarItem.tsx → NavigationItem.tsx} +23 -17
  211. package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +2 -2
  212. package/src/lib/components/navigation/utils.ts +27 -28
  213. package/src/lib/core/ZudokuContext.ts +9 -15
  214. package/src/lib/core/plugins.ts +2 -2
  215. package/src/lib/hooks/useEvent.test.tsx +7 -5
  216. package/src/lib/plugins/api-catalog/Catalog.tsx +1 -1
  217. package/src/lib/plugins/api-catalog/index.tsx +19 -19
  218. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +6 -5
  219. package/src/lib/plugins/custom-pages/index.tsx +20 -11
  220. package/src/lib/plugins/markdown/MdxPage.tsx +6 -3
  221. package/src/lib/plugins/markdown/index.tsx +19 -40
  222. package/src/lib/plugins/openapi/OperationList.tsx +1 -1
  223. package/src/lib/plugins/openapi/OperationListItem.tsx +1 -1
  224. package/src/lib/plugins/openapi/SchemaList.tsx +2 -2
  225. package/src/lib/plugins/openapi/graphql/gql.ts +5 -5
  226. package/src/lib/plugins/openapi/graphql/graphql.ts +6 -6
  227. package/src/lib/plugins/openapi/index.tsx +11 -11
  228. package/src/lib/plugins/openapi/interfaces.ts +3 -3
  229. package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +6 -5
  230. package/src/lib/plugins/openapi/util/getRoutes.tsx +2 -2
  231. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  232. package/src/lib/util/useScrollToAnchor.ts +3 -3
  233. package/dist/config/validators/InputSidebarSchema.d.ts +0 -220
  234. package/dist/config/validators/InputSidebarSchema.js +0 -63
  235. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  236. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  237. package/dist/config/validators/SidebarSchema.js +0 -118
  238. package/dist/config/validators/SidebarSchema.js.map +0 -1
  239. package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
  240. package/dist/lib/components/navigation/Sidebar.js +0 -10
  241. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  242. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  243. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  244. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  245. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -6
  246. package/dist/lib/components/navigation/SidebarItem.js +0 -44
  247. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  248. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  249. package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
  250. package/dist/lib/plugins/markdown/resolver.js +0 -46
  251. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  252. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
  253. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
  254. package/dist/vite/plugin-sidebar.js.map +0 -1
  255. package/lib/Markdown-C5j8kKSX.js.map +0 -1
  256. package/lib/MdxPage-CKTMf1cR.js.map +0 -1
  257. package/lib/OasProvider-_GzmsbMg.js +0 -33
  258. package/lib/OasProvider-_GzmsbMg.js.map +0 -1
  259. package/lib/SchemaList-Dgc0A8x5.js.map +0 -1
  260. package/lib/hook-7wZANGJP.js +0 -1483
  261. package/lib/hook-7wZANGJP.js.map +0 -1
  262. package/lib/index-jWXxqkni.js.map +0 -1
  263. package/lib/joinPath-B7kNnUX4.js +0 -8
  264. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  265. package/src/lib/plugins/markdown/resolver.ts +0 -59
@@ -1,15 +1,15 @@
1
1
  import { j as n } from "./jsx-runtime-C5mzlN2N.js";
2
2
  import { ChevronDown as xt, ChevronUp as pn, Check as gt, ChevronRightIcon as Q, CheckIcon as hn, DotIcon as fn, ChevronDownIcon as xn, XIcon as gn, Circle as yn, DownloadIcon as vn, LogInIcon as bn, CirclePlayIcon as jn } from "lucide-react";
3
3
  import { r as Nn, c as wn, u as Cn, N as Sn, h as Tn, m as Ke } from "./chunk-DQRVZFIR-BblmKnHy.js";
4
- import { L as Ce, M as Se, O as yt, l as An, P as On, j as P, d as Rn, i as $n } from "./hook-7wZANGJP.js";
4
+ import { M as Ce, O as Se, P as yt, l as An, T as On, j as L, d as Rn, i as $n } from "./hook-CHXroBFt.js";
5
5
  import { Button as J } from "./ui/Button.js";
6
- import { Z as Ln } from "./invariant-DAFpPywt.js";
6
+ import { Z as Pn } from "./invariant-DAFpPywt.js";
7
7
  import * as N from "react";
8
- import { createContext as vt, use as Pn, Fragment as D, useRef as W, useEffect as M, useMemo as En, useState as E, useCallback as In, useTransition as kn, useContext as Dn } from "react";
8
+ import { createContext as vt, use as Ln, Fragment as D, useRef as W, useEffect as M, useMemo as En, useState as E, useCallback as In, useTransition as kn, useContext as Dn } from "react";
9
9
  import { VisuallyHidden as Bn } from "@radix-ui/react-visually-hidden";
10
10
  import { D as Te, a as Ae, c as Oe, d as bt, f as jt, e as Fn } from "./Dialog-BxpuVLh9.js";
11
11
  import { u as Vn } from "./react-nprogress.esm-C2MPXjiJ.js";
12
- import { u as qn } from "./useMutation-BKvPttRn.js";
12
+ import { u as qn } from "./useMutation-N4ockVKi.js";
13
13
  import { u as Re, a as $e, C as B, b as zn, F as _n } from "./index.esm-Cp4wkyud.js";
14
14
  import { B as F } from "./Button-BE9IVkWV.js";
15
15
  import * as C from "@radix-ui/react-select";
@@ -23,7 +23,7 @@ import * as re from "@radix-ui/react-popover";
23
23
  import { PopoverAnchor as Gn } from "@radix-ui/react-popover";
24
24
  import { P as Hn } from "./index-CrcNWbel.js";
25
25
  import { g as Qn, h as Jn, C as Wn, b as Xn, f as Zn } from "./Callout-CoVxYafP.js";
26
- import { Input as Le } from "./ui/Input.js";
26
+ import { Input as Pe } from "./ui/Input.js";
27
27
  import { Slot as Yn } from "@radix-ui/react-slot";
28
28
  import * as Nt from "@radix-ui/react-label";
29
29
  import { c as Kn } from "./index-DI5SPFK9.js";
@@ -33,12 +33,12 @@ import { Callout as ts } from "./ui/Callout.js";
33
33
  import { Card as wt, CardHeader as ns, CardTitle as ss, CardContent as rs } from "./ui/Card.js";
34
34
  import { Tabs as as, TabsList as os, TabsTrigger as et, TabsContent as tt } from "./ui/Tabs.js";
35
35
  import { Collapsible as nt, CollapsibleTrigger as st, CollapsibleContent as rt } from "./ui/Collapsible.js";
36
- import * as Pe from "@radix-ui/react-collapsible";
37
- import { S as is } from "./SyntaxHighlight-CqKHkyEy.js";
36
+ import * as Le from "@radix-ui/react-collapsible";
37
+ import { S as is } from "./SyntaxHighlight-CH9OUJre.js";
38
38
  let pe;
39
39
  const ls = (e) => {
40
40
  if (e.errors?.[0])
41
- throw new Ln(e.errors[0].message, {
41
+ throw new Pn(e.errors[0].message, {
42
42
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
43
43
  });
44
44
  };
@@ -46,7 +46,7 @@ class cs {
46
46
  constructor(t) {
47
47
  this.config = t;
48
48
  }
49
- #e = async () => (pe || (pe = import("./createServer-zu4cDiPe.js").then(
49
+ #e = async () => (pe || (pe = import("./createServer-DN5AJLcN.js").then(
50
50
  (t) => t.createServer(this.config)
51
51
  )), pe);
52
52
  #t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
@@ -609,7 +609,7 @@ function ws(e, t) {
609
609
  if (Z(o) || o === 45)
610
610
  return Ss(e, r, o);
611
611
  if (At(o))
612
- return Ls(e, r);
612
+ return Ps(e, r);
613
613
  throw R(
614
614
  e.source,
615
615
  r,
@@ -868,7 +868,7 @@ function $s(e, t) {
868
868
  }
869
869
  throw R(e.source, o, "Unterminated string.");
870
870
  }
871
- function Ls(e, t) {
871
+ function Ps(e, t) {
872
872
  const s = e.source.body, a = s.length;
873
873
  let r = t + 1;
874
874
  for (; r < a; ) {
@@ -886,8 +886,8 @@ function Ls(e, t) {
886
886
  s.slice(t, r)
887
887
  );
888
888
  }
889
- const Ps = 10, $t = 2;
890
- function Lt(e) {
889
+ const Ls = 10, $t = 2;
890
+ function Pt(e) {
891
891
  return ce(e, []);
892
892
  }
893
893
  function ce(e, t) {
@@ -930,7 +930,7 @@ function Ds(e, t) {
930
930
  return "[]";
931
931
  if (t.length > $t)
932
932
  return "[Array]";
933
- const s = Math.min(Ps, e.length), a = e.length - s, r = [];
933
+ const s = Math.min(Ls, e.length), a = e.length - s, r = [];
934
934
  for (let o = 0; o < s; ++o)
935
935
  r.push(ce(e[o], t));
936
936
  return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
@@ -960,7 +960,7 @@ process.env.NODE_ENV === "production", Vs = (
960
960
  Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
961
961
  );
962
962
  if (r === o) {
963
- const i = Lt(t);
963
+ const i = Pt(t);
964
964
  throw new Error(`Cannot use ${r} "${i}" from another module or realm.
965
965
 
966
966
  Ensure that there is only one instance of "graphql" in the node_modules
@@ -978,12 +978,12 @@ spurious results.`);
978
978
  return !1;
979
979
  }
980
980
  );
981
- class Pt {
981
+ class Lt {
982
982
  constructor(t, s = "GraphQL request", a = {
983
983
  line: 1,
984
984
  column: 1
985
985
  }) {
986
- typeof t == "string" || he(!1, `Body must be a string. Received: ${Lt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || he(
986
+ typeof t == "string" || he(!1, `Body must be a string. Received: ${Pt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || he(
987
987
  !1,
988
988
  "line in locationOffset is 1-indexed and must be positive."
989
989
  ), this.locationOffset.column > 0 || he(
@@ -996,10 +996,10 @@ class Pt {
996
996
  }
997
997
  }
998
998
  function qs(e) {
999
- return Vs(e, Pt);
999
+ return Vs(e, Lt);
1000
1000
  }
1001
1001
  function zs(e) {
1002
- const t = qs(e) ? e : new Pt(e), s = t.body, a = new js(t);
1002
+ const t = qs(e) ? e : new Lt(e), s = t.body, a = new js(t);
1003
1003
  let r = "", o = !1;
1004
1004
  for (; a.advance().kind !== h.EOF; ) {
1005
1005
  const i = a.token, c = i.kind, l = !Ns(i.kind);
@@ -1020,7 +1020,7 @@ const Et = vt(
1020
1020
  queryFn: () => e.fetch(t, s),
1021
1021
  queryKey: [zs(t.toString()), s]
1022
1022
  }), _s = (e, ...[t]) => {
1023
- const s = Pn(Et);
1023
+ const s = Ln(Et);
1024
1024
  if (s === void 0)
1025
1025
  throw new Error("useGraphQL must be used within a GraphQLProvider");
1026
1026
  return It(s, e, ...t === void 0 ? [] : [t]);
@@ -1236,7 +1236,7 @@ const Us = new q(
1236
1236
  }
1237
1237
  }
1238
1238
  `), Ws = new q(`
1239
- query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
1239
+ query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
1240
1240
  schema(input: $input, type: $type) {
1241
1241
  tags {
1242
1242
  slug
@@ -1264,7 +1264,7 @@ const Us = new q(
1264
1264
  "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": Hs,
1265
1265
  "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": Qs,
1266
1266
  "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Js,
1267
- "\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": Ws
1267
+ "\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": Ws
1268
1268
  };
1269
1269
  function Zs(e) {
1270
1270
  return Xs[e] ?? {};
@@ -1931,7 +1931,7 @@ const gr = ({
1931
1931
  className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
1932
1932
  }
1933
1933
  ) : /* @__PURE__ */ n.jsx(
1934
- Le,
1934
+ Pe,
1935
1935
  {
1936
1936
  placeholder: "Value",
1937
1937
  className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
@@ -2098,7 +2098,7 @@ const Qt = ({
2098
2098
  control: e,
2099
2099
  name: `pathParams.${o}.value`,
2100
2100
  render: ({ field: i }) => /* @__PURE__ */ n.jsx(
2101
- Le,
2101
+ Pe,
2102
2102
  {
2103
2103
  ...i,
2104
2104
  required: !0,
@@ -2187,7 +2187,7 @@ const Qt = ({
2187
2187
  className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2188
2188
  }
2189
2189
  ) : /* @__PURE__ */ n.jsx(
2190
- Le,
2190
+ Pe,
2191
2191
  {
2192
2192
  ...l,
2193
2193
  onChange: (u) => {
@@ -2231,7 +2231,7 @@ const Qt = ({
2231
2231
  a && /* @__PURE__ */ n.jsx(F, { type: "button", variant: "default", onClick: a, children: "Login" })
2232
2232
  ] })
2233
2233
  ] })
2234
- ] }) }), L = {
2234
+ ] }) }), P = {
2235
2235
  green: "text-green-600",
2236
2236
  blue: "text-sky-600",
2237
2237
  yellow: "text-yellow-600",
@@ -2240,15 +2240,15 @@ const Qt = ({
2240
2240
  indigo: "text-indigo-600",
2241
2241
  gray: "text-gray-600"
2242
2242
  }, Ar = {
2243
- get: L.green,
2244
- post: L.blue,
2245
- put: L.yellow,
2246
- delete: L.red,
2247
- patch: L.purple,
2248
- options: L.indigo,
2249
- head: L.gray,
2250
- trace: L.gray
2251
- }, Or = (e) => Ar[e.toLocaleLowerCase()] ?? L.gray, Rr = ({
2243
+ get: P.green,
2244
+ post: P.blue,
2245
+ put: P.yellow,
2246
+ delete: P.red,
2247
+ patch: P.purple,
2248
+ options: P.indigo,
2249
+ head: P.gray,
2250
+ trace: P.gray
2251
+ }, Or = (e) => Ar[e.toLocaleLowerCase()] ?? P.gray, Rr = ({
2252
2252
  method: e,
2253
2253
  url: t,
2254
2254
  headers: s,
@@ -2289,7 +2289,7 @@ const Qt = ({
2289
2289
  ) }) })
2290
2290
  ] })
2291
2291
  ] })
2292
- ] }), dt = Pe.Root, ut = Pe.CollapsibleTrigger, mt = Pe.CollapsibleContent, ve = (e = 0) => {
2292
+ ] }), dt = Le.Root, ut = Le.CollapsibleTrigger, mt = Le.CollapsibleContent, ve = (e = 0) => {
2293
2293
  if (e === 0)
2294
2294
  return "0 B";
2295
2295
  const t = Math.floor(Math.log(e) / Math.log(1e3));
@@ -2315,10 +2315,10 @@ function $r(e, t = "") {
2315
2315
  return s.push("}"), s.join(`
2316
2316
  `);
2317
2317
  }
2318
- function Lr(e) {
2318
+ function Pr(e) {
2319
2319
  return { lines: [`type GeneratedType = ${Ve(e)};`] };
2320
2320
  }
2321
- const Pr = {
2321
+ const Lr = {
2322
2322
  200: "OK",
2323
2323
  201: "Created",
2324
2324
  202: "Accepted",
@@ -2377,7 +2377,7 @@ const Pr = {
2377
2377
  u ? "formatted" : "raw"
2378
2378
  ), p = An({
2379
2379
  queryKey: ["types", g],
2380
- queryFn: async () => Lr(JSON.parse(g)),
2380
+ queryFn: async () => Pr(JSON.parse(g)),
2381
2381
  enabled: f === "types" && !i
2382
2382
  }), y = () => {
2383
2383
  if (l && c) {
@@ -2455,7 +2455,7 @@ const Pr = {
2455
2455
  " ",
2456
2456
  s,
2457
2457
  " ",
2458
- Pr[s] ?? ""
2458
+ Lr[s] ?? ""
2459
2459
  ] }),
2460
2460
  /* @__PURE__ */ n.jsxs("div", { children: [
2461
2461
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
@@ -2922,7 +2922,8 @@ const Pr = {
2922
2922
  label: e,
2923
2923
  link: {
2924
2924
  type: "doc",
2925
- id: t,
2925
+ path: t,
2926
+ file: t,
2926
2927
  label: e
2927
2928
  },
2928
2929
  collapsible: a,
@@ -2930,7 +2931,7 @@ const Pr = {
2930
2931
  items: s.map((o) => ({
2931
2932
  type: "link",
2932
2933
  label: o.summary ?? o.path,
2933
- href: `${t}#${o.slug}`,
2934
+ to: `${t}#${o.slug}`,
2934
2935
  badge: {
2935
2936
  label: o.method,
2936
2937
  color: Ur[o.method.toLowerCase()],
@@ -2947,7 +2948,7 @@ const Pr = {
2947
2948
  }, ft = (e) => ({
2948
2949
  path: e.routePath,
2949
2950
  async lazy() {
2950
- const { OasProvider: t } = await import("./OasProvider-_GzmsbMg.js");
2951
+ const { OasProvider: t } = await import("./OasProvider-JMVTfG6_.js");
2951
2952
  return {
2952
2953
  element: /* @__PURE__ */ n.jsx(
2953
2954
  t,
@@ -2968,7 +2969,7 @@ const Pr = {
2968
2969
  }) => ({
2969
2970
  path: e,
2970
2971
  async lazy() {
2971
- const { OperationList: a } = await import("./OperationList-BJAKaG5p.js");
2972
+ const { OperationList: a } = await import("./OperationList-m4tFCI4S.js");
2972
2973
  return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
2973
2974
  }
2974
2975
  }), Gr = ({
@@ -2990,7 +2991,7 @@ const Pr = {
2990
2991
  }, Hr = ({ path: e }) => ({
2991
2992
  path: e,
2992
2993
  async lazy() {
2993
- const { OperationList: t } = await import("./OperationList-BJAKaG5p.js");
2994
+ const { OperationList: t } = await import("./OperationList-m4tFCI4S.js");
2994
2995
  return {
2995
2996
  element: /* @__PURE__ */ n.jsx(
2996
2997
  Gr,
@@ -3004,26 +3005,26 @@ const Pr = {
3004
3005
  }), Xt = (e) => [
3005
3006
  // Category without tagged operations
3006
3007
  Wt({
3007
- path: P(e, qe),
3008
+ path: L(e, qe),
3008
3009
  untagged: !0
3009
3010
  }),
3010
3011
  // Schema list route
3011
3012
  {
3012
- path: P(e, "~schemas"),
3013
+ path: L(e, "~schemas"),
3013
3014
  lazy: async () => {
3014
- const { SchemaList: t } = await import("./SchemaList-Dgc0A8x5.js");
3015
+ const { SchemaList: t } = await import("./SchemaList-_wRy4aQ0.js");
3015
3016
  return { element: /* @__PURE__ */ n.jsx(t, {}) };
3016
3017
  }
3017
3018
  }
3018
3019
  ], Qr = (e, t) => {
3019
- const s = P(e, t.at(0) ?? qe);
3020
+ const s = L(e, t.at(0) ?? qe);
3020
3021
  return [
3021
3022
  // Redirect to first tag on the index route
3022
3023
  { index: !0, loader: () => Nn(s) },
3023
3024
  // Create routes for each tag
3024
3025
  ...t.map(
3025
3026
  (a) => Wt({
3026
- path: P(e, a),
3027
+ path: L(e, a),
3027
3028
  tag: a
3028
3029
  })
3029
3030
  ),
@@ -3050,7 +3051,7 @@ const Pr = {
3050
3051
  ];
3051
3052
  const r = Zt(t);
3052
3053
  return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3053
- const c = P(e, i);
3054
+ const c = L(e, i);
3054
3055
  return ft({
3055
3056
  basePath: e,
3056
3057
  version: i,
@@ -3061,7 +3062,7 @@ const Pr = {
3061
3062
  });
3062
3063
  });
3063
3064
  }, Yt = Zs(`
3064
- query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
3065
+ query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
3065
3066
  schema(input: $input, type: $type) {
3066
3067
  tags {
3067
3068
  slug
@@ -3083,7 +3084,7 @@ const Pr = {
3083
3084
  }
3084
3085
  }
3085
3086
  `), qe = "~endpoints", Oa = (e) => {
3086
- const t = P(e.navigationId ?? "/reference"), s = new cs(e);
3087
+ const t = L(e.path), s = new cs(e);
3087
3088
  return {
3088
3089
  getHead: () => {
3089
3090
  if (e.type === "url" && !e.skipPreload)
@@ -3137,7 +3138,7 @@ const Pr = {
3137
3138
  );
3138
3139
  }
3139
3140
  }),
3140
- getSidebar: async (a, r) => {
3141
+ getNavigation: async (a, r) => {
3141
3142
  if (!Ke({ path: t, end: !1 }, a))
3142
3143
  return [];
3143
3144
  const o = Ke(
@@ -3150,7 +3151,7 @@ const Pr = {
3150
3151
  input: m
3151
3152
  }), g = await r.queryClient.ensureQueryData(u), f = g.schema.tags.flatMap((p) => {
3152
3153
  if (!p.name || p.operations.length === 0) return [];
3153
- const y = P(t, i, p.slug), j = p.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, b = p.extensions?.["x-zudoku-collapsible"] ?? !0;
3154
+ const y = L(t, i, p.slug), j = p.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, b = p.extensions?.["x-zudoku-collapsible"] ?? !0;
3154
3155
  return ht({
3155
3156
  label: p.name,
3156
3157
  path: y,
@@ -3164,14 +3165,14 @@ const Pr = {
3164
3165
  return x && f.push(
3165
3166
  ht({
3166
3167
  label: "Other endpoints",
3167
- path: P(t, i, qe),
3168
+ path: L(t, i, qe),
3168
3169
  operations: x,
3169
3170
  collapsed: !e.options?.expandAllTags
3170
3171
  })
3171
3172
  ), g.schema.components?.schemas?.length && f.push({
3172
3173
  type: "link",
3173
3174
  label: "Schemas",
3174
- href: P(t, i, "~schemas")
3175
+ to: L(t, i, "~schemas")
3175
3176
  }), f;
3176
3177
  } catch {
3177
3178
  return [];
@@ -3199,10 +3200,10 @@ export {
3199
3200
  _s as a,
3200
3201
  ut as b,
3201
3202
  mt as c,
3202
- Zs as d,
3203
+ Zt as d,
3203
3204
  sr as e,
3204
3205
  Vt as f,
3205
- Zt as g,
3206
+ Zs as g,
3206
3207
  er as h,
3207
3208
  Ie as i,
3208
3209
  Dt as j,
@@ -3210,17 +3211,17 @@ export {
3210
3211
  G as l,
3211
3212
  Or as m,
3212
3213
  qs as n,
3213
- Pt as o,
3214
+ Lt as o,
3214
3215
  it as p,
3215
3216
  Ca as q,
3216
3217
  Ns as r,
3217
3218
  R as s,
3218
3219
  Ee as t,
3219
3220
  Mr as u,
3220
- Lt as v,
3221
+ Pt as v,
3221
3222
  ds as w,
3222
3223
  Vs as x,
3223
3224
  he as y,
3224
3225
  us as z
3225
3226
  };
3226
- //# sourceMappingURL=index-jWXxqkni.js.map
3227
+ //# sourceMappingURL=index-DJVaRmzI.js.map