zudoku 0.0.0-f01b653 → 0.0.0-f0602bf

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