zudoku 0.1.1-dev.9 → 0.3.0-dev.3

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 (601) hide show
  1. package/dist/app/App.js +15 -6
  2. package/dist/app/App.js.map +1 -1
  3. package/dist/app/main.js +10 -2
  4. package/dist/app/main.js.map +1 -1
  5. package/dist/cli/build/handler.js +3 -1
  6. package/dist/cli/build/handler.js.map +1 -1
  7. package/dist/cli/common/analytics/lib.js +1 -1
  8. package/dist/cli/common/analytics/lib.js.map +1 -1
  9. package/dist/cli/common/logger.js +3 -1
  10. package/dist/cli/common/logger.js.map +1 -1
  11. package/dist/cli/common/outdated.js +4 -4
  12. package/dist/cli/common/outdated.js.map +1 -1
  13. package/dist/cli/common/output.js +4 -4
  14. package/dist/cli/common/output.js.map +1 -1
  15. package/dist/cli/common/utils/box.js +2 -2
  16. package/dist/cli/common/utils/box.js.map +1 -1
  17. package/dist/cli/dev/handler.js +4 -2
  18. package/dist/cli/dev/handler.js.map +1 -1
  19. package/dist/config/config.d.ts +30 -6
  20. package/dist/config/validators/auth.d.ts +2 -0
  21. package/dist/config/validators/auth.js +2 -0
  22. package/dist/config/validators/auth.js.map +1 -0
  23. package/dist/config/validators/validate.d.ts +2 -0
  24. package/dist/config/validators/validate.js +4 -0
  25. package/dist/config/validators/validate.js.map +1 -0
  26. package/dist/index.d.ts +2 -6
  27. package/dist/index.js +1 -5
  28. package/dist/index.js.map +1 -1
  29. package/dist/lib/authentication/Callback.d.ts +3 -0
  30. package/dist/lib/authentication/Callback.js +34 -0
  31. package/dist/lib/authentication/Callback.js.map +1 -0
  32. package/dist/lib/authentication/authentication.d.ts +14 -0
  33. package/dist/lib/authentication/authentication.js.map +1 -0
  34. package/dist/lib/authentication/errors.d.ts +15 -0
  35. package/dist/lib/authentication/errors.js +10 -0
  36. package/dist/lib/authentication/errors.js.map +1 -0
  37. package/dist/lib/authentication/hook.d.ts +7 -0
  38. package/dist/lib/authentication/hook.js +29 -0
  39. package/dist/lib/authentication/hook.js.map +1 -0
  40. package/dist/lib/authentication/providers/auth0.d.ts +4 -0
  41. package/dist/lib/authentication/providers/auth0.js +40 -0
  42. package/dist/lib/authentication/providers/auth0.js.map +1 -0
  43. package/dist/lib/authentication/providers/clerk.d.ts +4 -0
  44. package/dist/lib/authentication/providers/clerk.js +54 -0
  45. package/dist/lib/authentication/providers/clerk.js.map +1 -0
  46. package/dist/lib/authentication/providers/openid.d.ts +35 -0
  47. package/dist/lib/authentication/providers/openid.js +204 -0
  48. package/dist/lib/authentication/providers/openid.js.map +1 -0
  49. package/dist/lib/authentication/state.d.ts +13 -0
  50. package/dist/lib/authentication/state.js +5 -0
  51. package/dist/lib/authentication/state.js.map +1 -0
  52. package/dist/{app → lib}/components/AnchorLink.js.map +1 -1
  53. package/dist/{app → lib}/components/CategoryHeading.js.map +1 -1
  54. package/dist/lib/components/DevPortal.d.ts +25 -0
  55. package/dist/lib/components/DevPortal.js +32 -0
  56. package/dist/lib/components/DevPortal.js.map +1 -0
  57. package/dist/{app → lib}/components/Dialog.d.ts +2 -2
  58. package/dist/{app → lib}/components/Dialog.js +3 -3
  59. package/dist/lib/components/Dialog.js.map +1 -0
  60. package/dist/lib/components/Header.d.ts +1 -0
  61. package/dist/lib/components/Header.js +15 -0
  62. package/dist/lib/components/Header.js.map +1 -0
  63. package/dist/{app → lib/components}/Heading.js +2 -2
  64. package/dist/lib/components/Heading.js.map +1 -0
  65. package/dist/{app → lib}/components/Input.js.map +1 -1
  66. package/dist/{app → lib}/components/Layout.js +4 -7
  67. package/dist/lib/components/Layout.js.map +1 -0
  68. package/dist/lib/components/Link.d.ts +1 -0
  69. package/dist/lib/components/Link.js +2 -0
  70. package/dist/lib/components/Link.js.map +1 -0
  71. package/dist/{app → lib}/components/Markdown.js.map +1 -1
  72. package/dist/lib/components/Router.d.ts +4 -0
  73. package/dist/lib/components/Router.js +20 -0
  74. package/dist/lib/components/Router.js.map +1 -0
  75. package/dist/lib/components/Select.d.ts +13 -0
  76. package/dist/lib/components/Select.js +27 -0
  77. package/dist/lib/components/Select.js.map +1 -0
  78. package/dist/lib/components/Spinner.d.ts +3 -0
  79. package/dist/lib/components/Spinner.js +4 -0
  80. package/dist/lib/components/Spinner.js.map +1 -0
  81. package/dist/{app → lib}/components/SyntaxHighlight.d.ts +2 -1
  82. package/dist/{app → lib}/components/SyntaxHighlight.js +4 -1
  83. package/dist/lib/components/SyntaxHighlight.js.map +1 -0
  84. package/dist/{app → lib}/components/TopNavigation.js.map +1 -1
  85. package/dist/{app → lib}/components/context/ComponentsContext.d.ts +1 -1
  86. package/dist/{app → lib}/components/context/ComponentsContext.js.map +1 -1
  87. package/dist/{app → lib}/components/context/DevPortalProvider.js +1 -1
  88. package/dist/lib/components/context/DevPortalProvider.js.map +1 -0
  89. package/dist/lib/components/context/PluginSystem.js.map +1 -0
  90. package/dist/{app → lib}/components/context/ThemeContext.js +1 -1
  91. package/dist/{app → lib}/components/context/ThemeContext.js.map +1 -1
  92. package/dist/{app → lib}/components/context/ViewportAnchorContext.js.map +1 -1
  93. package/dist/lib/components/index.d.ts +3 -0
  94. package/dist/lib/components/index.js +4 -0
  95. package/dist/lib/components/index.js.map +1 -0
  96. package/dist/{app → lib}/components/navigation/SideNavigation.js +1 -1
  97. package/dist/{app → lib}/components/navigation/SideNavigation.js.map +1 -1
  98. package/dist/{app → lib}/components/navigation/SideNavigationCategory.js +1 -1
  99. package/dist/{app → lib}/components/navigation/SideNavigationCategory.js.map +1 -1
  100. package/dist/{app → lib}/components/navigation/SideNavigationItem.d.ts +2 -1
  101. package/dist/{app → lib}/components/navigation/SideNavigationItem.js +12 -6
  102. package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -0
  103. package/dist/{app → lib}/components/navigation/SideNavigationWrapper.d.ts +3 -0
  104. package/dist/lib/components/navigation/SideNavigationWrapper.js +7 -0
  105. package/dist/lib/components/navigation/SideNavigationWrapper.js.map +1 -0
  106. package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.js.map +1 -1
  107. package/dist/{app → lib}/components/navigation/util.js.map +1 -1
  108. package/dist/{app → lib}/core/DevPortalContext.d.ts +10 -32
  109. package/dist/lib/core/DevPortalContext.js +48 -0
  110. package/dist/lib/core/DevPortalContext.js.map +1 -0
  111. package/dist/{app → lib}/core/helmet.js.map +1 -1
  112. package/dist/lib/core/icons.js.map +1 -0
  113. package/dist/{app → lib}/core/plugins.d.ts +2 -7
  114. package/dist/{app → lib}/core/plugins.js +1 -1
  115. package/dist/{app → lib}/core/plugins.js.map +1 -1
  116. package/dist/lib/core/router.js.map +1 -0
  117. package/dist/{app → lib}/oas/graphql/index.js +2 -2
  118. package/dist/lib/oas/graphql/index.js.map +1 -0
  119. package/dist/{app → lib}/oas/parser/dereference/index.js.map +1 -1
  120. package/dist/{app → lib}/oas/parser/dereference/resolveRef.js.map +1 -1
  121. package/dist/{app → lib}/oas/parser/index.js.map +1 -1
  122. package/dist/{app → lib}/oas/parser/upgrade/index.js.map +1 -1
  123. package/dist/lib/plugins/api-key/CreateApiKey.d.ts +5 -0
  124. package/dist/lib/plugins/api-key/CreateApiKey.js +37 -0
  125. package/dist/lib/plugins/api-key/CreateApiKey.js.map +1 -0
  126. package/dist/lib/plugins/api-key/SettingsApiKeys.d.ts +5 -0
  127. package/dist/lib/plugins/api-key/SettingsApiKeys.js +38 -0
  128. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +1 -0
  129. package/dist/lib/plugins/api-key/index.d.ts +30 -0
  130. package/dist/lib/plugins/api-key/index.js +67 -0
  131. package/dist/lib/plugins/api-key/index.js.map +1 -0
  132. package/dist/lib/plugins/index.d.ts +4 -0
  133. package/dist/lib/plugins/index.js +5 -0
  134. package/dist/lib/plugins/index.js.map +1 -0
  135. package/dist/lib/plugins/markdown/MdxPage.d.ts +5 -0
  136. package/dist/lib/plugins/markdown/MdxPage.js +60 -0
  137. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -0
  138. package/dist/{app → lib}/plugins/markdown/Toc.js.map +1 -1
  139. package/dist/{app → lib}/plugins/markdown/generateRoutes.js +1 -6
  140. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -0
  141. package/dist/{app → lib}/plugins/markdown/index.js.map +1 -1
  142. package/dist/{app → lib}/plugins/openapi/ColorizedParam.d.ts +1 -2
  143. package/dist/{app → lib}/plugins/openapi/ColorizedParam.js +2 -2
  144. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -0
  145. package/dist/lib/plugins/openapi/MakeRequest.js +43 -0
  146. package/dist/lib/plugins/openapi/MakeRequest.js.map +1 -0
  147. package/dist/{app → lib}/plugins/openapi/MethodBadge.js.map +1 -1
  148. package/dist/{app → lib}/plugins/openapi/OperationList.js +12 -3
  149. package/dist/lib/plugins/openapi/OperationList.js.map +1 -0
  150. package/dist/lib/plugins/openapi/OperationListItem.js +17 -0
  151. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -0
  152. package/dist/{app → lib}/plugins/openapi/ParameterList.d.ts +2 -2
  153. package/dist/lib/plugins/openapi/ParameterList.js +5 -0
  154. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -0
  155. package/dist/lib/plugins/openapi/ParameterListItem.js +13 -0
  156. package/dist/{app → lib}/plugins/openapi/ParameterListItem.js.map +1 -1
  157. package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.js +1 -1
  158. package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  159. package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.js +3 -3
  160. package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  161. package/dist/lib/plugins/openapi/SchemaListView.d.ts +7 -0
  162. package/dist/lib/plugins/openapi/SchemaListView.js +43 -0
  163. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -0
  164. package/dist/{app → lib}/plugins/openapi/Select.js.map +1 -1
  165. package/dist/{app → lib}/plugins/openapi/Sidecar.js +15 -15
  166. package/dist/{app → lib}/plugins/openapi/Sidecar.js.map +1 -1
  167. package/dist/{app → lib}/plugins/openapi/SidecarBox.js.map +1 -1
  168. package/dist/{app → lib}/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
  169. package/dist/{app → lib}/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  170. package/dist/{app → lib}/plugins/openapi/graphql/gql.d.ts +5 -5
  171. package/dist/{app → lib}/plugins/openapi/graphql/gql.js +2 -3
  172. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -0
  173. package/dist/{app → lib}/plugins/openapi/graphql/graphql.d.ts +9 -0
  174. package/dist/{app → lib}/plugins/openapi/graphql/graphql.js +50 -0
  175. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -0
  176. package/dist/lib/plugins/openapi/graphql/index.js.map +1 -0
  177. package/dist/{app → lib}/plugins/openapi/index.js +3 -1
  178. package/dist/lib/plugins/openapi/index.js.map +1 -0
  179. package/dist/lib/plugins/openapi/playground/Editor.d.ts +1 -0
  180. package/dist/lib/plugins/openapi/playground/Editor.js +5 -0
  181. package/dist/lib/plugins/openapi/playground/Editor.js.map +1 -0
  182. package/dist/lib/plugins/openapi/playground/Headers.d.ts +7 -0
  183. package/dist/lib/plugins/openapi/playground/Headers.js +15 -0
  184. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -0
  185. package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +4 -0
  186. package/dist/lib/plugins/openapi/playground/InlineInput.js +3 -0
  187. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -0
  188. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +6 -0
  189. package/dist/lib/plugins/openapi/playground/PathParams.js +21 -0
  190. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -0
  191. package/dist/lib/plugins/openapi/playground/Playground.d.ts +31 -0
  192. package/dist/lib/plugins/openapi/playground/Playground.js +97 -0
  193. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -0
  194. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +5 -0
  195. package/dist/lib/plugins/openapi/playground/QueryParams.js +22 -0
  196. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -0
  197. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +4 -0
  198. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +22 -0
  199. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +1 -0
  200. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +2 -0
  201. package/dist/lib/plugins/openapi/playground/createUrl.js +15 -0
  202. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -0
  203. package/dist/{app → lib}/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  204. package/dist/{app → lib}/plugins/openapi/util/generateSchemaExample.js +17 -9
  205. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -0
  206. package/dist/{app → lib}/plugins/openapi/util/urql.js.map +1 -1
  207. package/dist/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.js +2 -1
  208. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +1 -0
  209. package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +1 -0
  210. package/dist/lib/plugins/openapi/worker/shared-worker.js +6 -0
  211. package/dist/lib/plugins/openapi/worker/shared-worker.js.map +1 -0
  212. package/dist/{app → lib}/plugins/openapi/worker/worker.js.map +1 -1
  213. package/dist/lib/plugins/openapi-worker.d.ts +1 -0
  214. package/dist/lib/plugins/openapi-worker.js +2 -0
  215. package/dist/lib/plugins/openapi-worker.js.map +1 -0
  216. package/dist/{app → lib}/plugins/redirect/index.d.ts +1 -2
  217. package/dist/{app → lib}/plugins/redirect/index.js.map +1 -1
  218. package/dist/lib/ui/Button.d.ts +7 -0
  219. package/dist/lib/ui/Button.js +11 -0
  220. package/dist/lib/ui/Button.js.map +1 -0
  221. package/dist/{app → lib}/ui/Callout.js.map +1 -1
  222. package/dist/{app → lib}/ui/Card.js.map +1 -1
  223. package/dist/{app → lib}/ui/Note.js.map +1 -1
  224. package/dist/{app → lib}/ui/Tabs.d.ts +2 -2
  225. package/dist/{app → lib}/ui/Tabs.js +2 -2
  226. package/dist/{app → lib}/ui/Tabs.js.map +1 -1
  227. package/dist/lib/ui/button-variants.d.ts +4 -0
  228. package/dist/{app/ui/Button.js → lib/ui/button-variants.js} +2 -12
  229. package/dist/lib/ui/button-variants.js.map +1 -0
  230. package/dist/{app → lib}/util/MdxComponents.js +9 -9
  231. package/dist/lib/util/MdxComponents.js.map +1 -0
  232. package/dist/{app → lib}/util/cn.js.map +1 -1
  233. package/dist/lib/util/createVariantComponent.d.ts +9 -0
  234. package/dist/lib/util/createVariantComponent.js +17 -0
  235. package/dist/lib/util/createVariantComponent.js.map +1 -0
  236. package/dist/{app → lib}/util/createWaitForNotify.js.map +1 -1
  237. package/dist/{app → lib}/util/groupBy.js.map +1 -1
  238. package/dist/{app → lib}/util/joinPath.js.map +1 -1
  239. package/dist/{app → lib}/util/pastellize.js.map +1 -1
  240. package/dist/lib/util/slugify.js.map +1 -0
  241. package/dist/{app → lib}/util/traverseNavigation.js.map +1 -1
  242. package/dist/{app → lib}/util/useScrollToAnchor.js.map +1 -1
  243. package/dist/{app → lib}/util/useScrollToTop.js.map +1 -1
  244. package/dist/ts.js +1 -2
  245. package/dist/ts.js.map +1 -1
  246. package/dist/vite/build.js +2 -8
  247. package/dist/vite/build.js.map +1 -1
  248. package/dist/vite/common.d.ts +1 -0
  249. package/dist/vite/common.js +5 -0
  250. package/dist/vite/common.js.map +1 -0
  251. package/dist/vite/config.d.ts +9 -2
  252. package/dist/vite/config.js +69 -28
  253. package/dist/vite/config.js.map +1 -1
  254. package/dist/vite/dev-server.d.ts +2 -0
  255. package/dist/vite/dev-server.js +30 -10
  256. package/dist/vite/dev-server.js.map +1 -1
  257. package/dist/vite/plugin-api-keys.d.ts +4 -0
  258. package/dist/vite/plugin-api-keys.js +33 -0
  259. package/dist/vite/plugin-api-keys.js.map +1 -0
  260. package/dist/vite/plugin-api.js +4 -2
  261. package/dist/vite/plugin-api.js.map +1 -1
  262. package/dist/vite/plugin-auth.js +3 -2
  263. package/dist/vite/plugin-auth.js.map +1 -1
  264. package/dist/vite/plugin-component.d.ts +4 -0
  265. package/dist/vite/plugin-component.js +16 -0
  266. package/dist/vite/plugin-component.js.map +1 -0
  267. package/dist/vite/plugin-config.d.ts +1 -0
  268. package/dist/vite/plugin-config.js +4 -3
  269. package/dist/vite/plugin-config.js.map +1 -1
  270. package/dist/vite/plugin-docs.js +4 -2
  271. package/dist/vite/plugin-docs.js.map +1 -1
  272. package/dist/vite/plugin-docs.test.js +1 -2
  273. package/dist/vite/plugin-docs.test.js.map +1 -1
  274. package/dist/vite/plugin-html.js +0 -3
  275. package/dist/vite/plugin-html.js.map +1 -1
  276. package/dist/vite/plugin-mdx.js +3 -1
  277. package/dist/vite/plugin-mdx.js.map +1 -1
  278. package/dist/vite/plugin-metadata.d.ts +6 -0
  279. package/dist/vite/plugin-metadata.js +24 -0
  280. package/dist/vite/plugin-metadata.js.map +1 -0
  281. package/dist/vite/plugin-openapi-worker.d.ts +4 -0
  282. package/dist/vite/plugin-openapi-worker.js +28 -0
  283. package/dist/vite/plugin-openapi-worker.js.map +1 -0
  284. package/dist/vite/plugin-redirect.d.ts +4 -0
  285. package/dist/vite/plugin-redirect.js +32 -0
  286. package/dist/vite/plugin-redirect.js.map +1 -0
  287. package/dist/vite/plugin.js +8 -0
  288. package/dist/vite/plugin.js.map +1 -1
  289. package/lib/Spinner-7LezPqGn.js +8393 -0
  290. package/lib/_commonjsHelpers-BkfeUUK-.js +28 -0
  291. package/lib/assets/index-BPdJm2ty.js +4764 -0
  292. package/lib/assets/worker-BCcpCNJ7.js +14473 -0
  293. package/lib/clerk-Wslx_mPo.js +19685 -0
  294. package/lib/index-DNx3xWa2.js +3461 -0
  295. package/lib/prism-bash.min-DadFsM4Z.js +6 -0
  296. package/lib/prism-java.min-d5iT_mOd.js +6 -0
  297. package/lib/prism-json.min-B1GJqK1k.js +1 -0
  298. package/lib/prism-markup-templating-DZrrEs0A.js +61 -0
  299. package/lib/prism-php.min-o7FpoMP_.js +10 -0
  300. package/lib/prism-ruby.min-C7LwcKyz.js +9 -0
  301. package/lib/state-oycsxkHz.js +287 -0
  302. package/lib/urql-DMlBWUKL.js +1591 -0
  303. package/lib/zudoku.auth-auth0.js +26 -0
  304. package/lib/zudoku.auth-clerk.js +47 -0
  305. package/lib/zudoku.auth-openid.js +1058 -0
  306. package/lib/zudoku.components.js +925 -0
  307. package/lib/zudoku.openapi-worker.js +225 -0
  308. package/lib/zudoku.plugins.js +19863 -0
  309. package/package.json +69 -39
  310. package/src/app/App.tsx +16 -6
  311. package/src/app/main.css +1 -0
  312. package/src/app/main.tsx +12 -3
  313. package/src/lib/authentication/Callback.tsx +60 -0
  314. package/src/lib/authentication/authentication.ts +19 -0
  315. package/src/lib/authentication/errors.ts +21 -0
  316. package/src/lib/authentication/hook.ts +33 -0
  317. package/src/lib/authentication/providers/auth0.tsx +52 -0
  318. package/src/lib/authentication/providers/clerk.tsx +64 -0
  319. package/src/lib/authentication/providers/openid.tsx +312 -0
  320. package/src/lib/authentication/state.ts +19 -0
  321. package/src/{app → lib/components}/DevPortal.tsx +30 -42
  322. package/src/{app → lib}/components/Dialog.tsx +37 -37
  323. package/src/{app → lib}/components/Header.tsx +25 -20
  324. package/src/{app → lib/components}/Heading.tsx +2 -2
  325. package/src/{app → lib}/components/Layout.tsx +18 -12
  326. package/src/lib/components/Link.tsx +1 -0
  327. package/src/lib/components/Router.tsx +28 -0
  328. package/src/lib/components/Select.tsx +157 -0
  329. package/src/lib/components/Spinner.tsx +5 -0
  330. package/src/{app → lib}/components/SyntaxHighlight.tsx +10 -3
  331. package/src/{app → lib}/components/context/DevPortalProvider.ts +1 -1
  332. package/src/lib/components/index.ts +3 -0
  333. package/src/{app → lib}/components/navigation/SideNavigation.tsx +4 -1
  334. package/src/{app → lib}/components/navigation/SideNavigationCategory.tsx +3 -1
  335. package/src/{app → lib}/components/navigation/SideNavigationItem.tsx +16 -7
  336. package/src/lib/components/navigation/SideNavigationWrapper.tsx +24 -0
  337. package/src/{app → lib}/core/DevPortalContext.ts +28 -64
  338. package/src/{app → lib}/core/plugins.ts +5 -5
  339. package/src/{app → lib}/oas/graphql/index.ts +2 -2
  340. package/src/lib/plugins/api-key/CreateApiKey.tsx +100 -0
  341. package/src/lib/plugins/api-key/SettingsApiKeys.tsx +125 -0
  342. package/src/lib/plugins/api-key/index.tsx +115 -0
  343. package/src/lib/plugins/index.ts +4 -0
  344. package/src/{app → lib}/plugins/markdown/MdxPage.tsx +32 -10
  345. package/src/{app → lib}/plugins/markdown/generateRoutes.tsx +1 -16
  346. package/src/{app → lib}/plugins/openapi/ColorizedParam.tsx +1 -3
  347. package/src/lib/plugins/openapi/MakeRequest.tsx +63 -0
  348. package/src/{app → lib}/plugins/openapi/OperationList.tsx +14 -4
  349. package/src/{app → lib}/plugins/openapi/OperationListItem.tsx +40 -6
  350. package/src/{app → lib}/plugins/openapi/ParameterList.tsx +4 -4
  351. package/src/{app → lib}/plugins/openapi/ParameterListItem.tsx +5 -2
  352. package/src/{app → lib}/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
  353. package/src/{app → lib}/plugins/openapi/ResponsesSidecarBox.tsx +2 -3
  354. package/src/lib/plugins/openapi/SchemaListView.tsx +228 -0
  355. package/src/{app → lib}/plugins/openapi/Sidecar.tsx +23 -23
  356. package/src/{app → lib}/plugins/openapi/graphql/gql.ts +7 -7
  357. package/src/{app → lib}/plugins/openapi/graphql/graphql.ts +59 -0
  358. package/src/{app → lib}/plugins/openapi/index.tsx +8 -2
  359. package/src/lib/plugins/openapi/playground/Editor.tsx +4 -0
  360. package/src/lib/plugins/openapi/playground/Headers.tsx +60 -0
  361. package/src/lib/plugins/openapi/playground/InlineInput.tsx +6 -0
  362. package/src/lib/plugins/openapi/playground/PathParams.tsx +63 -0
  363. package/src/lib/plugins/openapi/playground/Playground.tsx +366 -0
  364. package/src/lib/plugins/openapi/playground/QueryParams.tsx +89 -0
  365. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +32 -0
  366. package/src/lib/plugins/openapi/playground/createUrl.ts +22 -0
  367. package/src/{app → lib}/plugins/openapi/util/generateSchemaExample.ts +22 -9
  368. package/src/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.ts +2 -1
  369. package/src/lib/plugins/openapi/worker/shared-worker.ts +5 -0
  370. package/src/lib/plugins/openapi-worker.ts +1 -0
  371. package/src/{app → lib}/plugins/redirect/index.tsx +1 -1
  372. package/src/lib/ui/Button.tsx +25 -0
  373. package/src/{app → lib}/ui/Tabs.tsx +2 -2
  374. package/src/{app/ui/Button.tsx → lib/ui/button-variants.ts} +4 -29
  375. package/src/{app → lib}/util/MdxComponents.tsx +33 -8
  376. package/src/{app → lib}/util/createVariantComponent.tsx +12 -7
  377. package/dist/app/DevPortal.d.ts +0 -25
  378. package/dist/app/DevPortal.js +0 -41
  379. package/dist/app/DevPortal.js.map +0 -1
  380. package/dist/app/Heading.js.map +0 -1
  381. package/dist/app/authentication/authentication.d.ts +0 -13
  382. package/dist/app/authentication/authentication.js.map +0 -1
  383. package/dist/app/authentication/clerk.d.ts +0 -5
  384. package/dist/app/authentication/clerk.js +0 -36
  385. package/dist/app/authentication/clerk.js.map +0 -1
  386. package/dist/app/authentication/openid.d.ts +0 -11
  387. package/dist/app/authentication/openid.js +0 -118
  388. package/dist/app/authentication/openid.js.map +0 -1
  389. package/dist/app/components/Dialog.js.map +0 -1
  390. package/dist/app/components/DynamicIcon.d.ts +0 -6
  391. package/dist/app/components/DynamicIcon.js +0 -6
  392. package/dist/app/components/DynamicIcon.js.map +0 -1
  393. package/dist/app/components/Header.d.ts +0 -1
  394. package/dist/app/components/Header.js +0 -15
  395. package/dist/app/components/Header.js.map +0 -1
  396. package/dist/app/components/Layout.js.map +0 -1
  397. package/dist/app/components/SyntaxHighlight.js.map +0 -1
  398. package/dist/app/components/context/DevPortalProvider.js.map +0 -1
  399. package/dist/app/components/context/PluginSystem.js.map +0 -1
  400. package/dist/app/components/navigation/SideNavigationItem.js.map +0 -1
  401. package/dist/app/components/navigation/SideNavigationWrapper.js +0 -6
  402. package/dist/app/components/navigation/SideNavigationWrapper.js.map +0 -1
  403. package/dist/app/core/DevPortalContext.js +0 -68
  404. package/dist/app/core/DevPortalContext.js.map +0 -1
  405. package/dist/app/core/icons.js.map +0 -1
  406. package/dist/app/core/router.js.map +0 -1
  407. package/dist/app/core/types/combine.d.ts +0 -4
  408. package/dist/app/core/types/combine.js +0 -2
  409. package/dist/app/core/types/combine.js.map +0 -1
  410. package/dist/app/oas/graphql/index.js.map +0 -1
  411. package/dist/app/oas/graphql/server.d.ts +0 -1
  412. package/dist/app/oas/graphql/server.js +0 -8
  413. package/dist/app/oas/graphql/server.js.map +0 -1
  414. package/dist/app/plugins/api-key/SettingsApiKeys.d.ts +0 -4
  415. package/dist/app/plugins/api-key/SettingsApiKeys.js +0 -7
  416. package/dist/app/plugins/api-key/SettingsApiKeys.js.map +0 -1
  417. package/dist/app/plugins/api-key/index.d.ts +0 -32
  418. package/dist/app/plugins/api-key/index.js +0 -55
  419. package/dist/app/plugins/api-key/index.js.map +0 -1
  420. package/dist/app/plugins/markdown/MdxPage.d.ts +0 -3
  421. package/dist/app/plugins/markdown/MdxPage.js +0 -55
  422. package/dist/app/plugins/markdown/MdxPage.js.map +0 -1
  423. package/dist/app/plugins/markdown/generateRoutes.js.map +0 -1
  424. package/dist/app/plugins/openapi/ColorizedParam.js.map +0 -1
  425. package/dist/app/plugins/openapi/MakeRequest.js +0 -23
  426. package/dist/app/plugins/openapi/MakeRequest.js.map +0 -1
  427. package/dist/app/plugins/openapi/OperationList.js.map +0 -1
  428. package/dist/app/plugins/openapi/OperationListItem.js +0 -15
  429. package/dist/app/plugins/openapi/OperationListItem.js.map +0 -1
  430. package/dist/app/plugins/openapi/ParameterList.js +0 -5
  431. package/dist/app/plugins/openapi/ParameterList.js.map +0 -1
  432. package/dist/app/plugins/openapi/ParameterListItem.js +0 -13
  433. package/dist/app/plugins/openapi/graphql/gql.js.map +0 -1
  434. package/dist/app/plugins/openapi/graphql/graphql.js.map +0 -1
  435. package/dist/app/plugins/openapi/graphql/index.js.map +0 -1
  436. package/dist/app/plugins/openapi/index.js.map +0 -1
  437. package/dist/app/plugins/openapi/playground/Playground.d.ts +0 -8
  438. package/dist/app/plugins/openapi/playground/Playground.js +0 -98
  439. package/dist/app/plugins/openapi/playground/Playground.js.map +0 -1
  440. package/dist/app/plugins/openapi/util/generateSchemaExample.js.map +0 -1
  441. package/dist/app/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
  442. package/dist/app/ui/Button.d.ts +0 -11
  443. package/dist/app/ui/Button.js.map +0 -1
  444. package/dist/app/util/MdxComponents.js.map +0 -1
  445. package/dist/app/util/createVariantComponent.d.ts +0 -15
  446. package/dist/app/util/createVariantComponent.js +0 -12
  447. package/dist/app/util/createVariantComponent.js.map +0 -1
  448. package/dist/app/util/slugify.js.map +0 -1
  449. package/dist/auth.d.ts +0 -2
  450. package/dist/auth.js +0 -3
  451. package/dist/auth.js.map +0 -1
  452. package/dist/plugins.d.ts +0 -4
  453. package/dist/plugins.js +0 -6
  454. package/dist/plugins.js.map +0 -1
  455. package/src/app/authentication/authentication.ts +0 -18
  456. package/src/app/authentication/clerk.ts +0 -47
  457. package/src/app/authentication/openid.ts +0 -192
  458. package/src/app/components/DynamicIcon.tsx +0 -60
  459. package/src/app/components/navigation/SideNavigationWrapper.tsx +0 -15
  460. package/src/app/core/types/combine.ts +0 -16
  461. package/src/app/oas/graphql/server.ts +0 -10
  462. package/src/app/plugins/api-key/SettingsApiKeys.tsx +0 -22
  463. package/src/app/plugins/api-key/index.tsx +0 -123
  464. package/src/app/plugins/openapi/MakeRequest.tsx +0 -49
  465. package/src/app/plugins/openapi/playground/Playground.tsx +0 -309
  466. package/src/app/plugins/openapi/queries.graphql +0 -6
  467. package/dist/{app → lib}/authentication/authentication.js +0 -0
  468. package/dist/{app → lib}/components/AnchorLink.d.ts +0 -0
  469. package/dist/{app → lib}/components/AnchorLink.js +0 -0
  470. package/dist/{app → lib}/components/CategoryHeading.d.ts +0 -0
  471. package/dist/{app → lib}/components/CategoryHeading.js +0 -0
  472. package/dist/{app → lib/components}/Heading.d.ts +0 -0
  473. package/dist/{app → lib}/components/Input.d.ts +0 -0
  474. package/dist/{app → lib}/components/Input.js +0 -0
  475. package/dist/{app → lib}/components/Layout.d.ts +0 -0
  476. package/dist/{app → lib}/components/Markdown.d.ts +0 -0
  477. package/dist/{app → lib}/components/Markdown.js +0 -0
  478. package/dist/{app → lib}/components/TopNavigation.d.ts +0 -0
  479. package/dist/{app → lib}/components/TopNavigation.js +0 -0
  480. package/dist/{app → lib}/components/context/ComponentsContext.js +0 -0
  481. package/dist/{app → lib}/components/context/DevPortalProvider.d.ts +0 -0
  482. package/dist/{app → lib}/components/context/PluginSystem.d.ts +0 -0
  483. package/dist/{app → lib}/components/context/PluginSystem.js +0 -0
  484. package/dist/{app → lib}/components/context/ThemeContext.d.ts +0 -0
  485. package/dist/{app → lib}/components/context/ViewportAnchorContext.d.ts +0 -0
  486. package/dist/{app → lib}/components/context/ViewportAnchorContext.js +0 -0
  487. package/dist/{app → lib}/components/navigation/SideNavigation.d.ts +0 -0
  488. package/dist/{app → lib}/components/navigation/SideNavigationCategory.d.ts +0 -0
  489. package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.d.ts +0 -0
  490. package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.js +0 -0
  491. package/dist/{app → lib}/components/navigation/util.d.ts +0 -0
  492. package/dist/{app → lib}/components/navigation/util.js +0 -0
  493. package/dist/{app → lib}/core/helmet.d.ts +0 -0
  494. package/dist/{app → lib}/core/helmet.js +0 -0
  495. package/dist/{app → lib}/core/icons.d.ts +0 -0
  496. package/dist/{app → lib}/core/icons.js +0 -0
  497. package/dist/{app → lib}/core/router.d.ts +0 -0
  498. package/dist/{app → lib}/core/router.js +0 -0
  499. package/dist/{app → lib}/oas/graphql/index.d.ts +0 -0
  500. package/dist/{app → lib}/oas/parser/dereference/index.d.ts +0 -0
  501. package/dist/{app → lib}/oas/parser/dereference/index.js +0 -0
  502. package/dist/{app → lib}/oas/parser/dereference/resolveRef.d.ts +0 -0
  503. package/dist/{app → lib}/oas/parser/dereference/resolveRef.js +0 -0
  504. package/dist/{app → lib}/oas/parser/index.d.ts +0 -0
  505. package/dist/{app → lib}/oas/parser/index.js +0 -0
  506. package/dist/{app → lib}/oas/parser/upgrade/index.d.ts +0 -0
  507. package/dist/{app → lib}/oas/parser/upgrade/index.js +0 -0
  508. package/dist/{app → lib}/plugins/markdown/Toc.d.ts +0 -0
  509. package/dist/{app → lib}/plugins/markdown/Toc.js +0 -0
  510. package/dist/{app → lib}/plugins/markdown/generateRoutes.d.ts +0 -0
  511. package/dist/{app → lib}/plugins/markdown/index.d.ts +0 -0
  512. package/dist/{app → lib}/plugins/markdown/index.js +0 -0
  513. package/dist/{app → lib}/plugins/openapi/MakeRequest.d.ts +0 -0
  514. package/dist/{app → lib}/plugins/openapi/MethodBadge.d.ts +0 -0
  515. package/dist/{app → lib}/plugins/openapi/MethodBadge.js +0 -0
  516. package/dist/{app → lib}/plugins/openapi/OperationList.d.ts +0 -0
  517. package/dist/{app → lib}/plugins/openapi/OperationListItem.d.ts +0 -0
  518. package/dist/{app → lib}/plugins/openapi/ParameterListItem.d.ts +0 -0
  519. package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.d.ts +0 -0
  520. package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.d.ts +0 -0
  521. package/dist/{app → lib}/plugins/openapi/Select.d.ts +0 -0
  522. package/dist/{app → lib}/plugins/openapi/Select.js +0 -0
  523. package/dist/{app → lib}/plugins/openapi/Sidecar.d.ts +0 -0
  524. package/dist/{app → lib}/plugins/openapi/SidecarBox.d.ts +0 -0
  525. package/dist/{app → lib}/plugins/openapi/SidecarBox.js +0 -0
  526. package/dist/{app → lib}/plugins/openapi/graphql/fragment-masking.js +0 -0
  527. package/dist/{app → lib}/plugins/openapi/graphql/index.d.ts +0 -0
  528. package/dist/{app → lib}/plugins/openapi/graphql/index.js +0 -0
  529. package/dist/{app → lib}/plugins/openapi/index.d.ts +0 -0
  530. package/dist/{app → lib}/plugins/openapi/util/urql.d.ts +0 -0
  531. package/dist/{app → lib}/plugins/openapi/util/urql.js +0 -0
  532. package/dist/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -0
  533. package/dist/{app → lib}/plugins/openapi/worker/worker.d.ts +0 -0
  534. package/dist/{app → lib}/plugins/openapi/worker/worker.js +0 -0
  535. package/dist/{app → lib}/plugins/redirect/index.js +0 -0
  536. package/dist/{app → lib}/ui/Callout.d.ts +0 -0
  537. package/dist/{app → lib}/ui/Callout.js +0 -0
  538. package/dist/{app → lib}/ui/Card.d.ts +0 -0
  539. package/dist/{app → lib}/ui/Card.js +0 -0
  540. package/dist/{app → lib}/ui/Note.d.ts +0 -0
  541. package/dist/{app → lib}/ui/Note.js +0 -0
  542. package/dist/{app → lib}/util/MdxComponents.d.ts +0 -0
  543. package/dist/{app → lib}/util/cn.d.ts +0 -0
  544. package/dist/{app → lib}/util/cn.js +0 -0
  545. package/dist/{app → lib}/util/createWaitForNotify.d.ts +0 -0
  546. package/dist/{app → lib}/util/createWaitForNotify.js +0 -0
  547. package/dist/{app → lib}/util/groupBy.d.ts +0 -0
  548. package/dist/{app → lib}/util/groupBy.js +0 -0
  549. package/dist/{app → lib}/util/joinPath.d.ts +0 -0
  550. package/dist/{app → lib}/util/joinPath.js +0 -0
  551. package/dist/{app → lib}/util/pastellize.d.ts +0 -0
  552. package/dist/{app → lib}/util/pastellize.js +0 -0
  553. package/dist/{app → lib}/util/slugify.d.ts +0 -0
  554. package/dist/{app → lib}/util/slugify.js +0 -0
  555. package/dist/{app → lib}/util/traverseNavigation.d.ts +0 -0
  556. package/dist/{app → lib}/util/traverseNavigation.js +0 -0
  557. package/dist/{app → lib}/util/useScrollToAnchor.d.ts +0 -0
  558. package/dist/{app → lib}/util/useScrollToAnchor.js +0 -0
  559. package/dist/{app → lib}/util/useScrollToTop.d.ts +0 -0
  560. package/dist/{app → lib}/util/useScrollToTop.js +0 -0
  561. package/src/{app → lib}/components/AnchorLink.tsx +0 -0
  562. package/src/{app → lib}/components/CategoryHeading.tsx +1 -1
  563. package/src/{app → lib}/components/Input.tsx +0 -0
  564. package/src/{app → lib}/components/Markdown.tsx +0 -0
  565. package/src/{app → lib}/components/TopNavigation.tsx +0 -0
  566. package/src/{app → lib}/components/context/ComponentsContext.tsx +0 -0
  567. package/src/{app → lib}/components/context/PluginSystem.ts +0 -0
  568. package/src/{app → lib}/components/context/ThemeContext.tsx +1 -1
  569. package/src/{app → lib}/components/context/ViewportAnchorContext.tsx +0 -0
  570. package/src/{app → lib}/components/navigation/useNavigationCollapsibleState.ts +0 -0
  571. package/src/{app → lib}/components/navigation/util.ts +0 -0
  572. package/src/{app → lib}/core/helmet.ts +0 -0
  573. package/src/{app → lib}/core/icons.tsx +0 -0
  574. package/src/{app → lib}/core/router.tsx +0 -0
  575. package/src/{app → lib}/oas/parser/dereference/index.ts +0 -0
  576. package/src/{app → lib}/oas/parser/dereference/resolveRef.ts +0 -0
  577. package/src/{app → lib}/oas/parser/index.ts +0 -0
  578. package/src/{app → lib}/oas/parser/schemas/v3.0.json +0 -0
  579. package/src/{app → lib}/oas/parser/schemas/v3.1.json +0 -0
  580. package/src/{app → lib}/oas/parser/upgrade/index.ts +0 -0
  581. package/src/{app → lib}/plugins/markdown/Toc.tsx +0 -0
  582. package/src/{app → lib}/plugins/markdown/index.tsx +0 -0
  583. package/src/{app → lib}/plugins/openapi/MethodBadge.tsx +0 -0
  584. package/src/{app → lib}/plugins/openapi/Select.tsx +0 -0
  585. package/src/{app → lib}/plugins/openapi/SidecarBox.tsx +0 -0
  586. package/src/{app → lib}/plugins/openapi/graphql/fragment-masking.ts +1 -1
  587. /package/src/{app → lib}/plugins/openapi/graphql/index.ts +0 -0
  588. /package/src/{app → lib}/plugins/openapi/util/urql.ts +0 -0
  589. /package/src/{app → lib}/plugins/openapi/worker/worker.ts +0 -0
  590. /package/src/{app → lib}/ui/Callout.tsx +0 -0
  591. /package/src/{app → lib}/ui/Card.tsx +0 -0
  592. /package/src/{app → lib}/ui/Note.tsx +0 -0
  593. /package/src/{app → lib}/util/cn.ts +0 -0
  594. /package/src/{app → lib}/util/createWaitForNotify.ts +0 -0
  595. /package/src/{app → lib}/util/groupBy.ts +0 -0
  596. /package/src/{app → lib}/util/joinPath.tsx +0 -0
  597. /package/src/{app → lib}/util/pastellize.ts +0 -0
  598. /package/src/{app → lib}/util/slugify.ts +0 -0
  599. /package/src/{app → lib}/util/traverseNavigation.ts +0 -0
  600. /package/src/{app → lib}/util/useScrollToAnchor.ts +0 -0
  601. /package/src/{app → lib}/util/useScrollToTop.ts +0 -0
@@ -0,0 +1,925 @@
1
+ var De = Object.defineProperty;
2
+ var se = (t) => {
3
+ throw TypeError(t);
4
+ };
5
+ var Se = (t, e, s) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
+ var y = (t, e, s) => Se(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
7
+ var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)), m = (t, e, s) => e.has(t) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), u = (t, e, s, a) => (ae(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
8
+ var F = (t, e, s, a) => ({
9
+ set _(r) {
10
+ u(t, e, r, s);
11
+ },
12
+ get _() {
13
+ return i(t, e, a);
14
+ }
15
+ });
16
+ import { j as n, u as D, O as Ee } from "./index-DNx3xWa2.js";
17
+ import { S as me, h as ge, Q as Te, n as p, m as ne, M as Ie, a as re, b as j, e as Fe, c as Re, d as He, f as Le, o as ie, r as oe, g as ze, i as le, p as ce, s as Ke, j as E, u as K, N as V, k as _e, l as Be, q as W, t as X, v as U, w as ve, x as Ve, y as z, R as ye, T as xe, C as be, A as Ue, z as We, B as Xe, D as $e, H as Ge, E as Je, F as Ye, G as Ze, I as et, J as tt, K as st, L as at, O as nt, P as rt, V as it } from "./Spinner-7LezPqGn.js";
18
+ import { W as Vt, U as Ut } from "./Spinner-7LezPqGn.js";
19
+ import { memo as je, createContext as ot, useEffect as T, useRef as _, useState as lt, forwardRef as ct, Suspense as we, useMemo as L } from "react";
20
+ import { c as ht, u as ut } from "./state-oycsxkHz.js";
21
+ var x, de, dt = (de = class extends me {
22
+ constructor(e = {}) {
23
+ super();
24
+ m(this, x);
25
+ this.config = e, u(this, x, /* @__PURE__ */ new Map());
26
+ }
27
+ build(e, s, a) {
28
+ const r = s.queryKey, o = s.queryHash ?? ge(r, s);
29
+ let l = this.get(o);
30
+ return l || (l = new Te({
31
+ cache: this,
32
+ queryKey: r,
33
+ queryHash: o,
34
+ options: e.defaultQueryOptions(s),
35
+ state: a,
36
+ defaultOptions: e.getQueryDefaults(r)
37
+ }), this.add(l)), l;
38
+ }
39
+ add(e) {
40
+ i(this, x).has(e.queryHash) || (i(this, x).set(e.queryHash, e), this.notify({
41
+ type: "added",
42
+ query: e
43
+ }));
44
+ }
45
+ remove(e) {
46
+ const s = i(this, x).get(e.queryHash);
47
+ s && (e.destroy(), s === e && i(this, x).delete(e.queryHash), this.notify({ type: "removed", query: e }));
48
+ }
49
+ clear() {
50
+ p.batch(() => {
51
+ this.getAll().forEach((e) => {
52
+ this.remove(e);
53
+ });
54
+ });
55
+ }
56
+ get(e) {
57
+ return i(this, x).get(e);
58
+ }
59
+ getAll() {
60
+ return [...i(this, x).values()];
61
+ }
62
+ find(e) {
63
+ const s = { exact: !0, ...e };
64
+ return this.getAll().find(
65
+ (a) => ne(s, a)
66
+ );
67
+ }
68
+ findAll(e = {}) {
69
+ const s = this.getAll();
70
+ return Object.keys(e).length > 0 ? s.filter((a) => ne(e, a)) : s;
71
+ }
72
+ notify(e) {
73
+ p.batch(() => {
74
+ this.listeners.forEach((s) => {
75
+ s(e);
76
+ });
77
+ });
78
+ }
79
+ onFocus() {
80
+ p.batch(() => {
81
+ this.getAll().forEach((e) => {
82
+ e.onFocus();
83
+ });
84
+ });
85
+ }
86
+ onOnline() {
87
+ p.batch(() => {
88
+ this.getAll().forEach((e) => {
89
+ e.onOnline();
90
+ });
91
+ });
92
+ }
93
+ }, x = new WeakMap(), de), f, S, fe, ft = (fe = class extends me {
94
+ constructor(e = {}) {
95
+ super();
96
+ m(this, f);
97
+ m(this, S);
98
+ this.config = e, u(this, f, /* @__PURE__ */ new Map()), u(this, S, Date.now());
99
+ }
100
+ build(e, s, a) {
101
+ const r = new Ie({
102
+ mutationCache: this,
103
+ mutationId: ++F(this, S)._,
104
+ options: e.defaultMutationOptions(s),
105
+ state: a
106
+ });
107
+ return this.add(r), r;
108
+ }
109
+ add(e) {
110
+ const s = R(e), a = i(this, f).get(s) ?? [];
111
+ a.push(e), i(this, f).set(s, a), this.notify({ type: "added", mutation: e });
112
+ }
113
+ remove(e) {
114
+ var a;
115
+ const s = R(e);
116
+ if (i(this, f).has(s)) {
117
+ const r = (a = i(this, f).get(s)) == null ? void 0 : a.filter((o) => o !== e);
118
+ r && (r.length === 0 ? i(this, f).delete(s) : i(this, f).set(s, r));
119
+ }
120
+ this.notify({ type: "removed", mutation: e });
121
+ }
122
+ canRun(e) {
123
+ var a;
124
+ const s = (a = i(this, f).get(R(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
125
+ return !s || s === e;
126
+ }
127
+ runNext(e) {
128
+ var a;
129
+ const s = (a = i(this, f).get(R(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
130
+ return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
131
+ }
132
+ clear() {
133
+ p.batch(() => {
134
+ this.getAll().forEach((e) => {
135
+ this.remove(e);
136
+ });
137
+ });
138
+ }
139
+ getAll() {
140
+ return [...i(this, f).values()].flat();
141
+ }
142
+ find(e) {
143
+ const s = { exact: !0, ...e };
144
+ return this.getAll().find(
145
+ (a) => re(s, a)
146
+ );
147
+ }
148
+ findAll(e = {}) {
149
+ return this.getAll().filter((s) => re(e, s));
150
+ }
151
+ notify(e) {
152
+ p.batch(() => {
153
+ this.listeners.forEach((s) => {
154
+ s(e);
155
+ });
156
+ });
157
+ }
158
+ resumePausedMutations() {
159
+ const e = this.getAll().filter((s) => s.state.isPaused);
160
+ return p.batch(
161
+ () => Promise.all(
162
+ e.map((s) => s.continue().catch(j))
163
+ )
164
+ );
165
+ }
166
+ }, f = new WeakMap(), S = new WeakMap(), fe);
167
+ function R(t) {
168
+ var e;
169
+ return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
170
+ }
171
+ function pt(t) {
172
+ return {
173
+ onFetch: (e, s) => {
174
+ const a = async () => {
175
+ var $, G, J, Y, Z;
176
+ const r = e.options, o = (J = (G = ($ = e.fetchOptions) == null ? void 0 : $.meta) == null ? void 0 : G.fetchMore) == null ? void 0 : J.direction, l = ((Y = e.state.data) == null ? void 0 : Y.pages) || [], h = ((Z = e.state.data) == null ? void 0 : Z.pageParams) || [], g = { pages: [], pageParams: [] };
177
+ let b = !1;
178
+ const d = (v) => {
179
+ Object.defineProperty(v, "signal", {
180
+ enumerable: !0,
181
+ get: () => (e.signal.aborted ? b = !0 : e.signal.addEventListener("abort", () => {
182
+ b = !0;
183
+ }), e.signal)
184
+ });
185
+ }, Qe = Fe(e.options, e.fetchOptions), B = async (v, w, O) => {
186
+ if (b)
187
+ return Promise.reject();
188
+ if (w == null && v.pages.length)
189
+ return Promise.resolve(v);
190
+ const I = {
191
+ queryKey: e.queryKey,
192
+ pageParam: w,
193
+ direction: O ? "backward" : "forward",
194
+ meta: e.options.meta
195
+ };
196
+ d(I);
197
+ const qe = await Qe(
198
+ I
199
+ ), { maxPages: ee } = e.options, te = O ? Re : He;
200
+ return {
201
+ pages: te(v.pages, qe, ee),
202
+ pageParams: te(v.pageParams, w, ee)
203
+ };
204
+ };
205
+ let A;
206
+ if (o && l.length) {
207
+ const v = o === "backward", w = v ? mt : he, O = {
208
+ pages: l,
209
+ pageParams: h
210
+ }, I = w(r, O);
211
+ A = await B(O, I, v);
212
+ } else {
213
+ A = await B(
214
+ g,
215
+ h[0] ?? r.initialPageParam
216
+ );
217
+ const v = t ?? l.length;
218
+ for (let w = 1; w < v; w++) {
219
+ const O = he(r, A);
220
+ A = await B(A, O);
221
+ }
222
+ }
223
+ return A;
224
+ };
225
+ e.options.persister ? e.fetchFn = () => {
226
+ var r, o;
227
+ return (o = (r = e.options).persister) == null ? void 0 : o.call(
228
+ r,
229
+ a,
230
+ {
231
+ queryKey: e.queryKey,
232
+ meta: e.options.meta,
233
+ signal: e.signal
234
+ },
235
+ s
236
+ );
237
+ } : e.fetchFn = a;
238
+ }
239
+ };
240
+ }
241
+ function he(t, { pages: e, pageParams: s }) {
242
+ const a = e.length - 1;
243
+ return t.getNextPageParam(
244
+ e[a],
245
+ e,
246
+ s[a],
247
+ s
248
+ );
249
+ }
250
+ function mt(t, { pages: e, pageParams: s }) {
251
+ var a;
252
+ return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
253
+ t,
254
+ e[0],
255
+ e,
256
+ s[0],
257
+ s
258
+ );
259
+ }
260
+ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
261
+ constructor(t = {}) {
262
+ m(this, c);
263
+ m(this, P);
264
+ m(this, N);
265
+ m(this, C);
266
+ m(this, M);
267
+ m(this, k);
268
+ m(this, Q);
269
+ m(this, q);
270
+ u(this, c, t.queryCache || new dt()), u(this, P, t.mutationCache || new ft()), u(this, N, t.defaultOptions || {}), u(this, C, /* @__PURE__ */ new Map()), u(this, M, /* @__PURE__ */ new Map()), u(this, k, 0);
271
+ }
272
+ mount() {
273
+ F(this, k)._++, i(this, k) === 1 && (u(this, Q, Le.subscribe(async (t) => {
274
+ t && (await this.resumePausedMutations(), i(this, c).onFocus());
275
+ })), u(this, q, ie.subscribe(async (t) => {
276
+ t && (await this.resumePausedMutations(), i(this, c).onOnline());
277
+ })));
278
+ }
279
+ unmount() {
280
+ var t, e;
281
+ F(this, k)._--, i(this, k) === 0 && ((t = i(this, Q)) == null || t.call(this), u(this, Q, void 0), (e = i(this, q)) == null || e.call(this), u(this, q, void 0));
282
+ }
283
+ isFetching(t) {
284
+ return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
285
+ }
286
+ isMutating(t) {
287
+ return i(this, P).findAll({ ...t, status: "pending" }).length;
288
+ }
289
+ getQueryData(t) {
290
+ var s;
291
+ const e = this.defaultQueryOptions({ queryKey: t });
292
+ return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state.data;
293
+ }
294
+ ensureQueryData(t) {
295
+ const e = this.getQueryData(t.queryKey);
296
+ if (e === void 0)
297
+ return this.fetchQuery(t);
298
+ {
299
+ const s = this.defaultQueryOptions(t), a = i(this, c).build(this, s);
300
+ return t.revalidateIfStale && a.isStaleByTime(oe(s.staleTime, a)) && this.prefetchQuery(s), Promise.resolve(e);
301
+ }
302
+ }
303
+ getQueriesData(t) {
304
+ return i(this, c).findAll(t).map(({ queryKey: e, state: s }) => {
305
+ const a = s.data;
306
+ return [e, a];
307
+ });
308
+ }
309
+ setQueryData(t, e, s) {
310
+ const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
311
+ a.queryHash
312
+ ), o = r == null ? void 0 : r.state.data, l = ze(e, o);
313
+ if (l !== void 0)
314
+ return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
315
+ }
316
+ setQueriesData(t, e, s) {
317
+ return p.batch(
318
+ () => i(this, c).findAll(t).map(({ queryKey: a }) => [
319
+ a,
320
+ this.setQueryData(a, e, s)
321
+ ])
322
+ );
323
+ }
324
+ getQueryState(t) {
325
+ var s;
326
+ const e = this.defaultQueryOptions({ queryKey: t });
327
+ return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state;
328
+ }
329
+ removeQueries(t) {
330
+ const e = i(this, c);
331
+ p.batch(() => {
332
+ e.findAll(t).forEach((s) => {
333
+ e.remove(s);
334
+ });
335
+ });
336
+ }
337
+ resetQueries(t, e) {
338
+ const s = i(this, c), a = {
339
+ type: "active",
340
+ ...t
341
+ };
342
+ return p.batch(() => (s.findAll(t).forEach((r) => {
343
+ r.reset();
344
+ }), this.refetchQueries(a, e)));
345
+ }
346
+ cancelQueries(t = {}, e = {}) {
347
+ const s = { revert: !0, ...e }, a = p.batch(
348
+ () => i(this, c).findAll(t).map((r) => r.cancel(s))
349
+ );
350
+ return Promise.all(a).then(j).catch(j);
351
+ }
352
+ invalidateQueries(t = {}, e = {}) {
353
+ return p.batch(() => {
354
+ if (i(this, c).findAll(t).forEach((a) => {
355
+ a.invalidate();
356
+ }), t.refetchType === "none")
357
+ return Promise.resolve();
358
+ const s = {
359
+ ...t,
360
+ type: t.refetchType ?? t.type ?? "active"
361
+ };
362
+ return this.refetchQueries(s, e);
363
+ });
364
+ }
365
+ refetchQueries(t = {}, e) {
366
+ const s = {
367
+ ...e,
368
+ cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
369
+ }, a = p.batch(
370
+ () => i(this, c).findAll(t).filter((r) => !r.isDisabled()).map((r) => {
371
+ let o = r.fetch(void 0, s);
372
+ return s.throwOnError || (o = o.catch(j)), r.state.fetchStatus === "paused" ? Promise.resolve() : o;
373
+ })
374
+ );
375
+ return Promise.all(a).then(j);
376
+ }
377
+ fetchQuery(t) {
378
+ const e = this.defaultQueryOptions(t);
379
+ e.retry === void 0 && (e.retry = !1);
380
+ const s = i(this, c).build(this, e);
381
+ return s.isStaleByTime(
382
+ oe(e.staleTime, s)
383
+ ) ? s.fetch(e) : Promise.resolve(s.state.data);
384
+ }
385
+ prefetchQuery(t) {
386
+ return this.fetchQuery(t).then(j).catch(j);
387
+ }
388
+ fetchInfiniteQuery(t) {
389
+ return t.behavior = pt(t.pages), this.fetchQuery(t);
390
+ }
391
+ prefetchInfiniteQuery(t) {
392
+ return this.fetchInfiniteQuery(t).then(j).catch(j);
393
+ }
394
+ resumePausedMutations() {
395
+ return ie.isOnline() ? i(this, P).resumePausedMutations() : Promise.resolve();
396
+ }
397
+ getQueryCache() {
398
+ return i(this, c);
399
+ }
400
+ getMutationCache() {
401
+ return i(this, P);
402
+ }
403
+ getDefaultOptions() {
404
+ return i(this, N);
405
+ }
406
+ setDefaultOptions(t) {
407
+ u(this, N, t);
408
+ }
409
+ setQueryDefaults(t, e) {
410
+ i(this, C).set(le(t), {
411
+ queryKey: t,
412
+ defaultOptions: e
413
+ });
414
+ }
415
+ getQueryDefaults(t) {
416
+ const e = [...i(this, C).values()];
417
+ let s = {};
418
+ return e.forEach((a) => {
419
+ ce(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
420
+ }), s;
421
+ }
422
+ setMutationDefaults(t, e) {
423
+ i(this, M).set(le(t), {
424
+ mutationKey: t,
425
+ defaultOptions: e
426
+ });
427
+ }
428
+ getMutationDefaults(t) {
429
+ const e = [...i(this, M).values()];
430
+ let s = {};
431
+ return e.forEach((a) => {
432
+ ce(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
433
+ }), s;
434
+ }
435
+ defaultQueryOptions(t) {
436
+ if (t._defaulted)
437
+ return t;
438
+ const e = {
439
+ ...i(this, N).queries,
440
+ ...this.getQueryDefaults(t.queryKey),
441
+ ...t,
442
+ _defaulted: !0
443
+ };
444
+ return e.queryHash || (e.queryHash = ge(
445
+ e.queryKey,
446
+ e
447
+ )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === Ke && (e.enabled = !1), e;
448
+ }
449
+ defaultMutationOptions(t) {
450
+ return t != null && t._defaulted ? t : {
451
+ ...i(this, N).mutations,
452
+ ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
453
+ ...t,
454
+ _defaulted: !0
455
+ };
456
+ }
457
+ clear() {
458
+ i(this, c).clear(), i(this, P).clear();
459
+ }
460
+ }, c = new WeakMap(), P = new WeakMap(), N = new WeakMap(), C = new WeakMap(), M = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
461
+ const Pe = (t) => "getRoutes" in t && typeof t.getRoutes == "function", vt = (t) => "initialize" in t && typeof t.initialize == "function", yt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ne = new gt(), xt = ht(() => ({}));
462
+ class bt {
463
+ constructor(e) {
464
+ y(this, "plugins", []);
465
+ y(this, "navigationPlugins");
466
+ y(this, "navigation");
467
+ y(this, "meta");
468
+ y(this, "authentication");
469
+ y(this, "state");
470
+ y(this, "initialize", async () => {
471
+ this.plugins.filter(vt).forEach((e) => e.initialize(this));
472
+ });
473
+ y(this, "invalidateCache", async (e) => {
474
+ await Ne.invalidateQueries({ queryKey: e });
475
+ });
476
+ y(this, "getApiIdentities", async () => (await Promise.all(
477
+ this.plugins.filter(yt).map((s) => s.getIdentities(this))
478
+ )).flat());
479
+ y(this, "getNavigation", async (e) => (await Promise.all(
480
+ this.navigationPlugins.map(
481
+ async (a) => {
482
+ var r;
483
+ return (r = a.getNavigation) == null ? void 0 : r.call(a, e);
484
+ }
485
+ )
486
+ )).flatMap((a) => a ?? []));
487
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Pe), this.authentication = e.authentication, this.meta = e.meta, this.state = xt;
488
+ }
489
+ async signRequest(e) {
490
+ if (!this.authentication)
491
+ throw new Error("No authentication provider configured");
492
+ const s = await this.authentication.getAccessToken();
493
+ return e.headers.set("Authorization", `Bearer ${s}`), e;
494
+ }
495
+ }
496
+ /**
497
+ * @license lucide-react v0.378.0 - ISC
498
+ *
499
+ * This source code is licensed under the ISC license.
500
+ * See the LICENSE file in the root directory of this source tree.
501
+ */
502
+ const ke = E("ChevronRight", [
503
+ ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
504
+ ]);
505
+ /**
506
+ * @license lucide-react v0.378.0 - ISC
507
+ *
508
+ * This source code is licensed under the ISC license.
509
+ * See the LICENSE file in the root directory of this source tree.
510
+ */
511
+ const jt = E("ExternalLink", [
512
+ ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
513
+ ["path", { d: "M10 14 21 3", key: "gplh6r" }],
514
+ ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
515
+ ]);
516
+ /**
517
+ * @license lucide-react v0.378.0 - ISC
518
+ *
519
+ * This source code is licensed under the ISC license.
520
+ * See the LICENSE file in the root directory of this source tree.
521
+ */
522
+ const wt = E("MoonStar", [
523
+ ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
524
+ ["path", { d: "M20 3v4", key: "1olli1" }],
525
+ ["path", { d: "M22 5h-4", key: "1gvqau" }]
526
+ ]);
527
+ /**
528
+ * @license lucide-react v0.378.0 - ISC
529
+ *
530
+ * This source code is licensed under the ISC license.
531
+ * See the LICENSE file in the root directory of this source tree.
532
+ */
533
+ const Pt = E("Search", [
534
+ ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
535
+ ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
536
+ ]);
537
+ /**
538
+ * @license lucide-react v0.378.0 - ISC
539
+ *
540
+ * This source code is licensed under the ISC license.
541
+ * See the LICENSE file in the root directory of this source tree.
542
+ */
543
+ const Nt = E("Sun", [
544
+ ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
545
+ ["path", { d: "M12 2v2", key: "tus03m" }],
546
+ ["path", { d: "M12 20v2", key: "1lh1kg" }],
547
+ ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
548
+ ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
549
+ ["path", { d: "M2 12h2", key: "1t8f8n" }],
550
+ ["path", { d: "M20 12h2", key: "1q8mjw" }],
551
+ ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
552
+ ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
553
+ ]), kt = () => {
554
+ const { authentication: t } = K(), e = ut(), s = typeof t < "u";
555
+ return {
556
+ isAuthEnabled: s,
557
+ profile: e.profile,
558
+ isAuthenticated: e.profile,
559
+ login: async () => {
560
+ if (!s)
561
+ throw new Error("Authentication is not enabled.");
562
+ await t.login();
563
+ },
564
+ logout: async () => {
565
+ if (!s)
566
+ throw new Error("Authentication is not enabled.");
567
+ await t.logout(), window.location.href = "/";
568
+ }
569
+ };
570
+ }, Ot = () => {
571
+ const { navigation: t } = K();
572
+ return /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
573
+ V,
574
+ {
575
+ className: ({ isActive: s }) => _e(
576
+ "block py-3.5 font-medium -mb-px border-b-2",
577
+ s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
578
+ ),
579
+ to: e.path,
580
+ children: e.label
581
+ }
582
+ ) }, e.label)) }) });
583
+ }, Oe = je(function() {
584
+ const [e, s] = Be(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = kt(), { meta: g } = K(), b = e ? wt : Nt;
585
+ return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
586
+ /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
587
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
588
+ (g == null ? void 0 : g.logo) && /* @__PURE__ */ n.jsx("img", { src: g.logo, alt: "My Dev Portal", className: "h-10" }),
589
+ /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: g == null ? void 0 : g.headerTitle })
590
+ ] }),
591
+ /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
592
+ /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ n.jsxs("button", { className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72", children: [
593
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
594
+ /* @__PURE__ */ n.jsx(Pt, { size: 14 }),
595
+ "Search"
596
+ ] }),
597
+ /* @__PURE__ */ n.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border border-border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
598
+ ] }) }),
599
+ /* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
600
+ o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
601
+ "button",
602
+ {
603
+ className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
604
+ onClick: h,
605
+ children: [
606
+ "Logout ",
607
+ r != null && r.email ? `(${r.email})` : null
608
+ ]
609
+ }
610
+ ) : /* @__PURE__ */ n.jsx(
611
+ "button",
612
+ {
613
+ className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
614
+ onClick: l,
615
+ children: "Login"
616
+ }
617
+ ) }),
618
+ /* @__PURE__ */ n.jsx(
619
+ "button",
620
+ {
621
+ className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
622
+ onClick: s,
623
+ children: /* @__PURE__ */ n.jsx(b, { size: 18 })
624
+ }
625
+ )
626
+ ] })
627
+ ] })
628
+ ] }),
629
+ /* @__PURE__ */ n.jsx(Ot, {})
630
+ ] }) });
631
+ }), Ae = {
632
+ Header: Oe
633
+ }, At = ot(Ae), Ct = At.Provider, Mt = () => {
634
+ const t = D(), { setActiveAnchor: e } = W();
635
+ T(() => {
636
+ if (!t.hash) return;
637
+ const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
638
+ if (a) {
639
+ requestAnimationFrame(() => {
640
+ a.scrollIntoView(), requestIdleCallback(() => e(s));
641
+ });
642
+ return;
643
+ }
644
+ const r = new MutationObserver((o, l) => {
645
+ const h = document.getElementById(decodeURIComponent(s));
646
+ h && (h.scrollIntoView(), requestIdleCallback(() => e(s)), l.disconnect());
647
+ });
648
+ return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
649
+ }, [t.hash, e]);
650
+ }, Qt = () => {
651
+ const t = D(), e = _(t.pathname);
652
+ T(() => {
653
+ e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
654
+ }, [t.pathname]);
655
+ }, Ce = ({
656
+ item: t,
657
+ defaultOpen: e,
658
+ path: s
659
+ }) => {
660
+ const [a, r] = lt(e), o = D(), l = _(o.pathname);
661
+ return T(() => {
662
+ !a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
663
+ }, [a, t, s, o.pathname]), [a, r];
664
+ }, H = We(
665
+ "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
666
+ {
667
+ variants: {
668
+ isActive: {
669
+ true: "text-primary font-medium",
670
+ false: "text-foreground/80"
671
+ },
672
+ isMuted: {
673
+ true: "text-foreground/30",
674
+ false: ""
675
+ }
676
+ }
677
+ }
678
+ ), qt = "data-anchor", Me = ({
679
+ category: t,
680
+ item: e,
681
+ activeAnchor: s,
682
+ currentTopNavItem: a,
683
+ basePath: r = ""
684
+ }) => {
685
+ const o = U(e) ? ve(r, e.path) : "", l = D(), [h, g] = Ce({
686
+ item: e,
687
+ path: o,
688
+ defaultOpen: () => X(e, l.pathname, o)
689
+ });
690
+ if (Ve(e)) {
691
+ const d = z(
692
+ "flex items-center gap-2",
693
+ H({
694
+ isActive: e.href === l.pathname
695
+ })
696
+ );
697
+ return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
698
+ "a",
699
+ {
700
+ className: d,
701
+ href: e.href,
702
+ target: "_blank",
703
+ rel: "noopener noreferrer",
704
+ children: [
705
+ e.label,
706
+ /* @__PURE__ */ n.jsx(jt, { size: 14 })
707
+ ]
708
+ }
709
+ ) : /* @__PURE__ */ n.jsx(V, { className: d, to: e.href, children: e.label });
710
+ }
711
+ const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
712
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
713
+ e.icon,
714
+ typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
715
+ ] }),
716
+ e.children && /* @__PURE__ */ n.jsx(
717
+ ke,
718
+ {
719
+ size: 16,
720
+ className: "transition shrink-0 group-data-[state=open]:rotate-90"
721
+ }
722
+ )
723
+ ] });
724
+ return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
725
+ ye,
726
+ {
727
+ open: h,
728
+ onOpenChange: () => g((d) => !d),
729
+ className: "flex flex-col",
730
+ children: [
731
+ /* @__PURE__ */ n.jsx(
732
+ xe,
733
+ {
734
+ className: z(
735
+ "group text-start",
736
+ H({ isActive: !1 })
737
+ ),
738
+ children: b
739
+ }
740
+ ),
741
+ /* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((d) => /* @__PURE__ */ n.jsx(
742
+ Me,
743
+ {
744
+ category: t,
745
+ item: d,
746
+ activeAnchor: s,
747
+ currentTopNavItem: a,
748
+ basePath: o
749
+ },
750
+ U(d) ? d.path : d.href
751
+ )) }) })
752
+ ]
753
+ }
754
+ ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
755
+ Ue,
756
+ {
757
+ to: e.path,
758
+ [qt]: e.path,
759
+ className: H({
760
+ isActive: e.path.slice(1) === s,
761
+ isMuted: e.muted
762
+ }),
763
+ children: b
764
+ }
765
+ ) : /* @__PURE__ */ n.jsx(
766
+ V,
767
+ {
768
+ className: ({ isActive: d }) => H({ isActive: d }),
769
+ to: o,
770
+ children: b
771
+ }
772
+ ) });
773
+ }, Dt = ({
774
+ category: t
775
+ }) => {
776
+ const { activeAnchor: e } = W(), s = Xe(), a = D(), r = t.collapsible ?? !0, [o, l] = Ce({
777
+ item: t,
778
+ path: (s == null ? void 0 : s.path) ?? "",
779
+ defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
780
+ });
781
+ return /* @__PURE__ */ n.jsxs(
782
+ ye,
783
+ {
784
+ open: o,
785
+ onOpenChange: () => l((h) => !h),
786
+ children: [
787
+ t.label.length > 0 ? /* @__PURE__ */ n.jsx(xe, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
788
+ "h5",
789
+ {
790
+ className: z(
791
+ "flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
792
+ r ? "hover:bg-accent" : "cursor-auto"
793
+ ),
794
+ children: [
795
+ t.label,
796
+ r && /* @__PURE__ */ n.jsx(
797
+ ke,
798
+ {
799
+ className: "group-data-[state=open]:rotate-90 transition",
800
+ size: 16
801
+ }
802
+ )
803
+ ]
804
+ }
805
+ ) }) : "Endpoints",
806
+ /* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((h) => /* @__PURE__ */ n.jsx(
807
+ Me,
808
+ {
809
+ category: t,
810
+ item: h,
811
+ activeAnchor: e,
812
+ currentTopNavItem: s,
813
+ basePath: ve(s == null ? void 0 : s.path, t.path)
814
+ },
815
+ U(h) ? h.path + h.label : h.href
816
+ )) }) })
817
+ ]
818
+ },
819
+ t.label
820
+ );
821
+ }, St = ct(function({ children: e, className: s, pushMainContent: a }, r) {
822
+ return /* @__PURE__ */ n.jsx(
823
+ "nav",
824
+ {
825
+ "data-navigation": String(a),
826
+ className: z(
827
+ "peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
828
+ s
829
+ ),
830
+ ref: r,
831
+ children: e
832
+ }
833
+ );
834
+ }), Et = () => {
835
+ const t = _(null), e = $e();
836
+ return /* @__PURE__ */ n.jsx(
837
+ St,
838
+ {
839
+ ref: t,
840
+ pushMainContent: e.data.items.length > 0,
841
+ children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Dt, { category: s }, s.label))
842
+ }
843
+ );
844
+ }, ue = ({ children: t }) => {
845
+ const e = D(), { setActiveAnchor: s } = W(), { meta: a } = K();
846
+ Mt(), Qt();
847
+ const r = _(e.pathname);
848
+ return T(() => {
849
+ e.pathname !== r.current && s(""), r.current = e.pathname;
850
+ }, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
851
+ /* @__PURE__ */ n.jsxs(Ge, { titleTemplate: a == null ? void 0 : a.pageTitle, children: [
852
+ /* @__PURE__ */ n.jsx("title", { children: "Home" }),
853
+ (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
854
+ (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
855
+ ] }),
856
+ /* @__PURE__ */ n.jsx(Oe, {}),
857
+ /* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
858
+ we,
859
+ {
860
+ fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Je, {}) }),
861
+ children: [
862
+ /* @__PURE__ */ n.jsx(Et, {}),
863
+ /* @__PURE__ */ n.jsx(
864
+ "main",
865
+ {
866
+ className: `dark:border-white/10 translate-x-0
867
+ lg:overflow-visible
868
+ lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
869
+ lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
870
+ children: t ?? /* @__PURE__ */ n.jsx(Ee, {})
871
+ }
872
+ )
873
+ ]
874
+ }
875
+ ) })
876
+ ] });
877
+ };
878
+ function Tt({ plugins: t }) {
879
+ const e = L(() => {
880
+ const s = (t ?? []).flatMap(
881
+ (a) => Pe(a) ? a.getRoutes() : []
882
+ );
883
+ return Ye([
884
+ {
885
+ path: "/",
886
+ element: /* @__PURE__ */ n.jsx(ue, {}),
887
+ errorElement: /* @__PURE__ */ n.jsx(ue, { children: /* @__PURE__ */ n.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
888
+ children: s
889
+ }
890
+ ]);
891
+ }, [t]);
892
+ return /* @__PURE__ */ n.jsx(Ze, { router: e });
893
+ }
894
+ const It = (t) => {
895
+ const e = L(
896
+ () => ({ ...Ae, ...t.overrides }),
897
+ [t.overrides]
898
+ ), s = L(
899
+ () => ({ ...et, ...t.mdxComponents }),
900
+ [t.mdxComponents]
901
+ ), a = L(() => new bt(t), [t]);
902
+ return T(() => {
903
+ a.initialize();
904
+ }, [a]), /* @__PURE__ */ n.jsx(tt, { client: Ne, children: /* @__PURE__ */ n.jsx(st, { children: /* @__PURE__ */ n.jsx(at, { value: a, children: /* @__PURE__ */ n.jsx(nt, { components: s, children: /* @__PURE__ */ n.jsx(rt, { children: /* @__PURE__ */ n.jsx(Ct, { value: e, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(
905
+ we,
906
+ {
907
+ fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
908
+ children: /* @__PURE__ */ n.jsx(
909
+ Tt,
910
+ {
911
+ plugins: [
912
+ ...t.plugins ?? [],
913
+ ...t.authentication ? [t.authentication] : []
914
+ ]
915
+ }
916
+ )
917
+ }
918
+ ) }) }) }) }) }) }) });
919
+ }, Ft = je(It);
920
+ Ft.displayName = "DevPortal";
921
+ export {
922
+ Ft as DevPortal,
923
+ Vt as Link,
924
+ Ut as useMDXComponents
925
+ };