zudoku 0.0.0-fed343e → 0.0.0-feda542

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