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

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