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

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