zudoku 0.0.0-fd8f8ad → 0.0.0-feda542

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