zudoku 0.0.0-fd8f8ad → 0.0.0-feda542

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1140) hide show
  1. package/README.md +1 -1
  2. package/cli.js +3 -0
  3. package/client.d.ts +7 -0
  4. package/dist/app/demo.js +1 -2
  5. package/dist/app/demo.js.map +1 -1
  6. package/dist/app/entry.client.d.ts +6 -0
  7. package/dist/app/entry.client.js +15 -15
  8. package/dist/app/entry.client.js.map +1 -1
  9. package/dist/app/entry.server.d.ts +9 -6
  10. package/dist/app/entry.server.js +14 -10
  11. package/dist/app/entry.server.js.map +1 -1
  12. package/dist/app/main.d.ts +2 -2
  13. package/dist/app/main.js +23 -10
  14. package/dist/app/main.js.map +1 -1
  15. package/dist/app/sentry.d.ts +3 -0
  16. package/dist/app/sentry.js +19 -0
  17. package/dist/app/sentry.js.map +1 -0
  18. package/dist/app/standalone.js +1 -2
  19. package/dist/app/standalone.js.map +1 -1
  20. package/dist/app/tailwind.d.ts +2 -1
  21. package/dist/app/tailwind.js +80 -48
  22. package/dist/app/tailwind.js.map +1 -1
  23. package/dist/cli/build/handler.d.ts +1 -3
  24. package/dist/cli/build/handler.js +9 -1
  25. package/dist/cli/build/handler.js.map +1 -1
  26. package/dist/cli/cli.js +5 -2
  27. package/dist/cli/cli.js.map +1 -1
  28. package/dist/cli/cmds/build.d.ts +11 -3
  29. package/dist/cli/cmds/build.js +21 -13
  30. package/dist/cli/cmds/build.js.map +1 -1
  31. package/dist/cli/cmds/dev.d.ts +1 -1
  32. package/dist/cli/cmds/dev.js +5 -0
  33. package/dist/cli/cmds/dev.js.map +1 -1
  34. package/dist/cli/cmds/preview.d.ts +16 -0
  35. package/dist/cli/cmds/preview.js +25 -0
  36. package/dist/cli/cmds/preview.js.map +1 -0
  37. package/dist/cli/common/logger.js +9 -0
  38. package/dist/cli/common/logger.js.map +1 -1
  39. package/dist/cli/common/outdated.js +2 -1
  40. package/dist/cli/common/outdated.js.map +1 -1
  41. package/dist/cli/common/output.js.map +1 -1
  42. package/dist/cli/common/utils/ports.d.ts +1 -1
  43. package/dist/cli/common/utils/ports.js +16 -15
  44. package/dist/cli/common/utils/ports.js.map +1 -1
  45. package/dist/cli/dev/handler.d.ts +1 -0
  46. package/dist/cli/dev/handler.js +15 -12
  47. package/dist/cli/dev/handler.js.map +1 -1
  48. package/dist/cli/preview/handler.d.ts +3 -0
  49. package/dist/cli/preview/handler.js +35 -0
  50. package/dist/cli/preview/handler.js.map +1 -0
  51. package/dist/config/common.d.ts +10 -0
  52. package/dist/config/common.js +2 -0
  53. package/dist/config/common.js.map +1 -0
  54. package/dist/config/config.d.ts +20 -16
  55. package/dist/config/loader.d.ts +21 -0
  56. package/dist/config/loader.js +149 -0
  57. package/dist/config/loader.js.map +1 -0
  58. package/dist/config/validators/BuildSchema.d.ts +59 -0
  59. package/dist/config/validators/BuildSchema.js +31 -0
  60. package/dist/config/validators/BuildSchema.js.map +1 -0
  61. package/dist/config/validators/InputSidebarSchema.d.ts +46 -30
  62. package/dist/config/validators/InputSidebarSchema.js +11 -1
  63. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  64. package/dist/config/validators/common.d.ts +7670 -0
  65. package/dist/config/validators/common.js +402 -0
  66. package/dist/config/validators/common.js.map +1 -0
  67. package/dist/config/validators/icon-types.d.ts +1 -0
  68. package/dist/config/validators/icon-types.js +2 -0
  69. package/dist/config/validators/icon-types.js.map +1 -0
  70. package/dist/config/validators/validate.d.ts +1885 -642
  71. package/dist/config/validators/validate.js +9 -228
  72. package/dist/config/validators/validate.js.map +1 -1
  73. package/dist/index.d.ts +2 -1
  74. package/dist/index.js +1 -0
  75. package/dist/index.js.map +1 -1
  76. package/dist/lib/MissingIcon.d.ts +2 -0
  77. package/dist/lib/MissingIcon.js +7 -0
  78. package/dist/lib/MissingIcon.js.map +1 -0
  79. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  80. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  81. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  82. package/dist/lib/authentication/authentication.d.ts +2 -1
  83. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  84. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  85. package/dist/lib/authentication/components/SignIn.js +1 -1
  86. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  87. package/dist/lib/authentication/components/SignOut.js +2 -2
  88. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  89. package/dist/lib/authentication/hook.d.ts +6 -4
  90. package/dist/lib/authentication/hook.js +12 -4
  91. package/dist/lib/authentication/hook.js.map +1 -1
  92. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  93. package/dist/lib/authentication/providers/auth0.js +4 -3
  94. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  95. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  96. package/dist/lib/authentication/providers/clerk.js +54 -12
  97. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  98. package/dist/lib/authentication/providers/openid.d.ts +12 -4
  99. package/dist/lib/authentication/providers/openid.js +54 -44
  100. package/dist/lib/authentication/providers/openid.js.map +1 -1
  101. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  102. package/dist/lib/authentication/providers/supabase.js +117 -0
  103. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  104. package/dist/lib/authentication/state.d.ts +23 -19
  105. package/dist/lib/authentication/state.js +35 -10
  106. package/dist/lib/authentication/state.js.map +1 -1
  107. package/dist/lib/components/AnchorLink.d.ts +2 -2
  108. package/dist/lib/components/AnchorLink.js +9 -5
  109. package/dist/lib/components/AnchorLink.js.map +1 -1
  110. package/dist/lib/components/Autocomplete.d.ts +13 -0
  111. package/dist/lib/components/Autocomplete.js +47 -0
  112. package/dist/lib/components/Autocomplete.js.map +1 -0
  113. package/dist/lib/components/Banner.js +1 -1
  114. package/dist/lib/components/Banner.js.map +1 -1
  115. package/dist/lib/components/Bootstrap.d.ts +3 -3
  116. package/dist/lib/components/Bootstrap.js +12 -13
  117. package/dist/lib/components/Bootstrap.js.map +1 -1
  118. package/dist/lib/components/Footer.d.ts +1 -0
  119. package/dist/lib/components/Footer.js +32 -0
  120. package/dist/lib/components/Footer.js.map +1 -0
  121. package/dist/lib/components/Header.js +18 -10
  122. package/dist/lib/components/Header.js.map +1 -1
  123. package/dist/lib/components/Heading.d.ts +4 -4
  124. package/dist/lib/components/Heading.js +1 -1
  125. package/dist/lib/components/Heading.js.map +1 -1
  126. package/dist/lib/components/InlineCode.d.ts +2 -1
  127. package/dist/lib/components/InlineCode.js +2 -9
  128. package/dist/lib/components/InlineCode.js.map +1 -1
  129. package/dist/lib/components/Layout.js +9 -20
  130. package/dist/lib/components/Layout.js.map +1 -1
  131. package/dist/lib/components/Main.d.ts +2 -0
  132. package/dist/lib/components/Main.js +17 -0
  133. package/dist/lib/components/Main.js.map +1 -0
  134. package/dist/lib/components/Markdown.d.ts +2 -2
  135. package/dist/lib/components/Markdown.js +4 -2
  136. package/dist/lib/components/Markdown.js.map +1 -1
  137. package/dist/lib/components/MobileTopNavigation.js +9 -8
  138. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  139. package/dist/lib/components/NotFoundPage.js +1 -1
  140. package/dist/lib/components/NotFoundPage.js.map +1 -1
  141. package/dist/lib/components/Pagination.d.ts +11 -0
  142. package/dist/lib/components/Pagination.js +10 -0
  143. package/dist/lib/components/Pagination.js.map +1 -0
  144. package/dist/lib/components/PathRenderer.d.ts +11 -0
  145. package/dist/lib/components/PathRenderer.js +28 -0
  146. package/dist/lib/components/PathRenderer.js.map +1 -0
  147. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  148. package/dist/lib/components/ReactMarkdown.js +182 -0
  149. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  150. package/dist/lib/components/Search.d.ts +3 -1
  151. package/dist/lib/components/Search.js +9 -3
  152. package/dist/lib/components/Search.js.map +1 -1
  153. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  154. package/dist/lib/components/StatusPage.d.ts +7 -0
  155. package/dist/lib/components/StatusPage.js +71 -0
  156. package/dist/lib/components/StatusPage.js.map +1 -0
  157. package/dist/lib/components/ThemeSwitch.js +10 -5
  158. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  159. package/dist/lib/components/TopNavigation.d.ts +4 -1
  160. package/dist/lib/components/TopNavigation.js +37 -17
  161. package/dist/lib/components/TopNavigation.js.map +1 -1
  162. package/dist/lib/components/Zudoku.d.ts +1 -1
  163. package/dist/lib/components/Zudoku.js +15 -8
  164. package/dist/lib/components/Zudoku.js.map +1 -1
  165. package/dist/lib/components/cache.d.ts +13 -0
  166. package/dist/lib/components/cache.js +20 -0
  167. package/dist/lib/components/cache.js.map +1 -0
  168. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  169. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  170. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  171. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  172. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  173. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  174. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  175. package/dist/lib/components/context/ViewportAnchorContext.js +21 -14
  176. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  177. package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
  178. package/dist/lib/components/context/ZudokuContext.js +22 -9
  179. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  180. package/dist/lib/components/index.d.ts +38 -8
  181. package/dist/lib/components/index.js +17 -4
  182. package/dist/lib/components/index.js.map +1 -1
  183. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  184. package/dist/lib/components/navigation/PoweredByZudoku.js +6 -0
  185. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  186. package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
  187. package/dist/lib/components/navigation/Sidebar.js +3 -7
  188. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  189. package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
  190. package/dist/lib/components/navigation/SidebarBadge.js +13 -11
  191. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  192. package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
  193. package/dist/lib/components/navigation/SidebarCategory.js +26 -21
  194. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  195. package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
  196. package/dist/lib/components/navigation/SidebarItem.js +19 -17
  197. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  198. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  199. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  200. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  201. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
  202. package/dist/lib/components/navigation/Toc.js.map +1 -0
  203. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  204. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  205. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  206. package/dist/lib/components/navigation/utils.js +1 -1
  207. package/dist/lib/components/navigation/utils.js.map +1 -1
  208. package/dist/lib/core/RouteGuard.d.ts +2 -0
  209. package/dist/lib/core/RouteGuard.js +52 -0
  210. package/dist/lib/core/RouteGuard.js.map +1 -0
  211. package/dist/lib/core/ZudokuContext.d.ts +36 -8
  212. package/dist/lib/core/ZudokuContext.js +37 -12
  213. package/dist/lib/core/ZudokuContext.js.map +1 -1
  214. package/dist/lib/core/plugins.d.ts +21 -7
  215. package/dist/lib/core/plugins.js +3 -0
  216. package/dist/lib/core/plugins.js.map +1 -1
  217. package/dist/lib/errors/ErrorAlert.js +6 -1
  218. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  219. package/dist/lib/errors/RouterError.js +1 -1
  220. package/dist/lib/errors/RouterError.js.map +1 -1
  221. package/dist/lib/hooks/index.d.ts +3 -0
  222. package/dist/lib/hooks/index.js +5 -0
  223. package/dist/lib/hooks/index.js.map +1 -0
  224. package/dist/lib/hooks/useEvent.d.ts +11 -0
  225. package/dist/lib/hooks/useEvent.js +19 -0
  226. package/dist/lib/hooks/useEvent.js.map +1 -0
  227. package/dist/lib/hooks/useEvent.test.js +100 -0
  228. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  229. package/dist/lib/icons.d.ts +1 -0
  230. package/dist/lib/icons.js +1 -0
  231. package/dist/lib/icons.js.map +1 -1
  232. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  233. package/dist/lib/oas/graphql/circular.js +38 -0
  234. package/dist/lib/oas/graphql/circular.js.map +1 -0
  235. package/dist/lib/oas/graphql/index.d.ts +25 -1
  236. package/dist/lib/oas/graphql/index.js +213 -66
  237. package/dist/lib/oas/graphql/index.js.map +1 -1
  238. package/dist/lib/oas/parser/dereference/index.js +8 -3
  239. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  240. package/dist/lib/oas/parser/index.d.ts +5 -3
  241. package/dist/lib/oas/parser/index.js +0 -22
  242. package/dist/lib/oas/parser/index.js.map +1 -1
  243. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  244. package/dist/lib/oas/parser/upgrade/index.js +21 -23
  245. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  246. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  247. package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
  248. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  249. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  250. package/dist/lib/plugins/api-catalog/index.js +46 -0
  251. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  252. package/dist/lib/plugins/api-keys/CreateApiKey.js +8 -4
  253. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  254. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  255. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  256. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  257. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  258. package/dist/lib/plugins/api-keys/index.d.ts +1 -0
  259. package/dist/lib/plugins/api-keys/index.js +4 -0
  260. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  261. package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
  262. package/dist/lib/plugins/markdown/MdxPage.js +17 -4
  263. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  264. package/dist/lib/plugins/markdown/index.d.ts +3 -1
  265. package/dist/lib/plugins/markdown/index.js +1 -1
  266. package/dist/lib/plugins/markdown/index.js.map +1 -1
  267. package/dist/lib/plugins/markdown/resolver.d.ts +0 -6
  268. package/dist/lib/plugins/markdown/resolver.js +0 -29
  269. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  270. package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
  271. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  272. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  273. package/dist/lib/plugins/openapi/ColorizedParam.js +19 -8
  274. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  275. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  276. package/dist/lib/plugins/openapi/Endpoint.js +8 -7
  277. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  278. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  279. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  280. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  281. package/dist/lib/plugins/openapi/OperationList.d.ts +5 -2
  282. package/dist/lib/plugins/openapi/OperationList.js +90 -11
  283. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  284. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  285. package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
  286. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  287. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  288. package/dist/lib/plugins/openapi/ParamInfos.js +42 -0
  289. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  290. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  291. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  292. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  293. package/dist/lib/plugins/openapi/ParameterListItem.js +9 -3
  294. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  295. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
  296. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
  297. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  298. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  299. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -13
  300. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  301. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +7 -13
  302. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  303. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  304. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  305. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  306. package/dist/lib/plugins/openapi/Sidecar.js +54 -37
  307. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  308. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  309. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  310. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  311. package/dist/lib/plugins/openapi/SidecarExamples.js +68 -0
  312. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  313. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  314. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  315. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +2 -2
  316. package/dist/lib/plugins/openapi/client/GraphQLClient.js +23 -82
  317. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  318. package/dist/lib/plugins/openapi/client/createServer.d.ts +2 -1
  319. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  320. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  321. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +6 -2
  322. package/dist/lib/plugins/openapi/client/useCreateQuery.js +6 -5
  323. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  324. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  325. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  326. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  327. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  328. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  329. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  330. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  331. package/dist/lib/plugins/openapi/graphql/gql.d.ts +11 -3
  332. package/dist/lib/plugins/openapi/graphql/gql.js +5 -14
  333. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  334. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +113 -21
  335. package/dist/lib/plugins/openapi/graphql/graphql.js +55 -11
  336. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  337. package/dist/lib/plugins/openapi/index.d.ts +10 -6
  338. package/dist/lib/plugins/openapi/index.js +63 -82
  339. package/dist/lib/plugins/openapi/index.js.map +1 -1
  340. package/dist/lib/plugins/openapi/interfaces.d.ts +56 -3
  341. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  342. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
  343. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  344. package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
  345. package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
  346. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  347. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  348. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  349. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  350. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  351. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
  352. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  353. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  354. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  355. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  356. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  357. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
  358. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  359. package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
  360. package/dist/lib/plugins/openapi/playground/Playground.js +131 -69
  361. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  362. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  363. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  364. package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
  365. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  366. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  367. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  368. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  369. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  370. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  371. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  372. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  373. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  374. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  375. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  376. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  377. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  378. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  379. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
  380. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  381. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
  382. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
  383. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  384. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  385. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  386. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  387. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  388. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  389. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  390. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +7 -0
  391. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  392. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  393. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  394. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +174 -0
  395. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  396. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +10 -0
  397. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  398. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  399. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  400. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +131 -0
  401. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  402. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +11 -0
  403. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  404. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  405. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  406. package/dist/lib/plugins/openapi/processors/removePaths.test.js +104 -0
  407. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  408. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  409. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  410. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  411. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  412. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  413. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  414. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  415. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  416. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  417. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  418. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  419. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  420. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  421. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
  422. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  423. package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +2 -4
  424. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +42 -0
  425. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  426. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
  427. package/dist/lib/plugins/openapi/schema/SchemaView.js +34 -49
  428. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  429. package/dist/lib/plugins/openapi/schema/utils.d.ts +2 -0
  430. package/dist/lib/plugins/openapi/schema/utils.js +5 -1
  431. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  432. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  433. package/dist/lib/plugins/openapi/state.js +18 -0
  434. package/dist/lib/plugins/openapi/state.js.map +1 -0
  435. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  436. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  437. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  438. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +19 -11
  439. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  440. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  441. package/dist/lib/plugins/openapi/util/getRoutes.js +80 -0
  442. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  443. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  444. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  445. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  446. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  447. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  448. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  449. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  450. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  451. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  452. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  453. package/dist/lib/plugins/redirect/index.js +1 -1
  454. package/dist/lib/plugins/redirect/index.js.map +1 -1
  455. package/dist/lib/plugins/search-inkeep/index.d.ts +22 -3
  456. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  457. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  458. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  459. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  460. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  461. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  462. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  463. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  464. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  465. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  466. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  467. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  468. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  469. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  470. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  471. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  472. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  473. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  474. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  475. package/dist/lib/ui/Badge.d.ts +1 -1
  476. package/dist/lib/ui/Badge.js +2 -1
  477. package/dist/lib/ui/Badge.js.map +1 -1
  478. package/dist/lib/ui/Button.d.ts +2 -2
  479. package/dist/lib/ui/Button.js +2 -1
  480. package/dist/lib/ui/Button.js.map +1 -1
  481. package/dist/lib/ui/Callout.d.ts +2 -1
  482. package/dist/lib/ui/Callout.js +3 -2
  483. package/dist/lib/ui/Callout.js.map +1 -1
  484. package/dist/lib/ui/Card.js +1 -1
  485. package/dist/lib/ui/Card.js.map +1 -1
  486. package/dist/lib/ui/Checkbox.js +1 -1
  487. package/dist/lib/ui/Checkbox.js.map +1 -1
  488. package/dist/lib/ui/Command.d.ts +17 -3
  489. package/dist/lib/ui/Command.js +7 -3
  490. package/dist/lib/ui/Command.js.map +1 -1
  491. package/dist/lib/ui/Input.d.ts +1 -2
  492. package/dist/lib/ui/Input.js.map +1 -1
  493. package/dist/lib/ui/Select.js +3 -3
  494. package/dist/lib/ui/Select.js.map +1 -1
  495. package/dist/lib/ui/Stepper.d.ts +3 -0
  496. package/dist/lib/ui/Stepper.js +7 -0
  497. package/dist/lib/ui/Stepper.js.map +1 -0
  498. package/dist/lib/ui/SyntaxHighlight.d.ts +15 -0
  499. package/dist/lib/ui/SyntaxHighlight.js +62 -0
  500. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  501. package/dist/lib/ui/util.d.ts +2 -0
  502. package/dist/lib/ui/util.js +3 -0
  503. package/dist/lib/ui/util.js.map +1 -0
  504. package/dist/lib/util/MdxComponents.d.ts +23 -20
  505. package/dist/lib/util/MdxComponents.js +10 -7
  506. package/dist/lib/util/MdxComponents.js.map +1 -1
  507. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  508. package/dist/lib/util/detectOS.d.ts +1 -0
  509. package/dist/lib/util/detectOS.js +11 -0
  510. package/dist/lib/util/detectOS.js.map +1 -0
  511. package/dist/lib/util/joinPath.d.ts +3 -0
  512. package/dist/lib/util/joinPath.js +3 -0
  513. package/dist/lib/util/joinPath.js.map +1 -1
  514. package/dist/lib/util/joinUrl.d.ts +1 -0
  515. package/dist/lib/util/joinUrl.js +40 -0
  516. package/dist/lib/util/joinUrl.js.map +1 -0
  517. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  518. package/dist/lib/util/joinUrl.test.js +43 -0
  519. package/dist/lib/util/joinUrl.test.js.map +1 -0
  520. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  521. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  522. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  523. package/dist/lib/util/traverse.d.ts +3 -0
  524. package/dist/lib/util/traverse.js +22 -0
  525. package/dist/lib/util/traverse.js.map +1 -0
  526. package/dist/lib/util/types.d.ts +7 -0
  527. package/dist/lib/util/types.js +2 -0
  528. package/dist/lib/util/types.js.map +1 -0
  529. package/dist/lib/util/useExposedProps.js +1 -1
  530. package/dist/lib/util/useExposedProps.js.map +1 -1
  531. package/dist/lib/util/useLatest.d.ts +1 -0
  532. package/dist/lib/util/useLatest.js +15 -0
  533. package/dist/lib/util/useLatest.js.map +1 -0
  534. package/dist/lib/util/useOnScreen.d.ts +3 -2
  535. package/dist/lib/util/useOnScreen.js +3 -3
  536. package/dist/lib/util/useOnScreen.js.map +1 -1
  537. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  538. package/dist/lib/util/useScrollToAnchor.js +42 -37
  539. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  540. package/dist/lib/util/useScrollToTop.js +7 -5
  541. package/dist/lib/util/useScrollToTop.js.map +1 -1
  542. package/dist/vite/api/schema-codegen.d.ts +12 -0
  543. package/dist/vite/api/schema-codegen.js +85 -0
  544. package/dist/vite/api/schema-codegen.js.map +1 -0
  545. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  546. package/dist/vite/api/schema-codegen.test.js +313 -0
  547. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  548. package/dist/vite/build.js +41 -16
  549. package/dist/vite/build.js.map +1 -1
  550. package/dist/vite/config.d.ts +7 -8
  551. package/dist/vite/config.js +109 -64
  552. package/dist/vite/config.js.map +1 -1
  553. package/dist/vite/config.test.js +11 -5
  554. package/dist/vite/config.test.js.map +1 -1
  555. package/dist/vite/create-pagefind-index.d.ts +4 -0
  556. package/dist/vite/create-pagefind-index.js +12 -0
  557. package/dist/vite/create-pagefind-index.js.map +1 -0
  558. package/dist/vite/css/collect.d.ts +2 -0
  559. package/dist/vite/css/collect.js +27 -0
  560. package/dist/vite/css/collect.js.map +1 -0
  561. package/dist/vite/css/plugin.d.ts +5 -0
  562. package/dist/vite/css/plugin.js +79 -0
  563. package/dist/vite/css/plugin.js.map +1 -0
  564. package/dist/vite/dev-server.d.ts +5 -2
  565. package/dist/vite/dev-server.js +65 -15
  566. package/dist/vite/dev-server.js.map +1 -1
  567. package/dist/vite/error-handler.d.ts +1 -1
  568. package/dist/vite/error-handler.js +1 -1
  569. package/dist/vite/error-handler.js.map +1 -1
  570. package/dist/vite/output.d.ts +15 -3
  571. package/dist/vite/output.js +41 -14
  572. package/dist/vite/output.js.map +1 -1
  573. package/dist/vite/plugin-api-keys.d.ts +2 -2
  574. package/dist/vite/plugin-api-keys.js +5 -5
  575. package/dist/vite/plugin-api-keys.js.map +1 -1
  576. package/dist/vite/plugin-api.d.ts +2 -2
  577. package/dist/vite/plugin-api.js +223 -32
  578. package/dist/vite/plugin-api.js.map +1 -1
  579. package/dist/vite/plugin-auth.d.ts +2 -2
  580. package/dist/vite/plugin-auth.js +7 -4
  581. package/dist/vite/plugin-auth.js.map +1 -1
  582. package/dist/vite/plugin-component.d.ts +2 -2
  583. package/dist/vite/plugin-component.js +20 -20
  584. package/dist/vite/plugin-component.js.map +1 -1
  585. package/dist/vite/plugin-config-reload.d.ts +4 -4
  586. package/dist/vite/plugin-config-reload.js +13 -6
  587. package/dist/vite/plugin-config-reload.js.map +1 -1
  588. package/dist/vite/plugin-config.d.ts +2 -2
  589. package/dist/vite/plugin-config.js +25 -1
  590. package/dist/vite/plugin-config.js.map +1 -1
  591. package/dist/vite/plugin-custom-pages.d.ts +2 -2
  592. package/dist/vite/plugin-custom-pages.js +3 -3
  593. package/dist/vite/plugin-custom-pages.js.map +1 -1
  594. package/dist/vite/plugin-docs.d.ts +3 -3
  595. package/dist/vite/plugin-docs.js +23 -6
  596. package/dist/vite/plugin-docs.js.map +1 -1
  597. package/dist/vite/plugin-docs.test.js +15 -23
  598. package/dist/vite/plugin-docs.test.js.map +1 -1
  599. package/dist/vite/plugin-frontmatter.d.ts +2 -2
  600. package/dist/vite/plugin-frontmatter.js +5 -4
  601. package/dist/vite/plugin-frontmatter.js.map +1 -1
  602. package/dist/vite/plugin-mdx.d.ts +2 -2
  603. package/dist/vite/plugin-mdx.js +86 -14
  604. package/dist/vite/plugin-mdx.js.map +1 -1
  605. package/dist/vite/plugin-redirect.d.ts +2 -2
  606. package/dist/vite/plugin-redirect.js +3 -3
  607. package/dist/vite/plugin-redirect.js.map +1 -1
  608. package/dist/vite/plugin-search.d.ts +2 -2
  609. package/dist/vite/plugin-search.js +5 -1
  610. package/dist/vite/plugin-search.js.map +1 -1
  611. package/dist/vite/plugin-sidebar.d.ts +2 -2
  612. package/dist/vite/plugin-sidebar.js +13 -4
  613. package/dist/vite/plugin-sidebar.js.map +1 -1
  614. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +3 -3
  615. package/dist/vite/plugin-theme-css.js +117 -0
  616. package/dist/vite/plugin-theme-css.js.map +1 -0
  617. package/dist/vite/plugin.d.ts +2 -3
  618. package/dist/vite/plugin.js +6 -2
  619. package/dist/vite/plugin.js.map +1 -1
  620. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  621. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  622. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  623. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  624. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  625. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  626. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  627. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  628. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  629. package/dist/vite/prerender/prerender.d.ts +15 -0
  630. package/dist/vite/prerender/prerender.js +109 -0
  631. package/dist/vite/prerender/prerender.js.map +1 -0
  632. package/dist/vite/prerender/worker.d.ts +13 -0
  633. package/dist/vite/prerender/worker.js +59 -0
  634. package/dist/vite/prerender/worker.js.map +1 -0
  635. package/dist/vite/remarkStaticGeneration.js +5 -5
  636. package/dist/vite/remarkStaticGeneration.js.map +1 -1
  637. package/dist/vite/reporter.d.ts +3 -0
  638. package/dist/vite/reporter.js +33 -0
  639. package/dist/vite/reporter.js.map +1 -0
  640. package/dist/vite/sitemap.d.ts +1 -1
  641. package/dist/vite/sitemap.js +2 -1
  642. package/dist/vite/sitemap.js.map +1 -1
  643. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  644. package/dist/zuplo/enrich-with-zuplo.js +184 -0
  645. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  646. package/dist/zuplo/env.d.ts +7 -0
  647. package/dist/zuplo/env.js +12 -0
  648. package/dist/zuplo/env.js.map +1 -0
  649. package/dist/zuplo/policy-types.d.ts +33 -0
  650. package/dist/zuplo/policy-types.js +8 -0
  651. package/dist/zuplo/policy-types.js.map +1 -0
  652. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  653. package/dist/zuplo/with-zuplo-processors.js +26 -0
  654. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  655. package/dist/zuplo/with-zuplo.d.ts +3 -0
  656. package/dist/zuplo/with-zuplo.js +13 -0
  657. package/dist/zuplo/with-zuplo.js.map +1 -0
  658. package/lib/AuthenticationPlugin-foqdvvkf.js +58 -0
  659. package/lib/AuthenticationPlugin-foqdvvkf.js.map +1 -0
  660. package/lib/Button-Fp19CMUr.js +49 -0
  661. package/lib/Button-Fp19CMUr.js.map +1 -0
  662. package/lib/Callout-Boqdgl-z.js +230 -0
  663. package/lib/Callout-Boqdgl-z.js.map +1 -0
  664. package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-DpB47wvk.js} +3 -3
  665. package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-DpB47wvk.js.map} +1 -1
  666. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  667. package/lib/Dialog-sbgekbjb.js +98 -0
  668. package/lib/{Dialog-k70Qfukb.js.map → Dialog-sbgekbjb.js.map} +1 -1
  669. package/lib/Drawer-kDAfOq_2.js +1133 -0
  670. package/lib/Drawer-kDAfOq_2.js.map +1 -0
  671. package/lib/{Markdown-BorQdbxW.js → Markdown-CKXePgqR.js} +15142 -13372
  672. package/lib/Markdown-CKXePgqR.js.map +1 -0
  673. package/lib/MdxPage-DzpRK-fu.js +85 -0
  674. package/lib/MdxPage-DzpRK-fu.js.map +1 -0
  675. package/lib/OasProvider-Dw2mP5VZ.js +34 -0
  676. package/lib/OasProvider-Dw2mP5VZ.js.map +1 -0
  677. package/lib/OperationList-Cr_NA4e2.js +5069 -0
  678. package/lib/OperationList-Cr_NA4e2.js.map +1 -0
  679. package/lib/Pagination-DT6eKg_U.js +48 -0
  680. package/lib/Pagination-DT6eKg_U.js.map +1 -0
  681. package/lib/RouteGuard-CqZPoZYJ.js +744 -0
  682. package/lib/RouteGuard-CqZPoZYJ.js.map +1 -0
  683. package/lib/SchemaList-DNvUJgwI.js +148 -0
  684. package/lib/SchemaList-DNvUJgwI.js.map +1 -0
  685. package/lib/SchemaView-Cxh_msLc.js +357 -0
  686. package/lib/SchemaView-Cxh_msLc.js.map +1 -0
  687. package/lib/{Select-DP74t8Yy.js → Select-DVFRKf1R.js} +53 -53
  688. package/lib/{Select-DP74t8Yy.js.map → Select-DVFRKf1R.js.map} +1 -1
  689. package/lib/SlotletProvider-BV1xrg-l.js +338 -0
  690. package/lib/SlotletProvider-BV1xrg-l.js.map +1 -0
  691. package/lib/{Spinner-3cQDBVGr.js → Spinner-CE68iCm0.js} +2 -2
  692. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-CE68iCm0.js.map} +1 -1
  693. package/lib/{SyntaxHighlight-CBmwwKoM.js → SyntaxHighlight-BEoSoPEo.js} +552 -645
  694. package/lib/SyntaxHighlight-BEoSoPEo.js.map +1 -0
  695. package/lib/Toc-D40bDl5J.js +92 -0
  696. package/lib/Toc-D40bDl5J.js.map +1 -0
  697. package/lib/chunk-HA7DTUK3-C4gP41vD.js +1821 -0
  698. package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +1 -0
  699. package/lib/circular-ByJI6Mci.js +15877 -0
  700. package/lib/circular-ByJI6Mci.js.map +1 -0
  701. package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
  702. package/lib/cn-qaFjX9_3.js.map +1 -0
  703. package/lib/{context-D1nXWxm7.js → context-DLCwaMXN.js} +2 -2
  704. package/lib/context-DLCwaMXN.js.map +1 -0
  705. package/lib/createServer-Cq73y9Kv.js +12454 -0
  706. package/lib/createServer-Cq73y9Kv.js.map +1 -0
  707. package/lib/hook-CqpVYDqN.js +1483 -0
  708. package/lib/hook-CqpVYDqN.js.map +1 -0
  709. package/lib/index-CN3TIw7H.js +2009 -0
  710. package/lib/index-CN3TIw7H.js.map +1 -0
  711. package/lib/index-CPNSgwSb.js +36 -0
  712. package/lib/index-CPNSgwSb.js.map +1 -0
  713. package/lib/{index-CkwDvuPt.js → index-Dl3Yl0yb.js} +303 -286
  714. package/lib/index-Dl3Yl0yb.js.map +1 -0
  715. package/lib/index-DwT-v3zK.js +86 -0
  716. package/lib/index-DwT-v3zK.js.map +1 -0
  717. package/lib/index-LNp6rxyU.js.map +1 -1
  718. package/lib/index-dQecW8K5.js +2227 -0
  719. package/lib/index-dQecW8K5.js.map +1 -0
  720. package/lib/index-gQD2h1wX.js +447 -0
  721. package/lib/index-gQD2h1wX.js.map +1 -0
  722. package/lib/index.esm--gIChbWs.js +1207 -0
  723. package/lib/index.esm--gIChbWs.js.map +1 -0
  724. package/lib/invariant-Caa8-XvF.js.map +1 -1
  725. package/lib/jsx-runtime-CYK1ROHF.js +446 -0
  726. package/lib/jsx-runtime-CYK1ROHF.js.map +1 -0
  727. package/lib/{hook-Diu0rqp-.js → mutation-8LjrN7uz.js} +40 -61
  728. package/lib/mutation-8LjrN7uz.js.map +1 -0
  729. package/lib/objectEntries-yMIkr2mI.js +5 -0
  730. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  731. package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
  732. package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
  733. package/lib/prism-csharp.min-bQAo2pmx.js +63 -0
  734. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-bQAo2pmx.js.map} +1 -1
  735. package/lib/prism-java.min-BpvsOuIa.js +35 -0
  736. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BpvsOuIa.js.map} +1 -1
  737. package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
  738. package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
  739. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  740. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  741. package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
  742. package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
  743. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  744. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
  745. package/lib/prism-ruby.min-Dx9KO9ds.js +38 -0
  746. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-Dx9KO9ds.js.map} +1 -1
  747. package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
  748. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
  749. package/lib/processors/removeExtensions.js +11 -0
  750. package/lib/processors/removeExtensions.js.map +1 -0
  751. package/lib/processors/removeParameters.js +48 -0
  752. package/lib/processors/removeParameters.js.map +1 -0
  753. package/lib/processors/removePaths.js +28 -0
  754. package/lib/processors/removePaths.js.map +1 -0
  755. package/lib/processors/traverse.js +15 -0
  756. package/lib/processors/traverse.js.map +1 -0
  757. package/lib/ui/Accordion.js +2 -2
  758. package/lib/ui/Accordion.js.map +1 -1
  759. package/lib/ui/ActionButton.js +4 -4
  760. package/lib/ui/ActionButton.js.map +1 -1
  761. package/lib/ui/Alert.js +3 -3
  762. package/lib/ui/Alert.js.map +1 -1
  763. package/lib/ui/AlertDialog.js +2 -2
  764. package/lib/ui/AlertDialog.js.map +1 -1
  765. package/lib/ui/Badge.js +5 -4
  766. package/lib/ui/Badge.js.map +1 -1
  767. package/lib/ui/Breadcrumb.js +5 -5
  768. package/lib/ui/Breadcrumb.js.map +1 -1
  769. package/lib/ui/Button.js +14 -13
  770. package/lib/ui/Button.js.map +1 -1
  771. package/lib/ui/Callout.js +40 -21
  772. package/lib/ui/Callout.js.map +1 -1
  773. package/lib/ui/Card.js +9 -9
  774. package/lib/ui/Card.js.map +1 -1
  775. package/lib/ui/Carousel.js +408 -402
  776. package/lib/ui/Carousel.js.map +1 -1
  777. package/lib/ui/Checkbox.js +14 -13
  778. package/lib/ui/Checkbox.js.map +1 -1
  779. package/lib/ui/Command.js +114 -508
  780. package/lib/ui/Command.js.map +1 -1
  781. package/lib/ui/Dialog.js +2 -2
  782. package/lib/ui/Dialog.js.map +1 -1
  783. package/lib/ui/Drawer.js +14 -1150
  784. package/lib/ui/Drawer.js.map +1 -1
  785. package/lib/ui/DropdownMenu.js +2 -2
  786. package/lib/ui/DropdownMenu.js.map +1 -1
  787. package/lib/ui/Form.js +6 -6
  788. package/lib/ui/Form.js.map +1 -1
  789. package/lib/ui/HoverCard.js +2 -2
  790. package/lib/ui/Input.js +2 -2
  791. package/lib/ui/Input.js.map +1 -1
  792. package/lib/ui/Label.js +3 -3
  793. package/lib/ui/Pagination.js +5 -5
  794. package/lib/ui/Pagination.js.map +1 -1
  795. package/lib/ui/Popover.js +2 -2
  796. package/lib/ui/Popover.js.map +1 -1
  797. package/lib/ui/Progress.js +2 -2
  798. package/lib/ui/Progress.js.map +1 -1
  799. package/lib/ui/RadioGroup.js +2 -2
  800. package/lib/ui/RadioGroup.js.map +1 -1
  801. package/lib/ui/ScrollArea.js +2 -2
  802. package/lib/ui/ScrollArea.js.map +1 -1
  803. package/lib/ui/Select.js +5 -5
  804. package/lib/ui/Select.js.map +1 -1
  805. package/lib/ui/Skeleton.js +2 -2
  806. package/lib/ui/Skeleton.js.map +1 -1
  807. package/lib/ui/Slider.js +2 -2
  808. package/lib/ui/Stepper.js +6 -0
  809. package/lib/ui/Stepper.js.map +1 -0
  810. package/lib/ui/Switch.js +2 -2
  811. package/lib/ui/Switch.js.map +1 -1
  812. package/lib/ui/SyntaxHighlight.js +11 -0
  813. package/lib/ui/SyntaxHighlight.js.map +1 -0
  814. package/lib/ui/Tabs.js +2 -2
  815. package/lib/ui/Textarea.js +2 -2
  816. package/lib/ui/Textarea.js.map +1 -1
  817. package/lib/ui/Toggle.js +3 -3
  818. package/lib/ui/Toggle.js.map +1 -1
  819. package/lib/ui/ToggleGroup.js +2 -2
  820. package/lib/ui/ToggleGroup.js.map +1 -1
  821. package/lib/ui/Tooltip.js +2 -2
  822. package/lib/ui/util.js +6 -0
  823. package/lib/ui/util.js.map +1 -0
  824. package/lib/useExposedProps-B9qXJedG.js +9 -0
  825. package/lib/useExposedProps-B9qXJedG.js.map +1 -0
  826. package/lib/useLatest-hmRS46UF.js +11 -0
  827. package/lib/useLatest-hmRS46UF.js.map +1 -0
  828. package/lib/zudoku.auth-auth0.js +25 -25
  829. package/lib/zudoku.auth-auth0.js.map +1 -1
  830. package/lib/zudoku.auth-clerk.js +101 -55
  831. package/lib/zudoku.auth-clerk.js.map +1 -1
  832. package/lib/zudoku.auth-openid.js +448 -484
  833. package/lib/zudoku.auth-openid.js.map +1 -1
  834. package/lib/zudoku.components.js +32 -1584
  835. package/lib/zudoku.components.js.map +1 -1
  836. package/lib/zudoku.hooks.js +19 -0
  837. package/lib/zudoku.hooks.js.map +1 -0
  838. package/lib/zudoku.icons.js +10 -0
  839. package/lib/zudoku.icons.js.map +1 -1
  840. package/lib/zudoku.plugin-api-catalog.js +117 -0
  841. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  842. package/lib/zudoku.plugin-api-keys.js +111 -108
  843. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  844. package/lib/zudoku.plugin-custom-pages.js +4 -4
  845. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  846. package/lib/zudoku.plugin-markdown.js +27 -47
  847. package/lib/zudoku.plugin-markdown.js.map +1 -1
  848. package/lib/zudoku.plugin-openapi.js +6 -6
  849. package/lib/zudoku.plugin-openapi.js.map +1 -1
  850. package/lib/zudoku.plugin-redirect.js +1 -1
  851. package/lib/zudoku.plugin-redirect.js.map +1 -1
  852. package/lib/zudoku.plugin-search-inkeep.js +53 -24
  853. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  854. package/lib/zudoku.plugin-search-pagefind.js +233 -0
  855. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  856. package/lib/zudoku.plugins.js +14 -0
  857. package/lib/zudoku.plugins.js.map +1 -0
  858. package/package.json +140 -95
  859. package/src/app/demo-cdn.html +31 -31
  860. package/src/app/demo.tsx +1 -2
  861. package/src/app/entry.client.tsx +24 -15
  862. package/src/app/entry.server.tsx +26 -15
  863. package/src/app/main.css +100 -39
  864. package/src/app/main.tsx +40 -11
  865. package/src/app/sentry.ts +24 -0
  866. package/src/app/standalone.tsx +1 -2
  867. package/src/app/tailwind.ts +83 -48
  868. package/src/lib/MissingIcon.tsx +22 -0
  869. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  870. package/src/lib/authentication/authentication.ts +3 -1
  871. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  872. package/src/lib/authentication/components/SignIn.tsx +1 -1
  873. package/src/lib/authentication/components/SignOut.tsx +3 -2
  874. package/src/lib/authentication/hook.ts +13 -4
  875. package/src/lib/authentication/providers/auth0.tsx +6 -7
  876. package/src/lib/authentication/providers/clerk.tsx +70 -15
  877. package/src/lib/authentication/providers/openid.tsx +72 -55
  878. package/src/lib/authentication/providers/supabase.tsx +157 -0
  879. package/src/lib/authentication/state.ts +51 -27
  880. package/src/lib/components/AnchorLink.tsx +13 -8
  881. package/src/lib/components/Autocomplete.tsx +113 -0
  882. package/src/lib/components/Banner.tsx +1 -0
  883. package/src/lib/components/Bootstrap.tsx +29 -29
  884. package/src/lib/components/Footer.tsx +139 -0
  885. package/src/lib/components/Header.tsx +65 -24
  886. package/src/lib/components/Heading.tsx +13 -13
  887. package/src/lib/components/InlineCode.tsx +13 -16
  888. package/src/lib/components/Layout.tsx +33 -54
  889. package/src/lib/components/Main.tsx +50 -0
  890. package/src/lib/components/Markdown.tsx +15 -16
  891. package/src/lib/components/MobileTopNavigation.tsx +36 -34
  892. package/src/lib/components/NotFoundPage.tsx +1 -1
  893. package/src/lib/components/Pagination.tsx +50 -0
  894. package/src/lib/components/PathRenderer.tsx +61 -0
  895. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  896. package/src/lib/components/ReactMarkdown.tsx +264 -0
  897. package/src/lib/components/Search.tsx +17 -6
  898. package/src/lib/components/SlotletProvider.tsx +1 -1
  899. package/src/lib/components/StatusPage.tsx +91 -0
  900. package/src/lib/components/ThemeSwitch.tsx +33 -11
  901. package/src/lib/components/TopNavigation.tsx +72 -37
  902. package/src/lib/components/Zudoku.tsx +20 -7
  903. package/src/lib/components/cache.ts +23 -0
  904. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  905. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  906. package/src/lib/components/context/ViewportAnchorContext.tsx +26 -21
  907. package/src/lib/components/context/ZudokuContext.ts +32 -10
  908. package/src/lib/components/index.ts +22 -5
  909. package/src/lib/components/navigation/PoweredByZudoku.tsx +23 -0
  910. package/src/lib/components/navigation/Sidebar.tsx +38 -29
  911. package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
  912. package/src/lib/components/navigation/SidebarCategory.tsx +59 -56
  913. package/src/lib/components/navigation/SidebarItem.tsx +30 -39
  914. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
  915. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
  916. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  917. package/src/lib/components/navigation/utils.ts +1 -1
  918. package/src/lib/core/RouteGuard.tsx +96 -0
  919. package/src/lib/core/ZudokuContext.ts +73 -21
  920. package/src/lib/core/plugins.ts +33 -7
  921. package/src/lib/errors/ErrorAlert.tsx +24 -17
  922. package/src/lib/errors/RouterError.tsx +1 -1
  923. package/src/lib/hooks/index.ts +5 -0
  924. package/src/lib/hooks/useEvent.test.tsx +149 -0
  925. package/src/lib/hooks/useEvent.ts +41 -0
  926. package/src/lib/icons.ts +1 -0
  927. package/src/lib/oas/graphql/circular.ts +50 -0
  928. package/src/lib/oas/graphql/index.ts +295 -101
  929. package/src/lib/oas/parser/dereference/index.ts +10 -4
  930. package/src/lib/oas/parser/index.ts +7 -29
  931. package/src/lib/oas/parser/upgrade/index.ts +24 -31
  932. package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
  933. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  934. package/src/lib/plugins/api-keys/CreateApiKey.tsx +8 -4
  935. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  936. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  937. package/src/lib/plugins/api-keys/index.tsx +7 -1
  938. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  939. package/src/lib/plugins/markdown/MdxPage.tsx +43 -41
  940. package/src/lib/plugins/markdown/index.tsx +5 -2
  941. package/src/lib/plugins/markdown/resolver.ts +2 -37
  942. package/src/lib/plugins/openapi/CollapsibleCode.tsx +10 -7
  943. package/src/lib/plugins/openapi/ColorizedParam.tsx +30 -13
  944. package/src/lib/plugins/openapi/Endpoint.tsx +14 -12
  945. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  946. package/src/lib/plugins/openapi/OperationList.tsx +220 -42
  947. package/src/lib/plugins/openapi/OperationListItem.tsx +136 -88
  948. package/src/lib/plugins/openapi/ParamInfos.tsx +87 -0
  949. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  950. package/src/lib/plugins/openapi/ParameterListItem.tsx +35 -24
  951. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
  952. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -38
  953. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +46 -63
  954. package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
  955. package/src/lib/plugins/openapi/Sidecar.tsx +85 -65
  956. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  957. package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
  958. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  959. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +29 -104
  960. package/src/lib/plugins/openapi/client/createServer.ts +6 -2
  961. package/src/lib/plugins/openapi/client/useCreateQuery.ts +13 -5
  962. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  963. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  964. package/src/lib/plugins/openapi/context.tsx +2 -2
  965. package/src/lib/plugins/openapi/graphql/gql.ts +36 -11
  966. package/src/lib/plugins/openapi/graphql/graphql.ts +172 -36
  967. package/src/lib/plugins/openapi/index.tsx +99 -98
  968. package/src/lib/plugins/openapi/interfaces.ts +57 -3
  969. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
  970. package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
  971. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  972. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
  973. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  974. package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
  975. package/src/lib/plugins/openapi/playground/Playground.tsx +384 -244
  976. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +6 -3
  977. package/src/lib/plugins/openapi/playground/QueryParams.tsx +86 -88
  978. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  979. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  980. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  981. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  982. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
  983. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
  984. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  985. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  986. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +202 -0
  987. package/src/lib/plugins/openapi/processors/removeExtensions.ts +27 -0
  988. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +148 -0
  989. package/src/lib/plugins/openapi/processors/removeParameters.ts +101 -0
  990. package/src/lib/plugins/openapi/processors/removePaths.test.ts +126 -0
  991. package/src/lib/plugins/openapi/processors/removePaths.ts +55 -0
  992. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  993. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  994. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  995. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  996. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
  997. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +148 -0
  998. package/src/lib/plugins/openapi/schema/SchemaView.tsx +88 -139
  999. package/src/lib/plugins/openapi/schema/utils.ts +11 -1
  1000. package/src/lib/plugins/openapi/state.ts +36 -0
  1001. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  1002. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +26 -11
  1003. package/src/lib/plugins/openapi/util/getRoutes.tsx +126 -0
  1004. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1005. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1006. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1007. package/src/lib/plugins/redirect/index.tsx +2 -2
  1008. package/src/lib/plugins/search-inkeep/index.tsx +78 -23
  1009. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  1010. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  1011. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  1012. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1013. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1014. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1015. package/src/lib/ui/Badge.tsx +2 -1
  1016. package/src/lib/ui/Button.tsx +4 -2
  1017. package/src/lib/ui/Callout.tsx +29 -10
  1018. package/src/lib/ui/Card.tsx +1 -1
  1019. package/src/lib/ui/Checkbox.tsx +2 -1
  1020. package/src/lib/ui/Command.tsx +45 -3
  1021. package/src/lib/ui/Input.tsx +1 -2
  1022. package/src/lib/ui/Select.tsx +2 -2
  1023. package/src/lib/ui/Stepper.tsx +8 -0
  1024. package/src/lib/ui/SyntaxHighlight.tsx +186 -0
  1025. package/src/lib/ui/util.tsx +3 -0
  1026. package/src/lib/util/MdxComponents.tsx +12 -11
  1027. package/src/lib/util/createVariantComponent.tsx +2 -2
  1028. package/src/lib/util/detectOS.ts +9 -0
  1029. package/src/lib/util/joinPath.tsx +3 -0
  1030. package/src/lib/util/joinUrl.test.ts +62 -0
  1031. package/src/lib/util/joinUrl.ts +57 -0
  1032. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1033. package/src/lib/util/traverse.ts +31 -0
  1034. package/src/lib/util/types.ts +7 -0
  1035. package/src/lib/util/useExposedProps.tsx +1 -1
  1036. package/src/lib/util/useLatest.ts +18 -0
  1037. package/src/lib/util/useOnScreen.ts +6 -4
  1038. package/src/lib/util/useScrollToAnchor.ts +48 -39
  1039. package/src/lib/util/useScrollToTop.ts +9 -4
  1040. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1041. package/dist/lib/components/SyntaxHighlight.js +0 -57
  1042. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1043. package/dist/lib/components/context/PluginSystem.js +0 -2
  1044. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1045. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1046. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1047. package/dist/lib/plugins/openapi/Route.js +0 -6
  1048. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1049. package/dist/lib/plugins/openapi/client/worker.d.ts +0 -4
  1050. package/dist/lib/plugins/openapi/client/worker.js +0 -29
  1051. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1052. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1053. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1054. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1055. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  1056. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  1057. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  1058. package/dist/lib/plugins/openapi-worker.js +0 -8
  1059. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  1060. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  1061. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  1062. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  1063. package/dist/vite/plugin-custom-css.js +0 -55
  1064. package/dist/vite/plugin-custom-css.js.map +0 -1
  1065. package/dist/vite/prerender.d.ts +0 -21
  1066. package/dist/vite/prerender.js +0 -89
  1067. package/dist/vite/prerender.js.map +0 -1
  1068. package/lib/AnchorLink-CDlhr8gL.js +0 -706
  1069. package/lib/AnchorLink-CDlhr8gL.js.map +0 -1
  1070. package/lib/AuthenticationPlugin-DeGDVa1r.js +0 -56
  1071. package/lib/AuthenticationPlugin-DeGDVa1r.js.map +0 -1
  1072. package/lib/Button-jK0EsymC.js +0 -48
  1073. package/lib/Button-jK0EsymC.js.map +0 -1
  1074. package/lib/Dialog-k70Qfukb.js +0 -67
  1075. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  1076. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  1077. package/lib/Markdown-BorQdbxW.js.map +0 -1
  1078. package/lib/MdxPage-DFlbtJWi.js +0 -174
  1079. package/lib/MdxPage-DFlbtJWi.js.map +0 -1
  1080. package/lib/OperationList-KshJrrLL.js +0 -4691
  1081. package/lib/OperationList-KshJrrLL.js.map +0 -1
  1082. package/lib/Route-DlG_HTMu.js +0 -11
  1083. package/lib/Route-DlG_HTMu.js.map +0 -1
  1084. package/lib/SidebarBadge-DxFJcJ6V.js +0 -51
  1085. package/lib/SidebarBadge-DxFJcJ6V.js.map +0 -1
  1086. package/lib/SlotletProvider-D2v6rJy1.js +0 -252
  1087. package/lib/SlotletProvider-D2v6rJy1.js.map +0 -1
  1088. package/lib/SyntaxHighlight-CBmwwKoM.js.map +0 -1
  1089. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  1090. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  1091. package/lib/assets/index-B_Jk_Yzp.js +0 -4820
  1092. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  1093. package/lib/assets/worker-CPsGZsve.js +0 -18201
  1094. package/lib/assets/worker-CPsGZsve.js.map +0 -1
  1095. package/lib/cn-BmFQLtkS.js.map +0 -1
  1096. package/lib/context-D1nXWxm7.js.map +0 -1
  1097. package/lib/createServer-DK-g7kbB.js +0 -16089
  1098. package/lib/createServer-DK-g7kbB.js.map +0 -1
  1099. package/lib/hook-Diu0rqp-.js.map +0 -1
  1100. package/lib/index-BcesIHH4.js +0 -1273
  1101. package/lib/index-BcesIHH4.js.map +0 -1
  1102. package/lib/index-BuAyrJe3.js +0 -46
  1103. package/lib/index-BuAyrJe3.js.map +0 -1
  1104. package/lib/index-CkwDvuPt.js.map +0 -1
  1105. package/lib/index-Czzd9rjU.js +0 -899
  1106. package/lib/index-Czzd9rjU.js.map +0 -1
  1107. package/lib/index-Yn8c3UWE.js +0 -921
  1108. package/lib/index-Yn8c3UWE.js.map +0 -1
  1109. package/lib/index.esm-C5mr_sKO.js +0 -1193
  1110. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  1111. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1112. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1113. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1114. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1115. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1116. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1117. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1118. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1119. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1120. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1121. package/lib/router-lfyopgBI.js +0 -3024
  1122. package/lib/router-lfyopgBI.js.map +0 -1
  1123. package/lib/state-BsPrOUAh.js +0 -252
  1124. package/lib/state-BsPrOUAh.js.map +0 -1
  1125. package/lib/useExposedProps-CTPtylCV.js +0 -10
  1126. package/lib/useExposedProps-CTPtylCV.js.map +0 -1
  1127. package/lib/utils-DcpDOncX.js +0 -1218
  1128. package/lib/utils-DcpDOncX.js.map +0 -1
  1129. package/lib/zudoku.openapi-worker.js +0 -15
  1130. package/lib/zudoku.openapi-worker.js.map +0 -1
  1131. package/src/lib/components/SyntaxHighlight.tsx +0 -160
  1132. package/src/lib/components/context/PluginSystem.ts +0 -0
  1133. package/src/lib/plugins/openapi/Route.tsx +0 -19
  1134. package/src/lib/plugins/openapi/client/worker.ts +0 -44
  1135. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  1136. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  1137. package/src/lib/plugins/openapi-worker.ts +0 -11
  1138. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1139. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1140. /package/dist/lib/{components/context/PluginSystem.d.ts → hooks/useEvent.test.d.ts} +0 -0
@@ -1,1218 +0,0 @@
1
- var _e = (t) => {
2
- throw TypeError(t);
3
- };
4
- var be = (t, e, s) => e.has(t) || _e("Cannot " + s);
5
- var i = (t, e, s) => (be(t, e, "read from private field"), s ? s.call(t) : e.get(t)), y = (t, e, s) => e.has(t) ? _e("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), c = (t, e, s, r) => (be(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s), b = (t, e, s) => (be(t, e, "access private method"), s);
6
- import * as T from "react";
7
- import { createContext as ft, useContext as yt } from "react";
8
- import { j as pt } from "./jsx-runtime-B6kdoens.js";
9
- import { u as pe } from "./index-Czzd9rjU.js";
10
- import { m as vt } from "./router-lfyopgBI.js";
11
- var Qe = class {
12
- constructor() {
13
- this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
14
- }
15
- subscribe(t) {
16
- return this.listeners.add(t), this.onSubscribe(), () => {
17
- this.listeners.delete(t), this.onUnsubscribe();
18
- };
19
- }
20
- hasListeners() {
21
- return this.listeners.size > 0;
22
- }
23
- onSubscribe() {
24
- }
25
- onUnsubscribe() {
26
- }
27
- }, V = typeof window > "u" || "Deno" in globalThis;
28
- function ge() {
29
- }
30
- function Wt(t, e) {
31
- return typeof t == "function" ? t(e) : t;
32
- }
33
- function Re(t) {
34
- return typeof t == "number" && t >= 0 && t !== 1 / 0;
35
- }
36
- function et(t, e) {
37
- return Math.max(t + (e || 0) - Date.now(), 0);
38
- }
39
- function fe(t, e) {
40
- return typeof t == "function" ? t(e) : t;
41
- }
42
- function x(t, e) {
43
- return typeof t == "function" ? t(e) : t;
44
- }
45
- function Jt(t, e) {
46
- const {
47
- type: s = "all",
48
- exact: r,
49
- fetchStatus: n,
50
- predicate: u,
51
- queryKey: a,
52
- stale: o
53
- } = t;
54
- if (a) {
55
- if (r) {
56
- if (e.queryHash !== bt(a, e.options))
57
- return !1;
58
- } else if (!qe(e.queryKey, a))
59
- return !1;
60
- }
61
- if (s !== "all") {
62
- const l = e.isActive();
63
- if (s === "active" && !l || s === "inactive" && l)
64
- return !1;
65
- }
66
- return !(typeof o == "boolean" && e.isStale() !== o || n && n !== e.state.fetchStatus || u && !u(e));
67
- }
68
- function Xt(t, e) {
69
- const { exact: s, status: r, predicate: n, mutationKey: u } = t;
70
- if (u) {
71
- if (!e.options.mutationKey)
72
- return !1;
73
- if (s) {
74
- if (Se(e.options.mutationKey) !== Se(u))
75
- return !1;
76
- } else if (!qe(e.options.mutationKey, u))
77
- return !1;
78
- }
79
- return !(r && e.state.status !== r || n && !n(e));
80
- }
81
- function bt(t, e) {
82
- return ((e == null ? void 0 : e.queryKeyHashFn) || Se)(t);
83
- }
84
- function Se(t) {
85
- return JSON.stringify(
86
- t,
87
- (e, s) => Ee(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
88
- );
89
- }
90
- function qe(t, e) {
91
- return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? !Object.keys(e).some((s) => !qe(t[s], e[s])) : !1;
92
- }
93
- function Ce(t, e) {
94
- if (t === e)
95
- return t;
96
- const s = He(t) && He(e);
97
- if (s || Ee(t) && Ee(e)) {
98
- const r = s ? t : Object.keys(t), n = r.length, u = s ? e : Object.keys(e), a = u.length, o = s ? [] : {};
99
- let l = 0;
100
- for (let R = 0; R < a; R++) {
101
- const v = s ? R : u[R];
102
- (!s && r.includes(v) || s) && t[v] === void 0 && e[v] === void 0 ? (o[v] = void 0, l++) : (o[v] = Ce(t[v], e[v]), o[v] === t[v] && t[v] !== void 0 && l++);
103
- }
104
- return n === a && l === n ? t : o;
105
- }
106
- return e;
107
- }
108
- function we(t, e) {
109
- if (!e || Object.keys(t).length !== Object.keys(e).length)
110
- return !1;
111
- for (const s in t)
112
- if (t[s] !== e[s])
113
- return !1;
114
- return !0;
115
- }
116
- function He(t) {
117
- return Array.isArray(t) && t.length === Object.keys(t).length;
118
- }
119
- function Ee(t) {
120
- if (!Be(t))
121
- return !1;
122
- const e = t.constructor;
123
- if (e === void 0)
124
- return !0;
125
- const s = e.prototype;
126
- return !(!Be(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
127
- }
128
- function Be(t) {
129
- return Object.prototype.toString.call(t) === "[object Object]";
130
- }
131
- function mt(t) {
132
- return new Promise((e) => {
133
- setTimeout(e, t);
134
- });
135
- }
136
- function Oe(t, e, s) {
137
- if (typeof s.structuralSharing == "function")
138
- return s.structuralSharing(t, e);
139
- if (s.structuralSharing !== !1) {
140
- if (process.env.NODE_ENV !== "production")
141
- try {
142
- return Ce(t, e);
143
- } catch (r) {
144
- console.error(
145
- `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}`
146
- );
147
- }
148
- return Ce(t, e);
149
- }
150
- return e;
151
- }
152
- function Yt(t, e, s = 0) {
153
- const r = [...t, e];
154
- return s && r.length > s ? r.slice(1) : r;
155
- }
156
- function es(t, e, s = 0) {
157
- const r = [e, ...t];
158
- return s && r.length > s ? r.slice(0, -1) : r;
159
- }
160
- var ye = Symbol();
161
- function gt(t, e) {
162
- return process.env.NODE_ENV !== "production" && t.queryFn === ye && console.error(
163
- `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
164
- ), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === ye ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
165
- }
166
- var K, q, J, Ze, Rt = (Ze = class extends Qe {
167
- constructor() {
168
- super();
169
- y(this, K);
170
- y(this, q);
171
- y(this, J);
172
- c(this, J, (e) => {
173
- if (!V && window.addEventListener) {
174
- const s = () => e();
175
- return window.addEventListener("visibilitychange", s, !1), () => {
176
- window.removeEventListener("visibilitychange", s);
177
- };
178
- }
179
- });
180
- }
181
- onSubscribe() {
182
- i(this, q) || this.setEventListener(i(this, J));
183
- }
184
- onUnsubscribe() {
185
- var e;
186
- this.hasListeners() || ((e = i(this, q)) == null || e.call(this), c(this, q, void 0));
187
- }
188
- setEventListener(e) {
189
- var s;
190
- c(this, J, e), (s = i(this, q)) == null || s.call(this), c(this, q, e((r) => {
191
- typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
192
- }));
193
- }
194
- setFocused(e) {
195
- i(this, K) !== e && (c(this, K, e), this.onFocus());
196
- }
197
- onFocus() {
198
- const e = this.isFocused();
199
- this.listeners.forEach((s) => {
200
- s(e);
201
- });
202
- }
203
- isFocused() {
204
- var e;
205
- return typeof i(this, K) == "boolean" ? i(this, K) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
206
- }
207
- }, K = new WeakMap(), q = new WeakMap(), J = new WeakMap(), Ze), tt = new Rt(), X, A, Y, We, St = (We = class extends Qe {
208
- constructor() {
209
- super();
210
- y(this, X, !0);
211
- y(this, A);
212
- y(this, Y);
213
- c(this, Y, (e) => {
214
- if (!V && window.addEventListener) {
215
- const s = () => e(!0), r = () => e(!1);
216
- return window.addEventListener("online", s, !1), window.addEventListener("offline", r, !1), () => {
217
- window.removeEventListener("online", s), window.removeEventListener("offline", r);
218
- };
219
- }
220
- });
221
- }
222
- onSubscribe() {
223
- i(this, A) || this.setEventListener(i(this, Y));
224
- }
225
- onUnsubscribe() {
226
- var e;
227
- this.hasListeners() || ((e = i(this, A)) == null || e.call(this), c(this, A, void 0));
228
- }
229
- setEventListener(e) {
230
- var s;
231
- c(this, Y, e), (s = i(this, A)) == null || s.call(this), c(this, A, e(this.setOnline.bind(this)));
232
- }
233
- setOnline(e) {
234
- i(this, X) !== e && (c(this, X, e), this.listeners.forEach((r) => {
235
- r(e);
236
- }));
237
- }
238
- isOnline() {
239
- return i(this, X);
240
- }
241
- }, X = new WeakMap(), A = new WeakMap(), Y = new WeakMap(), We), st = new St();
242
- function Fe() {
243
- let t, e;
244
- const s = new Promise((n, u) => {
245
- t = n, e = u;
246
- });
247
- s.status = "pending", s.catch(() => {
248
- });
249
- function r(n) {
250
- Object.assign(s, n), delete s.resolve, delete s.reject;
251
- }
252
- return s.resolve = (n) => {
253
- r({
254
- status: "fulfilled",
255
- value: n
256
- }), t(n);
257
- }, s.reject = (n) => {
258
- r({
259
- status: "rejected",
260
- reason: n
261
- }), e(n);
262
- }, s;
263
- }
264
- function Ct(t) {
265
- return Math.min(1e3 * 2 ** t, 3e4);
266
- }
267
- function rt(t) {
268
- return (t ?? "online") === "online" ? st.isOnline() : !0;
269
- }
270
- var it = class extends Error {
271
- constructor(t) {
272
- super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
273
- }
274
- };
275
- function me(t) {
276
- return t instanceof it;
277
- }
278
- function wt(t) {
279
- let e = !1, s = 0, r = !1, n;
280
- const u = Fe(), a = (f) => {
281
- var g;
282
- r || (m(new it(f)), (g = t.abort) == null || g.call(t));
283
- }, o = () => {
284
- e = !0;
285
- }, l = () => {
286
- e = !1;
287
- }, R = () => tt.isFocused() && (t.networkMode === "always" || st.isOnline()) && t.canRun(), v = () => rt(t.networkMode) && t.canRun(), h = (f) => {
288
- var g;
289
- r || (r = !0, (g = t.onSuccess) == null || g.call(t, f), n == null || n(), u.resolve(f));
290
- }, m = (f) => {
291
- var g;
292
- r || (r = !0, (g = t.onError) == null || g.call(t, f), n == null || n(), u.reject(f));
293
- }, S = () => new Promise((f) => {
294
- var g;
295
- n = (P) => {
296
- (r || R()) && f(P);
297
- }, (g = t.onPause) == null || g.call(t);
298
- }).then(() => {
299
- var f;
300
- n = void 0, r || (f = t.onContinue) == null || f.call(t);
301
- }), w = () => {
302
- if (r)
303
- return;
304
- let f;
305
- const g = s === 0 ? t.initialPromise : void 0;
306
- try {
307
- f = g ?? t.fn();
308
- } catch (P) {
309
- f = Promise.reject(P);
310
- }
311
- Promise.resolve(f).then(h).catch((P) => {
312
- var ve;
313
- if (r)
314
- return;
315
- const U = t.retry ?? (V ? 0 : 3), N = t.retryDelay ?? Ct, ce = typeof N == "function" ? N(s, P) : N, le = U === !0 || typeof U == "number" && s < U || typeof U == "function" && U(s, P);
316
- if (e || !le) {
317
- m(P);
318
- return;
319
- }
320
- s++, (ve = t.onFail) == null || ve.call(t, s, P), mt(ce).then(() => R() ? void 0 : S()).then(() => {
321
- e ? m(P) : w();
322
- });
323
- });
324
- };
325
- return {
326
- promise: u,
327
- cancel: a,
328
- continue: () => (n == null || n(), u),
329
- cancelRetry: o,
330
- continueRetry: l,
331
- canStart: v,
332
- start: () => (v() ? w() : S().then(w), u)
333
- };
334
- }
335
- function Et() {
336
- let t = [], e = 0, s = (o) => {
337
- o();
338
- }, r = (o) => {
339
- o();
340
- }, n = (o) => setTimeout(o, 0);
341
- const u = (o) => {
342
- e ? t.push(o) : n(() => {
343
- s(o);
344
- });
345
- }, a = () => {
346
- const o = t;
347
- t = [], o.length && n(() => {
348
- r(() => {
349
- o.forEach((l) => {
350
- s(l);
351
- });
352
- });
353
- });
354
- };
355
- return {
356
- batch: (o) => {
357
- let l;
358
- e++;
359
- try {
360
- l = o();
361
- } finally {
362
- e--, e || a();
363
- }
364
- return l;
365
- },
366
- /**
367
- * All calls to the wrapped function will be batched.
368
- */
369
- batchCalls: (o) => (...l) => {
370
- u(() => {
371
- o(...l);
372
- });
373
- },
374
- schedule: u,
375
- /**
376
- * Use this method to set a custom notify function.
377
- * This can be used to for example wrap notifications with `React.act` while running tests.
378
- */
379
- setNotifyFunction: (o) => {
380
- s = o;
381
- },
382
- /**
383
- * Use this method to set a custom function to batch notifications together into a single tick.
384
- * By default React Query will use the batch function provided by ReactDOM or React Native.
385
- */
386
- setBatchNotifyFunction: (o) => {
387
- r = o;
388
- },
389
- setScheduler: (o) => {
390
- n = o;
391
- }
392
- };
393
- }
394
- var Ae = Et(), _, Je, Ot = (Je = class {
395
- constructor() {
396
- y(this, _);
397
- }
398
- destroy() {
399
- this.clearGcTimeout();
400
- }
401
- scheduleGc() {
402
- this.clearGcTimeout(), Re(this.gcTime) && c(this, _, setTimeout(() => {
403
- this.optionalRemove();
404
- }, this.gcTime));
405
- }
406
- updateGcTime(t) {
407
- this.gcTime = Math.max(
408
- this.gcTime || 0,
409
- t ?? (V ? 1 / 0 : 5 * 60 * 1e3)
410
- );
411
- }
412
- clearGcTimeout() {
413
- i(this, _) && (clearTimeout(i(this, _)), c(this, _, void 0));
414
- }
415
- }, _ = new WeakMap(), Je), ee, te, I, C, oe, H, D, Q, Xe, ts = (Xe = class extends Ot {
416
- constructor(e) {
417
- super();
418
- y(this, D);
419
- y(this, ee);
420
- y(this, te);
421
- y(this, I);
422
- y(this, C);
423
- y(this, oe);
424
- y(this, H);
425
- c(this, H, !1), c(this, oe, e.defaultOptions), this.setOptions(e.options), this.observers = [], c(this, I, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, c(this, ee, Ft(this.options)), this.state = e.state ?? i(this, ee), this.scheduleGc();
426
- }
427
- get meta() {
428
- return this.options.meta;
429
- }
430
- get promise() {
431
- var e;
432
- return (e = i(this, C)) == null ? void 0 : e.promise;
433
- }
434
- setOptions(e) {
435
- this.options = { ...i(this, oe), ...e }, this.updateGcTime(this.options.gcTime);
436
- }
437
- optionalRemove() {
438
- !this.observers.length && this.state.fetchStatus === "idle" && i(this, I).remove(this);
439
- }
440
- setData(e, s) {
441
- const r = Oe(this.state.data, e, this.options);
442
- return b(this, D, Q).call(this, {
443
- data: r,
444
- type: "success",
445
- dataUpdatedAt: s == null ? void 0 : s.updatedAt,
446
- manual: s == null ? void 0 : s.manual
447
- }), r;
448
- }
449
- setState(e, s) {
450
- b(this, D, Q).call(this, { type: "setState", state: e, setStateOptions: s });
451
- }
452
- cancel(e) {
453
- var r, n;
454
- const s = (r = i(this, C)) == null ? void 0 : r.promise;
455
- return (n = i(this, C)) == null || n.cancel(e), s ? s.then(ge).catch(ge) : Promise.resolve();
456
- }
457
- destroy() {
458
- super.destroy(), this.cancel({ silent: !0 });
459
- }
460
- reset() {
461
- this.destroy(), this.setState(i(this, ee));
462
- }
463
- isActive() {
464
- return this.observers.some(
465
- (e) => x(e.options.enabled, this) !== !1
466
- );
467
- }
468
- isDisabled() {
469
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === ye || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
470
- }
471
- isStale() {
472
- return this.state.isInvalidated ? !0 : this.getObserversCount() > 0 ? this.observers.some(
473
- (e) => e.getCurrentResult().isStale
474
- ) : this.state.data === void 0;
475
- }
476
- isStaleByTime(e = 0) {
477
- return this.state.isInvalidated || this.state.data === void 0 || !et(this.state.dataUpdatedAt, e);
478
- }
479
- onFocus() {
480
- var s;
481
- const e = this.observers.find((r) => r.shouldFetchOnWindowFocus());
482
- e == null || e.refetch({ cancelRefetch: !1 }), (s = i(this, C)) == null || s.continue();
483
- }
484
- onOnline() {
485
- var s;
486
- const e = this.observers.find((r) => r.shouldFetchOnReconnect());
487
- e == null || e.refetch({ cancelRefetch: !1 }), (s = i(this, C)) == null || s.continue();
488
- }
489
- addObserver(e) {
490
- this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), i(this, I).notify({ type: "observerAdded", query: this, observer: e }));
491
- }
492
- removeObserver(e) {
493
- this.observers.includes(e) && (this.observers = this.observers.filter((s) => s !== e), this.observers.length || (i(this, C) && (i(this, H) ? i(this, C).cancel({ revert: !0 }) : i(this, C).cancelRetry()), this.scheduleGc()), i(this, I).notify({ type: "observerRemoved", query: this, observer: e }));
494
- }
495
- getObserversCount() {
496
- return this.observers.length;
497
- }
498
- invalidate() {
499
- this.state.isInvalidated || b(this, D, Q).call(this, { type: "invalidate" });
500
- }
501
- fetch(e, s) {
502
- var l, R, v;
503
- if (this.state.fetchStatus !== "idle") {
504
- if (this.state.data !== void 0 && (s != null && s.cancelRefetch))
505
- this.cancel({ silent: !0 });
506
- else if (i(this, C))
507
- return i(this, C).continueRetry(), i(this, C).promise;
508
- }
509
- if (e && this.setOptions(e), !this.options.queryFn) {
510
- const h = this.observers.find((m) => m.options.queryFn);
511
- h && this.setOptions(h.options);
512
- }
513
- process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
514
- "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']"
515
- ));
516
- const r = new AbortController(), n = (h) => {
517
- Object.defineProperty(h, "signal", {
518
- enumerable: !0,
519
- get: () => (c(this, H, !0), r.signal)
520
- });
521
- }, u = () => {
522
- const h = gt(this.options, s), m = {
523
- queryKey: this.queryKey,
524
- meta: this.meta
525
- };
526
- return n(m), c(this, H, !1), this.options.persister ? this.options.persister(
527
- h,
528
- m,
529
- this
530
- ) : h(m);
531
- }, a = {
532
- fetchOptions: s,
533
- options: this.options,
534
- queryKey: this.queryKey,
535
- state: this.state,
536
- fetchFn: u
537
- };
538
- n(a), (l = this.options.behavior) == null || l.onFetch(
539
- a,
540
- this
541
- ), c(this, te, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((R = a.fetchOptions) == null ? void 0 : R.meta)) && b(this, D, Q).call(this, { type: "fetch", meta: (v = a.fetchOptions) == null ? void 0 : v.meta });
542
- const o = (h) => {
543
- var m, S, w, f;
544
- me(h) && h.silent || b(this, D, Q).call(this, {
545
- type: "error",
546
- error: h
547
- }), me(h) || ((S = (m = i(this, I).config).onError) == null || S.call(
548
- m,
549
- h,
550
- this
551
- ), (f = (w = i(this, I).config).onSettled) == null || f.call(
552
- w,
553
- this.state.data,
554
- h,
555
- this
556
- )), this.scheduleGc();
557
- };
558
- return c(this, C, wt({
559
- initialPromise: s == null ? void 0 : s.initialPromise,
560
- fn: a.fetchFn,
561
- abort: r.abort.bind(r),
562
- onSuccess: (h) => {
563
- var m, S, w, f;
564
- if (h === void 0) {
565
- process.env.NODE_ENV !== "production" && console.error(
566
- `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
567
- ), o(new Error(`${this.queryHash} data is undefined`));
568
- return;
569
- }
570
- try {
571
- this.setData(h);
572
- } catch (g) {
573
- o(g);
574
- return;
575
- }
576
- (S = (m = i(this, I).config).onSuccess) == null || S.call(m, h, this), (f = (w = i(this, I).config).onSettled) == null || f.call(
577
- w,
578
- h,
579
- this.state.error,
580
- this
581
- ), this.scheduleGc();
582
- },
583
- onError: o,
584
- onFail: (h, m) => {
585
- b(this, D, Q).call(this, { type: "failed", failureCount: h, error: m });
586
- },
587
- onPause: () => {
588
- b(this, D, Q).call(this, { type: "pause" });
589
- },
590
- onContinue: () => {
591
- b(this, D, Q).call(this, { type: "continue" });
592
- },
593
- retry: a.options.retry,
594
- retryDelay: a.options.retryDelay,
595
- networkMode: a.options.networkMode,
596
- canRun: () => !0
597
- })), i(this, C).start();
598
- }
599
- }, ee = new WeakMap(), te = new WeakMap(), I = new WeakMap(), C = new WeakMap(), oe = new WeakMap(), H = new WeakMap(), D = new WeakSet(), Q = function(e) {
600
- const s = (r) => {
601
- switch (e.type) {
602
- case "failed":
603
- return {
604
- ...r,
605
- fetchFailureCount: e.failureCount,
606
- fetchFailureReason: e.error
607
- };
608
- case "pause":
609
- return {
610
- ...r,
611
- fetchStatus: "paused"
612
- };
613
- case "continue":
614
- return {
615
- ...r,
616
- fetchStatus: "fetching"
617
- };
618
- case "fetch":
619
- return {
620
- ...r,
621
- ...nt(r.data, this.options),
622
- fetchMeta: e.meta ?? null
623
- };
624
- case "success":
625
- return {
626
- ...r,
627
- data: e.data,
628
- dataUpdateCount: r.dataUpdateCount + 1,
629
- dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
630
- error: null,
631
- isInvalidated: !1,
632
- status: "success",
633
- ...!e.manual && {
634
- fetchStatus: "idle",
635
- fetchFailureCount: 0,
636
- fetchFailureReason: null
637
- }
638
- };
639
- case "error":
640
- const n = e.error;
641
- return me(n) && n.revert && i(this, te) ? { ...i(this, te), fetchStatus: "idle" } : {
642
- ...r,
643
- error: n,
644
- errorUpdateCount: r.errorUpdateCount + 1,
645
- errorUpdatedAt: Date.now(),
646
- fetchFailureCount: r.fetchFailureCount + 1,
647
- fetchFailureReason: n,
648
- fetchStatus: "idle",
649
- status: "error"
650
- };
651
- case "invalidate":
652
- return {
653
- ...r,
654
- isInvalidated: !0
655
- };
656
- case "setState":
657
- return {
658
- ...r,
659
- ...e.state
660
- };
661
- }
662
- };
663
- this.state = s(this.state), Ae.batch(() => {
664
- this.observers.forEach((r) => {
665
- r.onQueryUpdate();
666
- }), i(this, I).notify({ query: this, type: "updated", action: e });
667
- });
668
- }, Xe);
669
- function nt(t, e) {
670
- return {
671
- fetchFailureCount: 0,
672
- fetchFailureReason: null,
673
- fetchStatus: rt(e.networkMode) ? "fetching" : "paused",
674
- ...t === void 0 && {
675
- error: null,
676
- status: "pending"
677
- }
678
- };
679
- }
680
- function Ft(t) {
681
- const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, s = e !== void 0, r = s ? typeof t.initialDataUpdatedAt == "function" ? t.initialDataUpdatedAt() : t.initialDataUpdatedAt : 0;
682
- return {
683
- data: e,
684
- dataUpdateCount: 0,
685
- dataUpdatedAt: s ? r ?? Date.now() : 0,
686
- error: null,
687
- errorUpdateCount: 0,
688
- errorUpdatedAt: 0,
689
- fetchFailureCount: 0,
690
- fetchFailureReason: null,
691
- fetchMeta: null,
692
- isInvalidated: !1,
693
- status: s ? "success" : "pending",
694
- fetchStatus: "idle"
695
- };
696
- }
697
- var F, d, ue, O, B, se, L, k, he, re, ie, G, z, M, ne, p, ae, Pe, Ie, Te, De, xe, je, ke, ot, Ye, at = (Ye = class extends Qe {
698
- constructor(e, s) {
699
- super();
700
- y(this, p);
701
- y(this, F);
702
- y(this, d);
703
- y(this, ue);
704
- y(this, O);
705
- y(this, B);
706
- y(this, se);
707
- y(this, L);
708
- y(this, k);
709
- y(this, he);
710
- y(this, re);
711
- // This property keeps track of the last query with defined data.
712
- // It will be used to pass the previous data and query to the placeholder function between renders.
713
- y(this, ie);
714
- y(this, G);
715
- y(this, z);
716
- y(this, M);
717
- y(this, ne, /* @__PURE__ */ new Set());
718
- this.options = s, c(this, F, e), c(this, k, null), c(this, L, Fe()), this.options.experimental_prefetchInRender || i(this, L).reject(
719
- new Error("experimental_prefetchInRender feature flag is not enabled")
720
- ), this.bindMethods(), this.setOptions(s);
721
- }
722
- bindMethods() {
723
- this.refetch = this.refetch.bind(this);
724
- }
725
- onSubscribe() {
726
- this.listeners.size === 1 && (i(this, d).addObserver(this), Ge(i(this, d), this.options) ? b(this, p, ae).call(this) : this.updateResult(), b(this, p, De).call(this));
727
- }
728
- onUnsubscribe() {
729
- this.hasListeners() || this.destroy();
730
- }
731
- shouldFetchOnReconnect() {
732
- return Ue(
733
- i(this, d),
734
- this.options,
735
- this.options.refetchOnReconnect
736
- );
737
- }
738
- shouldFetchOnWindowFocus() {
739
- return Ue(
740
- i(this, d),
741
- this.options,
742
- this.options.refetchOnWindowFocus
743
- );
744
- }
745
- destroy() {
746
- this.listeners = /* @__PURE__ */ new Set(), b(this, p, xe).call(this), b(this, p, je).call(this), i(this, d).removeObserver(this);
747
- }
748
- setOptions(e, s) {
749
- const r = this.options, n = i(this, d);
750
- if (this.options = i(this, F).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof x(this.options.enabled, i(this, d)) != "boolean")
751
- throw new Error(
752
- "Expected enabled to be a boolean or a callback that returns a boolean"
753
- );
754
- b(this, p, ke).call(this), i(this, d).setOptions(this.options), r._defaulted && !we(this.options, r) && i(this, F).getQueryCache().notify({
755
- type: "observerOptionsUpdated",
756
- query: i(this, d),
757
- observer: this
758
- });
759
- const u = this.hasListeners();
760
- u && ze(
761
- i(this, d),
762
- n,
763
- this.options,
764
- r
765
- ) && b(this, p, ae).call(this), this.updateResult(s), u && (i(this, d) !== n || x(this.options.enabled, i(this, d)) !== x(r.enabled, i(this, d)) || fe(this.options.staleTime, i(this, d)) !== fe(r.staleTime, i(this, d))) && b(this, p, Pe).call(this);
766
- const a = b(this, p, Ie).call(this);
767
- u && (i(this, d) !== n || x(this.options.enabled, i(this, d)) !== x(r.enabled, i(this, d)) || a !== i(this, M)) && b(this, p, Te).call(this, a);
768
- }
769
- getOptimisticResult(e) {
770
- const s = i(this, F).getQueryCache().build(i(this, F), e), r = this.createResult(s, e);
771
- return It(this, r) && (c(this, O, r), c(this, se, this.options), c(this, B, i(this, d).state)), r;
772
- }
773
- getCurrentResult() {
774
- return i(this, O);
775
- }
776
- trackResult(e, s) {
777
- const r = {};
778
- return Object.keys(e).forEach((n) => {
779
- Object.defineProperty(r, n, {
780
- configurable: !1,
781
- enumerable: !0,
782
- get: () => (this.trackProp(n), s == null || s(n), e[n])
783
- });
784
- }), r;
785
- }
786
- trackProp(e) {
787
- i(this, ne).add(e);
788
- }
789
- getCurrentQuery() {
790
- return i(this, d);
791
- }
792
- refetch({ ...e } = {}) {
793
- return this.fetch({
794
- ...e
795
- });
796
- }
797
- fetchOptimistic(e) {
798
- const s = i(this, F).defaultQueryOptions(e), r = i(this, F).getQueryCache().build(i(this, F), s);
799
- return r.fetch().then(() => this.createResult(r, s));
800
- }
801
- fetch(e) {
802
- return b(this, p, ae).call(this, {
803
- ...e,
804
- cancelRefetch: e.cancelRefetch ?? !0
805
- }).then(() => (this.updateResult(), i(this, O)));
806
- }
807
- createResult(e, s) {
808
- var Ke;
809
- const r = i(this, d), n = this.options, u = i(this, O), a = i(this, B), o = i(this, se), R = e !== r ? e.state : i(this, ue), { state: v } = e;
810
- let h = { ...v }, m = !1, S;
811
- if (s._optimisticResults) {
812
- const E = this.hasListeners(), Z = !E && Ge(e, s), W = E && ze(e, r, s, n);
813
- (Z || W) && (h = {
814
- ...h,
815
- ...nt(v.data, e.options)
816
- }), s._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
817
- }
818
- let { error: w, errorUpdatedAt: f, status: g } = h;
819
- if (s.select && h.data !== void 0)
820
- if (u && h.data === (a == null ? void 0 : a.data) && s.select === i(this, he))
821
- S = i(this, re);
822
- else
823
- try {
824
- c(this, he, s.select), S = s.select(h.data), S = Oe(u == null ? void 0 : u.data, S, s), c(this, re, S), c(this, k, null);
825
- } catch (E) {
826
- c(this, k, E);
827
- }
828
- else
829
- S = h.data;
830
- if (s.placeholderData !== void 0 && S === void 0 && g === "pending") {
831
- let E;
832
- if (u != null && u.isPlaceholderData && s.placeholderData === (o == null ? void 0 : o.placeholderData))
833
- E = u.data;
834
- else if (E = typeof s.placeholderData == "function" ? s.placeholderData(
835
- (Ke = i(this, ie)) == null ? void 0 : Ke.state.data,
836
- i(this, ie)
837
- ) : s.placeholderData, s.select && E !== void 0)
838
- try {
839
- E = s.select(E), c(this, k, null);
840
- } catch (Z) {
841
- c(this, k, Z);
842
- }
843
- E !== void 0 && (g = "success", S = Oe(
844
- u == null ? void 0 : u.data,
845
- E,
846
- s
847
- ), m = !0);
848
- }
849
- i(this, k) && (w = i(this, k), S = i(this, re), f = Date.now(), g = "error");
850
- const P = h.fetchStatus === "fetching", U = g === "pending", N = g === "error", ce = U && P, le = S !== void 0, j = {
851
- status: g,
852
- fetchStatus: h.fetchStatus,
853
- isPending: U,
854
- isSuccess: g === "success",
855
- isError: N,
856
- isInitialLoading: ce,
857
- isLoading: ce,
858
- data: S,
859
- dataUpdatedAt: h.dataUpdatedAt,
860
- error: w,
861
- errorUpdatedAt: f,
862
- failureCount: h.fetchFailureCount,
863
- failureReason: h.fetchFailureReason,
864
- errorUpdateCount: h.errorUpdateCount,
865
- isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
866
- isFetchedAfterMount: h.dataUpdateCount > R.dataUpdateCount || h.errorUpdateCount > R.errorUpdateCount,
867
- isFetching: P,
868
- isRefetching: P && !U,
869
- isLoadingError: N && !le,
870
- isPaused: h.fetchStatus === "paused",
871
- isPlaceholderData: m,
872
- isRefetchError: N && le,
873
- isStale: Le(e, s),
874
- refetch: this.refetch,
875
- promise: i(this, L)
876
- };
877
- if (this.options.experimental_prefetchInRender) {
878
- const E = (de) => {
879
- j.status === "error" ? de.reject(j.error) : j.data !== void 0 && de.resolve(j.data);
880
- }, Z = () => {
881
- const de = c(this, L, j.promise = Fe());
882
- E(de);
883
- }, W = i(this, L);
884
- switch (W.status) {
885
- case "pending":
886
- e.queryHash === r.queryHash && E(W);
887
- break;
888
- case "fulfilled":
889
- (j.status === "error" || j.data !== W.value) && Z();
890
- break;
891
- case "rejected":
892
- (j.status !== "error" || j.error !== W.reason) && Z();
893
- break;
894
- }
895
- }
896
- return j;
897
- }
898
- updateResult(e) {
899
- const s = i(this, O), r = this.createResult(i(this, d), this.options);
900
- if (c(this, B, i(this, d).state), c(this, se, this.options), i(this, B).data !== void 0 && c(this, ie, i(this, d)), we(r, s))
901
- return;
902
- c(this, O, r);
903
- const n = {}, u = () => {
904
- if (!s)
905
- return !0;
906
- const { notifyOnChangeProps: a } = this.options, o = typeof a == "function" ? a() : a;
907
- if (o === "all" || !o && !i(this, ne).size)
908
- return !0;
909
- const l = new Set(
910
- o ?? i(this, ne)
911
- );
912
- return this.options.throwOnError && l.add("error"), Object.keys(i(this, O)).some((R) => {
913
- const v = R;
914
- return i(this, O)[v] !== s[v] && l.has(v);
915
- });
916
- };
917
- (e == null ? void 0 : e.listeners) !== !1 && u() && (n.listeners = !0), b(this, p, ot).call(this, { ...n, ...e });
918
- }
919
- onQueryUpdate() {
920
- this.updateResult(), this.hasListeners() && b(this, p, De).call(this);
921
- }
922
- }, F = new WeakMap(), d = new WeakMap(), ue = new WeakMap(), O = new WeakMap(), B = new WeakMap(), se = new WeakMap(), L = new WeakMap(), k = new WeakMap(), he = new WeakMap(), re = new WeakMap(), ie = new WeakMap(), G = new WeakMap(), z = new WeakMap(), M = new WeakMap(), ne = new WeakMap(), p = new WeakSet(), ae = function(e) {
923
- b(this, p, ke).call(this);
924
- let s = i(this, d).fetch(
925
- this.options,
926
- e
927
- );
928
- return e != null && e.throwOnError || (s = s.catch(ge)), s;
929
- }, Pe = function() {
930
- b(this, p, xe).call(this);
931
- const e = fe(
932
- this.options.staleTime,
933
- i(this, d)
934
- );
935
- if (V || i(this, O).isStale || !Re(e))
936
- return;
937
- const r = et(i(this, O).dataUpdatedAt, e) + 1;
938
- c(this, G, setTimeout(() => {
939
- i(this, O).isStale || this.updateResult();
940
- }, r));
941
- }, Ie = function() {
942
- return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(i(this, d)) : this.options.refetchInterval) ?? !1;
943
- }, Te = function(e) {
944
- b(this, p, je).call(this), c(this, M, e), !(V || x(this.options.enabled, i(this, d)) === !1 || !Re(i(this, M)) || i(this, M) === 0) && c(this, z, setInterval(() => {
945
- (this.options.refetchIntervalInBackground || tt.isFocused()) && b(this, p, ae).call(this);
946
- }, i(this, M)));
947
- }, De = function() {
948
- b(this, p, Pe).call(this), b(this, p, Te).call(this, b(this, p, Ie).call(this));
949
- }, xe = function() {
950
- i(this, G) && (clearTimeout(i(this, G)), c(this, G, void 0));
951
- }, je = function() {
952
- i(this, z) && (clearInterval(i(this, z)), c(this, z, void 0));
953
- }, ke = function() {
954
- const e = i(this, F).getQueryCache().build(i(this, F), this.options);
955
- if (e === i(this, d))
956
- return;
957
- const s = i(this, d);
958
- c(this, d, e), c(this, ue, e.state), this.hasListeners() && (s == null || s.removeObserver(this), e.addObserver(this));
959
- }, ot = function(e) {
960
- Ae.batch(() => {
961
- e.listeners && this.listeners.forEach((s) => {
962
- s(i(this, O));
963
- }), i(this, F).getQueryCache().notify({
964
- query: i(this, d),
965
- type: "observerResultsUpdated"
966
- });
967
- });
968
- }, Ye);
969
- function Pt(t, e) {
970
- return x(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
971
- }
972
- function Ge(t, e) {
973
- return Pt(t, e) || t.state.data !== void 0 && Ue(t, e, e.refetchOnMount);
974
- }
975
- function Ue(t, e, s) {
976
- if (x(e.enabled, t) !== !1) {
977
- const r = typeof s == "function" ? s(t) : s;
978
- return r === "always" || r !== !1 && Le(t, e);
979
- }
980
- return !1;
981
- }
982
- function ze(t, e, s, r) {
983
- return (t !== e || x(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && Le(t, s);
984
- }
985
- function Le(t, e) {
986
- return x(e.enabled, t) !== !1 && t.isStaleByTime(fe(e.staleTime, t));
987
- }
988
- function It(t, e) {
989
- return !we(t.getCurrentResult(), e);
990
- }
991
- var ut = T.createContext(
992
- void 0
993
- ), Tt = (t) => {
994
- const e = T.useContext(ut);
995
- if (t)
996
- return t;
997
- if (!e)
998
- throw new Error("No QueryClient set, use QueryClientProvider to set one");
999
- return e;
1000
- }, ss = ({
1001
- client: t,
1002
- children: e
1003
- }) => (T.useEffect(() => (t.mount(), () => {
1004
- t.unmount();
1005
- }), [t]), /* @__PURE__ */ pt.jsx(ut.Provider, { value: t, children: e })), ht = T.createContext(!1), Dt = () => T.useContext(ht);
1006
- ht.Provider;
1007
- function xt() {
1008
- let t = !1;
1009
- return {
1010
- clearReset: () => {
1011
- t = !1;
1012
- },
1013
- reset: () => {
1014
- t = !0;
1015
- },
1016
- isReset: () => t
1017
- };
1018
- }
1019
- var jt = T.createContext(xt()), kt = () => T.useContext(jt);
1020
- function Ut(t, e) {
1021
- return typeof t == "function" ? t(...e) : !!t;
1022
- }
1023
- function Ve() {
1024
- }
1025
- var Qt = (t, e) => {
1026
- (t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
1027
- }, qt = (t) => {
1028
- T.useEffect(() => {
1029
- t.clearReset();
1030
- }, [t]);
1031
- }, At = ({
1032
- result: t,
1033
- errorResetBoundary: e,
1034
- throwOnError: s,
1035
- query: r
1036
- }) => t.isError && !e.isReset() && !t.isFetching && r && Ut(s, [t.error, r]), Lt = (t, e) => e.state.data === void 0, Mt = (t) => {
1037
- t.suspense && (t.staleTime === void 0 && (t.staleTime = 1e3), typeof t.gcTime == "number" && (t.gcTime = Math.max(t.gcTime, 1e3)));
1038
- }, Nt = (t, e) => t.isLoading && t.isFetching && !e, Kt = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending, $e = (t, e, s) => e.fetchOptimistic(t).catch(() => {
1039
- s.clearReset();
1040
- });
1041
- function ct(t, e, s) {
1042
- var v, h, m, S, w;
1043
- if (process.env.NODE_ENV !== "production" && (typeof t != "object" || Array.isArray(t)))
1044
- throw new Error(
1045
- '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'
1046
- );
1047
- const r = Tt(s), n = Dt(), u = kt(), a = r.defaultQueryOptions(t);
1048
- (h = (v = r.getDefaultOptions().queries) == null ? void 0 : v._experimental_beforeQuery) == null || h.call(
1049
- v,
1050
- a
1051
- ), a._optimisticResults = n ? "isRestoring" : "optimistic", Mt(a), Qt(a, u), qt(u);
1052
- const o = !r.getQueryCache().get(a.queryHash), [l] = T.useState(
1053
- () => new e(
1054
- r,
1055
- a
1056
- )
1057
- ), R = l.getOptimisticResult(a);
1058
- if (T.useSyncExternalStore(
1059
- T.useCallback(
1060
- (f) => {
1061
- const g = n ? Ve : l.subscribe(Ae.batchCalls(f));
1062
- return l.updateResult(), g;
1063
- },
1064
- [l, n]
1065
- ),
1066
- () => l.getCurrentResult(),
1067
- () => l.getCurrentResult()
1068
- ), T.useEffect(() => {
1069
- l.setOptions(a, { listeners: !1 });
1070
- }, [a, l]), Kt(a, R))
1071
- throw $e(a, l, u);
1072
- if (At({
1073
- result: R,
1074
- errorResetBoundary: u,
1075
- throwOnError: a.throwOnError,
1076
- query: r.getQueryCache().get(a.queryHash)
1077
- }))
1078
- throw R.error;
1079
- if ((S = (m = r.getDefaultOptions().queries) == null ? void 0 : m._experimental_afterQuery) == null || S.call(
1080
- m,
1081
- a,
1082
- R
1083
- ), a.experimental_prefetchInRender && !V && Nt(R, n)) {
1084
- const f = o ? (
1085
- // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1086
- $e(a, l, u)
1087
- ) : (
1088
- // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
1089
- (w = r.getQueryCache().get(a.queryHash)) == null ? void 0 : w.promise
1090
- );
1091
- f == null || f.catch(Ve).finally(() => {
1092
- l.updateResult();
1093
- });
1094
- }
1095
- return a.notifyOnChangeProps ? R : l.trackResult(R);
1096
- }
1097
- function _t(t, e) {
1098
- return ct(t, at, e);
1099
- }
1100
- function Ht(t, e) {
1101
- return process.env.NODE_ENV !== "production" && t.queryFn === ye && console.error("skipToken is not allowed for useSuspenseQuery"), ct(
1102
- {
1103
- ...t,
1104
- enabled: !0,
1105
- suspense: !0,
1106
- throwOnError: Lt,
1107
- placeholderData: void 0
1108
- },
1109
- at,
1110
- e
1111
- );
1112
- }
1113
- const $ = (...t) => {
1114
- const e = t.filter((s) => !!s).map((s) => s.replace(/(^\/+|\/+$)/g, "")).join("/").replace(/(^\/+|\/+$)/g, "");
1115
- return e ? `/${e}` : "/";
1116
- }, Bt = ft(
1117
- void 0
1118
- ), lt = () => {
1119
- const t = yt(Bt);
1120
- if (!t)
1121
- throw new Error("useZudoku must be used within a ZudokuProvider.");
1122
- return t;
1123
- }, rs = () => {
1124
- const { getApiIdentities: t } = lt();
1125
- return _t({
1126
- queryFn: t,
1127
- queryKey: ["api-identities"]
1128
- });
1129
- }, dt = () => {
1130
- const { getPluginSidebar: t, sidebars: e, topNavigation: s } = lt(), r = pe(), n = Object.entries(e).find(([, o]) => Me(o, (l) => {
1131
- if ((l.type === "doc" ? $(l.id) : l.type === "category" && l.link ? $(l.link.id) : void 0) === r.pathname)
1132
- return l;
1133
- })), u = s.find((o) => o.id === (n == null ? void 0 : n[0])) ?? s.find((o) => vt(o.id, r.pathname)), { data: a } = Ht({
1134
- queryFn: () => t(r.pathname),
1135
- queryKey: ["plugin-sidebar", r.pathname]
1136
- });
1137
- return {
1138
- sidebar: [...n ? n[1] : [], ...a],
1139
- topNavItem: u
1140
- };
1141
- }, Me = (t, e) => {
1142
- for (const s of t) {
1143
- const r = Ne(s, e);
1144
- if (r !== void 0) return r;
1145
- }
1146
- }, Ne = (t, e, s = []) => {
1147
- const r = e(t, s);
1148
- if (r !== void 0) return r;
1149
- if (t.type === "category")
1150
- for (const n of t.items) {
1151
- const u = Ne(n, e, [
1152
- ...s,
1153
- t
1154
- ]);
1155
- if (u !== void 0) return u;
1156
- }
1157
- }, is = () => {
1158
- const t = pe(), s = dt().sidebar;
1159
- return Me(s, (r) => {
1160
- if (r.type === "doc" && $(r.id) === t.pathname)
1161
- return r;
1162
- });
1163
- }, ns = (t) => {
1164
- const e = pe();
1165
- return Ne(t, (s) => {
1166
- if (s.type === "category" && s.link && $(s.link.id) === e.pathname || s.type === "doc" && $(s.id) === e.pathname)
1167
- return !0;
1168
- });
1169
- }, as = () => {
1170
- const t = pe().pathname, s = dt().sidebar;
1171
- let r, n, u = !1;
1172
- return Me(s, (a) => {
1173
- const o = a.type === "doc" ? $(a.id) : a.type === "category" && a.link ? $(a.link.id) : void 0;
1174
- if (o) {
1175
- if (u)
1176
- return n = { label: a.label, id: o }, !0;
1177
- t === o ? u = !0 : r = { label: a.label, id: o };
1178
- }
1179
- }), { prev: r, next: n };
1180
- };
1181
- export {
1182
- ye as A,
1183
- ss as B,
1184
- ns as C,
1185
- dt as D,
1186
- Me as E,
1187
- ts as Q,
1188
- Ot as R,
1189
- Qe as S,
1190
- Bt as Z,
1191
- is as a,
1192
- as as b,
1193
- wt as c,
1194
- Tt as d,
1195
- Ve as e,
1196
- Ut as f,
1197
- Ht as g,
1198
- Se as h,
1199
- rs as i,
1200
- $ as j,
1201
- _t as k,
1202
- bt as l,
1203
- Jt as m,
1204
- Ae as n,
1205
- Xt as o,
1206
- ge as p,
1207
- gt as q,
1208
- es as r,
1209
- we as s,
1210
- Yt as t,
1211
- lt as u,
1212
- tt as v,
1213
- st as w,
1214
- fe as x,
1215
- Wt as y,
1216
- qe as z
1217
- };
1218
- //# sourceMappingURL=utils-DcpDOncX.js.map