zudoku 0.3.0-dev.3 → 0.3.0-dev.31

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