zudoku 0.0.0-f865d81 → 0.0.0-fa903e7

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 (446) hide show
  1. package/dist/app/demo.js +0 -2
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/entry.client.js +14 -0
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.js +6 -6
  6. package/dist/app/entry.server.js.map +1 -1
  7. package/dist/app/main.d.ts +1 -1
  8. package/dist/app/main.js +2 -2
  9. package/dist/app/main.js.map +1 -1
  10. package/dist/app/standalone.js +0 -2
  11. package/dist/app/standalone.js.map +1 -1
  12. package/dist/cli/cli.js +1 -2
  13. package/dist/cli/cli.js.map +1 -1
  14. package/dist/cli/common/logger.js +9 -0
  15. package/dist/cli/common/logger.js.map +1 -1
  16. package/dist/codegen.d.ts +3 -0
  17. package/dist/codegen.js +45 -0
  18. package/dist/codegen.js.map +1 -0
  19. package/dist/config/validators/InputSidebarSchema.d.ts +10 -10
  20. package/dist/config/validators/validate.d.ts +148 -117
  21. package/dist/config/validators/validate.js +13 -6
  22. package/dist/config/validators/validate.js.map +1 -1
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.js +1 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  27. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  28. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  29. package/dist/lib/authentication/authentication.d.ts +3 -3
  30. package/dist/lib/authentication/hook.d.ts +5 -4
  31. package/dist/lib/authentication/hook.js +1 -3
  32. package/dist/lib/authentication/hook.js.map +1 -1
  33. package/dist/lib/authentication/providers/auth0.js +12 -11
  34. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  35. package/dist/lib/authentication/providers/openid.d.ts +0 -1
  36. package/dist/lib/authentication/providers/openid.js +11 -26
  37. package/dist/lib/authentication/providers/openid.js.map +1 -1
  38. package/dist/lib/authentication/state.d.ts +25 -4
  39. package/dist/lib/authentication/state.js +28 -3
  40. package/dist/lib/authentication/state.js.map +1 -1
  41. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  42. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  43. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  44. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  45. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  46. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  47. package/dist/lib/components/Bootstrap.d.ts +3 -1
  48. package/dist/lib/components/Bootstrap.js +10 -4
  49. package/dist/lib/components/Bootstrap.js.map +1 -1
  50. package/dist/lib/components/ClientOnly.d.ts +4 -2
  51. package/dist/lib/components/ClientOnly.js +1 -1
  52. package/dist/lib/components/ClientOnly.js.map +1 -1
  53. package/dist/lib/components/DeveloperHint.js +2 -1
  54. package/dist/lib/components/DeveloperHint.js.map +1 -1
  55. package/dist/lib/components/Header.js +16 -10
  56. package/dist/lib/components/Header.js.map +1 -1
  57. package/dist/lib/components/Heading.d.ts +1 -1
  58. package/dist/lib/components/Layout.js +12 -4
  59. package/dist/lib/components/Layout.js.map +1 -1
  60. package/dist/lib/components/MobileTopNavigation.js +6 -7
  61. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  62. package/dist/lib/components/SyntaxHighlight.js +16 -12
  63. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  64. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  65. package/dist/lib/components/ThemeSwitch.js +13 -0
  66. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  67. package/dist/lib/components/TopNavigation.d.ts +2 -0
  68. package/dist/lib/components/TopNavigation.js +13 -7
  69. package/dist/lib/components/TopNavigation.js.map +1 -1
  70. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  71. package/dist/lib/components/{DevPortal.js → Zudoku.js} +13 -14
  72. package/dist/lib/components/Zudoku.js.map +1 -0
  73. package/dist/lib/components/context/ZudokuContext.d.ts +7 -7
  74. package/dist/lib/components/context/ZudokuContext.js +8 -13
  75. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  76. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  77. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  78. package/dist/lib/components/index.d.ts +18 -10
  79. package/dist/lib/components/index.js +2 -3
  80. package/dist/lib/components/index.js.map +1 -1
  81. package/dist/lib/components/navigation/Sidebar.js +1 -1
  82. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  83. package/dist/lib/components/navigation/utils.js +2 -2
  84. package/dist/lib/components/navigation/utils.js.map +1 -1
  85. package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +3 -7
  86. package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -7
  87. package/dist/lib/core/ZudokuContext.js.map +1 -0
  88. package/dist/lib/core/plugins.d.ts +18 -12
  89. package/dist/lib/core/plugins.js.map +1 -1
  90. package/dist/lib/errors/ErrorAlert.js +1 -1
  91. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  92. package/dist/lib/oas/graphql/index.js +4 -4
  93. package/dist/lib/oas/graphql/index.js.map +1 -1
  94. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  95. package/dist/lib/oas/parser/upgrade/index.js +2 -17
  96. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  97. package/dist/lib/plugins/api-keys/index.d.ts +9 -9
  98. package/dist/lib/plugins/api-keys/index.js +3 -0
  99. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  100. package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
  101. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  102. package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
  103. package/dist/lib/plugins/markdown/MdxPage.js +14 -1
  104. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  105. package/dist/lib/plugins/markdown/index.d.ts +2 -2
  106. package/dist/lib/plugins/markdown/index.js +1 -1
  107. package/dist/lib/plugins/markdown/index.js.map +1 -1
  108. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  109. package/dist/lib/plugins/openapi/CollapsibleCode.js +24 -0
  110. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  111. package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
  112. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  113. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  114. package/dist/lib/plugins/openapi/Endpoint.js +5 -9
  115. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  116. package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
  117. package/dist/lib/plugins/openapi/OperationList.js +21 -22
  118. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  119. package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
  120. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  121. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +7 -3
  122. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  123. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +9 -2
  124. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  125. package/dist/lib/plugins/openapi/Route.d.ts +4 -4
  126. package/dist/lib/plugins/openapi/Route.js +2 -4
  127. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  128. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  129. package/dist/lib/plugins/openapi/Sidecar.js +35 -33
  130. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  131. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  132. package/dist/lib/plugins/openapi/client/GraphQLClient.js +114 -0
  133. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  134. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  135. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  136. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  137. package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
  138. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
  139. package/dist/lib/plugins/openapi/client/useCreateQuery.js +15 -0
  140. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  141. package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
  142. package/dist/lib/plugins/openapi/client/worker.js +23 -14
  143. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  144. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  145. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  146. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  147. package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -51
  148. package/dist/lib/plugins/openapi/graphql/gql.js +4 -2
  149. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  150. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +32 -8
  151. package/dist/lib/plugins/openapi/graphql/graphql.js +194 -662
  152. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  153. package/dist/lib/plugins/openapi/index.d.ts +2 -2
  154. package/dist/lib/plugins/openapi/index.js +40 -53
  155. package/dist/lib/plugins/openapi/index.js.map +1 -1
  156. package/dist/lib/plugins/openapi/interfaces.d.ts +1 -1
  157. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +6 -0
  158. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +14 -0
  159. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
  160. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
  161. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +125 -0
  162. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
  163. package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
  164. package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
  165. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
  166. package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
  167. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
  168. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
  169. package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
  170. package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
  171. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
  172. package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
  173. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  174. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
  175. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +25 -36
  176. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  177. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  178. package/dist/lib/plugins/openapi-worker.js +7 -1
  179. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  180. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  181. package/dist/lib/plugins/redirect/index.js +1 -1
  182. package/dist/lib/plugins/redirect/index.js.map +1 -1
  183. package/dist/lib/plugins/search-inkeep/index.d.ts +2 -2
  184. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  185. package/dist/lib/ui/ActionButton.d.ts +4 -0
  186. package/dist/lib/ui/ActionButton.js +10 -0
  187. package/dist/lib/ui/ActionButton.js.map +1 -0
  188. package/dist/lib/util/MdxComponents.d.ts +1 -1
  189. package/dist/lib/util/traverse.d.ts +2 -0
  190. package/dist/lib/util/traverse.js +18 -0
  191. package/dist/lib/util/traverse.js.map +1 -0
  192. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  193. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  194. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  195. package/dist/lib/util/useOnScreen.d.ts +4 -0
  196. package/dist/lib/util/useOnScreen.js +19 -0
  197. package/dist/lib/util/useOnScreen.js.map +1 -0
  198. package/dist/vite/build.js +5 -1
  199. package/dist/vite/build.js.map +1 -1
  200. package/dist/vite/config.d.ts +2 -8
  201. package/dist/vite/config.js +25 -54
  202. package/dist/vite/config.js.map +1 -1
  203. package/dist/vite/config.test.js +3 -4
  204. package/dist/vite/config.test.js.map +1 -1
  205. package/dist/vite/html.js +0 -2
  206. package/dist/vite/html.js.map +1 -1
  207. package/dist/vite/output.d.ts +101 -0
  208. package/dist/vite/output.js +53 -0
  209. package/dist/vite/output.js.map +1 -0
  210. package/dist/vite/plugin-api.js +23 -19
  211. package/dist/vite/plugin-api.js.map +1 -1
  212. package/dist/vite/plugin-component.js +14 -19
  213. package/dist/vite/plugin-component.js.map +1 -1
  214. package/dist/vite/plugin-config.d.ts +2 -3
  215. package/dist/vite/plugin-config.js +2 -3
  216. package/dist/vite/plugin-config.js.map +1 -1
  217. package/dist/vite/plugin-docs.test.js +15 -23
  218. package/dist/vite/plugin-docs.test.js.map +1 -1
  219. package/dist/vite/plugin-mdx.d.ts +0 -6
  220. package/dist/vite/plugin-mdx.js +13 -5
  221. package/dist/vite/plugin-mdx.js.map +1 -1
  222. package/dist/vite/plugin.js +1 -3
  223. package/dist/vite/plugin.js.map +1 -1
  224. package/dist/vite/prerender.js +3 -2
  225. package/dist/vite/prerender.js.map +1 -1
  226. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  227. package/dist/vite/remarkStaticGeneration.js +125 -0
  228. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  229. package/dist/zuplo/with-zuplo.d.ts +3 -0
  230. package/dist/zuplo/with-zuplo.js +28 -0
  231. package/dist/zuplo/with-zuplo.js.map +1 -0
  232. package/lib/{AnchorLink-BbB2q-jx.js → AnchorLink-CDlhr8gL.js} +11 -10
  233. package/lib/{AnchorLink-BbB2q-jx.js.map → AnchorLink-CDlhr8gL.js.map} +1 -1
  234. package/lib/AuthenticationPlugin-D0Em0SwR.js +59 -0
  235. package/lib/{AuthenticationPlugin-C9BHGXlE.js.map → AuthenticationPlugin-D0Em0SwR.js.map} +1 -1
  236. package/lib/Button-jK0EsymC.js +48 -0
  237. package/lib/Button-jK0EsymC.js.map +1 -0
  238. package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
  239. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  240. package/lib/Markdown-ievDDhFT.js +15192 -0
  241. package/lib/Markdown-ievDDhFT.js.map +1 -0
  242. package/lib/MdxPage-B2FpJ9KC.js +183 -0
  243. package/lib/MdxPage-B2FpJ9KC.js.map +1 -0
  244. package/lib/OperationList-BkNQEsNs.js +4693 -0
  245. package/lib/OperationList-BkNQEsNs.js.map +1 -0
  246. package/lib/Route-DlG_HTMu.js +11 -0
  247. package/lib/Route-DlG_HTMu.js.map +1 -0
  248. package/lib/{Select-Bagt3Bme.js → Select-O9ZM3ZgX.js} +7 -7
  249. package/lib/Select-O9ZM3ZgX.js.map +1 -0
  250. package/lib/{Spinner-C6zroowC.js → SidebarBadge-DxFJcJ6V.js} +28 -17
  251. package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
  252. package/lib/SlotletProvider-DyomlzGx.js +252 -0
  253. package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
  254. package/lib/Spinner-3cQDBVGr.js +7 -0
  255. package/lib/Spinner-3cQDBVGr.js.map +1 -0
  256. package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
  257. package/lib/SyntaxHighlight-DkLOsjHS.js.map +1 -0
  258. package/lib/assets/{worker-Bf8vjASY.js → worker-BHClFO3A.js} +156 -156
  259. package/lib/assets/worker-BHClFO3A.js.map +1 -0
  260. package/lib/context-D1nXWxm7.js +22 -0
  261. package/lib/context-D1nXWxm7.js.map +1 -0
  262. package/lib/createServer-CpJlUPtn.js +15299 -0
  263. package/lib/createServer-CpJlUPtn.js.map +1 -0
  264. package/lib/{hook-sn0zMTkE.js → hook-hEqe7fPB.js} +12 -14
  265. package/lib/hook-hEqe7fPB.js.map +1 -0
  266. package/lib/index-C7SaIME0.js +1277 -0
  267. package/lib/index-C7SaIME0.js.map +1 -0
  268. package/lib/index-Czzd9rjU.js +899 -0
  269. package/lib/index-Czzd9rjU.js.map +1 -0
  270. package/lib/index-Yn8c3UWE.js +921 -0
  271. package/lib/index-Yn8c3UWE.js.map +1 -0
  272. package/lib/object_hash-CvlLgU-M.js +785 -0
  273. package/lib/object_hash-CvlLgU-M.js.map +1 -0
  274. package/lib/post-processors/removeExtensions.js +11 -0
  275. package/lib/post-processors/removeExtensions.js.map +1 -0
  276. package/lib/post-processors/removePaths.js +28 -0
  277. package/lib/post-processors/removePaths.js.map +1 -0
  278. package/lib/post-processors/traverse.js +12 -0
  279. package/lib/post-processors/traverse.js.map +1 -0
  280. package/lib/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
  281. package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
  282. package/lib/state-tsXBLONe.js +203 -0
  283. package/lib/{state-CsuHT8ZO.js.map → state-tsXBLONe.js.map} +1 -1
  284. package/lib/ui/ActionButton.js +25 -0
  285. package/lib/ui/ActionButton.js.map +1 -0
  286. package/lib/useExposedProps-CTPtylCV.js +10 -0
  287. package/lib/{useExposedProps-ChOIUaS4.js.map → useExposedProps-CTPtylCV.js.map} +1 -1
  288. package/lib/{ZudokuContext-BKXGJTmu.js → utils-DcpDOncX.js} +242 -246
  289. package/lib/utils-DcpDOncX.js.map +1 -0
  290. package/lib/zudoku.auth-auth0.js +24 -18
  291. package/lib/zudoku.auth-auth0.js.map +1 -1
  292. package/lib/zudoku.auth-clerk.js +2 -2
  293. package/lib/zudoku.auth-openid.js +124 -138
  294. package/lib/zudoku.auth-openid.js.map +1 -1
  295. package/lib/zudoku.components.js +1291 -1119
  296. package/lib/zudoku.components.js.map +1 -1
  297. package/lib/zudoku.openapi-worker.js +10 -16336
  298. package/lib/zudoku.openapi-worker.js.map +1 -1
  299. package/lib/zudoku.plugin-api-keys.js +41 -39
  300. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  301. package/lib/zudoku.plugin-custom-pages.js +2 -2
  302. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  303. package/lib/zudoku.plugin-markdown.js +15 -14
  304. package/lib/zudoku.plugin-markdown.js.map +1 -1
  305. package/lib/zudoku.plugin-openapi.js +5 -9
  306. package/lib/zudoku.plugin-openapi.js.map +1 -1
  307. package/lib/zudoku.plugin-redirect.js +2 -2
  308. package/lib/zudoku.plugin-redirect.js.map +1 -1
  309. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  310. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  311. package/package.json +27 -7
  312. package/src/app/demo.tsx +0 -3
  313. package/src/app/entry.client.tsx +14 -0
  314. package/src/app/entry.server.tsx +59 -53
  315. package/src/app/main.css +1 -1
  316. package/src/app/main.tsx +4 -4
  317. package/src/app/standalone.tsx +0 -3
  318. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  319. package/src/lib/authentication/authentication.ts +3 -3
  320. package/src/lib/authentication/hook.ts +1 -3
  321. package/src/lib/authentication/providers/auth0.tsx +17 -11
  322. package/src/lib/authentication/providers/openid.tsx +12 -30
  323. package/src/lib/authentication/state.ts +50 -9
  324. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  325. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  326. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  327. package/src/lib/components/Bootstrap.tsx +36 -14
  328. package/src/lib/components/ClientOnly.tsx +6 -3
  329. package/src/lib/components/DeveloperHint.tsx +6 -1
  330. package/src/lib/components/Header.tsx +68 -40
  331. package/src/lib/components/Layout.tsx +49 -37
  332. package/src/lib/components/MobileTopNavigation.tsx +15 -18
  333. package/src/lib/components/SyntaxHighlight.tsx +81 -46
  334. package/src/lib/components/ThemeSwitch.tsx +26 -0
  335. package/src/lib/components/TopNavigation.tsx +27 -19
  336. package/src/lib/components/Zudoku.tsx +108 -0
  337. package/src/lib/components/context/ZudokuContext.ts +11 -16
  338. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  339. package/src/lib/components/index.ts +2 -3
  340. package/src/lib/components/navigation/Sidebar.tsx +3 -3
  341. package/src/lib/components/navigation/utils.ts +2 -2
  342. package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +3 -11
  343. package/src/lib/core/plugins.ts +20 -16
  344. package/src/lib/errors/ErrorAlert.tsx +2 -1
  345. package/src/lib/oas/graphql/index.ts +4 -4
  346. package/src/lib/oas/parser/upgrade/index.ts +3 -24
  347. package/src/lib/plugins/api-keys/index.tsx +12 -9
  348. package/src/lib/plugins/custom-pages/index.tsx +2 -2
  349. package/src/lib/plugins/markdown/MdxPage.tsx +25 -1
  350. package/src/lib/plugins/markdown/index.tsx +3 -2
  351. package/src/lib/plugins/openapi/CollapsibleCode.tsx +80 -0
  352. package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
  353. package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
  354. package/src/lib/plugins/openapi/OperationList.tsx +20 -40
  355. package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
  356. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +18 -13
  357. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +17 -12
  358. package/src/lib/plugins/openapi/Route.tsx +11 -12
  359. package/src/lib/plugins/openapi/Sidecar.tsx +73 -59
  360. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +157 -0
  361. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  362. package/src/lib/plugins/openapi/client/createServer.ts +2 -0
  363. package/src/lib/plugins/openapi/client/useCreateQuery.ts +21 -0
  364. package/src/lib/plugins/openapi/client/worker.ts +38 -24
  365. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  366. package/src/lib/plugins/openapi/graphql/gql.ts +10 -27
  367. package/src/lib/plugins/openapi/graphql/graphql.ts +233 -665
  368. package/src/lib/plugins/openapi/index.tsx +42 -67
  369. package/src/lib/plugins/openapi/interfaces.ts +1 -1
  370. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +144 -0
  371. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +24 -0
  372. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
  373. package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
  374. package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
  375. package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -2
  376. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +28 -42
  377. package/src/lib/plugins/openapi-worker.ts +11 -1
  378. package/src/lib/plugins/redirect/index.tsx +5 -9
  379. package/src/lib/plugins/search-inkeep/index.tsx +2 -2
  380. package/src/lib/ui/ActionButton.tsx +28 -0
  381. package/src/lib/util/traverse.ts +25 -0
  382. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  383. package/src/lib/util/useOnScreen.ts +32 -0
  384. package/dist/lib/components/DevPortal.js.map +0 -1
  385. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  386. package/dist/lib/components/context/ThemeContext.js +0 -7
  387. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  388. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  389. package/dist/lib/components/context/ThemeProvider.js +0 -23
  390. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  391. package/dist/lib/core/DevPortalContext.js.map +0 -1
  392. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  393. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  394. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  395. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  396. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  397. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  398. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  399. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  400. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  401. package/dist/lib/themeToggle.d.ts +0 -1
  402. package/dist/lib/themeToggle.js +0 -7
  403. package/dist/lib/themeToggle.js.map +0 -1
  404. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  405. package/dist/lib/util/createWaitForNotify.js +0 -15
  406. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  407. package/dist/vite/plugin-html-transform.d.ts +0 -2
  408. package/dist/vite/plugin-html-transform.js +0 -15
  409. package/dist/vite/plugin-html-transform.js.map +0 -1
  410. package/lib/AuthenticationPlugin-C9BHGXlE.js +0 -55
  411. package/lib/ClientOnly-CVN6leDu.js.map +0 -1
  412. package/lib/DeveloperHint-DHdLXGHA.js +0 -16
  413. package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
  414. package/lib/Markdown-BDcCAWwm.js +0 -18059
  415. package/lib/Markdown-BDcCAWwm.js.map +0 -1
  416. package/lib/MdxPage-DKMH_t0f.js +0 -174
  417. package/lib/MdxPage-DKMH_t0f.js.map +0 -1
  418. package/lib/OperationList-Tj7ubW_t.js +0 -604
  419. package/lib/OperationList-Tj7ubW_t.js.map +0 -1
  420. package/lib/Route-C3DGB6OS.js +0 -13
  421. package/lib/Route-C3DGB6OS.js.map +0 -1
  422. package/lib/Select-Bagt3Bme.js.map +0 -1
  423. package/lib/SlotletProvider-Da7eFgd2.js +0 -241
  424. package/lib/SlotletProvider-Da7eFgd2.js.map +0 -1
  425. package/lib/Spinner-C6zroowC.js.map +0 -1
  426. package/lib/StaggeredRender-DDHSzQKE.js +0 -17
  427. package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
  428. package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
  429. package/lib/assets/worker-Bf8vjASY.js.map +0 -1
  430. package/lib/hook-sn0zMTkE.js.map +0 -1
  431. package/lib/index-AjWCJNGC.js +0 -5690
  432. package/lib/index-AjWCJNGC.js.map +0 -1
  433. package/lib/index-CRo94sKK.js +0 -1783
  434. package/lib/index-CRo94sKK.js.map +0 -1
  435. package/lib/state-CsuHT8ZO.js +0 -183
  436. package/lib/urql-core-KJnLL26g.js +0 -1455
  437. package/lib/urql-core-KJnLL26g.js.map +0 -1
  438. package/lib/useExposedProps-ChOIUaS4.js +0 -9
  439. package/src/lib/components/DevPortal.tsx +0 -111
  440. package/src/lib/components/context/ThemeContext.tsx +0 -8
  441. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  442. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  443. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  444. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  445. package/src/lib/themeToggle.ts +0 -7
  446. package/src/lib/util/createWaitForNotify.ts +0 -18
@@ -1,663 +1,195 @@
1
- export const OperationsFragmentFragmentDoc = {
2
- kind: "Document",
3
- definitions: [
4
- {
5
- kind: "FragmentDefinition",
6
- name: { kind: "Name", value: "OperationsFragment" },
7
- typeCondition: {
8
- kind: "NamedType",
9
- name: { kind: "Name", value: "OperationItem" },
10
- },
11
- selectionSet: {
12
- kind: "SelectionSet",
13
- selections: [
14
- { kind: "Field", name: { kind: "Name", value: "slug" } },
15
- { kind: "Field", name: { kind: "Name", value: "summary" } },
16
- { kind: "Field", name: { kind: "Name", value: "method" } },
17
- { kind: "Field", name: { kind: "Name", value: "description" } },
18
- { kind: "Field", name: { kind: "Name", value: "operationId" } },
19
- { kind: "Field", name: { kind: "Name", value: "contentTypes" } },
20
- { kind: "Field", name: { kind: "Name", value: "path" } },
21
- {
22
- kind: "Field",
23
- name: { kind: "Name", value: "parameters" },
24
- selectionSet: {
25
- kind: "SelectionSet",
26
- selections: [
27
- { kind: "Field", name: { kind: "Name", value: "name" } },
28
- { kind: "Field", name: { kind: "Name", value: "in" } },
29
- { kind: "Field", name: { kind: "Name", value: "description" } },
30
- { kind: "Field", name: { kind: "Name", value: "required" } },
31
- { kind: "Field", name: { kind: "Name", value: "schema" } },
32
- { kind: "Field", name: { kind: "Name", value: "style" } },
33
- {
34
- kind: "Field",
35
- name: { kind: "Name", value: "examples" },
36
- selectionSet: {
37
- kind: "SelectionSet",
38
- selections: [
39
- { kind: "Field", name: { kind: "Name", value: "name" } },
40
- {
41
- kind: "Field",
42
- name: { kind: "Name", value: "description" },
43
- },
44
- {
45
- kind: "Field",
46
- name: { kind: "Name", value: "externalValue" },
47
- },
48
- { kind: "Field", name: { kind: "Name", value: "value" } },
49
- {
50
- kind: "Field",
51
- name: { kind: "Name", value: "summary" },
52
- },
53
- ],
54
- },
55
- },
56
- ],
57
- },
58
- },
59
- {
60
- kind: "Field",
61
- name: { kind: "Name", value: "requestBody" },
62
- selectionSet: {
63
- kind: "SelectionSet",
64
- selections: [
65
- {
66
- kind: "Field",
67
- name: { kind: "Name", value: "content" },
68
- selectionSet: {
69
- kind: "SelectionSet",
70
- selections: [
71
- {
72
- kind: "Field",
73
- name: { kind: "Name", value: "mediaType" },
74
- },
75
- {
76
- kind: "Field",
77
- name: { kind: "Name", value: "encoding" },
78
- selectionSet: {
79
- kind: "SelectionSet",
80
- selections: [
81
- {
82
- kind: "Field",
83
- name: { kind: "Name", value: "name" },
84
- },
85
- ],
86
- },
87
- },
88
- {
89
- kind: "Field",
90
- name: { kind: "Name", value: "schema" },
91
- },
92
- ],
93
- },
94
- },
95
- { kind: "Field", name: { kind: "Name", value: "description" } },
96
- { kind: "Field", name: { kind: "Name", value: "required" } },
97
- ],
98
- },
99
- },
100
- {
101
- kind: "Field",
102
- name: { kind: "Name", value: "responses" },
103
- selectionSet: {
104
- kind: "SelectionSet",
105
- selections: [
106
- { kind: "Field", name: { kind: "Name", value: "statusCode" } },
107
- { kind: "Field", name: { kind: "Name", value: "links" } },
108
- { kind: "Field", name: { kind: "Name", value: "description" } },
109
- {
110
- kind: "Field",
111
- name: { kind: "Name", value: "content" },
112
- selectionSet: {
113
- kind: "SelectionSet",
114
- selections: [
115
- {
116
- kind: "Field",
117
- name: { kind: "Name", value: "mediaType" },
118
- },
119
- {
120
- kind: "Field",
121
- name: { kind: "Name", value: "encoding" },
122
- selectionSet: {
123
- kind: "SelectionSet",
124
- selections: [
125
- {
126
- kind: "Field",
127
- name: { kind: "Name", value: "name" },
128
- },
129
- ],
130
- },
131
- },
132
- {
133
- kind: "Field",
134
- name: { kind: "Name", value: "schema" },
135
- },
136
- ],
137
- },
138
- },
139
- ],
140
- },
141
- },
142
- ],
143
- },
144
- },
145
- ],
146
- };
147
- export const ServersQueryDocument = {
148
- kind: "Document",
149
- definitions: [
150
- {
151
- kind: "OperationDefinition",
152
- operation: "query",
153
- name: { kind: "Name", value: "ServersQuery" },
154
- variableDefinitions: [
155
- {
156
- kind: "VariableDefinition",
157
- variable: {
158
- kind: "Variable",
159
- name: { kind: "Name", value: "input" },
160
- },
161
- type: {
162
- kind: "NonNullType",
163
- type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } },
164
- },
165
- },
166
- {
167
- kind: "VariableDefinition",
168
- variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
169
- type: {
170
- kind: "NonNullType",
171
- type: {
172
- kind: "NamedType",
173
- name: { kind: "Name", value: "SchemaType" },
174
- },
175
- },
176
- },
177
- ],
178
- selectionSet: {
179
- kind: "SelectionSet",
180
- selections: [
181
- {
182
- kind: "Field",
183
- name: { kind: "Name", value: "schema" },
184
- arguments: [
185
- {
186
- kind: "Argument",
187
- name: { kind: "Name", value: "input" },
188
- value: {
189
- kind: "Variable",
190
- name: { kind: "Name", value: "input" },
191
- },
192
- },
193
- {
194
- kind: "Argument",
195
- name: { kind: "Name", value: "type" },
196
- value: {
197
- kind: "Variable",
198
- name: { kind: "Name", value: "type" },
199
- },
200
- },
201
- ],
202
- selectionSet: {
203
- kind: "SelectionSet",
204
- selections: [
205
- { kind: "Field", name: { kind: "Name", value: "url" } },
206
- {
207
- kind: "Field",
208
- name: { kind: "Name", value: "servers" },
209
- selectionSet: {
210
- kind: "SelectionSet",
211
- selections: [
212
- { kind: "Field", name: { kind: "Name", value: "url" } },
213
- ],
214
- },
215
- },
216
- ],
217
- },
218
- },
219
- ],
220
- },
221
- },
222
- ],
223
- };
224
- export const AllOperationsDocument = {
225
- kind: "Document",
226
- definitions: [
227
- {
228
- kind: "OperationDefinition",
229
- operation: "query",
230
- name: { kind: "Name", value: "AllOperations" },
231
- variableDefinitions: [
232
- {
233
- kind: "VariableDefinition",
234
- variable: {
235
- kind: "Variable",
236
- name: { kind: "Name", value: "input" },
237
- },
238
- type: {
239
- kind: "NonNullType",
240
- type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } },
241
- },
242
- },
243
- {
244
- kind: "VariableDefinition",
245
- variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
246
- type: {
247
- kind: "NonNullType",
248
- type: {
249
- kind: "NamedType",
250
- name: { kind: "Name", value: "SchemaType" },
251
- },
252
- },
253
- },
254
- ],
255
- selectionSet: {
256
- kind: "SelectionSet",
257
- selections: [
258
- {
259
- kind: "Field",
260
- name: { kind: "Name", value: "schema" },
261
- arguments: [
262
- {
263
- kind: "Argument",
264
- name: { kind: "Name", value: "input" },
265
- value: {
266
- kind: "Variable",
267
- name: { kind: "Name", value: "input" },
268
- },
269
- },
270
- {
271
- kind: "Argument",
272
- name: { kind: "Name", value: "type" },
273
- value: {
274
- kind: "Variable",
275
- name: { kind: "Name", value: "type" },
276
- },
277
- },
278
- ],
279
- selectionSet: {
280
- kind: "SelectionSet",
281
- selections: [
282
- { kind: "Field", name: { kind: "Name", value: "description" } },
283
- { kind: "Field", name: { kind: "Name", value: "title" } },
284
- { kind: "Field", name: { kind: "Name", value: "url" } },
285
- { kind: "Field", name: { kind: "Name", value: "version" } },
286
- {
287
- kind: "Field",
288
- name: { kind: "Name", value: "tags" },
289
- selectionSet: {
290
- kind: "SelectionSet",
291
- selections: [
292
- { kind: "Field", name: { kind: "Name", value: "name" } },
293
- {
294
- kind: "Field",
295
- name: { kind: "Name", value: "description" },
296
- },
297
- {
298
- kind: "Field",
299
- name: { kind: "Name", value: "operations" },
300
- selectionSet: {
301
- kind: "SelectionSet",
302
- selections: [
303
- {
304
- kind: "Field",
305
- name: { kind: "Name", value: "slug" },
306
- },
307
- {
308
- kind: "FragmentSpread",
309
- name: {
310
- kind: "Name",
311
- value: "OperationsFragment",
312
- },
313
- },
314
- ],
315
- },
316
- },
317
- ],
318
- },
319
- },
320
- ],
321
- },
322
- },
323
- ],
324
- },
325
- },
326
- {
327
- kind: "FragmentDefinition",
328
- name: { kind: "Name", value: "OperationsFragment" },
329
- typeCondition: {
330
- kind: "NamedType",
331
- name: { kind: "Name", value: "OperationItem" },
332
- },
333
- selectionSet: {
334
- kind: "SelectionSet",
335
- selections: [
336
- { kind: "Field", name: { kind: "Name", value: "slug" } },
337
- { kind: "Field", name: { kind: "Name", value: "summary" } },
338
- { kind: "Field", name: { kind: "Name", value: "method" } },
339
- { kind: "Field", name: { kind: "Name", value: "description" } },
340
- { kind: "Field", name: { kind: "Name", value: "operationId" } },
341
- { kind: "Field", name: { kind: "Name", value: "contentTypes" } },
342
- { kind: "Field", name: { kind: "Name", value: "path" } },
343
- {
344
- kind: "Field",
345
- name: { kind: "Name", value: "parameters" },
346
- selectionSet: {
347
- kind: "SelectionSet",
348
- selections: [
349
- { kind: "Field", name: { kind: "Name", value: "name" } },
350
- { kind: "Field", name: { kind: "Name", value: "in" } },
351
- { kind: "Field", name: { kind: "Name", value: "description" } },
352
- { kind: "Field", name: { kind: "Name", value: "required" } },
353
- { kind: "Field", name: { kind: "Name", value: "schema" } },
354
- { kind: "Field", name: { kind: "Name", value: "style" } },
355
- {
356
- kind: "Field",
357
- name: { kind: "Name", value: "examples" },
358
- selectionSet: {
359
- kind: "SelectionSet",
360
- selections: [
361
- { kind: "Field", name: { kind: "Name", value: "name" } },
362
- {
363
- kind: "Field",
364
- name: { kind: "Name", value: "description" },
365
- },
366
- {
367
- kind: "Field",
368
- name: { kind: "Name", value: "externalValue" },
369
- },
370
- { kind: "Field", name: { kind: "Name", value: "value" } },
371
- {
372
- kind: "Field",
373
- name: { kind: "Name", value: "summary" },
374
- },
375
- ],
376
- },
377
- },
378
- ],
379
- },
380
- },
381
- {
382
- kind: "Field",
383
- name: { kind: "Name", value: "requestBody" },
384
- selectionSet: {
385
- kind: "SelectionSet",
386
- selections: [
387
- {
388
- kind: "Field",
389
- name: { kind: "Name", value: "content" },
390
- selectionSet: {
391
- kind: "SelectionSet",
392
- selections: [
393
- {
394
- kind: "Field",
395
- name: { kind: "Name", value: "mediaType" },
396
- },
397
- {
398
- kind: "Field",
399
- name: { kind: "Name", value: "encoding" },
400
- selectionSet: {
401
- kind: "SelectionSet",
402
- selections: [
403
- {
404
- kind: "Field",
405
- name: { kind: "Name", value: "name" },
406
- },
407
- ],
408
- },
409
- },
410
- {
411
- kind: "Field",
412
- name: { kind: "Name", value: "schema" },
413
- },
414
- ],
415
- },
416
- },
417
- { kind: "Field", name: { kind: "Name", value: "description" } },
418
- { kind: "Field", name: { kind: "Name", value: "required" } },
419
- ],
420
- },
421
- },
422
- {
423
- kind: "Field",
424
- name: { kind: "Name", value: "responses" },
425
- selectionSet: {
426
- kind: "SelectionSet",
427
- selections: [
428
- { kind: "Field", name: { kind: "Name", value: "statusCode" } },
429
- { kind: "Field", name: { kind: "Name", value: "links" } },
430
- { kind: "Field", name: { kind: "Name", value: "description" } },
431
- {
432
- kind: "Field",
433
- name: { kind: "Name", value: "content" },
434
- selectionSet: {
435
- kind: "SelectionSet",
436
- selections: [
437
- {
438
- kind: "Field",
439
- name: { kind: "Name", value: "mediaType" },
440
- },
441
- {
442
- kind: "Field",
443
- name: { kind: "Name", value: "encoding" },
444
- selectionSet: {
445
- kind: "SelectionSet",
446
- selections: [
447
- {
448
- kind: "Field",
449
- name: { kind: "Name", value: "name" },
450
- },
451
- ],
452
- },
453
- },
454
- {
455
- kind: "Field",
456
- name: { kind: "Name", value: "schema" },
457
- },
458
- ],
459
- },
460
- },
461
- ],
462
- },
463
- },
464
- ],
465
- },
466
- },
467
- ],
468
- };
469
- export const GetServerQueryDocument = {
470
- kind: "Document",
471
- definitions: [
472
- {
473
- kind: "OperationDefinition",
474
- operation: "query",
475
- name: { kind: "Name", value: "getServerQuery" },
476
- variableDefinitions: [
477
- {
478
- kind: "VariableDefinition",
479
- variable: {
480
- kind: "Variable",
481
- name: { kind: "Name", value: "input" },
482
- },
483
- type: {
484
- kind: "NonNullType",
485
- type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } },
486
- },
487
- },
488
- {
489
- kind: "VariableDefinition",
490
- variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
491
- type: {
492
- kind: "NonNullType",
493
- type: {
494
- kind: "NamedType",
495
- name: { kind: "Name", value: "SchemaType" },
496
- },
497
- },
498
- },
499
- ],
500
- selectionSet: {
501
- kind: "SelectionSet",
502
- selections: [
503
- {
504
- kind: "Field",
505
- name: { kind: "Name", value: "schema" },
506
- arguments: [
507
- {
508
- kind: "Argument",
509
- name: { kind: "Name", value: "input" },
510
- value: {
511
- kind: "Variable",
512
- name: { kind: "Name", value: "input" },
513
- },
514
- },
515
- {
516
- kind: "Argument",
517
- name: { kind: "Name", value: "type" },
518
- value: {
519
- kind: "Variable",
520
- name: { kind: "Name", value: "type" },
521
- },
522
- },
523
- ],
524
- selectionSet: {
525
- kind: "SelectionSet",
526
- selections: [
527
- { kind: "Field", name: { kind: "Name", value: "url" } },
528
- {
529
- kind: "Field",
530
- name: { kind: "Name", value: "servers" },
531
- selectionSet: {
532
- kind: "SelectionSet",
533
- selections: [
534
- { kind: "Field", name: { kind: "Name", value: "url" } },
535
- ],
536
- },
537
- },
538
- ],
539
- },
540
- },
541
- ],
542
- },
543
- },
544
- ],
545
- };
546
- export const GetCategoriesDocument = {
547
- kind: "Document",
548
- definitions: [
549
- {
550
- kind: "OperationDefinition",
551
- operation: "query",
552
- name: { kind: "Name", value: "GetCategories" },
553
- variableDefinitions: [
554
- {
555
- kind: "VariableDefinition",
556
- variable: {
557
- kind: "Variable",
558
- name: { kind: "Name", value: "input" },
559
- },
560
- type: {
561
- kind: "NonNullType",
562
- type: { kind: "NamedType", name: { kind: "Name", value: "JSON" } },
563
- },
564
- },
565
- {
566
- kind: "VariableDefinition",
567
- variable: { kind: "Variable", name: { kind: "Name", value: "type" } },
568
- type: {
569
- kind: "NonNullType",
570
- type: {
571
- kind: "NamedType",
572
- name: { kind: "Name", value: "SchemaType" },
573
- },
574
- },
575
- },
576
- ],
577
- selectionSet: {
578
- kind: "SelectionSet",
579
- selections: [
580
- {
581
- kind: "Field",
582
- name: { kind: "Name", value: "schema" },
583
- arguments: [
584
- {
585
- kind: "Argument",
586
- name: { kind: "Name", value: "input" },
587
- value: {
588
- kind: "Variable",
589
- name: { kind: "Name", value: "input" },
590
- },
591
- },
592
- {
593
- kind: "Argument",
594
- name: { kind: "Name", value: "type" },
595
- value: {
596
- kind: "Variable",
597
- name: { kind: "Name", value: "type" },
598
- },
599
- },
600
- ],
601
- selectionSet: {
602
- kind: "SelectionSet",
603
- selections: [
604
- {
605
- kind: "Field",
606
- name: { kind: "Name", value: "tags" },
607
- selectionSet: {
608
- kind: "SelectionSet",
609
- selections: [
610
- {
611
- kind: "Field",
612
- name: { kind: "Name", value: "__typename" },
613
- },
614
- { kind: "Field", name: { kind: "Name", value: "name" } },
615
- {
616
- kind: "Field",
617
- name: { kind: "Name", value: "operations" },
618
- selectionSet: {
619
- kind: "SelectionSet",
620
- selections: [
621
- {
622
- kind: "Field",
623
- name: { kind: "Name", value: "__typename" },
624
- },
625
- {
626
- kind: "Field",
627
- name: { kind: "Name", value: "slug" },
628
- },
629
- {
630
- kind: "Field",
631
- name: { kind: "Name", value: "deprecated" },
632
- },
633
- {
634
- kind: "Field",
635
- name: { kind: "Name", value: "method" },
636
- },
637
- {
638
- kind: "Field",
639
- name: { kind: "Name", value: "summary" },
640
- },
641
- {
642
- kind: "Field",
643
- name: { kind: "Name", value: "operationId" },
644
- },
645
- {
646
- kind: "Field",
647
- name: { kind: "Name", value: "path" },
648
- },
649
- ],
650
- },
651
- },
652
- ],
653
- },
654
- },
655
- ],
656
- },
657
- },
658
- ],
659
- },
660
- },
661
- ],
662
- };
1
+ export class TypedDocumentString extends String {
2
+ value;
3
+ __meta__;
4
+ __apiType;
5
+ constructor(value, __meta__) {
6
+ super(value);
7
+ this.value = value;
8
+ this.__meta__ = __meta__;
9
+ }
10
+ toString() {
11
+ return this.value;
12
+ }
13
+ }
14
+ export const OperationsFragmentFragmentDoc = new TypedDocumentString(`
15
+ fragment OperationsFragment on OperationItem {
16
+ slug
17
+ summary
18
+ method
19
+ description
20
+ operationId
21
+ contentTypes
22
+ path
23
+ parameters {
24
+ name
25
+ in
26
+ description
27
+ required
28
+ schema
29
+ style
30
+ examples {
31
+ name
32
+ description
33
+ externalValue
34
+ value
35
+ summary
36
+ }
37
+ }
38
+ requestBody {
39
+ content {
40
+ mediaType
41
+ encoding {
42
+ name
43
+ }
44
+ examples {
45
+ name
46
+ description
47
+ externalValue
48
+ value
49
+ summary
50
+ }
51
+ schema
52
+ }
53
+ description
54
+ required
55
+ }
56
+ responses {
57
+ statusCode
58
+ links
59
+ description
60
+ content {
61
+ examples {
62
+ name
63
+ description
64
+ externalValue
65
+ value
66
+ summary
67
+ }
68
+ mediaType
69
+ encoding {
70
+ name
71
+ }
72
+ schema
73
+ }
74
+ }
75
+ }
76
+ `, { fragmentName: "OperationsFragment" });
77
+ export const ServersQueryDocument = new TypedDocumentString(`
78
+ query ServersQuery($input: JSON!, $type: SchemaType!) {
79
+ schema(input: $input, type: $type) {
80
+ url
81
+ servers {
82
+ url
83
+ }
84
+ }
85
+ }
86
+ `);
87
+ export const AllOperationsDocument = new TypedDocumentString(`
88
+ query AllOperations($input: JSON!, $type: SchemaType!) {
89
+ schema(input: $input, type: $type) {
90
+ description
91
+ title
92
+ url
93
+ version
94
+ tags {
95
+ name
96
+ description
97
+ operations {
98
+ slug
99
+ ...OperationsFragment
100
+ }
101
+ }
102
+ }
103
+ }
104
+ fragment OperationsFragment on OperationItem {
105
+ slug
106
+ summary
107
+ method
108
+ description
109
+ operationId
110
+ contentTypes
111
+ path
112
+ parameters {
113
+ name
114
+ in
115
+ description
116
+ required
117
+ schema
118
+ style
119
+ examples {
120
+ name
121
+ description
122
+ externalValue
123
+ value
124
+ summary
125
+ }
126
+ }
127
+ requestBody {
128
+ content {
129
+ mediaType
130
+ encoding {
131
+ name
132
+ }
133
+ examples {
134
+ name
135
+ description
136
+ externalValue
137
+ value
138
+ summary
139
+ }
140
+ schema
141
+ }
142
+ description
143
+ required
144
+ }
145
+ responses {
146
+ statusCode
147
+ links
148
+ description
149
+ content {
150
+ examples {
151
+ name
152
+ description
153
+ externalValue
154
+ value
155
+ summary
156
+ }
157
+ mediaType
158
+ encoding {
159
+ name
160
+ }
161
+ schema
162
+ }
163
+ }
164
+ }`);
165
+ export const GetServerQueryDocument = new TypedDocumentString(`
166
+ query getServerQuery($input: JSON!, $type: SchemaType!) {
167
+ schema(input: $input, type: $type) {
168
+ url
169
+ servers {
170
+ url
171
+ }
172
+ }
173
+ }
174
+ `);
175
+ export const GetCategoriesDocument = new TypedDocumentString(`
176
+ query GetCategories($input: JSON!, $type: SchemaType!) {
177
+ schema(input: $input, type: $type) {
178
+ url
179
+ tags {
180
+ __typename
181
+ name
182
+ operations {
183
+ __typename
184
+ slug
185
+ deprecated
186
+ method
187
+ summary
188
+ operationId
189
+ path
190
+ }
191
+ }
192
+ }
193
+ }
194
+ `);
663
195
  //# sourceMappingURL=graphql.js.map