zudoku 0.0.0-fdfe742 → 0.0.0-fe92c9e1

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 (1499) hide show
  1. package/README.md +33 -13
  2. package/cli.js +1 -0
  3. package/client.d.ts +8 -0
  4. package/dist/app/ZuploBuildConfig.d.ts +10 -120
  5. package/dist/app/ZuploBuildConfig.js +7 -7
  6. package/dist/app/ZuploBuildConfig.js.map +1 -1
  7. package/dist/app/demo.js +22 -6
  8. package/dist/app/demo.js.map +1 -1
  9. package/dist/app/entry.client.d.ts +0 -2
  10. package/dist/app/entry.client.js +6 -7
  11. package/dist/app/entry.client.js.map +1 -1
  12. package/dist/app/entry.server.d.ts +0 -2
  13. package/dist/app/entry.server.js +17 -6
  14. package/dist/app/entry.server.js.map +1 -1
  15. package/dist/app/env.d.ts +7 -7
  16. package/dist/app/env.js +10 -2
  17. package/dist/app/env.js.map +1 -1
  18. package/dist/app/main.d.ts +93 -2
  19. package/dist/app/main.js +31 -26
  20. package/dist/app/main.js.map +1 -1
  21. package/dist/app/standalone.js +11 -7
  22. package/dist/app/standalone.js.map +1 -1
  23. package/dist/cli/build/handler.js +9 -1
  24. package/dist/cli/build/handler.js.map +1 -1
  25. package/dist/cli/cli.d.ts +9 -0
  26. package/dist/cli/cli.js +5 -10
  27. package/dist/cli/cli.js.map +1 -1
  28. package/dist/cli/cmds/build.d.ts +1 -1
  29. package/dist/cli/cmds/dev.d.ts +1 -1
  30. package/dist/cli/cmds/preview.d.ts +1 -1
  31. package/dist/cli/common/analytics/lib.js +1 -1
  32. package/dist/cli/common/analytics/lib.js.map +1 -1
  33. package/dist/cli/common/logger.js +0 -1
  34. package/dist/cli/common/logger.js.map +1 -1
  35. package/dist/cli/common/machine-id/lib.js +3 -2
  36. package/dist/cli/common/machine-id/lib.js.map +1 -1
  37. package/dist/cli/common/outdated.js +2 -1
  38. package/dist/cli/common/outdated.js.map +1 -1
  39. package/dist/cli/common/output.js +2 -3
  40. package/dist/cli/common/output.js.map +1 -1
  41. package/dist/cli/common/utils/box.js +2 -2
  42. package/dist/cli/common/utils/box.js.map +1 -1
  43. package/dist/cli/common/validators/lib.js +1 -1
  44. package/dist/cli/common/validators/lib.js.map +1 -1
  45. package/dist/cli/common/version-check.d.ts +2 -0
  46. package/dist/cli/common/version-check.js +58 -0
  47. package/dist/cli/common/version-check.js.map +1 -0
  48. package/dist/cli/dev/handler.js +0 -4
  49. package/dist/cli/dev/handler.js.map +1 -1
  50. package/dist/codegen.js +2 -2
  51. package/dist/codegen.js.map +1 -1
  52. package/dist/config/config.d.ts +16 -30
  53. package/dist/config/loader.js +4 -8
  54. package/dist/config/loader.js.map +1 -1
  55. package/dist/config/validators/BuildSchema.d.ts +30 -46
  56. package/dist/config/validators/BuildSchema.js +29 -18
  57. package/dist/config/validators/BuildSchema.js.map +1 -1
  58. package/dist/config/validators/InputNavigationSchema.d.ts +7646 -0
  59. package/dist/config/validators/InputNavigationSchema.js +78 -0
  60. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  61. package/dist/config/validators/InputNavigationSchema.test-d.d.ts +1 -0
  62. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  63. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  64. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  65. package/dist/config/validators/NavigationSchema.js +98 -0
  66. package/dist/config/validators/NavigationSchema.js.map +1 -0
  67. package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
  68. package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
  69. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  70. package/dist/config/validators/auth.d.ts +2 -2
  71. package/dist/config/validators/auth.js +1 -1
  72. package/dist/config/validators/auth.js.map +1 -1
  73. package/dist/config/validators/icon-types.d.ts +2 -1
  74. package/dist/config/validators/icon-types.js +1872 -1
  75. package/dist/config/validators/icon-types.js.map +1 -1
  76. package/dist/config/validators/validate.d.ts +672 -5561
  77. package/dist/config/validators/validate.js +182 -85
  78. package/dist/config/validators/validate.js.map +1 -1
  79. package/dist/config/validators/validate.test.d.ts +1 -0
  80. package/dist/config/validators/validate.test.js +140 -0
  81. package/dist/config/validators/validate.test.js.map +1 -0
  82. package/dist/flat-config.d.ts +378 -0
  83. package/dist/index.d.ts +7 -6
  84. package/dist/index.js +2 -1
  85. package/dist/index.js.map +1 -1
  86. package/dist/lib/MissingIcon.d.ts +1 -1
  87. package/dist/lib/MissingIcon.js.map +1 -1
  88. package/dist/lib/assets/language-icons/c.d.ts +3 -0
  89. package/dist/lib/assets/language-icons/c.js +4 -0
  90. package/dist/lib/assets/language-icons/c.js.map +1 -0
  91. package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
  92. package/dist/lib/assets/language-icons/commonlisp.js +4 -0
  93. package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
  94. package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
  95. package/dist/lib/assets/language-icons/cpp.js +4 -0
  96. package/dist/lib/assets/language-icons/cpp.js.map +1 -0
  97. package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
  98. package/dist/lib/assets/language-icons/csharp.js +4 -0
  99. package/dist/lib/assets/language-icons/csharp.js.map +1 -0
  100. package/dist/lib/assets/language-icons/css.d.ts +3 -0
  101. package/dist/lib/assets/language-icons/css.js +4 -0
  102. package/dist/lib/assets/language-icons/css.js.map +1 -0
  103. package/dist/lib/assets/language-icons/dart.d.ts +3 -0
  104. package/dist/lib/assets/language-icons/dart.js +4 -0
  105. package/dist/lib/assets/language-icons/dart.js.map +1 -0
  106. package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
  107. package/dist/lib/assets/language-icons/elixir.js +4 -0
  108. package/dist/lib/assets/language-icons/elixir.js.map +1 -0
  109. package/dist/lib/assets/language-icons/go.d.ts +3 -0
  110. package/dist/lib/assets/language-icons/go.js +4 -0
  111. package/dist/lib/assets/language-icons/go.js.map +1 -0
  112. package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
  113. package/dist/lib/assets/language-icons/graphql.js +4 -0
  114. package/dist/lib/assets/language-icons/graphql.js.map +1 -0
  115. package/dist/lib/assets/language-icons/html.d.ts +3 -0
  116. package/dist/lib/assets/language-icons/html.js +4 -0
  117. package/dist/lib/assets/language-icons/html.js.map +1 -0
  118. package/dist/lib/assets/language-icons/java.d.ts +3 -0
  119. package/dist/lib/assets/language-icons/java.js +4 -0
  120. package/dist/lib/assets/language-icons/java.js.map +1 -0
  121. package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
  122. package/dist/lib/assets/language-icons/javascript.js +4 -0
  123. package/dist/lib/assets/language-icons/javascript.js.map +1 -0
  124. package/dist/lib/assets/language-icons/json.d.ts +3 -0
  125. package/dist/lib/assets/language-icons/json.js +4 -0
  126. package/dist/lib/assets/language-icons/json.js.map +1 -0
  127. package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
  128. package/dist/lib/assets/language-icons/kotlin.js +4 -0
  129. package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
  130. package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
  131. package/dist/lib/assets/language-icons/markdown.js +4 -0
  132. package/dist/lib/assets/language-icons/markdown.js.map +1 -0
  133. package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
  134. package/dist/lib/assets/language-icons/mdx.js +4 -0
  135. package/dist/lib/assets/language-icons/mdx.js.map +1 -0
  136. package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
  137. package/dist/lib/assets/language-icons/objectivec.js +4 -0
  138. package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
  139. package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
  140. package/dist/lib/assets/language-icons/ocaml.js +4 -0
  141. package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
  142. package/dist/lib/assets/language-icons/php.d.ts +3 -0
  143. package/dist/lib/assets/language-icons/php.js +4 -0
  144. package/dist/lib/assets/language-icons/php.js.map +1 -0
  145. package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
  146. package/dist/lib/assets/language-icons/powershell.js +4 -0
  147. package/dist/lib/assets/language-icons/powershell.js.map +1 -0
  148. package/dist/lib/assets/language-icons/python.d.ts +3 -0
  149. package/dist/lib/assets/language-icons/python.js +4 -0
  150. package/dist/lib/assets/language-icons/python.js.map +1 -0
  151. package/dist/lib/assets/language-icons/react.d.ts +3 -0
  152. package/dist/lib/assets/language-icons/react.js +4 -0
  153. package/dist/lib/assets/language-icons/react.js.map +1 -0
  154. package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
  155. package/dist/lib/assets/language-icons/ruby.js +4 -0
  156. package/dist/lib/assets/language-icons/ruby.js.map +1 -0
  157. package/dist/lib/assets/language-icons/rust.d.ts +3 -0
  158. package/dist/lib/assets/language-icons/rust.js +4 -0
  159. package/dist/lib/assets/language-icons/rust.js.map +1 -0
  160. package/dist/lib/assets/language-icons/scala.d.ts +3 -0
  161. package/dist/lib/assets/language-icons/scala.js +4 -0
  162. package/dist/lib/assets/language-icons/scala.js.map +1 -0
  163. package/dist/lib/assets/language-icons/shell.d.ts +3 -0
  164. package/dist/lib/assets/language-icons/shell.js +4 -0
  165. package/dist/lib/assets/language-icons/shell.js.map +1 -0
  166. package/dist/lib/assets/language-icons/swift.d.ts +3 -0
  167. package/dist/lib/assets/language-icons/swift.js +4 -0
  168. package/dist/lib/assets/language-icons/swift.js.map +1 -0
  169. package/dist/lib/assets/language-icons/toml.d.ts +3 -0
  170. package/dist/lib/assets/language-icons/toml.js +4 -0
  171. package/dist/lib/assets/language-icons/toml.js.map +1 -0
  172. package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
  173. package/dist/lib/assets/language-icons/typescript.js +4 -0
  174. package/dist/lib/assets/language-icons/typescript.js.map +1 -0
  175. package/dist/lib/assets/language-icons/xml.d.ts +3 -0
  176. package/dist/lib/assets/language-icons/xml.js +4 -0
  177. package/dist/lib/assets/language-icons/xml.js.map +1 -0
  178. package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
  179. package/dist/lib/assets/language-icons/yaml.js +4 -0
  180. package/dist/lib/assets/language-icons/yaml.js.map +1 -0
  181. package/dist/lib/assets/language-icons/zig.d.ts +3 -0
  182. package/dist/lib/assets/language-icons/zig.js +4 -0
  183. package/dist/lib/assets/language-icons/zig.js.map +1 -0
  184. package/dist/lib/auth/issuer.d.ts +2 -0
  185. package/dist/lib/auth/issuer.js +40 -0
  186. package/dist/lib/auth/issuer.js.map +1 -0
  187. package/dist/lib/auth/issuer.test.d.ts +1 -0
  188. package/dist/lib/auth/issuer.test.js +95 -0
  189. package/dist/lib/auth/issuer.test.js.map +1 -0
  190. package/dist/lib/authentication/AuthenticationPlugin.d.ts +1 -1
  191. package/dist/lib/authentication/authentication.d.ts +19 -11
  192. package/dist/lib/authentication/components/CallbackHandler.js +12 -10
  193. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  194. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  195. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  196. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  197. package/dist/lib/authentication/components/SignIn.js +10 -8
  198. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  199. package/dist/lib/authentication/components/SignOut.js +6 -6
  200. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  201. package/dist/lib/authentication/components/SignUp.js +5 -5
  202. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  203. package/dist/lib/authentication/errors.d.ts +6 -12
  204. package/dist/lib/authentication/errors.js +2 -1
  205. package/dist/lib/authentication/errors.js.map +1 -1
  206. package/dist/lib/authentication/hook.d.ts +10 -2
  207. package/dist/lib/authentication/hook.js +12 -8
  208. package/dist/lib/authentication/hook.js.map +1 -1
  209. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  210. package/dist/lib/authentication/providers/auth0.js +10 -6
  211. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  212. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  213. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  214. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  215. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  216. package/dist/lib/authentication/providers/clerk.js +9 -16
  217. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  218. package/dist/lib/authentication/providers/firebase.d.ts +4 -0
  219. package/dist/lib/authentication/providers/firebase.js +215 -0
  220. package/dist/lib/authentication/providers/firebase.js.map +1 -0
  221. package/dist/lib/authentication/providers/openid.d.ts +10 -7
  222. package/dist/lib/authentication/providers/openid.js +55 -7
  223. package/dist/lib/authentication/providers/openid.js.map +1 -1
  224. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
  225. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
  226. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
  227. package/dist/lib/authentication/providers/supabase.d.ts +2 -2
  228. package/dist/lib/authentication/providers/supabase.js +32 -39
  229. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  230. package/dist/lib/authentication/state.d.ts +11 -12
  231. package/dist/lib/authentication/state.js +21 -20
  232. package/dist/lib/authentication/state.js.map +1 -1
  233. package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +24 -0
  234. package/dist/lib/authentication/ui/ZudokuAuthUi.js +124 -0
  235. package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -0
  236. package/dist/lib/authentication/ui/icons/Apple.d.ts +3 -0
  237. package/dist/lib/authentication/ui/icons/Apple.js +4 -0
  238. package/dist/lib/authentication/ui/icons/Apple.js.map +1 -0
  239. package/dist/lib/authentication/ui/icons/Facebook.d.ts +3 -0
  240. package/dist/lib/authentication/ui/icons/Facebook.js +4 -0
  241. package/dist/lib/authentication/ui/icons/Facebook.js.map +1 -0
  242. package/dist/lib/authentication/ui/icons/Github.d.ts +3 -0
  243. package/dist/lib/authentication/ui/icons/Github.js +4 -0
  244. package/dist/lib/authentication/ui/icons/Github.js.map +1 -0
  245. package/dist/lib/authentication/ui/icons/Google.d.ts +3 -0
  246. package/dist/lib/authentication/ui/icons/Google.js +4 -0
  247. package/dist/lib/authentication/ui/icons/Google.js.map +1 -0
  248. package/dist/lib/authentication/ui/icons/Microsoft.d.ts +3 -0
  249. package/dist/lib/authentication/ui/icons/Microsoft.js +4 -0
  250. package/dist/lib/authentication/ui/icons/Microsoft.js.map +1 -0
  251. package/dist/lib/authentication/ui/icons/X.d.ts +3 -0
  252. package/dist/lib/authentication/ui/icons/X.js +4 -0
  253. package/dist/lib/authentication/ui/icons/X.js.map +1 -0
  254. package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
  255. package/dist/lib/authentication/use-broadcast/shared.js +3 -3
  256. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
  257. package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
  258. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
  259. package/dist/lib/components/Autocomplete.d.ts +3 -1
  260. package/dist/lib/components/Autocomplete.js +7 -3
  261. package/dist/lib/components/Autocomplete.js.map +1 -1
  262. package/dist/lib/components/Banner.js +2 -2
  263. package/dist/lib/components/Banner.js.map +1 -1
  264. package/dist/lib/components/Bootstrap.js.map +1 -1
  265. package/dist/lib/components/BuildCheck.d.ts +2 -1
  266. package/dist/lib/components/BuildCheck.js +12 -5
  267. package/dist/lib/components/BuildCheck.js.map +1 -1
  268. package/dist/lib/components/CategoryHeading.js +1 -1
  269. package/dist/lib/components/CategoryHeading.js.map +1 -1
  270. package/dist/lib/components/ErrorPage.js +2 -2
  271. package/dist/lib/components/ErrorPage.js.map +1 -1
  272. package/dist/lib/components/Footer.js +1 -1
  273. package/dist/lib/components/Footer.js.map +1 -1
  274. package/dist/lib/components/Framed.d.ts +7 -0
  275. package/dist/lib/components/Framed.js +26 -0
  276. package/dist/lib/components/Framed.js.map +1 -0
  277. package/dist/lib/components/Header.js +20 -21
  278. package/dist/lib/components/Header.js.map +1 -1
  279. package/dist/lib/components/Heading.d.ts +8 -4
  280. package/dist/lib/components/Heading.js +3 -7
  281. package/dist/lib/components/Heading.js.map +1 -1
  282. package/dist/lib/components/LanguageIcon.d.ts +3 -0
  283. package/dist/lib/components/LanguageIcon.js +163 -0
  284. package/dist/lib/components/LanguageIcon.js.map +1 -0
  285. package/dist/lib/components/Layout.js +4 -7
  286. package/dist/lib/components/Layout.js.map +1 -1
  287. package/dist/lib/components/Main.js +4 -4
  288. package/dist/lib/components/Main.js.map +1 -1
  289. package/dist/lib/components/Markdown.d.ts +0 -1
  290. package/dist/lib/components/Markdown.js +5 -6
  291. package/dist/lib/components/Markdown.js.map +1 -1
  292. package/dist/lib/components/Meta.d.ts +2 -0
  293. package/dist/lib/components/Meta.js +11 -0
  294. package/dist/lib/components/Meta.js.map +1 -0
  295. package/dist/lib/components/MobileTopNavigation.js +13 -7
  296. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  297. package/dist/lib/components/NotFoundPage.js +2 -2
  298. package/dist/lib/components/NotFoundPage.js.map +1 -1
  299. package/dist/lib/components/PageProgress.d.ts +1 -0
  300. package/dist/lib/components/PageProgress.js +20 -0
  301. package/dist/lib/components/PageProgress.js.map +1 -0
  302. package/dist/lib/components/Pagination.js +1 -1
  303. package/dist/lib/components/Pagination.js.map +1 -1
  304. package/dist/lib/components/PathRenderer.js +1 -1
  305. package/dist/lib/components/PathRenderer.js.map +1 -1
  306. package/dist/lib/components/Search.js +1 -1
  307. package/dist/lib/components/Search.js.map +1 -1
  308. package/dist/lib/components/Slot.js.map +1 -1
  309. package/dist/lib/components/Slot.test.js +7 -3
  310. package/dist/lib/components/Slot.test.js.map +1 -1
  311. package/dist/lib/components/StatusPage.js +4 -0
  312. package/dist/lib/components/StatusPage.js.map +1 -1
  313. package/dist/lib/components/TopNavigation.d.ts +7 -3
  314. package/dist/lib/components/TopNavigation.js +51 -45
  315. package/dist/lib/components/TopNavigation.js.map +1 -1
  316. package/dist/lib/components/Typography.d.ts +5 -0
  317. package/dist/lib/components/Typography.js +8 -0
  318. package/dist/lib/components/Typography.js.map +1 -0
  319. package/dist/lib/components/Zudoku.js +5 -5
  320. package/dist/lib/components/Zudoku.js.map +1 -1
  321. package/dist/lib/components/cache.d.ts +3 -1
  322. package/dist/lib/components/cache.js +3 -5
  323. package/dist/lib/components/cache.js.map +1 -1
  324. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  325. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
  326. package/dist/lib/components/context/SlotProvider.js.map +1 -1
  327. package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
  328. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  329. package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
  330. package/dist/lib/components/context/ZudokuContext.js +66 -32
  331. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  332. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  333. package/dist/lib/components/index.d.ts +24 -31
  334. package/dist/lib/components/index.js +5 -16
  335. package/dist/lib/components/index.js.map +1 -1
  336. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  337. package/dist/lib/components/navigation/Navigation.js +12 -0
  338. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  339. package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
  340. package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +2 -2
  341. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  342. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  343. package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +21 -14
  344. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  345. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  346. package/dist/lib/components/navigation/NavigationItem.js +55 -0
  347. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  348. package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
  349. package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +5 -5
  350. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  351. package/dist/lib/components/navigation/Toc.js +1 -1
  352. package/dist/lib/components/navigation/Toc.js.map +1 -1
  353. package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
  354. package/dist/lib/components/navigation/utils.d.ts +11 -11
  355. package/dist/lib/components/navigation/utils.js +32 -29
  356. package/dist/lib/components/navigation/utils.js.map +1 -1
  357. package/dist/lib/core/RouteGuard.d.ts +1 -1
  358. package/dist/lib/core/RouteGuard.js +19 -27
  359. package/dist/lib/core/RouteGuard.js.map +1 -1
  360. package/dist/lib/core/ZudokuContext.d.ts +17 -13
  361. package/dist/lib/core/ZudokuContext.js +47 -11
  362. package/dist/lib/core/ZudokuContext.js.map +1 -1
  363. package/dist/lib/core/__internal.d.ts +37 -0
  364. package/dist/lib/core/__internal.js +26 -0
  365. package/dist/lib/core/__internal.js.map +1 -0
  366. package/dist/lib/core/plugins.d.ts +4 -3
  367. package/dist/lib/core/plugins.js.map +1 -1
  368. package/dist/lib/core/router.d.ts +1 -0
  369. package/dist/lib/core/router.js +2 -0
  370. package/dist/lib/core/router.js.map +1 -0
  371. package/dist/lib/errors/ErrorAlert.js +2 -4
  372. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  373. package/dist/lib/errors/RouterError.d.ts +3 -1
  374. package/dist/lib/errors/RouterError.js +3 -2
  375. package/dist/lib/errors/RouterError.js.map +1 -1
  376. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  377. package/dist/lib/errors/TopLevelError.js +1 -2
  378. package/dist/lib/errors/TopLevelError.js.map +1 -1
  379. package/dist/lib/hooks/index.d.ts +9 -3
  380. package/dist/lib/hooks/useEvent.test.js +5 -3
  381. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  382. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  383. package/dist/lib/hooks/useHotkey.js +58 -0
  384. package/dist/lib/hooks/useHotkey.js.map +1 -0
  385. package/dist/lib/oas/graphql/circular.js +2 -2
  386. package/dist/lib/oas/graphql/circular.js.map +1 -1
  387. package/dist/lib/oas/graphql/index.js +39 -3
  388. package/dist/lib/oas/graphql/index.js.map +1 -1
  389. package/dist/lib/oas/parser/dereference/index.js +2 -1
  390. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  391. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  392. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  393. package/dist/lib/oas/parser/index.js +8 -4
  394. package/dist/lib/oas/parser/index.js.map +1 -1
  395. package/dist/lib/oas/parser/upgrade/index.js +2 -1
  396. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  397. package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
  398. package/dist/lib/plugins/api-catalog/Catalog.js +7 -1
  399. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  400. package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
  401. package/dist/lib/plugins/api-catalog/index.js +10 -10
  402. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  403. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +1 -1
  404. package/dist/lib/plugins/api-keys/CreateApiKey.js +13 -3
  405. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  406. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
  407. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
  408. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
  409. package/dist/lib/plugins/api-keys/ProtectedRoute.js +4 -1
  410. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  411. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  412. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +17 -24
  413. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  414. package/dist/lib/plugins/api-keys/index.d.ts +11 -6
  415. package/dist/lib/plugins/api-keys/index.js +28 -13
  416. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  417. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  418. package/dist/lib/plugins/custom-pages/index.js +18 -10
  419. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  420. package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -3
  421. package/dist/lib/plugins/markdown/MdxPage.js +56 -12
  422. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  423. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
  424. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
  425. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
  426. package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
  427. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
  428. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
  429. package/dist/lib/plugins/markdown/index.d.ts +13 -3
  430. package/dist/lib/plugins/markdown/index.js +9 -26
  431. package/dist/lib/plugins/markdown/index.js.map +1 -1
  432. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +1 -0
  433. package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
  434. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  435. package/dist/lib/plugins/openapi/ColorizedParam.js +4 -1
  436. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  437. package/dist/lib/plugins/openapi/Endpoint.js +2 -2
  438. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  439. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.d.ts +5 -0
  440. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +10 -0
  441. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js.map +1 -0
  442. package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
  443. package/dist/lib/plugins/openapi/MCPEndpoint.js +56 -0
  444. package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
  445. package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
  446. package/dist/lib/plugins/openapi/OasProvider.js +1 -0
  447. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  448. package/dist/lib/plugins/openapi/OperationList.d.ts +0 -2
  449. package/dist/lib/plugins/openapi/OperationList.js +32 -9
  450. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  451. package/dist/lib/plugins/openapi/OperationListItem.d.ts +4 -3
  452. package/dist/lib/plugins/openapi/OperationListItem.js +13 -6
  453. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  454. package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
  455. package/dist/lib/plugins/openapi/ParamInfos.js +11 -9
  456. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  457. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
  458. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  459. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  460. package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
  461. package/dist/lib/plugins/openapi/ParameterListItem.js +2 -2
  462. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  463. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
  464. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -5
  465. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  466. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +11 -4
  467. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +2 -2
  468. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  469. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -1
  470. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +14 -2
  471. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  472. package/dist/lib/plugins/openapi/SchemaList.js +2 -3
  473. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  474. package/dist/lib/plugins/openapi/Sidecar.d.ts +5 -3
  475. package/dist/lib/plugins/openapi/Sidecar.js +54 -30
  476. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  477. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +11 -6
  478. package/dist/lib/plugins/openapi/SidecarExamples.js +15 -33
  479. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  480. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  481. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
  482. package/dist/lib/plugins/openapi/client/createServer.js +1 -2
  483. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  484. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  485. package/dist/lib/plugins/openapi/components/NonHighlightedCode.d.ts +4 -0
  486. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js +5 -0
  487. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js.map +1 -0
  488. package/dist/lib/plugins/openapi/components/ResponseContent.js +1 -1
  489. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -1
  490. package/dist/lib/plugins/openapi/context.d.ts +1 -1
  491. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
  492. package/dist/lib/plugins/openapi/graphql/gql.d.ts +3 -3
  493. package/dist/lib/plugins/openapi/graphql/gql.js +3 -3
  494. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  495. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +15 -5
  496. package/dist/lib/plugins/openapi/graphql/graphql.js +14 -2
  497. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  498. package/dist/lib/plugins/openapi/index.d.ts +5 -5
  499. package/dist/lib/plugins/openapi/index.js +57 -29
  500. package/dist/lib/plugins/openapi/index.js.map +1 -1
  501. package/dist/lib/plugins/openapi/interfaces.d.ts +21 -7
  502. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  503. package/dist/lib/plugins/openapi/playground/BodyPanel.js +78 -0
  504. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  505. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  506. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  507. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  508. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
  509. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
  510. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  511. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  512. package/dist/lib/plugins/openapi/playground/Headers.js +42 -80
  513. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  514. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
  515. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
  516. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
  517. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
  518. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -2
  519. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
  520. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +10 -2
  521. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +9 -2
  522. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  523. package/dist/lib/plugins/openapi/playground/PathParams.js +2 -4
  524. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  525. package/dist/lib/plugins/openapi/playground/Playground.d.ts +12 -10
  526. package/dist/lib/plugins/openapi/playground/Playground.js +164 -106
  527. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  528. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -1
  529. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  530. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -3
  531. package/dist/lib/plugins/openapi/playground/QueryParams.js +20 -29
  532. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  533. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +2 -1
  534. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +10 -2
  535. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -1
  536. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  537. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  538. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  539. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  540. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  541. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  542. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +5 -3
  543. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.d.ts +8 -0
  544. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js +19 -0
  545. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js.map +1 -0
  546. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  547. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  548. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  549. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  550. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  551. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  552. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.d.ts +1 -0
  553. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js +540 -0
  554. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js.map +1 -0
  555. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.d.ts +40 -0
  556. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js +205 -0
  557. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js.map +1 -0
  558. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  559. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  560. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  561. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  562. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +71 -0
  563. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  564. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +10 -4
  565. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +55 -39
  566. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  567. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  568. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
  569. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  570. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
  571. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
  572. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
  573. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +18 -0
  574. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +12 -0
  575. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  576. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
  577. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
  578. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
  579. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
  580. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
  581. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
  582. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
  583. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
  584. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
  585. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +7 -17
  586. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  587. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -1
  588. package/dist/lib/plugins/openapi/schema/SchemaView.js +15 -14
  589. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  590. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +5 -0
  591. package/dist/lib/plugins/openapi/schema/UnionView.js +36 -0
  592. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  593. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  594. package/dist/lib/plugins/openapi/schema/union-helpers.js +71 -0
  595. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  596. package/dist/lib/plugins/openapi/schema/utils.d.ts +0 -7
  597. package/dist/lib/plugins/openapi/schema/utils.js +3 -8
  598. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  599. package/dist/lib/plugins/openapi/state.d.ts +5 -3
  600. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +1 -1
  601. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +1 -1
  602. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
  603. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  604. package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +6 -4
  605. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  606. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  607. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +10 -13
  608. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  609. package/dist/lib/plugins/openapi/util/getRoutes.js +3 -3
  610. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  611. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  612. package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
  613. package/dist/lib/plugins/search-inkeep/index.js +35 -29
  614. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  615. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
  616. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  617. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  618. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +2 -2
  619. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  620. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +2 -2
  621. package/dist/lib/plugins/search-pagefind/ResultList.js +15 -5
  622. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  623. package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
  624. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  625. package/dist/lib/shiki.d.ts +7 -6
  626. package/dist/lib/shiki.js +31 -8
  627. package/dist/lib/shiki.js.map +1 -1
  628. package/dist/lib/ui/ActionButton.js +1 -1
  629. package/dist/lib/ui/ActionButton.js.map +1 -1
  630. package/dist/lib/ui/Alert.d.ts +6 -5
  631. package/dist/lib/ui/Alert.js +12 -10
  632. package/dist/lib/ui/Alert.js.map +1 -1
  633. package/dist/lib/ui/Badge.d.ts +1 -1
  634. package/dist/lib/ui/Breadcrumb.js +1 -1
  635. package/dist/lib/ui/Breadcrumb.js.map +1 -1
  636. package/dist/lib/ui/Button.d.ts +2 -2
  637. package/dist/lib/ui/Button.js +1 -0
  638. package/dist/lib/ui/Button.js.map +1 -1
  639. package/dist/lib/ui/Callout.d.ts +5 -5
  640. package/dist/lib/ui/Callout.js +5 -5
  641. package/dist/lib/ui/Callout.js.map +1 -1
  642. package/dist/lib/ui/Checkbox.d.ts +2 -2
  643. package/dist/lib/ui/Checkbox.js +4 -4
  644. package/dist/lib/ui/Checkbox.js.map +1 -1
  645. package/dist/lib/ui/CodeBlock.d.ts +2 -4
  646. package/dist/lib/ui/CodeBlock.js +10 -10
  647. package/dist/lib/ui/CodeBlock.js.map +1 -1
  648. package/dist/lib/ui/Command.d.ts +5 -5
  649. package/dist/lib/ui/Command.js +2 -6
  650. package/dist/lib/ui/Command.js.map +1 -1
  651. package/dist/lib/ui/Dialog.d.ts +13 -17
  652. package/dist/lib/ui/Dialog.js +31 -18
  653. package/dist/lib/ui/Dialog.js.map +1 -1
  654. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +16 -0
  655. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  656. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  657. package/dist/lib/ui/Form.d.ts +2 -2
  658. package/dist/lib/ui/Pagination.d.ts +1 -1
  659. package/dist/lib/ui/Pagination.js +1 -1
  660. package/dist/lib/ui/Pagination.js.map +1 -1
  661. package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
  662. package/dist/lib/ui/ReactComponentDoc.js +10 -0
  663. package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
  664. package/dist/lib/ui/Secret.d.ts +18 -0
  665. package/dist/lib/ui/Secret.js +26 -0
  666. package/dist/lib/ui/Secret.js.map +1 -0
  667. package/dist/lib/ui/Select.js +1 -1
  668. package/dist/lib/ui/Separator.d.ts +4 -0
  669. package/dist/lib/ui/Separator.js +8 -0
  670. package/dist/lib/ui/Separator.js.map +1 -0
  671. package/dist/lib/ui/SyntaxHighlight.d.ts +4 -1
  672. package/dist/lib/ui/SyntaxHighlight.js +3 -2
  673. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  674. package/dist/lib/ui/ToggleGroup.d.ts +1 -1
  675. package/dist/lib/ui/Tooltip.d.ts +7 -7
  676. package/dist/lib/ui/Tooltip.js +16 -10
  677. package/dist/lib/ui/Tooltip.js.map +1 -1
  678. package/dist/lib/ui/Value.d.ts +5 -0
  679. package/dist/lib/ui/Value.js +13 -0
  680. package/dist/lib/ui/Value.js.map +1 -0
  681. package/dist/lib/util/MdxComponents.d.ts +11 -2
  682. package/dist/lib/util/MdxComponents.js +9 -4
  683. package/dist/lib/util/MdxComponents.js.map +1 -1
  684. package/dist/lib/util/cn.js.map +1 -1
  685. package/dist/lib/util/createVariantComponent.d.ts +7 -4
  686. package/dist/lib/util/createVariantComponent.js +5 -2
  687. package/dist/lib/util/createVariantComponent.js.map +1 -1
  688. package/dist/lib/util/flattenAllOf.d.ts +4 -0
  689. package/dist/lib/util/flattenAllOf.js +65 -0
  690. package/dist/lib/util/flattenAllOf.js.map +1 -0
  691. package/dist/lib/util/flattenAllOf.test.d.ts +1 -0
  692. package/dist/lib/util/flattenAllOf.test.js +532 -0
  693. package/dist/lib/util/flattenAllOf.test.js.map +1 -0
  694. package/dist/lib/util/groupBy.js +1 -0
  695. package/dist/lib/util/groupBy.js.map +1 -1
  696. package/dist/lib/util/humanFileSize.d.ts +6 -0
  697. package/dist/lib/util/humanFileSize.js +14 -0
  698. package/dist/lib/util/humanFileSize.js.map +1 -0
  699. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  700. package/dist/lib/util/humanFileSize.test.js +22 -0
  701. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  702. package/dist/lib/util/invariant.d.ts +6 -5
  703. package/dist/lib/util/invariant.js +4 -2
  704. package/dist/lib/util/invariant.js.map +1 -1
  705. package/dist/lib/util/os.d.ts +2 -0
  706. package/dist/lib/util/os.js +21 -0
  707. package/dist/lib/util/os.js.map +1 -0
  708. package/dist/lib/util/pastellize.js +4 -4
  709. package/dist/lib/util/pastellize.js.map +1 -1
  710. package/dist/lib/util/syncZustandState.d.ts +5 -0
  711. package/dist/lib/util/syncZustandState.js +14 -0
  712. package/dist/lib/util/syncZustandState.js.map +1 -0
  713. package/dist/lib/util/traverse.d.ts +1 -0
  714. package/dist/lib/util/traverse.js +25 -0
  715. package/dist/lib/util/traverse.js.map +1 -1
  716. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  717. package/dist/lib/util/useCopyToClipboard.js +11 -0
  718. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  719. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
  720. package/dist/lib/util/useScrollToAnchor.js +5 -3
  721. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  722. package/dist/ts.js +3 -3
  723. package/dist/ts.js.map +1 -1
  724. package/dist/vite/api/SchemaManager.d.ts +7 -5
  725. package/dist/vite/api/SchemaManager.js +62 -47
  726. package/dist/vite/api/SchemaManager.js.map +1 -1
  727. package/dist/vite/api/SchemaManager.test.js +6 -6
  728. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  729. package/dist/vite/api/schema-codegen.js +71 -22
  730. package/dist/vite/api/schema-codegen.js.map +1 -1
  731. package/dist/vite/api/schema-codegen.test.js +156 -1
  732. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  733. package/dist/vite/build.js +11 -35
  734. package/dist/vite/build.js.map +1 -1
  735. package/dist/vite/config.js +18 -3
  736. package/dist/vite/config.js.map +1 -1
  737. package/dist/vite/css/plugin.js +11 -0
  738. package/dist/vite/css/plugin.js.map +1 -1
  739. package/dist/vite/dev-server.js +12 -4
  740. package/dist/vite/dev-server.js.map +1 -1
  741. package/dist/vite/error-handler.d.ts +2 -2
  742. package/dist/vite/error-handler.js.map +1 -1
  743. package/dist/vite/llms.d.ts +12 -0
  744. package/dist/vite/llms.js +66 -0
  745. package/dist/vite/llms.js.map +1 -0
  746. package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
  747. package/dist/vite/mdx/remark-inject-filepath.js +6 -0
  748. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
  749. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  750. package/dist/vite/mdx/remark-last-modified.js +82 -0
  751. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  752. package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
  753. package/dist/vite/mdx/remark-link-rewrite.js +20 -0
  754. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
  755. package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
  756. package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
  757. package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
  758. package/dist/vite/{remarkStaticGeneration.d.ts → mdx/remark-static-generation.d.ts} +2 -2
  759. package/dist/vite/{remarkStaticGeneration.js → mdx/remark-static-generation.js} +2 -2
  760. package/dist/vite/mdx/remark-static-generation.js.map +1 -0
  761. package/dist/vite/mdx/utils.d.ts +2 -0
  762. package/dist/vite/mdx/utils.js +31 -0
  763. package/dist/vite/mdx/utils.js.map +1 -0
  764. package/dist/vite/output.d.ts +1 -1
  765. package/dist/vite/output.js +1 -1
  766. package/dist/vite/output.js.map +1 -1
  767. package/dist/vite/plugin-api-keys.d.ts +1 -1
  768. package/dist/vite/plugin-api-keys.js +1 -1
  769. package/dist/vite/plugin-api-keys.js.map +1 -1
  770. package/dist/vite/plugin-api.js +29 -28
  771. package/dist/vite/plugin-api.js.map +1 -1
  772. package/dist/vite/plugin-auth.d.ts +1 -1
  773. package/dist/vite/plugin-auth.js +1 -1
  774. package/dist/vite/plugin-auth.js.map +1 -1
  775. package/dist/vite/plugin-component.d.ts +1 -1
  776. package/dist/vite/plugin-config-reload.d.ts +1 -1
  777. package/dist/vite/plugin-config-reload.js +2 -0
  778. package/dist/vite/plugin-config-reload.js.map +1 -1
  779. package/dist/vite/plugin-config.d.ts +1 -1
  780. package/dist/vite/plugin-config.js +2 -1
  781. package/dist/vite/plugin-config.js.map +1 -1
  782. package/dist/vite/plugin-custom-pages.d.ts +1 -1
  783. package/dist/vite/plugin-custom-pages.js +3 -3
  784. package/dist/vite/plugin-custom-pages.js.map +1 -1
  785. package/dist/vite/plugin-docs.d.ts +9 -0
  786. package/dist/vite/plugin-docs.js +92 -62
  787. package/dist/vite/plugin-docs.js.map +1 -1
  788. package/dist/vite/plugin-frontmatter.js +7 -3
  789. package/dist/vite/plugin-frontmatter.js.map +1 -1
  790. package/dist/vite/plugin-markdown-export.d.ts +21 -0
  791. package/dist/vite/plugin-markdown-export.js +141 -0
  792. package/dist/vite/plugin-markdown-export.js.map +1 -0
  793. package/dist/vite/plugin-mdx.d.ts +2 -2
  794. package/dist/vite/plugin-mdx.js +57 -85
  795. package/dist/vite/plugin-mdx.js.map +1 -1
  796. package/dist/vite/plugin-metadata.d.ts +1 -1
  797. package/dist/vite/plugin-navigation.d.ts +4 -0
  798. package/dist/vite/plugin-navigation.js +67 -0
  799. package/dist/vite/plugin-navigation.js.map +1 -0
  800. package/dist/vite/plugin-redirect.d.ts +1 -1
  801. package/dist/vite/plugin-redirect.js +1 -1
  802. package/dist/vite/plugin-redirect.js.map +1 -1
  803. package/dist/vite/plugin-search.d.ts +1 -1
  804. package/dist/vite/plugin-search.js +1 -1
  805. package/dist/vite/plugin-search.js.map +1 -1
  806. package/dist/vite/plugin-shiki-register.js +1 -1
  807. package/dist/vite/plugin-shiki-register.js.map +1 -1
  808. package/dist/vite/plugin-theme.d.ts +8 -0
  809. package/dist/vite/plugin-theme.js +283 -0
  810. package/dist/vite/plugin-theme.js.map +1 -0
  811. package/dist/vite/plugin-theme.test.d.ts +1 -0
  812. package/dist/vite/plugin-theme.test.js +314 -0
  813. package/dist/vite/plugin-theme.test.js.map +1 -0
  814. package/dist/vite/plugin.d.ts +1 -1
  815. package/dist/vite/plugin.js +8 -8
  816. package/dist/vite/plugin.js.map +1 -1
  817. package/dist/vite/prerender/FileWritingResponse.js +5 -3
  818. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  819. package/dist/vite/prerender/InMemoryResponse.js +3 -1
  820. package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
  821. package/dist/vite/prerender/prerender.js +38 -5
  822. package/dist/vite/prerender/prerender.js.map +1 -1
  823. package/dist/vite/prerender/worker.d.ts +1 -1
  824. package/dist/vite/prerender/worker.js +5 -1
  825. package/dist/vite/prerender/worker.js.map +1 -1
  826. package/dist/vite/reporter.js +2 -2
  827. package/dist/vite/reporter.js.map +1 -1
  828. package/dist/vite/shadcn-registry.d.ts +20 -0
  829. package/dist/vite/shadcn-registry.js +29 -0
  830. package/dist/vite/shadcn-registry.js.map +1 -0
  831. package/dist/vite/sitemap.js +14 -13
  832. package/dist/vite/sitemap.js.map +1 -1
  833. package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
  834. package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
  835. package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
  836. package/dist/zuplo/enrich-with-zuplo.d.ts +1 -0
  837. package/dist/zuplo/enrich-with-zuplo.js +4 -4
  838. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  839. package/dist/zuplo/policy-types.js +0 -1
  840. package/dist/zuplo/policy-types.js.map +1 -1
  841. package/dist/zuplo/with-zuplo-processors.js +2 -0
  842. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  843. package/dist/zuplo/with-zuplo.js +1 -1
  844. package/dist/zuplo/with-zuplo.js.map +1 -1
  845. package/lib/{Button-BE9IVkWV.js → Button-B3ucvvQw.js} +8 -7
  846. package/lib/Button-B3ucvvQw.js.map +1 -0
  847. package/lib/{Card-DPhGbYUM.js → Card-KFniaZn5.js} +3 -3
  848. package/lib/{Card-DPhGbYUM.js.map → Card-KFniaZn5.js.map} +1 -1
  849. package/lib/CategoryHeading-DhmodDcq.js +17 -0
  850. package/lib/CategoryHeading-DhmodDcq.js.map +1 -0
  851. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  852. package/lib/Command-CUcrW3qs.js +134 -0
  853. package/lib/Command-CUcrW3qs.js.map +1 -0
  854. package/lib/Dialog-BQciPiHN.js +144 -0
  855. package/lib/Dialog-BQciPiHN.js.map +1 -0
  856. package/lib/{Drawer-BzkOKwgC.js → Drawer-Ci7XwhqT.js} +87 -87
  857. package/lib/{Drawer-BzkOKwgC.js.map → Drawer-Ci7XwhqT.js.map} +1 -1
  858. package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
  859. package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
  860. package/lib/{Markdown-m03c-TR_.js → ErrorAlert-B4eXGBQj.js} +3148 -3009
  861. package/lib/ErrorAlert-B4eXGBQj.js.map +1 -0
  862. package/lib/MdxPage-BSxjb_Mb.js +240 -0
  863. package/lib/MdxPage-BSxjb_Mb.js.map +1 -0
  864. package/lib/OAuthErrorPage-YbraVLZt.js +150 -0
  865. package/lib/OAuthErrorPage-YbraVLZt.js.map +1 -0
  866. package/lib/OasProvider-CgHWBl16.js +36 -0
  867. package/lib/OasProvider-CgHWBl16.js.map +1 -0
  868. package/lib/OperationList-BNNhgkkk.js +5482 -0
  869. package/lib/OperationList-BNNhgkkk.js.map +1 -0
  870. package/lib/Pagination-BpxzD3Tn.js +37 -0
  871. package/lib/Pagination-BpxzD3Tn.js.map +1 -0
  872. package/lib/RouteGuard-Brz95MSt.js +77 -0
  873. package/lib/RouteGuard-Brz95MSt.js.map +1 -0
  874. package/lib/RouterError-BsnUU8eo.js +42 -0
  875. package/lib/RouterError-BsnUU8eo.js.map +1 -0
  876. package/lib/{SchemaList-BoRsh_HT.js → SchemaList-C8-SHBql.js} +31 -41
  877. package/lib/SchemaList-C8-SHBql.js.map +1 -0
  878. package/lib/SchemaView-VsgUbgRw.js +397 -0
  879. package/lib/SchemaView-VsgUbgRw.js.map +1 -0
  880. package/lib/Select-C1DeCqKv.js +372 -0
  881. package/lib/Select-C1DeCqKv.js.map +1 -0
  882. package/lib/SignUp-Bnvel-zK.js +50 -0
  883. package/lib/SignUp-Bnvel-zK.js.map +1 -0
  884. package/lib/{Spinner-mNLZ6awP.js → Spinner-CI6bRyZw.js} +2 -2
  885. package/lib/{Spinner-mNLZ6awP.js.map → Spinner-CI6bRyZw.js.map} +1 -1
  886. package/lib/{SyntaxHighlight-Cz6Me7-F.js → SyntaxHighlight-C19vH0V_.js} +1838 -1765
  887. package/lib/SyntaxHighlight-C19vH0V_.js.map +1 -0
  888. package/lib/{Toc-CYYLzWX_.js → Toc-DR_4nkDQ.js} +7 -7
  889. package/lib/Toc-DR_4nkDQ.js.map +1 -0
  890. package/lib/ZudokuContext-BUZ5hkWB.js +1508 -0
  891. package/lib/ZudokuContext-BUZ5hkWB.js.map +1 -0
  892. package/lib/c-B-NUhs61.js +46 -0
  893. package/lib/c-B-NUhs61.js.map +1 -0
  894. package/lib/chunk-PVWAREVJ-BMhpCH5D.js +7965 -0
  895. package/lib/chunk-PVWAREVJ-BMhpCH5D.js.map +1 -0
  896. package/lib/{circular-CCqt6vxH.js → circular-BHuymtcS.js} +1826 -1821
  897. package/lib/circular-BHuymtcS.js.map +1 -0
  898. package/lib/{cn-wvCW-ho6.js → cn-dYga0KKN.js} +2 -2
  899. package/lib/cn-dYga0KKN.js.map +1 -0
  900. package/lib/commonlisp-De080z23.js +28 -0
  901. package/lib/commonlisp-De080z23.js.map +1 -0
  902. package/lib/cpp-79Paht7T.js +53 -0
  903. package/lib/cpp-79Paht7T.js.map +1 -0
  904. package/lib/{createServer-Fm59dJVp.js → createServer-C4Kx4Ah4.js} +4006 -3517
  905. package/lib/createServer-C4Kx4Ah4.js.map +1 -0
  906. package/lib/csharp-D8MIL50B.js +53 -0
  907. package/lib/csharp-D8MIL50B.js.map +1 -0
  908. package/lib/css-Bt6hr1td.js +54 -0
  909. package/lib/css-Bt6hr1td.js.map +1 -0
  910. package/lib/dart-B0vy1jWB.js +60 -0
  911. package/lib/dart-B0vy1jWB.js.map +1 -0
  912. package/lib/elixir-Ds8r0sF8.js +25 -0
  913. package/lib/elixir-Ds8r0sF8.js.map +1 -0
  914. package/lib/errors-C43bc4dH.js +45 -0
  915. package/lib/errors-C43bc4dH.js.map +1 -0
  916. package/lib/go-D2VsmIOS.js +25 -0
  917. package/lib/go-D2VsmIOS.js.map +1 -0
  918. package/lib/graphql-BtA6M4m5.js +25 -0
  919. package/lib/graphql-BtA6M4m5.js.map +1 -0
  920. package/lib/hook-CMeoxziF.js +40 -0
  921. package/lib/hook-CMeoxziF.js.map +1 -0
  922. package/lib/html-MGnI2uzP.js +33 -0
  923. package/lib/html-MGnI2uzP.js.map +1 -0
  924. package/lib/index-BlL_RtG2.js +3665 -0
  925. package/lib/index-BlL_RtG2.js.map +1 -0
  926. package/lib/index-CfR_Jx5Q.js +1059 -0
  927. package/lib/index-CfR_Jx5Q.js.map +1 -0
  928. package/lib/index-CrcNWbel.js.map +1 -1
  929. package/lib/index-DI5SPFK9.js.map +1 -1
  930. package/lib/{index-BvvmIczU.js → index-Dc4KrhPf.js} +166 -50
  931. package/lib/index-Dc4KrhPf.js.map +1 -0
  932. package/lib/{index-zddirpDj.js → index-nGbmHh_A.js} +227 -222
  933. package/lib/index-nGbmHh_A.js.map +1 -0
  934. package/lib/index.esm-BYObtETB.js +1294 -0
  935. package/lib/index.esm-BYObtETB.js.map +1 -0
  936. package/lib/{index.esm-BFcSKCe-.js → index.esm-BnYHxCYC.js} +2 -2
  937. package/lib/{index.esm-BFcSKCe-.js.map → index.esm-BnYHxCYC.js.map} +1 -1
  938. package/lib/{invariant-DAFpPywt.js → invariant-Bm-FVUQE.js} +2 -6
  939. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  940. package/lib/java-CVLzHfb1.js +53 -0
  941. package/lib/java-CVLzHfb1.js.map +1 -0
  942. package/lib/javascript-CcmIpL4G.js +10 -0
  943. package/lib/javascript-CcmIpL4G.js.map +1 -0
  944. package/lib/json-4AyP4uiY.js +25 -0
  945. package/lib/json-4AyP4uiY.js.map +1 -0
  946. package/lib/{jsx-runtime-C5mzlN2N.js → jsx-runtime-BzflLqGi.js} +110 -112
  947. package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
  948. package/lib/kotlin-v2plddBQ.js +37 -0
  949. package/lib/kotlin-v2plddBQ.js.map +1 -0
  950. package/lib/markdown-DYGWCmGQ.js +25 -0
  951. package/lib/markdown-DYGWCmGQ.js.map +1 -0
  952. package/lib/mdx-CHwYvXd4.js +32 -0
  953. package/lib/mdx-CHwYvXd4.js.map +1 -0
  954. package/lib/{mutation-BSeQ8pEK.js → mutation-BSU0xu4m.js} +2 -2
  955. package/lib/{mutation-BSeQ8pEK.js.map → mutation-BSU0xu4m.js.map} +1 -1
  956. package/lib/objectivec-HZY8shkd.js +32 -0
  957. package/lib/objectivec-HZY8shkd.js.map +1 -0
  958. package/lib/ocaml-DqsdDdwb.js +52 -0
  959. package/lib/ocaml-DqsdDdwb.js.map +1 -0
  960. package/lib/php-rQXzo7K_.js +25 -0
  961. package/lib/php-rQXzo7K_.js.map +1 -0
  962. package/lib/powershell-CQje9pm1.js +39 -0
  963. package/lib/powershell-CQje9pm1.js.map +1 -0
  964. package/lib/processors/removeExtensions.js.map +1 -1
  965. package/lib/processors/removeParameters.js.map +1 -1
  966. package/lib/processors/removePaths.js.map +1 -1
  967. package/lib/processors/traverse.js.map +1 -1
  968. package/lib/python-QIQAE5Ei.js +32 -0
  969. package/lib/python-QIQAE5Ei.js.map +1 -0
  970. package/lib/react-DHpVpxRv.js +24 -0
  971. package/lib/react-DHpVpxRv.js.map +1 -0
  972. package/lib/ruby-B2dU8Ny5.js +25 -0
  973. package/lib/ruby-B2dU8Ny5.js.map +1 -0
  974. package/lib/rust-DYnLHAi2.js +25 -0
  975. package/lib/rust-DYnLHAi2.js.map +1 -0
  976. package/lib/scala-CeKInBR8.js +25 -0
  977. package/lib/scala-CeKInBR8.js.map +1 -0
  978. package/lib/shell-HUv9oVtp.js +25 -0
  979. package/lib/shell-HUv9oVtp.js.map +1 -0
  980. package/lib/swift-B4z6ig1Z.js +25 -0
  981. package/lib/swift-B4z6ig1Z.js.map +1 -0
  982. package/lib/toml-Co9mpdct.js +32 -0
  983. package/lib/toml-Co9mpdct.js.map +1 -0
  984. package/lib/typescript-C26xdBDC.js +32 -0
  985. package/lib/typescript-C26xdBDC.js.map +1 -0
  986. package/lib/ui/Accordion.js +2 -2
  987. package/lib/ui/Accordion.js.map +1 -1
  988. package/lib/ui/ActionButton.js +11 -11
  989. package/lib/ui/ActionButton.js.map +1 -1
  990. package/lib/ui/Alert.js +55 -39
  991. package/lib/ui/Alert.js.map +1 -1
  992. package/lib/ui/AlertDialog.js +2 -2
  993. package/lib/ui/AlertDialog.js.map +1 -1
  994. package/lib/ui/Badge.js +2 -2
  995. package/lib/ui/Badge.js.map +1 -1
  996. package/lib/ui/Breadcrumb.js +24 -23
  997. package/lib/ui/Breadcrumb.js.map +1 -1
  998. package/lib/ui/Button.js +7 -6
  999. package/lib/ui/Button.js.map +1 -1
  1000. package/lib/ui/Callout.js +20 -20
  1001. package/lib/ui/Callout.js.map +1 -1
  1002. package/lib/ui/Card.js +2 -2
  1003. package/lib/ui/Card.js.map +1 -1
  1004. package/lib/ui/Carousel.js +2 -2
  1005. package/lib/ui/Carousel.js.map +1 -1
  1006. package/lib/ui/Checkbox.js +29 -26
  1007. package/lib/ui/Checkbox.js.map +1 -1
  1008. package/lib/ui/CodeBlock.js +203 -66
  1009. package/lib/ui/CodeBlock.js.map +1 -1
  1010. package/lib/ui/Command.js +22 -28
  1011. package/lib/ui/Command.js.map +1 -1
  1012. package/lib/ui/Dialog.js +140 -95
  1013. package/lib/ui/Dialog.js.map +1 -1
  1014. package/lib/ui/Drawer.js +3 -3
  1015. package/lib/ui/DropdownMenu.js +2 -2
  1016. package/lib/ui/DropdownMenu.js.map +1 -1
  1017. package/lib/ui/EmbeddedCodeBlock.js +83 -0
  1018. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  1019. package/lib/ui/Form.js +3 -3
  1020. package/lib/ui/Form.js.map +1 -1
  1021. package/lib/ui/HoverCard.js +2 -2
  1022. package/lib/ui/HoverCard.js.map +1 -1
  1023. package/lib/ui/Input.js +2 -2
  1024. package/lib/ui/Input.js.map +1 -1
  1025. package/lib/ui/Label.js +2 -2
  1026. package/lib/ui/Label.js.map +1 -1
  1027. package/lib/ui/Pagination.js +29 -30
  1028. package/lib/ui/Pagination.js.map +1 -1
  1029. package/lib/ui/Popover.js +2 -2
  1030. package/lib/ui/Popover.js.map +1 -1
  1031. package/lib/ui/Progress.js +2 -2
  1032. package/lib/ui/Progress.js.map +1 -1
  1033. package/lib/ui/RadioGroup.js +2 -2
  1034. package/lib/ui/RadioGroup.js.map +1 -1
  1035. package/lib/ui/ReactComponentDoc.js +28 -0
  1036. package/lib/ui/ReactComponentDoc.js.map +1 -0
  1037. package/lib/ui/ScrollArea.js +2 -2
  1038. package/lib/ui/ScrollArea.js.map +1 -1
  1039. package/lib/ui/Secret.js +106 -0
  1040. package/lib/ui/Secret.js.map +1 -0
  1041. package/lib/ui/Select.js +3 -3
  1042. package/lib/ui/Select.js.map +1 -1
  1043. package/lib/ui/Separator.js +27 -0
  1044. package/lib/ui/Separator.js.map +1 -0
  1045. package/lib/ui/Skeleton.js +2 -2
  1046. package/lib/ui/Skeleton.js.map +1 -1
  1047. package/lib/ui/Slider.js +2 -2
  1048. package/lib/ui/Slider.js.map +1 -1
  1049. package/lib/ui/Stepper.js +1 -1
  1050. package/lib/ui/Stepper.js.map +1 -1
  1051. package/lib/ui/Switch.js +2 -2
  1052. package/lib/ui/Switch.js.map +1 -1
  1053. package/lib/ui/SyntaxHighlight.js +6 -5
  1054. package/lib/ui/SyntaxHighlight.js.map +1 -1
  1055. package/lib/ui/Tabs.js +2 -2
  1056. package/lib/ui/Tabs.js.map +1 -1
  1057. package/lib/ui/Textarea.js +2 -2
  1058. package/lib/ui/Textarea.js.map +1 -1
  1059. package/lib/ui/Toggle.js +2 -2
  1060. package/lib/ui/Toggle.js.map +1 -1
  1061. package/lib/ui/ToggleGroup.js +2 -2
  1062. package/lib/ui/ToggleGroup.js.map +1 -1
  1063. package/lib/ui/Tooltip.js +55 -28
  1064. package/lib/ui/Tooltip.js.map +1 -1
  1065. package/lib/ui/Value.js +39 -0
  1066. package/lib/ui/Value.js.map +1 -0
  1067. package/lib/ui/util.js +1 -1
  1068. package/lib/useCopyToClipboard-B_085nfO.js +14 -0
  1069. package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
  1070. package/lib/useExposedProps-U3pmsHaG.js +113 -0
  1071. package/lib/useExposedProps-U3pmsHaG.js.map +1 -0
  1072. package/lib/useLatest-hmRS46UF.js.map +1 -1
  1073. package/lib/xml-BQOOC04j.js +25 -0
  1074. package/lib/xml-BQOOC04j.js.map +1 -0
  1075. package/lib/yaml-BGsJItKv.js +32 -0
  1076. package/lib/yaml-BGsJItKv.js.map +1 -0
  1077. package/lib/zig-CUV2sTct.js +35 -0
  1078. package/lib/zig-CUV2sTct.js.map +1 -0
  1079. package/lib/zudoku.__internal.js +3084 -0
  1080. package/lib/zudoku.__internal.js.map +1 -0
  1081. package/lib/zudoku.auth-auth0.js +23 -22
  1082. package/lib/zudoku.auth-auth0.js.map +1 -1
  1083. package/lib/zudoku.auth-azureb2c.js +136 -0
  1084. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  1085. package/lib/zudoku.auth-clerk.js +59 -65
  1086. package/lib/zudoku.auth-clerk.js.map +1 -1
  1087. package/lib/zudoku.auth-openid.js +372 -383
  1088. package/lib/zudoku.auth-openid.js.map +1 -1
  1089. package/lib/zudoku.auth-supabase.js +154 -0
  1090. package/lib/zudoku.auth-supabase.js.map +1 -0
  1091. package/lib/zudoku.components.js +27 -4957
  1092. package/lib/zudoku.components.js.map +1 -1
  1093. package/lib/zudoku.hooks.js +13 -14
  1094. package/lib/zudoku.hooks.js.map +1 -1
  1095. package/lib/zudoku.icons.js +1 -1
  1096. package/lib/zudoku.icons.js.map +1 -1
  1097. package/lib/zudoku.plugin-api-catalog.js +62 -55
  1098. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  1099. package/lib/zudoku.plugin-api-keys.js +456 -328
  1100. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1101. package/lib/zudoku.plugin-custom-pages.js +15 -18
  1102. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1103. package/lib/zudoku.plugin-markdown.js +21 -70
  1104. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1105. package/lib/zudoku.plugin-openapi.js +7 -7
  1106. package/lib/zudoku.plugin-redirect.js +1 -1
  1107. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1108. package/lib/zudoku.plugin-search-inkeep.js +54 -57
  1109. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1110. package/lib/zudoku.plugin-search-pagefind.js +213 -119
  1111. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  1112. package/lib/zudoku.plugins.js.map +1 -1
  1113. package/lib/zudoku.router.js +2507 -0
  1114. package/lib/zudoku.router.js.map +1 -0
  1115. package/package.json +141 -110
  1116. package/src/app/ZuploBuildConfig.ts +7 -7
  1117. package/src/app/defaultTheme.css +68 -49
  1118. package/src/app/demo.tsx +25 -7
  1119. package/src/app/entry.client.tsx +7 -8
  1120. package/src/app/entry.server.tsx +20 -12
  1121. package/src/app/env.ts +10 -2
  1122. package/src/app/main.css +59 -33
  1123. package/src/app/main.tsx +46 -36
  1124. package/src/app/standalone.tsx +14 -8
  1125. package/src/lib/MissingIcon.tsx +1 -1
  1126. package/src/lib/assets/language-icons/c.tsx +31 -0
  1127. package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
  1128. package/src/lib/assets/language-icons/cpp.tsx +35 -0
  1129. package/src/lib/assets/language-icons/csharp.tsx +35 -0
  1130. package/src/lib/assets/language-icons/css.tsx +36 -0
  1131. package/src/lib/assets/language-icons/dart.tsx +39 -0
  1132. package/src/lib/assets/language-icons/elixir.tsx +19 -0
  1133. package/src/lib/assets/language-icons/go.tsx +19 -0
  1134. package/src/lib/assets/language-icons/graphql.tsx +19 -0
  1135. package/src/lib/assets/language-icons/html.tsx +24 -0
  1136. package/src/lib/assets/language-icons/java.tsx +35 -0
  1137. package/src/lib/assets/language-icons/javascript.tsx +11 -0
  1138. package/src/lib/assets/language-icons/json.tsx +19 -0
  1139. package/src/lib/assets/language-icons/kotlin.tsx +30 -0
  1140. package/src/lib/assets/language-icons/markdown.tsx +19 -0
  1141. package/src/lib/assets/language-icons/mdx.tsx +23 -0
  1142. package/src/lib/assets/language-icons/objectivec.tsx +23 -0
  1143. package/src/lib/assets/language-icons/ocaml.tsx +34 -0
  1144. package/src/lib/assets/language-icons/php.tsx +19 -0
  1145. package/src/lib/assets/language-icons/powershell.tsx +27 -0
  1146. package/src/lib/assets/language-icons/python.tsx +23 -0
  1147. package/src/lib/assets/language-icons/react.tsx +21 -0
  1148. package/src/lib/assets/language-icons/ruby.tsx +19 -0
  1149. package/src/lib/assets/language-icons/rust.tsx +19 -0
  1150. package/src/lib/assets/language-icons/scala.tsx +19 -0
  1151. package/src/lib/assets/language-icons/shell.tsx +19 -0
  1152. package/src/lib/assets/language-icons/swift.tsx +19 -0
  1153. package/src/lib/assets/language-icons/toml.tsx +23 -0
  1154. package/src/lib/assets/language-icons/typescript.tsx +23 -0
  1155. package/src/lib/assets/language-icons/xml.tsx +19 -0
  1156. package/src/lib/assets/language-icons/yaml.tsx +23 -0
  1157. package/src/lib/assets/language-icons/zig.tsx +32 -0
  1158. package/src/lib/auth/issuer.test.ts +121 -0
  1159. package/src/lib/auth/issuer.ts +44 -0
  1160. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
  1161. package/src/lib/authentication/authentication.ts +26 -8
  1162. package/src/lib/authentication/components/CallbackHandler.tsx +23 -16
  1163. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  1164. package/src/lib/authentication/components/SignIn.tsx +12 -17
  1165. package/src/lib/authentication/components/SignOut.tsx +7 -6
  1166. package/src/lib/authentication/components/SignUp.tsx +5 -8
  1167. package/src/lib/authentication/errors.ts +27 -13
  1168. package/src/lib/authentication/hook.ts +23 -10
  1169. package/src/lib/authentication/providers/auth0.tsx +15 -10
  1170. package/src/lib/authentication/providers/azureb2c.tsx +208 -0
  1171. package/src/lib/authentication/providers/clerk.tsx +21 -20
  1172. package/src/lib/authentication/providers/firebase.tsx +284 -0
  1173. package/src/lib/authentication/providers/openid.tsx +95 -12
  1174. package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
  1175. package/src/lib/authentication/providers/supabase.tsx +63 -58
  1176. package/src/lib/authentication/state.ts +40 -30
  1177. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +335 -0
  1178. package/src/lib/authentication/ui/icons/Apple.tsx +10 -0
  1179. package/src/lib/authentication/ui/icons/Facebook.tsx +15 -0
  1180. package/src/lib/authentication/ui/icons/Github.tsx +16 -0
  1181. package/src/lib/authentication/ui/icons/Google.tsx +16 -0
  1182. package/src/lib/authentication/ui/icons/Microsoft.tsx +12 -0
  1183. package/src/lib/authentication/ui/icons/X.tsx +10 -0
  1184. package/src/lib/authentication/use-broadcast/LICENSE.md +12 -3
  1185. package/src/lib/authentication/use-broadcast/shared.ts +4 -4
  1186. package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
  1187. package/src/lib/components/AnchorLink.tsx +1 -1
  1188. package/src/lib/components/Autocomplete.tsx +14 -4
  1189. package/src/lib/components/Banner.tsx +1 -2
  1190. package/src/lib/components/Bootstrap.tsx +1 -0
  1191. package/src/lib/components/BuildCheck.tsx +26 -13
  1192. package/src/lib/components/CategoryHeading.tsx +4 -1
  1193. package/src/lib/components/ErrorPage.tsx +3 -3
  1194. package/src/lib/components/Footer.tsx +1 -1
  1195. package/src/lib/components/Framed.tsx +51 -0
  1196. package/src/lib/components/Header.tsx +28 -25
  1197. package/src/lib/components/Heading.tsx +11 -12
  1198. package/src/lib/components/LanguageIcon.tsx +181 -0
  1199. package/src/lib/components/Layout.tsx +3 -22
  1200. package/src/lib/components/Main.tsx +10 -10
  1201. package/src/lib/components/Markdown.tsx +11 -10
  1202. package/src/lib/components/Meta.tsx +45 -0
  1203. package/src/lib/components/MobileTopNavigation.tsx +70 -15
  1204. package/src/lib/components/NotFoundPage.tsx +6 -5
  1205. package/src/lib/components/PageProgress.tsx +28 -0
  1206. package/src/lib/components/Pagination.tsx +5 -4
  1207. package/src/lib/components/PathRenderer.tsx +2 -2
  1208. package/src/lib/components/Search.tsx +1 -1
  1209. package/src/lib/components/Slot.test.tsx +8 -8
  1210. package/src/lib/components/Slot.tsx +2 -2
  1211. package/src/lib/components/StatusPage.tsx +5 -0
  1212. package/src/lib/components/TopNavigation.tsx +77 -70
  1213. package/src/lib/components/Typography.tsx +14 -0
  1214. package/src/lib/components/Zudoku.tsx +5 -5
  1215. package/src/lib/components/cache.ts +9 -5
  1216. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  1217. package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
  1218. package/src/lib/components/context/SlotProvider.tsx +4 -4
  1219. package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
  1220. package/src/lib/components/context/ZudokuContext.ts +77 -43
  1221. package/src/lib/components/context/ZudokuProvider.tsx +1 -1
  1222. package/src/lib/components/index.ts +5 -19
  1223. package/src/lib/components/navigation/{Sidebar.tsx → Navigation.tsx} +18 -16
  1224. package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +1 -1
  1225. package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +25 -16
  1226. package/src/lib/components/navigation/{SidebarItem.tsx → NavigationItem.tsx} +37 -20
  1227. package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +8 -5
  1228. package/src/lib/components/navigation/Toc.tsx +5 -5
  1229. package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
  1230. package/src/lib/components/navigation/utils.ts +50 -46
  1231. package/src/lib/core/RouteGuard.tsx +52 -32
  1232. package/src/lib/core/ZudokuContext.ts +74 -23
  1233. package/src/lib/core/__internal.tsx +30 -0
  1234. package/src/lib/core/plugins.ts +4 -3
  1235. package/src/lib/core/router.ts +1 -0
  1236. package/src/lib/errors/ErrorAlert.tsx +8 -17
  1237. package/src/lib/errors/RouterError.tsx +7 -2
  1238. package/src/lib/errors/TopLevelError.tsx +2 -4
  1239. package/src/lib/hooks/useEvent.test.tsx +9 -7
  1240. package/src/lib/hooks/useHotkey.ts +70 -0
  1241. package/src/lib/oas/graphql/circular.ts +3 -3
  1242. package/src/lib/oas/graphql/index.ts +39 -3
  1243. package/src/lib/oas/parser/dereference/index.ts +2 -1
  1244. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  1245. package/src/lib/oas/parser/index.ts +10 -5
  1246. package/src/lib/oas/parser/upgrade/index.ts +2 -1
  1247. package/src/lib/plugins/api-catalog/Catalog.tsx +8 -1
  1248. package/src/lib/plugins/api-catalog/index.tsx +19 -19
  1249. package/src/lib/plugins/api-keys/CreateApiKey.tsx +18 -4
  1250. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
  1251. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +11 -7
  1252. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +65 -71
  1253. package/src/lib/plugins/api-keys/index.tsx +50 -25
  1254. package/src/lib/plugins/custom-pages/index.tsx +24 -16
  1255. package/src/lib/plugins/markdown/MdxPage.tsx +204 -32
  1256. package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
  1257. package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
  1258. package/src/lib/plugins/markdown/index.tsx +27 -42
  1259. package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -3
  1260. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -1
  1261. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  1262. package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -0
  1263. package/src/lib/plugins/openapi/MCPEndpoint.tsx +273 -0
  1264. package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
  1265. package/src/lib/plugins/openapi/OperationList.tsx +49 -31
  1266. package/src/lib/plugins/openapi/OperationListItem.tsx +105 -78
  1267. package/src/lib/plugins/openapi/ParamInfos.tsx +10 -9
  1268. package/src/lib/plugins/openapi/ParameterList.tsx +3 -5
  1269. package/src/lib/plugins/openapi/ParameterListItem.tsx +12 -12
  1270. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -13
  1271. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +23 -4
  1272. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +27 -2
  1273. package/src/lib/plugins/openapi/SchemaList.tsx +5 -11
  1274. package/src/lib/plugins/openapi/Sidecar.tsx +112 -63
  1275. package/src/lib/plugins/openapi/SidecarExamples.tsx +40 -56
  1276. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  1277. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
  1278. package/src/lib/plugins/openapi/client/createServer.ts +1 -2
  1279. package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
  1280. package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
  1281. package/src/lib/plugins/openapi/components/ResponseContent.tsx +1 -1
  1282. package/src/lib/plugins/openapi/context.tsx +1 -1
  1283. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -1
  1284. package/src/lib/plugins/openapi/graphql/gql.ts +11 -11
  1285. package/src/lib/plugins/openapi/graphql/graphql.ts +33 -9
  1286. package/src/lib/plugins/openapi/index.tsx +90 -59
  1287. package/src/lib/plugins/openapi/interfaces.ts +22 -7
  1288. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +271 -0
  1289. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +51 -0
  1290. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +12 -4
  1291. package/src/lib/plugins/openapi/playground/Headers.tsx +158 -172
  1292. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +4 -3
  1293. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +14 -17
  1294. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +34 -2
  1295. package/src/lib/plugins/openapi/playground/PathParams.tsx +26 -35
  1296. package/src/lib/plugins/openapi/playground/Playground.tsx +325 -305
  1297. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +14 -2
  1298. package/src/lib/plugins/openapi/playground/QueryParams.tsx +92 -100
  1299. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
  1300. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1301. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1302. package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -0
  1303. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1304. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1305. package/src/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.tsx +872 -0
  1306. package/src/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.ts +349 -0
  1307. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1308. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +117 -0
  1309. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +228 -119
  1310. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +70 -91
  1311. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
  1312. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +23 -0
  1313. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
  1314. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
  1315. package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
  1316. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +3 -3
  1317. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +8 -30
  1318. package/src/lib/plugins/openapi/schema/SchemaView.tsx +32 -30
  1319. package/src/lib/plugins/openapi/schema/UnionView.tsx +143 -0
  1320. package/src/lib/plugins/openapi/schema/union-helpers.ts +123 -0
  1321. package/src/lib/plugins/openapi/schema/utils.ts +3 -13
  1322. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +2 -2
  1323. package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +7 -5
  1324. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +14 -15
  1325. package/src/lib/plugins/openapi/util/getRoutes.tsx +4 -4
  1326. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  1327. package/src/lib/plugins/search-inkeep/index.tsx +54 -58
  1328. package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
  1329. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +3 -4
  1330. package/src/lib/plugins/search-pagefind/ResultList.tsx +16 -8
  1331. package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
  1332. package/src/lib/shiki.ts +37 -8
  1333. package/src/lib/ui/ActionButton.tsx +3 -1
  1334. package/src/lib/ui/Alert.tsx +45 -39
  1335. package/src/lib/ui/Breadcrumb.tsx +1 -0
  1336. package/src/lib/ui/Button.tsx +1 -0
  1337. package/src/lib/ui/Callout.tsx +10 -5
  1338. package/src/lib/ui/Checkbox.tsx +23 -24
  1339. package/src/lib/ui/CodeBlock.tsx +37 -60
  1340. package/src/lib/ui/Command.tsx +2 -4
  1341. package/src/lib/ui/Dialog.tsx +114 -96
  1342. package/src/lib/ui/EmbeddedCodeBlock.tsx +96 -0
  1343. package/src/lib/ui/Form.tsx +4 -4
  1344. package/src/lib/ui/Pagination.tsx +1 -2
  1345. package/src/lib/ui/ReactComponentDoc.tsx +68 -0
  1346. package/src/lib/ui/Secret.tsx +123 -0
  1347. package/src/lib/ui/Select.tsx +1 -1
  1348. package/src/lib/ui/Separator.tsx +25 -0
  1349. package/src/lib/ui/SyntaxHighlight.tsx +16 -3
  1350. package/src/lib/ui/ToggleGroup.tsx +1 -1
  1351. package/src/lib/ui/Tooltip.tsx +54 -32
  1352. package/src/lib/ui/Value.tsx +42 -0
  1353. package/src/lib/util/MdxComponents.tsx +24 -5
  1354. package/src/lib/util/cn.ts +1 -1
  1355. package/src/lib/util/createVariantComponent.tsx +33 -7
  1356. package/src/lib/util/flattenAllOf.test.ts +637 -0
  1357. package/src/lib/util/flattenAllOf.ts +101 -0
  1358. package/src/lib/util/groupBy.ts +1 -0
  1359. package/src/lib/util/humanFileSize.test.ts +24 -0
  1360. package/src/lib/util/humanFileSize.ts +15 -0
  1361. package/src/lib/util/invariant.ts +8 -5
  1362. package/src/lib/util/os.ts +18 -0
  1363. package/src/lib/util/pastellize.ts +4 -4
  1364. package/src/lib/util/syncZustandState.ts +22 -0
  1365. package/src/lib/util/traverse.ts +36 -0
  1366. package/src/lib/util/types.ts +1 -1
  1367. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1368. package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
  1369. package/src/lib/util/useScrollToAnchor.ts +6 -4
  1370. package/src/shiki/langs/hurl.js +1 -0
  1371. package/src/shiki/langs/kdl.js +1 -0
  1372. package/src/shiki/langs/pkl.js +1 -0
  1373. package/src/shiki/langs/rosmsg.js +1 -0
  1374. package/src/shiki/langs/vue-vine.js +1 -0
  1375. package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
  1376. package/dist/config/validators/InputSidebarSchema.js +0 -62
  1377. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1378. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  1379. package/dist/config/validators/SidebarSchema.js +0 -118
  1380. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1381. package/dist/lib/components/ReactMarkdown.d.ts +0 -29
  1382. package/dist/lib/components/ReactMarkdown.js +0 -182
  1383. package/dist/lib/components/ReactMarkdown.js.map +0 -1
  1384. package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
  1385. package/dist/lib/components/navigation/Sidebar.js +0 -10
  1386. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1387. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1388. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1389. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1390. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -6
  1391. package/dist/lib/components/navigation/SidebarItem.js +0 -45
  1392. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1393. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1394. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  1395. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  1396. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  1397. package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
  1398. package/dist/lib/plugins/markdown/resolver.js +0 -46
  1399. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1400. package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +0 -4
  1401. package/dist/lib/plugins/openapi/playground/InlineInput.js +0 -3
  1402. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +0 -1
  1403. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
  1404. package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -19
  1405. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
  1406. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1407. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1408. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1409. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
  1410. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
  1411. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
  1412. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
  1413. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  1414. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  1415. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
  1416. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  1417. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  1418. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -6
  1419. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  1420. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  1421. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
  1422. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
  1423. package/dist/vite/plugin-configure-tailwind.d.ts +0 -2
  1424. package/dist/vite/plugin-configure-tailwind.js +0 -38
  1425. package/dist/vite/plugin-configure-tailwind.js.map +0 -1
  1426. package/dist/vite/plugin-sidebar.d.ts +0 -4
  1427. package/dist/vite/plugin-sidebar.js +0 -63
  1428. package/dist/vite/plugin-sidebar.js.map +0 -1
  1429. package/dist/vite/plugin-theme-css.d.ts +0 -5
  1430. package/dist/vite/plugin-theme-css.js +0 -77
  1431. package/dist/vite/plugin-theme-css.js.map +0 -1
  1432. package/dist/vite/remarkStaticGeneration.js.map +0 -1
  1433. package/lib/Button-BE9IVkWV.js.map +0 -1
  1434. package/lib/Callout-CvY02DXU.js +0 -231
  1435. package/lib/Callout-CvY02DXU.js.map +0 -1
  1436. package/lib/CategoryHeading-Cu2RwgjC.js +0 -10
  1437. package/lib/CategoryHeading-Cu2RwgjC.js.map +0 -1
  1438. package/lib/Dialog-B53OMCvW.js +0 -99
  1439. package/lib/Dialog-B53OMCvW.js.map +0 -1
  1440. package/lib/Markdown-m03c-TR_.js.map +0 -1
  1441. package/lib/MdxPage-Dy5JAci3.js +0 -84
  1442. package/lib/MdxPage-Dy5JAci3.js.map +0 -1
  1443. package/lib/OasProvider-DfTncecV.js +0 -33
  1444. package/lib/OasProvider-DfTncecV.js.map +0 -1
  1445. package/lib/OperationList-DTQVxVx5.js +0 -5153
  1446. package/lib/OperationList-DTQVxVx5.js.map +0 -1
  1447. package/lib/Pagination-CCxhL836.js +0 -36
  1448. package/lib/Pagination-CCxhL836.js.map +0 -1
  1449. package/lib/RouteGuard-DiCUImwp.js +0 -55
  1450. package/lib/RouteGuard-DiCUImwp.js.map +0 -1
  1451. package/lib/SchemaList-BoRsh_HT.js.map +0 -1
  1452. package/lib/SchemaView-BpEFXAa1.js +0 -375
  1453. package/lib/SchemaView-BpEFXAa1.js.map +0 -1
  1454. package/lib/SignUp-B-1Pvc-8.js +0 -63
  1455. package/lib/SignUp-B-1Pvc-8.js.map +0 -1
  1456. package/lib/Slot-xguyqKKU.js +0 -160
  1457. package/lib/Slot-xguyqKKU.js.map +0 -1
  1458. package/lib/SyntaxHighlight-Cz6Me7-F.js.map +0 -1
  1459. package/lib/Toc-CYYLzWX_.js.map +0 -1
  1460. package/lib/chunk-DQRVZFIR-BblmKnHy.js +0 -1839
  1461. package/lib/chunk-DQRVZFIR-BblmKnHy.js.map +0 -1
  1462. package/lib/circular-CCqt6vxH.js.map +0 -1
  1463. package/lib/cn-wvCW-ho6.js.map +0 -1
  1464. package/lib/createServer-Fm59dJVp.js.map +0 -1
  1465. package/lib/hook-k7PfUIsj.js +0 -1465
  1466. package/lib/hook-k7PfUIsj.js.map +0 -1
  1467. package/lib/index--oeBayMa.js +0 -86
  1468. package/lib/index--oeBayMa.js.map +0 -1
  1469. package/lib/index-Bn6Lc9tq.js +0 -9
  1470. package/lib/index-Bn6Lc9tq.js.map +0 -1
  1471. package/lib/index-BvvmIczU.js.map +0 -1
  1472. package/lib/index-DCHP-Cbn.js +0 -3268
  1473. package/lib/index-DCHP-Cbn.js.map +0 -1
  1474. package/lib/index-QzXzw_ra.js +0 -24
  1475. package/lib/index-QzXzw_ra.js.map +0 -1
  1476. package/lib/index-zddirpDj.js.map +0 -1
  1477. package/lib/index.esm-Cp4wkyud.js +0 -1236
  1478. package/lib/index.esm-Cp4wkyud.js.map +0 -1
  1479. package/lib/invariant-DAFpPywt.js.map +0 -1
  1480. package/lib/joinPath-B7kNnUX4.js +0 -8
  1481. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  1482. package/lib/jsx-runtime-C5mzlN2N.js.map +0 -1
  1483. package/lib/objectEntries-yMIkr2mI.js +0 -5
  1484. package/lib/objectEntries-yMIkr2mI.js.map +0 -1
  1485. package/lib/useExposedProps-BZQkZneR.js +0 -9
  1486. package/lib/useExposedProps-BZQkZneR.js.map +0 -1
  1487. package/lib/useMutation-CZSmsIGW.js +0 -97
  1488. package/lib/useMutation-CZSmsIGW.js.map +0 -1
  1489. package/src/lib/components/ReactMarkdown.license.txt +0 -21
  1490. package/src/lib/components/ReactMarkdown.tsx +0 -264
  1491. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  1492. package/src/lib/plugins/markdown/resolver.ts +0 -59
  1493. package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
  1494. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -70
  1495. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  1496. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
  1497. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
  1498. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -57
  1499. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -33
@@ -1,3268 +0,0 @@
1
- import { j as n } from "./jsx-runtime-C5mzlN2N.js";
2
- import { ChevronDown as vt, ChevronUp as hn, Check as bt, ChevronRightIcon as X, CheckIcon as jt, DotIcon as fn, XIcon as xn, Circle as gn, ChevronDownIcon as yn, InfoIcon as nt, LogInIcon as vn, CirclePlayIcon as bn } from "lucide-react";
3
- import { r as jn, c as Nn, u as wn, N as Cn, h as Sn, m as st } from "./chunk-DQRVZFIR-BblmKnHy.js";
4
- import { L as Nt, M as wt, O as Tn, l as An, P as On, j as R, d as Pn, i as En } from "./hook-k7PfUIsj.js";
5
- import { Button as Z } from "./ui/Button.js";
6
- import { Z as $n } from "./invariant-DAFpPywt.js";
7
- import * as b from "react";
8
- import { createContext as Ct, use as Rn, Fragment as q, useRef as Q, useEffect as ae, useMemo as Ln, useState as L, useCallback as In, useTransition as kn, useContext as Dn } from "react";
9
- import { VisuallyHidden as qn } from "@radix-ui/react-visually-hidden";
10
- import { D as Le, a as Ie, c as ke, d as St, f as Tt, e as Vn } from "./Dialog-B53OMCvW.js";
11
- import { u as Fn } from "./useMutation-CZSmsIGW.js";
12
- import { a as De, u as qe, C as V, b as Bn, F as zn } from "./index.esm-Cp4wkyud.js";
13
- import { c as At } from "./index-DI5SPFK9.js";
14
- import { c as g } from "./cn-wvCW-ho6.js";
15
- import * as w from "@radix-ui/react-select";
16
- import { Tabs as Ot, TabsList as Pt, TabsTrigger as M, TabsContent as U } from "./ui/Tabs.js";
17
- import { o as _n } from "./objectEntries-yMIkr2mI.js";
18
- import { u as Mn } from "./useLatest-hmRS46UF.js";
19
- import { z as Un } from "./index--oeBayMa.js";
20
- import { B as F } from "./Button-BE9IVkWV.js";
21
- import * as j from "@radix-ui/react-dropdown-menu";
22
- import { C as ue } from "./Card-DPhGbYUM.js";
23
- import * as Ce from "@radix-ui/react-checkbox";
24
- import * as oe from "@radix-ui/react-popover";
25
- import { PopoverAnchor as Gn } from "@radix-ui/react-popover";
26
- import { P as Hn } from "./index-CrcNWbel.js";
27
- import { g as Qn, h as Jn, C as Wn, b as Xn, f as Zn } from "./Callout-CvY02DXU.js";
28
- import { Input as Ve } from "./ui/Input.js";
29
- import { Slot as Yn } from "@radix-ui/react-slot";
30
- import * as Et from "@radix-ui/react-label";
31
- import * as Y from "@radix-ui/react-radio-group";
32
- import { S as Kn } from "./Spinner-mNLZ6awP.js";
33
- import { Callout as es } from "./ui/Callout.js";
34
- import { Card as $t, CardHeader as ts, CardTitle as ns, CardContent as ss } from "./ui/Card.js";
35
- import { Collapsible as rt, CollapsibleTrigger as at, CollapsibleContent as ot } from "./ui/Collapsible.js";
36
- import * as Fe from "@radix-ui/react-collapsible";
37
- import { S as rs } from "./SyntaxHighlight-Cz6Me7-F.js";
38
- let ge;
39
- const as = (e) => {
40
- if (e.errors?.[0])
41
- throw new $n(e.errors[0].message, {
42
- developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
43
- });
44
- };
45
- class os {
46
- constructor(t) {
47
- this.config = t;
48
- }
49
- #e = async () => (ge || (ge = import("./createServer-Fm59dJVp.js").then(
50
- (t) => t.createServer(this.config)
51
- )), ge);
52
- #t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
53
- fetch = async (t, s) => {
54
- const a = t.match(/query (\w+)/)?.[1], r = await this.#t({
55
- method: "POST",
56
- body: JSON.stringify({ query: t, variables: s, operationName: a }),
57
- headers: { "Content-Type": "application/json" }
58
- });
59
- if (!r.ok)
60
- throw new Error("Network response was not ok");
61
- const o = await r.json();
62
- return as(o), o.data;
63
- };
64
- }
65
- function ye(e, t) {
66
- if (!!!e)
67
- throw new Error(t);
68
- }
69
- function is(e) {
70
- return typeof e == "object" && e !== null;
71
- }
72
- function ls(e, t) {
73
- if (!!!e)
74
- throw new Error(
75
- t ?? "Unexpected invariant triggered."
76
- );
77
- }
78
- const cs = /\r\n|[\n\r]/g;
79
- function Se(e, t) {
80
- let s = 0, a = 1;
81
- for (const r of e.body.matchAll(cs)) {
82
- if (typeof r.index == "number" || ls(!1), r.index >= t)
83
- break;
84
- s = r.index + r[0].length, a += 1;
85
- }
86
- return {
87
- line: a,
88
- column: t + 1 - s
89
- };
90
- }
91
- function ds(e) {
92
- return Rt(
93
- e.source,
94
- Se(e.source, e.start)
95
- );
96
- }
97
- function Rt(e, t) {
98
- const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, c = t.line === 1 ? s : 0, l = t.column + c, u = `${e.name}:${i}:${l}
99
- `, p = a.split(/\r\n|[\n\r]/g), v = p[r];
100
- if (v.length > 120) {
101
- const f = Math.floor(l / 80), x = l % 80, m = [];
102
- for (let y = 0; y < v.length; y += 80)
103
- m.push(v.slice(y, y + 80));
104
- return u + it([
105
- [`${i} |`, m[0]],
106
- ...m.slice(1, f + 1).map((y) => ["|", y]),
107
- ["|", "^".padStart(x)],
108
- ["|", m[f + 1]]
109
- ]);
110
- }
111
- return u + it([
112
- // Lines specified like this: ["prefix", "string"],
113
- [`${i - 1} |`, p[r - 1]],
114
- [`${i} |`, v],
115
- ["|", "^".padStart(l)],
116
- [`${i + 1} |`, p[r + 1]]
117
- ]);
118
- }
119
- function it(e) {
120
- const t = e.filter(([a, r]) => r !== void 0), s = Math.max(...t.map(([a]) => a.length));
121
- return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
122
- `);
123
- }
124
- function us(e) {
125
- const t = e[0];
126
- return t == null || "kind" in t || "length" in t ? {
127
- nodes: t,
128
- source: e[1],
129
- positions: e[2],
130
- path: e[3],
131
- originalError: e[4],
132
- extensions: e[5]
133
- } : t;
134
- }
135
- class Be extends Error {
136
- /**
137
- * An array of `{ line, column }` locations within the source GraphQL document
138
- * which correspond to this error.
139
- *
140
- * Errors during validation often contain multiple locations, for example to
141
- * point out two things with the same name. Errors during execution include a
142
- * single location, the field which produced the error.
143
- *
144
- * Enumerable, and appears in the result of JSON.stringify().
145
- */
146
- /**
147
- * An array describing the JSON-path into the execution response which
148
- * corresponds to this error. Only included for errors during execution.
149
- *
150
- * Enumerable, and appears in the result of JSON.stringify().
151
- */
152
- /**
153
- * An array of GraphQL AST Nodes corresponding to this error.
154
- */
155
- /**
156
- * The source GraphQL document for the first location of this error.
157
- *
158
- * Note that if this Error represents more than one node, the source may not
159
- * represent nodes after the first node.
160
- */
161
- /**
162
- * An array of character offsets within the source GraphQL document
163
- * which correspond to this error.
164
- */
165
- /**
166
- * The original error thrown from a field resolver during execution.
167
- */
168
- /**
169
- * Extension fields to add to the formatted error.
170
- */
171
- /**
172
- * @deprecated Please use the `GraphQLErrorOptions` constructor overload instead.
173
- */
174
- constructor(t, ...s) {
175
- var a, r, o;
176
- const { nodes: i, source: c, positions: l, path: u, originalError: p, extensions: v } = us(s);
177
- super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = p ?? void 0, this.nodes = lt(
178
- Array.isArray(i) ? i : i ? [i] : void 0
179
- );
180
- const f = lt(
181
- (a = this.nodes) === null || a === void 0 ? void 0 : a.map((m) => m.loc).filter((m) => m != null)
182
- );
183
- this.source = c ?? (f == null || (r = f[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? f?.map((m) => m.start), this.locations = l && c ? l.map((m) => Se(c, m)) : f?.map((m) => Se(m.source, m.start));
184
- const x = is(
185
- p?.extensions
186
- ) ? p?.extensions : void 0;
187
- this.extensions = (o = v ?? x) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
188
- message: {
189
- writable: !0,
190
- enumerable: !0
191
- },
192
- name: {
193
- enumerable: !1
194
- },
195
- nodes: {
196
- enumerable: !1
197
- },
198
- source: {
199
- enumerable: !1
200
- },
201
- positions: {
202
- enumerable: !1
203
- },
204
- originalError: {
205
- enumerable: !1
206
- }
207
- }), p != null && p.stack ? Object.defineProperty(this, "stack", {
208
- value: p.stack,
209
- writable: !0,
210
- configurable: !0
211
- }) : Error.captureStackTrace ? Error.captureStackTrace(this, Be) : Object.defineProperty(this, "stack", {
212
- value: Error().stack,
213
- writable: !0,
214
- configurable: !0
215
- });
216
- }
217
- get [Symbol.toStringTag]() {
218
- return "GraphQLError";
219
- }
220
- toString() {
221
- let t = this.message;
222
- if (this.nodes)
223
- for (const s of this.nodes)
224
- s.loc && (t += `
225
-
226
- ` + ds(s.loc));
227
- else if (this.source && this.locations)
228
- for (const s of this.locations)
229
- t += `
230
-
231
- ` + Rt(this.source, s);
232
- return t;
233
- }
234
- toJSON() {
235
- const t = {
236
- message: this.message
237
- };
238
- return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
239
- }
240
- }
241
- function lt(e) {
242
- return e === void 0 || e.length === 0 ? void 0 : e;
243
- }
244
- function O(e, t, s) {
245
- return new Be(`Syntax Error: ${s}`, {
246
- source: e,
247
- positions: [t]
248
- });
249
- }
250
- class ga {
251
- /**
252
- * The character offset at which this Node begins.
253
- */
254
- /**
255
- * The character offset at which this Node ends.
256
- */
257
- /**
258
- * The Token at which this Node begins.
259
- */
260
- /**
261
- * The Token at which this Node ends.
262
- */
263
- /**
264
- * The Source document the AST represents.
265
- */
266
- constructor(t, s, a) {
267
- this.start = t.start, this.end = s.end, this.startToken = t, this.endToken = s, this.source = a;
268
- }
269
- get [Symbol.toStringTag]() {
270
- return "Location";
271
- }
272
- toJSON() {
273
- return {
274
- start: this.start,
275
- end: this.end
276
- };
277
- }
278
- }
279
- class Lt {
280
- /**
281
- * The kind of Token.
282
- */
283
- /**
284
- * The character offset at which this Node begins.
285
- */
286
- /**
287
- * The character offset at which this Node ends.
288
- */
289
- /**
290
- * The 1-indexed line number on which this Token appears.
291
- */
292
- /**
293
- * The 1-indexed column number at which this Token begins.
294
- */
295
- /**
296
- * For non-punctuation tokens, represents the interpreted value of the token.
297
- *
298
- * Note: is undefined for punctuation tokens, but typed as string for
299
- * convenience in the parser.
300
- */
301
- /**
302
- * Tokens exist as nodes in a double-linked-list amongst all tokens
303
- * including ignored tokens. <SOF> is always the first node and <EOF>
304
- * the last.
305
- */
306
- constructor(t, s, a, r, o, i) {
307
- this.kind = t, this.start = s, this.end = a, this.line = r, this.column = o, this.value = i, this.prev = null, this.next = null;
308
- }
309
- get [Symbol.toStringTag]() {
310
- return "Token";
311
- }
312
- toJSON() {
313
- return {
314
- kind: this.kind,
315
- value: this.value,
316
- line: this.line,
317
- column: this.column
318
- };
319
- }
320
- }
321
- const ms = {
322
- Name: [],
323
- Document: ["definitions"],
324
- OperationDefinition: [
325
- "name",
326
- "variableDefinitions",
327
- "directives",
328
- "selectionSet"
329
- ],
330
- VariableDefinition: ["variable", "type", "defaultValue", "directives"],
331
- Variable: ["name"],
332
- SelectionSet: ["selections"],
333
- Field: ["alias", "name", "arguments", "directives", "selectionSet"],
334
- Argument: ["name", "value"],
335
- FragmentSpread: ["name", "directives"],
336
- InlineFragment: ["typeCondition", "directives", "selectionSet"],
337
- FragmentDefinition: [
338
- "name",
339
- // Note: fragment variable definitions are deprecated and will removed in v17.0.0
340
- "variableDefinitions",
341
- "typeCondition",
342
- "directives",
343
- "selectionSet"
344
- ],
345
- IntValue: [],
346
- FloatValue: [],
347
- StringValue: [],
348
- BooleanValue: [],
349
- NullValue: [],
350
- EnumValue: [],
351
- ListValue: ["values"],
352
- ObjectValue: ["fields"],
353
- ObjectField: ["name", "value"],
354
- Directive: ["name", "arguments"],
355
- NamedType: ["name"],
356
- ListType: ["type"],
357
- NonNullType: ["type"],
358
- SchemaDefinition: ["description", "directives", "operationTypes"],
359
- OperationTypeDefinition: ["type"],
360
- ScalarTypeDefinition: ["description", "name", "directives"],
361
- ObjectTypeDefinition: [
362
- "description",
363
- "name",
364
- "interfaces",
365
- "directives",
366
- "fields"
367
- ],
368
- FieldDefinition: ["description", "name", "arguments", "type", "directives"],
369
- InputValueDefinition: [
370
- "description",
371
- "name",
372
- "type",
373
- "defaultValue",
374
- "directives"
375
- ],
376
- InterfaceTypeDefinition: [
377
- "description",
378
- "name",
379
- "interfaces",
380
- "directives",
381
- "fields"
382
- ],
383
- UnionTypeDefinition: ["description", "name", "directives", "types"],
384
- EnumTypeDefinition: ["description", "name", "directives", "values"],
385
- EnumValueDefinition: ["description", "name", "directives"],
386
- InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
387
- DirectiveDefinition: ["description", "name", "arguments", "locations"],
388
- SchemaExtension: ["directives", "operationTypes"],
389
- ScalarTypeExtension: ["name", "directives"],
390
- ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
391
- InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
392
- UnionTypeExtension: ["name", "directives", "types"],
393
- EnumTypeExtension: ["name", "directives", "values"],
394
- InputObjectTypeExtension: ["name", "directives", "fields"]
395
- }, ps = new Set(Object.keys(ms));
396
- function ya(e) {
397
- const t = e?.kind;
398
- return typeof t == "string" && ps.has(t);
399
- }
400
- var ct;
401
- (function(e) {
402
- e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
403
- })(ct || (ct = {}));
404
- function Te(e) {
405
- return e === 9 || e === 32;
406
- }
407
- function K(e) {
408
- return e >= 48 && e <= 57;
409
- }
410
- function It(e) {
411
- return e >= 97 && e <= 122 || // A-Z
412
- e >= 65 && e <= 90;
413
- }
414
- function kt(e) {
415
- return It(e) || e === 95;
416
- }
417
- function hs(e) {
418
- return It(e) || K(e) || e === 95;
419
- }
420
- function fs(e) {
421
- var t;
422
- let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
423
- for (let i = 0; i < e.length; ++i) {
424
- var o;
425
- const c = e[i], l = xs(c);
426
- l !== c.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && l < s && (s = l));
427
- }
428
- return e.map((i, c) => c === 0 ? i : i.slice(s)).slice(
429
- (t = a) !== null && t !== void 0 ? t : 0,
430
- r + 1
431
- );
432
- }
433
- function xs(e) {
434
- let t = 0;
435
- for (; t < e.length && Te(e.charCodeAt(t)); )
436
- ++t;
437
- return t;
438
- }
439
- function gs(e, t) {
440
- const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((x) => x.length === 0 || Te(x.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), u = c || l, p = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
441
- (!r || e.length > 70 || u || o || i);
442
- let v = "";
443
- const f = r && Te(e.charCodeAt(0));
444
- return (p && !f || o) && (v += `
445
- `), v += s, (p || u) && (v += `
446
- `), '"""' + v + '"""';
447
- }
448
- var h;
449
- (function(e) {
450
- e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
451
- })(h || (h = {}));
452
- class ys {
453
- /**
454
- * The previously focused non-ignored token.
455
- */
456
- /**
457
- * The currently focused non-ignored token.
458
- */
459
- /**
460
- * The (1-indexed) line containing the current token.
461
- */
462
- /**
463
- * The character offset at which the current line begins.
464
- */
465
- constructor(t) {
466
- const s = new Lt(h.SOF, 0, 0, 0, 0);
467
- this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
468
- }
469
- get [Symbol.toStringTag]() {
470
- return "Lexer";
471
- }
472
- /**
473
- * Advances the token stream to the next non-ignored token.
474
- */
475
- advance() {
476
- return this.lastToken = this.token, this.token = this.lookahead();
477
- }
478
- /**
479
- * Looks ahead and returns the next non-ignored token, but does not change
480
- * the state of Lexer.
481
- */
482
- lookahead() {
483
- let t = this.token;
484
- if (t.kind !== h.EOF)
485
- do
486
- if (t.next)
487
- t = t.next;
488
- else {
489
- const s = bs(this, t.end);
490
- t.next = s, s.prev = t, t = s;
491
- }
492
- while (t.kind === h.COMMENT);
493
- return t;
494
- }
495
- }
496
- function vs(e) {
497
- return e === h.BANG || e === h.DOLLAR || e === h.AMP || e === h.PAREN_L || e === h.PAREN_R || e === h.SPREAD || e === h.COLON || e === h.EQUALS || e === h.AT || e === h.BRACKET_L || e === h.BRACKET_R || e === h.BRACE_L || e === h.PIPE || e === h.BRACE_R;
498
- }
499
- function J(e) {
500
- return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
501
- }
502
- function me(e, t) {
503
- return Dt(e.charCodeAt(t)) && qt(e.charCodeAt(t + 1));
504
- }
505
- function Dt(e) {
506
- return e >= 55296 && e <= 56319;
507
- }
508
- function qt(e) {
509
- return e >= 56320 && e <= 57343;
510
- }
511
- function B(e, t) {
512
- const s = e.source.body.codePointAt(t);
513
- if (s === void 0)
514
- return h.EOF;
515
- if (s >= 32 && s <= 126) {
516
- const a = String.fromCodePoint(s);
517
- return a === '"' ? `'"'` : `"${a}"`;
518
- }
519
- return "U+" + s.toString(16).toUpperCase().padStart(4, "0");
520
- }
521
- function C(e, t, s, a, r) {
522
- const o = e.line, i = 1 + s - e.lineStart;
523
- return new Lt(t, s, a, o, i, r);
524
- }
525
- function bs(e, t) {
526
- const s = e.source.body, a = s.length;
527
- let r = t;
528
- for (; r < a; ) {
529
- const o = s.charCodeAt(r);
530
- switch (o) {
531
- // Ignored ::
532
- // - UnicodeBOM
533
- // - WhiteSpace
534
- // - LineTerminator
535
- // - Comment
536
- // - Comma
537
- //
538
- // UnicodeBOM :: "Byte Order Mark (U+FEFF)"
539
- //
540
- // WhiteSpace ::
541
- // - "Horizontal Tab (U+0009)"
542
- // - "Space (U+0020)"
543
- //
544
- // Comma :: ,
545
- case 65279:
546
- // <BOM>
547
- case 9:
548
- // \t
549
- case 32:
550
- // <space>
551
- case 44:
552
- ++r;
553
- continue;
554
- // LineTerminator ::
555
- // - "New Line (U+000A)"
556
- // - "Carriage Return (U+000D)" [lookahead != "New Line (U+000A)"]
557
- // - "Carriage Return (U+000D)" "New Line (U+000A)"
558
- case 10:
559
- ++r, ++e.line, e.lineStart = r;
560
- continue;
561
- case 13:
562
- s.charCodeAt(r + 1) === 10 ? r += 2 : ++r, ++e.line, e.lineStart = r;
563
- continue;
564
- // Comment
565
- case 35:
566
- return js(e, r);
567
- // Token ::
568
- // - Punctuator
569
- // - Name
570
- // - IntValue
571
- // - FloatValue
572
- // - StringValue
573
- //
574
- // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
575
- case 33:
576
- return C(e, h.BANG, r, r + 1);
577
- case 36:
578
- return C(e, h.DOLLAR, r, r + 1);
579
- case 38:
580
- return C(e, h.AMP, r, r + 1);
581
- case 40:
582
- return C(e, h.PAREN_L, r, r + 1);
583
- case 41:
584
- return C(e, h.PAREN_R, r, r + 1);
585
- case 46:
586
- if (s.charCodeAt(r + 1) === 46 && s.charCodeAt(r + 2) === 46)
587
- return C(e, h.SPREAD, r, r + 3);
588
- break;
589
- case 58:
590
- return C(e, h.COLON, r, r + 1);
591
- case 61:
592
- return C(e, h.EQUALS, r, r + 1);
593
- case 64:
594
- return C(e, h.AT, r, r + 1);
595
- case 91:
596
- return C(e, h.BRACKET_L, r, r + 1);
597
- case 93:
598
- return C(e, h.BRACKET_R, r, r + 1);
599
- case 123:
600
- return C(e, h.BRACE_L, r, r + 1);
601
- case 124:
602
- return C(e, h.PIPE, r, r + 1);
603
- case 125:
604
- return C(e, h.BRACE_R, r, r + 1);
605
- // StringValue
606
- case 34:
607
- return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? As(e, r) : ws(e, r);
608
- }
609
- if (K(o) || o === 45)
610
- return Ns(e, r, o);
611
- if (kt(o))
612
- return Os(e, r);
613
- throw O(
614
- e.source,
615
- r,
616
- o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : J(o) || me(s, r) ? `Unexpected character: ${B(e, r)}.` : `Invalid character: ${B(e, r)}.`
617
- );
618
- }
619
- return C(e, h.EOF, a, a);
620
- }
621
- function js(e, t) {
622
- const s = e.source.body, a = s.length;
623
- let r = t + 1;
624
- for (; r < a; ) {
625
- const o = s.charCodeAt(r);
626
- if (o === 10 || o === 13)
627
- break;
628
- if (J(o))
629
- ++r;
630
- else if (me(s, r))
631
- r += 2;
632
- else
633
- break;
634
- }
635
- return C(
636
- e,
637
- h.COMMENT,
638
- t,
639
- r,
640
- s.slice(t + 1, r)
641
- );
642
- }
643
- function Ns(e, t, s) {
644
- const a = e.source.body;
645
- let r = t, o = s, i = !1;
646
- if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
647
- if (o = a.charCodeAt(++r), K(o))
648
- throw O(
649
- e.source,
650
- r,
651
- `Invalid number, unexpected digit after 0: ${B(
652
- e,
653
- r
654
- )}.`
655
- );
656
- } else
657
- r = ve(e, r, o), o = a.charCodeAt(r);
658
- if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = ve(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = ve(e, r, o), o = a.charCodeAt(r)), o === 46 || kt(o))
659
- throw O(
660
- e.source,
661
- r,
662
- `Invalid number, expected digit but got: ${B(
663
- e,
664
- r
665
- )}.`
666
- );
667
- return C(
668
- e,
669
- i ? h.FLOAT : h.INT,
670
- t,
671
- r,
672
- a.slice(t, r)
673
- );
674
- }
675
- function ve(e, t, s) {
676
- if (!K(s))
677
- throw O(
678
- e.source,
679
- t,
680
- `Invalid number, expected digit but got: ${B(
681
- e,
682
- t
683
- )}.`
684
- );
685
- const a = e.source.body;
686
- let r = t + 1;
687
- for (; K(a.charCodeAt(r)); )
688
- ++r;
689
- return r;
690
- }
691
- function ws(e, t) {
692
- const s = e.source.body, a = s.length;
693
- let r = t + 1, o = r, i = "";
694
- for (; r < a; ) {
695
- const c = s.charCodeAt(r);
696
- if (c === 34)
697
- return i += s.slice(o, r), C(e, h.STRING, t, r + 1, i);
698
- if (c === 92) {
699
- i += s.slice(o, r);
700
- const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Cs(e, r) : Ss(e, r) : Ts(e, r);
701
- i += l.value, r += l.size, o = r;
702
- continue;
703
- }
704
- if (c === 10 || c === 13)
705
- break;
706
- if (J(c))
707
- ++r;
708
- else if (me(s, r))
709
- r += 2;
710
- else
711
- throw O(
712
- e.source,
713
- r,
714
- `Invalid character within String: ${B(
715
- e,
716
- r
717
- )}.`
718
- );
719
- }
720
- throw O(e.source, r, "Unterminated string.");
721
- }
722
- function Cs(e, t) {
723
- const s = e.source.body;
724
- let a = 0, r = 3;
725
- for (; r < 12; ) {
726
- const o = s.charCodeAt(t + r++);
727
- if (o === 125) {
728
- if (r < 5 || !J(a))
729
- break;
730
- return {
731
- value: String.fromCodePoint(a),
732
- size: r
733
- };
734
- }
735
- if (a = a << 4 | W(o), a < 0)
736
- break;
737
- }
738
- throw O(
739
- e.source,
740
- t,
741
- `Invalid Unicode escape sequence: "${s.slice(
742
- t,
743
- t + r
744
- )}".`
745
- );
746
- }
747
- function Ss(e, t) {
748
- const s = e.source.body, a = dt(s, t + 2);
749
- if (J(a))
750
- return {
751
- value: String.fromCodePoint(a),
752
- size: 6
753
- };
754
- if (Dt(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
755
- const r = dt(s, t + 8);
756
- if (qt(r))
757
- return {
758
- value: String.fromCodePoint(a, r),
759
- size: 12
760
- };
761
- }
762
- throw O(
763
- e.source,
764
- t,
765
- `Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
766
- );
767
- }
768
- function dt(e, t) {
769
- return W(e.charCodeAt(t)) << 12 | W(e.charCodeAt(t + 1)) << 8 | W(e.charCodeAt(t + 2)) << 4 | W(e.charCodeAt(t + 3));
770
- }
771
- function W(e) {
772
- return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
773
- }
774
- function Ts(e, t) {
775
- const s = e.source.body;
776
- switch (s.charCodeAt(t + 1)) {
777
- case 34:
778
- return {
779
- value: '"',
780
- size: 2
781
- };
782
- case 92:
783
- return {
784
- value: "\\",
785
- size: 2
786
- };
787
- case 47:
788
- return {
789
- value: "/",
790
- size: 2
791
- };
792
- case 98:
793
- return {
794
- value: "\b",
795
- size: 2
796
- };
797
- case 102:
798
- return {
799
- value: "\f",
800
- size: 2
801
- };
802
- case 110:
803
- return {
804
- value: `
805
- `,
806
- size: 2
807
- };
808
- case 114:
809
- return {
810
- value: "\r",
811
- size: 2
812
- };
813
- case 116:
814
- return {
815
- value: " ",
816
- size: 2
817
- };
818
- }
819
- throw O(
820
- e.source,
821
- t,
822
- `Invalid character escape sequence: "${s.slice(
823
- t,
824
- t + 2
825
- )}".`
826
- );
827
- }
828
- function As(e, t) {
829
- const s = e.source.body, a = s.length;
830
- let r = e.lineStart, o = t + 3, i = o, c = "";
831
- const l = [];
832
- for (; o < a; ) {
833
- const u = s.charCodeAt(o);
834
- if (u === 34 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34) {
835
- c += s.slice(i, o), l.push(c);
836
- const p = C(
837
- e,
838
- h.BLOCK_STRING,
839
- t,
840
- o + 3,
841
- // Return a string of the lines joined with U+000A.
842
- fs(l).join(`
843
- `)
844
- );
845
- return e.line += l.length - 1, e.lineStart = r, p;
846
- }
847
- if (u === 92 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34 && s.charCodeAt(o + 3) === 34) {
848
- c += s.slice(i, o), i = o + 1, o += 4;
849
- continue;
850
- }
851
- if (u === 10 || u === 13) {
852
- c += s.slice(i, o), l.push(c), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, c = "", i = o, r = o;
853
- continue;
854
- }
855
- if (J(u))
856
- ++o;
857
- else if (me(s, o))
858
- o += 2;
859
- else
860
- throw O(
861
- e.source,
862
- o,
863
- `Invalid character within String: ${B(
864
- e,
865
- o
866
- )}.`
867
- );
868
- }
869
- throw O(e.source, o, "Unterminated string.");
870
- }
871
- function Os(e, t) {
872
- const s = e.source.body, a = s.length;
873
- let r = t + 1;
874
- for (; r < a; ) {
875
- const o = s.charCodeAt(r);
876
- if (hs(o))
877
- ++r;
878
- else
879
- break;
880
- }
881
- return C(
882
- e,
883
- h.NAME,
884
- t,
885
- r,
886
- s.slice(t, r)
887
- );
888
- }
889
- const Ps = 10, Vt = 2;
890
- function Ft(e) {
891
- return pe(e, []);
892
- }
893
- function pe(e, t) {
894
- switch (typeof e) {
895
- case "string":
896
- return JSON.stringify(e);
897
- case "function":
898
- return e.name ? `[function ${e.name}]` : "[function]";
899
- case "object":
900
- return Es(e, t);
901
- default:
902
- return String(e);
903
- }
904
- }
905
- function Es(e, t) {
906
- if (e === null)
907
- return "null";
908
- if (t.includes(e))
909
- return "[Circular]";
910
- const s = [...t, e];
911
- if ($s(e)) {
912
- const a = e.toJSON();
913
- if (a !== e)
914
- return typeof a == "string" ? a : pe(a, s);
915
- } else if (Array.isArray(e))
916
- return Ls(e, s);
917
- return Rs(e, s);
918
- }
919
- function $s(e) {
920
- return typeof e.toJSON == "function";
921
- }
922
- function Rs(e, t) {
923
- const s = Object.entries(e);
924
- return s.length === 0 ? "{}" : t.length > Vt ? "[" + Is(e) + "]" : "{ " + s.map(
925
- ([r, o]) => r + ": " + pe(o, t)
926
- ).join(", ") + " }";
927
- }
928
- function Ls(e, t) {
929
- if (e.length === 0)
930
- return "[]";
931
- if (t.length > Vt)
932
- return "[Array]";
933
- const s = Math.min(Ps, e.length), a = e.length - s, r = [];
934
- for (let o = 0; o < s; ++o)
935
- r.push(pe(e[o], t));
936
- return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
937
- }
938
- function Is(e) {
939
- const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
940
- if (t === "Object" && typeof e.constructor == "function") {
941
- const s = e.constructor.name;
942
- if (typeof s == "string" && s !== "")
943
- return s;
944
- }
945
- return t;
946
- }
947
- const ks = globalThis.process && // eslint-disable-next-line no-undef
948
- process.env.NODE_ENV === "production", Ds = (
949
- /* c8 ignore next 6 */
950
- // FIXME: https://github.com/graphql/graphql-js/issues/2317
951
- ks ? function(t, s) {
952
- return t instanceof s;
953
- } : function(t, s) {
954
- if (t instanceof s)
955
- return !0;
956
- if (typeof t == "object" && t !== null) {
957
- var a;
958
- const r = s.prototype[Symbol.toStringTag], o = (
959
- // We still need to support constructor's name to detect conflicts with older versions of this library.
960
- Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
961
- );
962
- if (r === o) {
963
- const i = Ft(t);
964
- throw new Error(`Cannot use ${r} "${i}" from another module or realm.
965
-
966
- Ensure that there is only one instance of "graphql" in the node_modules
967
- directory. If different versions of "graphql" are the dependencies of other
968
- relied on modules, use "resolutions" to ensure only one version is installed.
969
-
970
- https://yarnpkg.com/en/docs/selective-version-resolutions
971
-
972
- Duplicate "graphql" modules cannot be used at the same time since different
973
- versions may have different capabilities and behavior. The data from one
974
- version used in the function from another could produce confusing and
975
- spurious results.`);
976
- }
977
- }
978
- return !1;
979
- }
980
- );
981
- class Bt {
982
- constructor(t, s = "GraphQL request", a = {
983
- line: 1,
984
- column: 1
985
- }) {
986
- typeof t == "string" || ye(!1, `Body must be a string. Received: ${Ft(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || ye(
987
- !1,
988
- "line in locationOffset is 1-indexed and must be positive."
989
- ), this.locationOffset.column > 0 || ye(
990
- !1,
991
- "column in locationOffset is 1-indexed and must be positive."
992
- );
993
- }
994
- get [Symbol.toStringTag]() {
995
- return "Source";
996
- }
997
- }
998
- function qs(e) {
999
- return Ds(e, Bt);
1000
- }
1001
- function Vs(e) {
1002
- const t = qs(e) ? e : new Bt(e), s = t.body, a = new ys(t);
1003
- let r = "", o = !1;
1004
- for (; a.advance().kind !== h.EOF; ) {
1005
- const i = a.token, c = i.kind, l = !vs(i.kind);
1006
- o && (l || i.kind === h.SPREAD) && (r += " ");
1007
- const u = s.slice(i.start, i.end);
1008
- c === h.BLOCK_STRING ? r += gs(i.value, {
1009
- minimize: !0
1010
- }) : r += u, o = l;
1011
- }
1012
- return r;
1013
- }
1014
- const zt = Ct(
1015
- void 0
1016
- ), va = ({
1017
- children: e,
1018
- client: t
1019
- }) => /* @__PURE__ */ n.jsx(zt.Provider, { value: t, children: e }), _t = (e, t, ...[s]) => ({
1020
- queryFn: () => e.fetch(t, s),
1021
- queryKey: [Vs(t.toString()), s]
1022
- }), Fs = (e, ...[t]) => {
1023
- const s = Rn(zt);
1024
- if (s === void 0)
1025
- throw new Error("useGraphQL must be used within a GraphQLProvider");
1026
- return _t(s, e, ...t === void 0 ? [] : [t]);
1027
- };
1028
- class z extends String {
1029
- __apiType;
1030
- value;
1031
- __meta__;
1032
- constructor(t, s) {
1033
- super(t), this.value = t, this.__meta__ = s;
1034
- }
1035
- toString() {
1036
- return this.value;
1037
- }
1038
- }
1039
- const Bs = new z(
1040
- `
1041
- fragment OperationsFragment on OperationItem {
1042
- slug
1043
- summary
1044
- method
1045
- description
1046
- operationId
1047
- contentTypes
1048
- path
1049
- deprecated
1050
- extensions
1051
- parameters {
1052
- name
1053
- in
1054
- description
1055
- required
1056
- schema
1057
- style
1058
- explode
1059
- examples {
1060
- name
1061
- description
1062
- externalValue
1063
- value
1064
- summary
1065
- }
1066
- }
1067
- requestBody {
1068
- content {
1069
- mediaType
1070
- encoding {
1071
- name
1072
- }
1073
- examples {
1074
- name
1075
- description
1076
- externalValue
1077
- value
1078
- summary
1079
- }
1080
- schema
1081
- }
1082
- description
1083
- required
1084
- }
1085
- responses {
1086
- statusCode
1087
- links
1088
- description
1089
- content {
1090
- examples {
1091
- name
1092
- description
1093
- externalValue
1094
- value
1095
- summary
1096
- }
1097
- mediaType
1098
- encoding {
1099
- name
1100
- }
1101
- schema
1102
- }
1103
- }
1104
- }
1105
- `,
1106
- { fragmentName: "OperationsFragment" }
1107
- ), zs = new z(`
1108
- query ServersQuery($input: JSON!, $type: SchemaType!) {
1109
- schema(input: $input, type: $type) {
1110
- url
1111
- servers {
1112
- url
1113
- }
1114
- }
1115
- }
1116
- `), _s = new z(`
1117
- query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1118
- schema(input: $input, type: $type) {
1119
- openapi
1120
- }
1121
- }
1122
- `), Ms = new z(`
1123
- query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1124
- schema(input: $input, type: $type) {
1125
- servers {
1126
- url
1127
- }
1128
- description
1129
- summary
1130
- title
1131
- url
1132
- version
1133
- tag(slug: $tag, untagged: $untagged) {
1134
- name
1135
- description
1136
- operations {
1137
- slug
1138
- ...OperationsFragment
1139
- }
1140
- next {
1141
- name
1142
- slug
1143
- }
1144
- prev {
1145
- name
1146
- slug
1147
- }
1148
- }
1149
- }
1150
- }
1151
- fragment OperationsFragment on OperationItem {
1152
- slug
1153
- summary
1154
- method
1155
- description
1156
- operationId
1157
- contentTypes
1158
- path
1159
- deprecated
1160
- extensions
1161
- parameters {
1162
- name
1163
- in
1164
- description
1165
- required
1166
- schema
1167
- style
1168
- explode
1169
- examples {
1170
- name
1171
- description
1172
- externalValue
1173
- value
1174
- summary
1175
- }
1176
- }
1177
- requestBody {
1178
- content {
1179
- mediaType
1180
- encoding {
1181
- name
1182
- }
1183
- examples {
1184
- name
1185
- description
1186
- externalValue
1187
- value
1188
- summary
1189
- }
1190
- schema
1191
- }
1192
- description
1193
- required
1194
- }
1195
- responses {
1196
- statusCode
1197
- links
1198
- description
1199
- content {
1200
- examples {
1201
- name
1202
- description
1203
- externalValue
1204
- value
1205
- summary
1206
- }
1207
- mediaType
1208
- encoding {
1209
- name
1210
- }
1211
- schema
1212
- }
1213
- }
1214
- }`), Us = new z(`
1215
- query GetSchemas($input: JSON!, $type: SchemaType!) {
1216
- schema(input: $input, type: $type) {
1217
- title
1218
- description
1219
- summary
1220
- components {
1221
- schemas {
1222
- name
1223
- schema
1224
- extensions
1225
- }
1226
- }
1227
- }
1228
- }
1229
- `), Gs = new z(`
1230
- query getServerQuery($input: JSON!, $type: SchemaType!) {
1231
- schema(input: $input, type: $type) {
1232
- url
1233
- servers {
1234
- url
1235
- }
1236
- }
1237
- }
1238
- `), Hs = new z(`
1239
- query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
1240
- schema(input: $input, type: $type) {
1241
- tags {
1242
- slug
1243
- name
1244
- extensions
1245
- operations {
1246
- summary
1247
- slug
1248
- method
1249
- operationId
1250
- path
1251
- }
1252
- }
1253
- components {
1254
- schemas {
1255
- __typename
1256
- }
1257
- }
1258
- }
1259
- }
1260
- `), Qs = {
1261
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": zs,
1262
- "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": Bs,
1263
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": _s,
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": Ms,
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": Us,
1266
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Gs,
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": Hs
1268
- };
1269
- function Js(e) {
1270
- return Qs[e] ?? {};
1271
- }
1272
- const Ws = At(
1273
- "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
1274
- {
1275
- variants: {
1276
- variant: {
1277
- default: "bg-background text-foreground",
1278
- destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
1279
- }
1280
- },
1281
- defaultVariants: {
1282
- variant: "default"
1283
- }
1284
- }
1285
- ), Ae = b.forwardRef(({ className: e, variant: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1286
- "div",
1287
- {
1288
- ref: a,
1289
- role: "alert",
1290
- className: g(Ws({ variant: t }), e),
1291
- ...s
1292
- }
1293
- ));
1294
- Ae.displayName = "Alert";
1295
- const Oe = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1296
- "h5",
1297
- {
1298
- ref: s,
1299
- className: g("mb-1 font-medium leading-none tracking-tight", e),
1300
- ...t
1301
- }
1302
- ));
1303
- Oe.displayName = "AlertTitle";
1304
- const Pe = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1305
- "div",
1306
- {
1307
- ref: s,
1308
- className: g("text-sm [&_p]:leading-relaxed", e),
1309
- ...t
1310
- }
1311
- ));
1312
- Pe.displayName = "AlertDescription";
1313
- const Xs = ({
1314
- path: e,
1315
- renderParam: t
1316
- }) => {
1317
- let s = 0;
1318
- return e.split("/").map((a, r, o) => {
1319
- const i = Array.from(a.matchAll(/{([^}]+)}/g)), c = [];
1320
- let l = 0;
1321
- return i.forEach((u) => {
1322
- const [p, v] = u;
1323
- if (!v) return;
1324
- const f = u.index;
1325
- f > l && c.push(
1326
- /* @__PURE__ */ n.jsx(q, { children: a.slice(l, f) }, `text-${l}-${f}`)
1327
- ), c.push(
1328
- /* @__PURE__ */ n.jsx(q, { children: t({ name: v, originalValue: p, index: s++ }) }, `param-${v}`)
1329
- ), l = f + p.length;
1330
- }), l < a.length && c.push(
1331
- /* @__PURE__ */ n.jsx(q, { children: a.slice(l) }, `text-${l}-${a.length}`)
1332
- ), // eslint-disable-next-line react/no-array-index-key
1333
- /* @__PURE__ */ n.jsxs(q, { children: [
1334
- c,
1335
- r < o.length - 1 && "/",
1336
- /* @__PURE__ */ n.jsx("wbr", {})
1337
- ] }, `${a}-${r}`);
1338
- });
1339
- }, Ee = w.Root, $e = w.Value, ie = b.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1340
- w.Trigger,
1341
- {
1342
- ref: a,
1343
- className: g(
1344
- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1345
- e
1346
- ),
1347
- ...s,
1348
- children: [
1349
- /* @__PURE__ */ n.jsx("span", { className: "truncate", children: t }),
1350
- /* @__PURE__ */ n.jsx(w.Icon, { asChild: !0, children: /* @__PURE__ */ n.jsx(vt, { className: "shrink-0 h-4 w-4 opacity-50" }) })
1351
- ]
1352
- }
1353
- ));
1354
- ie.displayName = w.Trigger.displayName;
1355
- const Mt = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1356
- w.ScrollUpButton,
1357
- {
1358
- ref: s,
1359
- className: g(
1360
- "flex cursor-default items-center justify-center py-1",
1361
- e
1362
- ),
1363
- ...t,
1364
- children: /* @__PURE__ */ n.jsx(hn, { className: "h-4 w-4" })
1365
- }
1366
- ));
1367
- Mt.displayName = w.ScrollUpButton.displayName;
1368
- const Ut = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1369
- w.ScrollDownButton,
1370
- {
1371
- ref: s,
1372
- className: g(
1373
- "flex cursor-default items-center justify-center py-1",
1374
- e
1375
- ),
1376
- ...t,
1377
- children: /* @__PURE__ */ n.jsx(vt, { className: "h-4 w-4" })
1378
- }
1379
- ));
1380
- Ut.displayName = w.ScrollDownButton.displayName;
1381
- const le = b.forwardRef(({ className: e, children: t, position: s = "popper", ...a }, r) => /* @__PURE__ */ n.jsx(w.Portal, { children: /* @__PURE__ */ n.jsxs(
1382
- w.Content,
1383
- {
1384
- ref: r,
1385
- className: g(
1386
- "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1387
- s === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
1388
- e
1389
- ),
1390
- position: s,
1391
- ...a,
1392
- children: [
1393
- /* @__PURE__ */ n.jsx(Mt, {}),
1394
- /* @__PURE__ */ n.jsx(
1395
- w.Viewport,
1396
- {
1397
- className: g(
1398
- s === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",
1399
- "divide-y"
1400
- ),
1401
- children: t
1402
- }
1403
- ),
1404
- /* @__PURE__ */ n.jsx(Ut, {})
1405
- ]
1406
- }
1407
- ) }));
1408
- le.displayName = w.Content.displayName;
1409
- const Zs = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1410
- w.Label,
1411
- {
1412
- ref: s,
1413
- className: g("py-1.5 pl-8 pr-2 text-sm font-semibold", e),
1414
- ...t
1415
- }
1416
- ));
1417
- Zs.displayName = w.Label.displayName;
1418
- const G = b.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1419
- w.Item,
1420
- {
1421
- ref: a,
1422
- className: g(
1423
- "relative flex w-full cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1424
- e
1425
- ),
1426
- ...s,
1427
- children: [
1428
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(w.ItemIndicator, { children: /* @__PURE__ */ n.jsx(bt, { className: "h-4 w-4" }) }) }),
1429
- /* @__PURE__ */ n.jsx(w.ItemText, { children: t })
1430
- ]
1431
- }
1432
- ));
1433
- G.displayName = w.Item.displayName;
1434
- const Ys = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1435
- w.Separator,
1436
- {
1437
- ref: s,
1438
- className: g("-mx-1 my-1 h-px bg-muted", e),
1439
- ...t
1440
- }
1441
- ));
1442
- Ys.displayName = w.Separator.displayName;
1443
- const Gt = b.forwardRef(
1444
- ({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1445
- "textarea",
1446
- {
1447
- className: g(
1448
- "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1449
- e
1450
- ),
1451
- ref: s,
1452
- ...t
1453
- }
1454
- )
1455
- );
1456
- Gt.displayName = "Textarea";
1457
- const be = (e) => Math.abs(
1458
- isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
1459
- ), je = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${be(t) + be(s)}`)) : be(e), ut = (e, t = {}) => {
1460
- const s = (3 * je(e) + 2 * je(e) + je(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
1461
- return `${s}deg ${a}% ${r}%`;
1462
- }, Ne = "data-linked-param", Ks = (e) => {
1463
- const { resolvedTheme: t } = Un();
1464
- return {
1465
- text: ut(
1466
- e,
1467
- t === "light" ? { saturation: 95, lightness: 38 } : {}
1468
- ),
1469
- background: ut(
1470
- e,
1471
- t === "light" ? { saturation: 85, lightness: 40 } : {}
1472
- )
1473
- };
1474
- }, Ht = ({
1475
- name: e,
1476
- className: t,
1477
- slug: s,
1478
- title: a,
1479
- children: r,
1480
- onClick: o
1481
- }) => {
1482
- const i = Q(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: u, background: p } = Ks(l), v = `hsl(${u} / 100%)`, f = `hsl(${p} / 10%)`, x = `hsl(${p} / 50%)`;
1483
- return ae(() => {
1484
- if (!c || !i.current) return;
1485
- const m = () => {
1486
- document.querySelectorAll(`[${Ne}="${c}"]`).forEach((N) => {
1487
- N instanceof HTMLElement && (N.dataset.active = "true");
1488
- });
1489
- }, y = () => {
1490
- document.querySelectorAll(`[${Ne}="${c}"]`).forEach((N) => {
1491
- N instanceof HTMLElement && (N.dataset.active = "false");
1492
- });
1493
- }, S = i.current;
1494
- return S.addEventListener("mouseenter", m), S.addEventListener("mouseleave", y), () => {
1495
- S.removeEventListener("mouseenter", m), S.removeEventListener("mouseleave", y);
1496
- };
1497
- }, [c]), /* @__PURE__ */ n.jsx(
1498
- "span",
1499
- {
1500
- [Ne]: c,
1501
- className: g(
1502
- // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
1503
- "relative transition-all duration-100 rounded-lg",
1504
- "border border-(--border-color) p-0.5 text-(--param-color) bg-(--background-color)",
1505
- "data-[active=true]:border-(--param-color) data-[active=true]:shadow-sm data-[active=true]:bottom-px",
1506
- t
1507
- ),
1508
- title: a,
1509
- suppressHydrationWarning: !0,
1510
- ref: i,
1511
- onClick: o,
1512
- style: {
1513
- "--param-color": v,
1514
- "--border-color": x,
1515
- "--background-color": f
1516
- },
1517
- children: r ?? e
1518
- }
1519
- );
1520
- }, er = Nt()(
1521
- wt(
1522
- (e) => ({
1523
- selectedServer: void 0,
1524
- setSelectedServer: (t) => e({ selectedServer: t })
1525
- }),
1526
- { name: "zudoku-selected-server" }
1527
- )
1528
- ), tr = (e) => {
1529
- const { selectedServer: t, setSelectedServer: s } = er();
1530
- return { selectedServer: Ln(
1531
- () => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
1532
- [t, e]
1533
- ), setSelectedServer: s };
1534
- }, nr = (e, t, s) => {
1535
- const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
1536
- const i = o.replace(/[:{}]/g, "");
1537
- return s.pathParams.find((l) => l.name === i)?.value ?? o;
1538
- }), r = new URL(
1539
- a.replace(/^\//, ""),
1540
- e.endsWith("/") ? e : `${e}/`
1541
- );
1542
- return s.queryParams.filter((o) => o.active).forEach((o) => {
1543
- r.searchParams.set(o.name, o.value);
1544
- }), r;
1545
- }, Qt = j.Root, Jt = j.Trigger, sr = j.Group, rr = b.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1546
- j.SubTrigger,
1547
- {
1548
- ref: r,
1549
- className: g(
1550
- "flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent",
1551
- t && "pl-8",
1552
- e
1553
- ),
1554
- ...a,
1555
- children: [
1556
- s,
1557
- /* @__PURE__ */ n.jsx(X, { className: "ml-auto h-4 w-4" })
1558
- ]
1559
- }
1560
- ));
1561
- rr.displayName = j.SubTrigger.displayName;
1562
- const ar = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1563
- j.SubContent,
1564
- {
1565
- ref: s,
1566
- className: g(
1567
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1568
- e
1569
- ),
1570
- ...t
1571
- }
1572
- ));
1573
- ar.displayName = j.SubContent.displayName;
1574
- const ze = b.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(j.Portal, { children: /* @__PURE__ */ n.jsx(
1575
- j.Content,
1576
- {
1577
- ref: a,
1578
- sideOffset: t,
1579
- className: g(
1580
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1581
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1582
- e
1583
- ),
1584
- ...s
1585
- }
1586
- ) }));
1587
- ze.displayName = j.Content.displayName;
1588
- const _e = b.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1589
- j.Item,
1590
- {
1591
- ref: a,
1592
- className: g(
1593
- "relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1594
- t && "pl-8",
1595
- e
1596
- ),
1597
- ...s
1598
- }
1599
- ));
1600
- _e.displayName = j.Item.displayName;
1601
- const or = b.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1602
- j.CheckboxItem,
1603
- {
1604
- ref: r,
1605
- className: g(
1606
- "relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1607
- e
1608
- ),
1609
- checked: s,
1610
- ...a,
1611
- children: [
1612
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(j.ItemIndicator, { children: /* @__PURE__ */ n.jsx(jt, { className: "h-4 w-4" }) }) }),
1613
- t
1614
- ]
1615
- }
1616
- ));
1617
- or.displayName = j.CheckboxItem.displayName;
1618
- const ir = b.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1619
- j.RadioItem,
1620
- {
1621
- ref: a,
1622
- className: g(
1623
- "relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1624
- e
1625
- ),
1626
- ...s,
1627
- children: [
1628
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(j.ItemIndicator, { children: /* @__PURE__ */ n.jsx(fn, { className: "h-4 w-4 fill-current" }) }) }),
1629
- t
1630
- ]
1631
- }
1632
- ));
1633
- ir.displayName = j.RadioItem.displayName;
1634
- const Wt = b.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1635
- j.Label,
1636
- {
1637
- ref: a,
1638
- className: g(
1639
- "px-2 py-1.5 text-sm font-semibold",
1640
- t && "pl-8",
1641
- e
1642
- ),
1643
- ...s
1644
- }
1645
- ));
1646
- Wt.displayName = j.Label.displayName;
1647
- const Xt = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1648
- j.Separator,
1649
- {
1650
- ref: s,
1651
- className: g("-mx-1 my-1 h-px bg-muted", e),
1652
- ...t
1653
- }
1654
- ));
1655
- Xt.displayName = j.Separator.displayName;
1656
- const lr = ({
1657
- examples: e,
1658
- onSelect: t
1659
- }) => /* @__PURE__ */ n.jsxs(Qt, { children: [
1660
- /* @__PURE__ */ n.jsx(Jt, { asChild: !0, children: /* @__PURE__ */ n.jsx(F, { variant: "outline", children: "Use Example" }) }),
1661
- /* @__PURE__ */ n.jsx(ze, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1662
- /* @__PURE__ */ n.jsx(Wt, { children: s.mediaType }),
1663
- /* @__PURE__ */ n.jsx(Xt, {}),
1664
- /* @__PURE__ */ n.jsx(sr, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1665
- _e,
1666
- {
1667
- onSelect: () => t(a, s.mediaType),
1668
- children: /* @__PURE__ */ n.jsx(
1669
- "span",
1670
- {
1671
- className: "line-clamp-1",
1672
- title: a.summary ?? a.name,
1673
- children: a.summary ?? a.name
1674
- }
1675
- )
1676
- },
1677
- a.name
1678
- )) })
1679
- ] }, s.mediaType)) })
1680
- ] }), he = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1681
- Ce.Root,
1682
- {
1683
- ref: s,
1684
- className: g(
1685
- "peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",
1686
- "border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
1687
- e
1688
- ),
1689
- ...t,
1690
- children: /* @__PURE__ */ n.jsx(
1691
- Ce.Indicator,
1692
- {
1693
- className: g("flex items-center justify-center text-current"),
1694
- children: /* @__PURE__ */ n.jsx(bt, { className: "h-4 w-4" })
1695
- }
1696
- )
1697
- }
1698
- ));
1699
- he.displayName = Ce.Root.displayName;
1700
- const cr = oe.Root, Zt = b.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(oe.Portal, { children: /* @__PURE__ */ n.jsx(
1701
- oe.Content,
1702
- {
1703
- ref: r,
1704
- align: t,
1705
- sideOffset: s,
1706
- className: g(
1707
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1708
- e
1709
- ),
1710
- ...a
1711
- }
1712
- ) }));
1713
- Zt.displayName = oe.Content.displayName;
1714
- const dr = ({
1715
- value: e,
1716
- options: t,
1717
- onChange: s,
1718
- className: a,
1719
- placeholder: r = "Enter value",
1720
- onEnterPress: o,
1721
- ref: i
1722
- }) => {
1723
- const [c, l] = L(!1), [u, p] = L(!1), v = Hn((x) => x.filtered.count), f = Q(null);
1724
- return /* @__PURE__ */ n.jsxs(cr, { open: c, children: [
1725
- /* @__PURE__ */ n.jsx(Gn, { children: /* @__PURE__ */ n.jsx(
1726
- Jn,
1727
- {
1728
- ref: (x) => {
1729
- f.current = x, typeof i == "function" ? i(x) : i && (i.current = x);
1730
- },
1731
- value: e,
1732
- placeholder: r,
1733
- className: g("h-9 bg-transparent", a),
1734
- onFocus: () => l(!0),
1735
- onBlur: () => {
1736
- u || l(!1);
1737
- },
1738
- onKeyDown: (x) => {
1739
- x.key === "Enter" && (l(!1), f.current?.blur(), o?.(x));
1740
- },
1741
- onValueChange: (x) => s(x)
1742
- }
1743
- ) }),
1744
- /* @__PURE__ */ n.jsx(
1745
- Zt,
1746
- {
1747
- onMouseEnter: () => p(!0),
1748
- onMouseLeave: () => p(!1),
1749
- onOpenAutoFocus: (x) => x.preventDefault(),
1750
- className: g("p-0 w-(--radix-popover-trigger-width)", {
1751
- "border-0": v === 0
1752
- }),
1753
- align: "start",
1754
- side: "bottom",
1755
- onWheel: (x) => {
1756
- x.stopPropagation();
1757
- },
1758
- onTouchMove: (x) => {
1759
- x.stopPropagation();
1760
- },
1761
- children: /* @__PURE__ */ n.jsx(Wn, { className: "max-h-[140px]", children: t.map((x) => /* @__PURE__ */ n.jsx(
1762
- Xn,
1763
- {
1764
- value: x,
1765
- onSelect: (m) => {
1766
- s(m), l(!1);
1767
- },
1768
- className: "cursor-pointer",
1769
- children: x
1770
- },
1771
- x
1772
- )) })
1773
- }
1774
- )
1775
- ] });
1776
- }, ce = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(Qn, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(dr, { ...t }) }), Me = (e, t) => {
1777
- const s = b.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1778
- const c = r ? Yn : e;
1779
- return b.createElement(c, {
1780
- ...o,
1781
- ref: i,
1782
- className: typeof t == "function" ? t({ className: a }) : g(t, a)
1783
- });
1784
- });
1785
- return s.displayName = `VariantComponent(${e})`, s;
1786
- }, Ue = Me(
1787
- "div",
1788
- "grid grid-cols-[2fr_3fr] gap-2 items-center"
1789
- ), Ge = Me(
1790
- "div",
1791
- "group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
1792
- ), ur = Object.freeze([
1793
- "Accept",
1794
- "Accept-Encoding",
1795
- "Accept-Language",
1796
- "Authorization",
1797
- "Cache-Control",
1798
- "Connection",
1799
- "Content-Disposition",
1800
- "Content-Encoding",
1801
- "Content-Language",
1802
- "Content-Length",
1803
- "Content-Range",
1804
- "Content-Security-Policy",
1805
- "Content-Type",
1806
- "Cookie",
1807
- "Date",
1808
- "ETag",
1809
- "Expires",
1810
- "Host",
1811
- "If-Modified-Since",
1812
- "Location",
1813
- "Origin",
1814
- "Pragma",
1815
- "Referer",
1816
- "Set-Cookie",
1817
- "User-Agent",
1818
- "X-Requested-With"
1819
- ]), mr = ({
1820
- control: e,
1821
- headers: t
1822
- }) => {
1823
- const { fields: s, append: a, remove: r } = De({
1824
- control: e,
1825
- name: "headers"
1826
- }), { setValue: o, watch: i } = qe(), c = Q([]), l = Q([]), u = i("headers"), p = In(() => {
1827
- a({ name: "", value: "", active: !1 });
1828
- }, [a]);
1829
- ae(() => {
1830
- u.length === 0 && p();
1831
- }, [u, p]);
1832
- const v = (m) => {
1833
- c.current[m]?.focus();
1834
- }, f = (m) => {
1835
- p(), requestAnimationFrame(() => l.current[m + 1]?.focus());
1836
- }, x = t.filter((m) => !u.some((y) => y.name === m.name)).map(({ name: m }) => m);
1837
- return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
1838
- /* @__PURE__ */ n.jsx(ue, { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(Ue, { children: s.map((m, y) => {
1839
- const S = t.find(
1840
- (N) => N.name === i(`headers.${y}.name`)
1841
- );
1842
- return /* @__PURE__ */ n.jsxs(Ge, { children: [
1843
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 ", children: [
1844
- /* @__PURE__ */ n.jsx(
1845
- V,
1846
- {
1847
- control: e,
1848
- name: `headers.${y}.active`,
1849
- render: ({ field: N }) => /* @__PURE__ */ n.jsx(
1850
- he,
1851
- {
1852
- id: `headers.${y}.active`,
1853
- checked: N.value,
1854
- onCheckedChange: (I) => {
1855
- N.onChange(I);
1856
- }
1857
- }
1858
- )
1859
- }
1860
- ),
1861
- /* @__PURE__ */ n.jsx(
1862
- V,
1863
- {
1864
- control: e,
1865
- name: `headers.${y}.name`,
1866
- render: ({ field: N }) => /* @__PURE__ */ n.jsx(
1867
- ce,
1868
- {
1869
- ...N,
1870
- placeholder: "Name",
1871
- className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
1872
- options: [...x, ...ur],
1873
- onEnterPress: () => v(y),
1874
- onChange: (I) => {
1875
- N.onChange(I), o(`headers.${y}.active`, !0);
1876
- },
1877
- ref: (I) => {
1878
- l.current[y] = I;
1879
- }
1880
- }
1881
- )
1882
- }
1883
- )
1884
- ] }),
1885
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
1886
- /* @__PURE__ */ n.jsx(
1887
- V,
1888
- {
1889
- control: e,
1890
- name: `headers.${y}.value`,
1891
- render: ({ field: N }) => S?.enum && S.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1892
- ce,
1893
- {
1894
- shouldFilter: !1,
1895
- value: N.value,
1896
- options: S.enum ?? [],
1897
- onChange: (k) => {
1898
- N.onChange(k), o(`headers.${y}.active`, !0);
1899
- },
1900
- className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
1901
- }
1902
- ) : /* @__PURE__ */ n.jsx(
1903
- Ve,
1904
- {
1905
- placeholder: "Value",
1906
- className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
1907
- ...N,
1908
- ref: (k) => {
1909
- c.current[y] = k;
1910
- },
1911
- onKeyDown: (k) => {
1912
- k.key === "Enter" && k.currentTarget.value.trim() && f(y);
1913
- },
1914
- autoComplete: "off"
1915
- }
1916
- )
1917
- }
1918
- ),
1919
- /* @__PURE__ */ n.jsx(
1920
- Z,
1921
- {
1922
- size: "icon",
1923
- variant: "ghost",
1924
- className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
1925
- onClick: () => r(y),
1926
- type: "button",
1927
- children: /* @__PURE__ */ n.jsx(xn, { size: 16 })
1928
- }
1929
- )
1930
- ] })
1931
- ] }, m.id);
1932
- }) }) }),
1933
- /* @__PURE__ */ n.jsx("div", { className: "text-end", children: /* @__PURE__ */ n.jsx(
1934
- Z,
1935
- {
1936
- className: "",
1937
- onClick: p,
1938
- type: "button",
1939
- variant: "secondary",
1940
- children: "Add header"
1941
- }
1942
- ) })
1943
- ] });
1944
- }, pr = At(
1945
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1946
- ), de = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1947
- Et.Root,
1948
- {
1949
- ref: s,
1950
- className: g(pr(), e),
1951
- ...t
1952
- }
1953
- ));
1954
- de.displayName = Et.Root.displayName;
1955
- const Yt = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1956
- Y.Root,
1957
- {
1958
- className: g("grid gap-2", e),
1959
- ...t,
1960
- ref: s
1961
- }
1962
- ));
1963
- Yt.displayName = Y.Root.displayName;
1964
- const Re = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1965
- Y.Item,
1966
- {
1967
- ref: s,
1968
- className: g(
1969
- "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1970
- e
1971
- ),
1972
- ...t,
1973
- children: /* @__PURE__ */ n.jsx(Y.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(gn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1974
- }
1975
- ));
1976
- Re.displayName = Y.Item.displayName;
1977
- const Kt = ({
1978
- identities: e,
1979
- setValue: t,
1980
- value: s
1981
- }) => /* @__PURE__ */ n.jsx(ue, { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsxs(
1982
- Yt,
1983
- {
1984
- onValueChange: (a) => t(a),
1985
- value: s,
1986
- defaultValue: H,
1987
- className: "gap-0",
1988
- disabled: e?.length === 0,
1989
- children: [
1990
- /* @__PURE__ */ n.jsxs(de, { className: "h-12 border-b items-center flex gap-2 p-4 cursor-pointer hover:bg-accent", children: [
1991
- /* @__PURE__ */ n.jsx(Re, { value: H, id: "none" }),
1992
- /* @__PURE__ */ n.jsx("span", { children: "None" })
1993
- ] }),
1994
- e?.map((a) => /* @__PURE__ */ n.jsxs(
1995
- de,
1996
- {
1997
- className: "h-12 border-b items-center flex gap-2 p-4 cursor-pointer hover:bg-accent",
1998
- children: [
1999
- /* @__PURE__ */ n.jsx(Re, { value: a.id, id: a.id }),
2000
- /* @__PURE__ */ n.jsx("span", { children: a.label })
2001
- ]
2002
- },
2003
- a.id
2004
- ))
2005
- ]
2006
- }
2007
- ) }), hr = ({
2008
- onSubmit: e,
2009
- identities: t,
2010
- open: s,
2011
- onOpenChange: a
2012
- }) => {
2013
- const [r, o] = L(void 0), [i, c] = L(!1);
2014
- return /* @__PURE__ */ n.jsx(Le, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(Ie, { children: [
2015
- /* @__PURE__ */ n.jsx(ke, { children: "Select an auth identity" }),
2016
- /* @__PURE__ */ n.jsx(St, { children: "Please select an identity for this request." }),
2017
- /* @__PURE__ */ n.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
2018
- Kt,
2019
- {
2020
- identities: t,
2021
- setValue: o,
2022
- value: r
2023
- }
2024
- ) }),
2025
- /* @__PURE__ */ n.jsxs(Tt, { className: "flex flex-col gap-2", children: [
2026
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2027
- /* @__PURE__ */ n.jsx(
2028
- he,
2029
- {
2030
- id: "remember",
2031
- checked: i,
2032
- onCheckedChange: (l) => c(
2033
- l === "indeterminate" ? !1 : !!l
2034
- )
2035
- }
2036
- ),
2037
- /* @__PURE__ */ n.jsx(de, { htmlFor: "remember", children: "Remember my choice" })
2038
- ] }),
2039
- /* @__PURE__ */ n.jsx(
2040
- F,
2041
- {
2042
- onClick: () => e({ identity: r, rememberedIdentity: i }),
2043
- children: "Send"
2044
- }
2045
- )
2046
- ] })
2047
- ] }) });
2048
- }, fr = ({
2049
- control: e,
2050
- url: t
2051
- }) => {
2052
- const { fields: s } = De({
2053
- control: e,
2054
- name: "pathParams"
2055
- }), a = [...s].sort(
2056
- (r, o) => t.indexOf(`{${r.name}}`) - t.indexOf(`{${o.name}}`)
2057
- );
2058
- return /* @__PURE__ */ n.jsx(ue, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx(Ue, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(Ge, { children: [
2059
- /* @__PURE__ */ n.jsx(
2060
- V,
2061
- {
2062
- control: e,
2063
- name: `pathParams.${o}.name`,
2064
- render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
2065
- Ht,
2066
- {
2067
- slug: r.name,
2068
- name: r.name,
2069
- className: "font-mono text-xs px-2"
2070
- }
2071
- ) })
2072
- }
2073
- ),
2074
- /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ n.jsx(
2075
- V,
2076
- {
2077
- control: e,
2078
- name: `pathParams.${o}.value`,
2079
- render: ({ field: i }) => /* @__PURE__ */ n.jsx(
2080
- Ve,
2081
- {
2082
- ...i,
2083
- required: !0,
2084
- placeholder: "Enter value",
2085
- className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0"
2086
- }
2087
- )
2088
- }
2089
- ) })
2090
- ] }, r.id)) }) });
2091
- }, xr = Me(
2092
- "input",
2093
- "px-2 bg-transparent h-6 font-mono text-xs m-2"
2094
- ), gr = ({
2095
- control: e,
2096
- queryParams: t
2097
- }) => {
2098
- const { fields: s } = De({
2099
- control: e,
2100
- name: "queryParams"
2101
- }), a = qe(), r = t.map((o) => !!o.isRequired);
2102
- return /* @__PURE__ */ n.jsx(ue, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx("div", { className: "w-full ", children: /* @__PURE__ */ n.jsx(Ue, { children: s.map((o, i) => {
2103
- const c = t.find(
2104
- (l) => l.name === a.watch(`queryParams.${i}.name`)
2105
- );
2106
- return /* @__PURE__ */ n.jsxs(Ge, { children: [
2107
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2108
- /* @__PURE__ */ n.jsx(
2109
- V,
2110
- {
2111
- control: e,
2112
- name: `queryParams.${i}.active`,
2113
- render: ({ field: l }) => /* @__PURE__ */ n.jsx(
2114
- he,
2115
- {
2116
- id: `queryParams.${i}.active`,
2117
- className: "me-2",
2118
- checked: l.value,
2119
- onCheckedChange: l.onChange
2120
- }
2121
- )
2122
- }
2123
- ),
2124
- /* @__PURE__ */ n.jsx(
2125
- V,
2126
- {
2127
- control: e,
2128
- render: ({ field: l }) => r[i] ? /* @__PURE__ */ n.jsx(xr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2129
- "label",
2130
- {
2131
- className: "flex items-center cursor-pointer gap-1",
2132
- htmlFor: `queryParams.${i}.active`,
2133
- title: r[i] ? "Required field" : void 0,
2134
- children: [
2135
- l.value,
2136
- r[i] && /* @__PURE__ */ n.jsx("sup", { children: " *" })
2137
- ]
2138
- }
2139
- ) }) : /* @__PURE__ */ n.jsx(
2140
- ce,
2141
- {
2142
- value: l.value,
2143
- options: t.map((u) => u.name),
2144
- onChange: (u) => {
2145
- l.onChange(u);
2146
- },
2147
- className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2148
- }
2149
- ),
2150
- name: `queryParams.${i}.name`
2151
- }
2152
- )
2153
- ] }, o.id),
2154
- /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ n.jsx(
2155
- V,
2156
- {
2157
- control: e,
2158
- render: ({ field: l }) => c?.enum && c.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2159
- ce,
2160
- {
2161
- value: l.value,
2162
- options: c.enum ?? [],
2163
- onChange: (p) => {
2164
- l.onChange(p), a.setValue(`queryParams.${i}.active`, !0);
2165
- },
2166
- className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2167
- }
2168
- ) : /* @__PURE__ */ n.jsx(
2169
- Ve,
2170
- {
2171
- ...l,
2172
- onChange: (p) => {
2173
- l.onChange(p.target.value), p.target.value.length > 0 && a.setValue(`queryParams.${i}.active`, !0);
2174
- },
2175
- placeholder: "Enter value",
2176
- className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
2177
- }
2178
- ),
2179
- name: `queryParams.${i}.value`
2180
- }
2181
- ) })
2182
- ] }, o.id);
2183
- }) }) }) });
2184
- }, yr = Nt()(
2185
- wt(
2186
- (e, t) => ({
2187
- rememberedIdentity: null,
2188
- setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
2189
- getRememberedIdentity: (s) => s.find(
2190
- (a) => a === t().rememberedIdentity
2191
- )
2192
- }),
2193
- {
2194
- name: "identity-storage",
2195
- storage: Tn(() => sessionStorage)
2196
- }
2197
- )
2198
- ), vr = ({
2199
- open: e,
2200
- setOpen: t,
2201
- onSignUp: s,
2202
- onLogin: a
2203
- }) => /* @__PURE__ */ n.jsx(Le, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(Ie, { children: [
2204
- /* @__PURE__ */ n.jsx(ke, { children: "Welcome to the Playground!" }),
2205
- /* @__PURE__ */ n.jsx(St, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2206
- /* @__PURE__ */ n.jsxs(Tt, { className: "flex gap-2 sm:justify-between", children: [
2207
- /* @__PURE__ */ n.jsx(F, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2208
- /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2209
- s && /* @__PURE__ */ n.jsx(F, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2210
- a && /* @__PURE__ */ n.jsx(F, { type: "button", variant: "default", onClick: a, children: "Login" })
2211
- ] })
2212
- ] })
2213
- ] }) }), $ = {
2214
- green: "text-green-600",
2215
- blue: "text-sky-600",
2216
- yellow: "text-yellow-600",
2217
- red: "text-red-600",
2218
- purple: "text-purple-600",
2219
- indigo: "text-indigo-600",
2220
- gray: "text-gray-600"
2221
- }, br = {
2222
- get: $.green,
2223
- post: $.blue,
2224
- put: $.yellow,
2225
- delete: $.red,
2226
- patch: $.purple,
2227
- options: $.indigo,
2228
- head: $.gray,
2229
- trace: $.gray
2230
- }, jr = (e) => br[e.toLocaleLowerCase()] ?? $.gray, Nr = ({
2231
- method: e,
2232
- url: t,
2233
- headers: s,
2234
- body: a
2235
- }) => /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
2236
- /* @__PURE__ */ n.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
2237
- /* @__PURE__ */ n.jsx("span", { className: g(jr(e), "font-semibold"), children: e }),
2238
- " ",
2239
- /* @__PURE__ */ n.jsx("span", { className: "break-all", children: t }),
2240
- " ",
2241
- /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "HTTP/1.1" })
2242
- ] }),
2243
- /* @__PURE__ */ n.jsxs("div", { className: "mx-1.5 flex flex-col gap-3", children: [
2244
- /* @__PURE__ */ n.jsxs(rt, { defaultOpen: !0, children: [
2245
- /* @__PURE__ */ n.jsxs(at, { className: "flex items-center gap-2 hover:text-primary group", children: [
2246
- /* @__PURE__ */ n.jsx(X, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2247
- /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Headers" })
2248
- ] }),
2249
- /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2", children: s.map(([r, o]) => /* @__PURE__ */ n.jsxs(q, { children: [
2250
- /* @__PURE__ */ n.jsx("div", { className: "text-primary", children: r }),
2251
- /* @__PURE__ */ n.jsx("div", { className: "break-all", children: o })
2252
- ] }, r)) }) })
2253
- ] }),
2254
- /* @__PURE__ */ n.jsxs(rt, { defaultOpen: !0, children: [
2255
- /* @__PURE__ */ n.jsxs(at, { className: "flex items-center gap-2 hover:text-primary group", children: [
2256
- /* @__PURE__ */ n.jsx(X, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2257
- /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Body" })
2258
- ] }),
2259
- /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx("div", { className: "ps-0 pt-2", children: /* @__PURE__ */ n.jsx(
2260
- "div",
2261
- {
2262
- className: g(
2263
- "whitespace-pre-wrap break-all bg-muted p-2 rounded-md",
2264
- !a && "text-muted-foreground"
2265
- ),
2266
- children: a ?? "Empty body"
2267
- }
2268
- ) }) })
2269
- ] })
2270
- ] })
2271
- ] }), mt = Fe.Root, pt = Fe.CollapsibleTrigger, ht = Fe.CollapsibleContent;
2272
- function He(e) {
2273
- if (e === null) return "null";
2274
- if (Array.isArray(e)) {
2275
- if (e.length === 0) return "any[]";
2276
- const t = e[0];
2277
- return t === void 0 ? "any[]" : `${He(t)}[]`;
2278
- }
2279
- return typeof e == "object" ? wr(e) : typeof e;
2280
- }
2281
- function wr(e, t = "") {
2282
- const s = ["{"];
2283
- for (const [a, r] of Object.entries(e)) {
2284
- const o = He(r);
2285
- s.push(` ${a}: ${o};`);
2286
- }
2287
- return s.push("}"), s.join(`
2288
- `);
2289
- }
2290
- function Cr(e) {
2291
- return { lines: [`type GeneratedType = ${He(e)};`] };
2292
- }
2293
- const Sr = {
2294
- 200: "OK",
2295
- 201: "Created",
2296
- 202: "Accepted",
2297
- 204: "No Content",
2298
- 400: "Bad Request",
2299
- 401: "Unauthorized",
2300
- 403: "Forbidden",
2301
- 404: "Not Found",
2302
- 405: "Method Not Allowed",
2303
- 500: "Internal Server Error"
2304
- }, ft = (e) => {
2305
- const t = Math.floor(Math.log(e) / Math.log(1e3));
2306
- return `${(e / Math.pow(1e3, t)).toFixed(
2307
- t ? 2 : 0
2308
- )} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
2309
- }, Tr = (e) => Object.entries({
2310
- "application/json": "json",
2311
- "text/json": "json",
2312
- "text/html": "html",
2313
- "text/css": "css",
2314
- "text/javascript": "javascript",
2315
- "application/xml": "xml",
2316
- "application/xhtml+xml": "xhtml"
2317
- }).find(
2318
- ([s]) => e.includes(s)
2319
- )?.[1], Ar = (e) => {
2320
- const t = e.find(([s, a]) => s === "Content-Type")?.[1] || "";
2321
- return Tr(t);
2322
- }, Or = (e) => {
2323
- try {
2324
- return JSON.stringify(JSON.parse(e), null, 2);
2325
- } catch {
2326
- return null;
2327
- }
2328
- }, Pr = (e) => {
2329
- const t = [
2330
- "Content-Type",
2331
- "Content-Length",
2332
- "Authorization",
2333
- "X-RateLimit-Remaining",
2334
- "X-RateLimit-Limit",
2335
- "Cache-Control",
2336
- "ETag"
2337
- ].map((s) => s.toLowerCase());
2338
- return [...e].sort(([s], [a]) => {
2339
- const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
2340
- return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
2341
- });
2342
- }, xt = 64e3, Er = ({
2343
- body: e = "",
2344
- headers: t,
2345
- status: s,
2346
- time: a,
2347
- size: r,
2348
- url: o
2349
- }) => {
2350
- const i = Ar(t), c = Or(e), l = c || e, [u, p] = L(
2351
- c ? "formatted" : "raw"
2352
- ), v = An({
2353
- queryKey: ["types", l],
2354
- queryFn: async () => Cr(JSON.parse(l)),
2355
- enabled: u === "types"
2356
- }), f = Pr([...t]), x = r > xt;
2357
- return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
2358
- /* @__PURE__ */ n.jsxs(mt, { defaultOpen: !0, children: [
2359
- /* @__PURE__ */ n.jsxs(pt, { className: "flex items-center gap-2 hover:text-primary group", children: [
2360
- /* @__PURE__ */ n.jsx(X, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2361
- /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Headers" })
2362
- ] }),
2363
- /* @__PURE__ */ n.jsx(ht, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2 font-mono text-xs", children: [
2364
- f.slice(0, 5).map(([m, y]) => /* @__PURE__ */ n.jsxs(q, { children: [
2365
- /* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: m }),
2366
- /* @__PURE__ */ n.jsx("div", { className: "break-all", children: y })
2367
- ] }, m)),
2368
- f.length > 5 && /* @__PURE__ */ n.jsxs(mt, { className: "col-span-full grid-cols-subgrid grid", children: [
2369
- /* @__PURE__ */ n.jsxs(pt, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
2370
- /* @__PURE__ */ n.jsx(X, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2371
- "Show ",
2372
- f.length - 5,
2373
- " more headers"
2374
- ] }),
2375
- /* @__PURE__ */ n.jsx(ht, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: f.slice(5).map(([m, y]) => /* @__PURE__ */ n.jsxs(q, { children: [
2376
- /* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: m }),
2377
- /* @__PURE__ */ n.jsx("div", { className: "break-all", children: y })
2378
- ] }, m)) })
2379
- ] })
2380
- ] }) })
2381
- ] }),
2382
- /* @__PURE__ */ n.jsxs($t, { className: "shadow-none", children: [
2383
- x && /* @__PURE__ */ n.jsxs(Zn, { type: "info", className: "my-0 p-2", children: [
2384
- "Code highlight is disabled for responses larger than",
2385
- " ",
2386
- ft(xt)
2387
- ] }),
2388
- /* @__PURE__ */ n.jsx(
2389
- rs,
2390
- {
2391
- language: u === "types" ? "typescript" : u === "raw" ? c ? "plain" : i : "json",
2392
- showCopy: "always",
2393
- disabled: x,
2394
- noBackground: !0,
2395
- className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
2396
- code: (u === "raw" ? e : u === "types" ? v.data?.lines.join(`
2397
- `) : l) ?? ""
2398
- }
2399
- )
2400
- ] }),
2401
- /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2 justify-between items-center", children: [
2402
- /* @__PURE__ */ n.jsxs("div", { className: "flex text-xs gap-2 border bg-muted rounded-md p-2 items-center h-8 font-mono divide-x", children: [
2403
- /* @__PURE__ */ n.jsxs("div", { children: [
2404
- /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Status" }),
2405
- " ",
2406
- s,
2407
- " ",
2408
- Sr[s] ?? ""
2409
- ] }),
2410
- /* @__PURE__ */ n.jsxs("div", { children: [
2411
- /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
2412
- " ",
2413
- a.toFixed(0),
2414
- "ms"
2415
- ] }),
2416
- /* @__PURE__ */ n.jsxs("div", { children: [
2417
- /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2418
- " ",
2419
- ft(r)
2420
- ] })
2421
- ] }),
2422
- c && /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsxs(
2423
- Ee,
2424
- {
2425
- value: u,
2426
- onValueChange: (m) => p(m),
2427
- children: [
2428
- /* @__PURE__ */ n.jsx(ie, { className: "min-w-32", children: /* @__PURE__ */ n.jsx($e, { placeholder: "View" }) }),
2429
- /* @__PURE__ */ n.jsxs(le, { children: [
2430
- /* @__PURE__ */ n.jsx(G, { value: "formatted", children: "Formatted" }),
2431
- /* @__PURE__ */ n.jsx(G, { value: "raw", children: "Raw" }),
2432
- /* @__PURE__ */ n.jsx(G, { value: "types", children: "Types" })
2433
- ] })
2434
- ]
2435
- }
2436
- ) })
2437
- ] })
2438
- ] });
2439
- }, $r = ({
2440
- queryMutation: e,
2441
- showPathParamsWarning: t,
2442
- showLongRunningWarning: s,
2443
- onCancel: a
2444
- }) => {
2445
- const r = ((e.data?.status ?? 0) / 100).toFixed(0);
2446
- return /* @__PURE__ */ n.jsx("div", { className: "min-w-0 p-4 py-8 bg-muted/50", children: e.error ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
2447
- t && /* @__PURE__ */ n.jsx(es, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
2448
- /* @__PURE__ */ n.jsxs($t, { children: [
2449
- /* @__PURE__ */ n.jsx(ts, { children: /* @__PURE__ */ n.jsx(ns, { children: "Request failed" }) }),
2450
- /* @__PURE__ */ n.jsxs(ss, { children: [
2451
- "Error:",
2452
- " ",
2453
- e.error.message || String(e.error) || "Unexpected error"
2454
- ] })
2455
- ] })
2456
- ] }) : e.data ? /* @__PURE__ */ n.jsxs(Ot, { defaultValue: "response", children: [
2457
- /* @__PURE__ */ n.jsxs(Pt, { children: [
2458
- /* @__PURE__ */ n.jsx(M, { value: "request", children: "Request" }),
2459
- /* @__PURE__ */ n.jsxs(M, { value: "response", children: [
2460
- "Response",
2461
- /* @__PURE__ */ n.jsxs(
2462
- "span",
2463
- {
2464
- className: g(
2465
- "text-xs font-mono ms-1",
2466
- r === "2" && "text-green-500",
2467
- r === "3" && "text-blue-500",
2468
- r === "4" && "text-yellow-500",
2469
- r === "5" && "text-red-500"
2470
- ),
2471
- children: [
2472
- "(",
2473
- e.data.status,
2474
- ")"
2475
- ]
2476
- }
2477
- )
2478
- ] })
2479
- ] }),
2480
- /* @__PURE__ */ n.jsx(U, { value: "request", children: /* @__PURE__ */ n.jsx(Nr, { ...e.data.request }) }),
2481
- /* @__PURE__ */ n.jsx(U, { value: "response", children: /* @__PURE__ */ n.jsx(
2482
- Er,
2483
- {
2484
- status: e.data.status,
2485
- time: e.data.time,
2486
- size: e.data.size,
2487
- headers: e.data.headers,
2488
- body: e.data.body,
2489
- url: e.data.request.url
2490
- }
2491
- ) })
2492
- ] }) : /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: e.isPending ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
2493
- /* @__PURE__ */ n.jsx(Kn, { size: 20 }),
2494
- /* @__PURE__ */ n.jsxs(
2495
- "div",
2496
- {
2497
- className: g(
2498
- "opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
2499
- s && "opacity-100 pointer-events-auto"
2500
- ),
2501
- children: [
2502
- "Looks like the request is taking longer than expected.",
2503
- /* @__PURE__ */ n.jsx(
2504
- Z,
2505
- {
2506
- type: "button",
2507
- onClick: a,
2508
- size: "sm",
2509
- className: "w-fit",
2510
- variant: "outline",
2511
- children: "Cancel"
2512
- }
2513
- )
2514
- ]
2515
- }
2516
- )
2517
- ] }) : /* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
2518
- }, Rr = ({
2519
- identities: e,
2520
- formRef: t,
2521
- disabled: s
2522
- }) => {
2523
- const { setValue: a, watch: r } = qe(), o = r("identity");
2524
- return e.length === 0 ? /* @__PURE__ */ n.jsx(F, { disabled: s, children: "Send" }) : /* @__PURE__ */ n.jsxs("div", { className: "flex", children: [
2525
- /* @__PURE__ */ n.jsx(
2526
- F,
2527
- {
2528
- className: "rounded-r-none inset-shadow-xs",
2529
- disabled: s,
2530
- onClick: () => t?.current?.requestSubmit(),
2531
- children: "Send"
2532
- }
2533
- ),
2534
- /* @__PURE__ */ n.jsxs(Qt, { children: [
2535
- /* @__PURE__ */ n.jsx(Jt, { asChild: !0, children: /* @__PURE__ */ n.jsx(
2536
- F,
2537
- {
2538
- disabled: s,
2539
- className: "rounded-l-none border-l border-border/40 inset-shadow-xs w-6",
2540
- size: "icon",
2541
- children: /* @__PURE__ */ n.jsx(yn, { className: "w-4 h-4" })
2542
- }
2543
- ) }),
2544
- /* @__PURE__ */ n.jsx(ze, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: H, label: "None" }, ...e].map(
2545
- (i) => /* @__PURE__ */ n.jsxs(
2546
- _e,
2547
- {
2548
- onClick: () => {
2549
- a("identity", i.id), t?.current?.requestSubmit();
2550
- },
2551
- children: [
2552
- i.label,
2553
- o === i.id && /* @__PURE__ */ n.jsx(jt, { className: "ms-2", size: 16 })
2554
- ]
2555
- },
2556
- i.id
2557
- )
2558
- ) })
2559
- ] })
2560
- ] });
2561
- }, H = "__none", we = {
2562
- Plain: "text/plain",
2563
- JSON: "application/json",
2564
- XML: "application/xml",
2565
- YAML: "application/yaml",
2566
- CSV: "text/csv"
2567
- }, Lr = ({
2568
- server: e,
2569
- servers: t = [],
2570
- url: s,
2571
- method: a,
2572
- headers: r = [],
2573
- queryParams: o = [],
2574
- pathParams: i = [],
2575
- defaultBody: c = "",
2576
- examples: l,
2577
- requiresLogin: u = !1,
2578
- onLogin: p,
2579
- onSignUp: v
2580
- }) => {
2581
- const { selectedServer: f, setSelectedServer: x } = tr(
2582
- t.map((d) => ({ url: d }))
2583
- ), [m, y] = L(!1), S = On(), { setRememberedIdentity: N, getRememberedIdentity: I } = yr(), [, k] = kn(), [an, on] = L(!1), [ln, ee] = L(!1), te = Q(void 0), Je = Mn(N), { register: We, control: ne, handleSubmit: Xe, watch: Ze, setValue: _, ...fe } = Bn({
2584
- defaultValues: {
2585
- body: c,
2586
- bodyContentType: "JSON",
2587
- queryParams: o.map((d) => ({
2588
- name: d.name,
2589
- value: d.defaultValue ?? "",
2590
- active: d.defaultActive ?? !1,
2591
- enum: d.enum ?? []
2592
- })).concat([
2593
- {
2594
- name: "",
2595
- value: "",
2596
- active: !1,
2597
- enum: []
2598
- }
2599
- ]),
2600
- pathParams: i.map((d) => ({
2601
- name: d.name,
2602
- value: d.defaultValue ?? ""
2603
- })),
2604
- headers: r.map((d) => ({
2605
- name: d.name,
2606
- value: d.defaultValue ?? "",
2607
- active: d.defaultActive ?? !1
2608
- })).concat([
2609
- {
2610
- name: "",
2611
- value: "",
2612
- active: !1
2613
- }
2614
- ]),
2615
- identity: I(
2616
- S.data?.map((d) => d.id) ?? []
2617
- )
2618
- }
2619
- }), A = Ze(), Ye = Q(null);
2620
- ae(() => {
2621
- A.identity && Je.current(A.identity);
2622
- }, [Je, A.identity]);
2623
- const xe = Fn({
2624
- gcTime: 0,
2625
- mutationFn: async (d) => {
2626
- const P = performance.now(), D = !d.headers.some(
2627
- (T) => T.active && T.name.toLowerCase() === "content-type"
2628
- ), re = Object.fromEntries([
2629
- ...d.headers.filter((T) => T.name && T.active).map((T) => [T.name, T.value]),
2630
- ...D ? [["content-type", we[d.bodyContentType]]] : []
2631
- ]), E = new Request(
2632
- nr(e ?? f, s, d),
2633
- {
2634
- method: a.toUpperCase(),
2635
- headers: re,
2636
- body: d.body ? d.body : void 0
2637
- }
2638
- );
2639
- d.identity !== H && await S.data?.find((T) => T.id === d.identity)?.authorizeRequest(E);
2640
- const et = setTimeout(
2641
- () => ee(!0),
2642
- 3210
2643
- );
2644
- te.current = new AbortController();
2645
- try {
2646
- const T = await fetch(E, {
2647
- cache: "no-store",
2648
- signal: te.current.signal
2649
- });
2650
- clearTimeout(et), ee(!1);
2651
- const mn = performance.now() - P, tt = await T.text(), pn = new URL(E.url);
2652
- return {
2653
- status: T.status,
2654
- headers: Array.from(T.headers.entries()),
2655
- size: tt.length,
2656
- body: tt,
2657
- time: mn,
2658
- request: {
2659
- method: E.method.toUpperCase(),
2660
- url: E.url,
2661
- headers: [
2662
- ["Host", pn.host],
2663
- ["User-Agent", "Zudoku Playground"],
2664
- ...Array.from(E.headers.entries())
2665
- ],
2666
- body: d.body ? d.body : void 0
2667
- }
2668
- };
2669
- } catch (T) {
2670
- throw clearTimeout(et), ee(!1), T instanceof TypeError ? new Error(
2671
- "The request failed, possibly due to network issues or CORS policy."
2672
- ) : T;
2673
- }
2674
- }
2675
- });
2676
- ae(() => () => {
2677
- te.current?.abort();
2678
- }, []);
2679
- const cn = /* @__PURE__ */ n.jsx(
2680
- Xs,
2681
- {
2682
- path: s,
2683
- renderParam: ({ name: d, originalValue: P, index: D }) => {
2684
- const re = A.pathParams.find(
2685
- (E) => E.name === d
2686
- )?.value;
2687
- return /* @__PURE__ */ n.jsx(
2688
- Ht,
2689
- {
2690
- name: d,
2691
- backgroundOpacity: "0",
2692
- slug: d,
2693
- onClick: () => fe.setFocus(`pathParams.${D}.value`),
2694
- children: re || P
2695
- }
2696
- );
2697
- }
2698
- }
2699
- ), Ke = A.queryParams.filter((d) => d.active).map((d, P, D) => /* @__PURE__ */ n.jsxs(q, { children: [
2700
- d.name,
2701
- "=",
2702
- encodeURIComponent(d.value).replaceAll("%20", "+"),
2703
- P < D.length - 1 && "&",
2704
- /* @__PURE__ */ n.jsx("wbr", {})
2705
- ] }, d.name)), dn = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2706
- Ee,
2707
- {
2708
- onValueChange: (d) => {
2709
- k(() => x(d));
2710
- },
2711
- value: f,
2712
- defaultValue: f,
2713
- children: [
2714
- /* @__PURE__ */ n.jsx(ie, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx($e, {}) }),
2715
- /* @__PURE__ */ n.jsx(le, { children: t.map((d) => /* @__PURE__ */ n.jsx(G, { value: d, children: d.replace(/^https?:\/\//, "").replace(/\/$/, "") }, d)) })
2716
- ]
2717
- }
2718
- ) }), un = u && !an, se = ["POST", "PUT", "PATCH", "DELETE"].includes(
2719
- a.toUpperCase()
2720
- );
2721
- return /* @__PURE__ */ n.jsx(
2722
- zn,
2723
- {
2724
- register: We,
2725
- control: ne,
2726
- handleSubmit: Xe,
2727
- watch: Ze,
2728
- setValue: _,
2729
- ...fe,
2730
- children: /* @__PURE__ */ n.jsxs(
2731
- "form",
2732
- {
2733
- onSubmit: Xe((d) => {
2734
- S.data?.length === 0 || d.identity ? xe.mutate(d) : y(!0);
2735
- }),
2736
- ref: Ye,
2737
- className: "relative",
2738
- children: [
2739
- /* @__PURE__ */ n.jsx(
2740
- hr,
2741
- {
2742
- identities: S.data ?? [],
2743
- open: m,
2744
- onOpenChange: y,
2745
- onSubmit: ({ rememberedIdentity: d, identity: P }) => {
2746
- d && _("identity", P ?? H), y(!1), xe.mutate({ ...A, identity: P });
2747
- }
2748
- }
2749
- ),
2750
- /* @__PURE__ */ n.jsx(
2751
- vr,
2752
- {
2753
- open: un,
2754
- setOpen: (d) => on(!d),
2755
- onSignUp: v,
2756
- onLogin: p
2757
- }
2758
- ),
2759
- /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
2760
- /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 p-4 after:bg-muted-foreground/20 relative after:absolute after:w-px after:inset-0 after:start-auto", children: [
2761
- /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2 items-stretch", children: [
2762
- /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
2763
- /* @__PURE__ */ n.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
2764
- /* @__PURE__ */ n.jsxs("div", { className: "items-center px-2 py-0.5 font-mono text-xs break-all leading-6", children: [
2765
- dn,
2766
- cn,
2767
- Ke.length > 0 ? "?" : "",
2768
- Ke
2769
- ] })
2770
- ] }),
2771
- /* @__PURE__ */ n.jsx(
2772
- Rr,
2773
- {
2774
- identities: S.data ?? [],
2775
- formRef: Ye,
2776
- disabled: S.isLoading || fe.formState.isSubmitting
2777
- }
2778
- )
2779
- ] }),
2780
- /* @__PURE__ */ n.jsxs(Ot, { defaultValue: "parameters", children: [
2781
- /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ n.jsxs(Pt, { children: [
2782
- /* @__PURE__ */ n.jsxs(M, { value: "parameters", children: [
2783
- "Parameters",
2784
- (A.pathParams.some((d) => d.value !== "") || A.queryParams.some((d) => d.active)) && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2785
- ] }),
2786
- /* @__PURE__ */ n.jsxs(M, { value: "headers", children: [
2787
- "Headers",
2788
- A.headers.filter((d) => d.active).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2789
- ] }),
2790
- /* @__PURE__ */ n.jsxs(M, { value: "auth", children: [
2791
- "Auth",
2792
- A.identity !== H && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2793
- ] }),
2794
- /* @__PURE__ */ n.jsxs(M, { value: "body", children: [
2795
- "Body",
2796
- A.body && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2797
- ] })
2798
- ] }) }),
2799
- /* @__PURE__ */ n.jsx(U, { value: "headers", children: /* @__PURE__ */ n.jsx(mr, { control: ne, headers: r }) }),
2800
- /* @__PURE__ */ n.jsxs(U, { value: "parameters", children: [
2801
- i.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2802
- /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
2803
- /* @__PURE__ */ n.jsx(fr, { url: s, control: ne })
2804
- ] }),
2805
- /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2806
- /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
2807
- /* @__PURE__ */ n.jsx(gr, { control: ne, queryParams: o })
2808
- ] })
2809
- ] }),
2810
- /* @__PURE__ */ n.jsxs(U, { value: "body", children: [
2811
- !["POST", "PUT", "PATCH", "DELETE"].includes(
2812
- a.toUpperCase()
2813
- ) && /* @__PURE__ */ n.jsxs(Ae, { className: "mb-2", children: [
2814
- /* @__PURE__ */ n.jsx(nt, { className: "w-4 h-4" }),
2815
- /* @__PURE__ */ n.jsx(Oe, { children: "Body" }),
2816
- /* @__PURE__ */ n.jsx(Pe, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
2817
- ] }),
2818
- /* @__PURE__ */ n.jsx(
2819
- Gt,
2820
- {
2821
- ...We("body"),
2822
- className: g(
2823
- "border w-full rounded-lg bg-muted/40 p-2 h-64 font-mono text-[13px]",
2824
- !se && "h-20 bg-muted"
2825
- ),
2826
- placeholder: se ? void 0 : "This request does not support a body",
2827
- disabled: !se
2828
- }
2829
- ),
2830
- se && /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
2831
- /* @__PURE__ */ n.jsxs(
2832
- Ee,
2833
- {
2834
- value: A.bodyContentType,
2835
- onValueChange: (d) => _(
2836
- "bodyContentType",
2837
- d
2838
- ),
2839
- children: [
2840
- /* @__PURE__ */ n.jsx(ie, { className: "w-[100px]", children: /* @__PURE__ */ n.jsx($e, {}) }),
2841
- /* @__PURE__ */ n.jsx(le, { children: Object.keys(we).map((d) => /* @__PURE__ */ n.jsx(G, { value: d, children: d }, d)) })
2842
- ]
2843
- }
2844
- ),
2845
- l && l.length > 0 && /* @__PURE__ */ n.jsx(
2846
- lr,
2847
- {
2848
- examples: l,
2849
- onSelect: (d, P) => {
2850
- _(
2851
- "body",
2852
- JSON.stringify(d.value, null, 2)
2853
- );
2854
- const D = _n(we).find(
2855
- ([re, E]) => E === P
2856
- )?.[0];
2857
- D && _("bodyContentType", D);
2858
- }
2859
- }
2860
- )
2861
- ] })
2862
- ] }),
2863
- /* @__PURE__ */ n.jsx(U, { value: "auth", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2864
- S.data?.length === 0 && /* @__PURE__ */ n.jsxs(Ae, { children: [
2865
- /* @__PURE__ */ n.jsx(nt, { className: "w-4 h-4" }),
2866
- /* @__PURE__ */ n.jsx(Oe, { children: "Authentication" }),
2867
- /* @__PURE__ */ n.jsx(Pe, { children: "No identities found. Please create an identity first." })
2868
- ] }),
2869
- /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ n.jsx(
2870
- Kt,
2871
- {
2872
- value: A.identity,
2873
- identities: S.data ?? [],
2874
- setValue: (d) => _("identity", d)
2875
- }
2876
- ) })
2877
- ] }) })
2878
- ] })
2879
- ] }),
2880
- /* @__PURE__ */ n.jsx(
2881
- $r,
2882
- {
2883
- queryMutation: xe,
2884
- showPathParamsWarning: A.pathParams.some(
2885
- (d) => d.value === ""
2886
- ),
2887
- showLongRunningWarning: ln,
2888
- onCancel: () => {
2889
- te.current?.abort(
2890
- "Request cancelled by the user"
2891
- ), ee(!1);
2892
- }
2893
- }
2894
- )
2895
- ] })
2896
- ]
2897
- }
2898
- )
2899
- }
2900
- );
2901
- }, Ir = ({
2902
- className: e,
2903
- size: t = 16
2904
- }) => /* @__PURE__ */ n.jsx(
2905
- "svg",
2906
- {
2907
- xmlns: "http://www.w3.org/2000/svg",
2908
- viewBox: "0 0 24 24",
2909
- fill: "currentColor",
2910
- className: e,
2911
- width: t,
2912
- height: t,
2913
- children: /* @__PURE__ */ n.jsx(
2914
- "path",
2915
- {
2916
- fillRule: "evenodd",
2917
- d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm14.024-.983a1.125 1.125 0 0 1 0 1.966l-5.603 3.113A1.125 1.125 0 0 1 9 15.113V8.887c0-.857.921-1.4 1.671-.983l5.603 3.113Z",
2918
- clipRule: "evenodd"
2919
- }
2920
- )
2921
- }
2922
- ), kr = (e) => {
2923
- const [t, s] = L(!1);
2924
- return /* @__PURE__ */ n.jsxs(Le, { onOpenChange: (a) => s(a), children: [
2925
- /* @__PURE__ */ n.jsx(Vn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
2926
- "button",
2927
- {
2928
- type: "button",
2929
- className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-xs hover:bg-primary/80",
2930
- children: [
2931
- "Test",
2932
- /* @__PURE__ */ n.jsx(Ir, { size: 14 })
2933
- ]
2934
- }
2935
- ) }),
2936
- /* @__PURE__ */ n.jsxs(
2937
- Ie,
2938
- {
2939
- className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
2940
- "aria-describedby": void 0,
2941
- children: [
2942
- /* @__PURE__ */ n.jsx(qn, { children: /* @__PURE__ */ n.jsx(ke, { children: "Playground" }) }),
2943
- t && /* @__PURE__ */ n.jsx(Lr, { ...e })
2944
- ]
2945
- }
2946
- )
2947
- ] });
2948
- }, Dr = {
2949
- get: "green",
2950
- post: "blue",
2951
- put: "yellow",
2952
- delete: "red",
2953
- patch: "purple",
2954
- options: "gray",
2955
- head: "gray"
2956
- }, gt = ({
2957
- label: e,
2958
- path: t,
2959
- operations: s,
2960
- collapsible: a,
2961
- collapsed: r
2962
- }) => ({
2963
- type: "category",
2964
- label: e,
2965
- link: {
2966
- type: "doc",
2967
- id: t,
2968
- label: e
2969
- },
2970
- collapsible: a,
2971
- collapsed: r,
2972
- items: s.map((o) => ({
2973
- type: "link",
2974
- label: o.summary ?? o.path,
2975
- href: `${t}#${o.slug}`,
2976
- badge: {
2977
- label: o.method,
2978
- color: Dr[o.method.toLowerCase()],
2979
- invert: !0
2980
- }
2981
- }))
2982
- }), en = Ct(
2983
- void 0
2984
- ), ba = en.Provider, qr = () => {
2985
- const e = Dn(en);
2986
- if (!e)
2987
- throw new Error("useOasConfig must be used within a OasConfigProvider");
2988
- return e.config;
2989
- }, yt = (e) => ({
2990
- path: e.routePath,
2991
- async lazy() {
2992
- const { OasProvider: t } = await import("./OasProvider-DfTncecV.js");
2993
- return {
2994
- element: /* @__PURE__ */ n.jsx(
2995
- t,
2996
- {
2997
- basePath: e.basePath,
2998
- version: e.version,
2999
- client: e.client,
3000
- config: e.config
3001
- }
3002
- )
3003
- };
3004
- },
3005
- children: e.routes
3006
- }), tn = ({
3007
- path: e,
3008
- tag: t,
3009
- untagged: s
3010
- }) => ({
3011
- path: e,
3012
- async lazy() {
3013
- const { OperationList: a } = await import("./OperationList-DTQVxVx5.js");
3014
- return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
3015
- }
3016
- }), Vr = ({
3017
- render: e,
3018
- path: t
3019
- }) => {
3020
- const { type: s, input: a } = qr(), { tag: r } = Nn(), o = wn(), i = Fs(rn, { type: s, input: a }), {
3021
- data: { schema: c }
3022
- } = Pn(i), l = c.tags.at(0);
3023
- return !r && l?.slug ? /* @__PURE__ */ n.jsx(
3024
- Cn,
3025
- {
3026
- to: {
3027
- pathname: Sn(t, { tag: l.slug }),
3028
- search: o.search
3029
- }
3030
- }
3031
- ) : r && c.tags.some((u) => u.slug === r) ? e(r) : null;
3032
- }, Fr = ({ path: e }) => ({
3033
- path: e,
3034
- async lazy() {
3035
- const { OperationList: t } = await import("./OperationList-DTQVxVx5.js");
3036
- return {
3037
- element: /* @__PURE__ */ n.jsx(
3038
- Vr,
3039
- {
3040
- path: e,
3041
- render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
3042
- }
3043
- )
3044
- };
3045
- }
3046
- }), nn = (e) => [
3047
- // Category without tagged operations
3048
- tn({
3049
- path: R(e, Qe),
3050
- untagged: !0
3051
- }),
3052
- // Schema list route
3053
- {
3054
- path: R(e, "~schemas"),
3055
- lazy: async () => {
3056
- const { SchemaList: t } = await import("./SchemaList-BoRsh_HT.js");
3057
- return { element: /* @__PURE__ */ n.jsx(t, {}) };
3058
- }
3059
- }
3060
- ], Br = (e, t) => {
3061
- const s = R(e, t.at(0) ?? Qe);
3062
- return [
3063
- // Redirect to first tag on the index route
3064
- { index: !0, loader: () => jn(s) },
3065
- // Create routes for each tag
3066
- ...t.map(
3067
- (a) => tn({
3068
- path: R(e, a),
3069
- tag: a
3070
- })
3071
- ),
3072
- ...nn(e)
3073
- ];
3074
- }, sn = (e) => e.type === "file" ? Object.keys(e.input) : [], zr = ({
3075
- basePath: e,
3076
- config: t,
3077
- client: s
3078
- }) => {
3079
- const a = t.tagPages;
3080
- if (!a)
3081
- return [
3082
- yt({
3083
- basePath: e,
3084
- routePath: e,
3085
- routes: [
3086
- Fr({ path: e + "/:tag?" }),
3087
- ...nn(e)
3088
- ],
3089
- client: s,
3090
- config: t
3091
- })
3092
- ];
3093
- const r = sn(t);
3094
- return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3095
- const c = R(e, i);
3096
- return yt({
3097
- basePath: e,
3098
- version: i,
3099
- routePath: c,
3100
- routes: Br(c, a),
3101
- client: s,
3102
- config: t
3103
- });
3104
- });
3105
- }, rn = Js(`
3106
- query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
3107
- schema(input: $input, type: $type) {
3108
- tags {
3109
- slug
3110
- name
3111
- extensions
3112
- operations {
3113
- summary
3114
- slug
3115
- method
3116
- operationId
3117
- path
3118
- }
3119
- }
3120
- components {
3121
- schemas {
3122
- __typename
3123
- }
3124
- }
3125
- }
3126
- }
3127
- `), Qe = "~endpoints", ja = (e) => {
3128
- const t = R(e.navigationId ?? "/reference"), s = new os(e);
3129
- return {
3130
- getHead: () => {
3131
- if (e.type === "url" && !e.skipPreload)
3132
- return /* @__PURE__ */ n.jsx(
3133
- "link",
3134
- {
3135
- rel: "preload",
3136
- href: e.input,
3137
- as: "fetch",
3138
- crossOrigin: "anonymous"
3139
- }
3140
- );
3141
- if (e.server)
3142
- return /* @__PURE__ */ n.jsx("link", { rel: "preconnect", href: e.server });
3143
- },
3144
- getMdxComponents: () => ({
3145
- OpenPlaygroundButton: ({
3146
- requireAuth: a,
3147
- server: r,
3148
- method: o,
3149
- url: i,
3150
- children: c,
3151
- ...l
3152
- }) => {
3153
- const u = En();
3154
- if (!r)
3155
- throw new Error("Server is required");
3156
- return a && !u.isAuthenticated ? /* @__PURE__ */ n.jsxs(
3157
- Z,
3158
- {
3159
- className: "gap-2 items-center",
3160
- variant: "outline",
3161
- onClick: u.login,
3162
- children: [
3163
- "Login to open in Playground ",
3164
- /* @__PURE__ */ n.jsx(vn, { size: 16 })
3165
- ]
3166
- }
3167
- ) : /* @__PURE__ */ n.jsx(
3168
- kr,
3169
- {
3170
- url: i ?? "/",
3171
- method: o ?? "get",
3172
- server: r,
3173
- ...l,
3174
- children: /* @__PURE__ */ n.jsx(Z, { className: "gap-2 items-center", variant: "outline", children: c ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3175
- "Open in Playground ",
3176
- /* @__PURE__ */ n.jsx(bn, { size: 16 })
3177
- ] }) })
3178
- }
3179
- );
3180
- }
3181
- }),
3182
- getSidebar: async (a, r) => {
3183
- if (!st({ path: t, end: !1 }, a))
3184
- return [];
3185
- const o = st(
3186
- { path: `${t}/:version?/:tag`, end: !0 },
3187
- a
3188
- );
3189
- try {
3190
- const i = o?.params.version, c = i ?? sn(e).at(0), { type: l } = e, u = l === "file" ? e.input[c] : e.input, p = _t(s, rn, {
3191
- type: l,
3192
- input: u
3193
- }), v = await r.queryClient.ensureQueryData(p), f = v.schema.tags.flatMap((m) => {
3194
- if (!m.name || m.operations.length === 0) return [];
3195
- const y = R(t, i, m.slug), S = m.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, N = m.extensions?.["x-zudoku-collapsible"] ?? !0;
3196
- return gt({
3197
- label: m.name,
3198
- path: y,
3199
- operations: m.operations,
3200
- collapsed: S,
3201
- collapsible: N
3202
- });
3203
- }), x = v.schema.tags.find(
3204
- (m) => !m.name
3205
- )?.operations;
3206
- return x && f.push(
3207
- gt({
3208
- label: "Other endpoints",
3209
- path: R(t, i, Qe),
3210
- operations: x,
3211
- collapsed: !e.options?.expandAllTags
3212
- })
3213
- ), v.schema.components?.schemas?.length && f.push({
3214
- type: "link",
3215
- label: "Schemas",
3216
- href: R(t, i, "~schemas")
3217
- }), f;
3218
- } catch {
3219
- return [];
3220
- }
3221
- },
3222
- getRoutes: () => zr({ basePath: t, config: e, client: s })
3223
- };
3224
- };
3225
- export {
3226
- ya as A,
3227
- gs as B,
3228
- mt as C,
3229
- hs as D,
3230
- kt as E,
3231
- rn as F,
3232
- va as G,
3233
- ja as H,
3234
- ys as L,
3235
- ba as O,
3236
- kr as P,
3237
- ms as Q,
3238
- Ee as S,
3239
- h as T,
3240
- Qe as U,
3241
- Fs as a,
3242
- pt as b,
3243
- ht as c,
3244
- Js as d,
3245
- tr as e,
3246
- Ht as f,
3247
- sn as g,
3248
- Xs as h,
3249
- ie as i,
3250
- $e as j,
3251
- le as k,
3252
- G as l,
3253
- jr as m,
3254
- qs as n,
3255
- Bt as o,
3256
- ct as p,
3257
- ga as q,
3258
- vs as r,
3259
- O as s,
3260
- Be as t,
3261
- qr as u,
3262
- Ft as v,
3263
- is as w,
3264
- Ds as x,
3265
- ye as y,
3266
- ls as z
3267
- };
3268
- //# sourceMappingURL=index-DCHP-Cbn.js.map