zudoku 0.0.0-e614aaa → 0.0.0-e6d1d34

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 (543) hide show
  1. package/README.md +1 -1
  2. package/dist/app/entry.server.d.ts +8 -6
  3. package/dist/app/entry.server.js +12 -8
  4. package/dist/app/entry.server.js.map +1 -1
  5. package/dist/app/main.js +2 -0
  6. package/dist/app/main.js.map +1 -1
  7. package/dist/app/tailwind.js +14 -0
  8. package/dist/app/tailwind.js.map +1 -1
  9. package/dist/cli/build/handler.js +2 -1
  10. package/dist/cli/build/handler.js.map +1 -1
  11. package/dist/cli/cmds/dev.d.ts +1 -1
  12. package/dist/cli/cmds/dev.js.map +1 -1
  13. package/dist/cli/dev/handler.js +2 -1
  14. package/dist/cli/dev/handler.js.map +1 -1
  15. package/dist/cli/preview/handler.js +13 -15
  16. package/dist/cli/preview/handler.js.map +1 -1
  17. package/dist/config/common.d.ts +0 -1
  18. package/dist/config/config.d.ts +13 -8
  19. package/dist/config/loader.d.ts +2 -2
  20. package/dist/config/loader.js +14 -25
  21. package/dist/config/loader.js.map +1 -1
  22. package/dist/config/validators/common.d.ts +2773 -597
  23. package/dist/config/validators/common.js +81 -4
  24. package/dist/config/validators/common.js.map +1 -1
  25. package/dist/config/validators/validate.d.ts +1013 -257
  26. package/dist/lib/authentication/authentication.d.ts +1 -0
  27. package/dist/lib/authentication/hook.d.ts +1 -0
  28. package/dist/lib/authentication/hook.js +11 -1
  29. package/dist/lib/authentication/hook.js.map +1 -1
  30. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  31. package/dist/lib/authentication/providers/clerk.js +19 -0
  32. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  33. package/dist/lib/authentication/providers/openid.d.ts +1 -0
  34. package/dist/lib/authentication/providers/openid.js +20 -8
  35. package/dist/lib/authentication/providers/openid.js.map +1 -1
  36. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  37. package/dist/lib/authentication/providers/supabase.js +117 -0
  38. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  39. package/dist/lib/authentication/state.d.ts +0 -26
  40. package/dist/lib/authentication/state.js +1 -16
  41. package/dist/lib/authentication/state.js.map +1 -1
  42. package/dist/lib/components/AnchorLink.d.ts +2 -2
  43. package/dist/lib/components/AnchorLink.js +5 -4
  44. package/dist/lib/components/AnchorLink.js.map +1 -1
  45. package/dist/lib/components/Bootstrap.d.ts +2 -1
  46. package/dist/lib/components/Bootstrap.js +3 -2
  47. package/dist/lib/components/Bootstrap.js.map +1 -1
  48. package/dist/lib/components/Footer.d.ts +1 -0
  49. package/dist/lib/components/Footer.js +32 -0
  50. package/dist/lib/components/Footer.js.map +1 -0
  51. package/dist/lib/components/Header.js +4 -4
  52. package/dist/lib/components/Header.js.map +1 -1
  53. package/dist/lib/components/Heading.d.ts +1 -1
  54. package/dist/lib/components/InlineCode.d.ts +2 -1
  55. package/dist/lib/components/InlineCode.js +2 -9
  56. package/dist/lib/components/InlineCode.js.map +1 -1
  57. package/dist/lib/components/Layout.js +8 -29
  58. package/dist/lib/components/Layout.js.map +1 -1
  59. package/dist/lib/components/Main.d.ts +2 -0
  60. package/dist/lib/components/Main.js +17 -0
  61. package/dist/lib/components/Main.js.map +1 -0
  62. package/dist/lib/components/MobileTopNavigation.js +6 -3
  63. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  64. package/dist/lib/components/Pagination.d.ts +11 -0
  65. package/dist/lib/components/Pagination.js +10 -0
  66. package/dist/lib/components/Pagination.js.map +1 -0
  67. package/dist/lib/components/TopNavigation.d.ts +3 -2
  68. package/dist/lib/components/TopNavigation.js +26 -13
  69. package/dist/lib/components/TopNavigation.js.map +1 -1
  70. package/dist/lib/components/Zudoku.js +9 -3
  71. package/dist/lib/components/Zudoku.js.map +1 -1
  72. package/dist/lib/components/cache.d.ts +7 -0
  73. package/dist/lib/components/cache.js +7 -0
  74. package/dist/lib/components/cache.js.map +1 -1
  75. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  76. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  77. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  78. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  79. package/dist/lib/components/context/ViewportAnchorContext.js +5 -10
  80. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  81. package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
  82. package/dist/lib/components/context/ZudokuContext.js +13 -7
  83. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  84. package/dist/lib/components/index.d.ts +5 -2
  85. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  86. package/dist/lib/components/navigation/PoweredByZudoku.js +6 -0
  87. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  88. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  89. package/dist/lib/components/navigation/Sidebar.js +1 -12
  90. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  91. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  92. package/dist/lib/components/navigation/SidebarCategory.js +10 -6
  93. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  94. package/dist/lib/components/navigation/SidebarItem.d.ts +1 -0
  95. package/dist/lib/components/navigation/SidebarItem.js +17 -11
  96. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  97. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  98. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  99. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  100. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
  101. package/dist/lib/components/navigation/Toc.js.map +1 -0
  102. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  103. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  104. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  105. package/dist/lib/core/RouteGuard.d.ts +1 -0
  106. package/dist/lib/core/RouteGuard.js +10 -3
  107. package/dist/lib/core/RouteGuard.js.map +1 -1
  108. package/dist/lib/core/ZudokuContext.d.ts +23 -7
  109. package/dist/lib/core/ZudokuContext.js +12 -5
  110. package/dist/lib/core/ZudokuContext.js.map +1 -1
  111. package/dist/lib/core/plugins.d.ts +9 -7
  112. package/dist/lib/errors/ErrorAlert.js +6 -1
  113. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  114. package/dist/lib/hooks/useEvent.test.js +1 -1
  115. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  116. package/dist/lib/oas/graphql/index.d.ts +17 -4
  117. package/dist/lib/oas/graphql/index.js +148 -38
  118. package/dist/lib/oas/graphql/index.js.map +1 -1
  119. package/dist/lib/oas/parser/dereference/index.js +2 -0
  120. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  121. package/dist/lib/oas/parser/index.d.ts +5 -3
  122. package/dist/lib/oas/parser/index.js +0 -22
  123. package/dist/lib/oas/parser/index.js.map +1 -1
  124. package/dist/lib/plugins/api-catalog/Catalog.js +1 -1
  125. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  126. package/dist/lib/plugins/api-catalog/index.js +19 -17
  127. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  128. package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
  129. package/dist/lib/plugins/markdown/MdxPage.js +3 -9
  130. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  131. package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
  132. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  133. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  134. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  135. package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
  136. package/dist/lib/plugins/openapi/OperationList.js +63 -19
  137. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  138. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  139. package/dist/lib/plugins/openapi/OperationListItem.js +6 -12
  140. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  141. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  142. package/dist/lib/plugins/openapi/ParamInfos.js +42 -0
  143. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  144. package/dist/lib/plugins/openapi/ParameterListItem.js +9 -4
  145. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  146. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -1
  147. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  148. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  149. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  150. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  151. package/dist/lib/plugins/openapi/Sidecar.js +38 -9
  152. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  153. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  154. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  155. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
  156. package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
  157. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  158. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +6 -2
  159. package/dist/lib/plugins/openapi/client/useCreateQuery.js +6 -5
  160. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  161. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  162. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  163. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  164. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  165. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  166. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  167. package/dist/lib/plugins/openapi/graphql/gql.d.ts +9 -5
  168. package/dist/lib/plugins/openapi/graphql/gql.js +5 -4
  169. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  170. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +108 -55
  171. package/dist/lib/plugins/openapi/graphql/graphql.js +59 -34
  172. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  173. package/dist/lib/plugins/openapi/index.d.ts +6 -11
  174. package/dist/lib/plugins/openapi/index.js +41 -60
  175. package/dist/lib/plugins/openapi/index.js.map +1 -1
  176. package/dist/lib/plugins/openapi/interfaces.d.ts +36 -10
  177. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
  178. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -5
  179. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  180. package/dist/lib/plugins/openapi/playground/Headers.js +1 -1
  181. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  182. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  183. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  184. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  185. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  186. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
  187. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  188. package/dist/lib/plugins/openapi/playground/Playground.d.ts +13 -2
  189. package/dist/lib/plugins/openapi/playground/Playground.js +81 -27
  190. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  191. package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
  192. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  193. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  194. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  195. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  196. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  197. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  198. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  199. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +19 -13
  200. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  201. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  202. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +4 -3
  203. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  204. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  205. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  206. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  207. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  208. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  209. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  210. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  211. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  212. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  213. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  214. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
  215. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  216. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
  217. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +18 -13
  218. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  219. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
  220. package/dist/lib/plugins/openapi/schema/SchemaView.js +33 -48
  221. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  222. package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
  223. package/dist/lib/plugins/openapi/schema/utils.js +3 -1
  224. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  225. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  226. package/dist/lib/plugins/openapi/state.js +18 -0
  227. package/dist/lib/plugins/openapi/state.js.map +1 -0
  228. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +5 -7
  229. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -1
  230. package/dist/lib/plugins/openapi/util/getRoutes.js +9 -3
  231. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  232. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +23 -10
  233. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  234. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -0
  235. package/dist/lib/plugins/search-pagefind/ResultList.js +19 -17
  236. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  237. package/dist/lib/plugins/search-pagefind/get-results.d.ts +8 -1
  238. package/dist/lib/plugins/search-pagefind/get-results.js +9 -4
  239. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  240. package/dist/lib/ui/Badge.d.ts +1 -1
  241. package/dist/lib/ui/Button.d.ts +2 -2
  242. package/dist/lib/ui/Button.js +2 -1
  243. package/dist/lib/ui/Button.js.map +1 -1
  244. package/dist/lib/ui/Callout.d.ts +2 -1
  245. package/dist/lib/ui/Callout.js +3 -2
  246. package/dist/lib/ui/Callout.js.map +1 -1
  247. package/dist/lib/ui/Checkbox.d.ts +2 -8
  248. package/dist/lib/ui/Checkbox.js +1 -13
  249. package/dist/lib/ui/Checkbox.js.map +1 -1
  250. package/dist/lib/ui/Command.d.ts +1 -1
  251. package/dist/lib/ui/Select.js +1 -1
  252. package/dist/lib/ui/Select.js.map +1 -1
  253. package/dist/lib/ui/Stepper.d.ts +0 -1
  254. package/dist/lib/ui/Stepper.js +1 -1
  255. package/dist/lib/ui/Stepper.js.map +1 -1
  256. package/dist/lib/ui/SyntaxHighlight.d.ts +2 -1
  257. package/dist/lib/ui/SyntaxHighlight.js +21 -15
  258. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  259. package/dist/lib/util/MdxComponents.d.ts +3 -2
  260. package/dist/lib/util/MdxComponents.js +2 -2
  261. package/dist/lib/util/MdxComponents.js.map +1 -1
  262. package/dist/lib/util/joinPath.d.ts +3 -0
  263. package/dist/lib/util/joinPath.js +3 -0
  264. package/dist/lib/util/joinPath.js.map +1 -1
  265. package/dist/lib/util/traverse.d.ts +2 -8
  266. package/dist/lib/util/traverse.js +2 -2
  267. package/dist/lib/util/traverse.js.map +1 -1
  268. package/dist/lib/util/types.d.ts +7 -0
  269. package/dist/lib/util/types.js +2 -0
  270. package/dist/lib/util/types.js.map +1 -0
  271. package/dist/lib/util/useOnScreen.d.ts +3 -2
  272. package/dist/lib/util/useOnScreen.js +3 -3
  273. package/dist/lib/util/useOnScreen.js.map +1 -1
  274. package/dist/lib/util/useScrollToAnchor.js +20 -12
  275. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  276. package/dist/vite/api/schema-codegen.d.ts +1 -1
  277. package/dist/vite/api/schema-codegen.js +35 -12
  278. package/dist/vite/api/schema-codegen.js.map +1 -1
  279. package/dist/vite/api/schema-codegen.test.js +66 -0
  280. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  281. package/dist/vite/build.js +1 -4
  282. package/dist/vite/build.js.map +1 -1
  283. package/dist/vite/config.js +7 -9
  284. package/dist/vite/config.js.map +1 -1
  285. package/dist/vite/create-pagefind-index.d.ts +4 -0
  286. package/dist/vite/create-pagefind-index.js +12 -0
  287. package/dist/vite/create-pagefind-index.js.map +1 -0
  288. package/dist/vite/dev-server.js +4 -4
  289. package/dist/vite/dev-server.js.map +1 -1
  290. package/dist/vite/plugin-api.js +36 -29
  291. package/dist/vite/plugin-api.js.map +1 -1
  292. package/dist/vite/plugin-config-reload.js +3 -2
  293. package/dist/vite/plugin-config-reload.js.map +1 -1
  294. package/dist/vite/plugin-docs.d.ts +1 -1
  295. package/dist/vite/plugin-docs.js +18 -1
  296. package/dist/vite/plugin-docs.js.map +1 -1
  297. package/dist/vite/prerender/FileWritingResponse.d.ts +9 -5
  298. package/dist/vite/prerender/FileWritingResponse.js +5 -5
  299. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  300. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  301. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  302. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  303. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  304. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  305. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  306. package/dist/vite/prerender/prerender.d.ts +1 -0
  307. package/dist/vite/prerender/prerender.js +32 -8
  308. package/dist/vite/prerender/prerender.js.map +1 -1
  309. package/dist/vite/prerender/worker.js +41 -14
  310. package/dist/vite/prerender/worker.js.map +1 -1
  311. package/dist/zuplo/with-zuplo.js +4 -0
  312. package/dist/zuplo/with-zuplo.js.map +1 -1
  313. package/lib/{AuthenticationPlugin-CiO1FM6Q.js → AuthenticationPlugin-foqdvvkf.js} +3 -3
  314. package/lib/{AuthenticationPlugin-CiO1FM6Q.js.map → AuthenticationPlugin-foqdvvkf.js.map} +1 -1
  315. package/lib/Button-Fp19CMUr.js +49 -0
  316. package/lib/Button-Fp19CMUr.js.map +1 -0
  317. package/lib/Callout-B2vsR09t.js +229 -0
  318. package/lib/Callout-B2vsR09t.js.map +1 -0
  319. package/lib/{Dialog-DIKGQxQc.js → Dialog-sbgekbjb.js} +47 -32
  320. package/lib/{Dialog-DIKGQxQc.js.map → Dialog-sbgekbjb.js.map} +1 -1
  321. package/lib/Drawer-kDAfOq_2.js +1133 -0
  322. package/lib/Drawer-kDAfOq_2.js.map +1 -0
  323. package/lib/{Markdown-DePfm7oQ.js → Markdown-aF5FdsNi.js} +6268 -4572
  324. package/lib/Markdown-aF5FdsNi.js.map +1 -0
  325. package/lib/MdxPage-Vw_dc9Yz.js +85 -0
  326. package/lib/MdxPage-Vw_dc9Yz.js.map +1 -0
  327. package/lib/{OasProvider-BSuptFK-.js → OasProvider-C5paEivQ.js} +4 -4
  328. package/lib/{OasProvider-BSuptFK-.js.map → OasProvider-C5paEivQ.js.map} +1 -1
  329. package/lib/OperationList-Ds9Izgkn.js +5069 -0
  330. package/lib/OperationList-Ds9Izgkn.js.map +1 -0
  331. package/lib/Pagination-SdlocK96.js +48 -0
  332. package/lib/Pagination-SdlocK96.js.map +1 -0
  333. package/lib/{index.esm-CQHE3GEU.js → RouteGuard-CqZPoZYJ.js} +192 -139
  334. package/lib/RouteGuard-CqZPoZYJ.js.map +1 -0
  335. package/lib/SchemaList-NZbDXAV5.js +148 -0
  336. package/lib/SchemaList-NZbDXAV5.js.map +1 -0
  337. package/lib/SchemaView-B3fOPR4V.js +357 -0
  338. package/lib/SchemaView-B3fOPR4V.js.map +1 -0
  339. package/lib/{Select-Dqtcn53H.js → Select-DVFRKf1R.js} +9 -9
  340. package/lib/{Select-Dqtcn53H.js.map → Select-DVFRKf1R.js.map} +1 -1
  341. package/lib/SlotletProvider-DXvc0aY6.js +338 -0
  342. package/lib/SlotletProvider-DXvc0aY6.js.map +1 -0
  343. package/lib/Spinner-CE68iCm0.js +7 -0
  344. package/lib/Spinner-CE68iCm0.js.map +1 -0
  345. package/lib/SyntaxHighlight-BEoSoPEo.js +2890 -0
  346. package/lib/SyntaxHighlight-BEoSoPEo.js.map +1 -0
  347. package/lib/Toc-YBsgI72s.js +92 -0
  348. package/lib/Toc-YBsgI72s.js.map +1 -0
  349. package/lib/{chunk-IR6S3I6Y-D_3UmFIn.js → chunk-HA7DTUK3-C4gP41vD.js} +278 -278
  350. package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +1 -0
  351. package/lib/{circular-v7K6lDDh.js → circular-ByJI6Mci.js} +4887 -4419
  352. package/lib/circular-ByJI6Mci.js.map +1 -0
  353. package/lib/{createServer-DmusVVsi.js → createServer-mYvGvmc0.js} +4150 -4424
  354. package/lib/createServer-mYvGvmc0.js.map +1 -0
  355. package/lib/{hook-CN__aZIt.js → hook-CqpVYDqN.js} +398 -379
  356. package/lib/hook-CqpVYDqN.js.map +1 -0
  357. package/lib/index-D48iOQvJ.js +1973 -0
  358. package/lib/index-D48iOQvJ.js.map +1 -0
  359. package/lib/index-PGJOZ6R-.js +2227 -0
  360. package/lib/index-PGJOZ6R-.js.map +1 -0
  361. package/lib/{mutation-EclmI0is.js → mutation-8LjrN7uz.js} +2 -2
  362. package/lib/{mutation-EclmI0is.js.map → mutation-8LjrN7uz.js.map} +1 -1
  363. package/lib/post-processors/traverse.js +2 -2
  364. package/lib/post-processors/traverse.js.map +1 -1
  365. package/lib/prism-bash.min-HHIMdNJ_.js.map +1 -1
  366. package/lib/prism-csharp.min-bQAo2pmx.js.map +1 -1
  367. package/lib/prism-java.min-BpvsOuIa.js.map +1 -1
  368. package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
  369. package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
  370. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  371. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  372. package/lib/prism-markdown.min-C0Qn0m-5.js.map +1 -1
  373. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  374. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
  375. package/lib/prism-ruby.min-Dx9KO9ds.js.map +1 -1
  376. package/lib/prism-typescript.min-CD7H2IYQ.js.map +1 -1
  377. package/lib/ui/ActionButton.js +11 -10
  378. package/lib/ui/ActionButton.js.map +1 -1
  379. package/lib/ui/Button.js +13 -12
  380. package/lib/ui/Button.js.map +1 -1
  381. package/lib/ui/Callout.js +39 -21
  382. package/lib/ui/Callout.js.map +1 -1
  383. package/lib/ui/Checkbox.js +15 -25
  384. package/lib/ui/Checkbox.js.map +1 -1
  385. package/lib/ui/Command.js +1 -1
  386. package/lib/ui/Drawer.js +14 -1129
  387. package/lib/ui/Drawer.js.map +1 -1
  388. package/lib/ui/Select.js +1 -1
  389. package/lib/ui/Select.js.map +1 -1
  390. package/lib/ui/Stepper.js.map +1 -1
  391. package/lib/ui/SyntaxHighlight.js +8 -2902
  392. package/lib/ui/SyntaxHighlight.js.map +1 -1
  393. package/lib/{useExposedProps-RIvey2Oy.js → useExposedProps-B9qXJedG.js} +2 -2
  394. package/lib/{useExposedProps-RIvey2Oy.js.map → useExposedProps-B9qXJedG.js.map} +1 -1
  395. package/lib/useLatest-hmRS46UF.js +11 -0
  396. package/lib/useLatest-hmRS46UF.js.map +1 -0
  397. package/lib/zudoku.auth-auth0.js +1 -1
  398. package/lib/zudoku.auth-clerk.js +59 -41
  399. package/lib/zudoku.auth-clerk.js.map +1 -1
  400. package/lib/zudoku.auth-openid.js +341 -337
  401. package/lib/zudoku.auth-openid.js.map +1 -1
  402. package/lib/zudoku.components.js +32 -1395
  403. package/lib/zudoku.components.js.map +1 -1
  404. package/lib/zudoku.hooks.js +1 -1
  405. package/lib/zudoku.plugin-api-catalog.js +94 -98
  406. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  407. package/lib/zudoku.plugin-api-keys.js +4 -4
  408. package/lib/zudoku.plugin-custom-pages.js +2 -2
  409. package/lib/zudoku.plugin-markdown.js +1 -1
  410. package/lib/zudoku.plugin-openapi.js +5 -7
  411. package/lib/zudoku.plugin-openapi.js.map +1 -1
  412. package/lib/zudoku.plugin-redirect.js +1 -1
  413. package/lib/zudoku.plugin-search-pagefind.js +233 -0
  414. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  415. package/lib/zudoku.plugins.js.map +1 -1
  416. package/package.json +32 -24
  417. package/src/app/entry.server.tsx +23 -13
  418. package/src/app/main.css +98 -57
  419. package/src/app/main.tsx +2 -0
  420. package/src/app/tailwind.ts +14 -0
  421. package/src/lib/authentication/authentication.ts +2 -0
  422. package/src/lib/authentication/hook.ts +12 -1
  423. package/src/lib/authentication/providers/clerk.tsx +22 -2
  424. package/src/lib/authentication/providers/openid.tsx +23 -10
  425. package/src/lib/authentication/providers/supabase.tsx +157 -0
  426. package/src/lib/authentication/state.ts +1 -35
  427. package/src/lib/components/AnchorLink.tsx +9 -7
  428. package/src/lib/components/Bootstrap.tsx +13 -6
  429. package/src/lib/components/Footer.tsx +136 -0
  430. package/src/lib/components/Header.tsx +11 -7
  431. package/src/lib/components/InlineCode.tsx +13 -16
  432. package/src/lib/components/Layout.tsx +22 -68
  433. package/src/lib/components/Main.tsx +50 -0
  434. package/src/lib/components/MobileTopNavigation.tsx +27 -18
  435. package/src/lib/components/Pagination.tsx +50 -0
  436. package/src/lib/components/TopNavigation.tsx +40 -17
  437. package/src/lib/components/Zudoku.tsx +12 -3
  438. package/src/lib/components/cache.ts +8 -0
  439. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  440. package/src/lib/components/context/ViewportAnchorContext.tsx +6 -15
  441. package/src/lib/components/context/ZudokuContext.ts +17 -8
  442. package/src/lib/components/navigation/PoweredByZudoku.tsx +23 -0
  443. package/src/lib/components/navigation/Sidebar.tsx +30 -44
  444. package/src/lib/components/navigation/SidebarCategory.tsx +15 -12
  445. package/src/lib/components/navigation/SidebarItem.tsx +21 -29
  446. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -23
  447. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
  448. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  449. package/src/lib/core/RouteGuard.tsx +27 -4
  450. package/src/lib/core/ZudokuContext.ts +35 -15
  451. package/src/lib/core/plugins.ts +8 -8
  452. package/src/lib/errors/ErrorAlert.tsx +24 -17
  453. package/src/lib/hooks/useEvent.test.tsx +1 -1
  454. package/src/lib/oas/graphql/index.ts +202 -54
  455. package/src/lib/oas/parser/dereference/index.ts +2 -0
  456. package/src/lib/oas/parser/index.ts +7 -29
  457. package/src/lib/plugins/api-catalog/Catalog.tsx +1 -4
  458. package/src/lib/plugins/api-catalog/index.tsx +40 -35
  459. package/src/lib/plugins/markdown/MdxPage.tsx +11 -47
  460. package/src/lib/plugins/openapi/ColorizedParam.tsx +1 -1
  461. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  462. package/src/lib/plugins/openapi/OperationList.tsx +162 -84
  463. package/src/lib/plugins/openapi/OperationListItem.tsx +116 -110
  464. package/src/lib/plugins/openapi/ParamInfos.tsx +87 -0
  465. package/src/lib/plugins/openapi/ParameterListItem.tsx +35 -23
  466. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +7 -0
  467. package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
  468. package/src/lib/plugins/openapi/Sidecar.tsx +47 -11
  469. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  470. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
  471. package/src/lib/plugins/openapi/client/useCreateQuery.ts +13 -5
  472. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  473. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  474. package/src/lib/plugins/openapi/graphql/gql.ts +29 -20
  475. package/src/lib/plugins/openapi/graphql/graphql.ts +172 -86
  476. package/src/lib/plugins/openapi/index.tsx +55 -87
  477. package/src/lib/plugins/openapi/interfaces.ts +44 -15
  478. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +30 -32
  479. package/src/lib/plugins/openapi/playground/Headers.tsx +0 -1
  480. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  481. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
  482. package/src/lib/plugins/openapi/playground/Playground.tsx +175 -88
  483. package/src/lib/plugins/openapi/playground/QueryParams.tsx +0 -1
  484. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  485. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  486. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +24 -4
  487. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +67 -45
  488. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  489. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  490. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  491. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
  492. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +47 -50
  493. package/src/lib/plugins/openapi/schema/SchemaView.tsx +84 -138
  494. package/src/lib/plugins/openapi/schema/utils.ts +7 -1
  495. package/src/lib/plugins/openapi/state.ts +36 -0
  496. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +5 -7
  497. package/src/lib/plugins/openapi/util/getRoutes.tsx +9 -6
  498. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +39 -14
  499. package/src/lib/plugins/search-pagefind/ResultList.tsx +60 -53
  500. package/src/lib/plugins/search-pagefind/get-results.tsx +31 -10
  501. package/src/lib/ui/Button.tsx +4 -2
  502. package/src/lib/ui/Callout.tsx +28 -10
  503. package/src/lib/ui/Checkbox.tsx +8 -24
  504. package/src/lib/ui/Select.tsx +1 -1
  505. package/src/lib/ui/Stepper.tsx +1 -1
  506. package/src/lib/ui/SyntaxHighlight.tsx +96 -96
  507. package/src/lib/util/MdxComponents.tsx +2 -2
  508. package/src/lib/util/joinPath.tsx +3 -0
  509. package/src/lib/util/traverse.ts +4 -8
  510. package/src/lib/util/types.ts +7 -0
  511. package/src/lib/util/useOnScreen.ts +6 -4
  512. package/src/lib/util/useScrollToAnchor.ts +22 -12
  513. package/dist/lib/components/context/PluginSystem.d.ts +0 -1
  514. package/dist/lib/components/context/PluginSystem.js +0 -2
  515. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  516. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  517. package/dist/vite/pagefind.d.ts +0 -4
  518. package/dist/vite/pagefind.js +0 -15
  519. package/dist/vite/pagefind.js.map +0 -1
  520. package/lib/Markdown-DePfm7oQ.js.map +0 -1
  521. package/lib/MdxPage-BN6l6zXL.js +0 -201
  522. package/lib/MdxPage-BN6l6zXL.js.map +0 -1
  523. package/lib/OperationList-DOcfDmJP.js +0 -5217
  524. package/lib/OperationList-DOcfDmJP.js.map +0 -1
  525. package/lib/SlotletProvider-DdtIOUi6.js +0 -221
  526. package/lib/SlotletProvider-DdtIOUi6.js.map +0 -1
  527. package/lib/Spinner-1KrEmx1V.js +0 -51
  528. package/lib/Spinner-1KrEmx1V.js.map +0 -1
  529. package/lib/chunk-IR6S3I6Y-D_3UmFIn.js.map +0 -1
  530. package/lib/circular-v7K6lDDh.js.map +0 -1
  531. package/lib/createServer-DmusVVsi.js.map +0 -1
  532. package/lib/hook-CN__aZIt.js.map +0 -1
  533. package/lib/index-BTbP6Lgf.js +0 -2103
  534. package/lib/index-BTbP6Lgf.js.map +0 -1
  535. package/lib/index.esm-CQHE3GEU.js.map +0 -1
  536. package/lib/joinUrl-10po2Jdj.js +0 -20
  537. package/lib/joinUrl-10po2Jdj.js.map +0 -1
  538. package/lib/useScrollToAnchor-RyqO3lj4.js +0 -290
  539. package/lib/useScrollToAnchor-RyqO3lj4.js.map +0 -1
  540. package/lib/zudoku.css +0 -1
  541. package/src/lib/components/context/PluginSystem.ts +0 -0
  542. package/src/lib/ui/Stepper.css +0 -43
  543. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
@@ -58,6 +58,10 @@ export type Scalars = {
58
58
  output: any;
59
59
  };
60
60
  };
61
+ export type Components = {
62
+ __typename?: "Components";
63
+ schemas?: Maybe<Array<SchemaItem>>;
64
+ };
61
65
  export type EncodingItem = {
62
66
  __typename?: "EncodingItem";
63
67
  allowReserved?: Maybe<Scalars["Boolean"]["output"]>;
@@ -87,6 +91,7 @@ export type OperationItem = {
87
91
  contentTypes: Array<Scalars["String"]["output"]>;
88
92
  deprecated?: Maybe<Scalars["Boolean"]["output"]>;
89
93
  description?: Maybe<Scalars["String"]["output"]>;
94
+ extensions?: Maybe<Scalars["JSONObject"]["output"]>;
90
95
  method: Scalars["String"]["output"];
91
96
  operationId?: Maybe<Scalars["String"]["output"]>;
92
97
  parameters?: Maybe<Array<ParameterItem>>;
@@ -106,6 +111,7 @@ export type ParameterItem = {
106
111
  description?: Maybe<Scalars["String"]["output"]>;
107
112
  examples?: Maybe<Array<ExampleItem>>;
108
113
  explode?: Maybe<Scalars["Boolean"]["output"]>;
114
+ extensions?: Maybe<Scalars["JSONObject"]["output"]>;
109
115
  in: ParameterIn;
110
116
  name: Scalars["String"]["output"];
111
117
  required?: Maybe<Scalars["Boolean"]["output"]>;
@@ -135,18 +141,22 @@ export type ResponseItem = {
135
141
  __typename?: "ResponseItem";
136
142
  content?: Maybe<Array<MediaTypeObject>>;
137
143
  description?: Maybe<Scalars["String"]["output"]>;
144
+ extensions?: Maybe<Scalars["JSONObject"]["output"]>;
138
145
  headers?: Maybe<Scalars["JSON"]["output"]>;
139
146
  links?: Maybe<Scalars["JSON"]["output"]>;
140
147
  statusCode: Scalars["String"]["output"];
141
148
  };
142
149
  export type Schema = {
143
150
  __typename?: "Schema";
151
+ components?: Maybe<Components>;
144
152
  description?: Maybe<Scalars["String"]["output"]>;
153
+ extensions?: Maybe<Scalars["JSONObject"]["output"]>;
145
154
  openapi: Scalars["String"]["output"];
146
155
  operations: Array<OperationItem>;
147
156
  paths: Array<PathItem>;
148
157
  servers: Array<Server>;
149
158
  summary?: Maybe<Scalars["String"]["output"]>;
159
+ tag?: Maybe<SchemaTag>;
150
160
  tags: Array<SchemaTag>;
151
161
  title: Scalars["String"]["output"];
152
162
  url?: Maybe<Scalars["String"]["output"]>;
@@ -159,14 +169,27 @@ export type SchemaOperationsArgs = {
159
169
  tag?: InputMaybe<Scalars["String"]["input"]>;
160
170
  untagged?: InputMaybe<Scalars["Boolean"]["input"]>;
161
171
  };
162
- export type SchemaTagsArgs = {
172
+ export type SchemaTagArgs = {
163
173
  name?: InputMaybe<Scalars["String"]["input"]>;
174
+ slug?: InputMaybe<Scalars["String"]["input"]>;
175
+ untagged?: InputMaybe<Scalars["Boolean"]["input"]>;
176
+ };
177
+ export type SchemaItem = {
178
+ __typename?: "SchemaItem";
179
+ extensions?: Maybe<Scalars["JSONObject"]["output"]>;
180
+ name: Scalars["String"]["output"];
181
+ schema: Scalars["JSONSchema"]["output"];
164
182
  };
165
183
  export type SchemaTag = {
166
184
  __typename?: "SchemaTag";
167
185
  description?: Maybe<Scalars["String"]["output"]>;
168
- name: Scalars["String"]["output"];
186
+ extensions?: Maybe<Scalars["JSONObject"]["output"]>;
187
+ isUntagged: Scalars["Boolean"]["output"];
188
+ name?: Maybe<Scalars["String"]["output"]>;
189
+ next?: Maybe<SchemaTag>;
169
190
  operations: Array<OperationItem>;
191
+ prev?: Maybe<SchemaTag>;
192
+ slug?: Maybe<Scalars["String"]["output"]>;
170
193
  };
171
194
  export type SchemaType = "file" | "raw" | "url";
172
195
  export type Server = {
@@ -177,6 +200,7 @@ export type Server = {
177
200
  export type TagItem = {
178
201
  __typename?: "TagItem";
179
202
  description?: Maybe<Scalars["String"]["output"]>;
203
+ extensions?: Maybe<Scalars["JSONObject"]["output"]>;
180
204
  name: Scalars["String"]["output"];
181
205
  };
182
206
  export type ServersQueryQueryVariables = Exact<{
@@ -203,6 +227,8 @@ export type OperationsFragmentFragment = {
203
227
  operationId?: string | null;
204
228
  contentTypes: Array<string>;
205
229
  path: string;
230
+ deprecated?: boolean | null;
231
+ extensions?: any | null;
206
232
  parameters?: Array<{
207
233
  __typename?: "ParameterItem";
208
234
  name: string;
@@ -211,6 +237,7 @@ export type OperationsFragmentFragment = {
211
237
  required?: boolean | null;
212
238
  schema?: any | null;
213
239
  style?: string | null;
240
+ explode?: boolean | null;
214
241
  examples?: Array<{
215
242
  __typename?: "ExampleItem";
216
243
  name: string;
@@ -268,13 +295,24 @@ export type OperationsFragmentFragment = {
268
295
  } & {
269
296
  " $fragmentName"?: "OperationsFragmentFragment";
270
297
  };
271
- export type AllOperationsQueryVariables = Exact<{
298
+ export type SchemaWarmupQueryVariables = Exact<{
299
+ input: Scalars["JSON"]["input"];
300
+ type: SchemaType;
301
+ }>;
302
+ export type SchemaWarmupQuery = {
303
+ __typename?: "Query";
304
+ schema: {
305
+ __typename?: "Schema";
306
+ openapi: string;
307
+ };
308
+ };
309
+ export type OperationsForTagQueryVariables = Exact<{
272
310
  input: Scalars["JSON"]["input"];
273
311
  type: SchemaType;
274
312
  tag?: InputMaybe<Scalars["String"]["input"]>;
275
313
  untagged?: InputMaybe<Scalars["Boolean"]["input"]>;
276
314
  }>;
277
- export type AllOperationsQuery = {
315
+ export type OperationsForTagQuery = {
278
316
  __typename?: "Query";
279
317
  schema: {
280
318
  __typename?: "Schema";
@@ -287,94 +325,109 @@ export type AllOperationsQuery = {
287
325
  __typename?: "Server";
288
326
  url: string;
289
327
  }>;
290
- tags: Array<{
328
+ tag?: {
291
329
  __typename?: "SchemaTag";
292
- name: string;
330
+ name?: string | null;
293
331
  description?: string | null;
294
- }>;
295
- operations: Array<{
296
- __typename?: "OperationItem";
297
- slug: string;
298
- } & {
299
- " $fragmentRefs"?: {
300
- OperationsFragmentFragment: OperationsFragmentFragment;
301
- };
302
- }>;
332
+ operations: Array<{
333
+ __typename?: "OperationItem";
334
+ slug: string;
335
+ } & {
336
+ " $fragmentRefs"?: {
337
+ OperationsFragmentFragment: OperationsFragmentFragment;
338
+ };
339
+ }>;
340
+ next?: {
341
+ __typename?: "SchemaTag";
342
+ name?: string | null;
343
+ slug?: string | null;
344
+ } | null;
345
+ prev?: {
346
+ __typename?: "SchemaTag";
347
+ name?: string | null;
348
+ slug?: string | null;
349
+ } | null;
350
+ } | null;
303
351
  };
304
352
  };
305
- export type GetServerQueryQueryVariables = Exact<{
353
+ export type GetSchemasQueryVariables = Exact<{
306
354
  input: Scalars["JSON"]["input"];
307
355
  type: SchemaType;
308
356
  }>;
309
- export type GetServerQueryQuery = {
357
+ export type GetSchemasQuery = {
310
358
  __typename?: "Query";
311
359
  schema: {
312
360
  __typename?: "Schema";
313
- url?: string | null;
314
- servers: Array<{
315
- __typename?: "Server";
316
- url: string;
317
- }>;
361
+ title: string;
362
+ description?: string | null;
363
+ summary?: string | null;
364
+ components?: {
365
+ __typename?: "Components";
366
+ schemas?: Array<{
367
+ __typename?: "SchemaItem";
368
+ name: string;
369
+ schema: any;
370
+ extensions?: any | null;
371
+ }> | null;
372
+ } | null;
318
373
  };
319
374
  };
320
- export type GetCategoriesQueryVariables = Exact<{
375
+ export type GetServerQueryQueryVariables = Exact<{
321
376
  input: Scalars["JSON"]["input"];
322
377
  type: SchemaType;
323
378
  }>;
324
- export type GetCategoriesQuery = {
379
+ export type GetServerQueryQuery = {
325
380
  __typename?: "Query";
326
381
  schema: {
327
382
  __typename?: "Schema";
328
383
  url?: string | null;
329
- tags: Array<{
330
- __typename?: "SchemaTag";
331
- name: string;
384
+ servers: Array<{
385
+ __typename?: "Server";
386
+ url: string;
332
387
  }>;
333
388
  };
334
389
  };
335
- export type GetOperationsQueryVariables = Exact<{
390
+ export type GetSidebarOperationsQueryVariables = Exact<{
336
391
  input: Scalars["JSON"]["input"];
337
392
  type: SchemaType;
338
- tag?: InputMaybe<Scalars["String"]["input"]>;
339
393
  }>;
340
- export type GetOperationsQuery = {
394
+ export type GetSidebarOperationsQuery = {
341
395
  __typename?: "Query";
342
396
  schema: {
343
397
  __typename?: "Schema";
344
- operations: Array<{
345
- __typename?: "OperationItem";
346
- slug: string;
347
- deprecated?: boolean | null;
348
- method: string;
349
- summary?: string | null;
350
- operationId?: string | null;
351
- path: string;
352
- tags?: Array<{
353
- __typename?: "TagItem";
354
- name: string;
355
- }> | null;
356
- }>;
357
- untagged: Array<{
358
- __typename?: "OperationItem";
359
- slug: string;
360
- deprecated?: boolean | null;
361
- method: string;
362
- summary?: string | null;
363
- operationId?: string | null;
364
- path: string;
398
+ tags: Array<{
399
+ __typename?: "SchemaTag";
400
+ slug?: string | null;
401
+ name?: string | null;
402
+ extensions?: any | null;
403
+ operations: Array<{
404
+ __typename?: "OperationItem";
405
+ summary?: string | null;
406
+ slug: string;
407
+ method: string;
408
+ operationId?: string | null;
409
+ path: string;
410
+ }>;
365
411
  }>;
412
+ components?: {
413
+ __typename?: "Components";
414
+ schemas?: Array<{
415
+ __typename: "SchemaItem";
416
+ }> | null;
417
+ } | null;
366
418
  };
367
419
  };
368
420
  export declare class TypedDocumentString<TResult, TVariables> extends String implements DocumentTypeDecoration<TResult, TVariables> {
421
+ __apiType?: DocumentTypeDecoration<TResult, TVariables>["__apiType"];
369
422
  private value;
370
423
  __meta__?: Record<string, any> | undefined;
371
- __apiType?: DocumentTypeDecoration<TResult, TVariables>["__apiType"];
372
424
  constructor(value: string, __meta__?: Record<string, any> | undefined);
373
425
  toString(): string & DocumentTypeDecoration<TResult, TVariables>;
374
426
  }
375
427
  export declare const OperationsFragmentFragmentDoc: TypedDocumentString<OperationsFragmentFragment, unknown>;
376
428
  export declare const ServersQueryDocument: TypedDocumentString<ServersQueryQuery, ServersQueryQueryVariables>;
377
- export declare const AllOperationsDocument: TypedDocumentString<AllOperationsQuery, AllOperationsQueryVariables>;
429
+ export declare const SchemaWarmupDocument: TypedDocumentString<SchemaWarmupQuery, SchemaWarmupQueryVariables>;
430
+ export declare const OperationsForTagDocument: TypedDocumentString<OperationsForTagQuery, OperationsForTagQueryVariables>;
431
+ export declare const GetSchemasDocument: TypedDocumentString<GetSchemasQuery, GetSchemasQueryVariables>;
378
432
  export declare const GetServerQueryDocument: TypedDocumentString<GetServerQueryQuery, GetServerQueryQueryVariables>;
379
- export declare const GetCategoriesDocument: TypedDocumentString<GetCategoriesQuery, GetCategoriesQueryVariables>;
380
- export declare const GetOperationsDocument: TypedDocumentString<GetOperationsQuery, GetOperationsQueryVariables>;
433
+ export declare const GetSidebarOperationsDocument: TypedDocumentString<GetSidebarOperationsQuery, GetSidebarOperationsQueryVariables>;
@@ -1,7 +1,7 @@
1
1
  export class TypedDocumentString extends String {
2
+ __apiType;
2
3
  value;
3
4
  __meta__;
4
- __apiType;
5
5
  constructor(value, __meta__) {
6
6
  super(value);
7
7
  this.value = value;
@@ -20,6 +20,8 @@ export const OperationsFragmentFragmentDoc = new TypedDocumentString(`
20
20
  operationId
21
21
  contentTypes
22
22
  path
23
+ deprecated
24
+ extensions
23
25
  parameters {
24
26
  name
25
27
  in
@@ -27,6 +29,7 @@ export const OperationsFragmentFragmentDoc = new TypedDocumentString(`
27
29
  required
28
30
  schema
29
31
  style
32
+ explode
30
33
  examples {
31
34
  name
32
35
  description
@@ -84,8 +87,15 @@ export const ServersQueryDocument = new TypedDocumentString(`
84
87
  }
85
88
  }
86
89
  `);
87
- export const AllOperationsDocument = new TypedDocumentString(`
88
- query AllOperations($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
90
+ export const SchemaWarmupDocument = new TypedDocumentString(`
91
+ query SchemaWarmup($input: JSON!, $type: SchemaType!) {
92
+ schema(input: $input, type: $type) {
93
+ openapi
94
+ }
95
+ }
96
+ `);
97
+ export const OperationsForTagDocument = new TypedDocumentString(`
98
+ query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
89
99
  schema(input: $input, type: $type) {
90
100
  servers {
91
101
  url
@@ -95,13 +105,21 @@ export const AllOperationsDocument = new TypedDocumentString(`
95
105
  title
96
106
  url
97
107
  version
98
- tags(name: $tag) {
108
+ tag(slug: $tag, untagged: $untagged) {
99
109
  name
100
110
  description
101
- }
102
- operations(tag: $tag, untagged: $untagged) {
103
- slug
104
- ...OperationsFragment
111
+ operations {
112
+ slug
113
+ ...OperationsFragment
114
+ }
115
+ next {
116
+ name
117
+ slug
118
+ }
119
+ prev {
120
+ name
121
+ slug
122
+ }
105
123
  }
106
124
  }
107
125
  }
@@ -113,6 +131,8 @@ export const AllOperationsDocument = new TypedDocumentString(`
113
131
  operationId
114
132
  contentTypes
115
133
  path
134
+ deprecated
135
+ extensions
116
136
  parameters {
117
137
  name
118
138
  in
@@ -120,6 +140,7 @@ export const AllOperationsDocument = new TypedDocumentString(`
120
140
  required
121
141
  schema
122
142
  style
143
+ explode
123
144
  examples {
124
145
  name
125
146
  description
@@ -166,47 +187,51 @@ export const AllOperationsDocument = new TypedDocumentString(`
166
187
  }
167
188
  }
168
189
  }`);
169
- export const GetServerQueryDocument = new TypedDocumentString(`
170
- query getServerQuery($input: JSON!, $type: SchemaType!) {
190
+ export const GetSchemasDocument = new TypedDocumentString(`
191
+ query GetSchemas($input: JSON!, $type: SchemaType!) {
171
192
  schema(input: $input, type: $type) {
172
- url
173
- servers {
174
- url
193
+ title
194
+ description
195
+ summary
196
+ components {
197
+ schemas {
198
+ name
199
+ schema
200
+ extensions
201
+ }
175
202
  }
176
203
  }
177
204
  }
178
205
  `);
179
- export const GetCategoriesDocument = new TypedDocumentString(`
180
- query GetCategories($input: JSON!, $type: SchemaType!) {
206
+ export const GetServerQueryDocument = new TypedDocumentString(`
207
+ query getServerQuery($input: JSON!, $type: SchemaType!) {
181
208
  schema(input: $input, type: $type) {
182
209
  url
183
- tags {
184
- name
210
+ servers {
211
+ url
185
212
  }
186
213
  }
187
214
  }
188
215
  `);
189
- export const GetOperationsDocument = new TypedDocumentString(`
190
- query GetOperations($input: JSON!, $type: SchemaType!, $tag: String) {
216
+ export const GetSidebarOperationsDocument = new TypedDocumentString(`
217
+ query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
191
218
  schema(input: $input, type: $type) {
192
- operations(tag: $tag) {
219
+ tags {
193
220
  slug
194
- deprecated
195
- method
196
- summary
197
- operationId
198
- path
199
- tags {
200
- name
221
+ name
222
+ extensions
223
+ operations {
224
+ summary
225
+ slug
226
+ method
227
+ operationId
228
+ path
201
229
  }
202
230
  }
203
- untagged: operations(untagged: true) {
204
- slug
205
- deprecated
206
- method
207
- summary
208
- operationId
209
- path
231
+ components {
232
+ schemas {
233
+ __typename
234
+ }
210
235
  }
211
236
  }
212
237
  }
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/graphql/graphql.ts"],"names":[],"mappings":"AA6VA,MAAM,OAAO,mBACX,SAAQ,MAAM;IAMJ;IACD;IAJT,SAAS,CAA4D;IAErE,YACU,KAAa,EACd,QAA0C;QAEjD,KAAK,CAAC,KAAK,CAAC,CAAC;QAHL,UAAK,GAAL,KAAK,CAAQ;QACd,aAAQ,GAAR,QAAQ,CAAkC;IAGnD,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AACD,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,mBAAmB,CAClE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8DG,EACH,EAAE,YAAY,EAAE,oBAAoB,EAAE,CACgC,CAAC;AACzE,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;KASvD,CAGJ,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiF3D,CAGD,CAAC;AACF,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;KASzD,CAGJ,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;KASxD,CAGJ,CAAC;AACF,MAAM,CAAC,MAAM,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;AACF,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;KAsB/D,CAGJ,CAAC"}
@@ -1,17 +1,12 @@
1
- import type { ResultOf } from "@graphql-typed-document-node/core";
2
1
  import { type ZudokuPlugin } from "../../core/plugins.js";
3
- import type { SchemaImports } from "../../oas/graphql/index.js";
4
- import { OasPluginConfig } from "./interfaces.js";
5
- declare const GetOperationsQuery: import("./graphql/graphql.js").TypedDocumentString<import("./graphql/graphql.js").GetOperationsQuery, import("./graphql/graphql.js").Exact<{
2
+ import type { GetSidebarOperationsQuery } from "./graphql/graphql.js";
3
+ import { type OasPluginConfig } from "./interfaces.js";
4
+ declare const GetSidebarOperationsQuery: import("./graphql/graphql.js").TypedDocumentString<GetSidebarOperationsQuery, import("./graphql/graphql.js").Exact<{
6
5
  input: import("./graphql/graphql.js").Scalars["JSON"]["input"];
7
6
  type: import("./graphql/graphql.js").SchemaType;
8
- tag?: import("./graphql/graphql.js").InputMaybe<import("./graphql/graphql.js").Scalars["String"]["input"]>;
9
7
  }>>;
10
- export type OperationResult = ResultOf<typeof GetOperationsQuery>["schema"]["operations"][number];
11
- type InternalOasPluginConfig = {
12
- schemaImports?: SchemaImports;
13
- };
14
- export type OpenApiPluginOptions = OasPluginConfig & InternalOasPluginConfig;
8
+ export type OperationResult = GetSidebarOperationsQuery["schema"]["tags"][number]["operations"][number];
9
+ export type OpenApiPluginOptions = OasPluginConfig;
15
10
  export declare const UNTAGGED_PATH = "~endpoints";
16
- export declare const openApiPlugin: (config: OpenApiPluginOptions) => ZudokuPlugin;
11
+ export declare const openApiPlugin: (config: OasPluginConfig) => ZudokuPlugin;
17
12
  export {};
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import slugify from "@sindresorhus/slugify";
3
2
  import { CirclePlayIcon, LogInIcon } from "lucide-react";
4
3
  import { matchPath } from "react-router";
5
4
  import { useAuth } from "../../authentication/hook.js";
@@ -10,37 +9,25 @@ import { graphql } from "./graphql/index.js";
10
9
  import { PlaygroundDialog } from "./playground/PlaygroundDialog.js";
11
10
  import { createSidebarCategory } from "./util/createSidebarCategory.js";
12
11
  import { getRoutes, getVersions } from "./util/getRoutes.js";
13
- const GetCategoriesQuery = graphql(`
14
- query GetCategories($input: JSON!, $type: SchemaType!) {
12
+ const GetSidebarOperationsQuery = graphql(`
13
+ query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
15
14
  schema(input: $input, type: $type) {
16
- url
17
15
  tags {
18
- name
19
- }
20
- }
21
- }
22
- `);
23
- const GetOperationsQuery = graphql(`
24
- query GetOperations($input: JSON!, $type: SchemaType!, $tag: String) {
25
- schema(input: $input, type: $type) {
26
- operations(tag: $tag) {
27
16
  slug
28
- deprecated
29
- method
30
- summary
31
- operationId
32
- path
33
- tags {
34
- name
17
+ name
18
+ extensions
19
+ operations {
20
+ summary
21
+ slug
22
+ method
23
+ operationId
24
+ path
35
25
  }
36
26
  }
37
- untagged: operations(untagged: true) {
38
- slug
39
- deprecated
40
- method
41
- summary
42
- operationId
43
- path
27
+ components {
28
+ schemas {
29
+ __typename
30
+ }
44
31
  }
45
32
  }
46
33
  }
@@ -70,7 +57,7 @@ export const openApiPlugin = (config) => {
70
57
  return (_jsx(PlaygroundDialog, { url: url ?? "/", method: method ?? "get", server: server, ...props, children: _jsx(Button, { className: "gap-2 items-center", variant: "outline", children: children ?? (_jsxs(_Fragment, { children: ["Open in Playground ", _jsx(CirclePlayIcon, { size: 16 })] })) }) }));
71
58
  },
72
59
  }),
73
- getSidebar: async (path) => {
60
+ getSidebar: async (path, context) => {
74
61
  if (!matchPath({ path: basePath, end: false }, path)) {
75
62
  return [];
76
63
  }
@@ -78,49 +65,43 @@ export const openApiPlugin = (config) => {
78
65
  try {
79
66
  const versionParam = match?.params.version;
80
67
  const version = versionParam ?? getVersions(config).at(0);
81
- const type = config.type;
82
- const input = config.type === "file" ? config.input[version] : config.input;
83
- const collapsible = config.loadTags === true || config.type === "url";
84
- const collapsed = !config.loadTags && config.type !== "url";
85
- // find tag name by slug in config.tagPages
86
- const tagName = config.tagPages?.find((tag) => slugify(tag) === match?.params.tag);
87
- const [tagData, operationsData] = await Promise.all([
88
- client.fetch(GetCategoriesQuery, { type, input }),
89
- client.fetch(GetOperationsQuery, {
90
- type,
91
- input,
92
- tag: !config.loadTags ? tagName : undefined,
93
- }),
94
- ]);
95
- const categories = tagData.schema.tags.flatMap((tag) => {
96
- const categoryPath = joinUrl(basePath, versionParam, slugify(tag.name));
97
- const operations = operationsData.schema.operations.filter((operation) => operation.tags?.length !== 0 &&
98
- operation.tags?.map((t) => t.name).includes(tag.name));
99
- // skip empty categories
100
- if (config.loadTags && operations.length === 0) {
68
+ const { type } = config;
69
+ const input = type === "file" ? config.input[version] : config.input;
70
+ const data = await context.queryClient.ensureQueryData({
71
+ queryKey: ["sidebar-operations-query", input],
72
+ queryFn: () => client.fetch(GetSidebarOperationsQuery, { type, input }),
73
+ });
74
+ const categories = data.schema.tags.flatMap((tag) => {
75
+ if (!tag.name || tag.operations.length === 0)
101
76
  return [];
102
- }
77
+ const categoryPath = joinUrl(basePath, versionParam, tag.slug);
78
+ const isCollapsed = tag.extensions?.["x-zudoku-collapsed"] ??
79
+ !config.options?.expandAllTags;
80
+ const isCollapsible = tag.extensions?.["x-zudoku-collapsible"] ?? true;
103
81
  return createSidebarCategory({
104
82
  label: tag.name,
105
83
  path: categoryPath,
106
- operations: match?.params.tag !== UNTAGGED_PATH || config.loadTags
107
- ? operations
108
- : [],
109
- collapsible,
110
- collapsed,
84
+ operations: tag.operations,
85
+ collapsed: isCollapsed,
86
+ collapsible: isCollapsible,
111
87
  });
112
88
  });
113
- if (operationsData.schema.untagged.length > 0) {
89
+ const untaggedOperations = data.schema.tags.find((tag) => !tag.name)?.operations;
90
+ if (untaggedOperations) {
114
91
  categories.push(createSidebarCategory({
115
92
  label: "Other endpoints",
116
93
  path: joinUrl(basePath, versionParam, UNTAGGED_PATH),
117
- operations: match?.params.tag === UNTAGGED_PATH || config.loadTags
118
- ? operationsData.schema.untagged
119
- : [],
120
- collapsible,
121
- collapsed,
94
+ operations: untaggedOperations,
95
+ collapsed: !config.options?.expandAllTags,
122
96
  }));
123
97
  }
98
+ if (data.schema.components?.schemas?.length) {
99
+ categories.push({
100
+ type: "link",
101
+ label: "Schemas",
102
+ href: joinUrl(basePath, versionParam, "~schemas"),
103
+ });
104
+ }
124
105
  return categories;
125
106
  }
126
107
  catch {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/index.tsx"],"names":[],"mappings":";AACA,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAGvD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,kBAAkB,GAAG,OAAO,CAAC;;;;;;;;;CASlC,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;CAwBlC,CAAC,CAAC;AAUH,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;AAE1C,MAAM,CAAC,MAAM,a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