zudoku 0.0.0-f49e3ea → 0.0.0-f52e8af

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 (1515) hide show
  1. package/README.md +1 -1
  2. package/cli.js +9 -0
  3. package/dist/app/ZuploBuildConfig.d.ts +155 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +1 -2
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +6 -0
  9. package/dist/app/entry.client.js +51 -15
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +9 -6
  12. package/dist/app/entry.server.js +14 -10
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +29 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +2 -2
  18. package/dist/app/main.js +37 -12
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/sentry.d.ts +3 -0
  21. package/dist/app/sentry.js +19 -0
  22. package/dist/app/sentry.js.map +1 -0
  23. package/dist/app/standalone.js +1 -2
  24. package/dist/app/standalone.js.map +1 -1
  25. package/dist/app/tailwind.d.ts +2 -1
  26. package/dist/app/tailwind.js +80 -48
  27. package/dist/app/tailwind.js.map +1 -1
  28. package/dist/cli/build/handler.d.ts +1 -3
  29. package/dist/cli/build/handler.js +9 -1
  30. package/dist/cli/build/handler.js.map +1 -1
  31. package/dist/cli/cli.js +17 -3
  32. package/dist/cli/cli.js.map +1 -1
  33. package/dist/cli/cmds/build.d.ts +11 -3
  34. package/dist/cli/cmds/build.js +21 -13
  35. package/dist/cli/cmds/build.js.map +1 -1
  36. package/dist/cli/cmds/dev.d.ts +1 -1
  37. package/dist/cli/cmds/dev.js +5 -0
  38. package/dist/cli/cmds/dev.js.map +1 -1
  39. package/dist/cli/cmds/preview.d.ts +16 -0
  40. package/dist/cli/cmds/preview.js +25 -0
  41. package/dist/cli/cmds/preview.js.map +1 -0
  42. package/dist/cli/common/logger.js +9 -0
  43. package/dist/cli/common/logger.js.map +1 -1
  44. package/dist/cli/common/machine-id/lib.js +1 -0
  45. package/dist/cli/common/machine-id/lib.js.map +1 -1
  46. package/dist/cli/common/outdated.js +2 -1
  47. package/dist/cli/common/outdated.js.map +1 -1
  48. package/dist/cli/common/output.js.map +1 -1
  49. package/dist/cli/common/utils/ports.d.ts +1 -1
  50. package/dist/cli/common/utils/ports.js +16 -15
  51. package/dist/cli/common/utils/ports.js.map +1 -1
  52. package/dist/cli/dev/handler.d.ts +1 -0
  53. package/dist/cli/dev/handler.js +15 -12
  54. package/dist/cli/dev/handler.js.map +1 -1
  55. package/dist/cli/preview/handler.d.ts +3 -0
  56. package/dist/cli/preview/handler.js +35 -0
  57. package/dist/cli/preview/handler.js.map +1 -0
  58. package/dist/config/common.d.ts +10 -0
  59. package/dist/config/common.js +2 -0
  60. package/dist/config/common.js.map +1 -0
  61. package/dist/config/config.d.ts +20 -16
  62. package/dist/config/loader.d.ts +6 -0
  63. package/dist/config/loader.js +65 -0
  64. package/dist/config/loader.js.map +1 -0
  65. package/dist/config/validators/BuildSchema.d.ts +60 -0
  66. package/dist/config/validators/BuildSchema.js +31 -0
  67. package/dist/config/validators/BuildSchema.js.map +1 -0
  68. package/dist/config/validators/InputSidebarSchema.d.ts +46 -30
  69. package/dist/config/validators/InputSidebarSchema.js +11 -1
  70. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  71. package/dist/config/validators/common.d.ts +8001 -0
  72. package/dist/config/validators/common.js +414 -0
  73. package/dist/config/validators/common.js.map +1 -0
  74. package/dist/config/validators/icon-types.d.ts +1 -0
  75. package/dist/config/validators/icon-types.js +2 -0
  76. package/dist/config/validators/icon-types.js.map +1 -0
  77. package/dist/config/validators/validate.d.ts +2008 -640
  78. package/dist/config/validators/validate.js +9 -228
  79. package/dist/config/validators/validate.js.map +1 -1
  80. package/dist/index.d.ts +3 -1
  81. package/dist/index.js +2 -0
  82. package/dist/index.js.map +1 -1
  83. package/dist/lib/MissingIcon.d.ts +2 -0
  84. package/dist/lib/MissingIcon.js +7 -0
  85. package/dist/lib/MissingIcon.js.map +1 -0
  86. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  87. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  88. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  89. package/dist/lib/authentication/authentication.d.ts +2 -1
  90. package/dist/lib/authentication/components/CallbackHandler.js +6 -2
  91. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  92. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  93. package/dist/lib/authentication/components/SignIn.js +5 -2
  94. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  95. package/dist/lib/authentication/components/SignOut.js +2 -2
  96. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  97. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  98. package/dist/lib/authentication/components/SignUp.js +4 -1
  99. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  100. package/dist/lib/authentication/hook.d.ts +1 -0
  101. package/dist/lib/authentication/hook.js +11 -1
  102. package/dist/lib/authentication/hook.js.map +1 -1
  103. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  104. package/dist/lib/authentication/providers/auth0.js +3 -2
  105. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  106. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  107. package/dist/lib/authentication/providers/clerk.js +63 -13
  108. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  109. package/dist/lib/authentication/providers/openid.d.ts +17 -9
  110. package/dist/lib/authentication/providers/openid.js +45 -26
  111. package/dist/lib/authentication/providers/openid.js.map +1 -1
  112. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  113. package/dist/lib/authentication/providers/supabase.js +117 -0
  114. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  115. package/dist/lib/authentication/state.d.ts +0 -17
  116. package/dist/lib/authentication/state.js +9 -7
  117. package/dist/lib/authentication/state.js.map +1 -1
  118. package/dist/lib/components/AnchorLink.d.ts +2 -2
  119. package/dist/lib/components/AnchorLink.js +9 -5
  120. package/dist/lib/components/AnchorLink.js.map +1 -1
  121. package/dist/lib/components/Autocomplete.d.ts +13 -0
  122. package/dist/lib/components/Autocomplete.js +47 -0
  123. package/dist/lib/components/Autocomplete.js.map +1 -0
  124. package/dist/lib/components/Banner.js +1 -1
  125. package/dist/lib/components/Banner.js.map +1 -1
  126. package/dist/lib/components/Bootstrap.d.ts +3 -3
  127. package/dist/lib/components/Bootstrap.js +12 -13
  128. package/dist/lib/components/Bootstrap.js.map +1 -1
  129. package/dist/lib/components/BuildCheck.d.ts +4 -0
  130. package/dist/lib/components/BuildCheck.js +38 -0
  131. package/dist/lib/components/BuildCheck.js.map +1 -0
  132. package/dist/lib/components/Footer.d.ts +1 -0
  133. package/dist/lib/components/Footer.js +32 -0
  134. package/dist/lib/components/Footer.js.map +1 -0
  135. package/dist/lib/components/Header.js +18 -10
  136. package/dist/lib/components/Header.js.map +1 -1
  137. package/dist/lib/components/Heading.d.ts +5 -5
  138. package/dist/lib/components/Heading.js +1 -1
  139. package/dist/lib/components/Heading.js.map +1 -1
  140. package/dist/lib/components/InlineCode.d.ts +2 -1
  141. package/dist/lib/components/InlineCode.js +2 -9
  142. package/dist/lib/components/InlineCode.js.map +1 -1
  143. package/dist/lib/components/Layout.js +9 -23
  144. package/dist/lib/components/Layout.js.map +1 -1
  145. package/dist/lib/components/Main.d.ts +2 -0
  146. package/dist/lib/components/Main.js +18 -0
  147. package/dist/lib/components/Main.js.map +1 -0
  148. package/dist/lib/components/Markdown.d.ts +4 -2
  149. package/dist/lib/components/Markdown.js +10 -14
  150. package/dist/lib/components/Markdown.js.map +1 -1
  151. package/dist/lib/components/MobileTopNavigation.js +6 -3
  152. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  153. package/dist/lib/components/NotFoundPage.js +1 -1
  154. package/dist/lib/components/NotFoundPage.js.map +1 -1
  155. package/dist/lib/components/Pagination.d.ts +11 -0
  156. package/dist/lib/components/Pagination.js +10 -0
  157. package/dist/lib/components/Pagination.js.map +1 -0
  158. package/dist/lib/components/PathRenderer.d.ts +11 -0
  159. package/dist/lib/components/PathRenderer.js +28 -0
  160. package/dist/lib/components/PathRenderer.js.map +1 -0
  161. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  162. package/dist/lib/components/ReactMarkdown.js +182 -0
  163. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  164. package/dist/lib/components/Search.d.ts +3 -1
  165. package/dist/lib/components/Search.js +9 -3
  166. package/dist/lib/components/Search.js.map +1 -1
  167. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  168. package/dist/lib/components/StatusPage.d.ts +7 -0
  169. package/dist/lib/components/StatusPage.js +71 -0
  170. package/dist/lib/components/StatusPage.js.map +1 -0
  171. package/dist/lib/components/ThemeSwitch.js +8 -5
  172. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  173. package/dist/lib/components/TopNavigation.d.ts +3 -2
  174. package/dist/lib/components/TopNavigation.js +30 -16
  175. package/dist/lib/components/TopNavigation.js.map +1 -1
  176. package/dist/lib/components/Zudoku.d.ts +1 -1
  177. package/dist/lib/components/Zudoku.js +13 -8
  178. package/dist/lib/components/Zudoku.js.map +1 -1
  179. package/dist/lib/components/cache.d.ts +13 -0
  180. package/dist/lib/components/cache.js +20 -0
  181. package/dist/lib/components/cache.js.map +1 -0
  182. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  183. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  184. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  185. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  186. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  187. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  188. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  189. package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
  190. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  191. package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
  192. package/dist/lib/components/context/ZudokuContext.js +20 -8
  193. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  194. package/dist/lib/components/index.d.ts +42 -17
  195. package/dist/lib/components/index.js +19 -4
  196. package/dist/lib/components/index.js.map +1 -1
  197. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  198. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  199. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  200. package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
  201. package/dist/lib/components/navigation/Sidebar.js +3 -7
  202. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  203. package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
  204. package/dist/lib/components/navigation/SidebarBadge.js +13 -11
  205. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  206. package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
  207. package/dist/lib/components/navigation/SidebarCategory.js +31 -22
  208. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  209. package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
  210. package/dist/lib/components/navigation/SidebarItem.js +19 -18
  211. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  212. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  213. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  214. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  215. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +6 -8
  216. package/dist/lib/components/navigation/Toc.js.map +1 -0
  217. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  218. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  219. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  220. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  221. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  222. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  223. package/dist/lib/components/navigation/utils.js +1 -1
  224. package/dist/lib/components/navigation/utils.js.map +1 -1
  225. package/dist/lib/core/RouteGuard.d.ts +2 -0
  226. package/dist/lib/core/RouteGuard.js +52 -0
  227. package/dist/lib/core/RouteGuard.js.map +1 -0
  228. package/dist/lib/core/ZudokuContext.d.ts +45 -8
  229. package/dist/lib/core/ZudokuContext.js +37 -12
  230. package/dist/lib/core/ZudokuContext.js.map +1 -1
  231. package/dist/lib/core/plugins.d.ts +21 -7
  232. package/dist/lib/core/plugins.js +3 -0
  233. package/dist/lib/core/plugins.js.map +1 -1
  234. package/dist/lib/errors/ErrorAlert.js +6 -1
  235. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  236. package/dist/lib/errors/RouterError.js +1 -1
  237. package/dist/lib/errors/RouterError.js.map +1 -1
  238. package/dist/lib/hooks/index.d.ts +3 -0
  239. package/dist/lib/hooks/index.js +5 -0
  240. package/dist/lib/hooks/index.js.map +1 -0
  241. package/dist/lib/hooks/useEvent.d.ts +11 -0
  242. package/dist/lib/hooks/useEvent.js +19 -0
  243. package/dist/lib/hooks/useEvent.js.map +1 -0
  244. package/dist/lib/hooks/useEvent.test.js +100 -0
  245. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  246. package/dist/lib/icons.d.ts +1 -0
  247. package/dist/lib/icons.js +1 -0
  248. package/dist/lib/icons.js.map +1 -1
  249. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  250. package/dist/lib/oas/graphql/circular.js +43 -0
  251. package/dist/lib/oas/graphql/circular.js.map +1 -0
  252. package/dist/lib/oas/graphql/index.d.ts +25 -1
  253. package/dist/lib/oas/graphql/index.js +213 -66
  254. package/dist/lib/oas/graphql/index.js.map +1 -1
  255. package/dist/lib/oas/parser/dereference/index.js +8 -3
  256. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  257. package/dist/lib/oas/parser/index.d.ts +8 -3
  258. package/dist/lib/oas/parser/index.js +7 -23
  259. package/dist/lib/oas/parser/index.js.map +1 -1
  260. package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
  261. package/dist/lib/oas/parser/upgrade/index.js +83 -33
  262. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  263. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  264. package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
  265. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  266. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  267. package/dist/lib/plugins/api-catalog/index.js +46 -0
  268. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  269. package/dist/lib/plugins/api-keys/CreateApiKey.js +8 -4
  270. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  271. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  272. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  273. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  274. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  275. package/dist/lib/plugins/api-keys/index.d.ts +1 -0
  276. package/dist/lib/plugins/api-keys/index.js +4 -0
  277. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  278. package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
  279. package/dist/lib/plugins/markdown/MdxPage.js +17 -4
  280. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  281. package/dist/lib/plugins/markdown/index.d.ts +3 -1
  282. package/dist/lib/plugins/markdown/index.js +1 -1
  283. package/dist/lib/plugins/markdown/index.js.map +1 -1
  284. package/dist/lib/plugins/markdown/resolver.d.ts +0 -6
  285. package/dist/lib/plugins/markdown/resolver.js +0 -29
  286. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  287. package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
  288. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  289. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  290. package/dist/lib/plugins/openapi/ColorizedParam.js +18 -7
  291. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  292. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  293. package/dist/lib/plugins/openapi/Endpoint.js +8 -7
  294. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  295. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  296. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  297. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  298. package/dist/lib/plugins/openapi/OperationList.d.ts +5 -2
  299. package/dist/lib/plugins/openapi/OperationList.js +92 -11
  300. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  301. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  302. package/dist/lib/plugins/openapi/OperationListItem.js +12 -6
  303. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  304. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  305. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  306. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  307. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  308. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  309. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  310. package/dist/lib/plugins/openapi/ParameterListItem.js +16 -3
  311. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  312. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
  313. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
  314. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  315. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  316. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -13
  317. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  318. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  319. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -13
  320. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  321. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  322. package/dist/lib/plugins/openapi/SchemaList.js +53 -0
  323. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  324. package/dist/lib/plugins/openapi/Sidecar.js +85 -38
  325. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  326. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  327. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  328. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  329. package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
  330. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  331. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  332. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  333. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +2 -2
  334. package/dist/lib/plugins/openapi/client/GraphQLClient.js +23 -82
  335. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  336. package/dist/lib/plugins/openapi/client/createServer.d.ts +2 -1
  337. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  338. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  339. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +11 -2
  340. package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -7
  341. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  342. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  343. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  344. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  345. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  346. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  347. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  348. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  349. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  350. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  351. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  352. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  353. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  354. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  355. package/dist/lib/plugins/openapi/graphql/gql.d.ts +11 -3
  356. package/dist/lib/plugins/openapi/graphql/gql.js +5 -14
  357. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  358. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +113 -21
  359. package/dist/lib/plugins/openapi/graphql/graphql.js +55 -11
  360. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  361. package/dist/lib/plugins/openapi/index.d.ts +10 -7
  362. package/dist/lib/plugins/openapi/index.js +65 -82
  363. package/dist/lib/plugins/openapi/index.js.map +1 -1
  364. package/dist/lib/plugins/openapi/interfaces.d.ts +57 -3
  365. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  366. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
  367. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  368. package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
  369. package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
  370. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  371. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  372. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  373. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  374. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  375. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +8 -0
  376. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  377. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  378. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  379. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  380. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  381. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
  382. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  383. package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
  384. package/dist/lib/plugins/openapi/playground/Playground.js +131 -69
  385. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  386. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  387. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  388. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  389. package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
  390. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  391. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  392. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  393. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  394. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  395. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  396. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  397. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  398. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  399. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  400. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  401. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  402. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  403. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  404. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
  405. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  406. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
  407. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
  408. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  409. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  410. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  411. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  412. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  413. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  414. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  415. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  416. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  417. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  418. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  419. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
  420. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  421. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  422. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  423. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  424. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  425. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
  426. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  427. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  428. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  429. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  430. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  431. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  432. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  433. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  434. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  435. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  436. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  437. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  438. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  439. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  440. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  441. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  442. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  443. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  444. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  445. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  446. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  447. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  448. package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +2 -4
  449. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
  450. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  451. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  452. package/dist/lib/plugins/openapi/schema/SchemaView.js +38 -50
  453. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  454. package/dist/lib/plugins/openapi/schema/utils.d.ts +8 -1
  455. package/dist/lib/plugins/openapi/schema/utils.js +15 -4
  456. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  457. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  458. package/dist/lib/plugins/openapi/state.js +18 -0
  459. package/dist/lib/plugins/openapi/state.js.map +1 -0
  460. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  461. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  462. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  463. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  464. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +62 -10
  465. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  466. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  467. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  468. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  469. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  470. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  471. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  472. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  473. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  474. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  475. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  476. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  477. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  478. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  479. package/dist/lib/plugins/redirect/index.js +1 -1
  480. package/dist/lib/plugins/redirect/index.js.map +1 -1
  481. package/dist/lib/plugins/search-inkeep/index.d.ts +22 -3
  482. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  483. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  484. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  485. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  486. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  487. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  488. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  489. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  490. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  491. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  492. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  493. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  494. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  495. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  496. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  497. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  498. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  499. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  500. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  501. package/dist/lib/shiki.d.ts +35 -0
  502. package/dist/lib/shiki.js +103 -0
  503. package/dist/lib/shiki.js.map +1 -0
  504. package/dist/lib/ui/Badge.d.ts +1 -1
  505. package/dist/lib/ui/Badge.js +2 -1
  506. package/dist/lib/ui/Badge.js.map +1 -1
  507. package/dist/lib/ui/Button.d.ts +2 -2
  508. package/dist/lib/ui/Button.js +2 -1
  509. package/dist/lib/ui/Button.js.map +1 -1
  510. package/dist/lib/ui/Callout.d.ts +2 -1
  511. package/dist/lib/ui/Callout.js +3 -2
  512. package/dist/lib/ui/Callout.js.map +1 -1
  513. package/dist/lib/ui/Card.js +1 -1
  514. package/dist/lib/ui/Card.js.map +1 -1
  515. package/dist/lib/ui/Checkbox.js +1 -1
  516. package/dist/lib/ui/Checkbox.js.map +1 -1
  517. package/dist/lib/ui/CodeBlock.d.ts +16 -0
  518. package/dist/lib/ui/CodeBlock.js +18 -0
  519. package/dist/lib/ui/CodeBlock.js.map +1 -0
  520. package/dist/lib/ui/Command.d.ts +17 -3
  521. package/dist/lib/ui/Command.js +7 -3
  522. package/dist/lib/ui/Command.js.map +1 -1
  523. package/dist/lib/ui/Form.d.ts +1 -1
  524. package/dist/lib/ui/Input.d.ts +1 -2
  525. package/dist/lib/ui/Input.js.map +1 -1
  526. package/dist/lib/ui/Select.js +3 -3
  527. package/dist/lib/ui/Select.js.map +1 -1
  528. package/dist/lib/ui/Stepper.d.ts +3 -0
  529. package/dist/lib/ui/Stepper.js +7 -0
  530. package/dist/lib/ui/Stepper.js.map +1 -0
  531. package/dist/lib/ui/SyntaxHighlight.d.ts +10 -0
  532. package/dist/lib/ui/SyntaxHighlight.js +14 -0
  533. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  534. package/dist/lib/ui/util.d.ts +2 -0
  535. package/dist/lib/ui/util.js +3 -0
  536. package/dist/lib/ui/util.js.map +1 -0
  537. package/dist/lib/util/MdxComponents.d.ts +29 -20
  538. package/dist/lib/util/MdxComponents.js +17 -15
  539. package/dist/lib/util/MdxComponents.js.map +1 -1
  540. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  541. package/dist/lib/util/detectOS.d.ts +1 -0
  542. package/dist/lib/util/detectOS.js +11 -0
  543. package/dist/lib/util/detectOS.js.map +1 -0
  544. package/dist/lib/util/ensureArray.d.ts +1 -0
  545. package/dist/lib/util/ensureArray.js +2 -0
  546. package/dist/lib/util/ensureArray.js.map +1 -0
  547. package/dist/lib/util/joinPath.d.ts +3 -0
  548. package/dist/lib/util/joinPath.js +3 -0
  549. package/dist/lib/util/joinPath.js.map +1 -1
  550. package/dist/lib/util/joinUrl.d.ts +1 -0
  551. package/dist/lib/util/joinUrl.js +40 -0
  552. package/dist/lib/util/joinUrl.js.map +1 -0
  553. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  554. package/dist/lib/util/joinUrl.test.js +43 -0
  555. package/dist/lib/util/joinUrl.test.js.map +1 -0
  556. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  557. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  558. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  559. package/dist/lib/util/traverse.d.ts +3 -0
  560. package/dist/lib/util/traverse.js +23 -0
  561. package/dist/lib/util/traverse.js.map +1 -0
  562. package/dist/lib/util/types.d.ts +7 -0
  563. package/dist/lib/util/types.js +2 -0
  564. package/dist/lib/util/types.js.map +1 -0
  565. package/dist/lib/util/url.d.ts +4 -0
  566. package/dist/lib/util/url.js +13 -0
  567. package/dist/lib/util/url.js.map +1 -0
  568. package/dist/lib/util/url.test.d.ts +1 -0
  569. package/dist/lib/util/url.test.js +26 -0
  570. package/dist/lib/util/url.test.js.map +1 -0
  571. package/dist/lib/util/useExposedProps.js +1 -1
  572. package/dist/lib/util/useExposedProps.js.map +1 -1
  573. package/dist/lib/util/useLatest.d.ts +1 -0
  574. package/dist/lib/util/useLatest.js +15 -0
  575. package/dist/lib/util/useLatest.js.map +1 -0
  576. package/dist/lib/util/useOnScreen.d.ts +3 -2
  577. package/dist/lib/util/useOnScreen.js +3 -3
  578. package/dist/lib/util/useOnScreen.js.map +1 -1
  579. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  580. package/dist/lib/util/useScrollToAnchor.js +42 -37
  581. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  582. package/dist/lib/util/useScrollToTop.js +7 -5
  583. package/dist/lib/util/useScrollToTop.js.map +1 -1
  584. package/dist/vite/api/SchemaManager.d.ts +36 -0
  585. package/dist/vite/api/SchemaManager.js +122 -0
  586. package/dist/vite/api/SchemaManager.js.map +1 -0
  587. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  588. package/dist/vite/api/SchemaManager.test.js +106 -0
  589. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  590. package/dist/vite/api/schema-codegen.d.ts +12 -0
  591. package/dist/vite/api/schema-codegen.js +85 -0
  592. package/dist/vite/api/schema-codegen.js.map +1 -0
  593. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  594. package/dist/vite/api/schema-codegen.test.js +313 -0
  595. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  596. package/dist/vite/build.js +42 -16
  597. package/dist/vite/build.js.map +1 -1
  598. package/dist/vite/config.d.ts +7 -8
  599. package/dist/vite/config.js +156 -72
  600. package/dist/vite/config.js.map +1 -1
  601. package/dist/vite/config.test.js +11 -5
  602. package/dist/vite/config.test.js.map +1 -1
  603. package/dist/vite/create-pagefind-index.d.ts +4 -0
  604. package/dist/vite/create-pagefind-index.js +12 -0
  605. package/dist/vite/create-pagefind-index.js.map +1 -0
  606. package/dist/vite/css/collect.d.ts +2 -0
  607. package/dist/vite/css/collect.js +27 -0
  608. package/dist/vite/css/collect.js.map +1 -0
  609. package/dist/vite/css/plugin.d.ts +5 -0
  610. package/dist/vite/css/plugin.js +79 -0
  611. package/dist/vite/css/plugin.js.map +1 -0
  612. package/dist/vite/dev-server.d.ts +5 -3
  613. package/dist/vite/dev-server.js +71 -21
  614. package/dist/vite/dev-server.js.map +1 -1
  615. package/dist/vite/error-handler.d.ts +1 -1
  616. package/dist/vite/error-handler.js +1 -1
  617. package/dist/vite/error-handler.js.map +1 -1
  618. package/dist/vite/html.d.ts +6 -2
  619. package/dist/vite/html.js +11 -8
  620. package/dist/vite/html.js.map +1 -1
  621. package/dist/vite/output.d.ts +15 -3
  622. package/dist/vite/output.js +41 -14
  623. package/dist/vite/output.js.map +1 -1
  624. package/dist/vite/plugin-api-keys.d.ts +2 -2
  625. package/dist/vite/plugin-api-keys.js +5 -5
  626. package/dist/vite/plugin-api-keys.js.map +1 -1
  627. package/dist/vite/plugin-api.d.ts +2 -2
  628. package/dist/vite/plugin-api.js +145 -32
  629. package/dist/vite/plugin-api.js.map +1 -1
  630. package/dist/vite/plugin-auth.d.ts +2 -2
  631. package/dist/vite/plugin-auth.js +7 -4
  632. package/dist/vite/plugin-auth.js.map +1 -1
  633. package/dist/vite/plugin-component.d.ts +2 -2
  634. package/dist/vite/plugin-component.js +20 -20
  635. package/dist/vite/plugin-component.js.map +1 -1
  636. package/dist/vite/plugin-config-reload.d.ts +4 -4
  637. package/dist/vite/plugin-config-reload.js +15 -6
  638. package/dist/vite/plugin-config-reload.js.map +1 -1
  639. package/dist/vite/plugin-config.d.ts +2 -2
  640. package/dist/vite/plugin-config.js +25 -1
  641. package/dist/vite/plugin-config.js.map +1 -1
  642. package/dist/vite/plugin-custom-pages.d.ts +2 -2
  643. package/dist/vite/plugin-custom-pages.js +3 -3
  644. package/dist/vite/plugin-custom-pages.js.map +1 -1
  645. package/dist/vite/plugin-docs.d.ts +3 -3
  646. package/dist/vite/plugin-docs.js +23 -6
  647. package/dist/vite/plugin-docs.js.map +1 -1
  648. package/dist/vite/plugin-docs.test.js +15 -23
  649. package/dist/vite/plugin-docs.test.js.map +1 -1
  650. package/dist/vite/plugin-frontmatter.d.ts +2 -2
  651. package/dist/vite/plugin-frontmatter.js +5 -4
  652. package/dist/vite/plugin-frontmatter.js.map +1 -1
  653. package/dist/vite/plugin-mdx.d.ts +2 -2
  654. package/dist/vite/plugin-mdx.js +86 -21
  655. package/dist/vite/plugin-mdx.js.map +1 -1
  656. package/dist/vite/plugin-redirect.d.ts +2 -2
  657. package/dist/vite/plugin-redirect.js +3 -3
  658. package/dist/vite/plugin-redirect.js.map +1 -1
  659. package/dist/vite/plugin-search.d.ts +2 -2
  660. package/dist/vite/plugin-search.js +5 -1
  661. package/dist/vite/plugin-search.js.map +1 -1
  662. package/dist/vite/plugin-shiki-register.d.ts +3 -0
  663. package/dist/vite/plugin-shiki-register.js +38 -0
  664. package/dist/vite/plugin-shiki-register.js.map +1 -0
  665. package/dist/vite/plugin-sidebar.d.ts +5 -3
  666. package/dist/vite/plugin-sidebar.js +21 -6
  667. package/dist/vite/plugin-sidebar.js.map +1 -1
  668. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +3 -3
  669. package/dist/vite/plugin-theme-css.js +117 -0
  670. package/dist/vite/plugin-theme-css.js.map +1 -0
  671. package/dist/vite/plugin.d.ts +2 -3
  672. package/dist/vite/plugin.js +8 -2
  673. package/dist/vite/plugin.js.map +1 -1
  674. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  675. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  676. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  677. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  678. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  679. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  680. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  681. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  682. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  683. package/dist/vite/prerender/prerender.d.ts +15 -0
  684. package/dist/vite/prerender/prerender.js +109 -0
  685. package/dist/vite/prerender/prerender.js.map +1 -0
  686. package/dist/vite/prerender/worker.d.ts +13 -0
  687. package/dist/vite/prerender/worker.js +59 -0
  688. package/dist/vite/prerender/worker.js.map +1 -0
  689. package/dist/vite/remarkStaticGeneration.js +5 -5
  690. package/dist/vite/remarkStaticGeneration.js.map +1 -1
  691. package/dist/vite/reporter.d.ts +3 -0
  692. package/dist/vite/reporter.js +33 -0
  693. package/dist/vite/reporter.js.map +1 -0
  694. package/dist/vite/sitemap.d.ts +1 -1
  695. package/dist/vite/sitemap.js +2 -1
  696. package/dist/vite/sitemap.js.map +1 -1
  697. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  698. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  699. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  700. package/dist/zuplo/policy-types.d.ts +33 -0
  701. package/dist/zuplo/policy-types.js +8 -0
  702. package/dist/zuplo/policy-types.js.map +1 -0
  703. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  704. package/dist/zuplo/with-zuplo-processors.js +26 -0
  705. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  706. package/dist/zuplo/with-zuplo.d.ts +6 -0
  707. package/dist/zuplo/with-zuplo.js +10 -0
  708. package/dist/zuplo/with-zuplo.js.map +1 -0
  709. package/lib/AuthenticationPlugin-B9ZLD8dq.js +90 -0
  710. package/lib/AuthenticationPlugin-B9ZLD8dq.js.map +1 -0
  711. package/lib/Button-Bdk_Ij3U.js +49 -0
  712. package/lib/Button-Bdk_Ij3U.js.map +1 -0
  713. package/lib/Callout-hI9CHaoU.js +230 -0
  714. package/lib/Callout-hI9CHaoU.js.map +1 -0
  715. package/lib/Card-BlCYNw5W.js +61 -0
  716. package/lib/Card-BlCYNw5W.js.map +1 -0
  717. package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-DZi-Szor.js} +3 -3
  718. package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-DZi-Szor.js.map} +1 -1
  719. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  720. package/lib/Dialog-qJtc4-PZ.js +98 -0
  721. package/lib/{Dialog-k70Qfukb.js.map → Dialog-qJtc4-PZ.js.map} +1 -1
  722. package/lib/Drawer-BPBxzel2.js +1133 -0
  723. package/lib/Drawer-BPBxzel2.js.map +1 -0
  724. package/lib/Markdown-D3MUf20w.js +7691 -0
  725. package/lib/Markdown-D3MUf20w.js.map +1 -0
  726. package/lib/MdxPage-qSYniGrR.js +84 -0
  727. package/lib/MdxPage-qSYniGrR.js.map +1 -0
  728. package/lib/OasProvider-BHyIG4Ge.js +33 -0
  729. package/lib/OasProvider-BHyIG4Ge.js.map +1 -0
  730. package/lib/OperationList-CfVK_S-T.js +5142 -0
  731. package/lib/OperationList-CfVK_S-T.js.map +1 -0
  732. package/lib/Pagination-CjsamWJW.js +48 -0
  733. package/lib/Pagination-CjsamWJW.js.map +1 -0
  734. package/lib/RouteGuard-ChX1tPqA.js +55 -0
  735. package/lib/RouteGuard-ChX1tPqA.js.map +1 -0
  736. package/lib/SchemaList-BZRVKC7J.js +160 -0
  737. package/lib/SchemaList-BZRVKC7J.js.map +1 -0
  738. package/lib/SchemaView-Db5jA7z7.js +375 -0
  739. package/lib/SchemaView-Db5jA7z7.js.map +1 -0
  740. package/lib/Select-CaRC4cvg.js +211 -0
  741. package/lib/Select-CaRC4cvg.js.map +1 -0
  742. package/lib/SlotletProvider-ZhDNaV0q.js +257 -0
  743. package/lib/SlotletProvider-ZhDNaV0q.js.map +1 -0
  744. package/lib/{Spinner-3cQDBVGr.js → Spinner-mNLZ6awP.js} +2 -2
  745. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-mNLZ6awP.js.map} +1 -1
  746. package/lib/SyntaxHighlight-IcJTpNbL.js +9107 -0
  747. package/lib/SyntaxHighlight-IcJTpNbL.js.map +1 -0
  748. package/lib/Toc-B0gpT6e6.js +92 -0
  749. package/lib/Toc-B0gpT6e6.js.map +1 -0
  750. package/lib/chunk-BAXFHI7N-C9WnHsLV.js +1839 -0
  751. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +1 -0
  752. package/lib/circular-BGxf3iUW.js +14929 -0
  753. package/lib/circular-BGxf3iUW.js.map +1 -0
  754. package/lib/{cn-BmFQLtkS.js → cn-CwJPJKOE.js} +29 -30
  755. package/lib/cn-CwJPJKOE.js.map +1 -0
  756. package/lib/createServer-C1kGUn7C.js +12494 -0
  757. package/lib/createServer-C1kGUn7C.js.map +1 -0
  758. package/lib/hook-CqYKERnR.js +1442 -0
  759. package/lib/hook-CqYKERnR.js.map +1 -0
  760. package/lib/index--oeBayMa.js +86 -0
  761. package/lib/index--oeBayMa.js.map +1 -0
  762. package/lib/{index-LNp6rxyU.js → index-BvvmIczU.js} +2 -2
  763. package/lib/{index-LNp6rxyU.js.map → index-BvvmIczU.js.map} +1 -1
  764. package/lib/index-CrcNWbel.js +316 -0
  765. package/lib/index-CrcNWbel.js.map +1 -0
  766. package/lib/index-D1LYvDiD.js +3158 -0
  767. package/lib/index-D1LYvDiD.js.map +1 -0
  768. package/lib/index-LSPm9Daf.js +4976 -0
  769. package/lib/index-LSPm9Daf.js.map +1 -0
  770. package/lib/index-Z13x6tPX.js +36 -0
  771. package/lib/index-Z13x6tPX.js.map +1 -0
  772. package/lib/{assets/index-B_Jk_Yzp.js → index-zddirpDj.js} +727 -725
  773. package/lib/index-zddirpDj.js.map +1 -0
  774. package/lib/index.esm-BFcSKCe-.js +683 -0
  775. package/lib/index.esm-BFcSKCe-.js.map +1 -0
  776. package/lib/index.esm-D2ZUREQN.js +1216 -0
  777. package/lib/index.esm-D2ZUREQN.js.map +1 -0
  778. package/lib/invariant-DAFpPywt.js +48 -0
  779. package/lib/{invariant-Caa8-XvF.js.map → invariant-DAFpPywt.js.map} +1 -1
  780. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  781. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  782. package/lib/mutation-DpoXF3gn.js +196 -0
  783. package/lib/mutation-DpoXF3gn.js.map +1 -0
  784. package/lib/objectEntries-yMIkr2mI.js +5 -0
  785. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  786. package/lib/processors/removeExtensions.js +11 -0
  787. package/lib/processors/removeExtensions.js.map +1 -0
  788. package/lib/processors/removeParameters.js +47 -0
  789. package/lib/processors/removeParameters.js.map +1 -0
  790. package/lib/processors/removePaths.js +28 -0
  791. package/lib/processors/removePaths.js.map +1 -0
  792. package/lib/processors/traverse.js +17 -0
  793. package/lib/processors/traverse.js.map +1 -0
  794. package/lib/ui/Accordion.js +2 -2
  795. package/lib/ui/Accordion.js.map +1 -1
  796. package/lib/ui/ActionButton.js +4 -4
  797. package/lib/ui/ActionButton.js.map +1 -1
  798. package/lib/ui/Alert.js +3 -3
  799. package/lib/ui/Alert.js.map +1 -1
  800. package/lib/ui/AlertDialog.js +2 -2
  801. package/lib/ui/AlertDialog.js.map +1 -1
  802. package/lib/ui/Badge.js +5 -4
  803. package/lib/ui/Badge.js.map +1 -1
  804. package/lib/ui/Breadcrumb.js +5 -5
  805. package/lib/ui/Breadcrumb.js.map +1 -1
  806. package/lib/ui/Button.js +14 -13
  807. package/lib/ui/Button.js.map +1 -1
  808. package/lib/ui/Callout.js +41 -22
  809. package/lib/ui/Callout.js.map +1 -1
  810. package/lib/ui/Card.js +9 -9
  811. package/lib/ui/Card.js.map +1 -1
  812. package/lib/ui/Carousel.js +552 -546
  813. package/lib/ui/Carousel.js.map +1 -1
  814. package/lib/ui/Checkbox.js +14 -13
  815. package/lib/ui/Checkbox.js.map +1 -1
  816. package/lib/ui/CodeBlock.js +83 -0
  817. package/lib/ui/CodeBlock.js.map +1 -0
  818. package/lib/ui/Command.js +114 -508
  819. package/lib/ui/Command.js.map +1 -1
  820. package/lib/ui/Dialog.js +2 -2
  821. package/lib/ui/Dialog.js.map +1 -1
  822. package/lib/ui/Drawer.js +14 -1150
  823. package/lib/ui/Drawer.js.map +1 -1
  824. package/lib/ui/DropdownMenu.js +2 -2
  825. package/lib/ui/DropdownMenu.js.map +1 -1
  826. package/lib/ui/Form.js +6 -6
  827. package/lib/ui/Form.js.map +1 -1
  828. package/lib/ui/HoverCard.js +2 -2
  829. package/lib/ui/Input.js +2 -2
  830. package/lib/ui/Input.js.map +1 -1
  831. package/lib/ui/Label.js +3 -3
  832. package/lib/ui/Pagination.js +5 -5
  833. package/lib/ui/Pagination.js.map +1 -1
  834. package/lib/ui/Popover.js +2 -2
  835. package/lib/ui/Popover.js.map +1 -1
  836. package/lib/ui/Progress.js +2 -2
  837. package/lib/ui/Progress.js.map +1 -1
  838. package/lib/ui/RadioGroup.js +2 -2
  839. package/lib/ui/RadioGroup.js.map +1 -1
  840. package/lib/ui/ScrollArea.js +2 -2
  841. package/lib/ui/ScrollArea.js.map +1 -1
  842. package/lib/ui/Select.js +5 -5
  843. package/lib/ui/Select.js.map +1 -1
  844. package/lib/ui/Skeleton.js +2 -2
  845. package/lib/ui/Skeleton.js.map +1 -1
  846. package/lib/ui/Slider.js +2 -2
  847. package/lib/ui/Stepper.js +6 -0
  848. package/lib/ui/Stepper.js.map +1 -0
  849. package/lib/ui/Switch.js +2 -2
  850. package/lib/ui/Switch.js.map +1 -1
  851. package/lib/ui/SyntaxHighlight.js +10 -0
  852. package/lib/ui/SyntaxHighlight.js.map +1 -0
  853. package/lib/ui/Tabs.js +11 -11
  854. package/lib/ui/Textarea.js +2 -2
  855. package/lib/ui/Textarea.js.map +1 -1
  856. package/lib/ui/Toggle.js +3 -3
  857. package/lib/ui/Toggle.js.map +1 -1
  858. package/lib/ui/ToggleGroup.js +2 -2
  859. package/lib/ui/ToggleGroup.js.map +1 -1
  860. package/lib/ui/Tooltip.js +2 -2
  861. package/lib/ui/util.js +6 -0
  862. package/lib/ui/util.js.map +1 -0
  863. package/lib/useExposedProps-DG8J6ewJ.js +9 -0
  864. package/lib/useExposedProps-DG8J6ewJ.js.map +1 -0
  865. package/lib/useLatest-hmRS46UF.js +11 -0
  866. package/lib/useLatest-hmRS46UF.js.map +1 -0
  867. package/lib/zudoku.auth-auth0.js +33 -37
  868. package/lib/zudoku.auth-auth0.js.map +1 -1
  869. package/lib/zudoku.auth-clerk.js +96 -56
  870. package/lib/zudoku.auth-clerk.js.map +1 -1
  871. package/lib/zudoku.auth-openid.js +562 -585
  872. package/lib/zudoku.auth-openid.js.map +1 -1
  873. package/lib/zudoku.components.js +34 -1586
  874. package/lib/zudoku.components.js.map +1 -1
  875. package/lib/zudoku.hooks.js +19 -0
  876. package/lib/zudoku.hooks.js.map +1 -0
  877. package/lib/zudoku.icons.js +10 -0
  878. package/lib/zudoku.icons.js.map +1 -1
  879. package/lib/zudoku.plugin-api-catalog.js +117 -0
  880. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  881. package/lib/zudoku.plugin-api-keys.js +112 -109
  882. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  883. package/lib/zudoku.plugin-custom-pages.js +4 -4
  884. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  885. package/lib/zudoku.plugin-markdown.js +27 -50
  886. package/lib/zudoku.plugin-markdown.js.map +1 -1
  887. package/lib/zudoku.plugin-openapi.js +7 -6
  888. package/lib/zudoku.plugin-openapi.js.map +1 -1
  889. package/lib/zudoku.plugin-redirect.js +1 -1
  890. package/lib/zudoku.plugin-redirect.js.map +1 -1
  891. package/lib/zudoku.plugin-search-inkeep.js +52 -24
  892. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  893. package/lib/zudoku.plugin-search-pagefind.js +230 -0
  894. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  895. package/lib/zudoku.plugins.js +14 -0
  896. package/lib/zudoku.plugins.js.map +1 -0
  897. package/package.json +154 -99
  898. package/src/app/ZuploBuildConfig.ts +33 -0
  899. package/src/app/demo-cdn.html +31 -31
  900. package/src/app/demo.html +1 -1
  901. package/src/app/demo.tsx +1 -2
  902. package/src/app/entry.client.tsx +67 -15
  903. package/src/app/entry.server.tsx +26 -15
  904. package/src/app/env.ts +35 -0
  905. package/src/app/main.css +155 -43
  906. package/src/app/main.tsx +63 -11
  907. package/src/app/sentry.ts +24 -0
  908. package/src/app/standalone.tsx +1 -2
  909. package/src/app/tailwind.ts +83 -48
  910. package/src/lib/MissingIcon.tsx +22 -0
  911. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  912. package/src/lib/authentication/authentication.ts +3 -1
  913. package/src/lib/authentication/components/CallbackHandler.tsx +12 -2
  914. package/src/lib/authentication/components/SignIn.tsx +35 -2
  915. package/src/lib/authentication/components/SignOut.tsx +3 -2
  916. package/src/lib/authentication/components/SignUp.tsx +35 -1
  917. package/src/lib/authentication/hook.ts +12 -1
  918. package/src/lib/authentication/providers/auth0.tsx +5 -7
  919. package/src/lib/authentication/providers/clerk.tsx +76 -17
  920. package/src/lib/authentication/providers/openid.tsx +68 -40
  921. package/src/lib/authentication/providers/supabase.tsx +157 -0
  922. package/src/lib/authentication/state.ts +9 -19
  923. package/src/lib/components/AnchorLink.tsx +13 -8
  924. package/src/lib/components/Autocomplete.tsx +113 -0
  925. package/src/lib/components/Banner.tsx +2 -1
  926. package/src/lib/components/Bootstrap.tsx +29 -29
  927. package/src/lib/components/BuildCheck.tsx +75 -0
  928. package/src/lib/components/Footer.tsx +136 -0
  929. package/src/lib/components/Header.tsx +66 -25
  930. package/src/lib/components/Heading.tsx +14 -14
  931. package/src/lib/components/InlineCode.tsx +13 -16
  932. package/src/lib/components/Layout.tsx +28 -59
  933. package/src/lib/components/Main.tsx +51 -0
  934. package/src/lib/components/Markdown.tsx +33 -29
  935. package/src/lib/components/MobileTopNavigation.tsx +30 -21
  936. package/src/lib/components/NotFoundPage.tsx +1 -1
  937. package/src/lib/components/Pagination.tsx +50 -0
  938. package/src/lib/components/PathRenderer.tsx +61 -0
  939. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  940. package/src/lib/components/ReactMarkdown.tsx +264 -0
  941. package/src/lib/components/Search.tsx +17 -6
  942. package/src/lib/components/SlotletProvider.tsx +1 -1
  943. package/src/lib/components/StatusPage.tsx +91 -0
  944. package/src/lib/components/ThemeSwitch.tsx +29 -9
  945. package/src/lib/components/TopNavigation.tsx +53 -26
  946. package/src/lib/components/Zudoku.tsx +18 -7
  947. package/src/lib/components/cache.ts +23 -0
  948. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  949. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  950. package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
  951. package/src/lib/components/context/ZudokuContext.ts +30 -9
  952. package/src/lib/components/index.ts +24 -5
  953. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  954. package/src/lib/components/navigation/Sidebar.tsx +38 -29
  955. package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
  956. package/src/lib/components/navigation/SidebarCategory.tsx +65 -58
  957. package/src/lib/components/navigation/SidebarItem.tsx +30 -40
  958. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
  959. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +9 -18
  960. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  961. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  962. package/src/lib/components/navigation/utils.ts +1 -1
  963. package/src/lib/core/RouteGuard.tsx +96 -0
  964. package/src/lib/core/ZudokuContext.ts +79 -21
  965. package/src/lib/core/plugins.ts +33 -7
  966. package/src/lib/errors/ErrorAlert.tsx +24 -17
  967. package/src/lib/errors/RouterError.tsx +1 -1
  968. package/src/lib/hooks/index.ts +5 -0
  969. package/src/lib/hooks/useEvent.test.tsx +149 -0
  970. package/src/lib/hooks/useEvent.ts +41 -0
  971. package/src/lib/icons.ts +1 -0
  972. package/src/lib/oas/graphql/circular.ts +58 -0
  973. package/src/lib/oas/graphql/index.ts +295 -101
  974. package/src/lib/oas/parser/dereference/index.ts +10 -4
  975. package/src/lib/oas/parser/index.ts +14 -30
  976. package/src/lib/oas/parser/upgrade/index.ts +103 -40
  977. package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
  978. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  979. package/src/lib/plugins/api-keys/CreateApiKey.tsx +8 -4
  980. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  981. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  982. package/src/lib/plugins/api-keys/index.tsx +7 -1
  983. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  984. package/src/lib/plugins/markdown/MdxPage.tsx +43 -41
  985. package/src/lib/plugins/markdown/index.tsx +5 -2
  986. package/src/lib/plugins/markdown/resolver.ts +2 -37
  987. package/src/lib/plugins/openapi/CollapsibleCode.tsx +14 -8
  988. package/src/lib/plugins/openapi/ColorizedParam.tsx +29 -12
  989. package/src/lib/plugins/openapi/Endpoint.tsx +14 -12
  990. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  991. package/src/lib/plugins/openapi/OperationList.tsx +232 -42
  992. package/src/lib/plugins/openapi/OperationListItem.tsx +122 -93
  993. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  994. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  995. package/src/lib/plugins/openapi/ParameterListItem.tsx +65 -24
  996. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
  997. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -38
  998. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -64
  999. package/src/lib/plugins/openapi/SchemaList.tsx +163 -0
  1000. package/src/lib/plugins/openapi/Sidecar.tsx +120 -67
  1001. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1002. package/src/lib/plugins/openapi/SidecarExamples.tsx +168 -0
  1003. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1004. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +29 -104
  1005. package/src/lib/plugins/openapi/client/createServer.ts +6 -2
  1006. package/src/lib/plugins/openapi/client/useCreateQuery.ts +34 -7
  1007. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1008. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1009. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1010. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1011. package/src/lib/plugins/openapi/context.tsx +2 -2
  1012. package/src/lib/plugins/openapi/graphql/gql.ts +36 -11
  1013. package/src/lib/plugins/openapi/graphql/graphql.ts +172 -36
  1014. package/src/lib/plugins/openapi/index.tsx +100 -98
  1015. package/src/lib/plugins/openapi/interfaces.ts +58 -3
  1016. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
  1017. package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
  1018. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  1019. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +41 -0
  1020. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1021. package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
  1022. package/src/lib/plugins/openapi/playground/Playground.tsx +384 -244
  1023. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +6 -3
  1024. package/src/lib/plugins/openapi/playground/QueryParams.tsx +87 -89
  1025. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1026. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  1027. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1028. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  1029. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
  1030. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
  1031. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1032. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1033. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1034. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1035. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1036. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1037. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1038. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1039. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1040. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1041. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1042. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1043. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1044. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +160 -0
  1045. package/src/lib/plugins/openapi/schema/SchemaView.tsx +105 -141
  1046. package/src/lib/plugins/openapi/schema/utils.ts +32 -5
  1047. package/src/lib/plugins/openapi/state.ts +36 -0
  1048. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  1049. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +77 -12
  1050. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1051. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1052. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1053. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1054. package/src/lib/plugins/redirect/index.tsx +2 -2
  1055. package/src/lib/plugins/search-inkeep/index.tsx +78 -23
  1056. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  1057. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  1058. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  1059. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1060. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1061. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1062. package/src/lib/shiki.ts +133 -0
  1063. package/src/lib/ui/Badge.tsx +2 -1
  1064. package/src/lib/ui/Button.tsx +4 -2
  1065. package/src/lib/ui/Callout.tsx +29 -10
  1066. package/src/lib/ui/Card.tsx +1 -1
  1067. package/src/lib/ui/Checkbox.tsx +2 -1
  1068. package/src/lib/ui/CodeBlock.tsx +102 -0
  1069. package/src/lib/ui/Command.tsx +45 -3
  1070. package/src/lib/ui/Input.tsx +1 -2
  1071. package/src/lib/ui/Select.tsx +2 -2
  1072. package/src/lib/ui/Stepper.tsx +8 -0
  1073. package/src/lib/ui/SyntaxHighlight.tsx +27 -0
  1074. package/src/lib/ui/util.tsx +3 -0
  1075. package/src/lib/util/MdxComponents.tsx +37 -23
  1076. package/src/lib/util/createVariantComponent.tsx +2 -2
  1077. package/src/lib/util/detectOS.ts +9 -0
  1078. package/src/lib/util/ensureArray.ts +3 -0
  1079. package/src/lib/util/joinPath.tsx +3 -0
  1080. package/src/lib/util/joinUrl.test.ts +62 -0
  1081. package/src/lib/util/joinUrl.ts +57 -0
  1082. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1083. package/src/lib/util/traverse.ts +34 -0
  1084. package/src/lib/util/types.ts +7 -0
  1085. package/src/lib/util/url.test.ts +51 -0
  1086. package/src/lib/util/url.ts +18 -0
  1087. package/src/lib/util/useExposedProps.tsx +1 -1
  1088. package/src/lib/util/useLatest.ts +18 -0
  1089. package/src/lib/util/useOnScreen.ts +6 -4
  1090. package/src/lib/util/useScrollToAnchor.ts +48 -39
  1091. package/src/lib/util/useScrollToTop.ts +9 -4
  1092. package/src/shiki/langs/abap.js +1 -0
  1093. package/src/shiki/langs/actionscript-3.js +1 -0
  1094. package/src/shiki/langs/ada.js +1 -0
  1095. package/src/shiki/langs/angular-expression.js +1 -0
  1096. package/src/shiki/langs/angular-html.js +1 -0
  1097. package/src/shiki/langs/angular-inline-style.js +1 -0
  1098. package/src/shiki/langs/angular-inline-template.js +1 -0
  1099. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1100. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1101. package/src/shiki/langs/angular-template.js +1 -0
  1102. package/src/shiki/langs/angular-ts.js +1 -0
  1103. package/src/shiki/langs/apache.js +1 -0
  1104. package/src/shiki/langs/apex.js +1 -0
  1105. package/src/shiki/langs/apl.js +1 -0
  1106. package/src/shiki/langs/applescript.js +1 -0
  1107. package/src/shiki/langs/ara.js +1 -0
  1108. package/src/shiki/langs/asciidoc.js +1 -0
  1109. package/src/shiki/langs/asm.js +1 -0
  1110. package/src/shiki/langs/astro.js +1 -0
  1111. package/src/shiki/langs/awk.js +1 -0
  1112. package/src/shiki/langs/ballerina.js +1 -0
  1113. package/src/shiki/langs/bat.js +1 -0
  1114. package/src/shiki/langs/beancount.js +1 -0
  1115. package/src/shiki/langs/berry.js +1 -0
  1116. package/src/shiki/langs/bibtex.js +1 -0
  1117. package/src/shiki/langs/bicep.js +1 -0
  1118. package/src/shiki/langs/blade.js +1 -0
  1119. package/src/shiki/langs/bsl.js +1 -0
  1120. package/src/shiki/langs/c.js +1 -0
  1121. package/src/shiki/langs/cadence.js +1 -0
  1122. package/src/shiki/langs/cairo.js +1 -0
  1123. package/src/shiki/langs/clarity.js +1 -0
  1124. package/src/shiki/langs/clojure.js +1 -0
  1125. package/src/shiki/langs/cmake.js +1 -0
  1126. package/src/shiki/langs/cobol.js +1 -0
  1127. package/src/shiki/langs/codeowners.js +1 -0
  1128. package/src/shiki/langs/codeql.js +1 -0
  1129. package/src/shiki/langs/coffee.js +1 -0
  1130. package/src/shiki/langs/common-lisp.js +1 -0
  1131. package/src/shiki/langs/coq.js +1 -0
  1132. package/src/shiki/langs/cpp-macro.js +1 -0
  1133. package/src/shiki/langs/cpp.js +1 -0
  1134. package/src/shiki/langs/crystal.js +1 -0
  1135. package/src/shiki/langs/csharp.js +1 -0
  1136. package/src/shiki/langs/css.js +1 -0
  1137. package/src/shiki/langs/csv.js +1 -0
  1138. package/src/shiki/langs/cue.js +1 -0
  1139. package/src/shiki/langs/cypher.js +1 -0
  1140. package/src/shiki/langs/d.js +1 -0
  1141. package/src/shiki/langs/dart.js +1 -0
  1142. package/src/shiki/langs/dax.js +1 -0
  1143. package/src/shiki/langs/desktop.js +1 -0
  1144. package/src/shiki/langs/diff.js +1 -0
  1145. package/src/shiki/langs/docker.js +1 -0
  1146. package/src/shiki/langs/dotenv.js +1 -0
  1147. package/src/shiki/langs/dream-maker.js +1 -0
  1148. package/src/shiki/langs/edge.js +1 -0
  1149. package/src/shiki/langs/elixir.js +1 -0
  1150. package/src/shiki/langs/elm.js +1 -0
  1151. package/src/shiki/langs/emacs-lisp.js +1 -0
  1152. package/src/shiki/langs/erb.js +1 -0
  1153. package/src/shiki/langs/erlang.js +1 -0
  1154. package/src/shiki/langs/es-tag-css.js +1 -0
  1155. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1156. package/src/shiki/langs/es-tag-html.js +1 -0
  1157. package/src/shiki/langs/es-tag-sql.js +1 -0
  1158. package/src/shiki/langs/es-tag-xml.js +1 -0
  1159. package/src/shiki/langs/fennel.js +1 -0
  1160. package/src/shiki/langs/fish.js +1 -0
  1161. package/src/shiki/langs/fluent.js +1 -0
  1162. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1163. package/src/shiki/langs/fortran-free-form.js +1 -0
  1164. package/src/shiki/langs/fsharp.js +1 -0
  1165. package/src/shiki/langs/gdresource.js +1 -0
  1166. package/src/shiki/langs/gdscript.js +1 -0
  1167. package/src/shiki/langs/gdshader.js +1 -0
  1168. package/src/shiki/langs/genie.js +1 -0
  1169. package/src/shiki/langs/gherkin.js +1 -0
  1170. package/src/shiki/langs/git-commit.js +1 -0
  1171. package/src/shiki/langs/git-rebase.js +1 -0
  1172. package/src/shiki/langs/gleam.js +1 -0
  1173. package/src/shiki/langs/glimmer-js.js +1 -0
  1174. package/src/shiki/langs/glimmer-ts.js +1 -0
  1175. package/src/shiki/langs/glsl.js +1 -0
  1176. package/src/shiki/langs/gnuplot.js +1 -0
  1177. package/src/shiki/langs/go.js +1 -0
  1178. package/src/shiki/langs/graphql.js +1 -0
  1179. package/src/shiki/langs/groovy.js +1 -0
  1180. package/src/shiki/langs/hack.js +1 -0
  1181. package/src/shiki/langs/haml.js +1 -0
  1182. package/src/shiki/langs/handlebars.js +1 -0
  1183. package/src/shiki/langs/haskell.js +1 -0
  1184. package/src/shiki/langs/haxe.js +1 -0
  1185. package/src/shiki/langs/hcl.js +1 -0
  1186. package/src/shiki/langs/hjson.js +1 -0
  1187. package/src/shiki/langs/hlsl.js +1 -0
  1188. package/src/shiki/langs/html-derivative.js +1 -0
  1189. package/src/shiki/langs/html.js +1 -0
  1190. package/src/shiki/langs/http.js +1 -0
  1191. package/src/shiki/langs/hxml.js +1 -0
  1192. package/src/shiki/langs/hy.js +1 -0
  1193. package/src/shiki/langs/imba.js +1 -0
  1194. package/src/shiki/langs/ini.js +1 -0
  1195. package/src/shiki/langs/java.js +1 -0
  1196. package/src/shiki/langs/javascript.js +1 -0
  1197. package/src/shiki/langs/jinja-html.js +1 -0
  1198. package/src/shiki/langs/jinja.js +1 -0
  1199. package/src/shiki/langs/jison.js +1 -0
  1200. package/src/shiki/langs/json.js +1 -0
  1201. package/src/shiki/langs/json5.js +1 -0
  1202. package/src/shiki/langs/jsonc.js +1 -0
  1203. package/src/shiki/langs/jsonl.js +1 -0
  1204. package/src/shiki/langs/jsonnet.js +1 -0
  1205. package/src/shiki/langs/jssm.js +1 -0
  1206. package/src/shiki/langs/jsx.js +1 -0
  1207. package/src/shiki/langs/julia.js +1 -0
  1208. package/src/shiki/langs/kotlin.js +1 -0
  1209. package/src/shiki/langs/kusto.js +1 -0
  1210. package/src/shiki/langs/latex.js +1 -0
  1211. package/src/shiki/langs/lean.js +1 -0
  1212. package/src/shiki/langs/less.js +1 -0
  1213. package/src/shiki/langs/liquid.js +1 -0
  1214. package/src/shiki/langs/llvm.js +1 -0
  1215. package/src/shiki/langs/log.js +1 -0
  1216. package/src/shiki/langs/logo.js +1 -0
  1217. package/src/shiki/langs/lua.js +1 -0
  1218. package/src/shiki/langs/luau.js +1 -0
  1219. package/src/shiki/langs/make.js +1 -0
  1220. package/src/shiki/langs/markdown-vue.js +1 -0
  1221. package/src/shiki/langs/markdown.js +1 -0
  1222. package/src/shiki/langs/marko.js +1 -0
  1223. package/src/shiki/langs/matlab.js +1 -0
  1224. package/src/shiki/langs/mdc.js +1 -0
  1225. package/src/shiki/langs/mdx.js +1 -0
  1226. package/src/shiki/langs/mermaid.js +1 -0
  1227. package/src/shiki/langs/mipsasm.js +1 -0
  1228. package/src/shiki/langs/mojo.js +1 -0
  1229. package/src/shiki/langs/move.js +1 -0
  1230. package/src/shiki/langs/narrat.js +1 -0
  1231. package/src/shiki/langs/nextflow.js +1 -0
  1232. package/src/shiki/langs/nginx.js +1 -0
  1233. package/src/shiki/langs/nim.js +1 -0
  1234. package/src/shiki/langs/nix.js +1 -0
  1235. package/src/shiki/langs/nushell.js +1 -0
  1236. package/src/shiki/langs/objective-c.js +1 -0
  1237. package/src/shiki/langs/objective-cpp.js +1 -0
  1238. package/src/shiki/langs/ocaml.js +1 -0
  1239. package/src/shiki/langs/pascal.js +1 -0
  1240. package/src/shiki/langs/perl.js +1 -0
  1241. package/src/shiki/langs/php.js +1 -0
  1242. package/src/shiki/langs/plsql.js +1 -0
  1243. package/src/shiki/langs/po.js +1 -0
  1244. package/src/shiki/langs/polar.js +1 -0
  1245. package/src/shiki/langs/postcss.js +1 -0
  1246. package/src/shiki/langs/powerquery.js +1 -0
  1247. package/src/shiki/langs/powershell.js +1 -0
  1248. package/src/shiki/langs/prisma.js +1 -0
  1249. package/src/shiki/langs/prolog.js +1 -0
  1250. package/src/shiki/langs/proto.js +1 -0
  1251. package/src/shiki/langs/pug.js +1 -0
  1252. package/src/shiki/langs/puppet.js +1 -0
  1253. package/src/shiki/langs/purescript.js +1 -0
  1254. package/src/shiki/langs/python.js +1 -0
  1255. package/src/shiki/langs/qml.js +1 -0
  1256. package/src/shiki/langs/qmldir.js +1 -0
  1257. package/src/shiki/langs/qss.js +1 -0
  1258. package/src/shiki/langs/r.js +1 -0
  1259. package/src/shiki/langs/racket.js +1 -0
  1260. package/src/shiki/langs/raku.js +1 -0
  1261. package/src/shiki/langs/razor.js +1 -0
  1262. package/src/shiki/langs/reg.js +1 -0
  1263. package/src/shiki/langs/regexp.js +1 -0
  1264. package/src/shiki/langs/rel.js +1 -0
  1265. package/src/shiki/langs/riscv.js +1 -0
  1266. package/src/shiki/langs/rst.js +1 -0
  1267. package/src/shiki/langs/ruby.js +1 -0
  1268. package/src/shiki/langs/rust.js +1 -0
  1269. package/src/shiki/langs/sas.js +1 -0
  1270. package/src/shiki/langs/sass.js +1 -0
  1271. package/src/shiki/langs/scala.js +1 -0
  1272. package/src/shiki/langs/scheme.js +1 -0
  1273. package/src/shiki/langs/scss.js +1 -0
  1274. package/src/shiki/langs/sdbl.js +1 -0
  1275. package/src/shiki/langs/shaderlab.js +1 -0
  1276. package/src/shiki/langs/shellscript.js +1 -0
  1277. package/src/shiki/langs/shellsession.js +1 -0
  1278. package/src/shiki/langs/smalltalk.js +1 -0
  1279. package/src/shiki/langs/solidity.js +1 -0
  1280. package/src/shiki/langs/soy.js +1 -0
  1281. package/src/shiki/langs/sparql.js +1 -0
  1282. package/src/shiki/langs/splunk.js +1 -0
  1283. package/src/shiki/langs/sql.js +1 -0
  1284. package/src/shiki/langs/ssh-config.js +1 -0
  1285. package/src/shiki/langs/stata.js +1 -0
  1286. package/src/shiki/langs/stylus.js +1 -0
  1287. package/src/shiki/langs/svelte.js +1 -0
  1288. package/src/shiki/langs/swift.js +1 -0
  1289. package/src/shiki/langs/system-verilog.js +1 -0
  1290. package/src/shiki/langs/systemd.js +1 -0
  1291. package/src/shiki/langs/talonscript.js +1 -0
  1292. package/src/shiki/langs/tasl.js +1 -0
  1293. package/src/shiki/langs/tcl.js +1 -0
  1294. package/src/shiki/langs/templ.js +1 -0
  1295. package/src/shiki/langs/terraform.js +1 -0
  1296. package/src/shiki/langs/tex.js +1 -0
  1297. package/src/shiki/langs/toml.js +1 -0
  1298. package/src/shiki/langs/ts-tags.js +1 -0
  1299. package/src/shiki/langs/tsv.js +1 -0
  1300. package/src/shiki/langs/tsx.js +1 -0
  1301. package/src/shiki/langs/turtle.js +1 -0
  1302. package/src/shiki/langs/twig.js +1 -0
  1303. package/src/shiki/langs/typescript.js +1 -0
  1304. package/src/shiki/langs/typespec.js +1 -0
  1305. package/src/shiki/langs/typst.js +1 -0
  1306. package/src/shiki/langs/v.js +1 -0
  1307. package/src/shiki/langs/vala.js +1 -0
  1308. package/src/shiki/langs/vb.js +1 -0
  1309. package/src/shiki/langs/verilog.js +1 -0
  1310. package/src/shiki/langs/vhdl.js +1 -0
  1311. package/src/shiki/langs/viml.js +1 -0
  1312. package/src/shiki/langs/vue-directives.js +1 -0
  1313. package/src/shiki/langs/vue-html.js +1 -0
  1314. package/src/shiki/langs/vue-interpolations.js +1 -0
  1315. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1316. package/src/shiki/langs/vue.js +1 -0
  1317. package/src/shiki/langs/vyper.js +1 -0
  1318. package/src/shiki/langs/wasm.js +1 -0
  1319. package/src/shiki/langs/wenyan.js +1 -0
  1320. package/src/shiki/langs/wgsl.js +1 -0
  1321. package/src/shiki/langs/wikitext.js +1 -0
  1322. package/src/shiki/langs/wit.js +1 -0
  1323. package/src/shiki/langs/wolfram.js +1 -0
  1324. package/src/shiki/langs/xml.js +1 -0
  1325. package/src/shiki/langs/xsl.js +1 -0
  1326. package/src/shiki/langs/yaml.js +1 -0
  1327. package/src/shiki/langs/zenscript.js +1 -0
  1328. package/src/shiki/langs/zig.js +1 -0
  1329. package/src/shiki/themes/andromeeda.js +1 -0
  1330. package/src/shiki/themes/aurora-x.js +1 -0
  1331. package/src/shiki/themes/ayu-dark.js +1 -0
  1332. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1333. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1334. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1335. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1336. package/src/shiki/themes/dark-plus.js +1 -0
  1337. package/src/shiki/themes/dracula-soft.js +1 -0
  1338. package/src/shiki/themes/dracula.js +1 -0
  1339. package/src/shiki/themes/everforest-dark.js +1 -0
  1340. package/src/shiki/themes/everforest-light.js +1 -0
  1341. package/src/shiki/themes/github-dark-default.js +1 -0
  1342. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1343. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1344. package/src/shiki/themes/github-dark.js +1 -0
  1345. package/src/shiki/themes/github-light-default.js +1 -0
  1346. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1347. package/src/shiki/themes/github-light.js +1 -0
  1348. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1349. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1350. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1351. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1352. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1353. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1354. package/src/shiki/themes/houston.js +1 -0
  1355. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1356. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1357. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1358. package/src/shiki/themes/laserwave.js +1 -0
  1359. package/src/shiki/themes/light-plus.js +1 -0
  1360. package/src/shiki/themes/material-theme-darker.js +1 -0
  1361. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1362. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1363. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1364. package/src/shiki/themes/material-theme.js +1 -0
  1365. package/src/shiki/themes/min-dark.js +1 -0
  1366. package/src/shiki/themes/min-light.js +1 -0
  1367. package/src/shiki/themes/monokai.js +1 -0
  1368. package/src/shiki/themes/night-owl.js +1 -0
  1369. package/src/shiki/themes/nord.js +1 -0
  1370. package/src/shiki/themes/one-dark-pro.js +1 -0
  1371. package/src/shiki/themes/one-light.js +1 -0
  1372. package/src/shiki/themes/plastic.js +1 -0
  1373. package/src/shiki/themes/poimandres.js +1 -0
  1374. package/src/shiki/themes/red.js +1 -0
  1375. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1376. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1377. package/src/shiki/themes/rose-pine.js +1 -0
  1378. package/src/shiki/themes/slack-dark.js +1 -0
  1379. package/src/shiki/themes/slack-ochin.js +1 -0
  1380. package/src/shiki/themes/snazzy-light.js +1 -0
  1381. package/src/shiki/themes/solarized-dark.js +1 -0
  1382. package/src/shiki/themes/solarized-light.js +1 -0
  1383. package/src/shiki/themes/synthwave-84.js +1 -0
  1384. package/src/shiki/themes/tokyo-night.js +1 -0
  1385. package/src/shiki/themes/vesper.js +1 -0
  1386. package/src/shiki/themes/vitesse-black.js +1 -0
  1387. package/src/shiki/themes/vitesse-dark.js +1 -0
  1388. package/src/shiki/themes/vitesse-light.js +1 -0
  1389. package/client.d.ts +0 -1
  1390. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1391. package/dist/lib/components/SyntaxHighlight.js +0 -57
  1392. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1393. package/dist/lib/components/context/PluginSystem.js +0 -2
  1394. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1395. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1396. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1397. package/dist/lib/plugins/openapi/Route.js +0 -6
  1398. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1399. package/dist/lib/plugins/openapi/client/worker.d.ts +0 -4
  1400. package/dist/lib/plugins/openapi/client/worker.js +0 -29
  1401. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1402. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1403. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1404. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1405. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  1406. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  1407. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  1408. package/dist/lib/plugins/openapi-worker.js +0 -8
  1409. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  1410. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  1411. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  1412. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  1413. package/dist/vite/plugin-custom-css.js +0 -55
  1414. package/dist/vite/plugin-custom-css.js.map +0 -1
  1415. package/dist/vite/prerender.d.ts +0 -21
  1416. package/dist/vite/prerender.js +0 -89
  1417. package/dist/vite/prerender.js.map +0 -1
  1418. package/lib/AnchorLink-CDlhr8gL.js +0 -706
  1419. package/lib/AnchorLink-CDlhr8gL.js.map +0 -1
  1420. package/lib/AuthenticationPlugin-DeGDVa1r.js +0 -56
  1421. package/lib/AuthenticationPlugin-DeGDVa1r.js.map +0 -1
  1422. package/lib/Button-jK0EsymC.js +0 -48
  1423. package/lib/Button-jK0EsymC.js.map +0 -1
  1424. package/lib/Dialog-k70Qfukb.js +0 -67
  1425. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  1426. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  1427. package/lib/Markdown-ievDDhFT.js +0 -15192
  1428. package/lib/Markdown-ievDDhFT.js.map +0 -1
  1429. package/lib/MdxPage-Bwn-VSsH.js +0 -174
  1430. package/lib/MdxPage-Bwn-VSsH.js.map +0 -1
  1431. package/lib/OperationList-BwBl1xrD.js +0 -4691
  1432. package/lib/OperationList-BwBl1xrD.js.map +0 -1
  1433. package/lib/Route-DlG_HTMu.js +0 -11
  1434. package/lib/Route-DlG_HTMu.js.map +0 -1
  1435. package/lib/Select-O9ZM3ZgX.js +0 -223
  1436. package/lib/Select-O9ZM3ZgX.js.map +0 -1
  1437. package/lib/SidebarBadge-DxFJcJ6V.js +0 -51
  1438. package/lib/SidebarBadge-DxFJcJ6V.js.map +0 -1
  1439. package/lib/SlotletProvider-DyomlzGx.js +0 -252
  1440. package/lib/SlotletProvider-DyomlzGx.js.map +0 -1
  1441. package/lib/SyntaxHighlight-DkLOsjHS.js +0 -2983
  1442. package/lib/SyntaxHighlight-DkLOsjHS.js.map +0 -1
  1443. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  1444. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  1445. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1446. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1447. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  1448. package/lib/assets/worker-CPsGZsve.js +0 -18201
  1449. package/lib/assets/worker-CPsGZsve.js.map +0 -1
  1450. package/lib/cn-BmFQLtkS.js.map +0 -1
  1451. package/lib/context-D1nXWxm7.js +0 -22
  1452. package/lib/context-D1nXWxm7.js.map +0 -1
  1453. package/lib/createServer-DK-g7kbB.js +0 -16089
  1454. package/lib/createServer-DK-g7kbB.js.map +0 -1
  1455. package/lib/hook-hEqe7fPB.js +0 -227
  1456. package/lib/hook-hEqe7fPB.js.map +0 -1
  1457. package/lib/index-BuAyrJe3.js +0 -46
  1458. package/lib/index-BuAyrJe3.js.map +0 -1
  1459. package/lib/index-CkwDvuPt.js +0 -4820
  1460. package/lib/index-CkwDvuPt.js.map +0 -1
  1461. package/lib/index-Czzd9rjU.js +0 -899
  1462. package/lib/index-Czzd9rjU.js.map +0 -1
  1463. package/lib/index-DNxQ_rCt.js +0 -1273
  1464. package/lib/index-DNxQ_rCt.js.map +0 -1
  1465. package/lib/index-Yn8c3UWE.js +0 -921
  1466. package/lib/index-Yn8c3UWE.js.map +0 -1
  1467. package/lib/index.esm-C5mr_sKO.js +0 -1193
  1468. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  1469. package/lib/invariant-Caa8-XvF.js +0 -26
  1470. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1471. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1472. package/lib/prism-bash.min-DadFsM4Z.js +0 -7
  1473. package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
  1474. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1475. package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
  1476. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1477. package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
  1478. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1479. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1480. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1481. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1482. package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
  1483. package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
  1484. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1485. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1486. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1487. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1488. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1489. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1490. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1491. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1492. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1493. package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
  1494. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1495. package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
  1496. package/lib/router-lfyopgBI.js +0 -3024
  1497. package/lib/router-lfyopgBI.js.map +0 -1
  1498. package/lib/state-tsXBLONe.js +0 -203
  1499. package/lib/state-tsXBLONe.js.map +0 -1
  1500. package/lib/useExposedProps-CTPtylCV.js +0 -10
  1501. package/lib/useExposedProps-CTPtylCV.js.map +0 -1
  1502. package/lib/utils-DcpDOncX.js +0 -1218
  1503. package/lib/utils-DcpDOncX.js.map +0 -1
  1504. package/lib/zudoku.openapi-worker.js +0 -15
  1505. package/lib/zudoku.openapi-worker.js.map +0 -1
  1506. package/src/lib/components/SyntaxHighlight.tsx +0 -161
  1507. package/src/lib/components/context/PluginSystem.ts +0 -0
  1508. package/src/lib/plugins/openapi/Route.tsx +0 -19
  1509. package/src/lib/plugins/openapi/client/worker.ts +0 -44
  1510. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  1511. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  1512. package/src/lib/plugins/openapi-worker.ts +0 -11
  1513. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1514. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1515. /package/dist/lib/{components/context/PluginSystem.d.ts → hooks/useEvent.test.d.ts} +0 -0
@@ -1,1589 +1,37 @@
1
- var pt = Object.defineProperty;
2
- var Ne = (e) => {
3
- throw TypeError(e);
4
- };
5
- var vt = (e, t, r) => t in e ? pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
- var N = (e, t, r) => vt(e, typeof t != "symbol" ? t + "" : t, r), Ce = (e, t, r) => t.has(e) || Ne("Cannot " + r);
7
- var l = (e, t, r) => (Ce(e, t, "read from private field"), r ? r.call(e) : t.get(e)), C = (e, t, r) => t.has(e) ? Ne("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, s) => (Ce(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r);
8
- var X = (e, t, r, s) => ({
9
- set _(n) {
10
- y(e, t, n, r);
11
- },
12
- get _() {
13
- return l(e, t, s);
14
- }
15
- });
16
- import { a as Be, A as xt, H as de, M as yt, u as bt } from "./AnchorLink-CDlhr8gL.js";
17
- import { d as jt, R as wt, N as re, u as Nt, L as he } from "./index-Yn8c3UWE.js";
18
- import { u as Ct } from "./state-tsXBLONe.js";
19
- import { E as ze, S as O, a as St, R as Pt } from "./SlotletProvider-DyomlzGx.js";
20
- import { j as a } from "./jsx-runtime-B6kdoens.js";
21
- import { Button as kt } from "./ui/Button.js";
22
- import { Callout as Et } from "./ui/Callout.js";
23
- import { S as He, l as Le, Q as At, n as w, m as Se, o as Pe, p as M, q as Ot, r as Mt, t as Dt, v as Rt, w as ke, x as Ee, y as Tt, h as Ae, z as Oe, A as It, d as _t, B as Ue, C as Ft, j as q, u as Q, D as Ke, E as Qt, g as qt, Z as Bt } from "./utils-DcpDOncX.js";
24
- import { M as zt, u as ae } from "./hook-hEqe7fPB.js";
25
- import * as G from "react";
26
- import Ht, { useState as F, StrictMode as $e, useEffect as B, useRef as fe, useCallback as Lt, Suspense as me, memo as Ve, forwardRef as Ut, createContext as Ze, Component as Kt, createElement as Me, useMemo as se, useContext as $t, Fragment as Vt } from "react";
27
- import { a as ge } from "./_commonjsHelpers-BkfeUUK-.js";
28
- import { B as Zt } from "./router-lfyopgBI.js";
29
- import { I as Wt, y as Yt, u as pe, j as ve, O as We } from "./index-Czzd9rjU.js";
30
- import { S as le, a as ne } from "./SidebarBadge-DxFJcJ6V.js";
31
- import { C as xe } from "./ClientOnly-E7hGysn1.js";
32
- import { ChevronRightIcon as Jt, ExternalLinkIcon as Xt, CircleXIcon as Gt, SearchIcon as er, MoonStarIcon as tr, SunIcon as rr, MenuIcon as ar, PanelLeftIcon as sr } from "lucide-react";
33
- import { Drawer as Ye, DrawerTrigger as Je, DrawerContent as Xe, DrawerTitle as Ge } from "./ui/Drawer.js";
34
- import { c as R } from "./cn-BmFQLtkS.js";
35
- import { u as ye, a as nr, V as ir } from "./Markdown-ievDDhFT.js";
36
- import { c as or, a as lr } from "./index-BuAyrJe3.js";
37
- import * as ie from "@radix-ui/react-collapsible";
38
- import { B as ce } from "./Button-jK0EsymC.js";
39
- import { DropdownMenu as cr, DropdownMenuTrigger as ur, DropdownMenuContent as dr, DropdownMenuLabel as hr, DropdownMenuSeparator as fr, DropdownMenuSub as mr, DropdownMenuSubTrigger as gr, DropdownMenuPortal as pr, DropdownMenuSubContent as vr, DropdownMenuItem as xr } from "./ui/DropdownMenu.js";
40
- import { VisuallyHidden as et } from "@radix-ui/react-visually-hidden";
41
- import { z as yr, J as br } from "./SyntaxHighlight-DkLOsjHS.js";
42
- import { Z as jr } from "./invariant-Caa8-XvF.js";
43
- import { S as wr } from "./Spinner-3cQDBVGr.js";
44
- function Nr({ error: e }) {
45
- return /* @__PURE__ */ a.jsx(ze, { error: e });
46
- }
47
- var E, Fe, Cr = (Fe = class extends He {
48
- constructor(t = {}) {
49
- super();
50
- C(this, E);
51
- this.config = t, y(this, E, /* @__PURE__ */ new Map());
52
- }
53
- build(t, r, s) {
54
- const n = r.queryKey, o = r.queryHash ?? Le(n, r);
55
- let i = this.get(o);
56
- return i || (i = new At({
57
- cache: this,
58
- queryKey: n,
59
- queryHash: o,
60
- options: t.defaultQueryOptions(r),
61
- state: s,
62
- defaultOptions: t.getQueryDefaults(n)
63
- }), this.add(i)), i;
64
- }
65
- add(t) {
66
- l(this, E).has(t.queryHash) || (l(this, E).set(t.queryHash, t), this.notify({
67
- type: "added",
68
- query: t
69
- }));
70
- }
71
- remove(t) {
72
- const r = l(this, E).get(t.queryHash);
73
- r && (t.destroy(), r === t && l(this, E).delete(t.queryHash), this.notify({ type: "removed", query: t }));
74
- }
75
- clear() {
76
- w.batch(() => {
77
- this.getAll().forEach((t) => {
78
- this.remove(t);
79
- });
80
- });
81
- }
82
- get(t) {
83
- return l(this, E).get(t);
84
- }
85
- getAll() {
86
- return [...l(this, E).values()];
87
- }
88
- find(t) {
89
- const r = { exact: !0, ...t };
90
- return this.getAll().find(
91
- (s) => Se(r, s)
92
- );
93
- }
94
- findAll(t = {}) {
95
- const r = this.getAll();
96
- return Object.keys(t).length > 0 ? r.filter((s) => Se(t, s)) : r;
97
- }
98
- notify(t) {
99
- w.batch(() => {
100
- this.listeners.forEach((r) => {
101
- r(t);
102
- });
103
- });
104
- }
105
- onFocus() {
106
- w.batch(() => {
107
- this.getAll().forEach((t) => {
108
- t.onFocus();
109
- });
110
- });
111
- }
112
- onOnline() {
113
- w.batch(() => {
114
- this.getAll().forEach((t) => {
115
- t.onOnline();
116
- });
117
- });
118
- }
119
- }, E = new WeakMap(), Fe), j, Z, Qe, Sr = (Qe = class extends He {
120
- constructor(t = {}) {
121
- super();
122
- C(this, j);
123
- C(this, Z);
124
- this.config = t, y(this, j, /* @__PURE__ */ new Map()), y(this, Z, Date.now());
125
- }
126
- build(t, r, s) {
127
- const n = new zt({
128
- mutationCache: this,
129
- mutationId: ++X(this, Z)._,
130
- options: t.defaultMutationOptions(r),
131
- state: s
132
- });
133
- return this.add(n), n;
134
- }
135
- add(t) {
136
- const r = ee(t), s = l(this, j).get(r) ?? [];
137
- s.push(t), l(this, j).set(r, s), this.notify({ type: "added", mutation: t });
138
- }
139
- remove(t) {
140
- var s;
141
- const r = ee(t);
142
- if (l(this, j).has(r)) {
143
- const n = (s = l(this, j).get(r)) == null ? void 0 : s.filter((o) => o !== t);
144
- n && (n.length === 0 ? l(this, j).delete(r) : l(this, j).set(r, n));
145
- }
146
- this.notify({ type: "removed", mutation: t });
147
- }
148
- canRun(t) {
149
- var s;
150
- const r = (s = l(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n.state.status === "pending");
151
- return !r || r === t;
152
- }
153
- runNext(t) {
154
- var s;
155
- const r = (s = l(this, j).get(ee(t))) == null ? void 0 : s.find((n) => n !== t && n.state.isPaused);
156
- return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
157
- }
158
- clear() {
159
- w.batch(() => {
160
- this.getAll().forEach((t) => {
161
- this.remove(t);
162
- });
163
- });
164
- }
165
- getAll() {
166
- return [...l(this, j).values()].flat();
167
- }
168
- find(t) {
169
- const r = { exact: !0, ...t };
170
- return this.getAll().find(
171
- (s) => Pe(r, s)
172
- );
173
- }
174
- findAll(t = {}) {
175
- return this.getAll().filter((r) => Pe(t, r));
176
- }
177
- notify(t) {
178
- w.batch(() => {
179
- this.listeners.forEach((r) => {
180
- r(t);
181
- });
182
- });
183
- }
184
- resumePausedMutations() {
185
- const t = this.getAll().filter((r) => r.state.isPaused);
186
- return w.batch(
187
- () => Promise.all(
188
- t.map((r) => r.continue().catch(M))
189
- )
190
- );
191
- }
192
- }, j = new WeakMap(), Z = new WeakMap(), Qe);
193
- function ee(e) {
194
- var t;
195
- return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
196
- }
197
- function De(e) {
198
- return {
199
- onFetch: (t, r) => {
200
- var p, m, f, x, v;
201
- const s = t.options, n = (f = (m = (p = t.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : m.fetchMore) == null ? void 0 : f.direction, o = ((x = t.state.data) == null ? void 0 : x.pages) || [], i = ((v = t.state.data) == null ? void 0 : v.pageParams) || [];
202
- let c = { pages: [], pageParams: [] }, u = 0;
203
- const d = async () => {
204
- let h = !1;
205
- const S = (b) => {
206
- Object.defineProperty(b, "signal", {
207
- enumerable: !0,
208
- get: () => (t.signal.aborted ? h = !0 : t.signal.addEventListener("abort", () => {
209
- h = !0;
210
- }), t.signal)
211
- });
212
- }, Y = Ot(t.options, t.fetchOptions), K = async (b, P, $) => {
213
- if (h)
214
- return Promise.reject();
215
- if (P == null && b.pages.length)
216
- return Promise.resolve(b);
217
- const J = {
218
- queryKey: t.queryKey,
219
- pageParam: P,
220
- direction: $ ? "backward" : "forward",
221
- meta: t.options.meta
222
- };
223
- S(J);
224
- const gt = await Y(
225
- J
226
- ), { maxPages: je } = t.options, we = $ ? Mt : Dt;
227
- return {
228
- pages: we(b.pages, gt, je),
229
- pageParams: we(b.pageParams, P, je)
230
- };
231
- };
232
- if (n && o.length) {
233
- const b = n === "backward", P = b ? Pr : Re, $ = {
234
- pages: o,
235
- pageParams: i
236
- }, J = P(s, $);
237
- c = await K($, J, b);
238
- } else {
239
- const b = e ?? o.length;
240
- do {
241
- const P = u === 0 ? i[0] ?? s.initialPageParam : Re(s, c);
242
- if (u > 0 && P == null)
243
- break;
244
- c = await K(c, P), u++;
245
- } while (u < b);
246
- }
247
- return c;
248
- };
249
- t.options.persister ? t.fetchFn = () => {
250
- var h, S;
251
- return (S = (h = t.options).persister) == null ? void 0 : S.call(
252
- h,
253
- d,
254
- {
255
- queryKey: t.queryKey,
256
- meta: t.options.meta,
257
- signal: t.signal
258
- },
259
- r
260
- );
261
- } : t.fetchFn = d;
262
- }
263
- };
264
- }
265
- function Re(e, { pages: t, pageParams: r }) {
266
- const s = t.length - 1;
267
- return t.length > 0 ? e.getNextPageParam(
268
- t[s],
269
- t,
270
- r[s],
271
- r
272
- ) : void 0;
273
- }
274
- function Pr(e, { pages: t, pageParams: r }) {
275
- var s;
276
- return t.length > 0 ? (s = e.getPreviousPageParam) == null ? void 0 : s.call(e, t[0], t, r[0], r) : void 0;
277
- }
278
- var g, T, I, z, H, _, L, U, qe, kr = (qe = class {
279
- constructor(e = {}) {
280
- C(this, g);
281
- C(this, T);
282
- C(this, I);
283
- C(this, z);
284
- C(this, H);
285
- C(this, _);
286
- C(this, L);
287
- C(this, U);
288
- y(this, g, e.queryCache || new Cr()), y(this, T, e.mutationCache || new Sr()), y(this, I, e.defaultOptions || {}), y(this, z, /* @__PURE__ */ new Map()), y(this, H, /* @__PURE__ */ new Map()), y(this, _, 0);
289
- }
290
- mount() {
291
- X(this, _)._++, l(this, _) === 1 && (y(this, L, Rt.subscribe(async (e) => {
292
- e && (await this.resumePausedMutations(), l(this, g).onFocus());
293
- })), y(this, U, ke.subscribe(async (e) => {
294
- e && (await this.resumePausedMutations(), l(this, g).onOnline());
295
- })));
296
- }
297
- unmount() {
298
- var e, t;
299
- X(this, _)._--, l(this, _) === 0 && ((e = l(this, L)) == null || e.call(this), y(this, L, void 0), (t = l(this, U)) == null || t.call(this), y(this, U, void 0));
300
- }
301
- isFetching(e) {
302
- return l(this, g).findAll({ ...e, fetchStatus: "fetching" }).length;
303
- }
304
- isMutating(e) {
305
- return l(this, T).findAll({ ...e, status: "pending" }).length;
306
- }
307
- getQueryData(e) {
308
- var r;
309
- const t = this.defaultQueryOptions({ queryKey: e });
310
- return (r = l(this, g).get(t.queryHash)) == null ? void 0 : r.state.data;
311
- }
312
- ensureQueryData(e) {
313
- const t = this.getQueryData(e.queryKey);
314
- if (t === void 0)
315
- return this.fetchQuery(e);
316
- {
317
- const r = this.defaultQueryOptions(e), s = l(this, g).build(this, r);
318
- return e.revalidateIfStale && s.isStaleByTime(Ee(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(t);
319
- }
320
- }
321
- getQueriesData(e) {
322
- return l(this, g).findAll(e).map(({ queryKey: t, state: r }) => {
323
- const s = r.data;
324
- return [t, s];
325
- });
326
- }
327
- setQueryData(e, t, r) {
328
- const s = this.defaultQueryOptions({ queryKey: e }), n = l(this, g).get(
329
- s.queryHash
330
- ), o = n == null ? void 0 : n.state.data, i = Tt(t, o);
331
- if (i !== void 0)
332
- return l(this, g).build(this, s).setData(i, { ...r, manual: !0 });
333
- }
334
- setQueriesData(e, t, r) {
335
- return w.batch(
336
- () => l(this, g).findAll(e).map(({ queryKey: s }) => [
337
- s,
338
- this.setQueryData(s, t, r)
339
- ])
340
- );
341
- }
342
- getQueryState(e) {
343
- var r;
344
- const t = this.defaultQueryOptions({ queryKey: e });
345
- return (r = l(this, g).get(t.queryHash)) == null ? void 0 : r.state;
346
- }
347
- removeQueries(e) {
348
- const t = l(this, g);
349
- w.batch(() => {
350
- t.findAll(e).forEach((r) => {
351
- t.remove(r);
352
- });
353
- });
354
- }
355
- resetQueries(e, t) {
356
- const r = l(this, g), s = {
357
- type: "active",
358
- ...e
359
- };
360
- return w.batch(() => (r.findAll(e).forEach((n) => {
361
- n.reset();
362
- }), this.refetchQueries(s, t)));
363
- }
364
- cancelQueries(e = {}, t = {}) {
365
- const r = { revert: !0, ...t }, s = w.batch(
366
- () => l(this, g).findAll(e).map((n) => n.cancel(r))
367
- );
368
- return Promise.all(s).then(M).catch(M);
369
- }
370
- invalidateQueries(e = {}, t = {}) {
371
- return w.batch(() => {
372
- if (l(this, g).findAll(e).forEach((s) => {
373
- s.invalidate();
374
- }), e.refetchType === "none")
375
- return Promise.resolve();
376
- const r = {
377
- ...e,
378
- type: e.refetchType ?? e.type ?? "active"
379
- };
380
- return this.refetchQueries(r, t);
381
- });
382
- }
383
- refetchQueries(e = {}, t) {
384
- const r = {
385
- ...t,
386
- cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
387
- }, s = w.batch(
388
- () => l(this, g).findAll(e).filter((n) => !n.isDisabled()).map((n) => {
389
- let o = n.fetch(void 0, r);
390
- return r.throwOnError || (o = o.catch(M)), n.state.fetchStatus === "paused" ? Promise.resolve() : o;
391
- })
392
- );
393
- return Promise.all(s).then(M);
394
- }
395
- fetchQuery(e) {
396
- const t = this.defaultQueryOptions(e);
397
- t.retry === void 0 && (t.retry = !1);
398
- const r = l(this, g).build(this, t);
399
- return r.isStaleByTime(
400
- Ee(t.staleTime, r)
401
- ) ? r.fetch(t) : Promise.resolve(r.state.data);
402
- }
403
- prefetchQuery(e) {
404
- return this.fetchQuery(e).then(M).catch(M);
405
- }
406
- fetchInfiniteQuery(e) {
407
- return e.behavior = De(e.pages), this.fetchQuery(e);
408
- }
409
- prefetchInfiniteQuery(e) {
410
- return this.fetchInfiniteQuery(e).then(M).catch(M);
411
- }
412
- ensureInfiniteQueryData(e) {
413
- return e.behavior = De(e.pages), this.ensureQueryData(e);
414
- }
415
- resumePausedMutations() {
416
- return ke.isOnline() ? l(this, T).resumePausedMutations() : Promise.resolve();
417
- }
418
- getQueryCache() {
419
- return l(this, g);
420
- }
421
- getMutationCache() {
422
- return l(this, T);
423
- }
424
- getDefaultOptions() {
425
- return l(this, I);
426
- }
427
- setDefaultOptions(e) {
428
- y(this, I, e);
429
- }
430
- setQueryDefaults(e, t) {
431
- l(this, z).set(Ae(e), {
432
- queryKey: e,
433
- defaultOptions: t
434
- });
435
- }
436
- getQueryDefaults(e) {
437
- const t = [...l(this, z).values()];
438
- let r = {};
439
- return t.forEach((s) => {
440
- Oe(e, s.queryKey) && (r = { ...r, ...s.defaultOptions });
441
- }), r;
442
- }
443
- setMutationDefaults(e, t) {
444
- l(this, H).set(Ae(e), {
445
- mutationKey: e,
446
- defaultOptions: t
447
- });
448
- }
449
- getMutationDefaults(e) {
450
- const t = [...l(this, H).values()];
451
- let r = {};
452
- return t.forEach((s) => {
453
- Oe(e, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
454
- }), r;
455
- }
456
- defaultQueryOptions(e) {
457
- if (e._defaulted)
458
- return e;
459
- const t = {
460
- ...l(this, I).queries,
461
- ...this.getQueryDefaults(e.queryKey),
462
- ...e,
463
- _defaulted: !0
464
- };
465
- return t.queryHash || (t.queryHash = Le(
466
- t.queryKey,
467
- t
468
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === It && (t.enabled = !1), t;
469
- }
470
- defaultMutationOptions(e) {
471
- return e != null && e._defaulted ? e : {
472
- ...l(this, I).mutations,
473
- ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
474
- ...e,
475
- _defaulted: !0
476
- };
477
- }
478
- clear() {
479
- l(this, g).clear(), l(this, T).clear();
480
- }
481
- }, g = new WeakMap(), T = new WeakMap(), I = new WeakMap(), z = new WeakMap(), H = new WeakMap(), _ = new WeakMap(), L = new WeakMap(), U = new WeakMap(), qe);
482
- function Er(e) {
483
- return e;
484
- }
485
- function Te(e, t, r) {
486
- var u, d;
487
- if (typeof t != "object" || t === null)
488
- return;
489
- const s = e.getMutationCache(), n = e.getQueryCache(), o = ((u = r == null ? void 0 : r.defaultOptions) == null ? void 0 : u.deserializeData) ?? ((d = e.getDefaultOptions().hydrate) == null ? void 0 : d.deserializeData) ?? Er, i = t.mutations || [], c = t.queries || [];
490
- i.forEach(({ state: p, ...m }) => {
491
- var f, x;
492
- s.build(
493
- e,
494
- {
495
- ...(f = e.getDefaultOptions().hydrate) == null ? void 0 : f.mutations,
496
- ...(x = r == null ? void 0 : r.defaultOptions) == null ? void 0 : x.mutations,
497
- ...m
498
- },
499
- p
500
- );
501
- }), c.forEach(({ queryKey: p, state: m, queryHash: f, meta: x, promise: v }) => {
502
- var Y, K;
503
- let h = n.get(f);
504
- const S = m.data === void 0 ? m.data : o(m.data);
505
- if (h) {
506
- if (h.state.dataUpdatedAt < m.dataUpdatedAt) {
507
- const { fetchStatus: b, ...P } = m;
508
- h.setState({
509
- ...P,
510
- data: S
511
- });
512
- }
513
- } else
514
- h = n.build(
515
- e,
516
- {
517
- ...(Y = e.getDefaultOptions().hydrate) == null ? void 0 : Y.queries,
518
- ...(K = r == null ? void 0 : r.defaultOptions) == null ? void 0 : K.queries,
519
- queryKey: p,
520
- queryHash: f,
521
- meta: x
522
- },
523
- // Reset fetch status to idle to avoid
524
- // query being stuck in fetching state upon hydration
525
- {
526
- ...m,
527
- data: S,
528
- fetchStatus: "idle"
529
- }
530
- );
531
- if (v) {
532
- const b = Promise.resolve(v).then(o);
533
- h.fetch(void 0, { initialPromise: b });
534
- }
535
- });
536
- }
537
- var Ar = ({
538
- children: e,
539
- options: t = {},
540
- state: r,
541
- queryClient: s
542
- }) => {
543
- const n = _t(s), [o, i] = G.useState(), c = G.useRef(t);
544
- return c.current = t, G.useMemo(() => {
545
- if (r) {
546
- if (typeof r != "object")
547
- return;
548
- const u = n.getQueryCache(), d = r.queries || [], p = [], m = [];
549
- for (const f of d) {
550
- const x = u.get(f.queryHash);
551
- if (!x)
552
- p.push(f);
553
- else {
554
- const v = f.state.dataUpdatedAt > x.state.dataUpdatedAt, h = o == null ? void 0 : o.find(
555
- (S) => S.queryHash === f.queryHash
556
- );
557
- v && (!h || f.state.dataUpdatedAt > h.state.dataUpdatedAt) && m.push(f);
558
- }
559
- }
560
- p.length > 0 && Te(n, { queries: p }, c.current), m.length > 0 && i(
561
- (f) => f ? [...f, ...m] : m
562
- );
563
- }
564
- }, [n, o, r]), G.useEffect(() => {
565
- o && (Te(n, { queries: o }, c.current), i(void 0));
566
- }, [n, o]), e;
567
- }, W = {};
568
- const Or = /* @__PURE__ */ ge(Zt), Mr = /* @__PURE__ */ ge(Wt), Dr = /* @__PURE__ */ ge(jt);
569
- Object.defineProperty(W, "__esModule", { value: !0 });
570
- var Rr = Ht, A = Or, be = Mr, D = Dr;
571
- function Tr(e) {
572
- if (e && e.__esModule) return e;
573
- var t = /* @__PURE__ */ Object.create(null);
574
- return e && Object.keys(e).forEach(function(r) {
575
- if (r !== "default") {
576
- var s = Object.getOwnPropertyDescriptor(e, r);
577
- Object.defineProperty(t, r, s.get ? s : {
578
- enumerable: !0,
579
- get: function() {
580
- return e[r];
581
- }
582
- });
583
- }
584
- }), t.default = e, Object.freeze(t);
585
- }
586
- var k = /* @__PURE__ */ Tr(Rr);
587
- function Ir({
588
- basename: e,
589
- children: t,
590
- location: r = "/",
591
- future: s
592
- }) {
593
- typeof r == "string" && (r = D.parsePath(r));
594
- let n = A.Action.Pop, o = {
595
- pathname: r.pathname || "/",
596
- search: r.search || "",
597
- hash: r.hash || "",
598
- state: r.state != null ? r.state : null,
599
- key: r.key || "default"
600
- }, i = tt();
601
- return /* @__PURE__ */ k.createElement(D.Router, {
602
- basename: e,
603
- children: t,
604
- location: o,
605
- navigationType: n,
606
- navigator: i,
607
- future: s,
608
- static: !0
609
- });
610
- }
611
- function _r({
612
- context: e,
613
- router: t,
614
- hydrate: r = !0,
615
- nonce: s
616
- }) {
617
- t && e || (process.env.NODE_ENV !== "production" ? A.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : A.UNSAFE_invariant(!1));
618
- let n = {
619
- router: t,
620
- navigator: tt(),
621
- static: !0,
622
- staticContext: e,
623
- basename: e.basename || "/"
624
- }, o = /* @__PURE__ */ new Map(), i = "";
625
- if (r !== !1) {
626
- let u = {
627
- loaderData: e.loaderData,
628
- actionData: e.actionData,
629
- errors: Qr(e.errors)
630
- };
631
- i = `window.__staticRouterHydrationData = JSON.parse(${Ur(JSON.stringify(JSON.stringify(u)))});`;
632
- }
633
- let {
634
- state: c
635
- } = n.router;
636
- return /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(D.UNSAFE_DataRouterContext.Provider, {
637
- value: n
638
- }, /* @__PURE__ */ k.createElement(D.UNSAFE_DataRouterStateContext.Provider, {
639
- value: c
640
- }, /* @__PURE__ */ k.createElement(D.UNSAFE_FetchersContext.Provider, {
641
- value: o
642
- }, /* @__PURE__ */ k.createElement(D.UNSAFE_ViewTransitionContext.Provider, {
643
- value: {
644
- isTransitioning: !1
645
- }
646
- }, /* @__PURE__ */ k.createElement(D.Router, {
647
- basename: n.basename,
648
- location: c.location,
649
- navigationType: c.historyAction,
650
- navigator: n.navigator,
651
- static: n.static,
652
- future: {
653
- v7_relativeSplatPath: t.future.v7_relativeSplatPath
654
- }
655
- }, /* @__PURE__ */ k.createElement(Fr, {
656
- routes: t.routes,
657
- future: t.future,
658
- state: c
659
- })))))), i ? /* @__PURE__ */ k.createElement("script", {
660
- suppressHydrationWarning: !0,
661
- nonce: s,
662
- dangerouslySetInnerHTML: {
663
- __html: i
664
- }
665
- }) : null);
666
- }
667
- function Fr({
668
- routes: e,
669
- future: t,
670
- state: r
671
- }) {
672
- return be.UNSAFE_useRoutesImpl(e, void 0, r, t);
673
- }
674
- function Qr(e) {
675
- if (!e) return null;
676
- let t = Object.entries(e), r = {};
677
- for (let [s, n] of t)
678
- A.isRouteErrorResponse(n) ? r[s] = {
679
- ...n,
680
- __type: "RouteErrorResponse"
681
- } : n instanceof Error ? r[s] = {
682
- message: n.message,
683
- __type: "Error",
684
- // If this is a subclass (i.e., ReferenceError), send up the type so we
685
- // can re-create the same type during hydration.
686
- ...n.name !== "Error" ? {
687
- __subType: n.name
688
- } : {}
689
- } : r[s] = n;
690
- return r;
691
- }
692
- function tt() {
693
- return {
694
- createHref: rt,
695
- encodeLocation: at,
696
- push(e) {
697
- throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
698
- },
699
- replace(e) {
700
- throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`);
701
- },
702
- go(e) {
703
- throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`);
704
- },
705
- back() {
706
- throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
707
- },
708
- forward() {
709
- throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
710
- }
711
- };
712
- }
713
- function qr(e, t) {
714
- return A.createStaticHandler(e, {
715
- ...t,
716
- mapRouteProperties: be.UNSAFE_mapRouteProperties
717
- });
718
- }
719
- function Br(e, t, r = {}) {
720
- let s = {}, n = A.UNSAFE_convertRoutesToDataRoutes(e, be.UNSAFE_mapRouteProperties, void 0, s), o = t.matches.map((c) => {
721
- let u = s[c.route.id] || c.route;
722
- return {
723
- ...c,
724
- route: u
725
- };
726
- }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
727
- return {
728
- get basename() {
729
- return t.basename;
730
- },
731
- get future() {
732
- var c, u;
733
- return {
734
- v7_fetcherPersist: !1,
735
- v7_normalizeFormMethod: !1,
736
- v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
737
- v7_prependBasename: !1,
738
- v7_relativeSplatPath: ((u = r.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
739
- v7_skipActionErrorRevalidation: !1
740
- };
741
- },
742
- get state() {
743
- return {
744
- historyAction: A.Action.Pop,
745
- location: t.location,
746
- matches: o,
747
- loaderData: t.loaderData,
748
- actionData: t.actionData,
749
- errors: t.errors,
750
- initialized: !0,
751
- navigation: A.IDLE_NAVIGATION,
752
- restoreScrollPosition: null,
753
- preventScrollReset: !1,
754
- revalidation: "idle",
755
- fetchers: /* @__PURE__ */ new Map(),
756
- blockers: /* @__PURE__ */ new Map()
757
- };
758
- },
759
- get routes() {
760
- return n;
761
- },
762
- get window() {
763
- },
764
- initialize() {
765
- throw i("initialize");
766
- },
767
- subscribe() {
768
- throw i("subscribe");
769
- },
770
- enableScrollRestoration() {
771
- throw i("enableScrollRestoration");
772
- },
773
- navigate() {
774
- throw i("navigate");
775
- },
776
- fetch() {
777
- throw i("fetch");
778
- },
779
- revalidate() {
780
- throw i("revalidate");
781
- },
782
- createHref: rt,
783
- encodeLocation: at,
784
- getFetcher() {
785
- return A.IDLE_FETCHER;
786
- },
787
- deleteFetcher() {
788
- throw i("deleteFetcher");
789
- },
790
- dispose() {
791
- throw i("dispose");
792
- },
793
- getBlocker() {
794
- return A.IDLE_BLOCKER;
795
- },
796
- deleteBlocker() {
797
- throw i("deleteBlocker");
798
- },
799
- patchRoutes() {
800
- throw i("patchRoutes");
801
- },
802
- _internalFetchControllers: /* @__PURE__ */ new Map(),
803
- _internalActiveDeferreds: /* @__PURE__ */ new Map(),
804
- _internalSetRoutes() {
805
- throw i("_internalSetRoutes");
806
- }
807
- };
808
- }
809
- function rt(e) {
810
- return typeof e == "string" ? e : D.createPath(e);
811
- }
812
- function at(e) {
813
- let t = typeof e == "string" ? e : D.createPath(e);
814
- t = t.replace(/ $/, "%20");
815
- let r = zr.test(t) ? new URL(t) : new URL(t, "http://localhost");
816
- return {
817
- pathname: r.pathname,
818
- search: r.search,
819
- hash: r.hash
820
- };
821
- }
822
- const zr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Hr = {
823
- "&": "\\u0026",
824
- ">": "\\u003e",
825
- "<": "\\u003c",
826
- "\u2028": "\\u2028",
827
- "\u2029": "\\u2029"
828
- }, Lr = /[&><\u2028\u2029]/g;
829
- function Ur(e) {
830
- return e.replace(Lr, (t) => Hr[t]);
831
- }
832
- W.StaticRouter = Ir;
833
- var Kr = W.StaticRouterProvider = _r;
834
- W.createStaticHandler = qr;
835
- W.createStaticRouter = Br;
836
- const $r = ({
837
- router: e,
838
- hydrate: t = !1
839
- }) => {
840
- const [r] = F(
841
- () => new kr({
842
- defaultOptions: {
843
- queries: {
844
- staleTime: 3e5
845
- }
846
- }
847
- })
848
- );
849
- return /* @__PURE__ */ a.jsx($e, { children: /* @__PURE__ */ a.jsx(Ue, { client: r, children: /* @__PURE__ */ a.jsx(Ar, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Be, { children: /* @__PURE__ */ a.jsx(le.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(
850
- wt,
851
- {
852
- router: e,
853
- future: { v7_startTransition: !0 }
854
- }
855
- ) }) }) }) }) });
856
- }, Vr = ({
857
- router: e,
858
- context: t,
859
- queryClient: r,
860
- helmetContext: s
861
- }) => /* @__PURE__ */ a.jsx($e, { children: /* @__PURE__ */ a.jsx(Ue, { client: r, children: /* @__PURE__ */ a.jsx(Be, { context: s, children: /* @__PURE__ */ a.jsx(Kr, { router: e, context: t }) }) }) }), Zr = ({
862
- category: e,
863
- level: t
864
- }) => {
865
- var f, x;
866
- const r = Ft(e), [s, n] = F(!1), o = e.collapsible ?? !0, i = e.collapsed ?? !0, c = !!(!o || !i || r), [u, d] = F(c), p = Yt(((f = e.link) == null ? void 0 : f.id) ?? "");
867
- B(() => {
868
- r && d(!0);
869
- }, [r]);
870
- const m = o && /* @__PURE__ */ a.jsx(
871
- "button",
872
- {
873
- type: "button",
874
- onClick: (v) => {
875
- v.preventDefault(), d((h) => !h), n(!0);
876
- },
877
- children: /* @__PURE__ */ a.jsx(
878
- Jt,
879
- {
880
- size: 16,
881
- className: R(
882
- s && "transition",
883
- "shrink-0 group-data-[state=open]:rotate-90"
884
- )
885
- }
886
- )
887
- }
888
- );
889
- return /* @__PURE__ */ a.jsxs(
890
- ie.Root,
891
- {
892
- className: "flex flex-col",
893
- defaultOpen: c,
894
- open: u,
895
- onOpenChange: () => d(!0),
896
- children: [
897
- /* @__PURE__ */ a.jsx(ie.Trigger, { className: "group", asChild: !0, disabled: !o, children: /* @__PURE__ */ a.jsxs(
898
- "div",
899
- {
900
- onClick: () => n(!0),
901
- className: V({
902
- isActive: !1,
903
- isTopLevel: t === 0,
904
- className: [
905
- "text-start",
906
- o ? "cursor-pointer" : "cursor-default hover:bg-transparent"
907
- ]
908
- }),
909
- children: [
910
- e.icon && /* @__PURE__ */ a.jsx(
911
- e.icon,
912
- {
913
- size: 16,
914
- className: R(
915
- "align-[-0.125em] -translate-x-1",
916
- p && "text-primary"
917
- )
918
- }
919
- ),
920
- ((x = e.link) == null ? void 0 : x.type) === "doc" ? /* @__PURE__ */ a.jsx(
921
- re,
922
- {
923
- to: q(e.link.id),
924
- className: "flex-1",
925
- onClick: () => {
926
- p && !u && d(!0);
927
- },
928
- children: /* @__PURE__ */ a.jsxs(
929
- "div",
930
- {
931
- className: R(
932
- "flex items-center gap-2 justify-between w-full",
933
- p ? "text-primary" : "text-foreground/80"
934
- ),
935
- children: [
936
- /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
937
- m
938
- ]
939
- }
940
- )
941
- }
942
- ) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
943
- /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
944
- m
945
- ] })
946
- ]
947
- }
948
- ) }),
949
- /* @__PURE__ */ a.jsx(
950
- ie.Content,
951
- {
952
- className: R(
953
- // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
954
- s && "CollapsibleContent"
955
- ),
956
- children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: e.items.map((v) => /* @__PURE__ */ a.jsx(
957
- ue,
958
- {
959
- level: t + 1,
960
- item: v
961
- },
962
- ("id" in v ? v.id : "") + ("href" in v ? v.href : "") + v.label
963
- )) })
964
- }
965
- )
966
- ]
967
- }
968
- );
969
- }, V = or(
970
- "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
971
- {
972
- variants: {
973
- isTopLevel: {
974
- true: "font-medium -mx-[--padding-nav-item]",
975
- false: "-mr-[--padding-nav-item] ml-[--padding-nav-item]"
976
- },
977
- isActive: {
978
- true: "text-primary font-medium",
979
- false: "text-foreground/80"
980
- },
981
- isMuted: {
982
- true: "text-foreground/30",
983
- false: ""
984
- }
985
- },
986
- defaultVariants: {
987
- isActive: !1
988
- }
989
- }
990
- ), st = "data-anchor", ue = ({
991
- item: e,
992
- level: t = 0
993
- }) => {
994
- var n, o;
995
- const { activeAnchor: r } = ye(), [s] = Nt();
996
- switch (e.type) {
997
- case "category":
998
- return /* @__PURE__ */ a.jsx(Zr, { category: e, level: t });
999
- case "doc":
1000
- return /* @__PURE__ */ a.jsxs(
1001
- re,
1002
- {
1003
- className: ({ isActive: i }) => V({ isActive: i, isTopLevel: t === 0 }),
1004
- to: q(e.id),
1005
- children: [
1006
- e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
1007
- e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1008
- /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
1009
- /* @__PURE__ */ a.jsx(ne, { ...e.badge })
1010
- ] }) : e.label
1011
- ]
1012
- }
1013
- );
1014
- case "link":
1015
- return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
1016
- xt,
1017
- {
1018
- to: { hash: e.href, search: s.toString() },
1019
- [st]: e.href.slice(1),
1020
- className: V({
1021
- isActive: e.href.slice(1) === r,
1022
- isTopLevel: t === 0,
1023
- className: ((n = e.badge) == null ? void 0 : n.placement) !== "start" && "justify-between"
1024
- }),
1025
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1026
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
1027
- /* @__PURE__ */ a.jsx(ne, { ...e.badge })
1028
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
1029
- }
1030
- ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
1031
- "a",
1032
- {
1033
- className: V({ isTopLevel: t === 0 }),
1034
- href: e.href,
1035
- target: "_blank",
1036
- rel: "noopener noreferrer",
1037
- children: [
1038
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
1039
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Xt, { className: "inline -translate-y-0.5", size: 12 }) })
1040
- ]
1041
- }
1042
- ) : /* @__PURE__ */ a.jsx(
1043
- re,
1044
- {
1045
- className: V({
1046
- className: ((o = e.badge) == null ? void 0 : o.placement) !== "start" && "justify-between"
1047
- }),
1048
- to: e.href,
1049
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1050
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
1051
- /* @__PURE__ */ a.jsx(ne, { ...e.badge })
1052
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
1053
- }
1054
- );
1055
- }
1056
- }, Wr = (e, t = { block: "center" }) => {
1057
- if (!e) return;
1058
- const r = e.getBoundingClientRect();
1059
- r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
1060
- }, Yr = () => {
1061
- const e = pe(), { setActiveAnchor: t } = ye();
1062
- B(() => {
1063
- if (!e.hash) return;
1064
- const r = decodeURIComponent(e.hash.split("/")[0].slice(1)), s = () => {
1065
- const n = document.getElementById(r), o = document.querySelector(`[${st}="${r}"]`);
1066
- return n ? (n.scrollIntoView(), Wr(o), requestIdleCallback(() => t(r)), !0) : !1;
1067
- };
1068
- if (!s()) {
1069
- const n = new MutationObserver((o, i) => {
1070
- s() && i.disconnect();
1071
- });
1072
- return n.observe(document.body, { childList: !0, subtree: !0 }), () => n.disconnect();
1073
- }
1074
- }, [e.hash, t]);
1075
- }, Jr = () => {
1076
- const e = pe(), t = fe(e.pathname);
1077
- B(() => {
1078
- t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
1079
- }, [e.pathname]);
1080
- };
1081
- function Xr({
1082
- className: e,
1083
- ...t
1084
- }) {
1085
- return /* @__PURE__ */ a.jsx(
1086
- "div",
1087
- {
1088
- className: R("animate-pulse rounded-md bg-muted", e),
1089
- ...t
1090
- }
1091
- );
1092
- }
1093
- const Gr = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", ea = (e) => "getRoutes" in e && typeof e.getRoutes == "function", ta = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ra = (e) => "initialize" in e && typeof e.initialize == "function", aa = (e) => "getHead" in e && typeof e.getHead == "function", sa = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", na = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Ie = {
1094
- info: "bg-blue-500",
1095
- note: "bg-gray-500",
1096
- tip: "bg-green-600",
1097
- caution: "bg-orange-500",
1098
- danger: "bg-rose-500"
1099
- }, ia = () => {
1100
- const { page: e } = Q(), [t, r] = F(!0);
1101
- if (!(e != null && e.banner) || !t)
1102
- return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
1103
- const s = e.banner.color && e.banner.color in Ie ? Ie[e.banner.color] : e.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: e.banner.color };
1104
- return /* @__PURE__ */ a.jsxs(
1105
- "div",
1106
- {
1107
- className: R(
1108
- "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
1109
- s
1110
- ),
1111
- style: n,
1112
- children: [
1113
- /* @__PURE__ */ a.jsx("div", { className: "w-full", children: e.banner.message }),
1114
- e.banner.dismissible && /* @__PURE__ */ a.jsx(
1115
- "button",
1116
- {
1117
- type: "button",
1118
- className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1119
- onClick: () => r(!1),
1120
- children: /* @__PURE__ */ a.jsx(Gt, { size: 16 })
1121
- }
1122
- )
1123
- ]
1124
- }
1125
- );
1126
- }, nt = () => {
1127
- const e = Q(), [t, r] = F(!1), s = Lt(() => r(!1), []);
1128
- B(() => {
1129
- if (t)
1130
- return;
1131
- function o(i) {
1132
- i.key === "k" && (i.metaKey || i.ctrlKey) && (i.preventDefault(), r(!0));
1133
- }
1134
- return window.addEventListener("keydown", o), () => {
1135
- window.removeEventListener("keydown", o);
1136
- };
1137
- }, [t, r]);
1138
- const n = e.plugins.find(ta);
1139
- return n ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1140
- /* @__PURE__ */ a.jsxs(
1141
- "button",
1142
- {
1143
- type: "button",
1144
- onClick: () => r(!0),
1145
- 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-full sm:w-72",
1146
- children: [
1147
- /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
1148
- /* @__PURE__ */ a.jsx(er, { size: 14 }),
1149
- "Search"
1150
- ] }),
1151
- /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
1152
- ]
1153
- }
1154
- ),
1155
- /* @__PURE__ */ a.jsx(me, { fallback: null, children: n.renderSearch({
1156
- isOpen: t,
1157
- onClose: s
1158
- }) })
1159
- ] }) : null;
1160
- }, it = () => {
1161
- const { resolvedTheme: e, setTheme: t } = yr(), r = e === "dark" ? tr : rr;
1162
- return /* @__PURE__ */ a.jsx(xe, { children: /* @__PURE__ */ a.jsx(
1163
- ce,
1164
- {
1165
- variant: "ghost",
1166
- "aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
1167
- className: "p-2.5 -m-2.5 rounded-full",
1168
- onClick: () => t(e === "dark" ? "light" : "dark"),
1169
- children: /* @__PURE__ */ a.jsx(r, { size: 18 })
1170
- }
1171
- ) });
1172
- }, ot = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", oa = () => {
1173
- const { topNavigation: e } = Q(), { isAuthenticated: t } = ae();
1174
- return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(me, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(ot(t)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(lt, { ...r }) }, r.id)) }) }) });
1175
- }, lt = ({
1176
- id: e,
1177
- label: t,
1178
- default: r
1179
- }) => {
1180
- var d;
1181
- const { sidebars: s } = Q(), n = s[e], o = Ke(), i = !!ve().location, c = ((d = o.topNavItem) == null ? void 0 : d.id) === e && !i, u = r ?? (n ? Qt(n, (p) => {
1182
- if (p.type === "doc") return q(p.id);
1183
- }) : q(e));
1184
- if (!u)
1185
- throw new jr("Page not found.", {
1186
- developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
1187
- });
1188
- return (
1189
- // We don't use isActive here because it has to be inside the sidebar,
1190
- // the top nav id doesn't necessarily start with the sidebar id
1191
- /* @__PURE__ */ a.jsx(
1192
- re,
1193
- {
1194
- className: ({ isPending: p }) => lr(
1195
- "block lg:py-3.5 font-medium -mb-px border-b-2",
1196
- c || p ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1197
- ),
1198
- to: u,
1199
- children: t
1200
- }
1201
- )
1202
- );
1203
- }, la = () => {
1204
- const { topNavigation: e } = Q(), { isAuthenticated: t } = ae(), [r, s] = F(!1);
1205
- return /* @__PURE__ */ a.jsxs(
1206
- Ye,
1207
- {
1208
- direction: "right",
1209
- open: r,
1210
- onOpenChange: (n) => s(n),
1211
- children: [
1212
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(Je, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(ar, { size: 22 }) }) }),
1213
- /* @__PURE__ */ a.jsxs(
1214
- Xe,
1215
- {
1216
- className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
1217
- "aria-describedby": void 0,
1218
- children: [
1219
- /* @__PURE__ */ a.jsx(et, { children: /* @__PURE__ */ a.jsx(Ge, { children: "Navigation" }) }),
1220
- /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(nt, {}) }),
1221
- /* @__PURE__ */ a.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
1222
- /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(it, {}) }),
1223
- e.filter(ot(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx("button", { onClick: () => s(!1), children: /* @__PURE__ */ a.jsx(lt, { ...n }) }) }, n.label))
1224
- ] })
1225
- ]
1226
- }
1227
- )
1228
- ]
1229
- }
1230
- );
1231
- }, ct = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(mr, { children: [
1232
- /* @__PURE__ */ a.jsx(gr, { children: e.label }),
1233
- /* @__PURE__ */ a.jsx(pr, { children: /* @__PURE__ */ a.jsx(vr, { children: e.children.map((t, r) => (
1234
- // eslint-disable-next-line react/no-array-index-key
1235
- /* @__PURE__ */ a.jsx(ct, { item: t }, r)
1236
- )) }) })
1237
- ] }, e.label) : /* @__PURE__ */ a.jsx(he, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(xr, { children: e.label }, e.label) }), ut = Ve(function() {
1238
- const t = ae(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = ae(), o = Q(), { page: i, plugins: c } = o, u = c.filter((d) => Gr(d)).flatMap((d) => d.getProfileMenuItems(o)).map((d) => /* @__PURE__ */ a.jsx(ct, { item: d }, d.label));
1239
- return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1240
- /* @__PURE__ */ a.jsx(ia, {}),
1241
- /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1242
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
1243
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(he, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1244
- (i == null ? void 0 : i.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1245
- /* @__PURE__ */ a.jsx(
1246
- "img",
1247
- {
1248
- src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : q(
1249
- "/",
1250
- i.logo.src.light
1251
- ),
1252
- alt: i.logo.alt ?? i.pageTitle,
1253
- style: { width: i.logo.width },
1254
- className: "h-10 dark:hidden",
1255
- loading: "lazy"
1256
- }
1257
- ),
1258
- /* @__PURE__ */ a.jsx(
1259
- "img",
1260
- {
1261
- "data-hide-on-theme": "light",
1262
- src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : q(
1263
- "/",
1264
- i.logo.src.dark
1265
- ),
1266
- alt: i.logo.alt ?? i.pageTitle,
1267
- style: { width: i.logo.width },
1268
- className: "h-10",
1269
- loading: "lazy"
1270
- }
1271
- )
1272
- ] }),
1273
- /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
1274
- ] }) }) }),
1275
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1276
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(nt, {}) }),
1277
- /* @__PURE__ */ a.jsx(la, {}),
1278
- /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1279
- /* @__PURE__ */ a.jsx(O, { name: "head-navigation-start" }),
1280
- n && /* @__PURE__ */ a.jsx(
1281
- xe,
1282
- {
1283
- fallback: /* @__PURE__ */ a.jsx(Xr, { className: "rounded h-5 w-24 mr-4" }),
1284
- children: r ? u.length > 0 && /* @__PURE__ */ a.jsxs(cr, { modal: !1, children: [
1285
- /* @__PURE__ */ a.jsx(ur, { asChild: !0, children: /* @__PURE__ */ a.jsx(ce, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
1286
- /* @__PURE__ */ a.jsxs(dr, { className: "w-56", children: [
1287
- /* @__PURE__ */ a.jsx(hr, { children: "My Account" }),
1288
- /* @__PURE__ */ a.jsx(fr, {}),
1289
- u
1290
- ] })
1291
- ] }) : /* @__PURE__ */ a.jsx(ce, { variant: "ghost", onClick: () => t.login(), children: "Login" })
1292
- }
1293
- ),
1294
- /* @__PURE__ */ a.jsx(it, {}),
1295
- /* @__PURE__ */ a.jsx(O, { name: "head-navigation-end" })
1296
- ] })
1297
- ] })
1298
- ] }),
1299
- /* @__PURE__ */ a.jsx(O, { name: "top-navigation-before" }),
1300
- /* @__PURE__ */ a.jsx(oa, {}),
1301
- /* @__PURE__ */ a.jsx(O, { name: "top-navigation-after" })
1302
- ] })
1303
- ] });
1304
- }), dt = Ut(({ children: e, className: t, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
1305
- "nav",
1306
- {
1307
- "data-navigation": String(r),
1308
- className: R(
1309
- "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
1310
- "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
1311
- "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
1312
- t
1313
- ),
1314
- ref: s,
1315
- children: e
1316
- }
1317
- ));
1318
- dt.displayName = "SidebarWrapper";
1319
- const ca = () => {
1320
- const e = fe(null), t = Ke();
1321
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1322
- /* @__PURE__ */ a.jsxs(
1323
- dt,
1324
- {
1325
- ref: e,
1326
- pushMainContent: t.sidebar.length > 0,
1327
- children: [
1328
- /* @__PURE__ */ a.jsx(O, { name: "zudoku-before-navigation" }),
1329
- t.sidebar.map((r) => /* @__PURE__ */ a.jsx(ue, { item: r }, r.label)),
1330
- /* @__PURE__ */ a.jsx(O, { name: "zudoku-after-navigation" })
1331
- ]
1332
- }
1333
- ),
1334
- /* @__PURE__ */ a.jsxs(
1335
- Xe,
1336
- {
1337
- className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none overflow-auto",
1338
- "aria-describedby": void 0,
1339
- children: [
1340
- /* @__PURE__ */ a.jsx(et, { children: /* @__PURE__ */ a.jsx(Ge, { children: "Sidebar" }) }),
1341
- t.sidebar.map((r) => /* @__PURE__ */ a.jsx(ue, { item: r }, r.label))
1342
- ]
1343
- }
1344
- )
1345
- ] });
1346
- }, _e = () => /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(wr, {}) }), ua = ({ children: e }) => {
1347
- const t = pe(), { setActiveAnchor: r } = ye(), { meta: s, authentication: n } = Q();
1348
- Yr(), Jr();
1349
- const o = fe(t.pathname);
1350
- B(() => {
1351
- var c;
1352
- (c = n == null ? void 0 : n.pageLoad) == null || c.call(n);
1353
- }, [n]), B(() => {
1354
- t.pathname !== o.current && r(""), o.current = t.pathname;
1355
- }, [t.pathname, r]);
1356
- const i = !!ve().location;
1357
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1358
- !1,
1359
- /* @__PURE__ */ a.jsxs(de, { titleTemplate: s == null ? void 0 : s.title, children: [
1360
- (s == null ? void 0 : s.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: s.description }),
1361
- (s == null ? void 0 : s.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: s.favicon })
1362
- ] }),
1363
- /* @__PURE__ */ a.jsx(O, { name: "layout-before-head" }),
1364
- /* @__PURE__ */ a.jsx(ut, {}),
1365
- /* @__PURE__ */ a.jsx(O, { name: "layout-after-head" }),
1366
- /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: i ? /* @__PURE__ */ a.jsx(_e, {}) : /* @__PURE__ */ a.jsx(me, { fallback: /* @__PURE__ */ a.jsx(_e, {}), children: /* @__PURE__ */ a.jsxs(Ye, { direction: "left", children: [
1367
- /* @__PURE__ */ a.jsx(ca, {}),
1368
- /* @__PURE__ */ a.jsx(
1369
- "div",
1370
- {
1371
- className: R(
1372
- "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1373
- "peer-data-[navigation=false]:hidden"
1374
- ),
1375
- children: /* @__PURE__ */ a.jsxs(Je, { className: "flex items-center gap-2", children: [
1376
- /* @__PURE__ */ a.jsx(sr, { size: 16, strokeWidth: 1.5 }),
1377
- /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
1378
- ] })
1379
- }
1380
- ),
1381
- /* @__PURE__ */ a.jsxs(
1382
- "main",
1383
- {
1384
- className: R(
1385
- "h-full dark:border-white/10 translate-x-0",
1386
- "lg:overflow-visible",
1387
- // This works in tandem with the `SidebarWrapper` component
1388
- "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
1389
- "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1390
- ),
1391
- children: [
1392
- /* @__PURE__ */ a.jsx(O, { name: "zudoku-before-content" }),
1393
- e ?? /* @__PURE__ */ a.jsx(We, {}),
1394
- /* @__PURE__ */ a.jsx(O, { name: "zudoku-after-content" })
1395
- ]
1396
- }
1397
- )
1398
- ] }) }) })
1399
- ] });
1400
- }, da = Ze(null), oe = {
1401
- didCatch: !1,
1402
- error: null
1403
- };
1404
- class ha extends Kt {
1405
- constructor(t) {
1406
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = oe;
1407
- }
1408
- static getDerivedStateFromError(t) {
1409
- return {
1410
- didCatch: !0,
1411
- error: t
1412
- };
1413
- }
1414
- resetErrorBoundary() {
1415
- const {
1416
- error: t
1417
- } = this.state;
1418
- if (t !== null) {
1419
- for (var r, s, n = arguments.length, o = new Array(n), i = 0; i < n; i++)
1420
- o[i] = arguments[i];
1421
- (r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
1422
- args: o,
1423
- reason: "imperative-api"
1424
- }), this.setState(oe);
1425
- }
1426
- }
1427
- componentDidCatch(t, r) {
1428
- var s, n;
1429
- (s = (n = this.props).onError) === null || s === void 0 || s.call(n, t, r);
1430
- }
1431
- componentDidUpdate(t, r) {
1432
- const {
1433
- didCatch: s
1434
- } = this.state, {
1435
- resetKeys: n
1436
- } = this.props;
1437
- if (s && r.error !== null && fa(t.resetKeys, n)) {
1438
- var o, i;
1439
- (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
1440
- next: n,
1441
- prev: t.resetKeys,
1442
- reason: "keys"
1443
- }), this.setState(oe);
1444
- }
1445
- }
1446
- render() {
1447
- const {
1448
- children: t,
1449
- fallbackRender: r,
1450
- FallbackComponent: s,
1451
- fallback: n
1452
- } = this.props, {
1453
- didCatch: o,
1454
- error: i
1455
- } = this.state;
1456
- let c = t;
1457
- if (o) {
1458
- const u = {
1459
- error: i,
1460
- resetErrorBoundary: this.resetErrorBoundary
1461
- };
1462
- if (typeof r == "function")
1463
- c = r(u);
1464
- else if (s)
1465
- c = Me(s, u);
1466
- else if (n !== void 0)
1467
- c = n;
1468
- else
1469
- throw i;
1470
- }
1471
- return Me(da.Provider, {
1472
- value: {
1473
- didCatch: o,
1474
- error: i,
1475
- resetErrorBoundary: this.resetErrorBoundary
1476
- }
1477
- }, c);
1478
- }
1479
- }
1480
- function fa() {
1481
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1482
- return e.length !== t.length || e.some((r, s) => !Object.is(r, t[s]));
1483
- }
1484
- class ma {
1485
- constructor(t) {
1486
- N(this, "plugins");
1487
- N(this, "sidebars");
1488
- N(this, "topNavigation");
1489
- N(this, "meta");
1490
- N(this, "page");
1491
- N(this, "authentication");
1492
- N(this, "navigationPlugins");
1493
- N(this, "initialize", async () => {
1494
- await Promise.all(
1495
- this.plugins.filter(ra).map((t) => {
1496
- var r;
1497
- return (r = t.initialize) == null ? void 0 : r.call(t, this);
1498
- })
1499
- );
1500
- });
1501
- N(this, "getApiIdentities", async () => (await Promise.all(
1502
- this.plugins.filter(na).map((r) => r.getIdentities(this))
1503
- )).flat());
1504
- N(this, "getPluginSidebar", async (t) => (await Promise.all(
1505
- this.navigationPlugins.map(
1506
- (s) => {
1507
- var n;
1508
- return (n = s.getSidebar) == null ? void 0 : n.call(s, q(t));
1509
- }
1510
- )
1511
- )).flatMap((s) => s ?? []));
1512
- N(this, "signRequest", async (t) => {
1513
- if (!this.authentication)
1514
- throw new Error("No authentication provider configured");
1515
- const r = await this.authentication.getAccessToken();
1516
- return t.headers.set("Authorization", `Bearer ${r}`), t;
1517
- });
1518
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(ea), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
1519
- }
1520
- }
1521
- function ga({ error: e, resetErrorBoundary: t }) {
1522
- return /* @__PURE__ */ a.jsx(ze, { error: e });
1523
- }
1524
- const te = globalThis;
1525
- (!te.requestIdleCallback || !te.cancelIdleCallback) && (te.requestIdleCallback = (e) => setTimeout(e, 1), te.cancelIdleCallback = clearTimeout);
1526
- const ht = {
1527
- Header: ut
1528
- }, pa = Ze(ht), va = pa.Provider, xa = ({
1529
- children: e,
1530
- context: t
1531
- }) => (qt({
1532
- queryFn: async () => (await t.initialize(), !0),
1533
- queryKey: ["zudoku-initialize"]
1534
- }), /* @__PURE__ */ a.jsx(Bt.Provider, { value: t, children: e })), ft = Ve(
1535
- ({ children: e, ...t }) => {
1536
- var m, f;
1537
- const r = se(
1538
- () => ({ ...ht, ...t.overrides }),
1539
- [t.overrides]
1540
- ), s = se(() => {
1541
- var v;
1542
- return {
1543
- ...(t.plugins ?? []).filter(sa).flatMap(
1544
- (h) => h.getMdxComponents ? [h.getMdxComponents()] : []
1545
- ).reduce(
1546
- (h, S) => ({ ...h, ...S }),
1547
- {}
1548
- ),
1549
- ...nr,
1550
- ...(v = t.mdx) == null ? void 0 : v.components
1551
- };
1552
- }, [(m = t.mdx) == null ? void 0 : m.components, t.plugins]), { stagger: n } = $t(le), [o, i] = F(!1), c = se(
1553
- () => o ? { stagger: !0 } : { stagger: n },
1554
- [n, o]
1555
- ), u = ve();
1556
- B(() => {
1557
- o || i(!0);
1558
- }, [o, u.location]);
1559
- const [d] = F(() => new ma(t)), p = (f = t.plugins) == null ? void 0 : f.filter(aa).map((x, v) => {
1560
- var h;
1561
- return /* @__PURE__ */ a.jsx(Vt, { children: (h = x.getHead) == null ? void 0 : h.call(x) }, v);
1562
- });
1563
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1564
- /* @__PURE__ */ a.jsx(de, { children: p }),
1565
- /* @__PURE__ */ a.jsx(le.Provider, { value: c, children: /* @__PURE__ */ a.jsx(xa, { context: d, children: /* @__PURE__ */ a.jsx(yt, { components: s, children: /* @__PURE__ */ a.jsx(br, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ a.jsx(va, { value: r, children: /* @__PURE__ */ a.jsx(St, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(ir, { children: e ?? /* @__PURE__ */ a.jsx(We, {}) }) }) }) }) }) }) })
1566
- ] });
1567
- }
1568
- );
1569
- ft.displayName = "ZudokoInner";
1570
- const mt = (e) => /* @__PURE__ */ a.jsx(ha, { FallbackComponent: ga, children: /* @__PURE__ */ a.jsx(ft, { ...e }) });
1571
- mt.displayName = "Zudoku";
1572
- const $a = bt, Va = ua, Za = Pt, Wa = Nr, Ya = $r, Ja = Vr, Xa = de, Ga = Q, es = Ct, ts = mt, rs = Et, as = xe, ss = kt, ns = he;
1
+ import "./index.esm-BFcSKCe-.js";
2
+ import "./index--oeBayMa.js";
3
+ import "./chunk-BAXFHI7N-C9WnHsLV.js";
4
+ import "./hook-CqYKERnR.js";
5
+ import "./RouteGuard-ChX1tPqA.js";
6
+ import "./SlotletProvider-ZhDNaV0q.js";
7
+ import { e as k, f as l, n as S, B as h, C as B, j as c, l as E, H, d as L, L as M, M as R, g as Z, R as f, S as g, k as y, i as A, Z as b, b as j, h as v, c as w, m as x, a as D } from "./index-LSPm9Daf.js";
8
+ import "./ui/Button.js";
9
+ import "./ui/Callout.js";
10
+ import "./ClientOnly-E7hGysn1.js";
11
+ import "./Markdown-D3MUf20w.js";
12
+ import "./Spinner-mNLZ6awP.js";
1573
13
  export {
1574
- Ya as Bootstrap,
1575
- Ja as BootstrapStatic,
1576
- ss as Button,
1577
- rs as Callout,
1578
- as as ClientOnly,
1579
- Xa as Head,
1580
- Va as Layout,
1581
- ns as Link,
1582
- Za as RouterError,
1583
- Wa as ServerError,
1584
- ts as Zudoku,
1585
- es as useAuth,
1586
- $a as useMDXComponents,
1587
- Ga as useZudoku
14
+ k as Bootstrap,
15
+ l as BootstrapStatic,
16
+ S as BuildCheck,
17
+ h as Button,
18
+ B as CACHE_KEYS,
19
+ c as Callout,
20
+ E as ClientOnly,
21
+ H as Head,
22
+ L as Layout,
23
+ M as Link,
24
+ R as Markdown,
25
+ Z as RouteGuard,
26
+ f as RouterError,
27
+ g as ServerError,
28
+ y as Spinner,
29
+ A as StatusPage,
30
+ b as Zudoku,
31
+ j as useAuth,
32
+ v as useCache,
33
+ w as useMDXComponents,
34
+ x as useTheme,
35
+ D as useZudoku
1588
36
  };
1589
37
  //# sourceMappingURL=zudoku.components.js.map