zudoku 0.3.0-dev.5 → 0.3.0-dev.50

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 (483) hide show
  1. package/dist/app/App.d.ts +1 -2
  2. package/dist/app/App.js +1 -28
  3. package/dist/app/App.js.map +1 -1
  4. package/dist/app/demo.d.ts +2 -0
  5. package/dist/app/demo.js +27 -0
  6. package/dist/app/demo.js.map +1 -0
  7. package/dist/app/entry.client.d.ts +2 -0
  8. package/dist/app/entry.client.js +35 -0
  9. package/dist/app/entry.client.js.map +1 -0
  10. package/dist/app/entry.server.d.ts +12 -0
  11. package/dist/app/entry.server.js +104 -0
  12. package/dist/app/entry.server.js.map +1 -0
  13. package/dist/app/main.d.ts +6 -1
  14. package/dist/app/main.js +54 -12
  15. package/dist/app/main.js.map +1 -1
  16. package/dist/app/standalone.d.ts +2 -0
  17. package/dist/app/standalone.js +32 -0
  18. package/dist/app/standalone.js.map +1 -0
  19. package/dist/app/tailwind.d.ts +1 -1
  20. package/dist/app/tailwind.js +0 -4
  21. package/dist/app/tailwind.js.map +1 -1
  22. package/dist/app/zudoku-manifest.d.ts +1 -0
  23. package/dist/app/zudoku-manifest.js +20 -0
  24. package/dist/app/zudoku-manifest.js.map +1 -0
  25. package/dist/cli/cmds/dev.js +5 -0
  26. package/dist/cli/cmds/dev.js.map +1 -1
  27. package/dist/cli/dev/handler.d.ts +1 -0
  28. package/dist/cli/dev/handler.js +3 -1
  29. package/dist/cli/dev/handler.js.map +1 -1
  30. package/dist/config/config.d.ts +5 -39
  31. package/dist/config/validators/validate.d.ts +799 -2
  32. package/dist/config/validators/validate.js +134 -1
  33. package/dist/config/validators/validate.js.map +1 -1
  34. package/dist/internal.d.ts +1 -0
  35. package/dist/internal.js +2 -0
  36. package/dist/internal.js.map +1 -0
  37. package/dist/lib/authentication/Callback.js +1 -1
  38. package/dist/lib/authentication/Callback.js.map +1 -1
  39. package/dist/lib/authentication/authentication.d.ts +2 -2
  40. package/dist/lib/authentication/hook.d.ts +1 -0
  41. package/dist/lib/authentication/hook.js +1 -0
  42. package/dist/lib/authentication/hook.js.map +1 -1
  43. package/dist/lib/authentication/providers/auth0.js +1 -0
  44. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  45. package/dist/lib/authentication/providers/clerk.js +4 -0
  46. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  47. package/dist/lib/authentication/providers/openid.d.ts +1 -1
  48. package/dist/lib/authentication/providers/openid.js +2 -0
  49. package/dist/lib/authentication/providers/openid.js.map +1 -1
  50. package/dist/lib/authentication/state.d.ts +1 -0
  51. package/dist/lib/authentication/state.js +1 -0
  52. package/dist/lib/authentication/state.js.map +1 -1
  53. package/dist/lib/components/Bootstrap.d.ts +12 -0
  54. package/dist/lib/components/Bootstrap.js +9 -0
  55. package/dist/lib/components/Bootstrap.js.map +1 -0
  56. package/dist/lib/components/DevPortal.d.ts +4 -19
  57. package/dist/lib/components/DevPortal.js +17 -12
  58. package/dist/lib/components/DevPortal.js.map +1 -1
  59. package/dist/lib/components/ErrorPage.d.ts +6 -0
  60. package/dist/lib/components/ErrorPage.js +9 -0
  61. package/dist/lib/components/ErrorPage.js.map +1 -0
  62. package/dist/lib/components/Header.js +3 -3
  63. package/dist/lib/components/Header.js.map +1 -1
  64. package/dist/lib/components/Heading.d.ts +9 -4
  65. package/dist/lib/components/Heading.js +17 -2
  66. package/dist/lib/components/Heading.js.map +1 -1
  67. package/dist/lib/components/InlineCode.d.ts +5 -0
  68. package/dist/lib/components/InlineCode.js +4 -0
  69. package/dist/lib/components/InlineCode.js.map +1 -0
  70. package/dist/lib/components/Layout.js +3 -2
  71. package/dist/lib/components/Layout.js.map +1 -1
  72. package/dist/lib/components/NotFoundPage.d.ts +1 -0
  73. package/dist/lib/components/NotFoundPage.js +12 -0
  74. package/dist/lib/components/NotFoundPage.js.map +1 -0
  75. package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
  76. package/dist/lib/components/SyntaxHighlight.js +21 -19
  77. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  78. package/dist/lib/components/TopNavigation.d.ts +1 -1
  79. package/dist/lib/components/TopNavigation.js +4 -0
  80. package/dist/lib/components/TopNavigation.js.map +1 -1
  81. package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
  82. package/dist/lib/components/context/DevPortalProvider.js +2 -2
  83. package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
  84. package/dist/lib/components/index.d.ts +28 -3
  85. package/dist/lib/components/index.js +17 -3
  86. package/dist/lib/components/index.js.map +1 -1
  87. package/dist/lib/core/DevPortalContext.d.ts +36 -6
  88. package/dist/lib/core/DevPortalContext.js +9 -6
  89. package/dist/lib/core/DevPortalContext.js.map +1 -1
  90. package/dist/lib/core/plugins.d.ts +7 -4
  91. package/dist/lib/core/plugins.js +1 -0
  92. package/dist/lib/core/plugins.js.map +1 -1
  93. package/dist/lib/errors/ErrorAlert.d.ts +3 -0
  94. package/dist/lib/errors/ErrorAlert.js +8 -0
  95. package/dist/lib/errors/ErrorAlert.js.map +1 -0
  96. package/dist/lib/errors/RouterError.d.ts +1 -0
  97. package/dist/lib/errors/RouterError.js +12 -0
  98. package/dist/lib/errors/RouterError.js.map +1 -0
  99. package/dist/lib/errors/ServerError.d.ts +3 -0
  100. package/dist/lib/errors/ServerError.js +6 -0
  101. package/dist/lib/errors/ServerError.js.map +1 -0
  102. package/dist/lib/errors/TopLevelError.d.ts +2 -0
  103. package/dist/lib/errors/TopLevelError.js +7 -0
  104. package/dist/lib/errors/TopLevelError.js.map +1 -0
  105. package/dist/lib/oas/graphql/index.js +1 -1
  106. package/dist/lib/oas/graphql/index.js.map +1 -1
  107. package/dist/lib/oas/parser/index.d.ts +1 -1
  108. package/dist/lib/oas/parser/index.js +38 -12
  109. package/dist/lib/oas/parser/index.js.map +1 -1
  110. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +4 -0
  111. package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +1 -1
  112. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
  113. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +4 -0
  114. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +39 -0
  115. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
  116. package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +2 -3
  117. package/dist/lib/plugins/{api-key → api-keys}/index.js +15 -4
  118. package/dist/lib/plugins/api-keys/index.js.map +1 -0
  119. package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
  120. package/dist/lib/plugins/markdown/MdxPage.js +7 -6
  121. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  122. package/dist/lib/plugins/markdown/Toc.js +1 -1
  123. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  124. package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -3
  125. package/dist/lib/plugins/markdown/generateRoutes.js +4 -4
  126. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  127. package/dist/lib/plugins/markdown/index.d.ts +4 -1
  128. package/dist/lib/plugins/markdown/index.js +3 -7
  129. package/dist/lib/plugins/markdown/index.js.map +1 -1
  130. package/dist/lib/plugins/openapi/OperationList.js +16 -5
  131. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  132. package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
  133. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  134. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  135. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  136. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  137. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  138. package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +1 -1
  139. package/dist/lib/plugins/openapi/{MakeRequest.js → PlaygroundDialogWrapper.js} +5 -5
  140. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
  141. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +1 -9
  142. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  143. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
  144. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  145. package/dist/lib/plugins/openapi/Route.d.ts +6 -0
  146. package/dist/lib/plugins/openapi/Route.js +8 -0
  147. package/dist/lib/plugins/openapi/Route.js.map +1 -0
  148. package/dist/lib/plugins/openapi/SchemaListView.js +6 -27
  149. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
  150. package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
  151. package/dist/lib/plugins/openapi/SchemaListViewItem.js +16 -0
  152. package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
  153. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
  154. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
  155. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
  156. package/dist/lib/plugins/openapi/Sidecar.js +10 -8
  157. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  158. package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
  159. package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
  160. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
  161. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
  162. package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
  163. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
  164. package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
  165. package/dist/lib/plugins/openapi/client/createServer.js +30 -0
  166. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
  167. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
  168. package/dist/lib/plugins/openapi/{worker/createSharedWorkerClient.js → client/createWorkerClient.js} +15 -2
  169. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
  170. package/dist/lib/plugins/openapi/client/interfaces.d.ts +4 -0
  171. package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
  172. package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
  173. package/dist/lib/plugins/openapi/{worker → client}/worker.js +2 -2
  174. package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
  175. package/dist/lib/plugins/openapi/context.d.ts +5 -0
  176. package/dist/lib/plugins/openapi/context.js +11 -0
  177. package/dist/lib/plugins/openapi/context.js.map +1 -0
  178. package/dist/lib/plugins/openapi/index.d.ts +4 -18
  179. package/dist/lib/plugins/openapi/index.js +35 -20
  180. package/dist/lib/plugins/openapi/index.js.map +1 -1
  181. package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
  182. package/dist/lib/plugins/openapi/interfaces.js +2 -0
  183. package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
  184. package/dist/lib/plugins/openapi/playground/Headers.d.ts +2 -3
  185. package/dist/lib/plugins/openapi/playground/Headers.js +16 -6
  186. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  187. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +1 -1
  188. package/dist/lib/plugins/openapi/playground/Playground.d.ts +4 -3
  189. package/dist/lib/plugins/openapi/playground/Playground.js +8 -12
  190. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  191. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -0
  192. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +10 -0
  193. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
  194. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  195. package/dist/lib/plugins/openapi/playground/QueryParams.js +2 -1
  196. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  197. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
  198. package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
  199. package/dist/lib/plugins/openapi/util/prose.js +4 -0
  200. package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
  201. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  202. package/dist/lib/plugins/openapi-worker.js +1 -1
  203. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  204. package/dist/lib/plugins/redirect/index.d.ts +0 -1
  205. package/dist/lib/plugins/redirect/index.js +3 -4
  206. package/dist/lib/plugins/redirect/index.js.map +1 -1
  207. package/dist/lib/ui/Callout.js +2 -2
  208. package/dist/lib/ui/Callout.js.map +1 -1
  209. package/dist/lib/ui/button-variants.d.ts +1 -1
  210. package/dist/lib/util/MdxComponents.d.ts +2 -2
  211. package/dist/lib/util/MdxComponents.js +6 -4
  212. package/dist/lib/util/MdxComponents.js.map +1 -1
  213. package/dist/lib/util/groupBy.d.ts +1 -6
  214. package/dist/lib/util/groupBy.js +10 -8
  215. package/dist/lib/util/groupBy.js.map +1 -1
  216. package/dist/lib/util/logInit.d.ts +1 -0
  217. package/dist/lib/util/logInit.js +9 -0
  218. package/dist/lib/util/logInit.js.map +1 -0
  219. package/dist/lib/util/objectEntries.d.ts +4 -0
  220. package/dist/lib/util/objectEntries.js +2 -0
  221. package/dist/lib/util/objectEntries.js.map +1 -0
  222. package/dist/lib/util/renderIf.d.ts +1 -0
  223. package/dist/lib/util/renderIf.js +2 -0
  224. package/dist/lib/util/renderIf.js.map +1 -0
  225. package/dist/vite/build.js +26 -6
  226. package/dist/vite/build.js.map +1 -1
  227. package/dist/vite/config.d.ts +13 -12
  228. package/dist/vite/config.js +100 -55
  229. package/dist/vite/config.js.map +1 -1
  230. package/dist/vite/config.test.js +7 -4
  231. package/dist/vite/config.test.js.map +1 -1
  232. package/dist/vite/dev-server.d.ts +2 -1
  233. package/dist/vite/dev-server.js +43 -15
  234. package/dist/vite/dev-server.js.map +1 -1
  235. package/dist/vite/html.js +18 -5
  236. package/dist/vite/html.js.map +1 -1
  237. package/dist/vite/plugin-api-keys.js +7 -8
  238. package/dist/vite/plugin-api-keys.js.map +1 -1
  239. package/dist/vite/plugin-api.js +9 -20
  240. package/dist/vite/plugin-api.js.map +1 -1
  241. package/dist/vite/plugin-auth.js +5 -6
  242. package/dist/vite/plugin-auth.js.map +1 -1
  243. package/dist/vite/plugin-component.js +4 -2
  244. package/dist/vite/plugin-component.js.map +1 -1
  245. package/dist/vite/plugin-config.d.ts +0 -2
  246. package/dist/vite/plugin-config.js +2 -13
  247. package/dist/vite/plugin-config.js.map +1 -1
  248. package/dist/vite/plugin-custom-css.d.ts +6 -0
  249. package/dist/vite/plugin-custom-css.js +55 -0
  250. package/dist/vite/plugin-custom-css.js.map +1 -0
  251. package/dist/vite/plugin-docs.js +15 -5
  252. package/dist/vite/plugin-docs.js.map +1 -1
  253. package/dist/vite/plugin-docs.test.js +1 -1
  254. package/dist/vite/plugin-docs.test.js.map +1 -1
  255. package/dist/vite/plugin-mdx.d.ts +3 -1
  256. package/dist/vite/plugin-mdx.js +5 -5
  257. package/dist/vite/plugin-mdx.js.map +1 -1
  258. package/dist/vite/plugin-metadata.js +1 -1
  259. package/dist/vite/plugin-metadata.js.map +1 -1
  260. package/dist/vite/plugin-redirect.js +10 -10
  261. package/dist/vite/plugin-redirect.js.map +1 -1
  262. package/dist/vite/plugin.js +3 -5
  263. package/dist/vite/plugin.js.map +1 -1
  264. package/dist/vite/prerender.d.ts +17 -0
  265. package/dist/vite/prerender.js +55 -0
  266. package/dist/vite/prerender.js.map +1 -0
  267. package/lib/AnchorLink-CZUp-F0P.js +705 -0
  268. package/lib/AnchorLink-CZUp-F0P.js.map +1 -0
  269. package/lib/DevPortalProvider-Do9oJqme.js +1081 -0
  270. package/lib/DevPortalProvider-Do9oJqme.js.map +1 -0
  271. package/lib/Markdown-Dbzrtopg.js +15030 -0
  272. package/lib/Markdown-Dbzrtopg.js.map +1 -0
  273. package/lib/MdxPage-JvboTsbK.js +190 -0
  274. package/lib/MdxPage-JvboTsbK.js.map +1 -0
  275. package/lib/OperationList-DGdaixGa.js +5562 -0
  276. package/lib/OperationList-DGdaixGa.js.map +1 -0
  277. package/lib/Route-C1LyvITr.js +13 -0
  278. package/lib/Route-C1LyvITr.js.map +1 -0
  279. package/lib/Select-DHm1jDdS.js +4571 -0
  280. package/lib/Select-DHm1jDdS.js.map +1 -0
  281. package/lib/Spinner-BSk0ImmP.js +182 -0
  282. package/lib/Spinner-BSk0ImmP.js.map +1 -0
  283. package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
  284. package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
  285. package/lib/assets/index-BPdJm2ty.js +1 -0
  286. package/lib/assets/index-BPdJm2ty.js.map +1 -0
  287. package/lib/assets/{worker-BCcpCNJ7.js → worker-BjPv-hjP.js} +10742 -10318
  288. package/lib/assets/worker-BjPv-hjP.js.map +1 -0
  289. package/lib/context-_fYfJFgk.js +14 -0
  290. package/lib/context-_fYfJFgk.js.map +1 -0
  291. package/lib/hook-DCYGmylw.js +77 -0
  292. package/lib/hook-DCYGmylw.js.map +1 -0
  293. package/lib/index-CXXn0D4E.js +412 -0
  294. package/lib/index-CXXn0D4E.js.map +1 -0
  295. package/lib/index-DSZ4Cj5q.js +725 -0
  296. package/lib/index-DSZ4Cj5q.js.map +1 -0
  297. package/lib/index-pI9JkN46.js +4765 -0
  298. package/lib/index-pI9JkN46.js.map +1 -0
  299. package/lib/jsx-runtime-CJZJivg2.js +1526 -0
  300. package/lib/jsx-runtime-CJZJivg2.js.map +1 -0
  301. package/lib/prism-bash.min-DadFsM4Z.js +1 -0
  302. package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
  303. package/lib/prism-csharp.min-Yizuc34Y.js +35 -0
  304. package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
  305. package/lib/prism-java.min-d5iT_mOd.js +1 -0
  306. package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
  307. package/lib/prism-json.min-B1GJqK1k.js +1 -0
  308. package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
  309. package/lib/prism-markup-templating-DZrrEs0A.js +1 -0
  310. package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
  311. package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
  312. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
  313. package/lib/prism-php.min-o7FpoMP_.js +1 -0
  314. package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
  315. package/lib/prism-ruby.min-C7LwcKyz.js +1 -0
  316. package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
  317. package/lib/router-CBw2vqJE.js +2973 -0
  318. package/lib/router-CBw2vqJE.js.map +1 -0
  319. package/lib/slugify-CiPVjteN.js +28 -0
  320. package/lib/slugify-CiPVjteN.js.map +1 -0
  321. package/lib/state-D36MLDHk.js +289 -0
  322. package/lib/state-D36MLDHk.js.map +1 -0
  323. package/lib/urql-DMlBWUKL.js +1 -0
  324. package/lib/urql-DMlBWUKL.js.map +1 -0
  325. package/lib/util-_jwUlTBU.js +41 -0
  326. package/lib/util-_jwUlTBU.js.map +1 -0
  327. package/lib/zudoku.auth-auth0.js +3 -1
  328. package/lib/zudoku.auth-auth0.js.map +1 -0
  329. package/lib/zudoku.auth-clerk.js +11 -8
  330. package/lib/zudoku.auth-clerk.js.map +1 -0
  331. package/lib/zudoku.auth-openid.js +8 -4
  332. package/lib/zudoku.auth-openid.js.map +1 -0
  333. package/lib/zudoku.components.js +804 -447
  334. package/lib/zudoku.components.js.map +1 -0
  335. package/lib/zudoku.openapi-worker.js +15032 -146
  336. package/lib/zudoku.openapi-worker.js.map +1 -0
  337. package/lib/zudoku.plugin-api-keys.js +302 -0
  338. package/lib/zudoku.plugin-api-keys.js.map +1 -0
  339. package/lib/zudoku.plugin-markdown.js +49 -0
  340. package/lib/zudoku.plugin-markdown.js.map +1 -0
  341. package/lib/zudoku.plugin-openapi.js +10 -0
  342. package/lib/zudoku.plugin-openapi.js.map +1 -0
  343. package/lib/zudoku.plugin-redirect.js +11 -0
  344. package/lib/zudoku.plugin-redirect.js.map +1 -0
  345. package/package.json +37 -15
  346. package/src/app/App.tsx +0 -40
  347. package/src/app/demo-cdn.html +26 -0
  348. package/src/app/demo.html +18 -0
  349. package/src/app/demo.tsx +40 -0
  350. package/src/app/entry.client.tsx +47 -0
  351. package/src/app/entry.server.tsx +158 -0
  352. package/src/app/main.css +74 -0
  353. package/src/app/main.tsx +71 -15
  354. package/src/app/standalone.html +20 -0
  355. package/src/app/standalone.tsx +46 -0
  356. package/src/app/tailwind.ts +2 -6
  357. package/src/app/zudoku-manifest.ts +22 -0
  358. package/src/lib/authentication/Callback.tsx +1 -1
  359. package/src/lib/authentication/authentication.ts +2 -5
  360. package/src/lib/authentication/hook.ts +1 -0
  361. package/src/lib/authentication/providers/auth0.tsx +1 -0
  362. package/src/lib/authentication/providers/clerk.tsx +3 -0
  363. package/src/lib/authentication/providers/openid.tsx +3 -1
  364. package/src/lib/authentication/state.ts +2 -0
  365. package/src/lib/components/Bootstrap.tsx +37 -0
  366. package/src/lib/components/DevPortal.tsx +41 -56
  367. package/src/lib/components/ErrorPage.tsx +28 -0
  368. package/src/lib/components/Header.tsx +13 -7
  369. package/src/lib/components/Heading.tsx +26 -7
  370. package/src/lib/components/InlineCode.tsx +19 -0
  371. package/src/lib/components/Layout.tsx +9 -7
  372. package/src/lib/components/NotFoundPage.tsx +39 -0
  373. package/src/lib/components/SyntaxHighlight.tsx +27 -19
  374. package/src/lib/components/TopNavigation.tsx +5 -0
  375. package/src/lib/components/context/DevPortalProvider.ts +2 -2
  376. package/src/lib/components/index.ts +21 -3
  377. package/src/lib/core/DevPortalContext.ts +46 -17
  378. package/src/lib/core/plugins.ts +10 -5
  379. package/src/lib/errors/ErrorAlert.tsx +21 -0
  380. package/src/lib/errors/RouterError.tsx +13 -0
  381. package/src/lib/errors/ServerError.tsx +5 -0
  382. package/src/lib/errors/TopLevelError.tsx +8 -0
  383. package/src/lib/oas/graphql/index.ts +2 -2
  384. package/src/lib/oas/parser/index.ts +41 -20
  385. package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +2 -8
  386. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +139 -0
  387. package/src/lib/plugins/{api-key → api-keys}/index.tsx +22 -9
  388. package/src/lib/plugins/markdown/MdxPage.tsx +51 -34
  389. package/src/lib/plugins/markdown/Toc.tsx +1 -1
  390. package/src/lib/plugins/markdown/generateRoutes.tsx +16 -6
  391. package/src/lib/plugins/markdown/index.tsx +10 -7
  392. package/src/lib/plugins/openapi/OperationList.tsx +40 -4
  393. package/src/lib/plugins/openapi/OperationListItem.tsx +69 -42
  394. package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
  395. package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
  396. package/src/lib/plugins/openapi/{MakeRequest.tsx → PlaygroundDialogWrapper.tsx} +4 -4
  397. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -16
  398. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -1
  399. package/src/lib/plugins/openapi/Route.tsx +21 -0
  400. package/src/lib/plugins/openapi/SchemaListView.tsx +23 -192
  401. package/src/lib/plugins/openapi/SchemaListViewItem.tsx +110 -0
  402. package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
  403. package/src/lib/plugins/openapi/Sidecar.tsx +15 -10
  404. package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +6 -3
  405. package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
  406. package/src/lib/plugins/openapi/client/createServer.ts +33 -0
  407. package/src/lib/plugins/openapi/{worker/createSharedWorkerClient.ts → client/createWorkerClient.ts} +21 -2
  408. package/src/lib/plugins/openapi/client/interfaces.ts +5 -0
  409. package/src/lib/plugins/openapi/{worker → client}/worker.ts +3 -3
  410. package/src/lib/plugins/openapi/context.tsx +16 -0
  411. package/src/lib/plugins/openapi/index.tsx +59 -52
  412. package/src/lib/plugins/openapi/interfaces.ts +9 -0
  413. package/src/lib/plugins/openapi/playground/Headers.tsx +60 -33
  414. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
  415. package/src/lib/plugins/openapi/playground/Playground.tsx +158 -193
  416. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +34 -0
  417. package/src/lib/plugins/openapi/playground/QueryParams.tsx +7 -2
  418. package/src/lib/plugins/openapi/playground/createUrl.ts +1 -1
  419. package/src/lib/plugins/openapi/util/prose.ts +7 -0
  420. package/src/lib/plugins/openapi-worker.ts +1 -1
  421. package/src/lib/plugins/redirect/index.tsx +3 -4
  422. package/src/lib/ui/Callout.tsx +4 -4
  423. package/src/lib/util/MdxComponents.tsx +6 -14
  424. package/src/lib/util/groupBy.ts +7 -12
  425. package/src/lib/util/logInit.ts +9 -0
  426. package/src/lib/util/objectEntries.ts +5 -0
  427. package/src/lib/util/renderIf.ts +4 -0
  428. package/dist/lib/components/Link.d.ts +0 -1
  429. package/dist/lib/components/Link.js +0 -2
  430. package/dist/lib/components/Link.js.map +0 -1
  431. package/dist/lib/components/Router.d.ts +0 -4
  432. package/dist/lib/components/Router.js +0 -20
  433. package/dist/lib/components/Router.js.map +0 -1
  434. package/dist/lib/core/helmet.d.ts +0 -4
  435. package/dist/lib/core/helmet.js +0 -5
  436. package/dist/lib/core/helmet.js.map +0 -1
  437. package/dist/lib/core/icons.d.ts +0 -1
  438. package/dist/lib/core/icons.js +0 -2
  439. package/dist/lib/core/icons.js.map +0 -1
  440. package/dist/lib/core/router.d.ts +0 -1
  441. package/dist/lib/core/router.js +0 -2
  442. package/dist/lib/core/router.js.map +0 -1
  443. package/dist/lib/plugins/api-key/CreateApiKey.d.ts +0 -5
  444. package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
  445. package/dist/lib/plugins/api-key/SettingsApiKeys.d.ts +0 -5
  446. package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -37
  447. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
  448. package/dist/lib/plugins/api-key/index.js.map +0 -1
  449. package/dist/lib/plugins/index.d.ts +0 -4
  450. package/dist/lib/plugins/index.js +0 -5
  451. package/dist/lib/plugins/index.js.map +0 -1
  452. package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
  453. package/dist/lib/plugins/openapi/Select.js +0 -5
  454. package/dist/lib/plugins/openapi/Select.js.map +0 -1
  455. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
  456. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
  457. package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +0 -1
  458. package/dist/lib/plugins/openapi/worker/shared-worker.js +0 -6
  459. package/dist/lib/plugins/openapi/worker/shared-worker.js.map +0 -1
  460. package/dist/lib/plugins/openapi/worker/worker.js.map +0 -1
  461. package/dist/vite/common.d.ts +0 -1
  462. package/dist/vite/common.js +0 -5
  463. package/dist/vite/common.js.map +0 -1
  464. package/dist/vite/plugin-html.d.ts +0 -3
  465. package/dist/vite/plugin-html.js +0 -47
  466. package/dist/vite/plugin-html.js.map +0 -1
  467. package/dist/vite/plugin-openapi-worker.d.ts +0 -4
  468. package/dist/vite/plugin-openapi-worker.js +0 -28
  469. package/dist/vite/plugin-openapi-worker.js.map +0 -1
  470. package/lib/Spinner-DWHrSHMP.js +0 -8411
  471. package/lib/clerk-Wslx_mPo.js +0 -19685
  472. package/lib/index-DNx3xWa2.js +0 -3461
  473. package/lib/state-DfftBQ9X.js +0 -312
  474. package/lib/zudoku.plugins.js +0 -19873
  475. package/src/lib/components/Link.tsx +0 -1
  476. package/src/lib/components/Router.tsx +0 -28
  477. package/src/lib/core/helmet.ts +0 -5
  478. package/src/lib/core/icons.tsx +0 -1
  479. package/src/lib/core/router.tsx +0 -1
  480. package/src/lib/plugins/api-key/SettingsApiKeys.tsx +0 -122
  481. package/src/lib/plugins/index.ts +0 -4
  482. package/src/lib/plugins/openapi/worker/shared-worker.ts +0 -5
  483. /package/dist/lib/plugins/openapi/{worker → client}/worker.d.ts +0 -0
@@ -0,0 +1,725 @@
1
+ import { j as n, c as k } from "./jsx-runtime-CJZJivg2.js";
2
+ import { e as r, P as o, g as u, H as c, L as p, S as v } from "./Markdown-Dbzrtopg.js";
3
+ import { C as N, c as y, f as F } from "./urql-DMlBWUKL.js";
4
+ import { createClient as S } from "zudoku/openapi-worker";
5
+ import { m as g } from "./router-CBw2vqJE.js";
6
+ const I = {
7
+ get: "text-green-600",
8
+ post: "text-sky-600",
9
+ put: "text-yellow-600",
10
+ delete: "text-red-600",
11
+ patch: "text-purple-600",
12
+ options: "text-indigo-600",
13
+ head: "text-gray-600",
14
+ trace: "text-gray-600"
15
+ }, h = {
16
+ get: "bg-green-400 dark:bg-green-800",
17
+ post: "bg-sky-400 dark:bg-sky-800",
18
+ put: "bg-yellow-400 dark:bg-yellow-800",
19
+ delete: "bg-red-400 dark:bg-red-800",
20
+ patch: "bg-purple-400 dark:bg-purple-600",
21
+ options: "bg-indigo-400 dark:bg-indigo-600",
22
+ head: "bg-gray-400 dark:bg-gray-600",
23
+ trace: "bg-gray-400 dark:bg-gray-600"
24
+ }, b = ({ method: e }) => /* @__PURE__ */ n.jsx(
25
+ "span",
26
+ {
27
+ className: r(
28
+ "mt-0.5 flex items-center duration-200 transition-opacity text-center uppercase font-mono text-[0.65rem] font-bold rounded text-background dark:text-zinc-50 h-4 px-1",
29
+ h[e]
30
+ ),
31
+ children: e
32
+ }
33
+ ), x = {
34
+ kind: "Document",
35
+ definitions: [
36
+ {
37
+ kind: "FragmentDefinition",
38
+ name: { kind: "Name", value: "OperationsFragment" },
39
+ typeCondition: {
40
+ kind: "NamedType",
41
+ name: { kind: "Name", value: "OperationItem" }
42
+ },
43
+ selectionSet: {
44
+ kind: "SelectionSet",
45
+ selections: [
46
+ { kind: "Field", name: { kind: "Name", value: "slug" } },
47
+ { kind: "Field", name: { kind: "Name", value: "summary" } },
48
+ { kind: "Field", name: { kind: "Name", value: "method" } },
49
+ { kind: "Field", name: { kind: "Name", value: "description" } },
50
+ { kind: "Field", name: { kind: "Name", value: "operationId" } },
51
+ { kind: "Field", name: { kind: "Name", value: "contentTypes" } },
52
+ { kind: "Field", name: { kind: "Name", value: "path" } },
53
+ {
54
+ kind: "Field",
55
+ name: { kind: "Name", value: "parameters" },
56
+ selectionSet: {
57
+ kind: "SelectionSet",
58
+ selections: [
59
+ { kind: "Field", name: { kind: "Name", value: "name" } },
60
+ { kind: "Field", name: { kind: "Name", value: "in" } },
61
+ { kind: "Field", name: { kind: "Name", value: "description" } },
62
+ { kind: "Field", name: { kind: "Name", value: "required" } },
63
+ { kind: "Field", name: { kind: "Name", value: "schema" } },
64
+ { kind: "Field", name: { kind: "Name", value: "style" } },
65
+ {
66
+ kind: "Field",
67
+ name: { kind: "Name", value: "examples" },
68
+ selectionSet: {
69
+ kind: "SelectionSet",
70
+ selections: [
71
+ { kind: "Field", name: { kind: "Name", value: "name" } },
72
+ {
73
+ kind: "Field",
74
+ name: { kind: "Name", value: "description" }
75
+ },
76
+ {
77
+ kind: "Field",
78
+ name: { kind: "Name", value: "externalValue" }
79
+ },
80
+ { kind: "Field", name: { kind: "Name", value: "value" } },
81
+ {
82
+ kind: "Field",
83
+ name: { kind: "Name", value: "summary" }
84
+ }
85
+ ]
86
+ }
87
+ }
88
+ ]
89
+ }
90
+ },
91
+ {
92
+ kind: "Field",
93
+ name: { kind: "Name", value: "requestBody" },
94
+ selectionSet: {
95
+ kind: "SelectionSet",
96
+ selections: [
97
+ {
98
+ kind: "Field",
99
+ name: { kind: "Name", value: "content" },
100
+ selectionSet: {
101
+ kind: "SelectionSet",
102
+ selections: [
103
+ {
104
+ kind: "Field",
105
+ name: { kind: "Name", value: "mediaType" }
106
+ },
107
+ {
108
+ kind: "Field",
109
+ name: { kind: "Name", value: "encoding" },
110
+ selectionSet: {
111
+ kind: "SelectionSet",
112
+ selections: [
113
+ {
114
+ kind: "Field",
115
+ name: { kind: "Name", value: "name" }
116
+ }
117
+ ]
118
+ }
119
+ },
120
+ {
121
+ kind: "Field",
122
+ name: { kind: "Name", value: "schema" }
123
+ }
124
+ ]
125
+ }
126
+ },
127
+ { kind: "Field", name: { kind: "Name", value: "description" } },
128
+ { kind: "Field", name: { kind: "Name", value: "required" } }
129
+ ]
130
+ }
131
+ },
132
+ {
133
+ kind: "Field",
134
+ name: { kind: "Name", value: "responses" },
135
+ selectionSet: {
136
+ kind: "SelectionSet",
137
+ selections: [
138
+ { kind: "Field", name: { kind: "Name", value: "statusCode" } },
139
+ { kind: "Field", name: { kind: "Name", value: "links" } },
140
+ { kind: "Field", name: { kind: "Name", value: "description" } },
141
+ {
142
+ kind: "Field",
143
+ name: { kind: "Name", value: "content" },
144
+ selectionSet: {
145
+ kind: "SelectionSet",
146
+ selections: [
147
+ {
148
+ kind: "Field",
149
+ name: { kind: "Name", value: "mediaType" }
150
+ },
151
+ {
152
+ kind: "Field",
153
+ name: { kind: "Name", value: "encoding" },
154
+ selectionSet: {
155
+ kind: "SelectionSet",
156
+ selections: [
157
+ {
158
+ kind: "Field",
159
+ name: { kind: "Name", value: "name" }
160
+ }
161
+ ]
162
+ }
163
+ },
164
+ {
165
+ kind: "Field",
166
+ name: { kind: "Name", value: "schema" }
167
+ }
168
+ ]
169
+ }
170
+ }
171
+ ]
172
+ }
173
+ }
174
+ ]
175
+ }
176
+ }
177
+ ]
178
+ }, f = {
179
+ kind: "Document",
180
+ definitions: [
181
+ {
182
+ kind: "OperationDefinition",
183
+ operation: "query",
184
+ name: { kind: "Name", value: "getServerQuery" },
185
+ variableDefinitions: [
186
+ {
187
+ kind: "VariableDefinition",
188
+ variable: {
189
+ kind: "Variable",
190
+ name: { kind: "Name", value: "input" }
191
+ },
192
+ type: {
193
+ kind: "NonNullType",
194
+ type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } }
195
+ }
196
+ },
197
+ {
198
+ kind: "VariableDefinition",
199
+ variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
200
+ type: {
201
+ kind: "NonNullType",
202
+ type: {
203
+ kind: "NamedType",
204
+ name: { kind: "Name", value: "SchemaType" }
205
+ }
206
+ }
207
+ }
208
+ ],
209
+ selectionSet: {
210
+ kind: "SelectionSet",
211
+ selections: [
212
+ {
213
+ kind: "Field",
214
+ name: { kind: "Name", value: "schema" },
215
+ arguments: [
216
+ {
217
+ kind: "Argument",
218
+ name: { kind: "Name", value: "input" },
219
+ value: {
220
+ kind: "Variable",
221
+ name: { kind: "Name", value: "input" }
222
+ }
223
+ },
224
+ {
225
+ kind: "Argument",
226
+ name: { kind: "Name", value: "type" },
227
+ value: {
228
+ kind: "Variable",
229
+ name: { kind: "Name", value: "type" }
230
+ }
231
+ }
232
+ ],
233
+ selectionSet: {
234
+ kind: "SelectionSet",
235
+ selections: [
236
+ { kind: "Field", name: { kind: "Name", value: "url" } }
237
+ ]
238
+ }
239
+ }
240
+ ]
241
+ }
242
+ }
243
+ ]
244
+ }, T = {
245
+ kind: "Document",
246
+ definitions: [
247
+ {
248
+ kind: "OperationDefinition",
249
+ operation: "query",
250
+ name: { kind: "Name", value: "AllOperations" },
251
+ variableDefinitions: [
252
+ {
253
+ kind: "VariableDefinition",
254
+ variable: {
255
+ kind: "Variable",
256
+ name: { kind: "Name", value: "input" }
257
+ },
258
+ type: {
259
+ kind: "NonNullType",
260
+ type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } }
261
+ }
262
+ },
263
+ {
264
+ kind: "VariableDefinition",
265
+ variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
266
+ type: {
267
+ kind: "NonNullType",
268
+ type: {
269
+ kind: "NamedType",
270
+ name: { kind: "Name", value: "SchemaType" }
271
+ }
272
+ }
273
+ }
274
+ ],
275
+ selectionSet: {
276
+ kind: "SelectionSet",
277
+ selections: [
278
+ {
279
+ kind: "Field",
280
+ name: { kind: "Name", value: "schema" },
281
+ arguments: [
282
+ {
283
+ kind: "Argument",
284
+ name: { kind: "Name", value: "input" },
285
+ value: {
286
+ kind: "Variable",
287
+ name: { kind: "Name", value: "input" }
288
+ }
289
+ },
290
+ {
291
+ kind: "Argument",
292
+ name: { kind: "Name", value: "type" },
293
+ value: {
294
+ kind: "Variable",
295
+ name: { kind: "Name", value: "type" }
296
+ }
297
+ }
298
+ ],
299
+ selectionSet: {
300
+ kind: "SelectionSet",
301
+ selections: [
302
+ { kind: "Field", name: { kind: "Name", value: "description" } },
303
+ { kind: "Field", name: { kind: "Name", value: "title" } },
304
+ { kind: "Field", name: { kind: "Name", value: "url" } },
305
+ { kind: "Field", name: { kind: "Name", value: "version" } },
306
+ {
307
+ kind: "Field",
308
+ name: { kind: "Name", value: "tags" },
309
+ selectionSet: {
310
+ kind: "SelectionSet",
311
+ selections: [
312
+ { kind: "Field", name: { kind: "Name", value: "name" } },
313
+ {
314
+ kind: "Field",
315
+ name: { kind: "Name", value: "description" }
316
+ },
317
+ {
318
+ kind: "Field",
319
+ name: { kind: "Name", value: "operations" },
320
+ selectionSet: {
321
+ kind: "SelectionSet",
322
+ selections: [
323
+ {
324
+ kind: "Field",
325
+ name: { kind: "Name", value: "slug" }
326
+ },
327
+ {
328
+ kind: "FragmentSpread",
329
+ name: {
330
+ kind: "Name",
331
+ value: "OperationsFragment"
332
+ }
333
+ }
334
+ ]
335
+ }
336
+ }
337
+ ]
338
+ }
339
+ }
340
+ ]
341
+ }
342
+ }
343
+ ]
344
+ }
345
+ },
346
+ {
347
+ kind: "FragmentDefinition",
348
+ name: { kind: "Name", value: "OperationsFragment" },
349
+ typeCondition: {
350
+ kind: "NamedType",
351
+ name: { kind: "Name", value: "OperationItem" }
352
+ },
353
+ selectionSet: {
354
+ kind: "SelectionSet",
355
+ selections: [
356
+ { kind: "Field", name: { kind: "Name", value: "slug" } },
357
+ { kind: "Field", name: { kind: "Name", value: "summary" } },
358
+ { kind: "Field", name: { kind: "Name", value: "method" } },
359
+ { kind: "Field", name: { kind: "Name", value: "description" } },
360
+ { kind: "Field", name: { kind: "Name", value: "operationId" } },
361
+ { kind: "Field", name: { kind: "Name", value: "contentTypes" } },
362
+ { kind: "Field", name: { kind: "Name", value: "path" } },
363
+ {
364
+ kind: "Field",
365
+ name: { kind: "Name", value: "parameters" },
366
+ selectionSet: {
367
+ kind: "SelectionSet",
368
+ selections: [
369
+ { kind: "Field", name: { kind: "Name", value: "name" } },
370
+ { kind: "Field", name: { kind: "Name", value: "in" } },
371
+ { kind: "Field", name: { kind: "Name", value: "description" } },
372
+ { kind: "Field", name: { kind: "Name", value: "required" } },
373
+ { kind: "Field", name: { kind: "Name", value: "schema" } },
374
+ { kind: "Field", name: { kind: "Name", value: "style" } },
375
+ {
376
+ kind: "Field",
377
+ name: { kind: "Name", value: "examples" },
378
+ selectionSet: {
379
+ kind: "SelectionSet",
380
+ selections: [
381
+ { kind: "Field", name: { kind: "Name", value: "name" } },
382
+ {
383
+ kind: "Field",
384
+ name: { kind: "Name", value: "description" }
385
+ },
386
+ {
387
+ kind: "Field",
388
+ name: { kind: "Name", value: "externalValue" }
389
+ },
390
+ { kind: "Field", name: { kind: "Name", value: "value" } },
391
+ {
392
+ kind: "Field",
393
+ name: { kind: "Name", value: "summary" }
394
+ }
395
+ ]
396
+ }
397
+ }
398
+ ]
399
+ }
400
+ },
401
+ {
402
+ kind: "Field",
403
+ name: { kind: "Name", value: "requestBody" },
404
+ selectionSet: {
405
+ kind: "SelectionSet",
406
+ selections: [
407
+ {
408
+ kind: "Field",
409
+ name: { kind: "Name", value: "content" },
410
+ selectionSet: {
411
+ kind: "SelectionSet",
412
+ selections: [
413
+ {
414
+ kind: "Field",
415
+ name: { kind: "Name", value: "mediaType" }
416
+ },
417
+ {
418
+ kind: "Field",
419
+ name: { kind: "Name", value: "encoding" },
420
+ selectionSet: {
421
+ kind: "SelectionSet",
422
+ selections: [
423
+ {
424
+ kind: "Field",
425
+ name: { kind: "Name", value: "name" }
426
+ }
427
+ ]
428
+ }
429
+ },
430
+ {
431
+ kind: "Field",
432
+ name: { kind: "Name", value: "schema" }
433
+ }
434
+ ]
435
+ }
436
+ },
437
+ { kind: "Field", name: { kind: "Name", value: "description" } },
438
+ { kind: "Field", name: { kind: "Name", value: "required" } }
439
+ ]
440
+ }
441
+ },
442
+ {
443
+ kind: "Field",
444
+ name: { kind: "Name", value: "responses" },
445
+ selectionSet: {
446
+ kind: "SelectionSet",
447
+ selections: [
448
+ { kind: "Field", name: { kind: "Name", value: "statusCode" } },
449
+ { kind: "Field", name: { kind: "Name", value: "links" } },
450
+ { kind: "Field", name: { kind: "Name", value: "description" } },
451
+ {
452
+ kind: "Field",
453
+ name: { kind: "Name", value: "content" },
454
+ selectionSet: {
455
+ kind: "SelectionSet",
456
+ selections: [
457
+ {
458
+ kind: "Field",
459
+ name: { kind: "Name", value: "mediaType" }
460
+ },
461
+ {
462
+ kind: "Field",
463
+ name: { kind: "Name", value: "encoding" },
464
+ selectionSet: {
465
+ kind: "SelectionSet",
466
+ selections: [
467
+ {
468
+ kind: "Field",
469
+ name: { kind: "Name", value: "name" }
470
+ }
471
+ ]
472
+ }
473
+ },
474
+ {
475
+ kind: "Field",
476
+ name: { kind: "Name", value: "schema" }
477
+ }
478
+ ]
479
+ }
480
+ }
481
+ ]
482
+ }
483
+ }
484
+ ]
485
+ }
486
+ }
487
+ ]
488
+ }, O = {
489
+ kind: "Document",
490
+ definitions: [
491
+ {
492
+ kind: "OperationDefinition",
493
+ operation: "query",
494
+ name: { kind: "Name", value: "GetCategories" },
495
+ variableDefinitions: [
496
+ {
497
+ kind: "VariableDefinition",
498
+ variable: {
499
+ kind: "Variable",
500
+ name: { kind: "Name", value: "input" }
501
+ },
502
+ type: {
503
+ kind: "NonNullType",
504
+ type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } }
505
+ }
506
+ },
507
+ {
508
+ kind: "VariableDefinition",
509
+ variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
510
+ type: {
511
+ kind: "NonNullType",
512
+ type: {
513
+ kind: "NamedType",
514
+ name: { kind: "Name", value: "SchemaType" }
515
+ }
516
+ }
517
+ }
518
+ ],
519
+ selectionSet: {
520
+ kind: "SelectionSet",
521
+ selections: [
522
+ {
523
+ kind: "Field",
524
+ name: { kind: "Name", value: "schema" },
525
+ arguments: [
526
+ {
527
+ kind: "Argument",
528
+ name: { kind: "Name", value: "input" },
529
+ value: {
530
+ kind: "Variable",
531
+ name: { kind: "Name", value: "input" }
532
+ }
533
+ },
534
+ {
535
+ kind: "Argument",
536
+ name: { kind: "Name", value: "type" },
537
+ value: {
538
+ kind: "Variable",
539
+ name: { kind: "Name", value: "type" }
540
+ }
541
+ }
542
+ ],
543
+ selectionSet: {
544
+ kind: "SelectionSet",
545
+ selections: [
546
+ {
547
+ kind: "Field",
548
+ name: { kind: "Name", value: "tags" },
549
+ selectionSet: {
550
+ kind: "SelectionSet",
551
+ selections: [
552
+ {
553
+ kind: "Field",
554
+ name: { kind: "Name", value: "__typename" }
555
+ },
556
+ { kind: "Field", name: { kind: "Name", value: "name" } },
557
+ {
558
+ kind: "Field",
559
+ name: { kind: "Name", value: "operations" },
560
+ selectionSet: {
561
+ kind: "SelectionSet",
562
+ selections: [
563
+ {
564
+ kind: "Field",
565
+ name: { kind: "Name", value: "__typename" }
566
+ },
567
+ {
568
+ kind: "Field",
569
+ name: { kind: "Name", value: "slug" }
570
+ },
571
+ {
572
+ kind: "Field",
573
+ name: { kind: "Name", value: "deprecated" }
574
+ },
575
+ {
576
+ kind: "Field",
577
+ name: { kind: "Name", value: "method" }
578
+ },
579
+ {
580
+ kind: "Field",
581
+ name: { kind: "Name", value: "summary" }
582
+ },
583
+ {
584
+ kind: "Field",
585
+ name: { kind: "Name", value: "operationId" }
586
+ },
587
+ {
588
+ kind: "Field",
589
+ name: { kind: "Name", value: "path" }
590
+ }
591
+ ]
592
+ }
593
+ }
594
+ ]
595
+ }
596
+ }
597
+ ]
598
+ }
599
+ }
600
+ ]
601
+ }
602
+ }
603
+ ]
604
+ }, D = {
605
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": f,
606
+ "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\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 schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": x,
607
+ "\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": T,
608
+ "\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n": O
609
+ };
610
+ function V(e) {
611
+ return D[e] ?? {};
612
+ }
613
+ const j = ({
614
+ title: e = "An error occurred",
615
+ message: d,
616
+ category: t
617
+ }) => /* @__PURE__ */ n.jsxs("div", { className: o + " h-full pt-[--padding-content-top]", children: [
618
+ t && /* @__PURE__ */ n.jsx(u, { children: t }),
619
+ e && /* @__PURE__ */ n.jsx(c, { level: 1, className: "flex gap-3.5 items-center", children: e }),
620
+ /* @__PURE__ */ n.jsx("p", { children: d }),
621
+ /* @__PURE__ */ n.jsx(p, { to: "/", children: "Go back home" })
622
+ ] }), q = V(`
623
+ query GetCategories($input: JSON!, $type: SchemaType!) {
624
+ schema(input: $input, type: $type) {
625
+ tags {
626
+ __typename
627
+ name
628
+ operations {
629
+ __typename
630
+ slug
631
+ deprecated
632
+ method
633
+ summary
634
+ operationId
635
+ path
636
+ }
637
+ }
638
+ }
639
+ }
640
+ `), C = () => {
641
+ const e = k(), d = e instanceof Error ? /* @__PURE__ */ n.jsx(v, { code: e.message }) : "An unknown error occurred";
642
+ return /* @__PURE__ */ n.jsx(j, { category: "Error", title: "An error occurred", message: d });
643
+ }, M = (e) => {
644
+ const d = e.path ?? "/reference", t = e.server ? new N({
645
+ url: e.server,
646
+ exchanges: [y, F]
647
+ }) : S({ useMemoryClient: e.inMemory ?? !1 });
648
+ return {
649
+ getHead: () => {
650
+ if (e.type === "url")
651
+ return /* @__PURE__ */ n.jsx(
652
+ "link",
653
+ {
654
+ rel: "preload",
655
+ href: e.input,
656
+ as: "fetch",
657
+ crossOrigin: "anonymous"
658
+ }
659
+ );
660
+ if (e.server)
661
+ return /* @__PURE__ */ n.jsx("link", { rel: "preconnect", href: e.server });
662
+ },
663
+ getNavigation: async (i) => {
664
+ if (!g({ path: d, end: !1 }, i))
665
+ return [];
666
+ const { data: m } = await t.query(q, {
667
+ input: e.input,
668
+ type: e.type
669
+ });
670
+ if (!m) return [];
671
+ const s = m.schema.tags.filter((l) => l.operations.length > 0).map((l) => ({
672
+ path: i,
673
+ label: l.name ?? "",
674
+ collapsible: !1,
675
+ children: l.operations.map((a) => ({
676
+ path: `#${a.slug}`,
677
+ muted: !!a.deprecated,
678
+ title: a.summary ?? a.path,
679
+ label: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 min-w-0 justify-between gap-2", children: [
680
+ /* @__PURE__ */ n.jsx("span", { className: "truncate", children: a.summary ?? a.path }),
681
+ /* @__PURE__ */ n.jsx(b, { method: a.method })
682
+ ] })
683
+ }))
684
+ }));
685
+ return s.unshift({
686
+ path: i,
687
+ label: "Overview",
688
+ collapsible: !1,
689
+ children: [{ path: "#description", label: "Description" }]
690
+ }), s;
691
+ },
692
+ getRoutes: () => [
693
+ {
694
+ async lazy() {
695
+ const { OpenApiRoute: i } = await import("./Route-C1LyvITr.js");
696
+ return {
697
+ element: /* @__PURE__ */ n.jsx(i, { client: t, config: e })
698
+ };
699
+ },
700
+ errorElement: /* @__PURE__ */ n.jsx(C, {}),
701
+ children: [
702
+ {
703
+ path: d,
704
+ children: [
705
+ {
706
+ index: !0,
707
+ async lazy() {
708
+ const { OperationList: i } = await import("./OperationList-DGdaixGa.js");
709
+ return { element: /* @__PURE__ */ n.jsx(i, {}) };
710
+ }
711
+ }
712
+ ]
713
+ }
714
+ ]
715
+ }
716
+ ]
717
+ };
718
+ };
719
+ export {
720
+ j as E,
721
+ I as M,
722
+ V as g,
723
+ M as o
724
+ };
725
+ //# sourceMappingURL=index-DSZ4Cj5q.js.map