zudoku 0.3.0-dev.3 → 0.3.0-dev.31

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 (417) hide show
  1. package/dist/app/demo.d.ts +2 -0
  2. package/dist/app/demo.js +27 -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 +31 -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 +32 -0
  9. package/dist/app/standalone.js.map +1 -0
  10. package/dist/app/tailwind.d.ts +1 -1
  11. package/dist/app/tailwind.js +0 -9
  12. package/dist/app/tailwind.js.map +1 -1
  13. package/dist/config/config.d.ts +10 -16
  14. package/dist/lib/authentication/Callback.js +1 -1
  15. package/dist/lib/authentication/Callback.js.map +1 -1
  16. package/dist/lib/authentication/authentication.d.ts +2 -2
  17. package/dist/lib/authentication/hook.d.ts +1 -0
  18. package/dist/lib/authentication/hook.js +1 -0
  19. package/dist/lib/authentication/hook.js.map +1 -1
  20. package/dist/lib/authentication/providers/auth0.js +1 -0
  21. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  22. package/dist/lib/authentication/providers/clerk.js +2 -0
  23. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  24. package/dist/lib/authentication/providers/openid.d.ts +1 -1
  25. package/dist/lib/authentication/providers/openid.js +2 -0
  26. package/dist/lib/authentication/providers/openid.js.map +1 -1
  27. package/dist/lib/authentication/state.d.ts +1 -0
  28. package/dist/lib/authentication/state.js +1 -0
  29. package/dist/lib/authentication/state.js.map +1 -1
  30. package/dist/lib/components/DevPortal.d.ts +5 -20
  31. package/dist/lib/components/DevPortal.js +20 -11
  32. package/dist/lib/components/DevPortal.js.map +1 -1
  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 +13 -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/errors/ErrorAlert.d.ts +3 -0
  60. package/dist/lib/errors/ErrorAlert.js +8 -0
  61. package/dist/lib/errors/ErrorAlert.js.map +1 -0
  62. package/dist/lib/errors/RouterError.d.ts +1 -0
  63. package/dist/lib/errors/RouterError.js +9 -0
  64. package/dist/lib/errors/RouterError.js.map +1 -0
  65. package/dist/lib/errors/TopLevelError.d.ts +2 -0
  66. package/dist/lib/errors/TopLevelError.js +7 -0
  67. package/dist/lib/errors/TopLevelError.js.map +1 -0
  68. package/dist/lib/oas/graphql/index.js +1 -1
  69. package/dist/lib/oas/graphql/index.js.map +1 -1
  70. package/dist/lib/oas/parser/index.js +3 -1
  71. package/dist/lib/oas/parser/index.js.map +1 -1
  72. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +4 -0
  73. package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +1 -1
  74. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
  75. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +4 -0
  76. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +38 -0
  77. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
  78. package/dist/lib/plugins/{api-key → api-keys}/index.js +37 -9
  79. package/dist/lib/plugins/api-keys/index.js.map +1 -0
  80. package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
  81. package/dist/lib/plugins/markdown/MdxPage.js +7 -6
  82. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  83. package/dist/lib/plugins/markdown/Toc.js +1 -1
  84. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  85. package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -3
  86. package/dist/lib/plugins/markdown/generateRoutes.js +4 -4
  87. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  88. package/dist/lib/plugins/markdown/index.d.ts +4 -1
  89. package/dist/lib/plugins/markdown/index.js +2 -2
  90. package/dist/lib/plugins/markdown/index.js.map +1 -1
  91. package/dist/lib/plugins/openapi/OperationList.js +5 -4
  92. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  93. package/dist/lib/plugins/openapi/OperationListItem.js +8 -4
  94. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  95. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  96. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  97. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  98. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  99. package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +1 -1
  100. package/dist/lib/plugins/openapi/{MakeRequest.js → PlaygroundDialogWrapper.js} +5 -5
  101. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
  102. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +1 -9
  103. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  104. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
  105. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  106. package/dist/lib/plugins/openapi/Route.d.ts +6 -0
  107. package/dist/lib/plugins/openapi/Route.js +8 -0
  108. package/dist/lib/plugins/openapi/Route.js.map +1 -0
  109. package/dist/lib/plugins/openapi/SchemaListView.js +4 -26
  110. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
  111. package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
  112. package/dist/lib/plugins/openapi/SchemaListViewItem.js +16 -0
  113. package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
  114. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
  115. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
  116. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
  117. package/dist/lib/plugins/openapi/Sidecar.js +10 -8
  118. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  119. package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
  120. package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
  121. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
  122. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
  123. package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
  124. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
  125. package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
  126. package/dist/lib/plugins/openapi/client/createServer.js +30 -0
  127. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
  128. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
  129. package/dist/lib/plugins/openapi/{worker/createSharedWorkerClient.js → client/createWorkerClient.js} +11 -2
  130. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
  131. package/dist/lib/plugins/openapi/client/interfaces.d.ts +2 -0
  132. package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
  133. package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
  134. package/dist/lib/plugins/openapi/{worker → client}/worker.js +2 -2
  135. package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
  136. package/dist/lib/plugins/openapi/context.d.ts +5 -0
  137. package/dist/lib/plugins/openapi/context.js +11 -0
  138. package/dist/lib/plugins/openapi/context.js.map +1 -0
  139. package/dist/lib/plugins/openapi/index.d.ts +1 -19
  140. package/dist/lib/plugins/openapi/index.js +27 -20
  141. package/dist/lib/plugins/openapi/index.js.map +1 -1
  142. package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
  143. package/dist/lib/plugins/openapi/interfaces.js +2 -0
  144. package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
  145. package/dist/lib/plugins/openapi/playground/Headers.d.ts +2 -3
  146. package/dist/lib/plugins/openapi/playground/Headers.js +16 -6
  147. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  148. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +1 -1
  149. package/dist/lib/plugins/openapi/playground/Playground.d.ts +4 -3
  150. package/dist/lib/plugins/openapi/playground/Playground.js +8 -12
  151. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  152. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -0
  153. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +10 -0
  154. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
  155. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  156. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
  157. package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
  158. package/dist/lib/plugins/openapi/util/prose.js +4 -0
  159. package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
  160. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  161. package/dist/lib/plugins/openapi-worker.js +1 -1
  162. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  163. package/dist/lib/ui/Callout.js +1 -1
  164. package/dist/lib/ui/Callout.js.map +1 -1
  165. package/dist/lib/ui/button-variants.d.ts +1 -1
  166. package/dist/lib/util/MdxComponents.js +1 -1
  167. package/dist/lib/util/MdxComponents.js.map +1 -1
  168. package/dist/lib/util/logInit.d.ts +1 -0
  169. package/dist/lib/util/logInit.js +9 -0
  170. package/dist/lib/util/logInit.js.map +1 -0
  171. package/dist/lib/util/objectEntries.d.ts +4 -0
  172. package/dist/lib/util/objectEntries.js +2 -0
  173. package/dist/lib/util/objectEntries.js.map +1 -0
  174. package/dist/lib/util/renderIf.d.ts +1 -0
  175. package/dist/lib/util/renderIf.js +2 -0
  176. package/dist/lib/util/renderIf.js.map +1 -0
  177. package/dist/vite/build.js +4 -1
  178. package/dist/vite/build.js.map +1 -1
  179. package/dist/vite/config.d.ts +11 -8
  180. package/dist/vite/config.js +58 -50
  181. package/dist/vite/config.js.map +1 -1
  182. package/dist/vite/config.test.js +7 -4
  183. package/dist/vite/config.test.js.map +1 -1
  184. package/dist/vite/dev-server.js +4 -4
  185. package/dist/vite/dev-server.js.map +1 -1
  186. package/dist/vite/html.js +0 -1
  187. package/dist/vite/html.js.map +1 -1
  188. package/dist/vite/plugin-api-keys.js +7 -8
  189. package/dist/vite/plugin-api-keys.js.map +1 -1
  190. package/dist/vite/plugin-api.js +7 -11
  191. package/dist/vite/plugin-api.js.map +1 -1
  192. package/dist/vite/plugin-auth.js +5 -6
  193. package/dist/vite/plugin-auth.js.map +1 -1
  194. package/dist/vite/plugin-component.js +1 -1
  195. package/dist/vite/plugin-component.js.map +1 -1
  196. package/dist/vite/plugin-config.d.ts +0 -1
  197. package/dist/vite/plugin-config.js +13 -7
  198. package/dist/vite/plugin-config.js.map +1 -1
  199. package/dist/vite/plugin-docs.js +9 -8
  200. package/dist/vite/plugin-docs.js.map +1 -1
  201. package/dist/vite/plugin-docs.test.js +1 -1
  202. package/dist/vite/plugin-docs.test.js.map +1 -1
  203. package/dist/vite/plugin-html.js +1 -9
  204. package/dist/vite/plugin-html.js.map +1 -1
  205. package/dist/vite/plugin-mdx.d.ts +3 -1
  206. package/dist/vite/plugin-mdx.js +4 -4
  207. package/dist/vite/plugin-mdx.js.map +1 -1
  208. package/dist/vite/plugin-openapi-worker.js +11 -3
  209. package/dist/vite/plugin-openapi-worker.js.map +1 -1
  210. package/dist/vite/plugin-redirect.js +9 -9
  211. package/dist/vite/plugin-redirect.js.map +1 -1
  212. package/dist/vite/plugin.js +1 -1
  213. package/dist/vite/plugin.js.map +1 -1
  214. package/lib/AnchorLink-ptdQk87q.js +706 -0
  215. package/lib/AnchorLink-ptdQk87q.js.map +1 -0
  216. package/lib/DevPortalProvider-BMk-RCE0.js +1081 -0
  217. package/lib/DevPortalProvider-BMk-RCE0.js.map +1 -0
  218. package/lib/Markdown-DDmW47R9.js +8621 -0
  219. package/lib/Markdown-DDmW47R9.js.map +1 -0
  220. package/lib/MdxComponents-C0R6zobS.js +3019 -0
  221. package/lib/MdxComponents-C0R6zobS.js.map +1 -0
  222. package/lib/MdxPage-DyJAHF9y.js +217 -0
  223. package/lib/MdxPage-DyJAHF9y.js.map +1 -0
  224. package/lib/OperationList-Dz9rHM9r.js +5546 -0
  225. package/lib/OperationList-Dz9rHM9r.js.map +1 -0
  226. package/lib/Route-CN_7-e5r.js +14 -0
  227. package/lib/Route-CN_7-e5r.js.map +1 -0
  228. package/lib/Select-D-Jtx53Q.js +4572 -0
  229. package/lib/Select-D-Jtx53Q.js.map +1 -0
  230. package/lib/Spinner-BG1JnYy0.js +182 -0
  231. package/lib/Spinner-BG1JnYy0.js.map +1 -0
  232. package/lib/_commonjsHelpers-BkfeUUK-.js +1 -0
  233. package/lib/_commonjsHelpers-BkfeUUK-.js.map +1 -0
  234. package/lib/assets/index-BPdJm2ty.js +1 -0
  235. package/lib/assets/index-BPdJm2ty.js.map +1 -0
  236. package/lib/assets/{worker-BCcpCNJ7.js → worker-BXS8hiSM.js} +9844 -9800
  237. package/lib/assets/worker-BXS8hiSM.js.map +1 -0
  238. package/lib/cn-DpqTslo9.js +2342 -0
  239. package/lib/cn-DpqTslo9.js.map +1 -0
  240. package/lib/context-_fYfJFgk.js +14 -0
  241. package/lib/context-_fYfJFgk.js.map +1 -0
  242. package/lib/hook-BzBeIPL4.js +25 -0
  243. package/lib/hook-BzBeIPL4.js.map +1 -0
  244. package/lib/index-BaOOUFsA.js +412 -0
  245. package/lib/index-BaOOUFsA.js.map +1 -0
  246. package/lib/index-CPvRaBBB.js +713 -0
  247. package/lib/index-CPvRaBBB.js.map +1 -0
  248. package/lib/index-Cpdpun6t.js +710 -0
  249. package/lib/index-Cpdpun6t.js.map +1 -0
  250. package/lib/index-DLS6fPwU.js +464 -0
  251. package/lib/index-DLS6fPwU.js.map +1 -0
  252. package/lib/jsx-runtime-SV6hXQua.js +3009 -0
  253. package/lib/jsx-runtime-SV6hXQua.js.map +1 -0
  254. package/lib/loglevel-CA34MiFn.js +153 -0
  255. package/lib/loglevel-CA34MiFn.js.map +1 -0
  256. package/lib/prism-bash.min-DadFsM4Z.js +1 -0
  257. package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
  258. package/lib/prism-csharp.min-Yizuc34Y.js +35 -0
  259. package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
  260. package/lib/prism-java.min-d5iT_mOd.js +1 -0
  261. package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
  262. package/lib/prism-json.min-B1GJqK1k.js +1 -0
  263. package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
  264. package/lib/prism-markup-templating-DZrrEs0A.js +1 -0
  265. package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
  266. package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
  267. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
  268. package/lib/prism-php.min-o7FpoMP_.js +1 -0
  269. package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
  270. package/lib/prism-ruby.min-C7LwcKyz.js +1 -0
  271. package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
  272. package/lib/{state-oycsxkHz.js → state-Ds_OxRHP.js} +20 -18
  273. package/lib/state-Ds_OxRHP.js.map +1 -0
  274. package/lib/urql-DMlBWUKL.js +1 -0
  275. package/lib/urql-DMlBWUKL.js.map +1 -0
  276. package/lib/util-CCWvaWo7.js +41 -0
  277. package/lib/util-CCWvaWo7.js.map +1 -0
  278. package/lib/zudoku.auth-auth0.js +3 -1
  279. package/lib/zudoku.auth-auth0.js.map +1 -0
  280. package/lib/zudoku.auth-clerk.js +11 -8
  281. package/lib/zudoku.auth-clerk.js.map +1 -0
  282. package/lib/zudoku.auth-openid.js +444 -588
  283. package/lib/zudoku.auth-openid.js.map +1 -0
  284. package/lib/zudoku.components.js +429 -334
  285. package/lib/zudoku.components.js.map +1 -0
  286. package/lib/zudoku.openapi-worker.js +16 -13
  287. package/lib/zudoku.openapi-worker.js.map +1 -0
  288. package/lib/zudoku.plugin-api-keys.js +296 -0
  289. package/lib/zudoku.plugin-api-keys.js.map +1 -0
  290. package/lib/zudoku.plugin-markdown.js +52 -0
  291. package/lib/zudoku.plugin-markdown.js.map +1 -0
  292. package/lib/zudoku.plugin-openapi.js +8 -0
  293. package/lib/zudoku.plugin-openapi.js.map +1 -0
  294. package/lib/zudoku.plugin-redirect.js +12 -0
  295. package/lib/zudoku.plugin-redirect.js.map +1 -0
  296. package/package.json +21 -6
  297. package/src/app/demo-cdn.html +26 -0
  298. package/src/app/demo.html +18 -0
  299. package/src/app/demo.tsx +40 -0
  300. package/src/app/main.css +74 -0
  301. package/src/app/main.tsx +42 -9
  302. package/src/app/standalone.html +20 -0
  303. package/src/app/standalone.tsx +46 -0
  304. package/src/app/tailwind.ts +1 -11
  305. package/src/lib/authentication/Callback.tsx +1 -1
  306. package/src/lib/authentication/authentication.ts +2 -5
  307. package/src/lib/authentication/hook.ts +1 -0
  308. package/src/lib/authentication/providers/auth0.tsx +1 -0
  309. package/src/lib/authentication/providers/clerk.tsx +2 -0
  310. package/src/lib/authentication/providers/openid.tsx +3 -1
  311. package/src/lib/authentication/state.ts +2 -0
  312. package/src/lib/components/DevPortal.tsx +23 -30
  313. package/src/lib/components/Header.tsx +7 -7
  314. package/src/lib/components/Heading.tsx +26 -7
  315. package/src/lib/components/Layout.tsx +3 -4
  316. package/src/lib/components/Router.tsx +3 -7
  317. package/src/lib/components/SyntaxHighlight.tsx +5 -1
  318. package/src/lib/components/TopNavigation.tsx +5 -0
  319. package/src/lib/components/context/DevPortalProvider.ts +2 -2
  320. package/src/lib/components/index.ts +9 -3
  321. package/src/lib/core/DevPortalContext.ts +42 -12
  322. package/src/lib/core/plugins.ts +10 -5
  323. package/src/lib/errors/ErrorAlert.tsx +21 -0
  324. package/src/lib/errors/RouterError.tsx +12 -0
  325. package/src/lib/errors/TopLevelError.tsx +8 -0
  326. package/src/lib/oas/graphql/index.ts +2 -2
  327. package/src/lib/oas/parser/index.ts +3 -1
  328. package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +2 -8
  329. package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +21 -14
  330. package/src/lib/plugins/{api-key → api-keys}/index.tsx +54 -8
  331. package/src/lib/plugins/markdown/MdxPage.tsx +52 -35
  332. package/src/lib/plugins/markdown/Toc.tsx +1 -1
  333. package/src/lib/plugins/markdown/generateRoutes.tsx +15 -5
  334. package/src/lib/plugins/markdown/index.tsx +8 -1
  335. package/src/lib/plugins/openapi/OperationList.tsx +10 -4
  336. package/src/lib/plugins/openapi/OperationListItem.tsx +66 -41
  337. package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
  338. package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
  339. package/src/lib/plugins/openapi/{MakeRequest.tsx → PlaygroundDialogWrapper.tsx} +4 -4
  340. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -16
  341. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -1
  342. package/src/lib/plugins/openapi/Route.tsx +21 -0
  343. package/src/lib/plugins/openapi/SchemaListView.tsx +15 -182
  344. package/src/lib/plugins/openapi/SchemaListViewItem.tsx +110 -0
  345. package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
  346. package/src/lib/plugins/openapi/Sidecar.tsx +15 -10
  347. package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +6 -3
  348. package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
  349. package/src/lib/plugins/openapi/client/createServer.ts +33 -0
  350. package/src/lib/plugins/openapi/{worker/createSharedWorkerClient.ts → client/createWorkerClient.ts} +13 -1
  351. package/src/lib/plugins/openapi/client/interfaces.ts +3 -0
  352. package/src/lib/plugins/openapi/{worker → client}/worker.ts +3 -3
  353. package/src/lib/plugins/openapi/context.tsx +16 -0
  354. package/src/lib/plugins/openapi/index.tsx +37 -51
  355. package/src/lib/plugins/openapi/interfaces.ts +9 -0
  356. package/src/lib/plugins/openapi/playground/Headers.tsx +60 -33
  357. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
  358. package/src/lib/plugins/openapi/playground/Playground.tsx +158 -193
  359. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +34 -0
  360. package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -1
  361. package/src/lib/plugins/openapi/playground/createUrl.ts +1 -1
  362. package/src/lib/plugins/openapi/util/prose.ts +7 -0
  363. package/src/lib/plugins/openapi-worker.ts +1 -1
  364. package/src/lib/ui/Callout.tsx +2 -2
  365. package/src/lib/util/MdxComponents.tsx +1 -2
  366. package/src/lib/util/logInit.ts +9 -0
  367. package/src/lib/util/objectEntries.ts +5 -0
  368. package/src/lib/util/renderIf.ts +4 -0
  369. package/dist/app/App.d.ts +0 -2
  370. package/dist/app/App.js +0 -29
  371. package/dist/app/App.js.map +0 -1
  372. package/dist/lib/components/Link.d.ts +0 -1
  373. package/dist/lib/components/Link.js +0 -2
  374. package/dist/lib/components/Link.js.map +0 -1
  375. package/dist/lib/core/helmet.d.ts +0 -4
  376. package/dist/lib/core/helmet.js +0 -5
  377. package/dist/lib/core/helmet.js.map +0 -1
  378. package/dist/lib/core/icons.d.ts +0 -1
  379. package/dist/lib/core/icons.js +0 -2
  380. package/dist/lib/core/icons.js.map +0 -1
  381. package/dist/lib/core/router.d.ts +0 -1
  382. package/dist/lib/core/router.js +0 -2
  383. package/dist/lib/core/router.js.map +0 -1
  384. package/dist/lib/plugins/api-key/CreateApiKey.d.ts +0 -5
  385. package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
  386. package/dist/lib/plugins/api-key/SettingsApiKeys.d.ts +0 -5
  387. package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -38
  388. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
  389. package/dist/lib/plugins/api-key/index.js.map +0 -1
  390. package/dist/lib/plugins/index.d.ts +0 -4
  391. package/dist/lib/plugins/index.js +0 -5
  392. package/dist/lib/plugins/index.js.map +0 -1
  393. package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
  394. package/dist/lib/plugins/openapi/Select.js +0 -5
  395. package/dist/lib/plugins/openapi/Select.js.map +0 -1
  396. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
  397. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
  398. package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +0 -1
  399. package/dist/lib/plugins/openapi/worker/shared-worker.js +0 -6
  400. package/dist/lib/plugins/openapi/worker/shared-worker.js.map +0 -1
  401. package/dist/lib/plugins/openapi/worker/worker.js.map +0 -1
  402. package/dist/vite/common.d.ts +0 -1
  403. package/dist/vite/common.js +0 -5
  404. package/dist/vite/common.js.map +0 -1
  405. package/lib/Spinner-7LezPqGn.js +0 -8393
  406. package/lib/clerk-Wslx_mPo.js +0 -19685
  407. package/lib/index-DNx3xWa2.js +0 -3461
  408. package/lib/zudoku.plugins.js +0 -19863
  409. package/src/app/App.tsx +0 -40
  410. package/src/lib/components/Link.tsx +0 -1
  411. package/src/lib/core/helmet.ts +0 -5
  412. package/src/lib/core/icons.tsx +0 -1
  413. package/src/lib/core/router.tsx +0 -1
  414. package/src/lib/plugins/index.ts +0 -4
  415. package/src/lib/plugins/openapi/worker/shared-worker.ts +0 -5
  416. /package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +0 -0
  417. /package/dist/lib/plugins/openapi/{worker → client}/worker.d.ts +0 -0
@@ -1,33 +1,89 @@
1
- var De = Object.defineProperty;
2
- var se = (t) => {
1
+ var Re = Object.defineProperty;
2
+ var ae = (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 He = (t, e, s) => e in t ? Re(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
+ var g = (t, e, s) => He(t, typeof e != "symbol" ? e + "" : e, s), ne = (t, e, s) => e.has(t) || ae("Cannot " + s);
7
+ var i = (t, e, s) => (ne(t, e, "read from private field"), s ? s.call(t) : e.get(t)), v = (t, e, s) => e.has(t) ? ae("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), d = (t, e, s, a) => (ne(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
8
+ var I = (t, e, s, a) => ({
9
9
  set _(r) {
10
- u(t, e, r, s);
10
+ d(t, e, r, s);
11
11
  },
12
12
  get _() {
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 B, N as U, a as Le, b as Be, d as Ke, R as ze, L as Ve } from "./index-CPvRaBBB.js";
17
+ import { u as Ue, a as X, M as We, T as Xe, V as _e, C as Ge } from "./MdxComponents-C0R6zobS.js";
18
+ import { j as n } from "./jsx-runtime-SV6hXQua.js";
19
+ import { S as ge, h as ve, Q as Je, n as p, m as re, a as ie, b as j, e as Ye, c as Ze, d as $e, f as et, o as oe, r as le, g as tt, i as ce, p as ue, s as st, u as _, j as at, k as nt, l as rt, D as it } from "./DevPortalProvider-BMk-RCE0.js";
20
+ import { createContext as xe, Component as ot, createElement as he, isValidElement as lt, memo as ye, useEffect as T, useRef as K, useState as ct, forwardRef as ut, Suspense as be, useMemo as H, Fragment as ht } from "react";
21
+ import { A as dt, H as je, a as ft, M as mt, u as pt } from "./AnchorLink-ptdQk87q.js";
22
+ import { c as gt } from "./state-Ds_OxRHP.js";
23
+ import { M as vt } from "./index-BaOOUFsA.js";
24
+ import { u as xt } from "./hook-BzBeIPL4.js";
25
+ import { u as D, O as yt, a as bt } from "./index-DLS6fPwU.js";
26
+ import { R as Pe, T as we, C as Ce, S as jt } from "./Spinner-BG1JnYy0.js";
27
+ import { c as L } from "./cn-DpqTslo9.js";
28
+ import { c as G, i as W, j as Ne, a as Pt } from "./util-CCWvaWo7.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 ke = B("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 wt = B("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 Ct = B("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 Nt = B("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 y, fe, kt = (fe = class extends ge {
22
78
  constructor(e = {}) {
23
79
  super();
24
- m(this, x);
25
- this.config = e, u(this, x, /* @__PURE__ */ new Map());
80
+ v(this, y);
81
+ this.config = e, d(this, y, /* @__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 ?? ve(r, s);
29
85
  let l = this.get(o);
30
- return l || (l = new Te({
86
+ return l || (l = new Je({
31
87
  cache: this,
32
88
  queryKey: r,
33
89
  queryHash: o,
@@ -37,14 +93,14 @@ var x, de, dt = (de = class extends me {
37
93
  }), this.add(l)), l;
38
94
  }
39
95
  add(e) {
40
- i(this, x).has(e.queryHash) || (i(this, x).set(e.queryHash, e), this.notify({
96
+ i(this, y).has(e.queryHash) || (i(this, y).set(e.queryHash, e), this.notify({
41
97
  type: "added",
42
98
  query: e
43
99
  }));
44
100
  }
45
101
  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 }));
102
+ const s = i(this, y).get(e.queryHash);
103
+ s && (e.destroy(), s === e && i(this, y).delete(e.queryHash), this.notify({ type: "removed", query: e }));
48
104
  }
49
105
  clear() {
50
106
  p.batch(() => {
@@ -54,20 +110,20 @@ var x, de, dt = (de = class extends me {
54
110
  });
55
111
  }
56
112
  get(e) {
57
- return i(this, x).get(e);
113
+ return i(this, y).get(e);
58
114
  }
59
115
  getAll() {
60
- return [...i(this, x).values()];
116
+ return [...i(this, y).values()];
61
117
  }
62
118
  find(e) {
63
119
  const s = { exact: !0, ...e };
64
120
  return this.getAll().find(
65
- (a) => ne(s, a)
121
+ (a) => re(s, a)
66
122
  );
67
123
  }
68
124
  findAll(e = {}) {
69
125
  const s = this.getAll();
70
- return Object.keys(e).length > 0 ? s.filter((a) => ne(e, a)) : s;
126
+ return Object.keys(e).length > 0 ? s.filter((a) => re(e, a)) : s;
71
127
  }
72
128
  notify(e) {
73
129
  p.batch(() => {
@@ -90,43 +146,43 @@ var x, de, dt = (de = class extends me {
90
146
  });
91
147
  });
92
148
  }
93
- }, x = new WeakMap(), de), f, S, fe, ft = (fe = class extends me {
149
+ }, y = new WeakMap(), fe), m, S, me, Mt = (me = class extends ge {
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, m);
153
+ v(this, S);
154
+ this.config = e, d(this, m, /* @__PURE__ */ new Map()), d(this, S, Date.now());
99
155
  }
100
156
  build(e, s, a) {
101
- const r = new Ie({
157
+ const r = new vt({
102
158
  mutationCache: this,
103
- mutationId: ++F(this, S)._,
159
+ mutationId: ++I(this, S)._,
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 = F(e), a = i(this, m).get(s) ?? [];
167
+ a.push(e), i(this, m).set(s, a), this.notify({ type: "added", mutation: e });
112
168
  }
113
169
  remove(e) {
114
170
  var a;
115
- const s = R(e);
116
- if (i(this, f).has(s)) {
117
- const r = (a = i(this, f).get(s)) == null ? void 0 : a.filter((o) => o !== e);
118
- r && (r.length === 0 ? i(this, f).delete(s) : i(this, f).set(s, r));
171
+ const s = F(e);
172
+ if (i(this, m).has(s)) {
173
+ const r = (a = i(this, m).get(s)) == null ? void 0 : a.filter((o) => o !== e);
174
+ r && (r.length === 0 ? i(this, m).delete(s) : i(this, m).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, m).get(F(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, m).get(F(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() {
@@ -137,16 +193,16 @@ var x, de, dt = (de = class extends me {
137
193
  });
138
194
  }
139
195
  getAll() {
140
- return [...i(this, f).values()].flat();
196
+ return [...i(this, m).values()].flat();
141
197
  }
142
198
  find(e) {
143
199
  const s = { exact: !0, ...e };
144
200
  return this.getAll().find(
145
- (a) => re(s, a)
201
+ (a) => ie(s, a)
146
202
  );
147
203
  }
148
204
  findAll(e = {}) {
149
- return this.getAll().filter((s) => re(e, s));
205
+ return this.getAll().filter((s) => ie(e, s));
150
206
  }
151
207
  notify(e) {
152
208
  p.batch(() => {
@@ -163,64 +219,64 @@ var x, de, dt = (de = class extends me {
163
219
  )
164
220
  );
165
221
  }
166
- }, f = new WeakMap(), S = new WeakMap(), fe);
167
- function R(t) {
222
+ }, m = new WeakMap(), S = new WeakMap(), me);
223
+ function F(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 Ot(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 J, Y, Z, $, ee;
232
+ const r = e.options, o = (Z = (Y = (J = e.fetchOptions) == null ? void 0 : J.meta) == null ? void 0 : Y.fetchMore) == null ? void 0 : Z.direction, l = (($ = e.state.data) == null ? void 0 : $.pages) || [], c = ((ee = e.state.data) == null ? void 0 : ee.pageParams) || [], h = { pages: [], pageParams: [] };
177
233
  let b = !1;
178
- const d = (v) => {
179
- Object.defineProperty(v, "signal", {
234
+ const f = (x) => {
235
+ Object.defineProperty(x, "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
+ }, Ie = Ye(e.options, e.fetchOptions), z = async (x, 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 && x.pages.length)
245
+ return Promise.resolve(x);
246
+ const q = {
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(q);
253
+ const Fe = await Ie(
254
+ q
255
+ ), { maxPages: te } = e.options, se = k ? Ze : $e;
200
256
  return {
201
- pages: te(v.pages, qe, ee),
202
- pageParams: te(v.pageParams, w, ee)
257
+ pages: se(x.pages, Fe, te),
258
+ pageParams: se(x.pageParams, P, te)
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 x = o === "backward", P = x ? At : de, k = {
208
264
  pages: l,
209
- pageParams: h
210
- }, I = w(r, O);
211
- A = await B(O, I, v);
265
+ pageParams: c
266
+ }, q = P(r, k);
267
+ M = await z(k, q, x);
212
268
  } else {
213
- A = await B(
214
- g,
215
- h[0] ?? r.initialPageParam
269
+ M = await z(
270
+ h,
271
+ c[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 x = t ?? l.length;
274
+ for (let P = 1; P < x; P++) {
275
+ const k = de(r, M);
276
+ M = await z(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;
@@ -238,7 +294,7 @@ function pt(t) {
238
294
  }
239
295
  };
240
296
  }
241
- function he(t, { pages: e, pageParams: s }) {
297
+ function de(t, { pages: e, pageParams: s }) {
242
298
  const a = e.length - 1;
243
299
  return t.getNextPageParam(
244
300
  e[a],
@@ -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 At(t, { pages: e, pageParams: s }) {
251
307
  var a;
252
308
  return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
253
309
  t,
@@ -257,65 +313,65 @@ 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 u, w, C, O, A, N, E, Q, pe, Et = (pe = 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, u);
319
+ v(this, w);
320
+ v(this, C);
321
+ v(this, O);
322
+ v(this, A);
323
+ v(this, N);
324
+ v(this, E);
325
+ v(this, Q);
326
+ d(this, u, t.queryCache || new kt()), d(this, w, t.mutationCache || new Mt()), d(this, C, t.defaultOptions || {}), d(this, O, /* @__PURE__ */ new Map()), d(this, A, /* @__PURE__ */ new Map()), d(this, N, 0);
271
327
  }
272
328
  mount() {
273
- F(this, k)._++, i(this, k) === 1 && (u(this, Q, Le.subscribe(async (t) => {
274
- t && (await this.resumePausedMutations(), i(this, c).onFocus());
275
- })), u(this, q, ie.subscribe(async (t) => {
276
- t && (await this.resumePausedMutations(), i(this, c).onOnline());
329
+ I(this, N)._++, i(this, N) === 1 && (d(this, E, et.subscribe(async (t) => {
330
+ t && (await this.resumePausedMutations(), i(this, u).onFocus());
331
+ })), d(this, Q, oe.subscribe(async (t) => {
332
+ t && (await this.resumePausedMutations(), i(this, u).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
+ I(this, N)._--, i(this, N) === 0 && ((t = i(this, E)) == null || t.call(this), d(this, E, void 0), (e = i(this, Q)) == null || e.call(this), d(this, Q, void 0));
282
338
  }
283
339
  isFetching(t) {
284
- return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
340
+ return i(this, u).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;
291
347
  const e = this.defaultQueryOptions({ queryKey: t });
292
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state.data;
348
+ return (s = i(this, u).get(e.queryHash)) == null ? void 0 : s.state.data;
293
349
  }
294
350
  ensureQueryData(t) {
295
351
  const e = this.getQueryData(t.queryKey);
296
352
  if (e === void 0)
297
353
  return this.fetchQuery(t);
298
354
  {
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);
355
+ const s = this.defaultQueryOptions(t), a = i(this, u).build(this, s);
356
+ return t.revalidateIfStale && a.isStaleByTime(le(s.staleTime, a)) && this.prefetchQuery(s), Promise.resolve(e);
301
357
  }
302
358
  }
303
359
  getQueriesData(t) {
304
- return i(this, c).findAll(t).map(({ queryKey: e, state: s }) => {
360
+ return i(this, u).findAll(t).map(({ queryKey: e, state: s }) => {
305
361
  const a = s.data;
306
362
  return [e, a];
307
363
  });
308
364
  }
309
365
  setQueryData(t, e, s) {
310
- const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
366
+ const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, u).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 = tt(e, o);
313
369
  if (l !== void 0)
314
- return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
370
+ return i(this, u).build(this, a).setData(l, { ...s, manual: !0 });
315
371
  }
316
372
  setQueriesData(t, e, s) {
317
373
  return p.batch(
318
- () => i(this, c).findAll(t).map(({ queryKey: a }) => [
374
+ () => i(this, u).findAll(t).map(({ queryKey: a }) => [
319
375
  a,
320
376
  this.setQueryData(a, e, s)
321
377
  ])
@@ -324,10 +380,10 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
324
380
  getQueryState(t) {
325
381
  var s;
326
382
  const e = this.defaultQueryOptions({ queryKey: t });
327
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state;
383
+ return (s = i(this, u).get(e.queryHash)) == null ? void 0 : s.state;
328
384
  }
329
385
  removeQueries(t) {
330
- const e = i(this, c);
386
+ const e = i(this, u);
331
387
  p.batch(() => {
332
388
  e.findAll(t).forEach((s) => {
333
389
  e.remove(s);
@@ -335,7 +391,7 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
335
391
  });
336
392
  }
337
393
  resetQueries(t, e) {
338
- const s = i(this, c), a = {
394
+ const s = i(this, u), a = {
339
395
  type: "active",
340
396
  ...t
341
397
  };
@@ -345,13 +401,13 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
345
401
  }
346
402
  cancelQueries(t = {}, e = {}) {
347
403
  const s = { revert: !0, ...e }, a = p.batch(
348
- () => i(this, c).findAll(t).map((r) => r.cancel(s))
404
+ () => i(this, u).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
409
  return p.batch(() => {
354
- if (i(this, c).findAll(t).forEach((a) => {
410
+ if (i(this, u).findAll(t).forEach((a) => {
355
411
  a.invalidate();
356
412
  }), t.refetchType === "none")
357
413
  return Promise.resolve();
@@ -367,7 +423,7 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
367
423
  ...e,
368
424
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
369
425
  }, a = p.batch(
370
- () => i(this, c).findAll(t).filter((r) => !r.isDisabled()).map((r) => {
426
+ () => i(this, u).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;
373
429
  })
@@ -377,106 +433,196 @@ var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
377
433
  fetchQuery(t) {
378
434
  const e = this.defaultQueryOptions(t);
379
435
  e.retry === void 0 && (e.retry = !1);
380
- const s = i(this, c).build(this, e);
436
+ const s = i(this, u).build(this, e);
381
437
  return s.isStaleByTime(
382
- oe(e.staleTime, s)
438
+ le(e.staleTime, s)
383
439
  ) ? s.fetch(e) : Promise.resolve(s.state.data);
384
440
  }
385
441
  prefetchQuery(t) {
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 = Ot(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 oe.isOnline() ? i(this, w).resumePausedMutations() : Promise.resolve();
396
452
  }
397
453
  getQueryCache() {
398
- return i(this, c);
454
+ return i(this, u);
399
455
  }
400
456
  getMutationCache() {
401
- return i(this, P);
457
+ return i(this, w);
402
458
  }
403
459
  getDefaultOptions() {
404
- return i(this, N);
460
+ return i(this, C);
405
461
  }
406
462
  setDefaultOptions(t) {
407
- u(this, N, t);
463
+ d(this, C, t);
408
464
  }
409
465
  setQueryDefaults(t, e) {
410
- i(this, C).set(le(t), {
466
+ i(this, O).set(ce(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
- ce(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
475
+ ue(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(ce(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
- ce(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
488
+ ue(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
433
489
  }), s;
434
490
  }
435
491
  defaultQueryOptions(t) {
436
492
  if (t._defaulted)
437
493
  return t;
438
494
  const e = {
439
- ...i(this, N).queries,
495
+ ...i(this, C).queries,
440
496
  ...this.getQueryDefaults(t.queryKey),
441
497
  ...t,
442
498
  _defaulted: !0
443
499
  };
444
- return e.queryHash || (e.queryHash = ge(
500
+ return e.queryHash || (e.queryHash = ve(
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 === st && (e.enabled = !1), e;
448
504
  }
449
505
  defaultMutationOptions(t) {
450
506
  return t != null && t._defaulted ? t : {
451
- ...i(this, N).mutations,
507
+ ...i(this, C).mutations,
452
508
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
453
509
  ...t,
454
510
  _defaulted: !0
455
511
  };
456
512
  }
457
513
  clear() {
458
- i(this, c).clear(), i(this, P).clear();
514
+ i(this, u).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
+ }, u = new WeakMap(), w = new WeakMap(), C = new WeakMap(), O = new WeakMap(), A = new WeakMap(), N = new WeakMap(), E = new WeakMap(), Q = new WeakMap(), pe);
517
+ const Qt = xe(null), V = {
518
+ didCatch: !1,
519
+ error: null
520
+ };
521
+ class Dt extends ot {
463
522
  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));
523
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = V;
524
+ }
525
+ static getDerivedStateFromError(e) {
526
+ return {
527
+ didCatch: !0,
528
+ error: e
529
+ };
530
+ }
531
+ resetErrorBoundary() {
532
+ const {
533
+ error: e
534
+ } = this.state;
535
+ if (e !== null) {
536
+ for (var s, a, r = arguments.length, o = new Array(r), l = 0; l < r; l++)
537
+ o[l] = arguments[l];
538
+ (s = (a = this.props).onReset) === null || s === void 0 || s.call(a, {
539
+ args: o,
540
+ reason: "imperative-api"
541
+ }), this.setState(V);
542
+ }
543
+ }
544
+ componentDidCatch(e, s) {
545
+ var a, r;
546
+ (a = (r = this.props).onError) === null || a === void 0 || a.call(r, e, s);
547
+ }
548
+ componentDidUpdate(e, s) {
549
+ const {
550
+ didCatch: a
551
+ } = this.state, {
552
+ resetKeys: r
553
+ } = this.props;
554
+ if (a && s.error !== null && St(e.resetKeys, r)) {
555
+ var o, l;
556
+ (o = (l = this.props).onReset) === null || o === void 0 || o.call(l, {
557
+ next: r,
558
+ prev: e.resetKeys,
559
+ reason: "keys"
560
+ }), this.setState(V);
561
+ }
562
+ }
563
+ render() {
564
+ const {
565
+ children: e,
566
+ fallbackRender: s,
567
+ FallbackComponent: a,
568
+ fallback: r
569
+ } = this.props, {
570
+ didCatch: o,
571
+ error: l
572
+ } = this.state;
573
+ let c = e;
574
+ if (o) {
575
+ const h = {
576
+ error: l,
577
+ resetErrorBoundary: this.resetErrorBoundary
578
+ };
579
+ if (typeof s == "function")
580
+ c = s(h);
581
+ else if (a)
582
+ c = he(a, h);
583
+ else if (r === null || lt(r))
584
+ c = r;
585
+ else
586
+ throw l;
587
+ }
588
+ return he(Qt.Provider, {
589
+ value: {
590
+ didCatch: o,
591
+ error: l,
592
+ resetErrorBoundary: this.resetErrorBoundary
593
+ }
594
+ }, c);
595
+ }
596
+ }
597
+ function St() {
598
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
599
+ return t.length !== e.length || t.some((s, a) => !Object.is(s, e[a]));
600
+ }
601
+ const Me = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Tt = (t) => "initialize" in t && typeof t.initialize == "function", qt = (t) => "getHead" in t && typeof t.getHead == "function", It = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Oe = new Et(), Ft = gt(() => ({}));
602
+ class Rt {
603
+ constructor(e) {
604
+ g(this, "plugins", []);
605
+ g(this, "navigationPlugins");
606
+ g(this, "navigation");
607
+ g(this, "meta");
608
+ g(this, "page");
609
+ g(this, "authentication");
610
+ g(this, "state");
611
+ g(this, "initialize", async () => {
612
+ await Promise.all([
613
+ this.plugins.filter(Tt).map((e) => {
614
+ var s;
615
+ return (s = e.initialize) == null ? void 0 : s.call(e, this);
616
+ })
617
+ ]);
472
618
  });
473
- y(this, "invalidateCache", async (e) => {
474
- await Ne.invalidateQueries({ queryKey: e });
619
+ g(this, "invalidateCache", async (e) => {
620
+ await Oe.invalidateQueries({ queryKey: e });
475
621
  });
476
- y(this, "getApiIdentities", async () => (await Promise.all(
477
- this.plugins.filter(yt).map((s) => s.getIdentities(this))
622
+ g(this, "getApiIdentities", async () => (await Promise.all(
623
+ this.plugins.filter(It).map((s) => s.getIdentities(this))
478
624
  )).flat());
479
- y(this, "getNavigation", async (e) => (await Promise.all(
625
+ g(this, "getNavigation", async (e) => (await Promise.all(
480
626
  this.navigationPlugins.map(
481
627
  async (a) => {
482
628
  var r;
@@ -484,7 +630,7 @@ class bt {
484
630
  }
485
631
  )
486
632
  )).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;
633
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Me), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = Ft;
488
634
  }
489
635
  async signRequest(e) {
490
636
  if (!this.authentication)
@@ -493,86 +639,23 @@ class bt {
493
639
  return e.headers.set("Authorization", `Bearer ${s}`), e;
494
640
  }
495
641
  }
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,
642
+ function Ae({ error: t }) {
643
+ const e = (t == null ? void 0 : t.message) ?? "Something went wrong", s = t == null ? void 0 : t.stack;
644
+ return /* @__PURE__ */ n.jsx("div", { className: "flex h-screen max-h-screen min-h-full items-center justify-center bg-primary-background px-4 py-16 lg:px-8", children: /* @__PURE__ */ n.jsxs("div", { className: "mx-auto max-w-[85%] sm:max-w-[50%]", children: [
645
+ /* @__PURE__ */ n.jsx("h1", { className: "text-4xl font-bold tracking-tight text-h1-text sm:text-5xl", children: "Something went wrong" }),
646
+ /* @__PURE__ */ n.jsx("p", { className: "mt-5 text-h1-text", children: e }),
647
+ s ? /* @__PURE__ */ n.jsx("pre", { className: "mt-5 max-h-[400px] w-full overflow-scroll rounded-md border border-input-border bg-input-background p-3 text-property-name-text text-red-700", children: s }) : null
648
+ ] }) });
649
+ }
650
+ function Ht({ error: t, resetErrorBoundary: e }) {
651
+ return /* @__PURE__ */ n.jsx(Ae, { error: t });
652
+ }
653
+ const Lt = () => {
654
+ const { navigation: t } = _();
655
+ 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(
656
+ U,
574
657
  {
575
- className: ({ isActive: s }) => _e(
658
+ className: ({ isActive: s }) => Le(
576
659
  "block py-3.5 font-medium -mb-px border-b-2",
577
660
  s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
578
661
  ),
@@ -580,28 +663,22 @@ const Nt = E("Sun", [
580
663
  children: e.label
581
664
  }
582
665
  ) }, 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;
666
+ }, Ee = ye(function() {
667
+ const [e, s] = Ue(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: c } = xt(), { page: h } = _(), b = e ? Ct : Nt;
585
668
  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
669
  /* @__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
670
  /* @__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 })
671
+ (h == null ? void 0 : h.logo) && /* @__PURE__ */ n.jsx("img", { src: h.logo, alt: h.pageTitle, className: "h-10" }),
672
+ /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: h == null ? void 0 : h.pageTitle })
590
673
  ] }),
591
674
  /* @__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
- ] }) }),
675
+ /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
599
676
  /* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
600
677
  o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
601
678
  "button",
602
679
  {
603
680
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
604
- onClick: h,
681
+ onClick: c,
605
682
  children: [
606
683
  "Logout ",
607
684
  r != null && r.email ? `(${r.email})` : null
@@ -626,12 +703,12 @@ const Nt = E("Sun", [
626
703
  ] })
627
704
  ] })
628
705
  ] }),
629
- /* @__PURE__ */ n.jsx(Ot, {})
706
+ /* @__PURE__ */ n.jsx(Lt, {})
630
707
  ] }) });
631
- }), Ae = {
632
- Header: Oe
633
- }, At = ot(Ae), Ct = At.Provider, Mt = () => {
634
- const t = D(), { setActiveAnchor: e } = W();
708
+ }), Qe = {
709
+ Header: Ee
710
+ }, Bt = xe(Qe), Kt = Bt.Provider, zt = () => {
711
+ const t = D(), { setActiveAnchor: e } = X();
635
712
  T(() => {
636
713
  if (!t.hash) return;
637
714
  const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
@@ -642,26 +719,26 @@ const Nt = E("Sun", [
642
719
  return;
643
720
  }
644
721
  const r = new MutationObserver((o, l) => {
645
- const h = document.getElementById(decodeURIComponent(s));
646
- h && (h.scrollIntoView(), requestIdleCallback(() => e(s)), l.disconnect());
722
+ const c = document.getElementById(decodeURIComponent(s));
723
+ c && (c.scrollIntoView(), requestIdleCallback(() => e(s)), l.disconnect());
647
724
  });
648
725
  return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
649
726
  }, [t.hash, e]);
650
- }, Qt = () => {
651
- const t = D(), e = _(t.pathname);
727
+ }, Vt = () => {
728
+ const t = D(), e = K(t.pathname);
652
729
  T(() => {
653
730
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
654
731
  }, [t.pathname]);
655
- }, Ce = ({
732
+ }, De = ({
656
733
  item: t,
657
734
  defaultOpen: e,
658
735
  path: s
659
736
  }) => {
660
- const [a, r] = lt(e), o = D(), l = _(o.pathname);
737
+ const [a, r] = ct(e), o = D(), l = K(o.pathname);
661
738
  return T(() => {
662
- !a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
739
+ !a && l.current !== o.pathname && r(G(t, o.pathname, s)), l.current = o.pathname;
663
740
  }, [a, t, s, o.pathname]), [a, r];
664
- }, H = We(
741
+ }, R = Be(
665
742
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
666
743
  {
667
744
  variants: {
@@ -675,38 +752,38 @@ const Nt = E("Sun", [
675
752
  }
676
753
  }
677
754
  }
678
- ), qt = "data-anchor", Me = ({
755
+ ), Ut = "data-anchor", Se = ({
679
756
  category: t,
680
757
  item: e,
681
758
  activeAnchor: s,
682
759
  currentTopNavItem: a,
683
760
  basePath: r = ""
684
761
  }) => {
685
- const o = U(e) ? ve(r, e.path) : "", l = D(), [h, g] = Ce({
762
+ const o = W(e) ? Ne(r, e.path) : "", l = D(), [c, h] = De({
686
763
  item: e,
687
764
  path: o,
688
- defaultOpen: () => X(e, l.pathname, o)
765
+ defaultOpen: () => G(e, l.pathname, o)
689
766
  });
690
- if (Ve(e)) {
691
- const d = z(
767
+ if (Pt(e)) {
768
+ const f = L(
692
769
  "flex items-center gap-2",
693
- H({
770
+ R({
694
771
  isActive: e.href === l.pathname
695
772
  })
696
773
  );
697
774
  return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
698
775
  "a",
699
776
  {
700
- className: d,
777
+ className: f,
701
778
  href: e.href,
702
779
  target: "_blank",
703
780
  rel: "noopener noreferrer",
704
781
  children: [
705
782
  e.label,
706
- /* @__PURE__ */ n.jsx(jt, { size: 14 })
783
+ /* @__PURE__ */ n.jsx(wt, { size: 14 })
707
784
  ]
708
785
  }
709
- ) : /* @__PURE__ */ n.jsx(V, { className: d, to: e.href, children: e.label });
786
+ ) : /* @__PURE__ */ n.jsx(U, { className: f, to: e.href, children: e.label });
710
787
  }
711
788
  const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
712
789
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
@@ -722,72 +799,72 @@ const Nt = E("Sun", [
722
799
  )
723
800
  ] });
724
801
  return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
725
- ye,
802
+ Pe,
726
803
  {
727
- open: h,
728
- onOpenChange: () => g((d) => !d),
804
+ open: c,
805
+ onOpenChange: () => h((f) => !f),
729
806
  className: "flex flex-col",
730
807
  children: [
731
808
  /* @__PURE__ */ n.jsx(
732
- xe,
809
+ we,
733
810
  {
734
- className: z(
811
+ className: L(
735
812
  "group text-start",
736
- H({ isActive: !1 })
813
+ R({ isActive: !1 })
737
814
  ),
738
815
  children: b
739
816
  }
740
817
  ),
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,
818
+ /* @__PURE__ */ n.jsx(Ce, { 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(
819
+ Se,
743
820
  {
744
821
  category: t,
745
- item: d,
822
+ item: f,
746
823
  activeAnchor: s,
747
824
  currentTopNavItem: a,
748
825
  basePath: o
749
826
  },
750
- U(d) ? d.path : d.href
827
+ W(f) ? f.path : f.href
751
828
  )) }) })
752
829
  ]
753
830
  }
754
831
  ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
755
- Ue,
832
+ dt,
756
833
  {
757
834
  to: e.path,
758
- [qt]: e.path,
759
- className: H({
835
+ [Ut]: e.path,
836
+ className: R({
760
837
  isActive: e.path.slice(1) === s,
761
838
  isMuted: e.muted
762
839
  }),
763
840
  children: b
764
841
  }
765
842
  ) : /* @__PURE__ */ n.jsx(
766
- V,
843
+ U,
767
844
  {
768
- className: ({ isActive: d }) => H({ isActive: d }),
845
+ className: ({ isActive: f }) => R({ isActive: f }),
769
846
  to: o,
770
847
  children: b
771
848
  }
772
849
  ) });
773
- }, Dt = ({
850
+ }, Wt = ({
774
851
  category: t
775
852
  }) => {
776
- const { activeAnchor: e } = W(), s = Xe(), a = D(), r = t.collapsible ?? !0, [o, l] = Ce({
853
+ const { activeAnchor: e } = X(), s = at(), a = D(), r = t.collapsible ?? !0, [o, l] = De({
777
854
  item: t,
778
855
  path: (s == null ? void 0 : s.path) ?? "",
779
- defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
856
+ defaultOpen: () => !r || t.expanded || G(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
780
857
  });
781
858
  return /* @__PURE__ */ n.jsxs(
782
- ye,
859
+ Pe,
783
860
  {
784
861
  open: o,
785
- onOpenChange: () => l((h) => !h),
862
+ onOpenChange: () => l((c) => !c),
786
863
  children: [
787
- t.label.length > 0 ? /* @__PURE__ */ n.jsx(xe, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
864
+ t.label.length > 0 ? /* @__PURE__ */ n.jsx(we, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
788
865
  "h5",
789
866
  {
790
- className: z(
867
+ className: L(
791
868
  "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
869
  r ? "hover:bg-accent" : "cursor-auto"
793
870
  ),
@@ -803,27 +880,27 @@ const Nt = E("Sun", [
803
880
  ]
804
881
  }
805
882
  ) }) : "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,
883
+ /* @__PURE__ */ n.jsx(Ce, { 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((c) => /* @__PURE__ */ n.jsx(
884
+ Se,
808
885
  {
809
886
  category: t,
810
- item: h,
887
+ item: c,
811
888
  activeAnchor: e,
812
889
  currentTopNavItem: s,
813
- basePath: ve(s == null ? void 0 : s.path, t.path)
890
+ basePath: Ne(s == null ? void 0 : s.path, t.path)
814
891
  },
815
- U(h) ? h.path + h.label : h.href
892
+ W(c) ? c.path + c.label : c.href
816
893
  )) }) })
817
894
  ]
818
895
  },
819
896
  t.label
820
897
  );
821
- }, St = ct(function({ children: e, className: s, pushMainContent: a }, r) {
898
+ }, Xt = ut(function({ children: e, className: s, pushMainContent: a }, r) {
822
899
  return /* @__PURE__ */ n.jsx(
823
900
  "nav",
824
901
  {
825
902
  "data-navigation": String(a),
826
- className: z(
903
+ className: L(
827
904
  "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
905
  s
829
906
  ),
@@ -831,43 +908,42 @@ const Nt = E("Sun", [
831
908
  children: e
832
909
  }
833
910
  );
834
- }), Et = () => {
835
- const t = _(null), e = $e();
911
+ }), _t = () => {
912
+ const t = K(null), e = nt();
836
913
  return /* @__PURE__ */ n.jsx(
837
- St,
914
+ Xt,
838
915
  {
839
916
  ref: t,
840
917
  pushMainContent: e.data.items.length > 0,
841
- children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Dt, { category: s }, s.label))
918
+ children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Wt, { category: s }, s.label))
842
919
  }
843
920
  );
844
- }, ue = ({ children: t }) => {
845
- const e = D(), { setActiveAnchor: s } = W(), { meta: a } = K();
846
- Mt(), Qt();
847
- const r = _(e.pathname);
921
+ }, Te = ({ children: t }) => {
922
+ const e = D(), { setActiveAnchor: s } = X(), { meta: a } = _();
923
+ zt(), Vt();
924
+ const r = K(e.pathname);
848
925
  return T(() => {
849
926
  e.pathname !== r.current && s(""), r.current = e.pathname;
850
927
  }, [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" }),
928
+ /* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.title, children: [
853
929
  (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
854
930
  (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
855
931
  ] }),
856
- /* @__PURE__ */ n.jsx(Oe, {}),
932
+ /* @__PURE__ */ n.jsx(Ee, {}),
857
933
  /* @__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,
934
+ be,
859
935
  {
860
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Je, {}) }),
936
+ fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(jt, {}) }),
861
937
  children: [
862
- /* @__PURE__ */ n.jsx(Et, {}),
938
+ /* @__PURE__ */ n.jsx(_t, {}),
863
939
  /* @__PURE__ */ n.jsx(
864
940
  "main",
865
941
  {
866
- className: `dark:border-white/10 translate-x-0
942
+ className: `dark:border-white/10 translate-x-0 h-full
867
943
  lg:overflow-visible
868
944
  lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
869
945
  lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
870
- children: t ?? /* @__PURE__ */ n.jsx(Ee, {})
946
+ children: t ?? /* @__PURE__ */ n.jsx(yt, {})
871
947
  }
872
948
  )
873
949
  ]
@@ -875,51 +951,70 @@ const Nt = E("Sun", [
875
951
  ) })
876
952
  ] });
877
953
  };
878
- function Tt({ plugins: t }) {
879
- const e = L(() => {
954
+ function Gt() {
955
+ const t = bt();
956
+ return /* @__PURE__ */ n.jsx(Te, { children: /* @__PURE__ */ n.jsx(Ae, { error: t }) });
957
+ }
958
+ function Jt({ plugins: t }) {
959
+ const e = H(() => {
880
960
  const s = (t ?? []).flatMap(
881
- (a) => Pe(a) ? a.getRoutes() : []
961
+ (a) => Me(a) ? a.getRoutes() : []
882
962
  );
883
- return Ye([
963
+ return Ke([
884
964
  {
885
965
  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" }) }),
966
+ element: /* @__PURE__ */ n.jsx(Te, {}),
967
+ errorElement: /* @__PURE__ */ n.jsx(Gt, {}),
888
968
  children: s
889
969
  }
890
970
  ]);
891
971
  }, [t]);
892
- return /* @__PURE__ */ n.jsx(Ze, { router: e });
972
+ return /* @__PURE__ */ n.jsx(ze, { router: e });
893
973
  }
894
- const It = (t) => {
895
- const e = L(
896
- () => ({ ...Ae, ...t.overrides }),
974
+ const Yt = (t) => {
975
+ var o;
976
+ const e = H(
977
+ () => ({ ...Qe, ...t.overrides }),
897
978
  [t.overrides]
898
- ), s = L(
899
- () => ({ ...et, ...t.mdxComponents }),
979
+ ), s = H(
980
+ () => ({ ...We, ...t.mdxComponents }),
900
981
  [t.mdxComponents]
901
- ), a = L(() => new bt(t), [t]);
902
- return T(() => {
982
+ ), a = H(() => new Rt(t), [t]);
983
+ T(() => {
903
984
  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";
985
+ }, [a]);
986
+ const r = (o = t.plugins) == null ? void 0 : o.filter(qt).map((l, c) => {
987
+ var h;
988
+ return /* @__PURE__ */ n.jsx(ht, { children: (h = l.getHead) == null ? void 0 : h.call(l) }, c);
989
+ });
990
+ return /* @__PURE__ */ n.jsx(rt, { client: Oe, children: /* @__PURE__ */ n.jsxs(ft, { children: [
991
+ /* @__PURE__ */ n.jsx(je, { children: r }),
992
+ /* @__PURE__ */ n.jsx(it, { value: a, children: /* @__PURE__ */ n.jsx(mt, { components: s, children: /* @__PURE__ */ n.jsx(Xe, { children: /* @__PURE__ */ n.jsx(Kt, { value: e, children: /* @__PURE__ */ n.jsx(_e, { children: /* @__PURE__ */ n.jsx(
993
+ be,
994
+ {
995
+ fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
996
+ children: /* @__PURE__ */ n.jsx(
997
+ Jt,
998
+ {
999
+ plugins: [
1000
+ ...t.plugins ?? [],
1001
+ ...t.authentication ? [t.authentication] : []
1002
+ ]
1003
+ }
1004
+ )
1005
+ }
1006
+ ) }) }) }) }) })
1007
+ ] }) });
1008
+ }, qe = (t) => {
1009
+ const e = ye(Yt);
1010
+ return /* @__PURE__ */ n.jsx(Dt, { FallbackComponent: Ht, children: /* @__PURE__ */ n.jsx(e, { ...t }) });
1011
+ };
1012
+ qe.displayName = "DevPortal";
1013
+ const ds = pt, fs = Ge, ms = qe, ps = Ve;
921
1014
  export {
922
- Ft as DevPortal,
923
- Vt as Link,
924
- Ut as useMDXComponents
1015
+ fs as Callout,
1016
+ ms as DevPortal,
1017
+ ps as Link,
1018
+ ds as useMDXComponents
925
1019
  };
1020
+ //# sourceMappingURL=zudoku.components.js.map