zudoku 0.0.2-dev.0

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 (403) hide show
  1. package/cli.js +1 -0
  2. package/dist/app/DevPortal.d.ts +26 -0
  3. package/dist/app/DevPortal.js +41 -0
  4. package/dist/app/DevPortal.js.map +1 -0
  5. package/dist/app/Heading.d.ts +9 -0
  6. package/dist/app/Heading.js +27 -0
  7. package/dist/app/Heading.js.map +1 -0
  8. package/dist/app/app.d.ts +2 -0
  9. package/dist/app/app.js +69 -0
  10. package/dist/app/app.js.map +1 -0
  11. package/dist/app/authentication/authentication.d.ts +13 -0
  12. package/dist/app/authentication/authentication.js +2 -0
  13. package/dist/app/authentication/authentication.js.map +1 -0
  14. package/dist/app/authentication/clerk.d.ts +5 -0
  15. package/dist/app/authentication/clerk.js +36 -0
  16. package/dist/app/authentication/clerk.js.map +1 -0
  17. package/dist/app/authentication/openid.d.ts +11 -0
  18. package/dist/app/authentication/openid.js +118 -0
  19. package/dist/app/authentication/openid.js.map +1 -0
  20. package/dist/app/components/AnchorLink.d.ts +5 -0
  21. package/dist/app/components/AnchorLink.js +17 -0
  22. package/dist/app/components/AnchorLink.js.map +1 -0
  23. package/dist/app/components/CategoryHeading.d.ts +5 -0
  24. package/dist/app/components/CategoryHeading.js +6 -0
  25. package/dist/app/components/CategoryHeading.js.map +1 -0
  26. package/dist/app/components/DynamicIcon.d.ts +6 -0
  27. package/dist/app/components/DynamicIcon.js +6 -0
  28. package/dist/app/components/DynamicIcon.js.map +1 -0
  29. package/dist/app/components/Header.d.ts +2 -0
  30. package/dist/app/components/Header.js +15 -0
  31. package/dist/app/components/Header.js.map +1 -0
  32. package/dist/app/components/Layout.d.ts +4 -0
  33. package/dist/app/components/Layout.js +31 -0
  34. package/dist/app/components/Layout.js.map +1 -0
  35. package/dist/app/components/Markdown.d.ts +5 -0
  36. package/dist/app/components/Markdown.js +20 -0
  37. package/dist/app/components/Markdown.js.map +1 -0
  38. package/dist/app/components/SyntaxHighlight.d.ts +9 -0
  39. package/dist/app/components/SyntaxHighlight.js +31 -0
  40. package/dist/app/components/SyntaxHighlight.js.map +1 -0
  41. package/dist/app/components/TopNavigation.d.ts +1 -0
  42. package/dist/app/components/TopNavigation.js +11 -0
  43. package/dist/app/components/TopNavigation.js.map +1 -0
  44. package/dist/app/components/context/ComponentsContext.d.ts +10 -0
  45. package/dist/app/components/context/ComponentsContext.js +11 -0
  46. package/dist/app/components/context/ComponentsContext.js.map +1 -0
  47. package/dist/app/components/context/DevPortalProvider.d.ts +10 -0
  48. package/dist/app/components/context/DevPortalProvider.js +39 -0
  49. package/dist/app/components/context/DevPortalProvider.js.map +1 -0
  50. package/dist/app/components/context/PluginSystem.d.ts +1 -0
  51. package/dist/app/components/context/PluginSystem.js +2 -0
  52. package/dist/app/components/context/PluginSystem.js.map +1 -0
  53. package/dist/app/components/context/ThemeContext.d.ts +5 -0
  54. package/dist/app/components/context/ThemeContext.js +33 -0
  55. package/dist/app/components/context/ThemeContext.js.map +1 -0
  56. package/dist/app/components/context/ViewportAnchorContext.d.ts +15 -0
  57. package/dist/app/components/context/ViewportAnchorContext.js +89 -0
  58. package/dist/app/components/context/ViewportAnchorContext.js.map +1 -0
  59. package/dist/app/components/navigation/SideNavigation.d.ts +1 -0
  60. package/dist/app/components/navigation/SideNavigation.js +11 -0
  61. package/dist/app/components/navigation/SideNavigation.js.map +1 -0
  62. package/dist/app/components/navigation/SideNavigationCategory.d.ts +4 -0
  63. package/dist/app/components/navigation/SideNavigationCategory.js +26 -0
  64. package/dist/app/components/navigation/SideNavigationCategory.js.map +1 -0
  65. package/dist/app/components/navigation/SideNavigationItem.d.ts +12 -0
  66. package/dist/app/components/navigation/SideNavigationItem.js +38 -0
  67. package/dist/app/components/navigation/SideNavigationItem.js.map +1 -0
  68. package/dist/app/components/navigation/SideNavigationWrapper.d.ts +4 -0
  69. package/dist/app/components/navigation/SideNavigationWrapper.js +6 -0
  70. package/dist/app/components/navigation/SideNavigationWrapper.js.map +1 -0
  71. package/dist/app/components/navigation/useNavigationCollapsibleState.d.ts +7 -0
  72. package/dist/app/components/navigation/useNavigationCollapsibleState.js +16 -0
  73. package/dist/app/components/navigation/useNavigationCollapsibleState.js.map +1 -0
  74. package/dist/app/components/navigation/util.d.ts +8 -0
  75. package/dist/app/components/navigation/util.js +15 -0
  76. package/dist/app/components/navigation/util.js.map +1 -0
  77. package/dist/app/config.d.ts +3 -0
  78. package/dist/app/config.js +9 -0
  79. package/dist/app/config.js.map +1 -0
  80. package/dist/app/core/DevPortalContext.d.ts +80 -0
  81. package/dist/app/core/DevPortalContext.js +68 -0
  82. package/dist/app/core/DevPortalContext.js.map +1 -0
  83. package/dist/app/core/helmet.d.ts +4 -0
  84. package/dist/app/core/helmet.js +5 -0
  85. package/dist/app/core/helmet.js.map +1 -0
  86. package/dist/app/core/icons.d.ts +1 -0
  87. package/dist/app/core/icons.js +2 -0
  88. package/dist/app/core/icons.js.map +1 -0
  89. package/dist/app/core/plugins.d.ts +24 -0
  90. package/dist/app/core/plugins.js +4 -0
  91. package/dist/app/core/plugins.js.map +1 -0
  92. package/dist/app/core/router.d.ts +1 -0
  93. package/dist/app/core/router.js +2 -0
  94. package/dist/app/core/router.js.map +1 -0
  95. package/dist/app/core/types/combine.d.ts +4 -0
  96. package/dist/app/core/types/combine.js +2 -0
  97. package/dist/app/core/types/combine.js.map +1 -0
  98. package/dist/app/main.d.ts +1 -0
  99. package/dist/app/main.js +18 -0
  100. package/dist/app/main.js.map +1 -0
  101. package/dist/app/markdowns.d.ts +3 -0
  102. package/dist/app/markdowns.js +5 -0
  103. package/dist/app/markdowns.js.map +1 -0
  104. package/dist/app/oas/graphql/index.d.ts +12 -0
  105. package/dist/app/oas/graphql/index.js +290 -0
  106. package/dist/app/oas/graphql/index.js.map +1 -0
  107. package/dist/app/oas/graphql/server.d.ts +1 -0
  108. package/dist/app/oas/graphql/server.js +8 -0
  109. package/dist/app/oas/graphql/server.js.map +1 -0
  110. package/dist/app/oas/parser/dereference/index.d.ts +5 -0
  111. package/dist/app/oas/parser/dereference/index.js +43 -0
  112. package/dist/app/oas/parser/dereference/index.js.map +1 -0
  113. package/dist/app/oas/parser/dereference/resolveRef.d.ts +5 -0
  114. package/dist/app/oas/parser/dereference/resolveRef.js +26 -0
  115. package/dist/app/oas/parser/dereference/resolveRef.js.map +1 -0
  116. package/dist/app/oas/parser/index.d.ts +21 -0
  117. package/dist/app/oas/parser/index.js +58 -0
  118. package/dist/app/oas/parser/index.js.map +1 -0
  119. package/dist/app/oas/parser/schemas/v3.0.json +1489 -0
  120. package/dist/app/oas/parser/schemas/v3.1.json +1298 -0
  121. package/dist/app/oas/parser/upgrade/index.d.ts +9 -0
  122. package/dist/app/oas/parser/upgrade/index.js +90 -0
  123. package/dist/app/oas/parser/upgrade/index.js.map +1 -0
  124. package/dist/app/plugins/api-key/SettingsApiKeys.d.ts +4 -0
  125. package/dist/app/plugins/api-key/SettingsApiKeys.js +7 -0
  126. package/dist/app/plugins/api-key/SettingsApiKeys.js.map +1 -0
  127. package/dist/app/plugins/api-key/index.d.ts +32 -0
  128. package/dist/app/plugins/api-key/index.js +55 -0
  129. package/dist/app/plugins/api-key/index.js.map +1 -0
  130. package/dist/app/plugins/markdown/MdxPage.d.ts +3 -0
  131. package/dist/app/plugins/markdown/MdxPage.js +55 -0
  132. package/dist/app/plugins/markdown/MdxPage.js.map +1 -0
  133. package/dist/app/plugins/markdown/Toc.d.ts +4 -0
  134. package/dist/app/plugins/markdown/Toc.js +40 -0
  135. package/dist/app/plugins/markdown/Toc.js.map +1 -0
  136. package/dist/app/plugins/markdown/generateRoutes.d.ts +3 -0
  137. package/dist/app/plugins/markdown/generateRoutes.js +50 -0
  138. package/dist/app/plugins/markdown/generateRoutes.js.map +1 -0
  139. package/dist/app/plugins/markdown/index.d.ts +19 -0
  140. package/dist/app/plugins/markdown/index.js +9 -0
  141. package/dist/app/plugins/markdown/index.js.map +1 -0
  142. package/dist/app/plugins/openapi/ColorizedParam.d.ts +8 -0
  143. package/dist/app/plugins/openapi/ColorizedParam.js +40 -0
  144. package/dist/app/plugins/openapi/ColorizedParam.js.map +1 -0
  145. package/dist/app/plugins/openapi/MakeRequest.d.ts +4 -0
  146. package/dist/app/plugins/openapi/MakeRequest.js +11 -0
  147. package/dist/app/plugins/openapi/MakeRequest.js.map +1 -0
  148. package/dist/app/plugins/openapi/MethodBadge.d.ts +13 -0
  149. package/dist/app/plugins/openapi/MethodBadge.js +26 -0
  150. package/dist/app/plugins/openapi/MethodBadge.js.map +1 -0
  151. package/dist/app/plugins/openapi/OperationList.d.ts +47 -0
  152. package/dist/app/plugins/openapi/OperationList.js +82 -0
  153. package/dist/app/plugins/openapi/OperationList.js.map +1 -0
  154. package/dist/app/plugins/openapi/OperationListItem.d.ts +7 -0
  155. package/dist/app/plugins/openapi/OperationListItem.js +15 -0
  156. package/dist/app/plugins/openapi/OperationListItem.js.map +1 -0
  157. package/dist/app/plugins/openapi/ParameterList.d.ts +7 -0
  158. package/dist/app/plugins/openapi/ParameterList.js +5 -0
  159. package/dist/app/plugins/openapi/ParameterList.js.map +1 -0
  160. package/dist/app/plugins/openapi/ParameterListItem.d.ts +8 -0
  161. package/dist/app/plugins/openapi/ParameterListItem.js +13 -0
  162. package/dist/app/plugins/openapi/ParameterListItem.js.map +1 -0
  163. package/dist/app/plugins/openapi/RequestBodySidecarBox.d.ts +6 -0
  164. package/dist/app/plugins/openapi/RequestBodySidecarBox.js +19 -0
  165. package/dist/app/plugins/openapi/RequestBodySidecarBox.js.map +1 -0
  166. package/dist/app/plugins/openapi/ResponsesSidecarBox.d.ts +6 -0
  167. package/dist/app/plugins/openapi/ResponsesSidecarBox.js +15 -0
  168. package/dist/app/plugins/openapi/ResponsesSidecarBox.js.map +1 -0
  169. package/dist/app/plugins/openapi/Select.d.ts +9 -0
  170. package/dist/app/plugins/openapi/Select.js +5 -0
  171. package/dist/app/plugins/openapi/Select.js.map +1 -0
  172. package/dist/app/plugins/openapi/Sidecar.d.ts +4 -0
  173. package/dist/app/plugins/openapi/Sidecar.js +39 -0
  174. package/dist/app/plugins/openapi/Sidecar.js.map +1 -0
  175. package/dist/app/plugins/openapi/SidecarBox.d.ts +10 -0
  176. package/dist/app/plugins/openapi/SidecarBox.js +8 -0
  177. package/dist/app/plugins/openapi/SidecarBox.js.map +1 -0
  178. package/dist/app/plugins/openapi/graphql/index.d.ts +836 -0
  179. package/dist/app/plugins/openapi/graphql/index.js +4 -0
  180. package/dist/app/plugins/openapi/graphql/index.js.map +1 -0
  181. package/dist/app/plugins/openapi/index.d.ts +22 -0
  182. package/dist/app/plugins/openapi/index.js +91 -0
  183. package/dist/app/plugins/openapi/index.js.map +1 -0
  184. package/dist/app/plugins/openapi/util/generateSchemaExample.d.ts +3 -0
  185. package/dist/app/plugins/openapi/util/generateSchemaExample.js +52 -0
  186. package/dist/app/plugins/openapi/util/generateSchemaExample.js.map +1 -0
  187. package/dist/app/plugins/openapi/util/getCode.d.ts +2 -0
  188. package/dist/app/plugins/openapi/util/getCode.js +54 -0
  189. package/dist/app/plugins/openapi/util/getCode.js.map +1 -0
  190. package/dist/app/plugins/openapi/util/urql.d.ts +8 -0
  191. package/dist/app/plugins/openapi/util/urql.js +8 -0
  192. package/dist/app/plugins/openapi/util/urql.js.map +1 -0
  193. package/dist/app/plugins/openapi/worker/createSharedWorkerClient.d.ts +5 -0
  194. package/dist/app/plugins/openapi/worker/createSharedWorkerClient.js +47 -0
  195. package/dist/app/plugins/openapi/worker/createSharedWorkerClient.js.map +1 -0
  196. package/dist/app/plugins/openapi/worker/worker.d.ts +1 -0
  197. package/dist/app/plugins/openapi/worker/worker.js +20 -0
  198. package/dist/app/plugins/openapi/worker/worker.js.map +1 -0
  199. package/dist/app/plugins/redirect/index.d.ts +10 -0
  200. package/dist/app/plugins/redirect/index.js +11 -0
  201. package/dist/app/plugins/redirect/index.js.map +1 -0
  202. package/dist/app/tailwind.d.ts +3 -0
  203. package/dist/app/tailwind.js +69 -0
  204. package/dist/app/tailwind.js.map +1 -0
  205. package/dist/app/ui/Callout.d.ts +51 -0
  206. package/dist/app/ui/Callout.js +50 -0
  207. package/dist/app/ui/Callout.js.map +1 -0
  208. package/dist/app/ui/Card.d.ts +8 -0
  209. package/dist/app/ui/Card.js +17 -0
  210. package/dist/app/ui/Card.js.map +1 -0
  211. package/dist/app/ui/Note.d.ts +8 -0
  212. package/dist/app/ui/Note.js +23 -0
  213. package/dist/app/ui/Note.js.map +1 -0
  214. package/dist/app/util/MdxComponents.d.ts +27 -0
  215. package/dist/app/util/MdxComponents.js +40 -0
  216. package/dist/app/util/MdxComponents.js.map +1 -0
  217. package/dist/app/util/cn.d.ts +2 -0
  218. package/dist/app/util/cn.js +6 -0
  219. package/dist/app/util/cn.js.map +1 -0
  220. package/dist/app/util/createWaitForNotify.d.ts +1 -0
  221. package/dist/app/util/createWaitForNotify.js +15 -0
  222. package/dist/app/util/createWaitForNotify.js.map +1 -0
  223. package/dist/app/util/groupBy.d.ts +6 -0
  224. package/dist/app/util/groupBy.js +9 -0
  225. package/dist/app/util/groupBy.js.map +1 -0
  226. package/dist/app/util/joinPath.d.ts +1 -0
  227. package/dist/app/util/joinPath.js +8 -0
  228. package/dist/app/util/joinPath.js.map +1 -0
  229. package/dist/app/util/pastellize.d.ts +4 -0
  230. package/dist/app/util/pastellize.js +14 -0
  231. package/dist/app/util/pastellize.js.map +1 -0
  232. package/dist/app/util/slugify.d.ts +3 -0
  233. package/dist/app/util/slugify.js +3 -0
  234. package/dist/app/util/slugify.js.map +1 -0
  235. package/dist/app/util/traverseNavigation.d.ts +6 -0
  236. package/dist/app/util/traverseNavigation.js +30 -0
  237. package/dist/app/util/traverseNavigation.js.map +1 -0
  238. package/dist/app/util/useScrollToAnchor.d.ts +1 -0
  239. package/dist/app/util/useScrollToAnchor.js +33 -0
  240. package/dist/app/util/useScrollToAnchor.js.map +1 -0
  241. package/dist/app/util/useScrollToTop.d.ts +1 -0
  242. package/dist/app/util/useScrollToTop.js +13 -0
  243. package/dist/app/util/useScrollToTop.js.map +1 -0
  244. package/dist/auth.d.ts +2 -0
  245. package/dist/auth.js +3 -0
  246. package/dist/auth.js.map +1 -0
  247. package/dist/cli/build/handler.d.ts +4 -0
  248. package/dist/cli/build/handler.js +9 -0
  249. package/dist/cli/build/handler.js.map +1 -0
  250. package/dist/cli/cli.d.ts +1 -0
  251. package/dist/cli/cli.js +64 -0
  252. package/dist/cli/cli.js.map +1 -0
  253. package/dist/cli/cmds/build.d.ts +8 -0
  254. package/dist/cli/cmds/build.js +23 -0
  255. package/dist/cli/cmds/build.js.map +1 -0
  256. package/dist/cli/cmds/dev.d.ts +8 -0
  257. package/dist/cli/cmds/dev.js +29 -0
  258. package/dist/cli/cmds/dev.js.map +1 -0
  259. package/dist/cli/common/analytics/lib.d.ts +17 -0
  260. package/dist/cli/common/analytics/lib.js +53 -0
  261. package/dist/cli/common/analytics/lib.js.map +1 -0
  262. package/dist/cli/common/constants.d.ts +5 -0
  263. package/dist/cli/common/constants.js +9 -0
  264. package/dist/cli/common/constants.js.map +1 -0
  265. package/dist/cli/common/logger.d.ts +2 -0
  266. package/dist/cli/common/logger.js +14 -0
  267. package/dist/cli/common/logger.js.map +1 -0
  268. package/dist/cli/common/machine-id/lib.d.ts +1 -0
  269. package/dist/cli/common/machine-id/lib.js +74 -0
  270. package/dist/cli/common/machine-id/lib.js.map +1 -0
  271. package/dist/cli/common/outdated.d.ts +1 -0
  272. package/dist/cli/common/outdated.js +70 -0
  273. package/dist/cli/common/outdated.js.map +1 -0
  274. package/dist/cli/common/output.d.ts +9 -0
  275. package/dist/cli/common/output.js +65 -0
  276. package/dist/cli/common/output.js.map +1 -0
  277. package/dist/cli/common/utils/box.d.ts +33 -0
  278. package/dist/cli/common/utils/box.js +81 -0
  279. package/dist/cli/common/utils/box.js.map +1 -0
  280. package/dist/cli/common/utils/ports.d.ts +1 -0
  281. package/dist/cli/common/utils/ports.js +18 -0
  282. package/dist/cli/common/utils/ports.js.map +1 -0
  283. package/dist/cli/common/validators/lib.d.ts +20 -0
  284. package/dist/cli/common/validators/lib.js +31 -0
  285. package/dist/cli/common/validators/lib.js.map +1 -0
  286. package/dist/cli/common/xdg/lib.d.ts +6 -0
  287. package/dist/cli/common/xdg/lib.js +18 -0
  288. package/dist/cli/common/xdg/lib.js.map +1 -0
  289. package/dist/cli/dev/handler.d.ts +5 -0
  290. package/dist/cli/dev/handler.js +22 -0
  291. package/dist/cli/dev/handler.js.map +1 -0
  292. package/dist/config/config.d.ts +37 -0
  293. package/dist/config/config.js +2 -0
  294. package/dist/config/config.js.map +1 -0
  295. package/dist/index.d.ts +7 -0
  296. package/dist/index.js +6 -0
  297. package/dist/index.js.map +1 -0
  298. package/dist/plugins.d.ts +4 -0
  299. package/dist/plugins.js +6 -0
  300. package/dist/plugins.js.map +1 -0
  301. package/dist/vite/build.d.ts +3 -0
  302. package/dist/vite/build.js +29 -0
  303. package/dist/vite/build.js.map +1 -0
  304. package/dist/vite/config.d.ts +6 -0
  305. package/dist/vite/config.js +74 -0
  306. package/dist/vite/config.js.map +1 -0
  307. package/dist/vite/dev-server.d.ts +10 -0
  308. package/dist/vite/dev-server.js +53 -0
  309. package/dist/vite/dev-server.js.map +1 -0
  310. package/dist/vite/html.d.ts +5 -0
  311. package/dist/vite/html.js +32 -0
  312. package/dist/vite/html.js.map +1 -0
  313. package/dist/vite/import-auth-plugin.d.ts +3 -0
  314. package/dist/vite/import-auth-plugin.js +28 -0
  315. package/dist/vite/import-auth-plugin.js.map +1 -0
  316. package/dist/vite/plugin.d.ts +7 -0
  317. package/dist/vite/plugin.js +109 -0
  318. package/dist/vite/plugin.js.map +1 -0
  319. package/package.json +118 -0
  320. package/src/app/DevPortal.tsx +115 -0
  321. package/src/app/Heading.tsx +60 -0
  322. package/src/app/app.tsx +85 -0
  323. package/src/app/authentication/authentication.ts +18 -0
  324. package/src/app/authentication/clerk.ts +47 -0
  325. package/src/app/authentication/openid.ts +192 -0
  326. package/src/app/components/AnchorLink.tsx +19 -0
  327. package/src/app/components/CategoryHeading.tsx +16 -0
  328. package/src/app/components/DynamicIcon.tsx +60 -0
  329. package/src/app/components/Header.tsx +69 -0
  330. package/src/app/components/Layout.tsx +56 -0
  331. package/src/app/components/Markdown.tsx +37 -0
  332. package/src/app/components/SyntaxHighlight.tsx +92 -0
  333. package/src/app/components/TopNavigation.tsx +32 -0
  334. package/src/app/components/context/ComponentsContext.tsx +24 -0
  335. package/src/app/components/context/DevPortalProvider.ts +54 -0
  336. package/src/app/components/context/PluginSystem.ts +0 -0
  337. package/src/app/components/context/ThemeContext.tsx +46 -0
  338. package/src/app/components/context/ViewportAnchorContext.tsx +139 -0
  339. package/src/app/components/navigation/SideNavigation.tsx +18 -0
  340. package/src/app/components/navigation/SideNavigationCategory.tsx +74 -0
  341. package/src/app/components/navigation/SideNavigationItem.tsx +143 -0
  342. package/src/app/components/navigation/SideNavigationWrapper.tsx +15 -0
  343. package/src/app/components/navigation/useNavigationCollapsibleState.ts +27 -0
  344. package/src/app/components/navigation/util.ts +38 -0
  345. package/src/app/config.ts +20 -0
  346. package/src/app/core/DevPortalContext.ts +164 -0
  347. package/src/app/core/helmet.ts +5 -0
  348. package/src/app/core/icons.tsx +1 -0
  349. package/src/app/core/plugins.ts +43 -0
  350. package/src/app/core/router.tsx +1 -0
  351. package/src/app/core/types/combine.ts +16 -0
  352. package/src/app/main.css +137 -0
  353. package/src/app/main.tsx +22 -0
  354. package/src/app/markdowns.ts +7 -0
  355. package/src/app/oas/graphql/index.ts +422 -0
  356. package/src/app/oas/graphql/server.ts +10 -0
  357. package/src/app/oas/parser/dereference/index.ts +59 -0
  358. package/src/app/oas/parser/dereference/resolveRef.ts +32 -0
  359. package/src/app/oas/parser/index.ts +94 -0
  360. package/src/app/oas/parser/schemas/v3.0.json +1489 -0
  361. package/src/app/oas/parser/schemas/v3.1.json +1298 -0
  362. package/src/app/oas/parser/upgrade/index.ts +108 -0
  363. package/src/app/plugins/api-key/SettingsApiKeys.tsx +22 -0
  364. package/src/app/plugins/api-key/index.tsx +123 -0
  365. package/src/app/plugins/markdown/MdxPage.tsx +128 -0
  366. package/src/app/plugins/markdown/Toc.tsx +122 -0
  367. package/src/app/plugins/markdown/generateRoutes.tsx +72 -0
  368. package/src/app/plugins/markdown/index.tsx +31 -0
  369. package/src/app/plugins/openapi/ColorizedParam.tsx +73 -0
  370. package/src/app/plugins/openapi/MakeRequest.tsx +30 -0
  371. package/src/app/plugins/openapi/MethodBadge.tsx +36 -0
  372. package/src/app/plugins/openapi/OperationList.tsx +119 -0
  373. package/src/app/plugins/openapi/OperationListItem.tsx +55 -0
  374. package/src/app/plugins/openapi/ParameterList.tsx +32 -0
  375. package/src/app/plugins/openapi/ParameterListItem.tsx +60 -0
  376. package/src/app/plugins/openapi/RequestBodySidecarBox.tsx +48 -0
  377. package/src/app/plugins/openapi/ResponsesSidecarBox.tsx +60 -0
  378. package/src/app/plugins/openapi/Select.tsx +35 -0
  379. package/src/app/plugins/openapi/Sidecar.tsx +99 -0
  380. package/src/app/plugins/openapi/SidecarBox.tsx +35 -0
  381. package/src/app/plugins/openapi/graphql/env.d.ts +48 -0
  382. package/src/app/plugins/openapi/graphql/index.ts +13 -0
  383. package/src/app/plugins/openapi/index.tsx +142 -0
  384. package/src/app/plugins/openapi/util/generateSchemaExample.ts +59 -0
  385. package/src/app/plugins/openapi/util/getCode.tsx +69 -0
  386. package/src/app/plugins/openapi/util/urql.ts +8 -0
  387. package/src/app/plugins/openapi/worker/createSharedWorkerClient.ts +60 -0
  388. package/src/app/plugins/openapi/worker/worker.ts +30 -0
  389. package/src/app/plugins/redirect/index.tsx +20 -0
  390. package/src/app/tailwind.ts +72 -0
  391. package/src/app/ui/Callout.tsx +87 -0
  392. package/src/app/ui/Card.tsx +82 -0
  393. package/src/app/ui/Note.tsx +58 -0
  394. package/src/app/util/MdxComponents.tsx +70 -0
  395. package/src/app/util/cn.ts +6 -0
  396. package/src/app/util/createWaitForNotify.ts +18 -0
  397. package/src/app/util/groupBy.ts +24 -0
  398. package/src/app/util/joinPath.tsx +10 -0
  399. package/src/app/util/pastellize.ts +25 -0
  400. package/src/app/util/slugify.ts +3 -0
  401. package/src/app/util/traverseNavigation.ts +55 -0
  402. package/src/app/util/useScrollToAnchor.ts +38 -0
  403. package/src/app/util/useScrollToTop.ts +13 -0
@@ -0,0 +1,836 @@
1
+ export declare const graphql: import("gql.tada").GraphQLTadaAPI<{
2
+ name: never;
3
+ query: "Query";
4
+ mutation: never;
5
+ subscription: never;
6
+ types: {
7
+ JSON: {
8
+ name: "JSON";
9
+ type: unknown;
10
+ };
11
+ JSONObject: {
12
+ name: "JSONObject";
13
+ type: unknown;
14
+ };
15
+ Boolean: {
16
+ name: "Boolean";
17
+ type: boolean;
18
+ };
19
+ Float: {
20
+ name: "Float";
21
+ type: number;
22
+ };
23
+ ID: {
24
+ name: "ID";
25
+ type: string;
26
+ };
27
+ Int: {
28
+ name: "Int";
29
+ type: number;
30
+ };
31
+ String: {
32
+ name: "String";
33
+ type: string;
34
+ };
35
+ } & {
36
+ Boolean: unknown;
37
+ EncodingItem: {
38
+ kind: "OBJECT";
39
+ name: "EncodingItem";
40
+ fields: {
41
+ allowReserved: {
42
+ name: "allowReserved";
43
+ type: {
44
+ kind: "SCALAR";
45
+ name: "Boolean";
46
+ ofType: null;
47
+ };
48
+ };
49
+ contentType: {
50
+ name: "contentType";
51
+ type: {
52
+ kind: "SCALAR";
53
+ name: "String";
54
+ ofType: null;
55
+ };
56
+ };
57
+ explode: {
58
+ name: "explode";
59
+ type: {
60
+ kind: "SCALAR";
61
+ name: "Boolean";
62
+ ofType: null;
63
+ };
64
+ };
65
+ headers: {
66
+ name: "headers";
67
+ type: {
68
+ kind: "SCALAR";
69
+ name: "JSONObject";
70
+ ofType: null;
71
+ };
72
+ };
73
+ name: {
74
+ name: "name";
75
+ type: {
76
+ kind: "NON_NULL";
77
+ name: never;
78
+ ofType: {
79
+ kind: "SCALAR";
80
+ name: "String";
81
+ ofType: null;
82
+ };
83
+ };
84
+ };
85
+ style: {
86
+ name: "style";
87
+ type: {
88
+ kind: "SCALAR";
89
+ name: "String";
90
+ ofType: null;
91
+ };
92
+ };
93
+ };
94
+ };
95
+ ExampleItem: {
96
+ kind: "OBJECT";
97
+ name: "ExampleItem";
98
+ fields: {
99
+ description: {
100
+ name: "description";
101
+ type: {
102
+ kind: "SCALAR";
103
+ name: "String";
104
+ ofType: null;
105
+ };
106
+ };
107
+ externalValue: {
108
+ name: "externalValue";
109
+ type: {
110
+ kind: "SCALAR";
111
+ name: "String";
112
+ ofType: null;
113
+ };
114
+ };
115
+ name: {
116
+ name: "name";
117
+ type: {
118
+ kind: "NON_NULL";
119
+ name: never;
120
+ ofType: {
121
+ kind: "SCALAR";
122
+ name: "String";
123
+ ofType: null;
124
+ };
125
+ };
126
+ };
127
+ summary: {
128
+ name: "summary";
129
+ type: {
130
+ kind: "SCALAR";
131
+ name: "String";
132
+ ofType: null;
133
+ };
134
+ };
135
+ value: {
136
+ name: "value";
137
+ type: {
138
+ kind: "SCALAR";
139
+ name: "String";
140
+ ofType: null;
141
+ };
142
+ };
143
+ };
144
+ };
145
+ Float: unknown;
146
+ ID: unknown;
147
+ Int: unknown;
148
+ JSON: unknown;
149
+ JSONObject: unknown;
150
+ MediaTypeObject: {
151
+ kind: "OBJECT";
152
+ name: "MediaTypeObject";
153
+ fields: {
154
+ encoding: {
155
+ name: "encoding";
156
+ type: {
157
+ kind: "LIST";
158
+ name: never;
159
+ ofType: {
160
+ kind: "NON_NULL";
161
+ name: never;
162
+ ofType: {
163
+ kind: "OBJECT";
164
+ name: "EncodingItem";
165
+ ofType: null;
166
+ };
167
+ };
168
+ };
169
+ };
170
+ examples: {
171
+ name: "examples";
172
+ type: {
173
+ kind: "LIST";
174
+ name: never;
175
+ ofType: {
176
+ kind: "NON_NULL";
177
+ name: never;
178
+ ofType: {
179
+ kind: "OBJECT";
180
+ name: "ExampleItem";
181
+ ofType: null;
182
+ };
183
+ };
184
+ };
185
+ };
186
+ mediaType: {
187
+ name: "mediaType";
188
+ type: {
189
+ kind: "NON_NULL";
190
+ name: never;
191
+ ofType: {
192
+ kind: "SCALAR";
193
+ name: "String";
194
+ ofType: null;
195
+ };
196
+ };
197
+ };
198
+ schema: {
199
+ name: "schema";
200
+ type: {
201
+ kind: "NON_NULL";
202
+ name: never;
203
+ ofType: {
204
+ kind: "SCALAR";
205
+ name: "JSON";
206
+ ofType: null;
207
+ };
208
+ };
209
+ };
210
+ };
211
+ };
212
+ OperationItem: {
213
+ kind: "OBJECT";
214
+ name: "OperationItem";
215
+ fields: {
216
+ contentTypes: {
217
+ name: "contentTypes";
218
+ type: {
219
+ kind: "NON_NULL";
220
+ name: never;
221
+ ofType: {
222
+ kind: "LIST";
223
+ name: never;
224
+ ofType: {
225
+ kind: "NON_NULL";
226
+ name: never;
227
+ ofType: {
228
+ kind: "SCALAR";
229
+ name: "String";
230
+ ofType: null;
231
+ };
232
+ };
233
+ };
234
+ };
235
+ };
236
+ deprecated: {
237
+ name: "deprecated";
238
+ type: {
239
+ kind: "SCALAR";
240
+ name: "Boolean";
241
+ ofType: null;
242
+ };
243
+ };
244
+ description: {
245
+ name: "description";
246
+ type: {
247
+ kind: "SCALAR";
248
+ name: "String";
249
+ ofType: null;
250
+ };
251
+ };
252
+ method: {
253
+ name: "method";
254
+ type: {
255
+ kind: "NON_NULL";
256
+ name: never;
257
+ ofType: {
258
+ kind: "SCALAR";
259
+ name: "String";
260
+ ofType: null;
261
+ };
262
+ };
263
+ };
264
+ operationId: {
265
+ name: "operationId";
266
+ type: {
267
+ kind: "SCALAR";
268
+ name: "String";
269
+ ofType: null;
270
+ };
271
+ };
272
+ parameters: {
273
+ name: "parameters";
274
+ type: {
275
+ kind: "LIST";
276
+ name: never;
277
+ ofType: {
278
+ kind: "NON_NULL";
279
+ name: never;
280
+ ofType: {
281
+ kind: "OBJECT";
282
+ name: "ParameterItem";
283
+ ofType: null;
284
+ };
285
+ };
286
+ };
287
+ };
288
+ path: {
289
+ name: "path";
290
+ type: {
291
+ kind: "NON_NULL";
292
+ name: never;
293
+ ofType: {
294
+ kind: "SCALAR";
295
+ name: "String";
296
+ ofType: null;
297
+ };
298
+ };
299
+ };
300
+ requestBody: {
301
+ name: "requestBody";
302
+ type: {
303
+ kind: "OBJECT";
304
+ name: "RequestBodyObject";
305
+ ofType: null;
306
+ };
307
+ };
308
+ responses: {
309
+ name: "responses";
310
+ type: {
311
+ kind: "NON_NULL";
312
+ name: never;
313
+ ofType: {
314
+ kind: "LIST";
315
+ name: never;
316
+ ofType: {
317
+ kind: "NON_NULL";
318
+ name: never;
319
+ ofType: {
320
+ kind: "OBJECT";
321
+ name: "ResponseItem";
322
+ ofType: null;
323
+ };
324
+ };
325
+ };
326
+ };
327
+ };
328
+ slug: {
329
+ name: "slug";
330
+ type: {
331
+ kind: "NON_NULL";
332
+ name: never;
333
+ ofType: {
334
+ kind: "SCALAR";
335
+ name: "String";
336
+ ofType: null;
337
+ };
338
+ };
339
+ };
340
+ summary: {
341
+ name: "summary";
342
+ type: {
343
+ kind: "SCALAR";
344
+ name: "String";
345
+ ofType: null;
346
+ };
347
+ };
348
+ tags: {
349
+ name: "tags";
350
+ type: {
351
+ kind: "LIST";
352
+ name: never;
353
+ ofType: {
354
+ kind: "NON_NULL";
355
+ name: never;
356
+ ofType: {
357
+ kind: "OBJECT";
358
+ name: "TagItem";
359
+ ofType: null;
360
+ };
361
+ };
362
+ };
363
+ };
364
+ };
365
+ };
366
+ ParameterIn: {
367
+ name: "ParameterIn";
368
+ enumValues: "path" | "header" | "query" | "cookie";
369
+ };
370
+ ParameterItem: {
371
+ kind: "OBJECT";
372
+ name: "ParameterItem";
373
+ fields: {
374
+ allowEmptyValue: {
375
+ name: "allowEmptyValue";
376
+ type: {
377
+ kind: "SCALAR";
378
+ name: "Boolean";
379
+ ofType: null;
380
+ };
381
+ };
382
+ allowReserved: {
383
+ name: "allowReserved";
384
+ type: {
385
+ kind: "SCALAR";
386
+ name: "Boolean";
387
+ ofType: null;
388
+ };
389
+ };
390
+ deprecated: {
391
+ name: "deprecated";
392
+ type: {
393
+ kind: "SCALAR";
394
+ name: "Boolean";
395
+ ofType: null;
396
+ };
397
+ };
398
+ description: {
399
+ name: "description";
400
+ type: {
401
+ kind: "SCALAR";
402
+ name: "String";
403
+ ofType: null;
404
+ };
405
+ };
406
+ examples: {
407
+ name: "examples";
408
+ type: {
409
+ kind: "LIST";
410
+ name: never;
411
+ ofType: {
412
+ kind: "NON_NULL";
413
+ name: never;
414
+ ofType: {
415
+ kind: "OBJECT";
416
+ name: "ExampleItem";
417
+ ofType: null;
418
+ };
419
+ };
420
+ };
421
+ };
422
+ explode: {
423
+ name: "explode";
424
+ type: {
425
+ kind: "SCALAR";
426
+ name: "Boolean";
427
+ ofType: null;
428
+ };
429
+ };
430
+ in: {
431
+ name: "in";
432
+ type: {
433
+ kind: "NON_NULL";
434
+ name: never;
435
+ ofType: {
436
+ kind: "ENUM";
437
+ name: "ParameterIn";
438
+ ofType: null;
439
+ };
440
+ };
441
+ };
442
+ name: {
443
+ name: "name";
444
+ type: {
445
+ kind: "NON_NULL";
446
+ name: never;
447
+ ofType: {
448
+ kind: "SCALAR";
449
+ name: "String";
450
+ ofType: null;
451
+ };
452
+ };
453
+ };
454
+ required: {
455
+ name: "required";
456
+ type: {
457
+ kind: "SCALAR";
458
+ name: "Boolean";
459
+ ofType: null;
460
+ };
461
+ };
462
+ schema: {
463
+ name: "schema";
464
+ type: {
465
+ kind: "SCALAR";
466
+ name: "JSON";
467
+ ofType: null;
468
+ };
469
+ };
470
+ style: {
471
+ name: "style";
472
+ type: {
473
+ kind: "SCALAR";
474
+ name: "String";
475
+ ofType: null;
476
+ };
477
+ };
478
+ };
479
+ };
480
+ PathItem: {
481
+ kind: "OBJECT";
482
+ name: "PathItem";
483
+ fields: {
484
+ methods: {
485
+ name: "methods";
486
+ type: {
487
+ kind: "NON_NULL";
488
+ name: never;
489
+ ofType: {
490
+ kind: "LIST";
491
+ name: never;
492
+ ofType: {
493
+ kind: "NON_NULL";
494
+ name: never;
495
+ ofType: {
496
+ kind: "SCALAR";
497
+ name: "String";
498
+ ofType: null;
499
+ };
500
+ };
501
+ };
502
+ };
503
+ };
504
+ path: {
505
+ name: "path";
506
+ type: {
507
+ kind: "NON_NULL";
508
+ name: never;
509
+ ofType: {
510
+ kind: "SCALAR";
511
+ name: "String";
512
+ ofType: null;
513
+ };
514
+ };
515
+ };
516
+ };
517
+ };
518
+ Query: {
519
+ kind: "OBJECT";
520
+ name: "Query";
521
+ fields: {
522
+ schema: {
523
+ name: "schema";
524
+ type: {
525
+ kind: "NON_NULL";
526
+ name: never;
527
+ ofType: {
528
+ kind: "OBJECT";
529
+ name: "Schema";
530
+ ofType: null;
531
+ };
532
+ };
533
+ };
534
+ };
535
+ };
536
+ RequestBodyObject: {
537
+ kind: "OBJECT";
538
+ name: "RequestBodyObject";
539
+ fields: {
540
+ content: {
541
+ name: "content";
542
+ type: {
543
+ kind: "LIST";
544
+ name: never;
545
+ ofType: {
546
+ kind: "NON_NULL";
547
+ name: never;
548
+ ofType: {
549
+ kind: "OBJECT";
550
+ name: "MediaTypeObject";
551
+ ofType: null;
552
+ };
553
+ };
554
+ };
555
+ };
556
+ description: {
557
+ name: "description";
558
+ type: {
559
+ kind: "SCALAR";
560
+ name: "String";
561
+ ofType: null;
562
+ };
563
+ };
564
+ required: {
565
+ name: "required";
566
+ type: {
567
+ kind: "SCALAR";
568
+ name: "Boolean";
569
+ ofType: null;
570
+ };
571
+ };
572
+ };
573
+ };
574
+ ResponseItem: {
575
+ kind: "OBJECT";
576
+ name: "ResponseItem";
577
+ fields: {
578
+ content: {
579
+ name: "content";
580
+ type: {
581
+ kind: "LIST";
582
+ name: never;
583
+ ofType: {
584
+ kind: "NON_NULL";
585
+ name: never;
586
+ ofType: {
587
+ kind: "OBJECT";
588
+ name: "MediaTypeObject";
589
+ ofType: null;
590
+ };
591
+ };
592
+ };
593
+ };
594
+ description: {
595
+ name: "description";
596
+ type: {
597
+ kind: "NON_NULL";
598
+ name: never;
599
+ ofType: {
600
+ kind: "SCALAR";
601
+ name: "String";
602
+ ofType: null;
603
+ };
604
+ };
605
+ };
606
+ headers: {
607
+ name: "headers";
608
+ type: {
609
+ kind: "SCALAR";
610
+ name: "JSON";
611
+ ofType: null;
612
+ };
613
+ };
614
+ links: {
615
+ name: "links";
616
+ type: {
617
+ kind: "SCALAR";
618
+ name: "JSON";
619
+ ofType: null;
620
+ };
621
+ };
622
+ statusCode: {
623
+ name: "statusCode";
624
+ type: {
625
+ kind: "NON_NULL";
626
+ name: never;
627
+ ofType: {
628
+ kind: "SCALAR";
629
+ name: "String";
630
+ ofType: null;
631
+ };
632
+ };
633
+ };
634
+ };
635
+ };
636
+ Schema: {
637
+ kind: "OBJECT";
638
+ name: "Schema";
639
+ fields: {
640
+ description: {
641
+ name: "description";
642
+ type: {
643
+ kind: "SCALAR";
644
+ name: "String";
645
+ ofType: null;
646
+ };
647
+ };
648
+ openapi: {
649
+ name: "openapi";
650
+ type: {
651
+ kind: "NON_NULL";
652
+ name: never;
653
+ ofType: {
654
+ kind: "SCALAR";
655
+ name: "String";
656
+ ofType: null;
657
+ };
658
+ };
659
+ };
660
+ operations: {
661
+ name: "operations";
662
+ type: {
663
+ kind: "NON_NULL";
664
+ name: never;
665
+ ofType: {
666
+ kind: "LIST";
667
+ name: never;
668
+ ofType: {
669
+ kind: "NON_NULL";
670
+ name: never;
671
+ ofType: {
672
+ kind: "OBJECT";
673
+ name: "OperationItem";
674
+ ofType: null;
675
+ };
676
+ };
677
+ };
678
+ };
679
+ };
680
+ paths: {
681
+ name: "paths";
682
+ type: {
683
+ kind: "NON_NULL";
684
+ name: never;
685
+ ofType: {
686
+ kind: "LIST";
687
+ name: never;
688
+ ofType: {
689
+ kind: "NON_NULL";
690
+ name: never;
691
+ ofType: {
692
+ kind: "OBJECT";
693
+ name: "PathItem";
694
+ ofType: null;
695
+ };
696
+ };
697
+ };
698
+ };
699
+ };
700
+ tags: {
701
+ name: "tags";
702
+ type: {
703
+ kind: "NON_NULL";
704
+ name: never;
705
+ ofType: {
706
+ kind: "LIST";
707
+ name: never;
708
+ ofType: {
709
+ kind: "NON_NULL";
710
+ name: never;
711
+ ofType: {
712
+ kind: "OBJECT";
713
+ name: "SchemaTag";
714
+ ofType: null;
715
+ };
716
+ };
717
+ };
718
+ };
719
+ };
720
+ title: {
721
+ name: "title";
722
+ type: {
723
+ kind: "NON_NULL";
724
+ name: never;
725
+ ofType: {
726
+ kind: "SCALAR";
727
+ name: "String";
728
+ ofType: null;
729
+ };
730
+ };
731
+ };
732
+ url: {
733
+ name: "url";
734
+ type: {
735
+ kind: "NON_NULL";
736
+ name: never;
737
+ ofType: {
738
+ kind: "SCALAR";
739
+ name: "String";
740
+ ofType: null;
741
+ };
742
+ };
743
+ };
744
+ version: {
745
+ name: "version";
746
+ type: {
747
+ kind: "NON_NULL";
748
+ name: never;
749
+ ofType: {
750
+ kind: "SCALAR";
751
+ name: "String";
752
+ ofType: null;
753
+ };
754
+ };
755
+ };
756
+ };
757
+ };
758
+ SchemaTag: {
759
+ kind: "OBJECT";
760
+ name: "SchemaTag";
761
+ fields: {
762
+ description: {
763
+ name: "description";
764
+ type: {
765
+ kind: "SCALAR";
766
+ name: "String";
767
+ ofType: null;
768
+ };
769
+ };
770
+ name: {
771
+ name: "name";
772
+ type: {
773
+ kind: "SCALAR";
774
+ name: "String";
775
+ ofType: null;
776
+ };
777
+ };
778
+ operations: {
779
+ name: "operations";
780
+ type: {
781
+ kind: "NON_NULL";
782
+ name: never;
783
+ ofType: {
784
+ kind: "LIST";
785
+ name: never;
786
+ ofType: {
787
+ kind: "NON_NULL";
788
+ name: never;
789
+ ofType: {
790
+ kind: "OBJECT";
791
+ name: "OperationItem";
792
+ ofType: null;
793
+ };
794
+ };
795
+ };
796
+ };
797
+ };
798
+ };
799
+ };
800
+ SchemaType: {
801
+ name: "SchemaType";
802
+ enumValues: "url" | "yaml" | "json";
803
+ };
804
+ String: unknown;
805
+ TagItem: {
806
+ kind: "OBJECT";
807
+ name: "TagItem";
808
+ fields: {
809
+ description: {
810
+ name: "description";
811
+ type: {
812
+ kind: "SCALAR";
813
+ name: "String";
814
+ ofType: null;
815
+ };
816
+ };
817
+ name: {
818
+ name: "name";
819
+ type: {
820
+ kind: "NON_NULL";
821
+ name: never;
822
+ ofType: {
823
+ kind: "SCALAR";
824
+ name: "String";
825
+ ofType: null;
826
+ };
827
+ };
828
+ };
829
+ };
830
+ };
831
+ };
832
+ }, {
833
+ isMaskingDisabled: false;
834
+ }>;
835
+ export type { FragmentOf, ResultOf, VariablesOf } from "gql.tada";
836
+ export { readFragment } from "gql.tada";