zudoku 0.3.0-dev.3 → 0.3.0-dev.30

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