zudoku 0.0.0-f49e3ea → 0.0.0-f52e8af

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