zudoku 0.0.0-ec30b50 → 0.0.0-edd80c1

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 (1438) hide show
  1. package/README.md +1 -1
  2. package/cli.js +9 -0
  3. package/dist/app/ZuploBuildConfig.d.ts +155 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/entry.client.d.ts +5 -0
  7. package/dist/app/entry.client.js +37 -0
  8. package/dist/app/entry.client.js.map +1 -1
  9. package/dist/app/entry.server.d.ts +8 -6
  10. package/dist/app/entry.server.js +12 -8
  11. package/dist/app/entry.server.js.map +1 -1
  12. package/dist/app/env.d.ts +33 -0
  13. package/dist/app/env.js +29 -0
  14. package/dist/app/env.js.map +1 -0
  15. package/dist/app/main.js +23 -28
  16. package/dist/app/main.js.map +1 -1
  17. package/dist/cli/build/handler.d.ts +1 -3
  18. package/dist/cli/build/handler.js +9 -1
  19. package/dist/cli/build/handler.js.map +1 -1
  20. package/dist/cli/cli.js +17 -1
  21. package/dist/cli/cli.js.map +1 -1
  22. package/dist/cli/cmds/build.d.ts +11 -3
  23. package/dist/cli/cmds/build.js +20 -13
  24. package/dist/cli/cmds/build.js.map +1 -1
  25. package/dist/cli/cmds/dev.d.ts +1 -1
  26. package/dist/cli/cmds/dev.js.map +1 -1
  27. package/dist/cli/cmds/preview.d.ts +16 -0
  28. package/dist/cli/cmds/preview.js +25 -0
  29. package/dist/cli/cmds/preview.js.map +1 -0
  30. package/dist/cli/common/machine-id/lib.js +1 -0
  31. package/dist/cli/common/machine-id/lib.js.map +1 -1
  32. package/dist/cli/common/utils/ports.d.ts +1 -1
  33. package/dist/cli/common/utils/ports.js +16 -15
  34. package/dist/cli/common/utils/ports.js.map +1 -1
  35. package/dist/cli/dev/handler.js +10 -12
  36. package/dist/cli/dev/handler.js.map +1 -1
  37. package/dist/cli/preview/handler.d.ts +3 -0
  38. package/dist/cli/preview/handler.js +35 -0
  39. package/dist/cli/preview/handler.js.map +1 -0
  40. package/dist/config/config.d.ts +19 -17
  41. package/dist/config/file-exists.d.ts +1 -0
  42. package/dist/config/file-exists.js +5 -0
  43. package/dist/config/file-exists.js.map +1 -0
  44. package/dist/config/loader.d.ts +19 -18
  45. package/dist/config/loader.js +108 -117
  46. package/dist/config/loader.js.map +1 -1
  47. package/dist/config/validators/BuildSchema.d.ts +60 -0
  48. package/dist/config/validators/BuildSchema.js +31 -0
  49. package/dist/config/validators/BuildSchema.js.map +1 -0
  50. package/dist/config/validators/InputSidebarSchema.d.ts +15 -15
  51. package/dist/config/validators/InputSidebarSchema.js +10 -1
  52. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  53. package/dist/config/validators/icon-types.d.ts +1 -1
  54. package/dist/config/validators/validate.d.ts +4258 -448
  55. package/dist/config/validators/validate.js +396 -11
  56. package/dist/config/validators/validate.js.map +1 -1
  57. package/dist/index.d.ts +7 -3
  58. package/dist/index.js +4 -0
  59. package/dist/index.js.map +1 -1
  60. package/dist/lib/MissingIcon.d.ts +2 -0
  61. package/dist/lib/MissingIcon.js +7 -0
  62. package/dist/lib/MissingIcon.js.map +1 -0
  63. package/dist/lib/authentication/AuthenticationPlugin.d.ts +2 -2
  64. package/dist/lib/authentication/AuthenticationPlugin.js +1 -1
  65. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  66. package/dist/lib/authentication/authentication.d.ts +3 -4
  67. package/dist/lib/authentication/components/CallbackHandler.js +5 -1
  68. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  69. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  70. package/dist/lib/authentication/components/SignIn.js +5 -2
  71. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  72. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  73. package/dist/lib/authentication/components/SignUp.js +4 -1
  74. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  75. package/dist/lib/authentication/hook.d.ts +1 -0
  76. package/dist/lib/authentication/hook.js +11 -1
  77. package/dist/lib/authentication/hook.js.map +1 -1
  78. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  79. package/dist/lib/authentication/providers/auth0.js +2 -1
  80. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  81. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  82. package/dist/lib/authentication/providers/clerk.js +92 -46
  83. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  84. package/dist/lib/authentication/providers/openid.d.ts +15 -19
  85. package/dist/lib/authentication/providers/openid.js +40 -43
  86. package/dist/lib/authentication/providers/openid.js.map +1 -1
  87. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  88. package/dist/lib/authentication/providers/supabase.js +115 -0
  89. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  90. package/dist/lib/authentication/state.d.ts +0 -26
  91. package/dist/lib/authentication/state.js +9 -18
  92. package/dist/lib/authentication/state.js.map +1 -1
  93. package/dist/lib/components/AnchorLink.d.ts +2 -2
  94. package/dist/lib/components/AnchorLink.js +5 -4
  95. package/dist/lib/components/AnchorLink.js.map +1 -1
  96. package/dist/lib/components/Autocomplete.js +1 -1
  97. package/dist/lib/components/Banner.js +1 -1
  98. package/dist/lib/components/Banner.js.map +1 -1
  99. package/dist/lib/components/Bootstrap.d.ts +2 -1
  100. package/dist/lib/components/Bootstrap.js +3 -2
  101. package/dist/lib/components/Bootstrap.js.map +1 -1
  102. package/dist/lib/components/BuildCheck.d.ts +4 -0
  103. package/dist/lib/components/BuildCheck.js +38 -0
  104. package/dist/lib/components/BuildCheck.js.map +1 -0
  105. package/dist/lib/components/ErrorPage.js +1 -1
  106. package/dist/lib/components/Footer.d.ts +1 -0
  107. package/dist/lib/components/Footer.js +32 -0
  108. package/dist/lib/components/Footer.js.map +1 -0
  109. package/dist/lib/components/Header.js +17 -9
  110. package/dist/lib/components/Header.js.map +1 -1
  111. package/dist/lib/components/Heading.d.ts +3 -3
  112. package/dist/lib/components/Heading.js +6 -1
  113. package/dist/lib/components/Heading.js.map +1 -1
  114. package/dist/lib/components/InlineCode.d.ts +2 -1
  115. package/dist/lib/components/InlineCode.js +2 -9
  116. package/dist/lib/components/InlineCode.js.map +1 -1
  117. package/dist/lib/components/Layout.js +9 -29
  118. package/dist/lib/components/Layout.js.map +1 -1
  119. package/dist/lib/components/Main.d.ts +2 -0
  120. package/dist/lib/components/Main.js +18 -0
  121. package/dist/lib/components/Main.js.map +1 -0
  122. package/dist/lib/components/Markdown.d.ts +3 -1
  123. package/dist/lib/components/Markdown.js +13 -14
  124. package/dist/lib/components/Markdown.js.map +1 -1
  125. package/dist/lib/components/MobileTopNavigation.js +7 -3
  126. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  127. package/dist/lib/components/NotFoundPage.js +1 -1
  128. package/dist/lib/components/Pagination.d.ts +11 -0
  129. package/dist/lib/components/Pagination.js +10 -0
  130. package/dist/lib/components/Pagination.js.map +1 -0
  131. package/dist/lib/components/Search.js +7 -1
  132. package/dist/lib/components/Search.js.map +1 -1
  133. package/dist/lib/components/Slot.d.ts +17 -0
  134. package/dist/lib/components/Slot.js +24 -0
  135. package/dist/lib/components/Slot.js.map +1 -0
  136. package/dist/lib/components/Slot.test.js +168 -0
  137. package/dist/lib/components/Slot.test.js.map +1 -0
  138. package/dist/lib/components/ThemeSwitch.js +8 -5
  139. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  140. package/dist/lib/components/TopNavigation.d.ts +2 -4
  141. package/dist/lib/components/TopNavigation.js +26 -20
  142. package/dist/lib/components/TopNavigation.js.map +1 -1
  143. package/dist/lib/components/Zudoku.d.ts +1 -1
  144. package/dist/lib/components/Zudoku.js +14 -9
  145. package/dist/lib/components/Zudoku.js.map +1 -1
  146. package/dist/lib/components/cache.d.ts +7 -0
  147. package/dist/lib/components/cache.js +7 -0
  148. package/dist/lib/components/cache.js.map +1 -1
  149. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  150. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  151. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  152. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  153. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  154. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  155. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  156. package/dist/lib/components/context/SlotProvider.js +83 -0
  157. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  158. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  159. package/dist/lib/components/context/ViewportAnchorContext.js +13 -19
  160. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  161. package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
  162. package/dist/lib/components/context/ZudokuContext.js +18 -7
  163. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  164. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  165. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  166. package/dist/lib/components/index.d.ts +40 -25
  167. package/dist/lib/components/index.js +16 -6
  168. package/dist/lib/components/index.js.map +1 -1
  169. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  170. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  171. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  172. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  173. package/dist/lib/components/navigation/Sidebar.js +4 -13
  174. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  175. package/dist/lib/components/navigation/SidebarBadge.d.ts +2 -0
  176. package/dist/lib/components/navigation/SidebarBadge.js +3 -1
  177. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  178. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  179. package/dist/lib/components/navigation/SidebarCategory.js +20 -12
  180. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  181. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -4
  182. package/dist/lib/components/navigation/SidebarItem.js +28 -27
  183. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  184. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  185. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  186. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  187. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +6 -8
  188. package/dist/lib/components/navigation/Toc.js.map +1 -0
  189. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  190. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  191. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  192. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  193. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  194. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  195. package/dist/lib/components/navigation/utils.d.ts +8 -0
  196. package/dist/lib/components/navigation/utils.js +34 -6
  197. package/dist/lib/components/navigation/utils.js.map +1 -1
  198. package/dist/lib/core/RouteGuard.d.ts +2 -1
  199. package/dist/lib/core/RouteGuard.js +35 -11
  200. package/dist/lib/core/RouteGuard.js.map +1 -1
  201. package/dist/lib/core/ZudokuContext.d.ts +50 -11
  202. package/dist/lib/core/ZudokuContext.js +33 -9
  203. package/dist/lib/core/ZudokuContext.js.map +1 -1
  204. package/dist/lib/core/plugins.d.ts +21 -8
  205. package/dist/lib/core/plugins.js +4 -0
  206. package/dist/lib/core/plugins.js.map +1 -1
  207. package/dist/lib/errors/ErrorAlert.js +6 -1
  208. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  209. package/dist/lib/hooks/index.d.ts +22 -0
  210. package/dist/lib/hooks/index.js +16 -0
  211. package/dist/lib/hooks/index.js.map +1 -0
  212. package/dist/lib/hooks/useEvent.d.ts +11 -0
  213. package/dist/lib/hooks/useEvent.js +19 -0
  214. package/dist/lib/hooks/useEvent.js.map +1 -0
  215. package/dist/lib/hooks/useEvent.test.js +100 -0
  216. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  217. package/dist/lib/icons.d.ts +1 -0
  218. package/dist/lib/icons.js +1 -0
  219. package/dist/lib/icons.js.map +1 -1
  220. package/dist/lib/oas/graphql/circular.js +23 -18
  221. package/dist/lib/oas/graphql/circular.js.map +1 -1
  222. package/dist/lib/oas/graphql/index.d.ts +17 -4
  223. package/dist/lib/oas/graphql/index.js +151 -38
  224. package/dist/lib/oas/graphql/index.js.map +1 -1
  225. package/dist/lib/oas/parser/dereference/index.js +2 -0
  226. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  227. package/dist/lib/oas/parser/index.d.ts +8 -3
  228. package/dist/lib/oas/parser/index.js +7 -23
  229. package/dist/lib/oas/parser/index.js.map +1 -1
  230. package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
  231. package/dist/lib/oas/parser/upgrade/index.js +76 -23
  232. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  233. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -2
  234. package/dist/lib/plugins/api-catalog/Catalog.js +16 -26
  235. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  236. package/dist/lib/plugins/api-catalog/index.d.ts +1 -0
  237. package/dist/lib/plugins/api-catalog/index.js +39 -8
  238. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  239. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  240. package/dist/lib/plugins/api-keys/CreateApiKey.js +15 -7
  241. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  242. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  243. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +152 -26
  244. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  245. package/dist/lib/plugins/api-keys/index.d.ts +21 -11
  246. package/dist/lib/plugins/api-keys/index.js +48 -32
  247. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  248. package/dist/lib/plugins/custom-pages/index.d.ts +1 -1
  249. package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
  250. package/dist/lib/plugins/markdown/MdxPage.js +3 -9
  251. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  252. package/dist/lib/plugins/markdown/index.d.ts +1 -1
  253. package/dist/lib/plugins/markdown/resolver.d.ts +1 -7
  254. package/dist/lib/plugins/markdown/resolver.js +0 -29
  255. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  256. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  257. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  258. package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
  259. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  260. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  261. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  262. package/dist/lib/plugins/openapi/{OpenApiRoute.d.ts → OasProvider.d.ts} +1 -2
  263. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  264. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  265. package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
  266. package/dist/lib/plugins/openapi/OperationList.js +67 -20
  267. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  268. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  269. package/dist/lib/plugins/openapi/OperationListItem.js +9 -13
  270. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  271. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  272. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  273. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  274. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  275. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  276. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  277. package/dist/lib/plugins/openapi/ParameterListItem.js +16 -4
  278. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  279. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +1 -1
  280. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +8 -2
  281. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  282. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  283. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  284. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  285. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  286. package/dist/lib/plugins/openapi/SchemaList.js +53 -0
  287. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  288. package/dist/lib/plugins/openapi/Sidecar.js +47 -68
  289. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  290. package/dist/lib/plugins/openapi/SidecarExamples.js +10 -2
  291. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  292. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  293. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  294. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
  295. package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
  296. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  297. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +11 -2
  298. package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -7
  299. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  300. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  301. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  302. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  303. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  304. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  305. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  306. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  307. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  308. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  309. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  310. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  311. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  312. package/dist/lib/plugins/openapi/graphql/gql.d.ts +9 -5
  313. package/dist/lib/plugins/openapi/graphql/gql.js +5 -15
  314. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  315. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +108 -55
  316. package/dist/lib/plugins/openapi/graphql/graphql.js +59 -34
  317. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  318. package/dist/lib/plugins/openapi/index.d.ts +10 -8
  319. package/dist/lib/plugins/openapi/index.js +58 -142
  320. package/dist/lib/plugins/openapi/index.js.map +1 -1
  321. package/dist/lib/plugins/openapi/interfaces.d.ts +37 -10
  322. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
  323. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -5
  324. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  325. package/dist/lib/plugins/openapi/playground/Headers.js +3 -3
  326. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  327. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  328. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  329. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  330. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  331. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +8 -0
  332. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  333. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  334. package/dist/lib/plugins/openapi/playground/PathParams.js +3 -2
  335. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  336. package/dist/lib/plugins/openapi/playground/Playground.d.ts +14 -3
  337. package/dist/lib/plugins/openapi/playground/Playground.js +86 -30
  338. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  339. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  340. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  341. package/dist/lib/plugins/openapi/playground/QueryParams.js +3 -3
  342. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  343. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  344. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  345. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  346. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +1 -1
  347. package/dist/lib/plugins/openapi/playground/SubmitButton.js +7 -10
  348. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -1
  349. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  350. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  351. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  352. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +1 -1
  353. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -1
  354. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +20 -14
  355. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  356. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  357. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +4 -3
  358. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  359. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  360. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.js +1 -1
  361. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  362. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.js +26 -6
  363. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  364. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.d.ts +3 -1
  365. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.js +1 -1
  366. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  367. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.js +53 -25
  368. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  369. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.d.ts +3 -1
  370. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.js +1 -1
  371. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  372. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  373. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  374. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  375. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  376. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  377. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  378. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  379. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  380. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  381. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  382. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  383. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  384. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  385. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  386. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  387. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
  388. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +24 -16
  389. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  390. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  391. package/dist/lib/plugins/openapi/schema/SchemaView.js +37 -49
  392. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  393. package/dist/lib/plugins/openapi/schema/utils.d.ts +7 -1
  394. package/dist/lib/plugins/openapi/schema/utils.js +14 -5
  395. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  396. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  397. package/dist/lib/plugins/openapi/state.js +18 -0
  398. package/dist/lib/plugins/openapi/state.js.map +1 -0
  399. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  400. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  401. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  402. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  403. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  404. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  405. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  406. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +44 -0
  407. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  408. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  409. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  410. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  411. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  412. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  413. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  414. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  415. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  416. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  417. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  418. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  419. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  420. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  421. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  422. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  423. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  424. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  425. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  426. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  427. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  428. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  429. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  430. package/dist/lib/shiki.d.ts +35 -0
  431. package/dist/lib/shiki.js +103 -0
  432. package/dist/lib/shiki.js.map +1 -0
  433. package/dist/lib/ui/Badge.d.ts +2 -2
  434. package/dist/lib/ui/Badge.js +1 -1
  435. package/dist/lib/ui/Badge.js.map +1 -1
  436. package/dist/lib/ui/Button.d.ts +3 -3
  437. package/dist/lib/ui/Button.js +9 -6
  438. package/dist/lib/ui/Button.js.map +1 -1
  439. package/dist/lib/ui/Callout.d.ts +2 -1
  440. package/dist/lib/ui/Callout.js +3 -2
  441. package/dist/lib/ui/Callout.js.map +1 -1
  442. package/dist/lib/ui/Card.js +1 -1
  443. package/dist/lib/ui/Checkbox.d.ts +2 -8
  444. package/dist/lib/ui/Checkbox.js +1 -13
  445. package/dist/lib/ui/Checkbox.js.map +1 -1
  446. package/dist/lib/ui/CodeBlock.d.ts +16 -0
  447. package/dist/lib/ui/CodeBlock.js +18 -0
  448. package/dist/lib/ui/CodeBlock.js.map +1 -0
  449. package/dist/lib/ui/Command.d.ts +8 -2
  450. package/dist/lib/ui/Command.js +5 -5
  451. package/dist/lib/ui/Command.js.map +1 -1
  452. package/dist/lib/ui/Dialog.js +1 -1
  453. package/dist/lib/ui/Dialog.js.map +1 -1
  454. package/dist/lib/ui/DropdownMenu.js +4 -4
  455. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  456. package/dist/lib/ui/Form.d.ts +1 -1
  457. package/dist/lib/ui/HoverCard.js +1 -1
  458. package/dist/lib/ui/HoverCard.js.map +1 -1
  459. package/dist/lib/ui/Input.js +1 -1
  460. package/dist/lib/ui/Input.js.map +1 -1
  461. package/dist/lib/ui/Popover.js +1 -1
  462. package/dist/lib/ui/Popover.js.map +1 -1
  463. package/dist/lib/ui/RadioGroup.js +1 -1
  464. package/dist/lib/ui/RadioGroup.js.map +1 -1
  465. package/dist/lib/ui/Select.js +2 -2
  466. package/dist/lib/ui/Select.js.map +1 -1
  467. package/dist/lib/ui/Slider.js +1 -1
  468. package/dist/lib/ui/Slider.js.map +1 -1
  469. package/dist/lib/ui/Stepper.d.ts +3 -0
  470. package/dist/lib/ui/Stepper.js +7 -0
  471. package/dist/lib/ui/Stepper.js.map +1 -0
  472. package/dist/lib/ui/Switch.js +1 -1
  473. package/dist/lib/ui/Switch.js.map +1 -1
  474. package/dist/lib/ui/SyntaxHighlight.d.ts +10 -0
  475. package/dist/lib/ui/SyntaxHighlight.js +14 -0
  476. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  477. package/dist/lib/ui/Tabs.js +2 -2
  478. package/dist/lib/ui/Tabs.js.map +1 -1
  479. package/dist/lib/ui/Textarea.js +1 -1
  480. package/dist/lib/ui/Textarea.js.map +1 -1
  481. package/dist/lib/ui/Toggle.js +1 -1
  482. package/dist/lib/ui/Toggle.js.map +1 -1
  483. package/dist/lib/ui/Tooltip.d.ts +2 -1
  484. package/dist/lib/ui/Tooltip.js +2 -1
  485. package/dist/lib/ui/Tooltip.js.map +1 -1
  486. package/dist/lib/ui/util.d.ts +2 -0
  487. package/dist/lib/ui/util.js +3 -0
  488. package/dist/lib/ui/util.js.map +1 -0
  489. package/dist/lib/util/MdxComponents.d.ts +14 -4
  490. package/dist/lib/util/MdxComponents.js +17 -13
  491. package/dist/lib/util/MdxComponents.js.map +1 -1
  492. package/dist/lib/util/detectOS.d.ts +1 -0
  493. package/dist/lib/util/detectOS.js +11 -0
  494. package/dist/lib/util/detectOS.js.map +1 -0
  495. package/dist/lib/util/ensureArray.d.ts +1 -0
  496. package/dist/lib/util/ensureArray.js +2 -0
  497. package/dist/lib/util/ensureArray.js.map +1 -0
  498. package/dist/lib/util/joinPath.d.ts +3 -0
  499. package/dist/lib/util/joinPath.js +3 -0
  500. package/dist/lib/util/joinPath.js.map +1 -1
  501. package/dist/lib/util/traverse.d.ts +3 -9
  502. package/dist/lib/util/traverse.js +7 -6
  503. package/dist/lib/util/traverse.js.map +1 -1
  504. package/dist/lib/util/types.d.ts +7 -0
  505. package/dist/lib/util/types.js +2 -0
  506. package/dist/lib/util/types.js.map +1 -0
  507. package/dist/lib/util/url.d.ts +4 -0
  508. package/dist/lib/util/url.js +13 -0
  509. package/dist/lib/util/url.js.map +1 -0
  510. package/dist/lib/util/url.test.d.ts +1 -0
  511. package/dist/lib/util/url.test.js +26 -0
  512. package/dist/lib/util/url.test.js.map +1 -0
  513. package/dist/lib/util/useExposedProps.d.ts +8 -1
  514. package/dist/lib/util/useExposedProps.js.map +1 -1
  515. package/dist/lib/util/useLatest.d.ts +1 -0
  516. package/dist/lib/util/useLatest.js +15 -0
  517. package/dist/lib/util/useLatest.js.map +1 -0
  518. package/dist/lib/util/useOnScreen.d.ts +3 -2
  519. package/dist/lib/util/useOnScreen.js +3 -3
  520. package/dist/lib/util/useOnScreen.js.map +1 -1
  521. package/dist/lib/util/useScrollToAnchor.js +26 -20
  522. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  523. package/dist/vite/api/SchemaManager.d.ts +36 -0
  524. package/dist/vite/api/SchemaManager.js +137 -0
  525. package/dist/vite/api/SchemaManager.js.map +1 -0
  526. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  527. package/dist/vite/api/SchemaManager.test.js +106 -0
  528. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  529. package/dist/vite/api/schema-codegen.d.ts +1 -1
  530. package/dist/vite/api/schema-codegen.js +34 -11
  531. package/dist/vite/api/schema-codegen.js.map +1 -1
  532. package/dist/vite/api/schema-codegen.test.js +66 -0
  533. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  534. package/dist/vite/build.js +72 -22
  535. package/dist/vite/build.js.map +1 -1
  536. package/dist/vite/config.d.ts +2 -12
  537. package/dist/vite/config.js +90 -149
  538. package/dist/vite/config.js.map +1 -1
  539. package/dist/vite/config.test.js +2 -2
  540. package/dist/vite/config.test.js.map +1 -1
  541. package/dist/vite/create-pagefind-index.d.ts +4 -0
  542. package/dist/vite/create-pagefind-index.js +12 -0
  543. package/dist/vite/create-pagefind-index.js.map +1 -0
  544. package/dist/vite/css/plugin.d.ts +1 -2
  545. package/dist/vite/css/plugin.js +3 -2
  546. package/dist/vite/css/plugin.js.map +1 -1
  547. package/dist/vite/dev-server.d.ts +4 -3
  548. package/dist/vite/dev-server.js +53 -22
  549. package/dist/vite/dev-server.js.map +1 -1
  550. package/dist/vite/error-handler.d.ts +1 -1
  551. package/dist/vite/error-handler.js +1 -1
  552. package/dist/vite/error-handler.js.map +1 -1
  553. package/dist/vite/html.d.ts +7 -3
  554. package/dist/vite/html.js +15 -9
  555. package/dist/vite/html.js.map +1 -1
  556. package/dist/vite/output.d.ts +14 -2
  557. package/dist/vite/output.js +12 -14
  558. package/dist/vite/output.js.map +1 -1
  559. package/dist/vite/plugin-api-keys.d.ts +1 -2
  560. package/dist/vite/plugin-api-keys.js +13 -7
  561. package/dist/vite/plugin-api-keys.js.map +1 -1
  562. package/dist/vite/plugin-api.d.ts +1 -2
  563. package/dist/vite/plugin-api.js +77 -110
  564. package/dist/vite/plugin-api.js.map +1 -1
  565. package/dist/vite/plugin-auth.d.ts +1 -2
  566. package/dist/vite/plugin-auth.js +6 -5
  567. package/dist/vite/plugin-auth.js.map +1 -1
  568. package/dist/vite/plugin-component.d.ts +1 -2
  569. package/dist/vite/plugin-component.js +10 -4
  570. package/dist/vite/plugin-component.js.map +1 -1
  571. package/dist/vite/plugin-config-reload.d.ts +3 -3
  572. package/dist/vite/plugin-config-reload.js +29 -23
  573. package/dist/vite/plugin-config-reload.js.map +1 -1
  574. package/dist/vite/plugin-config.d.ts +1 -2
  575. package/dist/vite/plugin-config.js +11 -6
  576. package/dist/vite/plugin-config.js.map +1 -1
  577. package/dist/vite/plugin-configure-tailwind.d.ts +2 -0
  578. package/dist/vite/plugin-configure-tailwind.js +38 -0
  579. package/dist/vite/plugin-configure-tailwind.js.map +1 -0
  580. package/dist/vite/plugin-custom-pages.d.ts +1 -2
  581. package/dist/vite/plugin-custom-pages.js +6 -5
  582. package/dist/vite/plugin-custom-pages.js.map +1 -1
  583. package/dist/vite/plugin-docs.d.ts +2 -3
  584. package/dist/vite/plugin-docs.js +26 -8
  585. package/dist/vite/plugin-docs.js.map +1 -1
  586. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  587. package/dist/vite/plugin-frontmatter.js +8 -6
  588. package/dist/vite/plugin-frontmatter.js.map +1 -1
  589. package/dist/vite/plugin-mdx.d.ts +1 -2
  590. package/dist/vite/plugin-mdx.js +35 -36
  591. package/dist/vite/plugin-mdx.js.map +1 -1
  592. package/dist/vite/plugin-redirect.d.ts +1 -2
  593. package/dist/vite/plugin-redirect.js +6 -5
  594. package/dist/vite/plugin-redirect.js.map +1 -1
  595. package/dist/vite/plugin-search.d.ts +1 -2
  596. package/dist/vite/plugin-search.js +8 -3
  597. package/dist/vite/plugin-search.js.map +1 -1
  598. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  599. package/dist/vite/plugin-shiki-register.js +39 -0
  600. package/dist/vite/plugin-shiki-register.js.map +1 -0
  601. package/dist/vite/plugin-sidebar.d.ts +4 -3
  602. package/dist/vite/plugin-sidebar.js +24 -8
  603. package/dist/vite/plugin-sidebar.js.map +1 -1
  604. package/dist/vite/plugin-theme-css.d.ts +1 -2
  605. package/dist/vite/plugin-theme-css.js +20 -60
  606. package/dist/vite/plugin-theme-css.js.map +1 -1
  607. package/dist/vite/plugin.d.ts +1 -2
  608. package/dist/vite/plugin.js +23 -20
  609. package/dist/vite/plugin.js.map +1 -1
  610. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  611. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  612. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  613. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  614. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  615. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  616. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  617. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  618. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  619. package/dist/vite/prerender/prerender.d.ts +15 -0
  620. package/dist/vite/prerender/prerender.js +109 -0
  621. package/dist/vite/prerender/prerender.js.map +1 -0
  622. package/dist/vite/prerender/worker.d.ts +13 -0
  623. package/dist/vite/prerender/worker.js +59 -0
  624. package/dist/vite/prerender/worker.js.map +1 -0
  625. package/dist/vite/reporter.d.ts +3 -0
  626. package/dist/vite/reporter.js +33 -0
  627. package/dist/vite/reporter.js.map +1 -0
  628. package/dist/vite/sitemap.d.ts +1 -1
  629. package/dist/vite/sitemap.js +2 -1
  630. package/dist/vite/sitemap.js.map +1 -1
  631. package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
  632. package/dist/zuplo/enrich-with-zuplo.js +18 -17
  633. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  634. package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
  635. package/dist/zuplo/with-zuplo-processors.js +7 -7
  636. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  637. package/dist/zuplo/with-zuplo.d.ts +5 -2
  638. package/dist/zuplo/with-zuplo.js +6 -5
  639. package/dist/zuplo/with-zuplo.js.map +1 -1
  640. package/lib/Button-BE9IVkWV.js +51 -0
  641. package/lib/Button-BE9IVkWV.js.map +1 -0
  642. package/lib/Callout-CvY02DXU.js +231 -0
  643. package/lib/Callout-CvY02DXU.js.map +1 -0
  644. package/lib/Card-DPhGbYUM.js +61 -0
  645. package/lib/Card-DPhGbYUM.js.map +1 -0
  646. package/lib/{CategoryHeading-MYL1u_6K.js → CategoryHeading-Cu2RwgjC.js} +3 -3
  647. package/lib/{CategoryHeading-MYL1u_6K.js.map → CategoryHeading-Cu2RwgjC.js.map} +1 -1
  648. package/lib/Dialog-B53OMCvW.js +99 -0
  649. package/lib/Dialog-B53OMCvW.js.map +1 -0
  650. package/lib/Drawer-BzkOKwgC.js +1133 -0
  651. package/lib/Drawer-BzkOKwgC.js.map +1 -0
  652. package/lib/{Markdown-8mv9nhGd.js → Markdown-Shp6H9Hw.js} +14425 -14267
  653. package/lib/Markdown-Shp6H9Hw.js.map +1 -0
  654. package/lib/MdxPage-CrJSbZ47.js +84 -0
  655. package/lib/MdxPage-CrJSbZ47.js.map +1 -0
  656. package/lib/OasProvider-NUpybWqk.js +33 -0
  657. package/lib/OasProvider-NUpybWqk.js.map +1 -0
  658. package/lib/OperationList-D3bDNQLY.js +5153 -0
  659. package/lib/OperationList-D3bDNQLY.js.map +1 -0
  660. package/lib/Pagination-Cr0fWZS3.js +36 -0
  661. package/lib/Pagination-Cr0fWZS3.js.map +1 -0
  662. package/lib/RouteGuard-BYQ1LEhj.js +55 -0
  663. package/lib/RouteGuard-BYQ1LEhj.js.map +1 -0
  664. package/lib/SchemaList-BrpIIdIt.js +160 -0
  665. package/lib/SchemaList-BrpIIdIt.js.map +1 -0
  666. package/lib/SchemaView-DCf4_v-o.js +375 -0
  667. package/lib/SchemaView-DCf4_v-o.js.map +1 -0
  668. package/lib/SignUp-B7jT3koL.js +63 -0
  669. package/lib/SignUp-B7jT3koL.js.map +1 -0
  670. package/lib/Slot-CDvAt3j5.js +160 -0
  671. package/lib/Slot-CDvAt3j5.js.map +1 -0
  672. package/lib/Spinner-mNLZ6awP.js +7 -0
  673. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  674. package/lib/SyntaxHighlight-B5N00yJ7.js +9128 -0
  675. package/lib/SyntaxHighlight-B5N00yJ7.js.map +1 -0
  676. package/lib/Toc-DrAlK9wf.js +92 -0
  677. package/lib/Toc-DrAlK9wf.js.map +1 -0
  678. package/lib/{chunk-SYFQ2XB5-QijJrSf0.js → chunk-BAXFHI7N-C9WnHsLV.js} +684 -666
  679. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +1 -0
  680. package/lib/{circular-DxaIIlWD.js → circular-DTUFHD88.js} +3873 -4353
  681. package/lib/circular-DTUFHD88.js.map +1 -0
  682. package/lib/clsx-OuTLNxxd.js +17 -0
  683. package/lib/clsx-OuTLNxxd.js.map +1 -0
  684. package/lib/{cn-qaFjX9_3.js → cn-wvCW-ho6.js} +1015 -563
  685. package/lib/cn-wvCW-ho6.js.map +1 -0
  686. package/lib/{createServer-E3cXjB0P.js → createServer-B3gDmKd4.js} +5682 -5792
  687. package/lib/createServer-B3gDmKd4.js.map +1 -0
  688. package/lib/hook-BXffmvNp.js +1465 -0
  689. package/lib/hook-BXffmvNp.js.map +1 -0
  690. package/lib/index--oeBayMa.js +86 -0
  691. package/lib/index--oeBayMa.js.map +1 -0
  692. package/lib/index-Bn6Lc9tq.js +9 -0
  693. package/lib/index-Bn6Lc9tq.js.map +1 -0
  694. package/lib/index-BsC7yjdG.js +3268 -0
  695. package/lib/index-BsC7yjdG.js.map +1 -0
  696. package/lib/{index-CjJS0l4l.js → index-BvvmIczU.js} +3 -3
  697. package/lib/{index-CjJS0l4l.js.map → index-BvvmIczU.js.map} +1 -1
  698. package/lib/index-CrcNWbel.js +316 -0
  699. package/lib/index-CrcNWbel.js.map +1 -0
  700. package/lib/index-DI5SPFK9.js +36 -0
  701. package/lib/{index-Djenk2Hj.js.map → index-DI5SPFK9.js.map} +1 -1
  702. package/lib/index-QzXzw_ra.js +24 -0
  703. package/lib/index-QzXzw_ra.js.map +1 -0
  704. package/lib/{index-Dl3Yl0yb.js → index-zddirpDj.js} +621 -636
  705. package/lib/index-zddirpDj.js.map +1 -0
  706. package/lib/index.esm-BFcSKCe-.js +683 -0
  707. package/lib/{index.esm-9-TF9KQB.js.map → index.esm-BFcSKCe-.js.map} +1 -1
  708. package/lib/index.esm-DSfX_eMP.js +1216 -0
  709. package/lib/index.esm-DSfX_eMP.js.map +1 -0
  710. package/lib/invariant-DAFpPywt.js +48 -0
  711. package/lib/{invariant-Caa8-XvF.js.map → invariant-DAFpPywt.js.map} +1 -1
  712. package/lib/joinPath-B7kNnUX4.js +8 -0
  713. package/lib/joinPath-B7kNnUX4.js.map +1 -0
  714. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  715. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  716. package/lib/mutation-ziRtY0Hx.js +196 -0
  717. package/lib/mutation-ziRtY0Hx.js.map +1 -0
  718. package/lib/objectEntries-yMIkr2mI.js +5 -0
  719. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  720. package/lib/processors/removeExtensions.js +11 -0
  721. package/lib/processors/removeExtensions.js.map +1 -0
  722. package/lib/processors/removeParameters.js +47 -0
  723. package/lib/processors/removeParameters.js.map +1 -0
  724. package/lib/processors/removePaths.js +28 -0
  725. package/lib/processors/removePaths.js.map +1 -0
  726. package/lib/processors/traverse.js +17 -0
  727. package/lib/processors/traverse.js.map +1 -0
  728. package/lib/ui/Accordion.js +2 -2
  729. package/lib/ui/ActionButton.js +11 -10
  730. package/lib/ui/ActionButton.js.map +1 -1
  731. package/lib/ui/Alert.js +3 -3
  732. package/lib/ui/AlertDialog.js +2 -2
  733. package/lib/ui/Badge.js +4 -4
  734. package/lib/ui/Badge.js.map +1 -1
  735. package/lib/ui/Breadcrumb.js +5 -5
  736. package/lib/ui/Button.js +22 -19
  737. package/lib/ui/Button.js.map +1 -1
  738. package/lib/ui/Callout.js +40 -20
  739. package/lib/ui/Callout.js.map +1 -1
  740. package/lib/ui/Card.js +9 -9
  741. package/lib/ui/Card.js.map +1 -1
  742. package/lib/ui/Carousel.js +348 -348
  743. package/lib/ui/Carousel.js.map +1 -1
  744. package/lib/ui/Checkbox.js +16 -26
  745. package/lib/ui/Checkbox.js.map +1 -1
  746. package/lib/ui/CodeBlock.js +83 -0
  747. package/lib/ui/CodeBlock.js.map +1 -0
  748. package/lib/ui/Command.js +102 -75
  749. package/lib/ui/Command.js.map +1 -1
  750. package/lib/ui/Dialog.js +3 -3
  751. package/lib/ui/Dialog.js.map +1 -1
  752. package/lib/ui/Drawer.js +14 -1151
  753. package/lib/ui/Drawer.js.map +1 -1
  754. package/lib/ui/DropdownMenu.js +35 -35
  755. package/lib/ui/DropdownMenu.js.map +1 -1
  756. package/lib/ui/Form.js +6 -6
  757. package/lib/ui/HoverCard.js +6 -6
  758. package/lib/ui/HoverCard.js.map +1 -1
  759. package/lib/ui/Input.js +3 -3
  760. package/lib/ui/Input.js.map +1 -1
  761. package/lib/ui/Label.js +3 -3
  762. package/lib/ui/Pagination.js +11 -11
  763. package/lib/ui/Popover.js +3 -3
  764. package/lib/ui/Popover.js.map +1 -1
  765. package/lib/ui/Progress.js +2 -2
  766. package/lib/ui/RadioGroup.js +11 -11
  767. package/lib/ui/RadioGroup.js.map +1 -1
  768. package/lib/ui/ScrollArea.js +2 -2
  769. package/lib/ui/Select.js +32 -32
  770. package/lib/ui/Select.js.map +1 -1
  771. package/lib/ui/Skeleton.js +2 -2
  772. package/lib/ui/Slider.js +6 -6
  773. package/lib/ui/Slider.js.map +1 -1
  774. package/lib/ui/Stepper.js +6 -0
  775. package/lib/ui/Stepper.js.map +1 -0
  776. package/lib/ui/Switch.js +6 -6
  777. package/lib/ui/Switch.js.map +1 -1
  778. package/lib/ui/SyntaxHighlight.js +10 -0
  779. package/lib/ui/SyntaxHighlight.js.map +1 -0
  780. package/lib/ui/Tabs.js +17 -17
  781. package/lib/ui/Tabs.js.map +1 -1
  782. package/lib/ui/Textarea.js +6 -6
  783. package/lib/ui/Textarea.js.map +1 -1
  784. package/lib/ui/Toggle.js +8 -8
  785. package/lib/ui/Toggle.js.map +1 -1
  786. package/lib/ui/ToggleGroup.js +2 -2
  787. package/lib/ui/Tooltip.js +15 -8
  788. package/lib/ui/Tooltip.js.map +1 -1
  789. package/lib/ui/util.js +6 -0
  790. package/lib/ui/util.js.map +1 -0
  791. package/lib/{useExposedProps-Bbf99zic.js → useExposedProps-DG8J6ewJ.js} +2 -2
  792. package/lib/useExposedProps-DG8J6ewJ.js.map +1 -0
  793. package/lib/useLatest-hmRS46UF.js +11 -0
  794. package/lib/useLatest-hmRS46UF.js.map +1 -0
  795. package/lib/useMutation-X76q5okk.js +97 -0
  796. package/lib/useMutation-X76q5okk.js.map +1 -0
  797. package/lib/zudoku.auth-auth0.js +34 -36
  798. package/lib/zudoku.auth-auth0.js.map +1 -1
  799. package/lib/zudoku.auth-clerk.js +106 -77
  800. package/lib/zudoku.auth-clerk.js.map +1 -1
  801. package/lib/zudoku.auth-openid.js +503 -518
  802. package/lib/zudoku.auth-openid.js.map +1 -1
  803. package/lib/zudoku.components.js +4595 -941
  804. package/lib/zudoku.components.js.map +1 -1
  805. package/lib/zudoku.hooks.js +28 -0
  806. package/lib/zudoku.hooks.js.map +1 -0
  807. package/lib/zudoku.icons.js +10 -0
  808. package/lib/zudoku.icons.js.map +1 -1
  809. package/lib/zudoku.plugin-api-catalog.js +106 -112
  810. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  811. package/lib/zudoku.plugin-api-keys.js +518 -205
  812. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  813. package/lib/zudoku.plugin-custom-pages.js +4 -4
  814. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  815. package/lib/zudoku.plugin-markdown.js +25 -49
  816. package/lib/zudoku.plugin-markdown.js.map +1 -1
  817. package/lib/zudoku.plugin-openapi.js +7 -7
  818. package/lib/zudoku.plugin-openapi.js.map +1 -1
  819. package/lib/zudoku.plugin-redirect.js +1 -1
  820. package/lib/zudoku.plugin-redirect.js.map +1 -1
  821. package/lib/zudoku.plugin-search-inkeep.js +25 -26
  822. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  823. package/lib/zudoku.plugin-search-pagefind.js +230 -0
  824. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  825. package/lib/zudoku.plugins.js +15 -0
  826. package/lib/zudoku.plugins.js.map +1 -0
  827. package/package.json +120 -84
  828. package/src/app/ZuploBuildConfig.ts +33 -0
  829. package/src/app/defaultTheme.css +54 -0
  830. package/src/app/demo.html +1 -1
  831. package/src/app/entry.client.tsx +51 -0
  832. package/src/app/entry.server.tsx +23 -13
  833. package/src/app/env.ts +35 -0
  834. package/src/app/font.geist.css +73 -0
  835. package/src/app/main.css +200 -144
  836. package/src/app/main.tsx +31 -30
  837. package/src/lib/MissingIcon.tsx +22 -0
  838. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
  839. package/src/lib/authentication/authentication.ts +4 -5
  840. package/src/lib/authentication/components/CallbackHandler.tsx +11 -1
  841. package/src/lib/authentication/components/SignIn.tsx +35 -2
  842. package/src/lib/authentication/components/SignUp.tsx +35 -1
  843. package/src/lib/authentication/hook.ts +12 -1
  844. package/src/lib/authentication/providers/auth0.tsx +11 -4
  845. package/src/lib/authentication/providers/clerk.tsx +105 -53
  846. package/src/lib/authentication/providers/openid.tsx +59 -57
  847. package/src/lib/authentication/providers/supabase.tsx +157 -0
  848. package/src/lib/authentication/state.ts +9 -37
  849. package/src/lib/components/AnchorLink.tsx +9 -7
  850. package/src/lib/components/Autocomplete.tsx +1 -1
  851. package/src/lib/components/Banner.tsx +3 -2
  852. package/src/lib/components/Bootstrap.tsx +13 -6
  853. package/src/lib/components/BuildCheck.tsx +75 -0
  854. package/src/lib/components/ErrorPage.tsx +1 -1
  855. package/src/lib/components/Footer.tsx +136 -0
  856. package/src/lib/components/Header.tsx +40 -36
  857. package/src/lib/components/Heading.tsx +11 -7
  858. package/src/lib/components/InlineCode.tsx +13 -16
  859. package/src/lib/components/Layout.tsx +30 -71
  860. package/src/lib/components/Main.tsx +51 -0
  861. package/src/lib/components/Markdown.tsx +39 -24
  862. package/src/lib/components/MobileTopNavigation.tsx +30 -20
  863. package/src/lib/components/NotFoundPage.tsx +1 -1
  864. package/src/lib/components/Pagination.tsx +44 -0
  865. package/src/lib/components/Search.tsx +15 -4
  866. package/src/lib/components/Slot.test.tsx +465 -0
  867. package/src/lib/components/Slot.tsx +64 -0
  868. package/src/lib/components/ThemeSwitch.tsx +28 -8
  869. package/src/lib/components/TopNavigation.tsx +49 -34
  870. package/src/lib/components/Zudoku.tsx +27 -16
  871. package/src/lib/components/cache.ts +8 -0
  872. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  873. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  874. package/src/lib/components/context/SlotProvider.tsx +149 -0
  875. package/src/lib/components/context/ViewportAnchorContext.tsx +14 -30
  876. package/src/lib/components/context/ZudokuContext.ts +27 -8
  877. package/src/lib/components/context/ZudokuProvider.tsx +2 -1
  878. package/src/lib/components/index.ts +17 -9
  879. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  880. package/src/lib/components/navigation/Sidebar.tsx +38 -45
  881. package/src/lib/components/navigation/SidebarBadge.tsx +4 -1
  882. package/src/lib/components/navigation/SidebarCategory.tsx +26 -19
  883. package/src/lib/components/navigation/SidebarItem.tsx +73 -54
  884. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -23
  885. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +9 -18
  886. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  887. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  888. package/src/lib/components/navigation/utils.ts +42 -6
  889. package/src/lib/core/RouteGuard.tsx +73 -12
  890. package/src/lib/core/ZudokuContext.ts +86 -17
  891. package/src/lib/core/plugins.ts +38 -8
  892. package/src/lib/errors/ErrorAlert.tsx +24 -17
  893. package/src/lib/hooks/index.ts +16 -0
  894. package/src/lib/hooks/useEvent.test.tsx +149 -0
  895. package/src/lib/hooks/useEvent.ts +41 -0
  896. package/src/lib/icons.ts +1 -0
  897. package/src/lib/oas/graphql/circular.ts +27 -19
  898. package/src/lib/oas/graphql/index.ts +206 -54
  899. package/src/lib/oas/parser/dereference/index.ts +2 -0
  900. package/src/lib/oas/parser/index.ts +14 -30
  901. package/src/lib/oas/parser/upgrade/index.ts +97 -26
  902. package/src/lib/plugins/api-catalog/Catalog.tsx +50 -100
  903. package/src/lib/plugins/api-catalog/index.tsx +66 -15
  904. package/src/lib/plugins/api-keys/CreateApiKey.tsx +61 -45
  905. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +438 -113
  906. package/src/lib/plugins/api-keys/index.tsx +113 -57
  907. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  908. package/src/lib/plugins/markdown/MdxPage.tsx +15 -47
  909. package/src/lib/plugins/markdown/index.tsx +2 -2
  910. package/src/lib/plugins/markdown/resolver.ts +4 -35
  911. package/src/lib/plugins/openapi/CollapsibleCode.tsx +8 -5
  912. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -3
  913. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  914. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  915. package/src/lib/plugins/openapi/OperationList.tsx +185 -83
  916. package/src/lib/plugins/openapi/OperationListItem.tsx +103 -108
  917. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  918. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  919. package/src/lib/plugins/openapi/ParameterListItem.tsx +65 -23
  920. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +15 -2
  921. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  922. package/src/lib/plugins/openapi/SchemaList.tsx +163 -0
  923. package/src/lib/plugins/openapi/Sidecar.tsx +61 -78
  924. package/src/lib/plugins/openapi/SidecarExamples.tsx +9 -4
  925. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  926. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
  927. package/src/lib/plugins/openapi/client/useCreateQuery.ts +34 -7
  928. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  929. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  930. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  931. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  932. package/src/lib/plugins/openapi/graphql/gql.ts +34 -17
  933. package/src/lib/plugins/openapi/graphql/graphql.ts +172 -86
  934. package/src/lib/plugins/openapi/index.tsx +83 -177
  935. package/src/lib/plugins/openapi/interfaces.ts +45 -15
  936. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +30 -32
  937. package/src/lib/plugins/openapi/playground/Headers.tsx +2 -3
  938. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  939. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +41 -0
  940. package/src/lib/plugins/openapi/playground/PathParams.tsx +8 -2
  941. package/src/lib/plugins/openapi/playground/Playground.tsx +210 -115
  942. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  943. package/src/lib/plugins/openapi/playground/QueryParams.tsx +4 -5
  944. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  945. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +25 -30
  946. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  947. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +3 -3
  948. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +26 -6
  949. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +67 -45
  950. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.ts +29 -9
  951. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.ts +5 -3
  952. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.ts +67 -33
  953. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.ts +5 -3
  954. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  955. package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.ts +5 -3
  956. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  957. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  958. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  959. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  960. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +69 -60
  961. package/src/lib/plugins/openapi/schema/SchemaView.tsx +101 -140
  962. package/src/lib/plugins/openapi/schema/utils.ts +29 -6
  963. package/src/lib/plugins/openapi/state.ts +36 -0
  964. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  965. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  966. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +51 -1
  967. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  968. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  969. package/src/lib/plugins/redirect/index.tsx +1 -1
  970. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  971. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  972. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  973. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  974. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  975. package/src/lib/shiki.ts +133 -0
  976. package/src/lib/ui/Badge.tsx +2 -2
  977. package/src/lib/ui/Button.tsx +12 -7
  978. package/src/lib/ui/Callout.tsx +30 -10
  979. package/src/lib/ui/Card.tsx +1 -1
  980. package/src/lib/ui/Checkbox.tsx +8 -24
  981. package/src/lib/ui/CodeBlock.tsx +102 -0
  982. package/src/lib/ui/Command.tsx +29 -7
  983. package/src/lib/ui/Dialog.tsx +1 -1
  984. package/src/lib/ui/DropdownMenu.tsx +4 -4
  985. package/src/lib/ui/HoverCard.tsx +1 -1
  986. package/src/lib/ui/Input.tsx +1 -1
  987. package/src/lib/ui/Popover.tsx +1 -1
  988. package/src/lib/ui/RadioGroup.tsx +1 -1
  989. package/src/lib/ui/Select.tsx +3 -3
  990. package/src/lib/ui/Slider.tsx +1 -1
  991. package/src/lib/ui/Stepper.tsx +8 -0
  992. package/src/lib/ui/Switch.tsx +1 -1
  993. package/src/lib/ui/SyntaxHighlight.tsx +27 -0
  994. package/src/lib/ui/Tabs.tsx +2 -2
  995. package/src/lib/ui/Textarea.tsx +1 -1
  996. package/src/lib/ui/Toggle.tsx +1 -1
  997. package/src/lib/ui/Tooltip.tsx +16 -1
  998. package/src/lib/ui/util.tsx +3 -0
  999. package/src/lib/util/MdxComponents.tsx +36 -18
  1000. package/src/lib/util/detectOS.ts +9 -0
  1001. package/src/lib/util/ensureArray.ts +3 -0
  1002. package/src/lib/util/joinPath.tsx +3 -0
  1003. package/src/lib/util/traverse.ts +12 -13
  1004. package/src/lib/util/types.ts +7 -0
  1005. package/src/lib/util/url.test.ts +51 -0
  1006. package/src/lib/util/url.ts +18 -0
  1007. package/src/lib/util/useExposedProps.tsx +12 -1
  1008. package/src/lib/util/useLatest.ts +18 -0
  1009. package/src/lib/util/useOnScreen.ts +6 -4
  1010. package/src/lib/util/useScrollToAnchor.ts +30 -20
  1011. package/src/shiki/langs/abap.js +1 -0
  1012. package/src/shiki/langs/actionscript-3.js +1 -0
  1013. package/src/shiki/langs/ada.js +1 -0
  1014. package/src/shiki/langs/angular-expression.js +1 -0
  1015. package/src/shiki/langs/angular-html.js +1 -0
  1016. package/src/shiki/langs/angular-inline-style.js +1 -0
  1017. package/src/shiki/langs/angular-inline-template.js +1 -0
  1018. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1019. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1020. package/src/shiki/langs/angular-template.js +1 -0
  1021. package/src/shiki/langs/angular-ts.js +1 -0
  1022. package/src/shiki/langs/apache.js +1 -0
  1023. package/src/shiki/langs/apex.js +1 -0
  1024. package/src/shiki/langs/apl.js +1 -0
  1025. package/src/shiki/langs/applescript.js +1 -0
  1026. package/src/shiki/langs/ara.js +1 -0
  1027. package/src/shiki/langs/asciidoc.js +1 -0
  1028. package/src/shiki/langs/asm.js +1 -0
  1029. package/src/shiki/langs/astro.js +1 -0
  1030. package/src/shiki/langs/awk.js +1 -0
  1031. package/src/shiki/langs/ballerina.js +1 -0
  1032. package/src/shiki/langs/bat.js +1 -0
  1033. package/src/shiki/langs/beancount.js +1 -0
  1034. package/src/shiki/langs/berry.js +1 -0
  1035. package/src/shiki/langs/bibtex.js +1 -0
  1036. package/src/shiki/langs/bicep.js +1 -0
  1037. package/src/shiki/langs/blade.js +1 -0
  1038. package/src/shiki/langs/bsl.js +1 -0
  1039. package/src/shiki/langs/c.js +1 -0
  1040. package/src/shiki/langs/cadence.js +1 -0
  1041. package/src/shiki/langs/cairo.js +1 -0
  1042. package/src/shiki/langs/clarity.js +1 -0
  1043. package/src/shiki/langs/clojure.js +1 -0
  1044. package/src/shiki/langs/cmake.js +1 -0
  1045. package/src/shiki/langs/cobol.js +1 -0
  1046. package/src/shiki/langs/codeowners.js +1 -0
  1047. package/src/shiki/langs/codeql.js +1 -0
  1048. package/src/shiki/langs/coffee.js +1 -0
  1049. package/src/shiki/langs/common-lisp.js +1 -0
  1050. package/src/shiki/langs/coq.js +1 -0
  1051. package/src/shiki/langs/cpp-macro.js +1 -0
  1052. package/src/shiki/langs/cpp.js +1 -0
  1053. package/src/shiki/langs/crystal.js +1 -0
  1054. package/src/shiki/langs/csharp.js +1 -0
  1055. package/src/shiki/langs/css.js +1 -0
  1056. package/src/shiki/langs/csv.js +1 -0
  1057. package/src/shiki/langs/cue.js +1 -0
  1058. package/src/shiki/langs/cypher.js +1 -0
  1059. package/src/shiki/langs/d.js +1 -0
  1060. package/src/shiki/langs/dart.js +1 -0
  1061. package/src/shiki/langs/dax.js +1 -0
  1062. package/src/shiki/langs/desktop.js +1 -0
  1063. package/src/shiki/langs/diff.js +1 -0
  1064. package/src/shiki/langs/docker.js +1 -0
  1065. package/src/shiki/langs/dotenv.js +1 -0
  1066. package/src/shiki/langs/dream-maker.js +1 -0
  1067. package/src/shiki/langs/edge.js +1 -0
  1068. package/src/shiki/langs/elixir.js +1 -0
  1069. package/src/shiki/langs/elm.js +1 -0
  1070. package/src/shiki/langs/emacs-lisp.js +1 -0
  1071. package/src/shiki/langs/erb.js +1 -0
  1072. package/src/shiki/langs/erlang.js +1 -0
  1073. package/src/shiki/langs/es-tag-css.js +1 -0
  1074. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1075. package/src/shiki/langs/es-tag-html.js +1 -0
  1076. package/src/shiki/langs/es-tag-sql.js +1 -0
  1077. package/src/shiki/langs/es-tag-xml.js +1 -0
  1078. package/src/shiki/langs/fennel.js +1 -0
  1079. package/src/shiki/langs/fish.js +1 -0
  1080. package/src/shiki/langs/fluent.js +1 -0
  1081. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1082. package/src/shiki/langs/fortran-free-form.js +1 -0
  1083. package/src/shiki/langs/fsharp.js +1 -0
  1084. package/src/shiki/langs/gdresource.js +1 -0
  1085. package/src/shiki/langs/gdscript.js +1 -0
  1086. package/src/shiki/langs/gdshader.js +1 -0
  1087. package/src/shiki/langs/genie.js +1 -0
  1088. package/src/shiki/langs/gherkin.js +1 -0
  1089. package/src/shiki/langs/git-commit.js +1 -0
  1090. package/src/shiki/langs/git-rebase.js +1 -0
  1091. package/src/shiki/langs/gleam.js +1 -0
  1092. package/src/shiki/langs/glimmer-js.js +1 -0
  1093. package/src/shiki/langs/glimmer-ts.js +1 -0
  1094. package/src/shiki/langs/glsl.js +1 -0
  1095. package/src/shiki/langs/gnuplot.js +1 -0
  1096. package/src/shiki/langs/go.js +1 -0
  1097. package/src/shiki/langs/graphql.js +1 -0
  1098. package/src/shiki/langs/groovy.js +1 -0
  1099. package/src/shiki/langs/hack.js +1 -0
  1100. package/src/shiki/langs/haml.js +1 -0
  1101. package/src/shiki/langs/handlebars.js +1 -0
  1102. package/src/shiki/langs/haskell.js +1 -0
  1103. package/src/shiki/langs/haxe.js +1 -0
  1104. package/src/shiki/langs/hcl.js +1 -0
  1105. package/src/shiki/langs/hjson.js +1 -0
  1106. package/src/shiki/langs/hlsl.js +1 -0
  1107. package/src/shiki/langs/html-derivative.js +1 -0
  1108. package/src/shiki/langs/html.js +1 -0
  1109. package/src/shiki/langs/http.js +1 -0
  1110. package/src/shiki/langs/hxml.js +1 -0
  1111. package/src/shiki/langs/hy.js +1 -0
  1112. package/src/shiki/langs/imba.js +1 -0
  1113. package/src/shiki/langs/ini.js +1 -0
  1114. package/src/shiki/langs/java.js +1 -0
  1115. package/src/shiki/langs/javascript.js +1 -0
  1116. package/src/shiki/langs/jinja-html.js +1 -0
  1117. package/src/shiki/langs/jinja.js +1 -0
  1118. package/src/shiki/langs/jison.js +1 -0
  1119. package/src/shiki/langs/json.js +1 -0
  1120. package/src/shiki/langs/json5.js +1 -0
  1121. package/src/shiki/langs/jsonc.js +1 -0
  1122. package/src/shiki/langs/jsonl.js +1 -0
  1123. package/src/shiki/langs/jsonnet.js +1 -0
  1124. package/src/shiki/langs/jssm.js +1 -0
  1125. package/src/shiki/langs/jsx.js +1 -0
  1126. package/src/shiki/langs/julia.js +1 -0
  1127. package/src/shiki/langs/kotlin.js +1 -0
  1128. package/src/shiki/langs/kusto.js +1 -0
  1129. package/src/shiki/langs/latex.js +1 -0
  1130. package/src/shiki/langs/lean.js +1 -0
  1131. package/src/shiki/langs/less.js +1 -0
  1132. package/src/shiki/langs/liquid.js +1 -0
  1133. package/src/shiki/langs/llvm.js +1 -0
  1134. package/src/shiki/langs/log.js +1 -0
  1135. package/src/shiki/langs/logo.js +1 -0
  1136. package/src/shiki/langs/lua.js +1 -0
  1137. package/src/shiki/langs/luau.js +1 -0
  1138. package/src/shiki/langs/make.js +1 -0
  1139. package/src/shiki/langs/markdown-vue.js +1 -0
  1140. package/src/shiki/langs/markdown.js +1 -0
  1141. package/src/shiki/langs/marko.js +1 -0
  1142. package/src/shiki/langs/matlab.js +1 -0
  1143. package/src/shiki/langs/mdc.js +1 -0
  1144. package/src/shiki/langs/mdx.js +1 -0
  1145. package/src/shiki/langs/mermaid.js +1 -0
  1146. package/src/shiki/langs/mipsasm.js +1 -0
  1147. package/src/shiki/langs/mojo.js +1 -0
  1148. package/src/shiki/langs/move.js +1 -0
  1149. package/src/shiki/langs/narrat.js +1 -0
  1150. package/src/shiki/langs/nextflow.js +1 -0
  1151. package/src/shiki/langs/nginx.js +1 -0
  1152. package/src/shiki/langs/nim.js +1 -0
  1153. package/src/shiki/langs/nix.js +1 -0
  1154. package/src/shiki/langs/nushell.js +1 -0
  1155. package/src/shiki/langs/objective-c.js +1 -0
  1156. package/src/shiki/langs/objective-cpp.js +1 -0
  1157. package/src/shiki/langs/ocaml.js +1 -0
  1158. package/src/shiki/langs/pascal.js +1 -0
  1159. package/src/shiki/langs/perl.js +1 -0
  1160. package/src/shiki/langs/php.js +1 -0
  1161. package/src/shiki/langs/plsql.js +1 -0
  1162. package/src/shiki/langs/po.js +1 -0
  1163. package/src/shiki/langs/polar.js +1 -0
  1164. package/src/shiki/langs/postcss.js +1 -0
  1165. package/src/shiki/langs/powerquery.js +1 -0
  1166. package/src/shiki/langs/powershell.js +1 -0
  1167. package/src/shiki/langs/prisma.js +1 -0
  1168. package/src/shiki/langs/prolog.js +1 -0
  1169. package/src/shiki/langs/proto.js +1 -0
  1170. package/src/shiki/langs/pug.js +1 -0
  1171. package/src/shiki/langs/puppet.js +1 -0
  1172. package/src/shiki/langs/purescript.js +1 -0
  1173. package/src/shiki/langs/python.js +1 -0
  1174. package/src/shiki/langs/qml.js +1 -0
  1175. package/src/shiki/langs/qmldir.js +1 -0
  1176. package/src/shiki/langs/qss.js +1 -0
  1177. package/src/shiki/langs/r.js +1 -0
  1178. package/src/shiki/langs/racket.js +1 -0
  1179. package/src/shiki/langs/raku.js +1 -0
  1180. package/src/shiki/langs/razor.js +1 -0
  1181. package/src/shiki/langs/reg.js +1 -0
  1182. package/src/shiki/langs/regexp.js +1 -0
  1183. package/src/shiki/langs/rel.js +1 -0
  1184. package/src/shiki/langs/riscv.js +1 -0
  1185. package/src/shiki/langs/rst.js +1 -0
  1186. package/src/shiki/langs/ruby.js +1 -0
  1187. package/src/shiki/langs/rust.js +1 -0
  1188. package/src/shiki/langs/sas.js +1 -0
  1189. package/src/shiki/langs/sass.js +1 -0
  1190. package/src/shiki/langs/scala.js +1 -0
  1191. package/src/shiki/langs/scheme.js +1 -0
  1192. package/src/shiki/langs/scss.js +1 -0
  1193. package/src/shiki/langs/sdbl.js +1 -0
  1194. package/src/shiki/langs/shaderlab.js +1 -0
  1195. package/src/shiki/langs/shellscript.js +1 -0
  1196. package/src/shiki/langs/shellsession.js +1 -0
  1197. package/src/shiki/langs/smalltalk.js +1 -0
  1198. package/src/shiki/langs/solidity.js +1 -0
  1199. package/src/shiki/langs/soy.js +1 -0
  1200. package/src/shiki/langs/sparql.js +1 -0
  1201. package/src/shiki/langs/splunk.js +1 -0
  1202. package/src/shiki/langs/sql.js +1 -0
  1203. package/src/shiki/langs/ssh-config.js +1 -0
  1204. package/src/shiki/langs/stata.js +1 -0
  1205. package/src/shiki/langs/stylus.js +1 -0
  1206. package/src/shiki/langs/svelte.js +1 -0
  1207. package/src/shiki/langs/swift.js +1 -0
  1208. package/src/shiki/langs/system-verilog.js +1 -0
  1209. package/src/shiki/langs/systemd.js +1 -0
  1210. package/src/shiki/langs/talonscript.js +1 -0
  1211. package/src/shiki/langs/tasl.js +1 -0
  1212. package/src/shiki/langs/tcl.js +1 -0
  1213. package/src/shiki/langs/templ.js +1 -0
  1214. package/src/shiki/langs/terraform.js +1 -0
  1215. package/src/shiki/langs/tex.js +1 -0
  1216. package/src/shiki/langs/toml.js +1 -0
  1217. package/src/shiki/langs/ts-tags.js +1 -0
  1218. package/src/shiki/langs/tsv.js +1 -0
  1219. package/src/shiki/langs/tsx.js +1 -0
  1220. package/src/shiki/langs/turtle.js +1 -0
  1221. package/src/shiki/langs/twig.js +1 -0
  1222. package/src/shiki/langs/typescript.js +1 -0
  1223. package/src/shiki/langs/typespec.js +1 -0
  1224. package/src/shiki/langs/typst.js +1 -0
  1225. package/src/shiki/langs/v.js +1 -0
  1226. package/src/shiki/langs/vala.js +1 -0
  1227. package/src/shiki/langs/vb.js +1 -0
  1228. package/src/shiki/langs/verilog.js +1 -0
  1229. package/src/shiki/langs/vhdl.js +1 -0
  1230. package/src/shiki/langs/viml.js +1 -0
  1231. package/src/shiki/langs/vue-directives.js +1 -0
  1232. package/src/shiki/langs/vue-html.js +1 -0
  1233. package/src/shiki/langs/vue-interpolations.js +1 -0
  1234. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1235. package/src/shiki/langs/vue.js +1 -0
  1236. package/src/shiki/langs/vyper.js +1 -0
  1237. package/src/shiki/langs/wasm.js +1 -0
  1238. package/src/shiki/langs/wenyan.js +1 -0
  1239. package/src/shiki/langs/wgsl.js +1 -0
  1240. package/src/shiki/langs/wikitext.js +1 -0
  1241. package/src/shiki/langs/wit.js +1 -0
  1242. package/src/shiki/langs/wolfram.js +1 -0
  1243. package/src/shiki/langs/xml.js +1 -0
  1244. package/src/shiki/langs/xsl.js +1 -0
  1245. package/src/shiki/langs/yaml.js +1 -0
  1246. package/src/shiki/langs/zenscript.js +1 -0
  1247. package/src/shiki/langs/zig.js +1 -0
  1248. package/src/shiki/themes/andromeeda.js +1 -0
  1249. package/src/shiki/themes/aurora-x.js +1 -0
  1250. package/src/shiki/themes/ayu-dark.js +1 -0
  1251. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1252. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1253. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1254. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1255. package/src/shiki/themes/dark-plus.js +1 -0
  1256. package/src/shiki/themes/dracula-soft.js +1 -0
  1257. package/src/shiki/themes/dracula.js +1 -0
  1258. package/src/shiki/themes/everforest-dark.js +1 -0
  1259. package/src/shiki/themes/everforest-light.js +1 -0
  1260. package/src/shiki/themes/github-dark-default.js +1 -0
  1261. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1262. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1263. package/src/shiki/themes/github-dark.js +1 -0
  1264. package/src/shiki/themes/github-light-default.js +1 -0
  1265. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1266. package/src/shiki/themes/github-light.js +1 -0
  1267. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1268. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1269. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1270. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1271. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1272. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1273. package/src/shiki/themes/houston.js +1 -0
  1274. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1275. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1276. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1277. package/src/shiki/themes/laserwave.js +1 -0
  1278. package/src/shiki/themes/light-plus.js +1 -0
  1279. package/src/shiki/themes/material-theme-darker.js +1 -0
  1280. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1281. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1282. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1283. package/src/shiki/themes/material-theme.js +1 -0
  1284. package/src/shiki/themes/min-dark.js +1 -0
  1285. package/src/shiki/themes/min-light.js +1 -0
  1286. package/src/shiki/themes/monokai.js +1 -0
  1287. package/src/shiki/themes/night-owl.js +1 -0
  1288. package/src/shiki/themes/nord.js +1 -0
  1289. package/src/shiki/themes/one-dark-pro.js +1 -0
  1290. package/src/shiki/themes/one-light.js +1 -0
  1291. package/src/shiki/themes/plastic.js +1 -0
  1292. package/src/shiki/themes/poimandres.js +1 -0
  1293. package/src/shiki/themes/red.js +1 -0
  1294. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1295. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1296. package/src/shiki/themes/rose-pine.js +1 -0
  1297. package/src/shiki/themes/slack-dark.js +1 -0
  1298. package/src/shiki/themes/slack-ochin.js +1 -0
  1299. package/src/shiki/themes/snazzy-light.js +1 -0
  1300. package/src/shiki/themes/solarized-dark.js +1 -0
  1301. package/src/shiki/themes/solarized-light.js +1 -0
  1302. package/src/shiki/themes/synthwave-84.js +1 -0
  1303. package/src/shiki/themes/tokyo-night.js +1 -0
  1304. package/src/shiki/themes/vesper.js +1 -0
  1305. package/src/shiki/themes/vitesse-black.js +1 -0
  1306. package/src/shiki/themes/vitesse-dark.js +1 -0
  1307. package/src/shiki/themes/vitesse-light.js +1 -0
  1308. package/client.d.ts +0 -8
  1309. package/dist/app/tailwind.d.ts +0 -4
  1310. package/dist/app/tailwind.js +0 -77
  1311. package/dist/app/tailwind.js.map +0 -1
  1312. package/dist/config/common.d.ts +0 -8
  1313. package/dist/config/common.js +0 -2
  1314. package/dist/config/common.js.map +0 -1
  1315. package/dist/config/validators/common.d.ts +0 -5145
  1316. package/dist/config/validators/common.js +0 -290
  1317. package/dist/config/validators/common.js.map +0 -1
  1318. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1319. package/dist/lib/components/SlotletProvider.js +0 -18
  1320. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1321. package/dist/lib/components/SyntaxHighlight.d.ts +0 -12
  1322. package/dist/lib/components/SyntaxHighlight.js +0 -53
  1323. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1324. package/dist/lib/components/context/PluginSystem.js +0 -2
  1325. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1326. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1327. package/dist/lib/plugins/openapi/OpenApiRoute.js +0 -25
  1328. package/dist/lib/plugins/openapi/OpenApiRoute.js.map +0 -1
  1329. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
  1330. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
  1331. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
  1332. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
  1333. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
  1334. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
  1335. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
  1336. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
  1337. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
  1338. package/dist/vite/plugin-docs.test.js +0 -22
  1339. package/dist/vite/plugin-docs.test.js.map +0 -1
  1340. package/dist/vite/prerender.d.ts +0 -22
  1341. package/dist/vite/prerender.js +0 -89
  1342. package/dist/vite/prerender.js.map +0 -1
  1343. package/dist/zuplo/env.d.ts +0 -7
  1344. package/dist/zuplo/env.js +0 -12
  1345. package/dist/zuplo/env.js.map +0 -1
  1346. package/lib/AuthenticationPlugin-DeEA69mE.js +0 -58
  1347. package/lib/AuthenticationPlugin-DeEA69mE.js.map +0 -1
  1348. package/lib/Markdown-8mv9nhGd.js.map +0 -1
  1349. package/lib/MdxPage-BalfwlsD.js +0 -193
  1350. package/lib/MdxPage-BalfwlsD.js.map +0 -1
  1351. package/lib/OpenApiRoute-ULLXjfro.js +0 -36
  1352. package/lib/OpenApiRoute-ULLXjfro.js.map +0 -1
  1353. package/lib/OperationList-B3VX94x4.js +0 -5179
  1354. package/lib/OperationList-B3VX94x4.js.map +0 -1
  1355. package/lib/Select-BcAbBUmk.js +0 -223
  1356. package/lib/Select-BcAbBUmk.js.map +0 -1
  1357. package/lib/SlotletProvider-D0mFmGJu.js +0 -221
  1358. package/lib/SlotletProvider-D0mFmGJu.js.map +0 -1
  1359. package/lib/Spinner-BlzrEEk1.js +0 -51
  1360. package/lib/Spinner-BlzrEEk1.js.map +0 -1
  1361. package/lib/SyntaxHighlight-B0L4SC_N.js +0 -2986
  1362. package/lib/SyntaxHighlight-B0L4SC_N.js.map +0 -1
  1363. package/lib/ZudokuContext-dUyBGMap.js +0 -1229
  1364. package/lib/ZudokuContext-dUyBGMap.js.map +0 -1
  1365. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  1366. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  1367. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1368. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1369. package/lib/chunk-SYFQ2XB5-QijJrSf0.js.map +0 -1
  1370. package/lib/circular-DxaIIlWD.js.map +0 -1
  1371. package/lib/cn-qaFjX9_3.js.map +0 -1
  1372. package/lib/context-rwLGh-6_.js +0 -22
  1373. package/lib/context-rwLGh-6_.js.map +0 -1
  1374. package/lib/createServer-E3cXjB0P.js.map +0 -1
  1375. package/lib/hook-NIpDSpau.js +0 -227
  1376. package/lib/hook-NIpDSpau.js.map +0 -1
  1377. package/lib/index-B7mqiOei.js +0 -509
  1378. package/lib/index-B7mqiOei.js.map +0 -1
  1379. package/lib/index-Djenk2Hj.js +0 -36
  1380. package/lib/index-Dl3Yl0yb.js.map +0 -1
  1381. package/lib/index-P0YUtHIb.js +0 -2065
  1382. package/lib/index-P0YUtHIb.js.map +0 -1
  1383. package/lib/index.esm-9-TF9KQB.js +0 -692
  1384. package/lib/index.esm-CrSoEshU.js +0 -1207
  1385. package/lib/index.esm-CrSoEshU.js.map +0 -1
  1386. package/lib/invariant-Caa8-XvF.js +0 -26
  1387. package/lib/joinUrl-nLx9pD-Z.js +0 -20
  1388. package/lib/joinUrl-nLx9pD-Z.js.map +0 -1
  1389. package/lib/jsx-runtime-Bdg6XQ1m.js +0 -446
  1390. package/lib/jsx-runtime-Bdg6XQ1m.js.map +0 -1
  1391. package/lib/post-processors/removeExtensions.js +0 -11
  1392. package/lib/post-processors/removeExtensions.js.map +0 -1
  1393. package/lib/post-processors/removeParameters.js +0 -48
  1394. package/lib/post-processors/removeParameters.js.map +0 -1
  1395. package/lib/post-processors/removePaths.js +0 -28
  1396. package/lib/post-processors/removePaths.js.map +0 -1
  1397. package/lib/post-processors/traverse.js +0 -15
  1398. package/lib/post-processors/traverse.js.map +0 -1
  1399. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  1400. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  1401. package/lib/prism-csharp.min-bQAo2pmx.js +0 -63
  1402. package/lib/prism-csharp.min-bQAo2pmx.js.map +0 -1
  1403. package/lib/prism-java.min-BpvsOuIa.js +0 -35
  1404. package/lib/prism-java.min-BpvsOuIa.js.map +0 -1
  1405. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1406. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1407. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1408. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1409. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  1410. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  1411. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1412. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1413. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1414. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1415. package/lib/prism-ruby.min-Dx9KO9ds.js +0 -38
  1416. package/lib/prism-ruby.min-Dx9KO9ds.js.map +0 -1
  1417. package/lib/prism-typescript.min-CD7H2IYQ.js +0 -34
  1418. package/lib/prism-typescript.min-CD7H2IYQ.js.map +0 -1
  1419. package/lib/state-bfQxaDxU.js +0 -211
  1420. package/lib/state-bfQxaDxU.js.map +0 -1
  1421. package/lib/useExposedProps-Bbf99zic.js.map +0 -1
  1422. package/lib/useScrollToAnchor-BVCQSeKB.js +0 -286
  1423. package/lib/useScrollToAnchor-BVCQSeKB.js.map +0 -1
  1424. package/src/app/tailwind.ts +0 -83
  1425. package/src/lib/components/SlotletProvider.tsx +0 -55
  1426. package/src/lib/components/SyntaxHighlight.tsx +0 -171
  1427. package/src/lib/components/context/PluginSystem.ts +0 -0
  1428. package/src/lib/plugins/openapi/OpenApiRoute.tsx +0 -51
  1429. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
  1430. /package/dist/lib/components/{context/PluginSystem.d.ts → Slot.test.d.ts} +0 -0
  1431. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1432. /package/dist/lib/{plugins/openapi/post-processors/removeExtensions.test.d.ts → hooks/useEvent.test.d.ts} +0 -0
  1433. /package/dist/lib/plugins/openapi/{post-processors/removeParameters.test.d.ts → processors/removeExtensions.test.d.ts} +0 -0
  1434. /package/dist/lib/plugins/openapi/{post-processors/removePaths.test.d.ts → processors/removeParameters.test.d.ts} +0 -0
  1435. /package/dist/{vite/plugin-docs.test.d.ts → lib/plugins/openapi/processors/removePaths.test.d.ts} +0 -0
  1436. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
  1437. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
  1438. /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
@@ -0,0 +1,1465 @@
1
+ import * as S from "react";
2
+ import Y, { createContext as Oe, useContext as Re } from "react";
3
+ import { j as Ee } from "./jsx-runtime-C5mzlN2N.js";
4
+ import { u as A, m as X } from "./chunk-BAXFHI7N-C9WnHsLV.js";
5
+ import { c as Ce } from "./index-DI5SPFK9.js";
6
+ var G = class {
7
+ constructor() {
8
+ this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
9
+ }
10
+ subscribe(e) {
11
+ return this.listeners.add(e), this.onSubscribe(), () => {
12
+ this.listeners.delete(e), this.onUnsubscribe();
13
+ };
14
+ }
15
+ hasListeners() {
16
+ return this.listeners.size > 0;
17
+ }
18
+ onSubscribe() {
19
+ }
20
+ onUnsubscribe() {
21
+ }
22
+ }, C = typeof window > "u" || "Deno" in globalThis;
23
+ function q() {
24
+ }
25
+ function bt(e, t) {
26
+ return typeof e == "function" ? e(t) : e;
27
+ }
28
+ function U(e) {
29
+ return typeof e == "number" && e >= 0 && e !== 1 / 0;
30
+ }
31
+ function oe(e, t) {
32
+ return Math.max(e + (t || 0) - Date.now(), 0);
33
+ }
34
+ function k(e, t) {
35
+ return typeof e == "function" ? e(t) : e;
36
+ }
37
+ function w(e, t) {
38
+ return typeof e == "function" ? e(t) : e;
39
+ }
40
+ function gt(e, t) {
41
+ const {
42
+ type: s = "all",
43
+ exact: r,
44
+ fetchStatus: n,
45
+ predicate: a,
46
+ queryKey: o,
47
+ stale: i
48
+ } = e;
49
+ if (o) {
50
+ if (r) {
51
+ if (t.queryHash !== Fe(o, t.options))
52
+ return !1;
53
+ } else if (!z(t.queryKey, o))
54
+ return !1;
55
+ }
56
+ if (s !== "all") {
57
+ const u = t.isActive();
58
+ if (s === "active" && !u || s === "inactive" && u)
59
+ return !1;
60
+ }
61
+ return !(typeof i == "boolean" && t.isStale() !== i || n && n !== t.state.fetchStatus || a && !a(t));
62
+ }
63
+ function St(e, t) {
64
+ const { exact: s, status: r, predicate: n, mutationKey: a } = e;
65
+ if (a) {
66
+ if (!t.options.mutationKey)
67
+ return !1;
68
+ if (s) {
69
+ if (Q(t.options.mutationKey) !== Q(a))
70
+ return !1;
71
+ } else if (!z(t.options.mutationKey, a))
72
+ return !1;
73
+ }
74
+ return !(r && t.state.status !== r || n && !n(t));
75
+ }
76
+ function Fe(e, t) {
77
+ return (t?.queryKeyHashFn || Q)(e);
78
+ }
79
+ function Q(e) {
80
+ return JSON.stringify(
81
+ e,
82
+ (t, s) => N(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
83
+ );
84
+ }
85
+ function z(e, t) {
86
+ return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((s) => z(e[s], t[s])) : !1;
87
+ }
88
+ function L(e, t) {
89
+ if (e === t)
90
+ return e;
91
+ const s = ee(e) && ee(t);
92
+ if (s || N(e) && N(t)) {
93
+ const r = s ? e : Object.keys(e), n = r.length, a = s ? t : Object.keys(t), o = a.length, i = s ? [] : {};
94
+ let u = 0;
95
+ for (let l = 0; l < o; l++) {
96
+ const h = s ? l : a[l];
97
+ (!s && r.includes(h) || s) && e[h] === void 0 && t[h] === void 0 ? (i[h] = void 0, u++) : (i[h] = L(e[h], t[h]), i[h] === e[h] && e[h] !== void 0 && u++);
98
+ }
99
+ return n === o && u === n ? e : i;
100
+ }
101
+ return t;
102
+ }
103
+ function M(e, t) {
104
+ if (!t || Object.keys(e).length !== Object.keys(t).length)
105
+ return !1;
106
+ for (const s in e)
107
+ if (e[s] !== t[s])
108
+ return !1;
109
+ return !0;
110
+ }
111
+ function ee(e) {
112
+ return Array.isArray(e) && e.length === Object.keys(e).length;
113
+ }
114
+ function N(e) {
115
+ if (!te(e))
116
+ return !1;
117
+ const t = e.constructor;
118
+ if (t === void 0)
119
+ return !0;
120
+ const s = t.prototype;
121
+ return !(!te(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
122
+ }
123
+ function te(e) {
124
+ return Object.prototype.toString.call(e) === "[object Object]";
125
+ }
126
+ function Ie(e) {
127
+ return new Promise((t) => {
128
+ setTimeout(t, e);
129
+ });
130
+ }
131
+ function _(e, t, s) {
132
+ if (typeof s.structuralSharing == "function")
133
+ return s.structuralSharing(e, t);
134
+ if (s.structuralSharing !== !1) {
135
+ if (process.env.NODE_ENV !== "production")
136
+ try {
137
+ return L(e, t);
138
+ } catch (r) {
139
+ throw console.error(
140
+ `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${s.queryHash}]: ${r}`
141
+ ), r;
142
+ }
143
+ return L(e, t);
144
+ }
145
+ return t;
146
+ }
147
+ function wt(e) {
148
+ return e;
149
+ }
150
+ function Ot(e, t, s = 0) {
151
+ const r = [...e, t];
152
+ return s && r.length > s ? r.slice(1) : r;
153
+ }
154
+ function Rt(e, t, s = 0) {
155
+ const r = [t, ...e];
156
+ return s && r.length > s ? r.slice(0, -1) : r;
157
+ }
158
+ var x = Symbol();
159
+ function Pe(e, t) {
160
+ return process.env.NODE_ENV !== "production" && e.queryFn === x && console.error(
161
+ `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
162
+ ), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === x ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
163
+ }
164
+ var Te = class extends G {
165
+ #t;
166
+ #e;
167
+ #s;
168
+ constructor() {
169
+ super(), this.#s = (e) => {
170
+ if (!C && window.addEventListener) {
171
+ const t = () => e();
172
+ return window.addEventListener("visibilitychange", t, !1), () => {
173
+ window.removeEventListener("visibilitychange", t);
174
+ };
175
+ }
176
+ };
177
+ }
178
+ onSubscribe() {
179
+ this.#e || this.setEventListener(this.#s);
180
+ }
181
+ onUnsubscribe() {
182
+ this.hasListeners() || (this.#e?.(), this.#e = void 0);
183
+ }
184
+ setEventListener(e) {
185
+ this.#s = e, this.#e?.(), this.#e = e((t) => {
186
+ typeof t == "boolean" ? this.setFocused(t) : this.onFocus();
187
+ });
188
+ }
189
+ setFocused(e) {
190
+ this.#t !== e && (this.#t = e, this.onFocus());
191
+ }
192
+ onFocus() {
193
+ const e = this.isFocused();
194
+ this.listeners.forEach((t) => {
195
+ t(e);
196
+ });
197
+ }
198
+ isFocused() {
199
+ return typeof this.#t == "boolean" ? this.#t : globalThis.document?.visibilityState !== "hidden";
200
+ }
201
+ }, ue = new Te(), De = class extends G {
202
+ #t = !0;
203
+ #e;
204
+ #s;
205
+ constructor() {
206
+ super(), this.#s = (e) => {
207
+ if (!C && window.addEventListener) {
208
+ const t = () => e(!0), s = () => e(!1);
209
+ return window.addEventListener("online", t, !1), window.addEventListener("offline", s, !1), () => {
210
+ window.removeEventListener("online", t), window.removeEventListener("offline", s);
211
+ };
212
+ }
213
+ };
214
+ }
215
+ onSubscribe() {
216
+ this.#e || this.setEventListener(this.#s);
217
+ }
218
+ onUnsubscribe() {
219
+ this.hasListeners() || (this.#e?.(), this.#e = void 0);
220
+ }
221
+ setEventListener(e) {
222
+ this.#s = e, this.#e?.(), this.#e = e(this.setOnline.bind(this));
223
+ }
224
+ setOnline(e) {
225
+ this.#t !== e && (this.#t = e, this.listeners.forEach((s) => {
226
+ s(e);
227
+ }));
228
+ }
229
+ isOnline() {
230
+ return this.#t;
231
+ }
232
+ }, ce = new De();
233
+ function H() {
234
+ let e, t;
235
+ const s = new Promise((n, a) => {
236
+ e = n, t = a;
237
+ });
238
+ s.status = "pending", s.catch(() => {
239
+ });
240
+ function r(n) {
241
+ Object.assign(s, n), delete s.resolve, delete s.reject;
242
+ }
243
+ return s.resolve = (n) => {
244
+ r({
245
+ status: "fulfilled",
246
+ value: n
247
+ }), e(n);
248
+ }, s.reject = (n) => {
249
+ r({
250
+ status: "rejected",
251
+ reason: n
252
+ }), t(n);
253
+ }, s;
254
+ }
255
+ function ke(e) {
256
+ return Math.min(1e3 * 2 ** e, 3e4);
257
+ }
258
+ function he(e) {
259
+ return (e ?? "online") === "online" ? ce.isOnline() : !0;
260
+ }
261
+ var le = class extends Error {
262
+ constructor(e) {
263
+ super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
264
+ }
265
+ };
266
+ function j(e) {
267
+ return e instanceof le;
268
+ }
269
+ function xe(e) {
270
+ let t = !1, s = 0, r = !1, n;
271
+ const a = H(), o = (c) => {
272
+ r || (d(new le(c)), e.abort?.());
273
+ }, i = () => {
274
+ t = !0;
275
+ }, u = () => {
276
+ t = !1;
277
+ }, l = () => ue.isFocused() && (e.networkMode === "always" || ce.isOnline()) && e.canRun(), h = () => he(e.networkMode) && e.canRun(), p = (c) => {
278
+ r || (r = !0, e.onSuccess?.(c), n?.(), a.resolve(c));
279
+ }, d = (c) => {
280
+ r || (r = !0, e.onError?.(c), n?.(), a.reject(c));
281
+ }, m = () => new Promise((c) => {
282
+ n = (b) => {
283
+ (r || l()) && c(b);
284
+ }, e.onPause?.();
285
+ }).then(() => {
286
+ n = void 0, r || e.onContinue?.();
287
+ }), R = () => {
288
+ if (r)
289
+ return;
290
+ let c;
291
+ const b = s === 0 ? e.initialPromise : void 0;
292
+ try {
293
+ c = b ?? e.fn();
294
+ } catch (v) {
295
+ c = Promise.reject(v);
296
+ }
297
+ Promise.resolve(c).then(p).catch((v) => {
298
+ if (r)
299
+ return;
300
+ const f = e.retry ?? (C ? 0 : 3), y = e.retryDelay ?? ke, E = typeof y == "function" ? y(s, v) : y, I = f === !0 || typeof f == "number" && s < f || typeof f == "function" && f(s, v);
301
+ if (t || !I) {
302
+ d(v);
303
+ return;
304
+ }
305
+ s++, e.onFail?.(s, v), Ie(E).then(() => l() ? void 0 : m()).then(() => {
306
+ t ? d(v) : R();
307
+ });
308
+ });
309
+ };
310
+ return {
311
+ promise: a,
312
+ cancel: o,
313
+ continue: () => (n?.(), a),
314
+ cancelRetry: i,
315
+ continueRetry: u,
316
+ canStart: h,
317
+ start: () => (h() ? R() : m().then(R), a)
318
+ };
319
+ }
320
+ var Ae = (e) => setTimeout(e, 0);
321
+ function je() {
322
+ let e = [], t = 0, s = (i) => {
323
+ i();
324
+ }, r = (i) => {
325
+ i();
326
+ }, n = Ae;
327
+ const a = (i) => {
328
+ t ? e.push(i) : n(() => {
329
+ s(i);
330
+ });
331
+ }, o = () => {
332
+ const i = e;
333
+ e = [], i.length && n(() => {
334
+ r(() => {
335
+ i.forEach((u) => {
336
+ s(u);
337
+ });
338
+ });
339
+ });
340
+ };
341
+ return {
342
+ batch: (i) => {
343
+ let u;
344
+ t++;
345
+ try {
346
+ u = i();
347
+ } finally {
348
+ t--, t || o();
349
+ }
350
+ return u;
351
+ },
352
+ /**
353
+ * All calls to the wrapped function will be batched.
354
+ */
355
+ batchCalls: (i) => (...u) => {
356
+ a(() => {
357
+ i(...u);
358
+ });
359
+ },
360
+ schedule: a,
361
+ /**
362
+ * Use this method to set a custom notify function.
363
+ * This can be used to for example wrap notifications with `React.act` while running tests.
364
+ */
365
+ setNotifyFunction: (i) => {
366
+ s = i;
367
+ },
368
+ /**
369
+ * Use this method to set a custom function to batch notifications together into a single tick.
370
+ * By default React Query will use the batch function provided by ReactDOM or React Native.
371
+ */
372
+ setBatchNotifyFunction: (i) => {
373
+ r = i;
374
+ },
375
+ setScheduler: (i) => {
376
+ n = i;
377
+ }
378
+ };
379
+ }
380
+ var $ = je(), qe = class {
381
+ #t;
382
+ destroy() {
383
+ this.clearGcTimeout();
384
+ }
385
+ scheduleGc() {
386
+ this.clearGcTimeout(), U(this.gcTime) && (this.#t = setTimeout(() => {
387
+ this.optionalRemove();
388
+ }, this.gcTime));
389
+ }
390
+ updateGcTime(e) {
391
+ this.gcTime = Math.max(
392
+ this.gcTime || 0,
393
+ e ?? (C ? 1 / 0 : 5 * 60 * 1e3)
394
+ );
395
+ }
396
+ clearGcTimeout() {
397
+ this.#t && (clearTimeout(this.#t), this.#t = void 0);
398
+ }
399
+ }, Et = class extends qe {
400
+ #t;
401
+ #e;
402
+ #s;
403
+ #n;
404
+ #r;
405
+ #o;
406
+ #a;
407
+ constructor(e) {
408
+ super(), this.#a = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#n = e.client, this.#s = this.#n.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Ue(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
409
+ }
410
+ get meta() {
411
+ return this.options.meta;
412
+ }
413
+ get promise() {
414
+ return this.#r?.promise;
415
+ }
416
+ setOptions(e) {
417
+ this.options = { ...this.#o, ...e }, this.updateGcTime(this.options.gcTime);
418
+ }
419
+ optionalRemove() {
420
+ !this.observers.length && this.state.fetchStatus === "idle" && this.#s.remove(this);
421
+ }
422
+ setData(e, t) {
423
+ const s = _(this.state.data, e, this.options);
424
+ return this.#i({
425
+ data: s,
426
+ type: "success",
427
+ dataUpdatedAt: t?.updatedAt,
428
+ manual: t?.manual
429
+ }), s;
430
+ }
431
+ setState(e, t) {
432
+ this.#i({ type: "setState", state: e, setStateOptions: t });
433
+ }
434
+ cancel(e) {
435
+ const t = this.#r?.promise;
436
+ return this.#r?.cancel(e), t ? t.then(q).catch(q) : Promise.resolve();
437
+ }
438
+ destroy() {
439
+ super.destroy(), this.cancel({ silent: !0 });
440
+ }
441
+ reset() {
442
+ this.destroy(), this.setState(this.#t);
443
+ }
444
+ isActive() {
445
+ return this.observers.some(
446
+ (e) => w(e.options.enabled, this) !== !1
447
+ );
448
+ }
449
+ isDisabled() {
450
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === x || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
451
+ }
452
+ isStale() {
453
+ return this.state.isInvalidated ? !0 : this.getObserversCount() > 0 ? this.observers.some(
454
+ (e) => e.getCurrentResult().isStale
455
+ ) : this.state.data === void 0;
456
+ }
457
+ isStaleByTime(e = 0) {
458
+ return this.state.isInvalidated || this.state.data === void 0 || !oe(this.state.dataUpdatedAt, e);
459
+ }
460
+ onFocus() {
461
+ this.observers.find((t) => t.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#r?.continue();
462
+ }
463
+ onOnline() {
464
+ this.observers.find((t) => t.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#r?.continue();
465
+ }
466
+ addObserver(e) {
467
+ this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), this.#s.notify({ type: "observerAdded", query: this, observer: e }));
468
+ }
469
+ removeObserver(e) {
470
+ this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#r && (this.#a ? this.#r.cancel({ revert: !0 }) : this.#r.cancelRetry()), this.scheduleGc()), this.#s.notify({ type: "observerRemoved", query: this, observer: e }));
471
+ }
472
+ getObserversCount() {
473
+ return this.observers.length;
474
+ }
475
+ invalidate() {
476
+ this.state.isInvalidated || this.#i({ type: "invalidate" });
477
+ }
478
+ fetch(e, t) {
479
+ if (this.state.fetchStatus !== "idle") {
480
+ if (this.state.data !== void 0 && t?.cancelRefetch)
481
+ this.cancel({ silent: !0 });
482
+ else if (this.#r)
483
+ return this.#r.continueRetry(), this.#r.promise;
484
+ }
485
+ if (e && this.setOptions(e), !this.options.queryFn) {
486
+ const i = this.observers.find((u) => u.options.queryFn);
487
+ i && this.setOptions(i.options);
488
+ }
489
+ process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
490
+ "As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"
491
+ ));
492
+ const s = new AbortController(), r = (i) => {
493
+ Object.defineProperty(i, "signal", {
494
+ enumerable: !0,
495
+ get: () => (this.#a = !0, s.signal)
496
+ });
497
+ }, n = () => {
498
+ const i = Pe(this.options, t), u = {
499
+ client: this.#n,
500
+ queryKey: this.queryKey,
501
+ meta: this.meta
502
+ };
503
+ return r(u), this.#a = !1, this.options.persister ? this.options.persister(
504
+ i,
505
+ u,
506
+ this
507
+ ) : i(u);
508
+ }, a = {
509
+ fetchOptions: t,
510
+ options: this.options,
511
+ queryKey: this.queryKey,
512
+ client: this.#n,
513
+ state: this.state,
514
+ fetchFn: n
515
+ };
516
+ r(a), this.options.behavior?.onFetch(
517
+ a,
518
+ this
519
+ ), this.#e = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#i({ type: "fetch", meta: a.fetchOptions?.meta });
520
+ const o = (i) => {
521
+ j(i) && i.silent || this.#i({
522
+ type: "error",
523
+ error: i
524
+ }), j(i) || (this.#s.config.onError?.(
525
+ i,
526
+ this
527
+ ), this.#s.config.onSettled?.(
528
+ this.state.data,
529
+ i,
530
+ this
531
+ )), this.scheduleGc();
532
+ };
533
+ return this.#r = xe({
534
+ initialPromise: t?.initialPromise,
535
+ fn: a.fetchFn,
536
+ abort: s.abort.bind(s),
537
+ onSuccess: (i) => {
538
+ if (i === void 0) {
539
+ process.env.NODE_ENV !== "production" && console.error(
540
+ `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
541
+ ), o(new Error(`${this.queryHash} data is undefined`));
542
+ return;
543
+ }
544
+ try {
545
+ this.setData(i);
546
+ } catch (u) {
547
+ o(u);
548
+ return;
549
+ }
550
+ this.#s.config.onSuccess?.(i, this), this.#s.config.onSettled?.(
551
+ i,
552
+ this.state.error,
553
+ this
554
+ ), this.scheduleGc();
555
+ },
556
+ onError: o,
557
+ onFail: (i, u) => {
558
+ this.#i({ type: "failed", failureCount: i, error: u });
559
+ },
560
+ onPause: () => {
561
+ this.#i({ type: "pause" });
562
+ },
563
+ onContinue: () => {
564
+ this.#i({ type: "continue" });
565
+ },
566
+ retry: a.options.retry,
567
+ retryDelay: a.options.retryDelay,
568
+ networkMode: a.options.networkMode,
569
+ canRun: () => !0
570
+ }), this.#r.start();
571
+ }
572
+ #i(e) {
573
+ const t = (s) => {
574
+ switch (e.type) {
575
+ case "failed":
576
+ return {
577
+ ...s,
578
+ fetchFailureCount: e.failureCount,
579
+ fetchFailureReason: e.error
580
+ };
581
+ case "pause":
582
+ return {
583
+ ...s,
584
+ fetchStatus: "paused"
585
+ };
586
+ case "continue":
587
+ return {
588
+ ...s,
589
+ fetchStatus: "fetching"
590
+ };
591
+ case "fetch":
592
+ return {
593
+ ...s,
594
+ ...de(s.data, this.options),
595
+ fetchMeta: e.meta ?? null
596
+ };
597
+ case "success":
598
+ return {
599
+ ...s,
600
+ data: e.data,
601
+ dataUpdateCount: s.dataUpdateCount + 1,
602
+ dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
603
+ error: null,
604
+ isInvalidated: !1,
605
+ status: "success",
606
+ ...!e.manual && {
607
+ fetchStatus: "idle",
608
+ fetchFailureCount: 0,
609
+ fetchFailureReason: null
610
+ }
611
+ };
612
+ case "error":
613
+ const r = e.error;
614
+ return j(r) && r.revert && this.#e ? { ...this.#e, fetchStatus: "idle" } : {
615
+ ...s,
616
+ error: r,
617
+ errorUpdateCount: s.errorUpdateCount + 1,
618
+ errorUpdatedAt: Date.now(),
619
+ fetchFailureCount: s.fetchFailureCount + 1,
620
+ fetchFailureReason: r,
621
+ fetchStatus: "idle",
622
+ status: "error"
623
+ };
624
+ case "invalidate":
625
+ return {
626
+ ...s,
627
+ isInvalidated: !0
628
+ };
629
+ case "setState":
630
+ return {
631
+ ...s,
632
+ ...e.state
633
+ };
634
+ }
635
+ };
636
+ this.state = t(this.state), $.batch(() => {
637
+ this.observers.forEach((s) => {
638
+ s.onQueryUpdate();
639
+ }), this.#s.notify({ query: this, type: "updated", action: e });
640
+ });
641
+ }
642
+ };
643
+ function de(e, t) {
644
+ return {
645
+ fetchFailureCount: 0,
646
+ fetchFailureReason: null,
647
+ fetchStatus: he(t.networkMode) ? "fetching" : "paused",
648
+ ...e === void 0 && {
649
+ error: null,
650
+ status: "pending"
651
+ }
652
+ };
653
+ }
654
+ function Ue(e) {
655
+ const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, s = t !== void 0, r = s ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
656
+ return {
657
+ data: t,
658
+ dataUpdateCount: 0,
659
+ dataUpdatedAt: s ? r ?? Date.now() : 0,
660
+ error: null,
661
+ errorUpdateCount: 0,
662
+ errorUpdatedAt: 0,
663
+ fetchFailureCount: 0,
664
+ fetchFailureReason: null,
665
+ fetchMeta: null,
666
+ isInvalidated: !1,
667
+ status: s ? "success" : "pending",
668
+ fetchStatus: "idle"
669
+ };
670
+ }
671
+ var fe = class extends G {
672
+ constructor(e, t) {
673
+ super(), this.options = t, this.#t = e, this.#i = null, this.#a = H(), this.options.experimental_prefetchInRender || this.#a.reject(
674
+ new Error("experimental_prefetchInRender feature flag is not enabled")
675
+ ), this.bindMethods(), this.setOptions(t);
676
+ }
677
+ #t;
678
+ #e = void 0;
679
+ #s = void 0;
680
+ #n = void 0;
681
+ #r;
682
+ #o;
683
+ #a;
684
+ #i;
685
+ #y;
686
+ #d;
687
+ // This property keeps track of the last query with defined data.
688
+ // It will be used to pass the previous data and query to the placeholder function between renders.
689
+ #f;
690
+ #c;
691
+ #h;
692
+ #u;
693
+ #p = /* @__PURE__ */ new Set();
694
+ bindMethods() {
695
+ this.refetch = this.refetch.bind(this);
696
+ }
697
+ onSubscribe() {
698
+ this.listeners.size === 1 && (this.#e.addObserver(this), se(this.#e, this.options) ? this.#l() : this.updateResult(), this.#g());
699
+ }
700
+ onUnsubscribe() {
701
+ this.hasListeners() || this.destroy();
702
+ }
703
+ shouldFetchOnReconnect() {
704
+ return K(
705
+ this.#e,
706
+ this.options,
707
+ this.options.refetchOnReconnect
708
+ );
709
+ }
710
+ shouldFetchOnWindowFocus() {
711
+ return K(
712
+ this.#e,
713
+ this.options,
714
+ this.options.refetchOnWindowFocus
715
+ );
716
+ }
717
+ destroy() {
718
+ this.listeners = /* @__PURE__ */ new Set(), this.#S(), this.#w(), this.#e.removeObserver(this);
719
+ }
720
+ setOptions(e) {
721
+ const t = this.options, s = this.#e;
722
+ if (this.options = this.#t.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof w(this.options.enabled, this.#e) != "boolean")
723
+ throw new Error(
724
+ "Expected enabled to be a boolean or a callback that returns a boolean"
725
+ );
726
+ this.#O(), this.#e.setOptions(this.options), t._defaulted && !M(this.options, t) && this.#t.getQueryCache().notify({
727
+ type: "observerOptionsUpdated",
728
+ query: this.#e,
729
+ observer: this
730
+ });
731
+ const r = this.hasListeners();
732
+ r && re(
733
+ this.#e,
734
+ s,
735
+ this.options,
736
+ t
737
+ ) && this.#l(), this.updateResult(), r && (this.#e !== s || w(this.options.enabled, this.#e) !== w(t.enabled, this.#e) || k(this.options.staleTime, this.#e) !== k(t.staleTime, this.#e)) && this.#v();
738
+ const n = this.#m();
739
+ r && (this.#e !== s || w(this.options.enabled, this.#e) !== w(t.enabled, this.#e) || n !== this.#u) && this.#b(n);
740
+ }
741
+ getOptimisticResult(e) {
742
+ const t = this.#t.getQueryCache().build(this.#t, e), s = this.createResult(t, e);
743
+ return Le(this, s) && (this.#n = s, this.#o = this.options, this.#r = this.#e.state), s;
744
+ }
745
+ getCurrentResult() {
746
+ return this.#n;
747
+ }
748
+ trackResult(e, t) {
749
+ const s = {};
750
+ return Object.keys(e).forEach((r) => {
751
+ Object.defineProperty(s, r, {
752
+ configurable: !1,
753
+ enumerable: !0,
754
+ get: () => (this.trackProp(r), t?.(r), e[r])
755
+ });
756
+ }), s;
757
+ }
758
+ trackProp(e) {
759
+ this.#p.add(e);
760
+ }
761
+ getCurrentQuery() {
762
+ return this.#e;
763
+ }
764
+ refetch({ ...e } = {}) {
765
+ return this.fetch({
766
+ ...e
767
+ });
768
+ }
769
+ fetchOptimistic(e) {
770
+ const t = this.#t.defaultQueryOptions(e), s = this.#t.getQueryCache().build(this.#t, t);
771
+ return s.fetch().then(() => this.createResult(s, t));
772
+ }
773
+ fetch(e) {
774
+ return this.#l({
775
+ ...e,
776
+ cancelRefetch: e.cancelRefetch ?? !0
777
+ }).then(() => (this.updateResult(), this.#n));
778
+ }
779
+ #l(e) {
780
+ this.#O();
781
+ let t = this.#e.fetch(
782
+ this.options,
783
+ e
784
+ );
785
+ return e?.throwOnError || (t = t.catch(q)), t;
786
+ }
787
+ #v() {
788
+ this.#S();
789
+ const e = k(
790
+ this.options.staleTime,
791
+ this.#e
792
+ );
793
+ if (C || this.#n.isStale || !U(e))
794
+ return;
795
+ const s = oe(this.#n.dataUpdatedAt, e) + 1;
796
+ this.#c = setTimeout(() => {
797
+ this.#n.isStale || this.updateResult();
798
+ }, s);
799
+ }
800
+ #m() {
801
+ return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#e) : this.options.refetchInterval) ?? !1;
802
+ }
803
+ #b(e) {
804
+ this.#w(), this.#u = e, !(C || w(this.options.enabled, this.#e) === !1 || !U(this.#u) || this.#u === 0) && (this.#h = setInterval(() => {
805
+ (this.options.refetchIntervalInBackground || ue.isFocused()) && this.#l();
806
+ }, this.#u));
807
+ }
808
+ #g() {
809
+ this.#v(), this.#b(this.#m());
810
+ }
811
+ #S() {
812
+ this.#c && (clearTimeout(this.#c), this.#c = void 0);
813
+ }
814
+ #w() {
815
+ this.#h && (clearInterval(this.#h), this.#h = void 0);
816
+ }
817
+ createResult(e, t) {
818
+ const s = this.#e, r = this.options, n = this.#n, a = this.#r, o = this.#o, u = e !== s ? e.state : this.#s, { state: l } = e;
819
+ let h = { ...l }, p = !1, d;
820
+ if (t._optimisticResults) {
821
+ const g = this.hasListeners(), T = !g && se(e, t), P = g && re(e, s, t, r);
822
+ (T || P) && (h = {
823
+ ...h,
824
+ ...de(l.data, e.options)
825
+ }), t._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
826
+ }
827
+ let { error: m, errorUpdatedAt: R, status: c } = h;
828
+ d = h.data;
829
+ let b = !1;
830
+ if (t.placeholderData !== void 0 && d === void 0 && c === "pending") {
831
+ let g;
832
+ n?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (g = n.data, b = !0) : g = typeof t.placeholderData == "function" ? t.placeholderData(
833
+ this.#f?.state.data,
834
+ this.#f
835
+ ) : t.placeholderData, g !== void 0 && (c = "success", d = _(
836
+ n?.data,
837
+ g,
838
+ t
839
+ ), p = !0);
840
+ }
841
+ if (t.select && d !== void 0 && !b)
842
+ if (n && d === a?.data && t.select === this.#y)
843
+ d = this.#d;
844
+ else
845
+ try {
846
+ this.#y = t.select, d = t.select(d), d = _(n?.data, d, t), this.#d = d, this.#i = null;
847
+ } catch (g) {
848
+ this.#i = g;
849
+ }
850
+ this.#i && (m = this.#i, d = this.#d, R = Date.now(), c = "error");
851
+ const v = h.fetchStatus === "fetching", f = c === "pending", y = c === "error", E = f && v, I = d !== void 0, O = {
852
+ status: c,
853
+ fetchStatus: h.fetchStatus,
854
+ isPending: f,
855
+ isSuccess: c === "success",
856
+ isError: y,
857
+ isInitialLoading: E,
858
+ isLoading: E,
859
+ data: d,
860
+ dataUpdatedAt: h.dataUpdatedAt,
861
+ error: m,
862
+ errorUpdatedAt: R,
863
+ failureCount: h.fetchFailureCount,
864
+ failureReason: h.fetchFailureReason,
865
+ errorUpdateCount: h.errorUpdateCount,
866
+ isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
867
+ isFetchedAfterMount: h.dataUpdateCount > u.dataUpdateCount || h.errorUpdateCount > u.errorUpdateCount,
868
+ isFetching: v,
869
+ isRefetching: v && !f,
870
+ isLoadingError: y && !I,
871
+ isPaused: h.fetchStatus === "paused",
872
+ isPlaceholderData: p,
873
+ isRefetchError: y && I,
874
+ isStale: V(e, t),
875
+ refetch: this.refetch,
876
+ promise: this.#a
877
+ };
878
+ if (this.options.experimental_prefetchInRender) {
879
+ const g = (D) => {
880
+ O.status === "error" ? D.reject(O.error) : O.data !== void 0 && D.resolve(O.data);
881
+ }, T = () => {
882
+ const D = this.#a = O.promise = H();
883
+ g(D);
884
+ }, P = this.#a;
885
+ switch (P.status) {
886
+ case "pending":
887
+ e.queryHash === s.queryHash && g(P);
888
+ break;
889
+ case "fulfilled":
890
+ (O.status === "error" || O.data !== P.value) && T();
891
+ break;
892
+ case "rejected":
893
+ (O.status !== "error" || O.error !== P.reason) && T();
894
+ break;
895
+ }
896
+ }
897
+ return O;
898
+ }
899
+ updateResult() {
900
+ const e = this.#n, t = this.createResult(this.#e, this.options);
901
+ if (this.#r = this.#e.state, this.#o = this.options, this.#r.data !== void 0 && (this.#f = this.#e), M(t, e))
902
+ return;
903
+ this.#n = t;
904
+ const s = () => {
905
+ if (!e)
906
+ return !0;
907
+ const { notifyOnChangeProps: r } = this.options, n = typeof r == "function" ? r() : r;
908
+ if (n === "all" || !n && !this.#p.size)
909
+ return !0;
910
+ const a = new Set(
911
+ n ?? this.#p
912
+ );
913
+ return this.options.throwOnError && a.add("error"), Object.keys(this.#n).some((o) => {
914
+ const i = o;
915
+ return this.#n[i] !== e[i] && a.has(i);
916
+ });
917
+ };
918
+ this.#R({ listeners: s() });
919
+ }
920
+ #O() {
921
+ const e = this.#t.getQueryCache().build(this.#t, this.options);
922
+ if (e === this.#e)
923
+ return;
924
+ const t = this.#e;
925
+ this.#e = e, this.#s = e.state, this.hasListeners() && (t?.removeObserver(this), e.addObserver(this));
926
+ }
927
+ onQueryUpdate() {
928
+ this.updateResult(), this.hasListeners() && this.#g();
929
+ }
930
+ #R(e) {
931
+ $.batch(() => {
932
+ e.listeners && this.listeners.forEach((t) => {
933
+ t(this.#n);
934
+ }), this.#t.getQueryCache().notify({
935
+ query: this.#e,
936
+ type: "observerResultsUpdated"
937
+ });
938
+ });
939
+ }
940
+ };
941
+ function Qe(e, t) {
942
+ return w(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
943
+ }
944
+ function se(e, t) {
945
+ return Qe(e, t) || e.state.data !== void 0 && K(e, t, t.refetchOnMount);
946
+ }
947
+ function K(e, t, s) {
948
+ if (w(t.enabled, e) !== !1) {
949
+ const r = typeof s == "function" ? s(e) : s;
950
+ return r === "always" || r !== !1 && V(e, t);
951
+ }
952
+ return !1;
953
+ }
954
+ function re(e, t, s, r) {
955
+ return (e !== t || w(r.enabled, e) === !1) && (!s.suspense || e.state.status !== "error") && V(e, s);
956
+ }
957
+ function V(e, t) {
958
+ return w(t.enabled, e) !== !1 && e.isStaleByTime(k(t.staleTime, e));
959
+ }
960
+ function Le(e, t) {
961
+ return !M(e.getCurrentResult(), t);
962
+ }
963
+ var pe = S.createContext(
964
+ void 0
965
+ ), ye = (e) => {
966
+ const t = S.useContext(pe);
967
+ if (e)
968
+ return e;
969
+ if (!t)
970
+ throw new Error("No QueryClient set, use QueryClientProvider to set one");
971
+ return t;
972
+ }, Ct = ({
973
+ client: e,
974
+ children: t
975
+ }) => (S.useEffect(() => (e.mount(), () => {
976
+ e.unmount();
977
+ }), [e]), /* @__PURE__ */ Ee.jsx(pe.Provider, { value: e, children: t })), ve = S.createContext(!1), Me = () => S.useContext(ve);
978
+ ve.Provider;
979
+ function Ne() {
980
+ let e = !1;
981
+ return {
982
+ clearReset: () => {
983
+ e = !1;
984
+ },
985
+ reset: () => {
986
+ e = !0;
987
+ },
988
+ isReset: () => e
989
+ };
990
+ }
991
+ var _e = S.createContext(Ne()), He = () => S.useContext(_e);
992
+ function Ke(e, t) {
993
+ return typeof e == "function" ? e(...t) : !!e;
994
+ }
995
+ function ne() {
996
+ }
997
+ var Be = (e, t) => {
998
+ (e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
999
+ }, Ge = (e) => {
1000
+ S.useEffect(() => {
1001
+ e.clearReset();
1002
+ }, [e]);
1003
+ }, ze = ({
1004
+ result: e,
1005
+ errorResetBoundary: t,
1006
+ throwOnError: s,
1007
+ query: r,
1008
+ suspense: n
1009
+ }) => e.isError && !t.isReset() && !e.isFetching && r && (n && e.data === void 0 || Ke(s, [e.error, r])), $e = (e, t) => t.state.data === void 0, Ve = (e) => {
1010
+ const t = e.staleTime;
1011
+ e.suspense && (e.staleTime = typeof t == "function" ? (...s) => Math.max(t(...s), 1e3) : Math.max(t ?? 1e3, 1e3), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, 1e3)));
1012
+ }, Je = (e, t) => e.isLoading && e.isFetching && !t, Ze = (e, t) => e?.suspense && t.isPending, ie = (e, t, s) => t.fetchOptimistic(e).catch(() => {
1013
+ s.clearReset();
1014
+ });
1015
+ function me(e, t, s) {
1016
+ if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
1017
+ throw new Error(
1018
+ 'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
1019
+ );
1020
+ const r = ye(s), n = Me(), a = He(), o = r.defaultQueryOptions(e);
1021
+ r.getDefaultOptions().queries?._experimental_beforeQuery?.(
1022
+ o
1023
+ ), process.env.NODE_ENV !== "production" && (o.queryFn || console.error(
1024
+ `[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
1025
+ )), o._optimisticResults = n ? "isRestoring" : "optimistic", Ve(o), Be(o, a), Ge(a);
1026
+ const i = !r.getQueryCache().get(o.queryHash), [u] = S.useState(
1027
+ () => new t(
1028
+ r,
1029
+ o
1030
+ )
1031
+ ), l = u.getOptimisticResult(o), h = !n && e.subscribed !== !1;
1032
+ if (S.useSyncExternalStore(
1033
+ S.useCallback(
1034
+ (p) => {
1035
+ const d = h ? u.subscribe($.batchCalls(p)) : ne;
1036
+ return u.updateResult(), d;
1037
+ },
1038
+ [u, h]
1039
+ ),
1040
+ () => u.getCurrentResult(),
1041
+ () => u.getCurrentResult()
1042
+ ), S.useEffect(() => {
1043
+ u.setOptions(o);
1044
+ }, [o, u]), Ze(o, l))
1045
+ throw ie(o, u, a);
1046
+ if (ze({
1047
+ result: l,
1048
+ errorResetBoundary: a,
1049
+ throwOnError: o.throwOnError,
1050
+ query: r.getQueryCache().get(o.queryHash),
1051
+ suspense: o.suspense
1052
+ }))
1053
+ throw l.error;
1054
+ return r.getDefaultOptions().queries?._experimental_afterQuery?.(
1055
+ o,
1056
+ l
1057
+ ), o.experimental_prefetchInRender && !C && Je(l, n) && (i ? (
1058
+ // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1059
+ ie(o, u, a)
1060
+ ) : (
1061
+ // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
1062
+ r.getQueryCache().get(o.queryHash)?.promise
1063
+ ))?.catch(ne).finally(() => {
1064
+ u.updateResult();
1065
+ }), o.notifyOnChangeProps ? l : u.trackResult(l);
1066
+ }
1067
+ function We(e, t) {
1068
+ return me(e, fe, t);
1069
+ }
1070
+ function Ye(e, t) {
1071
+ return process.env.NODE_ENV !== "production" && e.queryFn === x && console.error("skipToken is not allowed for useSuspenseQuery"), me(
1072
+ {
1073
+ ...e,
1074
+ enabled: !0,
1075
+ suspense: !0,
1076
+ throwOnError: $e,
1077
+ placeholderData: void 0
1078
+ },
1079
+ fe,
1080
+ t
1081
+ );
1082
+ }
1083
+ const Xe = /^(\w+:\/\/[^/?]+)?([^?]*)(\?.*)?$/, et = (e) => e.filter(
1084
+ (t) => t != null && t !== !1 && (typeof t == "string" || typeof t == "number")
1085
+ ).map((t) => `${t}`).filter((t) => t), tt = (e) => {
1086
+ const t = e.join("/"), [, s = "", r = ""] = t.match(Xe) ?? [];
1087
+ return {
1088
+ prefix: s,
1089
+ pathname: r.split("/").filter((n) => n !== "")
1090
+ };
1091
+ }, st = (e) => {
1092
+ const { prefix: t, pathname: s } = e;
1093
+ let r = t;
1094
+ return s.length > 0 ? (r ? r += "/" : r = "/", r += s.join("/")) : r || (r = "/"), r;
1095
+ }, F = (...e) => {
1096
+ const t = et(e), s = tt(t);
1097
+ return st(s);
1098
+ }, be = Object.freeze({
1099
+ API_IDENTITIES: ["api-identities"]
1100
+ }), Ft = () => {
1101
+ const e = ye();
1102
+ return {
1103
+ invalidateCache: async (t) => {
1104
+ await e.invalidateQueries({ queryKey: be[t] });
1105
+ }
1106
+ };
1107
+ }, It = "no-dehydrate", J = (e, t) => {
1108
+ for (const s of e) {
1109
+ const r = Z(s, t);
1110
+ if (r !== void 0) return r;
1111
+ }
1112
+ }, Z = (e, t, s = []) => {
1113
+ const r = t(e, s);
1114
+ if (r !== void 0) return r;
1115
+ if (e.type === "category")
1116
+ for (const n of e.items) {
1117
+ const a = Z(n, t, [
1118
+ ...s,
1119
+ e
1120
+ ]);
1121
+ if (a !== void 0) return a;
1122
+ }
1123
+ }, Pt = () => {
1124
+ const e = A(), s = ge().sidebar;
1125
+ return J(s, (r) => {
1126
+ if (r.type === "doc" && F(r.id) === e.pathname)
1127
+ return r;
1128
+ });
1129
+ }, Tt = (e) => {
1130
+ const t = A();
1131
+ return Z(e, (s) => {
1132
+ if (s.type === "category" && s.link && F(s.link.id) === t.pathname || s.type === "doc" && F(s.id) === t.pathname)
1133
+ return !0;
1134
+ });
1135
+ }, Dt = () => {
1136
+ const e = A().pathname, s = ge().sidebar;
1137
+ let r, n, a = !1;
1138
+ return J(s, (o) => {
1139
+ const i = o.type === "doc" ? F(o.id) : o.type === "category" && o.link ? F(o.link.id) : void 0;
1140
+ if (i) {
1141
+ if (a)
1142
+ return n = { label: o.label, id: i }, !0;
1143
+ e === i ? a = !0 : r = { label: o.label, id: i };
1144
+ }
1145
+ }), { prev: r, next: n };
1146
+ }, kt = Ce(
1147
+ "relative flex items-center gap-2 px-(--padding-nav-item) my-0.5 py-1.5 rounded-lg hover:bg-accent tabular-nums",
1148
+ {
1149
+ variants: {
1150
+ isActive: {
1151
+ true: "bg-accent font-medium",
1152
+ false: "text-foreground/80"
1153
+ },
1154
+ isMuted: {
1155
+ true: "text-foreground/30",
1156
+ false: ""
1157
+ },
1158
+ isPending: {
1159
+ true: "bg-accent animate-pulse",
1160
+ false: ""
1161
+ }
1162
+ },
1163
+ defaultVariants: {
1164
+ isActive: !1
1165
+ }
1166
+ }
1167
+ ), xt = (e) => (t) => t.display === "hide" ? !1 : t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", rt = Oe(
1168
+ void 0
1169
+ ), W = () => {
1170
+ const e = Re(rt);
1171
+ if (!e)
1172
+ throw new Error("useZudoku must be used within a ZudokuProvider.");
1173
+ return e;
1174
+ }, At = () => {
1175
+ const { getApiIdentities: e } = W();
1176
+ return We({
1177
+ queryFn: e,
1178
+ queryKey: be.API_IDENTITIES
1179
+ });
1180
+ }, ge = () => {
1181
+ const { getPluginSidebar: e, sidebars: t, topNavigation: s, options: r } = W(), n = A(), a = dt(), o = r.protectedRoutes?.some(
1182
+ (p) => X(p, n.pathname)
1183
+ );
1184
+ let i = Object.entries(t).find(([, p]) => J(p, (d) => {
1185
+ if ((d.type === "doc" ? F(d.id) : d.type === "category" && d.link ? F(d.link.id) : void 0) === n.pathname)
1186
+ return d;
1187
+ }));
1188
+ const u = s.find((p) => p.id === i?.[0]) ?? s.find((p) => X(p.id, n.pathname));
1189
+ u && !i && u.id in t && (i = ["", t[u.id]]);
1190
+ const { data: l } = Ye({
1191
+ queryFn: () => e(n.pathname),
1192
+ queryKey: ["plugin-sidebar", n.pathname]
1193
+ });
1194
+ return {
1195
+ sidebar: a.isAuthEnabled && !a.isAuthenticated && o ? [] : [...i ? i[1] : [], ...l],
1196
+ topNavItem: u
1197
+ };
1198
+ }, ae = (e) => {
1199
+ let t;
1200
+ const s = /* @__PURE__ */ new Set(), r = (l, h) => {
1201
+ const p = typeof l == "function" ? l(t) : l;
1202
+ if (!Object.is(p, t)) {
1203
+ const d = t;
1204
+ t = h ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), s.forEach((m) => m(t, d));
1205
+ }
1206
+ }, n = () => t, i = { setState: r, getState: n, getInitialState: () => u, subscribe: (l) => (s.add(l), () => s.delete(l)) }, u = t = e(r, n, i);
1207
+ return i;
1208
+ }, nt = (e) => e ? ae(e) : ae, it = (e) => e;
1209
+ function at(e, t = it) {
1210
+ const s = Y.useSyncExternalStore(
1211
+ e.subscribe,
1212
+ () => t(e.getState()),
1213
+ () => t(e.getInitialState())
1214
+ );
1215
+ return Y.useDebugValue(s), s;
1216
+ }
1217
+ const ot = (e) => {
1218
+ const t = nt(e), s = (r) => at(t, r);
1219
+ return Object.assign(s, t), s;
1220
+ }, ut = (e) => ot;
1221
+ function Se(e, t) {
1222
+ let s;
1223
+ try {
1224
+ s = e();
1225
+ } catch {
1226
+ return;
1227
+ }
1228
+ return {
1229
+ getItem: (n) => {
1230
+ var a;
1231
+ const o = (u) => u === null ? null : JSON.parse(u, void 0), i = (a = s.getItem(n)) != null ? a : null;
1232
+ return i instanceof Promise ? i.then(o) : o(i);
1233
+ },
1234
+ setItem: (n, a) => s.setItem(
1235
+ n,
1236
+ JSON.stringify(a, void 0)
1237
+ ),
1238
+ removeItem: (n) => s.removeItem(n)
1239
+ };
1240
+ }
1241
+ const B = (e) => (t) => {
1242
+ try {
1243
+ const s = e(t);
1244
+ return s instanceof Promise ? s : {
1245
+ then(r) {
1246
+ return B(r)(s);
1247
+ },
1248
+ catch(r) {
1249
+ return this;
1250
+ }
1251
+ };
1252
+ } catch (s) {
1253
+ return {
1254
+ then(r) {
1255
+ return this;
1256
+ },
1257
+ catch(r) {
1258
+ return B(r)(s);
1259
+ }
1260
+ };
1261
+ }
1262
+ }, ct = (e, t) => (s, r, n) => {
1263
+ let a = {
1264
+ storage: Se(() => localStorage),
1265
+ partialize: (c) => c,
1266
+ version: 0,
1267
+ merge: (c, b) => ({
1268
+ ...b,
1269
+ ...c
1270
+ }),
1271
+ ...t
1272
+ }, o = !1;
1273
+ const i = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
1274
+ let l = a.storage;
1275
+ if (!l)
1276
+ return e(
1277
+ (...c) => {
1278
+ console.warn(
1279
+ `[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`
1280
+ ), s(...c);
1281
+ },
1282
+ r,
1283
+ n
1284
+ );
1285
+ const h = () => {
1286
+ const c = a.partialize({ ...r() });
1287
+ return l.setItem(a.name, {
1288
+ state: c,
1289
+ version: a.version
1290
+ });
1291
+ }, p = n.setState;
1292
+ n.setState = (c, b) => {
1293
+ p(c, b), h();
1294
+ };
1295
+ const d = e(
1296
+ (...c) => {
1297
+ s(...c), h();
1298
+ },
1299
+ r,
1300
+ n
1301
+ );
1302
+ n.getInitialState = () => d;
1303
+ let m;
1304
+ const R = () => {
1305
+ var c, b;
1306
+ if (!l) return;
1307
+ o = !1, i.forEach((f) => {
1308
+ var y;
1309
+ return f((y = r()) != null ? y : d);
1310
+ });
1311
+ const v = ((b = a.onRehydrateStorage) == null ? void 0 : b.call(a, (c = r()) != null ? c : d)) || void 0;
1312
+ return B(l.getItem.bind(l))(a.name).then((f) => {
1313
+ if (f)
1314
+ if (typeof f.version == "number" && f.version !== a.version) {
1315
+ if (a.migrate) {
1316
+ const y = a.migrate(
1317
+ f.state,
1318
+ f.version
1319
+ );
1320
+ return y instanceof Promise ? y.then((E) => [!0, E]) : [!0, y];
1321
+ }
1322
+ console.error(
1323
+ "State loaded from storage couldn't be migrated since no migrate function was provided"
1324
+ );
1325
+ } else
1326
+ return [!1, f.state];
1327
+ return [!1, void 0];
1328
+ }).then((f) => {
1329
+ var y;
1330
+ const [E, I] = f;
1331
+ if (m = a.merge(
1332
+ I,
1333
+ (y = r()) != null ? y : d
1334
+ ), s(m, !0), E)
1335
+ return h();
1336
+ }).then(() => {
1337
+ v?.(m, void 0), m = r(), o = !0, u.forEach((f) => f(m));
1338
+ }).catch((f) => {
1339
+ v?.(void 0, f);
1340
+ });
1341
+ };
1342
+ return n.persist = {
1343
+ setOptions: (c) => {
1344
+ a = {
1345
+ ...a,
1346
+ ...c
1347
+ }, c.storage && (l = c.storage);
1348
+ },
1349
+ clearStorage: () => {
1350
+ l?.removeItem(a.name);
1351
+ },
1352
+ getOptions: () => a,
1353
+ rehydrate: () => R(),
1354
+ hasHydrated: () => o,
1355
+ onHydrate: (c) => (i.add(c), () => {
1356
+ i.delete(c);
1357
+ }),
1358
+ onFinishHydration: (c) => (u.add(c), () => {
1359
+ u.delete(c);
1360
+ })
1361
+ }, a.skipHydration || R(), m || d;
1362
+ }, ht = ct, lt = (e) => {
1363
+ const t = (s) => {
1364
+ s.key === e.persist.getOptions().name && s.newValue && e.persist.rehydrate();
1365
+ };
1366
+ return window.addEventListener("storage", t), () => {
1367
+ window.removeEventListener("storage", t);
1368
+ };
1369
+ }, we = ut()(
1370
+ ht(
1371
+ (e) => ({
1372
+ isAuthenticated: !1,
1373
+ isPending: !0,
1374
+ profile: null,
1375
+ providerData: null
1376
+ }),
1377
+ {
1378
+ merge: (e, t) => ({
1379
+ ...t,
1380
+ isPending: !1,
1381
+ ...typeof e == "object" ? e : {}
1382
+ }),
1383
+ name: "auth-state",
1384
+ storage: Se(() => localStorage)
1385
+ }
1386
+ )
1387
+ );
1388
+ typeof window < "u" && lt(we);
1389
+ const dt = () => {
1390
+ const { authentication: e } = W(), t = we(), s = typeof e < "u";
1391
+ return {
1392
+ isAuthEnabled: s,
1393
+ ...t,
1394
+ login: async () => {
1395
+ if (!s)
1396
+ throw new Error("Authentication is not enabled.");
1397
+ await e.signIn({
1398
+ redirectTo: window.location.href
1399
+ });
1400
+ },
1401
+ logout: async () => {
1402
+ if (!s)
1403
+ throw new Error("Authentication is not enabled.");
1404
+ await e.signOut(), window.location.href = "/";
1405
+ },
1406
+ signup: async () => {
1407
+ if (!s)
1408
+ throw new Error("Authentication is not enabled.");
1409
+ await e.signUp({
1410
+ redirectTo: window.location.href
1411
+ });
1412
+ }
1413
+ };
1414
+ };
1415
+ export {
1416
+ ue as A,
1417
+ ce as B,
1418
+ be as C,
1419
+ k as D,
1420
+ bt as E,
1421
+ z as F,
1422
+ x as G,
1423
+ Ct as H,
1424
+ xt as I,
1425
+ ge as J,
1426
+ J as K,
1427
+ ut as L,
1428
+ ht as M,
1429
+ It as N,
1430
+ Se as O,
1431
+ At as P,
1432
+ Et as Q,
1433
+ qe as R,
1434
+ G as S,
1435
+ Tt as T,
1436
+ kt as U,
1437
+ rt as Z,
1438
+ Pt as a,
1439
+ Dt as b,
1440
+ xe as c,
1441
+ Ye as d,
1442
+ ye as e,
1443
+ ne as f,
1444
+ Ke as g,
1445
+ Q as h,
1446
+ dt as i,
1447
+ F as j,
1448
+ W as k,
1449
+ We as l,
1450
+ Ft as m,
1451
+ $ as n,
1452
+ wt as o,
1453
+ nt as p,
1454
+ at as q,
1455
+ Fe as r,
1456
+ M as s,
1457
+ gt as t,
1458
+ we as u,
1459
+ St as v,
1460
+ q as w,
1461
+ Pe as x,
1462
+ Rt as y,
1463
+ Ot as z
1464
+ };
1465
+ //# sourceMappingURL=hook-BXffmvNp.js.map