zudoku 0.0.0-fdf886de → 0.0.0-fe92c9e1

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 (1220) hide show
  1. package/README.md +32 -12
  2. package/cli.js +1 -0
  3. package/client.d.ts +8 -0
  4. package/dist/app/ZuploBuildConfig.d.ts +1 -1
  5. package/dist/app/ZuploBuildConfig.js +1 -1
  6. package/dist/app/ZuploBuildConfig.js.map +1 -1
  7. package/dist/app/entry.client.js +5 -4
  8. package/dist/app/entry.client.js.map +1 -1
  9. package/dist/app/entry.server.js +16 -3
  10. package/dist/app/entry.server.js.map +1 -1
  11. package/dist/app/env.js +6 -6
  12. package/dist/app/env.js.map +1 -1
  13. package/dist/app/main.d.ts +91 -1
  14. package/dist/app/main.js +5 -1
  15. package/dist/app/main.js.map +1 -1
  16. package/dist/app/standalone.js +4 -1
  17. package/dist/app/standalone.js.map +1 -1
  18. package/dist/cli/cli.d.ts +9 -0
  19. package/dist/cli/cli.js +5 -10
  20. package/dist/cli/cli.js.map +1 -1
  21. package/dist/cli/cmds/build.d.ts +1 -1
  22. package/dist/cli/cmds/dev.d.ts +1 -1
  23. package/dist/cli/cmds/preview.d.ts +1 -1
  24. package/dist/cli/common/analytics/lib.js +1 -1
  25. package/dist/cli/common/analytics/lib.js.map +1 -1
  26. package/dist/cli/common/logger.js +0 -1
  27. package/dist/cli/common/logger.js.map +1 -1
  28. package/dist/cli/common/machine-id/lib.js +3 -2
  29. package/dist/cli/common/machine-id/lib.js.map +1 -1
  30. package/dist/cli/common/outdated.js +2 -1
  31. package/dist/cli/common/outdated.js.map +1 -1
  32. package/dist/cli/common/output.js +2 -3
  33. package/dist/cli/common/output.js.map +1 -1
  34. package/dist/cli/common/utils/box.js +2 -2
  35. package/dist/cli/common/utils/box.js.map +1 -1
  36. package/dist/cli/common/validators/lib.js +1 -1
  37. package/dist/cli/common/validators/lib.js.map +1 -1
  38. package/dist/cli/common/version-check.d.ts +2 -0
  39. package/dist/cli/common/version-check.js +58 -0
  40. package/dist/cli/common/version-check.js.map +1 -0
  41. package/dist/cli/dev/handler.js +0 -4
  42. package/dist/cli/dev/handler.js.map +1 -1
  43. package/dist/codegen.js +2 -2
  44. package/dist/codegen.js.map +1 -1
  45. package/dist/config/config.d.ts +15 -41
  46. package/dist/config/loader.js.map +1 -1
  47. package/dist/config/validators/BuildSchema.d.ts +16 -8
  48. package/dist/config/validators/BuildSchema.js +22 -5
  49. package/dist/config/validators/BuildSchema.js.map +1 -1
  50. package/dist/config/validators/InputNavigationSchema.d.ts +260 -78
  51. package/dist/config/validators/InputNavigationSchema.js +5 -2
  52. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  53. package/dist/config/validators/InputNavigationSchema.test-d.js +2 -1
  54. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -1
  55. package/dist/config/validators/NavigationSchema.d.ts +1 -1
  56. package/dist/config/validators/NavigationSchema.js +2 -2
  57. package/dist/config/validators/NavigationSchema.js.map +1 -1
  58. package/dist/config/validators/ProtectedRoutesSchema.d.ts +2 -2
  59. package/dist/config/validators/ProtectedRoutesSchema.js +1 -1
  60. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -1
  61. package/dist/config/validators/auth.d.ts +2 -2
  62. package/dist/config/validators/auth.js +1 -1
  63. package/dist/config/validators/auth.js.map +1 -1
  64. package/dist/config/validators/icon-types.d.ts +1 -1
  65. package/dist/config/validators/icon-types.js +43 -0
  66. package/dist/config/validators/icon-types.js.map +1 -1
  67. package/dist/config/validators/validate.d.ts +202 -20
  68. package/dist/config/validators/validate.js +70 -11
  69. package/dist/config/validators/validate.js.map +1 -1
  70. package/dist/config/validators/validate.test.js +1 -2
  71. package/dist/config/validators/validate.test.js.map +1 -1
  72. package/dist/flat-config.d.ts +52 -3
  73. package/dist/index.d.ts +5 -5
  74. package/dist/index.js +2 -2
  75. package/dist/index.js.map +1 -1
  76. package/dist/lib/MissingIcon.d.ts +1 -1
  77. package/dist/lib/MissingIcon.js.map +1 -1
  78. package/dist/lib/assets/language-icons/c.d.ts +3 -0
  79. package/dist/lib/assets/language-icons/c.js +4 -0
  80. package/dist/lib/assets/language-icons/c.js.map +1 -0
  81. package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
  82. package/dist/lib/assets/language-icons/commonlisp.js +4 -0
  83. package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
  84. package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
  85. package/dist/lib/assets/language-icons/cpp.js +4 -0
  86. package/dist/lib/assets/language-icons/cpp.js.map +1 -0
  87. package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
  88. package/dist/lib/assets/language-icons/csharp.js +4 -0
  89. package/dist/lib/assets/language-icons/csharp.js.map +1 -0
  90. package/dist/lib/assets/language-icons/css.d.ts +3 -0
  91. package/dist/lib/assets/language-icons/css.js +4 -0
  92. package/dist/lib/assets/language-icons/css.js.map +1 -0
  93. package/dist/lib/assets/language-icons/dart.d.ts +3 -0
  94. package/dist/lib/assets/language-icons/dart.js +4 -0
  95. package/dist/lib/assets/language-icons/dart.js.map +1 -0
  96. package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
  97. package/dist/lib/assets/language-icons/elixir.js +4 -0
  98. package/dist/lib/assets/language-icons/elixir.js.map +1 -0
  99. package/dist/lib/assets/language-icons/go.d.ts +3 -0
  100. package/dist/lib/assets/language-icons/go.js +4 -0
  101. package/dist/lib/assets/language-icons/go.js.map +1 -0
  102. package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
  103. package/dist/lib/assets/language-icons/graphql.js +4 -0
  104. package/dist/lib/assets/language-icons/graphql.js.map +1 -0
  105. package/dist/lib/assets/language-icons/html.d.ts +3 -0
  106. package/dist/lib/assets/language-icons/html.js +4 -0
  107. package/dist/lib/assets/language-icons/html.js.map +1 -0
  108. package/dist/lib/assets/language-icons/java.d.ts +3 -0
  109. package/dist/lib/assets/language-icons/java.js +4 -0
  110. package/dist/lib/assets/language-icons/java.js.map +1 -0
  111. package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
  112. package/dist/lib/assets/language-icons/javascript.js +4 -0
  113. package/dist/lib/assets/language-icons/javascript.js.map +1 -0
  114. package/dist/lib/assets/language-icons/json.d.ts +3 -0
  115. package/dist/lib/assets/language-icons/json.js +4 -0
  116. package/dist/lib/assets/language-icons/json.js.map +1 -0
  117. package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
  118. package/dist/lib/assets/language-icons/kotlin.js +4 -0
  119. package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
  120. package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
  121. package/dist/lib/assets/language-icons/markdown.js +4 -0
  122. package/dist/lib/assets/language-icons/markdown.js.map +1 -0
  123. package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
  124. package/dist/lib/assets/language-icons/mdx.js +4 -0
  125. package/dist/lib/assets/language-icons/mdx.js.map +1 -0
  126. package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
  127. package/dist/lib/assets/language-icons/objectivec.js +4 -0
  128. package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
  129. package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
  130. package/dist/lib/assets/language-icons/ocaml.js +4 -0
  131. package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
  132. package/dist/lib/assets/language-icons/php.d.ts +3 -0
  133. package/dist/lib/assets/language-icons/php.js +4 -0
  134. package/dist/lib/assets/language-icons/php.js.map +1 -0
  135. package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
  136. package/dist/lib/assets/language-icons/powershell.js +4 -0
  137. package/dist/lib/assets/language-icons/powershell.js.map +1 -0
  138. package/dist/lib/assets/language-icons/python.d.ts +3 -0
  139. package/dist/lib/assets/language-icons/python.js +4 -0
  140. package/dist/lib/assets/language-icons/python.js.map +1 -0
  141. package/dist/lib/assets/language-icons/react.d.ts +3 -0
  142. package/dist/lib/assets/language-icons/react.js +4 -0
  143. package/dist/lib/assets/language-icons/react.js.map +1 -0
  144. package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
  145. package/dist/lib/assets/language-icons/ruby.js +4 -0
  146. package/dist/lib/assets/language-icons/ruby.js.map +1 -0
  147. package/dist/lib/assets/language-icons/rust.d.ts +3 -0
  148. package/dist/lib/assets/language-icons/rust.js +4 -0
  149. package/dist/lib/assets/language-icons/rust.js.map +1 -0
  150. package/dist/lib/assets/language-icons/scala.d.ts +3 -0
  151. package/dist/lib/assets/language-icons/scala.js +4 -0
  152. package/dist/lib/assets/language-icons/scala.js.map +1 -0
  153. package/dist/lib/assets/language-icons/shell.d.ts +3 -0
  154. package/dist/lib/assets/language-icons/shell.js +4 -0
  155. package/dist/lib/assets/language-icons/shell.js.map +1 -0
  156. package/dist/lib/assets/language-icons/swift.d.ts +3 -0
  157. package/dist/lib/assets/language-icons/swift.js +4 -0
  158. package/dist/lib/assets/language-icons/swift.js.map +1 -0
  159. package/dist/lib/assets/language-icons/toml.d.ts +3 -0
  160. package/dist/lib/assets/language-icons/toml.js +4 -0
  161. package/dist/lib/assets/language-icons/toml.js.map +1 -0
  162. package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
  163. package/dist/lib/assets/language-icons/typescript.js +4 -0
  164. package/dist/lib/assets/language-icons/typescript.js.map +1 -0
  165. package/dist/lib/assets/language-icons/xml.d.ts +3 -0
  166. package/dist/lib/assets/language-icons/xml.js +4 -0
  167. package/dist/lib/assets/language-icons/xml.js.map +1 -0
  168. package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
  169. package/dist/lib/assets/language-icons/yaml.js +4 -0
  170. package/dist/lib/assets/language-icons/yaml.js.map +1 -0
  171. package/dist/lib/assets/language-icons/zig.d.ts +3 -0
  172. package/dist/lib/assets/language-icons/zig.js +4 -0
  173. package/dist/lib/assets/language-icons/zig.js.map +1 -0
  174. package/dist/lib/auth/issuer.js +3 -0
  175. package/dist/lib/auth/issuer.js.map +1 -1
  176. package/dist/lib/auth/issuer.test.js +1 -0
  177. package/dist/lib/auth/issuer.test.js.map +1 -1
  178. package/dist/lib/authentication/AuthenticationPlugin.d.ts +1 -1
  179. package/dist/lib/authentication/authentication.d.ts +19 -13
  180. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +1 -1
  181. package/dist/lib/authentication/components/OAuthErrorPage.js +1 -1
  182. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -1
  183. package/dist/lib/authentication/components/SignIn.js +6 -5
  184. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  185. package/dist/lib/authentication/components/SignOut.js +6 -6
  186. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  187. package/dist/lib/authentication/components/SignUp.js +5 -5
  188. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  189. package/dist/lib/authentication/hook.d.ts +3 -2
  190. package/dist/lib/authentication/hook.js +12 -8
  191. package/dist/lib/authentication/hook.js.map +1 -1
  192. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  193. package/dist/lib/authentication/providers/auth0.js +9 -5
  194. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  195. package/dist/lib/authentication/providers/azureb2c.d.ts +5 -5
  196. package/dist/lib/authentication/providers/azureb2c.js +3 -3
  197. package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
  198. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  199. package/dist/lib/authentication/providers/clerk.js +2 -2
  200. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  201. package/dist/lib/authentication/providers/firebase.d.ts +4 -0
  202. package/dist/lib/authentication/providers/firebase.js +215 -0
  203. package/dist/lib/authentication/providers/firebase.js.map +1 -0
  204. package/dist/lib/authentication/providers/openid.d.ts +8 -8
  205. package/dist/lib/authentication/providers/openid.js +5 -3
  206. package/dist/lib/authentication/providers/openid.js.map +1 -1
  207. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
  208. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
  209. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
  210. package/dist/lib/authentication/providers/supabase.d.ts +2 -2
  211. package/dist/lib/authentication/providers/supabase.js +30 -30
  212. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  213. package/dist/lib/authentication/state.d.ts +5 -7
  214. package/dist/lib/authentication/state.js +2 -14
  215. package/dist/lib/authentication/state.js.map +1 -1
  216. package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +24 -0
  217. package/dist/lib/authentication/ui/ZudokuAuthUi.js +124 -0
  218. package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -0
  219. package/dist/lib/authentication/ui/icons/Apple.d.ts +3 -0
  220. package/dist/lib/authentication/ui/icons/Apple.js +4 -0
  221. package/dist/lib/authentication/ui/icons/Apple.js.map +1 -0
  222. package/dist/lib/authentication/ui/icons/Facebook.d.ts +3 -0
  223. package/dist/lib/authentication/ui/icons/Facebook.js +4 -0
  224. package/dist/lib/authentication/ui/icons/Facebook.js.map +1 -0
  225. package/dist/lib/authentication/ui/icons/Github.d.ts +3 -0
  226. package/dist/lib/authentication/ui/icons/Github.js +4 -0
  227. package/dist/lib/authentication/ui/icons/Github.js.map +1 -0
  228. package/dist/lib/authentication/ui/icons/Google.d.ts +3 -0
  229. package/dist/lib/authentication/ui/icons/Google.js +4 -0
  230. package/dist/lib/authentication/ui/icons/Google.js.map +1 -0
  231. package/dist/lib/authentication/ui/icons/Microsoft.d.ts +3 -0
  232. package/dist/lib/authentication/ui/icons/Microsoft.js +4 -0
  233. package/dist/lib/authentication/ui/icons/Microsoft.js.map +1 -0
  234. package/dist/lib/authentication/ui/icons/X.d.ts +3 -0
  235. package/dist/lib/authentication/ui/icons/X.js +4 -0
  236. package/dist/lib/authentication/ui/icons/X.js.map +1 -0
  237. package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
  238. package/dist/lib/authentication/use-broadcast/shared.js +3 -3
  239. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
  240. package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
  241. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
  242. package/dist/lib/components/Autocomplete.d.ts +3 -1
  243. package/dist/lib/components/Autocomplete.js +6 -2
  244. package/dist/lib/components/Autocomplete.js.map +1 -1
  245. package/dist/lib/components/Bootstrap.js.map +1 -1
  246. package/dist/lib/components/BuildCheck.js +4 -3
  247. package/dist/lib/components/BuildCheck.js.map +1 -1
  248. package/dist/lib/components/Header.js +1 -3
  249. package/dist/lib/components/Header.js.map +1 -1
  250. package/dist/lib/components/Heading.d.ts +2 -2
  251. package/dist/lib/components/Heading.js +2 -6
  252. package/dist/lib/components/Heading.js.map +1 -1
  253. package/dist/lib/components/LanguageIcon.d.ts +3 -0
  254. package/dist/lib/components/LanguageIcon.js +163 -0
  255. package/dist/lib/components/LanguageIcon.js.map +1 -0
  256. package/dist/lib/components/Layout.js.map +1 -1
  257. package/dist/lib/components/Main.js +1 -1
  258. package/dist/lib/components/Main.js.map +1 -1
  259. package/dist/lib/components/Markdown.js +2 -2
  260. package/dist/lib/components/Markdown.js.map +1 -1
  261. package/dist/lib/components/Meta.js +1 -1
  262. package/dist/lib/components/Meta.js.map +1 -1
  263. package/dist/lib/components/MobileTopNavigation.js +4 -4
  264. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  265. package/dist/lib/components/PathRenderer.js +1 -1
  266. package/dist/lib/components/PathRenderer.js.map +1 -1
  267. package/dist/lib/components/Search.js +1 -1
  268. package/dist/lib/components/Search.js.map +1 -1
  269. package/dist/lib/components/Slot.js.map +1 -1
  270. package/dist/lib/components/Slot.test.js +7 -3
  271. package/dist/lib/components/Slot.test.js.map +1 -1
  272. package/dist/lib/components/TopNavigation.d.ts +1 -1
  273. package/dist/lib/components/TopNavigation.js +2 -2
  274. package/dist/lib/components/TopNavigation.js.map +1 -1
  275. package/dist/lib/components/Zudoku.js +5 -5
  276. package/dist/lib/components/Zudoku.js.map +1 -1
  277. package/dist/lib/components/cache.d.ts +3 -1
  278. package/dist/lib/components/cache.js +3 -5
  279. package/dist/lib/components/cache.js.map +1 -1
  280. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  281. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
  282. package/dist/lib/components/context/SlotProvider.js.map +1 -1
  283. package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
  284. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  285. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  286. package/dist/lib/components/context/ZudokuContext.js +10 -2
  287. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  288. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  289. package/dist/lib/components/index.d.ts +14 -4
  290. package/dist/lib/components/index.js +3 -1
  291. package/dist/lib/components/index.js.map +1 -1
  292. package/dist/lib/components/navigation/NavigationCategory.js +6 -1
  293. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
  294. package/dist/lib/components/navigation/NavigationItem.js +3 -3
  295. package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
  296. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -1
  297. package/dist/lib/components/navigation/Toc.js +1 -1
  298. package/dist/lib/components/navigation/Toc.js.map +1 -1
  299. package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
  300. package/dist/lib/components/navigation/utils.d.ts +3 -3
  301. package/dist/lib/components/navigation/utils.js +1 -2
  302. package/dist/lib/components/navigation/utils.js.map +1 -1
  303. package/dist/lib/core/RouteGuard.d.ts +1 -1
  304. package/dist/lib/core/RouteGuard.js +12 -20
  305. package/dist/lib/core/RouteGuard.js.map +1 -1
  306. package/dist/lib/core/ZudokuContext.d.ts +2 -1
  307. package/dist/lib/core/ZudokuContext.js +3 -0
  308. package/dist/lib/core/ZudokuContext.js.map +1 -1
  309. package/dist/lib/core/__internal.d.ts +1 -1
  310. package/dist/lib/errors/ErrorAlert.js +1 -2
  311. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  312. package/dist/lib/errors/RouterError.d.ts +3 -1
  313. package/dist/lib/errors/RouterError.js +3 -2
  314. package/dist/lib/errors/RouterError.js.map +1 -1
  315. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  316. package/dist/lib/errors/TopLevelError.js +1 -2
  317. package/dist/lib/errors/TopLevelError.js.map +1 -1
  318. package/dist/lib/hooks/index.d.ts +3 -3
  319. package/dist/lib/oas/graphql/circular.js +2 -2
  320. package/dist/lib/oas/graphql/circular.js.map +1 -1
  321. package/dist/lib/oas/graphql/index.js +39 -3
  322. package/dist/lib/oas/graphql/index.js.map +1 -1
  323. package/dist/lib/oas/parser/dereference/index.js +2 -1
  324. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  325. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  326. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  327. package/dist/lib/oas/parser/index.js +8 -4
  328. package/dist/lib/oas/parser/index.js.map +1 -1
  329. package/dist/lib/oas/parser/upgrade/index.js +2 -1
  330. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  331. package/dist/lib/plugins/api-catalog/Catalog.js +7 -1
  332. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  333. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +1 -1
  334. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
  335. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
  336. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
  337. package/dist/lib/plugins/api-keys/ProtectedRoute.js +4 -1
  338. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  339. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  340. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +10 -16
  341. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  342. package/dist/lib/plugins/api-keys/index.d.ts +3 -3
  343. package/dist/lib/plugins/api-keys/index.js +1 -1
  344. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  345. package/dist/lib/plugins/custom-pages/index.d.ts +1 -1
  346. package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
  347. package/dist/lib/plugins/markdown/MdxPage.js +32 -8
  348. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  349. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
  350. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
  351. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
  352. package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
  353. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
  354. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
  355. package/dist/lib/plugins/markdown/index.d.ts +4 -2
  356. package/dist/lib/plugins/markdown/index.js +1 -1
  357. package/dist/lib/plugins/markdown/index.js.map +1 -1
  358. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +1 -0
  359. package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
  360. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  361. package/dist/lib/plugins/openapi/ColorizedParam.js +4 -1
  362. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  363. package/dist/lib/plugins/openapi/Endpoint.js +2 -2
  364. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  365. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.d.ts +5 -0
  366. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +10 -0
  367. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js.map +1 -0
  368. package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
  369. package/dist/lib/plugins/openapi/MCPEndpoint.js +56 -0
  370. package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
  371. package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
  372. package/dist/lib/plugins/openapi/OasProvider.js +1 -0
  373. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  374. package/dist/lib/plugins/openapi/OperationList.d.ts +0 -2
  375. package/dist/lib/plugins/openapi/OperationList.js +31 -8
  376. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  377. package/dist/lib/plugins/openapi/OperationListItem.d.ts +4 -3
  378. package/dist/lib/plugins/openapi/OperationListItem.js +12 -5
  379. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  380. package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
  381. package/dist/lib/plugins/openapi/ParamInfos.js +11 -9
  382. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  383. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
  384. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  385. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  386. package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
  387. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  388. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  389. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
  390. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -5
  391. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  392. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +11 -4
  393. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +2 -2
  394. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  395. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -1
  396. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +14 -2
  397. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  398. package/dist/lib/plugins/openapi/Sidecar.d.ts +5 -3
  399. package/dist/lib/plugins/openapi/Sidecar.js +54 -30
  400. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  401. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +11 -6
  402. package/dist/lib/plugins/openapi/SidecarExamples.js +15 -33
  403. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  404. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  405. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
  406. package/dist/lib/plugins/openapi/client/createServer.js +1 -2
  407. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  408. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  409. package/dist/lib/plugins/openapi/components/NonHighlightedCode.d.ts +4 -0
  410. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js +5 -0
  411. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js.map +1 -0
  412. package/dist/lib/plugins/openapi/components/ResponseContent.js +1 -1
  413. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -1
  414. package/dist/lib/plugins/openapi/context.d.ts +1 -1
  415. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
  416. package/dist/lib/plugins/openapi/graphql/gql.d.ts +2 -2
  417. package/dist/lib/plugins/openapi/graphql/gql.js +2 -2
  418. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  419. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +11 -2
  420. package/dist/lib/plugins/openapi/graphql/graphql.js +11 -0
  421. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  422. package/dist/lib/plugins/openapi/index.d.ts +2 -2
  423. package/dist/lib/plugins/openapi/index.js +7 -11
  424. package/dist/lib/plugins/openapi/index.js.map +1 -1
  425. package/dist/lib/plugins/openapi/interfaces.d.ts +18 -4
  426. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +2 -2
  427. package/dist/lib/plugins/openapi/playground/BodyPanel.js +67 -15
  428. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
  429. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +2 -2
  430. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -1
  431. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
  432. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -1
  433. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  434. package/dist/lib/plugins/openapi/playground/Headers.d.ts +1 -1
  435. package/dist/lib/plugins/openapi/playground/Headers.js +23 -83
  436. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  437. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
  438. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
  439. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +10 -2
  440. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +8 -1
  441. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  442. package/dist/lib/plugins/openapi/playground/PathParams.js +2 -3
  443. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  444. package/dist/lib/plugins/openapi/playground/Playground.d.ts +9 -2
  445. package/dist/lib/plugins/openapi/playground/Playground.js +70 -32
  446. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  447. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -1
  448. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  449. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  450. package/dist/lib/plugins/openapi/playground/QueryParams.js +16 -40
  451. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  452. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +2 -1
  453. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +10 -2
  454. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -1
  455. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +5 -3
  456. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.d.ts +8 -0
  457. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js +19 -0
  458. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js.map +1 -0
  459. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +1 -1
  460. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -1
  461. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.d.ts +1 -0
  462. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js +540 -0
  463. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js.map +1 -0
  464. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.d.ts +40 -0
  465. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js +205 -0
  466. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js.map +1 -0
  467. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +1 -1
  468. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +4 -2
  469. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -1
  470. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +33 -19
  471. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  472. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +2 -2
  473. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +1 -1
  474. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  475. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
  476. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
  477. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
  478. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +5 -3
  479. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +2 -0
  480. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -1
  481. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
  482. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
  483. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
  484. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
  485. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
  486. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
  487. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
  488. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +6 -15
  489. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  490. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -1
  491. package/dist/lib/plugins/openapi/schema/SchemaView.js +12 -11
  492. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  493. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +5 -0
  494. package/dist/lib/plugins/openapi/schema/UnionView.js +36 -0
  495. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  496. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  497. package/dist/lib/plugins/openapi/schema/union-helpers.js +71 -0
  498. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  499. package/dist/lib/plugins/openapi/schema/utils.d.ts +0 -7
  500. package/dist/lib/plugins/openapi/schema/utils.js +0 -6
  501. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  502. package/dist/lib/plugins/openapi/state.d.ts +5 -3
  503. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +1 -1
  504. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +1 -1
  505. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
  506. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +1 -0
  507. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -1
  508. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  509. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +10 -13
  510. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  511. package/dist/lib/plugins/openapi/util/getRoutes.js +1 -1
  512. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  513. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  514. package/dist/lib/plugins/search-inkeep/index.js +1 -1
  515. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  516. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +1 -1
  517. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  518. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
  519. package/dist/lib/plugins/search-pagefind/ResultList.js +4 -1
  520. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  521. package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
  522. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  523. package/dist/lib/shiki.d.ts +3 -6
  524. package/dist/lib/shiki.js +29 -8
  525. package/dist/lib/shiki.js.map +1 -1
  526. package/dist/lib/ui/Breadcrumb.js +1 -1
  527. package/dist/lib/ui/Breadcrumb.js.map +1 -1
  528. package/dist/lib/ui/Button.d.ts +1 -1
  529. package/dist/lib/ui/Button.js +1 -0
  530. package/dist/lib/ui/Button.js.map +1 -1
  531. package/dist/lib/ui/Callout.d.ts +5 -5
  532. package/dist/lib/ui/Callout.js +5 -5
  533. package/dist/lib/ui/Callout.js.map +1 -1
  534. package/dist/lib/ui/Checkbox.d.ts +2 -2
  535. package/dist/lib/ui/Checkbox.js +4 -4
  536. package/dist/lib/ui/Checkbox.js.map +1 -1
  537. package/dist/lib/ui/CodeBlock.d.ts +1 -2
  538. package/dist/lib/ui/CodeBlock.js +3 -28
  539. package/dist/lib/ui/CodeBlock.js.map +1 -1
  540. package/dist/lib/ui/Command.d.ts +5 -5
  541. package/dist/lib/ui/Command.js +2 -6
  542. package/dist/lib/ui/Command.js.map +1 -1
  543. package/dist/lib/ui/Dialog.d.ts +12 -18
  544. package/dist/lib/ui/Dialog.js +30 -17
  545. package/dist/lib/ui/Dialog.js.map +1 -1
  546. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +3 -2
  547. package/dist/lib/ui/EmbeddedCodeBlock.js +2 -2
  548. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  549. package/dist/lib/ui/Form.d.ts +2 -2
  550. package/dist/lib/ui/Pagination.d.ts +1 -1
  551. package/dist/lib/ui/Pagination.js +1 -1
  552. package/dist/lib/ui/Pagination.js.map +1 -1
  553. package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
  554. package/dist/lib/ui/ReactComponentDoc.js +10 -0
  555. package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
  556. package/dist/lib/ui/Secret.d.ts +18 -0
  557. package/dist/lib/ui/Secret.js +26 -0
  558. package/dist/lib/ui/Secret.js.map +1 -0
  559. package/dist/lib/ui/Separator.d.ts +4 -0
  560. package/dist/lib/ui/Separator.js +8 -0
  561. package/dist/lib/ui/Separator.js.map +1 -0
  562. package/dist/lib/ui/SyntaxHighlight.d.ts +1 -0
  563. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  564. package/dist/lib/ui/ToggleGroup.d.ts +1 -1
  565. package/dist/lib/ui/Tooltip.d.ts +7 -7
  566. package/dist/lib/ui/Tooltip.js +16 -10
  567. package/dist/lib/ui/Tooltip.js.map +1 -1
  568. package/dist/lib/ui/Value.d.ts +5 -0
  569. package/dist/lib/ui/Value.js +13 -0
  570. package/dist/lib/ui/Value.js.map +1 -0
  571. package/dist/lib/util/MdxComponents.d.ts +3 -2
  572. package/dist/lib/util/MdxComponents.js +7 -4
  573. package/dist/lib/util/MdxComponents.js.map +1 -1
  574. package/dist/lib/util/cn.js.map +1 -1
  575. package/dist/lib/util/createVariantComponent.d.ts +7 -4
  576. package/dist/lib/util/createVariantComponent.js +5 -2
  577. package/dist/lib/util/createVariantComponent.js.map +1 -1
  578. package/dist/lib/util/flattenAllOf.d.ts +4 -0
  579. package/dist/lib/util/flattenAllOf.js +65 -0
  580. package/dist/lib/util/flattenAllOf.js.map +1 -0
  581. package/dist/lib/util/flattenAllOf.test.d.ts +1 -0
  582. package/dist/lib/util/flattenAllOf.test.js +532 -0
  583. package/dist/lib/util/flattenAllOf.test.js.map +1 -0
  584. package/dist/lib/util/groupBy.js +1 -0
  585. package/dist/lib/util/groupBy.js.map +1 -1
  586. package/dist/lib/util/humanFileSize.js +1 -1
  587. package/dist/lib/util/humanFileSize.js.map +1 -1
  588. package/dist/lib/util/invariant.js +3 -1
  589. package/dist/lib/util/invariant.js.map +1 -1
  590. package/dist/lib/util/pastellize.js +4 -4
  591. package/dist/lib/util/pastellize.js.map +1 -1
  592. package/dist/lib/util/syncZustandState.d.ts +5 -0
  593. package/dist/lib/util/syncZustandState.js +14 -0
  594. package/dist/lib/util/syncZustandState.js.map +1 -0
  595. package/dist/lib/util/traverse.d.ts +1 -0
  596. package/dist/lib/util/traverse.js +25 -0
  597. package/dist/lib/util/traverse.js.map +1 -1
  598. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
  599. package/dist/lib/util/useScrollToAnchor.js +2 -0
  600. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  601. package/dist/ts.js +3 -3
  602. package/dist/ts.js.map +1 -1
  603. package/dist/vite/api/SchemaManager.d.ts +3 -1
  604. package/dist/vite/api/SchemaManager.js +43 -32
  605. package/dist/vite/api/SchemaManager.js.map +1 -1
  606. package/dist/vite/api/SchemaManager.test.js +2 -2
  607. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  608. package/dist/vite/api/schema-codegen.js +60 -42
  609. package/dist/vite/api/schema-codegen.js.map +1 -1
  610. package/dist/vite/api/schema-codegen.test.js +76 -3
  611. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  612. package/dist/vite/build.js +1 -1
  613. package/dist/vite/build.js.map +1 -1
  614. package/dist/vite/dev-server.js +2 -2
  615. package/dist/vite/dev-server.js.map +1 -1
  616. package/dist/vite/error-handler.d.ts +2 -2
  617. package/dist/vite/error-handler.js.map +1 -1
  618. package/dist/vite/llms.d.ts +12 -0
  619. package/dist/vite/llms.js +66 -0
  620. package/dist/vite/llms.js.map +1 -0
  621. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
  622. package/dist/vite/mdx/remark-last-modified.js +57 -4
  623. package/dist/vite/mdx/remark-last-modified.js.map +1 -1
  624. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
  625. package/dist/vite/mdx/remark-static-generation.js +1 -1
  626. package/dist/vite/mdx/remark-static-generation.js.map +1 -1
  627. package/dist/vite/output.d.ts +1 -1
  628. package/dist/vite/output.js +1 -1
  629. package/dist/vite/output.js.map +1 -1
  630. package/dist/vite/plugin-api-keys.d.ts +1 -1
  631. package/dist/vite/plugin-api-keys.js +1 -1
  632. package/dist/vite/plugin-api-keys.js.map +1 -1
  633. package/dist/vite/plugin-api.js +22 -21
  634. package/dist/vite/plugin-api.js.map +1 -1
  635. package/dist/vite/plugin-auth.d.ts +1 -1
  636. package/dist/vite/plugin-auth.js +1 -1
  637. package/dist/vite/plugin-auth.js.map +1 -1
  638. package/dist/vite/plugin-component.d.ts +1 -1
  639. package/dist/vite/plugin-config-reload.d.ts +1 -1
  640. package/dist/vite/plugin-custom-pages.d.ts +1 -1
  641. package/dist/vite/plugin-custom-pages.js +1 -1
  642. package/dist/vite/plugin-custom-pages.js.map +1 -1
  643. package/dist/vite/plugin-docs.d.ts +9 -0
  644. package/dist/vite/plugin-docs.js +70 -47
  645. package/dist/vite/plugin-docs.js.map +1 -1
  646. package/dist/vite/plugin-frontmatter.js +1 -1
  647. package/dist/vite/plugin-frontmatter.js.map +1 -1
  648. package/dist/vite/plugin-markdown-export.d.ts +21 -0
  649. package/dist/vite/plugin-markdown-export.js +141 -0
  650. package/dist/vite/plugin-markdown-export.js.map +1 -0
  651. package/dist/vite/plugin-mdx.d.ts +2 -2
  652. package/dist/vite/plugin-mdx.js +44 -34
  653. package/dist/vite/plugin-mdx.js.map +1 -1
  654. package/dist/vite/plugin-metadata.d.ts +1 -1
  655. package/dist/vite/plugin-navigation.d.ts +2 -2
  656. package/dist/vite/plugin-navigation.js +38 -35
  657. package/dist/vite/plugin-navigation.js.map +1 -1
  658. package/dist/vite/plugin-redirect.d.ts +1 -1
  659. package/dist/vite/plugin-redirect.js +1 -1
  660. package/dist/vite/plugin-redirect.js.map +1 -1
  661. package/dist/vite/plugin-search.d.ts +1 -1
  662. package/dist/vite/plugin-search.js +1 -1
  663. package/dist/vite/plugin-search.js.map +1 -1
  664. package/dist/vite/plugin-shiki-register.js +1 -1
  665. package/dist/vite/plugin-shiki-register.js.map +1 -1
  666. package/dist/vite/plugin-theme.js +16 -7
  667. package/dist/vite/plugin-theme.js.map +1 -1
  668. package/dist/vite/plugin-theme.test.js +2 -0
  669. package/dist/vite/plugin-theme.test.js.map +1 -1
  670. package/dist/vite/plugin.d.ts +1 -1
  671. package/dist/vite/plugin.js +4 -2
  672. package/dist/vite/plugin.js.map +1 -1
  673. package/dist/vite/prerender/FileWritingResponse.js +5 -3
  674. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  675. package/dist/vite/prerender/InMemoryResponse.js +3 -1
  676. package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
  677. package/dist/vite/prerender/prerender.js +38 -5
  678. package/dist/vite/prerender/prerender.js.map +1 -1
  679. package/dist/vite/prerender/worker.d.ts +1 -1
  680. package/dist/vite/prerender/worker.js.map +1 -1
  681. package/dist/vite/reporter.js +2 -2
  682. package/dist/vite/reporter.js.map +1 -1
  683. package/dist/vite/shadcn-registry.d.ts +8 -33
  684. package/dist/vite/sitemap.js +4 -4
  685. package/dist/vite/sitemap.js.map +1 -1
  686. package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
  687. package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
  688. package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
  689. package/dist/zuplo/enrich-with-zuplo.d.ts +1 -0
  690. package/dist/zuplo/enrich-with-zuplo.js +4 -4
  691. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  692. package/dist/zuplo/policy-types.js +0 -1
  693. package/dist/zuplo/policy-types.js.map +1 -1
  694. package/dist/zuplo/with-zuplo-processors.js +2 -0
  695. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  696. package/dist/zuplo/with-zuplo.js +1 -1
  697. package/dist/zuplo/with-zuplo.js.map +1 -1
  698. package/lib/{Button-B3o-2Xdf.js → Button-B3ucvvQw.js} +7 -6
  699. package/lib/Button-B3ucvvQw.js.map +1 -0
  700. package/lib/{Card-CMDQUPM4.js → Card-KFniaZn5.js} +2 -2
  701. package/lib/{Card-CMDQUPM4.js.map → Card-KFniaZn5.js.map} +1 -1
  702. package/lib/{CategoryHeading-DCpZu3yG.js → CategoryHeading-DhmodDcq.js} +2 -2
  703. package/lib/{CategoryHeading-DCpZu3yG.js.map → CategoryHeading-DhmodDcq.js.map} +1 -1
  704. package/lib/{Command-CDn17s8X.js → Command-CUcrW3qs.js} +22 -28
  705. package/lib/Command-CUcrW3qs.js.map +1 -0
  706. package/lib/Dialog-BQciPiHN.js +144 -0
  707. package/lib/Dialog-BQciPiHN.js.map +1 -0
  708. package/lib/{Drawer-DJ05s2pH.js → Drawer-Ci7XwhqT.js} +2 -2
  709. package/lib/{Drawer-DJ05s2pH.js.map → Drawer-Ci7XwhqT.js.map} +1 -1
  710. package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
  711. package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
  712. package/lib/{Slot-DOtTvoyj.js → ErrorAlert-B4eXGBQj.js} +2413 -2431
  713. package/lib/ErrorAlert-B4eXGBQj.js.map +1 -0
  714. package/lib/MdxPage-BSxjb_Mb.js +240 -0
  715. package/lib/MdxPage-BSxjb_Mb.js.map +1 -0
  716. package/lib/{OAuthErrorPage-Jv3r8wnL.js → OAuthErrorPage-YbraVLZt.js} +9 -9
  717. package/lib/OAuthErrorPage-YbraVLZt.js.map +1 -0
  718. package/lib/{OasProvider-CA_lpILt.js → OasProvider-CgHWBl16.js} +5 -4
  719. package/lib/OasProvider-CgHWBl16.js.map +1 -0
  720. package/lib/OperationList-BNNhgkkk.js +5482 -0
  721. package/lib/OperationList-BNNhgkkk.js.map +1 -0
  722. package/lib/{Pagination-CBiRGddW.js → Pagination-BpxzD3Tn.js} +4 -4
  723. package/lib/{Pagination-CBiRGddW.js.map → Pagination-BpxzD3Tn.js.map} +1 -1
  724. package/lib/RouteGuard-Brz95MSt.js +77 -0
  725. package/lib/RouteGuard-Brz95MSt.js.map +1 -0
  726. package/lib/RouterError-BsnUU8eo.js +42 -0
  727. package/lib/RouterError-BsnUU8eo.js.map +1 -0
  728. package/lib/{SchemaList-BeYWvBC7.js → SchemaList-C8-SHBql.js} +10 -10
  729. package/lib/{SchemaList-BeYWvBC7.js.map → SchemaList-C8-SHBql.js.map} +1 -1
  730. package/lib/SchemaView-VsgUbgRw.js +397 -0
  731. package/lib/SchemaView-VsgUbgRw.js.map +1 -0
  732. package/lib/Select-C1DeCqKv.js +372 -0
  733. package/lib/Select-C1DeCqKv.js.map +1 -0
  734. package/lib/SignUp-Bnvel-zK.js +50 -0
  735. package/lib/SignUp-Bnvel-zK.js.map +1 -0
  736. package/lib/{Spinner-mNLZ6awP.js → Spinner-CI6bRyZw.js} +2 -2
  737. package/lib/{Spinner-mNLZ6awP.js.map → Spinner-CI6bRyZw.js.map} +1 -1
  738. package/lib/{SyntaxHighlight-GR0eix_L.js → SyntaxHighlight-C19vH0V_.js} +1074 -1030
  739. package/lib/SyntaxHighlight-C19vH0V_.js.map +1 -0
  740. package/lib/{Toc-BlcGIkXc.js → Toc-DR_4nkDQ.js} +6 -6
  741. package/lib/Toc-DR_4nkDQ.js.map +1 -0
  742. package/lib/ZudokuContext-BUZ5hkWB.js +1508 -0
  743. package/lib/ZudokuContext-BUZ5hkWB.js.map +1 -0
  744. package/lib/c-B-NUhs61.js +46 -0
  745. package/lib/c-B-NUhs61.js.map +1 -0
  746. package/lib/chunk-PVWAREVJ-BMhpCH5D.js +7965 -0
  747. package/lib/chunk-PVWAREVJ-BMhpCH5D.js.map +1 -0
  748. package/lib/{circular-CGTcsqA3.js → circular-BHuymtcS.js} +30 -30
  749. package/lib/{circular-CGTcsqA3.js.map → circular-BHuymtcS.js.map} +1 -1
  750. package/lib/cn-dYga0KKN.js.map +1 -1
  751. package/lib/commonlisp-De080z23.js +28 -0
  752. package/lib/commonlisp-De080z23.js.map +1 -0
  753. package/lib/cpp-79Paht7T.js +53 -0
  754. package/lib/cpp-79Paht7T.js.map +1 -0
  755. package/lib/{createServer-DjgpuLne.js → createServer-C4Kx4Ah4.js} +3703 -3225
  756. package/lib/createServer-C4Kx4Ah4.js.map +1 -0
  757. package/lib/csharp-D8MIL50B.js +53 -0
  758. package/lib/csharp-D8MIL50B.js.map +1 -0
  759. package/lib/css-Bt6hr1td.js +54 -0
  760. package/lib/css-Bt6hr1td.js.map +1 -0
  761. package/lib/dart-B0vy1jWB.js +60 -0
  762. package/lib/dart-B0vy1jWB.js.map +1 -0
  763. package/lib/elixir-Ds8r0sF8.js +25 -0
  764. package/lib/elixir-Ds8r0sF8.js.map +1 -0
  765. package/lib/{errors-CrI3s7mR.js → errors-C43bc4dH.js} +3 -3
  766. package/lib/errors-C43bc4dH.js.map +1 -0
  767. package/lib/go-D2VsmIOS.js +25 -0
  768. package/lib/go-D2VsmIOS.js.map +1 -0
  769. package/lib/graphql-BtA6M4m5.js +25 -0
  770. package/lib/graphql-BtA6M4m5.js.map +1 -0
  771. package/lib/hook-CMeoxziF.js +40 -0
  772. package/lib/hook-CMeoxziF.js.map +1 -0
  773. package/lib/html-MGnI2uzP.js +33 -0
  774. package/lib/html-MGnI2uzP.js.map +1 -0
  775. package/lib/index-BlL_RtG2.js +3665 -0
  776. package/lib/index-BlL_RtG2.js.map +1 -0
  777. package/lib/{index-DzO-Qh6S.js → index-CfR_Jx5Q.js} +276 -278
  778. package/lib/index-CfR_Jx5Q.js.map +1 -0
  779. package/lib/index-CrcNWbel.js.map +1 -1
  780. package/lib/{index-HarEI51d.js → index-Dc4KrhPf.js} +166 -50
  781. package/lib/index-Dc4KrhPf.js.map +1 -0
  782. package/lib/{index-DmNq2fbN.js → index-nGbmHh_A.js} +2 -2
  783. package/lib/index-nGbmHh_A.js.map +1 -0
  784. package/lib/index.esm-BYObtETB.js +1294 -0
  785. package/lib/index.esm-BYObtETB.js.map +1 -0
  786. package/lib/index.esm-BnYHxCYC.js.map +1 -1
  787. package/lib/invariant-Bm-FVUQE.js.map +1 -1
  788. package/lib/java-CVLzHfb1.js +53 -0
  789. package/lib/java-CVLzHfb1.js.map +1 -0
  790. package/lib/javascript-CcmIpL4G.js +10 -0
  791. package/lib/javascript-CcmIpL4G.js.map +1 -0
  792. package/lib/json-4AyP4uiY.js +25 -0
  793. package/lib/json-4AyP4uiY.js.map +1 -0
  794. package/lib/{jsx-runtime-C5mzlN2N.js → jsx-runtime-BzflLqGi.js} +110 -112
  795. package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
  796. package/lib/kotlin-v2plddBQ.js +37 -0
  797. package/lib/kotlin-v2plddBQ.js.map +1 -0
  798. package/lib/markdown-DYGWCmGQ.js +25 -0
  799. package/lib/markdown-DYGWCmGQ.js.map +1 -0
  800. package/lib/mdx-CHwYvXd4.js +32 -0
  801. package/lib/mdx-CHwYvXd4.js.map +1 -0
  802. package/lib/{mutation-Dy_5up8v.js → mutation-BSU0xu4m.js} +2 -2
  803. package/lib/{mutation-Dy_5up8v.js.map → mutation-BSU0xu4m.js.map} +1 -1
  804. package/lib/objectivec-HZY8shkd.js +32 -0
  805. package/lib/objectivec-HZY8shkd.js.map +1 -0
  806. package/lib/ocaml-DqsdDdwb.js +52 -0
  807. package/lib/ocaml-DqsdDdwb.js.map +1 -0
  808. package/lib/php-rQXzo7K_.js +25 -0
  809. package/lib/php-rQXzo7K_.js.map +1 -0
  810. package/lib/powershell-CQje9pm1.js +39 -0
  811. package/lib/powershell-CQje9pm1.js.map +1 -0
  812. package/lib/processors/traverse.js.map +1 -1
  813. package/lib/python-QIQAE5Ei.js +32 -0
  814. package/lib/python-QIQAE5Ei.js.map +1 -0
  815. package/lib/react-DHpVpxRv.js +24 -0
  816. package/lib/react-DHpVpxRv.js.map +1 -0
  817. package/lib/ruby-B2dU8Ny5.js +25 -0
  818. package/lib/ruby-B2dU8Ny5.js.map +1 -0
  819. package/lib/rust-DYnLHAi2.js +25 -0
  820. package/lib/rust-DYnLHAi2.js.map +1 -0
  821. package/lib/scala-CeKInBR8.js +25 -0
  822. package/lib/scala-CeKInBR8.js.map +1 -0
  823. package/lib/shell-HUv9oVtp.js +25 -0
  824. package/lib/shell-HUv9oVtp.js.map +1 -0
  825. package/lib/swift-B4z6ig1Z.js +25 -0
  826. package/lib/swift-B4z6ig1Z.js.map +1 -0
  827. package/lib/toml-Co9mpdct.js +32 -0
  828. package/lib/toml-Co9mpdct.js.map +1 -0
  829. package/lib/typescript-C26xdBDC.js +32 -0
  830. package/lib/typescript-C26xdBDC.js.map +1 -0
  831. package/lib/ui/Accordion.js +1 -1
  832. package/lib/ui/ActionButton.js +3 -3
  833. package/lib/ui/Alert.js +1 -1
  834. package/lib/ui/AlertDialog.js +1 -1
  835. package/lib/ui/Badge.js +1 -1
  836. package/lib/ui/Breadcrumb.js +23 -22
  837. package/lib/ui/Breadcrumb.js.map +1 -1
  838. package/lib/ui/Button.js +6 -5
  839. package/lib/ui/Button.js.map +1 -1
  840. package/lib/ui/Callout.js +19 -19
  841. package/lib/ui/Callout.js.map +1 -1
  842. package/lib/ui/Card.js +1 -1
  843. package/lib/ui/Carousel.js +1 -1
  844. package/lib/ui/Carousel.js.map +1 -1
  845. package/lib/ui/Checkbox.js +29 -26
  846. package/lib/ui/Checkbox.js.map +1 -1
  847. package/lib/ui/CodeBlock.js +217 -6
  848. package/lib/ui/CodeBlock.js.map +1 -1
  849. package/lib/ui/Command.js +21 -27
  850. package/lib/ui/Command.js.map +1 -1
  851. package/lib/ui/Dialog.js +135 -105
  852. package/lib/ui/Dialog.js.map +1 -1
  853. package/lib/ui/Drawer.js +2 -2
  854. package/lib/ui/DropdownMenu.js +1 -1
  855. package/lib/ui/EmbeddedCodeBlock.js +25 -22
  856. package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  857. package/lib/ui/Form.js +2 -2
  858. package/lib/ui/Form.js.map +1 -1
  859. package/lib/ui/HoverCard.js +1 -1
  860. package/lib/ui/Input.js +1 -1
  861. package/lib/ui/Label.js +1 -1
  862. package/lib/ui/Pagination.js +28 -29
  863. package/lib/ui/Pagination.js.map +1 -1
  864. package/lib/ui/Popover.js +1 -1
  865. package/lib/ui/Progress.js +1 -1
  866. package/lib/ui/RadioGroup.js +1 -1
  867. package/lib/ui/ReactComponentDoc.js +28 -0
  868. package/lib/ui/ReactComponentDoc.js.map +1 -0
  869. package/lib/ui/ScrollArea.js +1 -1
  870. package/lib/ui/Secret.js +106 -0
  871. package/lib/ui/Secret.js.map +1 -0
  872. package/lib/ui/Select.js +1 -1
  873. package/lib/ui/Separator.js +27 -0
  874. package/lib/ui/Separator.js.map +1 -0
  875. package/lib/ui/Skeleton.js +1 -1
  876. package/lib/ui/Slider.js +1 -1
  877. package/lib/ui/Stepper.js +1 -1
  878. package/lib/ui/Switch.js +1 -1
  879. package/lib/ui/SyntaxHighlight.js +4 -4
  880. package/lib/ui/Tabs.js +1 -1
  881. package/lib/ui/Textarea.js +1 -1
  882. package/lib/ui/Toggle.js +1 -1
  883. package/lib/ui/ToggleGroup.js +1 -1
  884. package/lib/ui/ToggleGroup.js.map +1 -1
  885. package/lib/ui/Tooltip.js +55 -28
  886. package/lib/ui/Tooltip.js.map +1 -1
  887. package/lib/ui/Value.js +39 -0
  888. package/lib/ui/Value.js.map +1 -0
  889. package/lib/useCopyToClipboard-B_085nfO.js +14 -0
  890. package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
  891. package/lib/{useExposedProps-BH9aq4MD.js → useExposedProps-U3pmsHaG.js} +34 -34
  892. package/lib/{useExposedProps-BH9aq4MD.js.map → useExposedProps-U3pmsHaG.js.map} +1 -1
  893. package/lib/xml-BQOOC04j.js +25 -0
  894. package/lib/xml-BQOOC04j.js.map +1 -0
  895. package/lib/yaml-BGsJItKv.js +32 -0
  896. package/lib/yaml-BGsJItKv.js.map +1 -0
  897. package/lib/zig-CUV2sTct.js +35 -0
  898. package/lib/zig-CUV2sTct.js.map +1 -0
  899. package/lib/zudoku.__internal.js +1192 -1073
  900. package/lib/zudoku.__internal.js.map +1 -1
  901. package/lib/zudoku.auth-auth0.js +23 -22
  902. package/lib/zudoku.auth-auth0.js.map +1 -1
  903. package/lib/zudoku.auth-azureb2c.js +34 -35
  904. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  905. package/lib/zudoku.auth-clerk.js +41 -41
  906. package/lib/zudoku.auth-clerk.js.map +1 -1
  907. package/lib/zudoku.auth-openid.js +104 -108
  908. package/lib/zudoku.auth-openid.js.map +1 -1
  909. package/lib/zudoku.auth-supabase.js +108 -51
  910. package/lib/zudoku.auth-supabase.js.map +1 -1
  911. package/lib/zudoku.components.js +21 -20
  912. package/lib/zudoku.hooks.js +6 -6
  913. package/lib/zudoku.hooks.js.map +1 -1
  914. package/lib/zudoku.icons.js +1 -1
  915. package/lib/zudoku.icons.js.map +1 -1
  916. package/lib/zudoku.plugin-api-catalog.js +34 -28
  917. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  918. package/lib/zudoku.plugin-api-keys.js +302 -327
  919. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  920. package/lib/zudoku.plugin-custom-pages.js +1 -1
  921. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  922. package/lib/zudoku.plugin-markdown.js +10 -9
  923. package/lib/zudoku.plugin-markdown.js.map +1 -1
  924. package/lib/zudoku.plugin-openapi.js +7 -8
  925. package/lib/zudoku.plugin-openapi.js.map +1 -1
  926. package/lib/zudoku.plugin-redirect.js +3 -3
  927. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  928. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  929. package/lib/zudoku.plugin-search-pagefind.js +48 -49
  930. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  931. package/lib/zudoku.router.js +2502 -118
  932. package/lib/zudoku.router.js.map +1 -1
  933. package/package.json +93 -92
  934. package/src/app/ZuploBuildConfig.ts +1 -1
  935. package/src/app/entry.client.tsx +6 -5
  936. package/src/app/entry.server.tsx +19 -9
  937. package/src/app/env.ts +6 -6
  938. package/src/app/main.css +71 -19
  939. package/src/app/main.tsx +7 -3
  940. package/src/app/standalone.tsx +7 -2
  941. package/src/lib/MissingIcon.tsx +1 -1
  942. package/src/lib/assets/language-icons/c.tsx +31 -0
  943. package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
  944. package/src/lib/assets/language-icons/cpp.tsx +35 -0
  945. package/src/lib/assets/language-icons/csharp.tsx +35 -0
  946. package/src/lib/assets/language-icons/css.tsx +36 -0
  947. package/src/lib/assets/language-icons/dart.tsx +39 -0
  948. package/src/lib/assets/language-icons/elixir.tsx +19 -0
  949. package/src/lib/assets/language-icons/go.tsx +19 -0
  950. package/src/lib/assets/language-icons/graphql.tsx +19 -0
  951. package/src/lib/assets/language-icons/html.tsx +24 -0
  952. package/src/lib/assets/language-icons/java.tsx +35 -0
  953. package/src/lib/assets/language-icons/javascript.tsx +11 -0
  954. package/src/lib/assets/language-icons/json.tsx +19 -0
  955. package/src/lib/assets/language-icons/kotlin.tsx +30 -0
  956. package/src/lib/assets/language-icons/markdown.tsx +19 -0
  957. package/src/lib/assets/language-icons/mdx.tsx +23 -0
  958. package/src/lib/assets/language-icons/objectivec.tsx +23 -0
  959. package/src/lib/assets/language-icons/ocaml.tsx +34 -0
  960. package/src/lib/assets/language-icons/php.tsx +19 -0
  961. package/src/lib/assets/language-icons/powershell.tsx +27 -0
  962. package/src/lib/assets/language-icons/python.tsx +23 -0
  963. package/src/lib/assets/language-icons/react.tsx +21 -0
  964. package/src/lib/assets/language-icons/ruby.tsx +19 -0
  965. package/src/lib/assets/language-icons/rust.tsx +19 -0
  966. package/src/lib/assets/language-icons/scala.tsx +19 -0
  967. package/src/lib/assets/language-icons/shell.tsx +19 -0
  968. package/src/lib/assets/language-icons/swift.tsx +19 -0
  969. package/src/lib/assets/language-icons/toml.tsx +23 -0
  970. package/src/lib/assets/language-icons/typescript.tsx +23 -0
  971. package/src/lib/assets/language-icons/xml.tsx +19 -0
  972. package/src/lib/assets/language-icons/yaml.tsx +23 -0
  973. package/src/lib/assets/language-icons/zig.tsx +32 -0
  974. package/src/lib/auth/issuer.test.ts +1 -0
  975. package/src/lib/auth/issuer.ts +3 -0
  976. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
  977. package/src/lib/authentication/authentication.ts +26 -8
  978. package/src/lib/authentication/components/OAuthErrorPage.tsx +2 -2
  979. package/src/lib/authentication/components/SignIn.tsx +7 -5
  980. package/src/lib/authentication/components/SignOut.tsx +7 -6
  981. package/src/lib/authentication/components/SignUp.tsx +5 -8
  982. package/src/lib/authentication/hook.ts +21 -10
  983. package/src/lib/authentication/providers/auth0.tsx +14 -9
  984. package/src/lib/authentication/providers/azureb2c.tsx +15 -8
  985. package/src/lib/authentication/providers/clerk.tsx +14 -7
  986. package/src/lib/authentication/providers/firebase.tsx +284 -0
  987. package/src/lib/authentication/providers/openid.tsx +26 -21
  988. package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
  989. package/src/lib/authentication/providers/supabase.tsx +61 -49
  990. package/src/lib/authentication/state.ts +3 -23
  991. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +335 -0
  992. package/src/lib/authentication/ui/icons/Apple.tsx +10 -0
  993. package/src/lib/authentication/ui/icons/Facebook.tsx +15 -0
  994. package/src/lib/authentication/ui/icons/Github.tsx +16 -0
  995. package/src/lib/authentication/ui/icons/Google.tsx +16 -0
  996. package/src/lib/authentication/ui/icons/Microsoft.tsx +12 -0
  997. package/src/lib/authentication/ui/icons/X.tsx +10 -0
  998. package/src/lib/authentication/use-broadcast/LICENSE.md +12 -3
  999. package/src/lib/authentication/use-broadcast/shared.ts +4 -4
  1000. package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
  1001. package/src/lib/components/AnchorLink.tsx +1 -1
  1002. package/src/lib/components/Autocomplete.tsx +12 -3
  1003. package/src/lib/components/Bootstrap.tsx +1 -0
  1004. package/src/lib/components/BuildCheck.tsx +14 -11
  1005. package/src/lib/components/Header.tsx +2 -3
  1006. package/src/lib/components/Heading.tsx +4 -9
  1007. package/src/lib/components/LanguageIcon.tsx +181 -0
  1008. package/src/lib/components/Layout.tsx +1 -1
  1009. package/src/lib/components/Main.tsx +1 -1
  1010. package/src/lib/components/Markdown.tsx +5 -2
  1011. package/src/lib/components/Meta.tsx +13 -0
  1012. package/src/lib/components/MobileTopNavigation.tsx +11 -13
  1013. package/src/lib/components/PathRenderer.tsx +2 -2
  1014. package/src/lib/components/Search.tsx +1 -1
  1015. package/src/lib/components/Slot.test.tsx +8 -8
  1016. package/src/lib/components/Slot.tsx +2 -2
  1017. package/src/lib/components/TopNavigation.tsx +3 -3
  1018. package/src/lib/components/Zudoku.tsx +5 -5
  1019. package/src/lib/components/cache.ts +9 -5
  1020. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  1021. package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
  1022. package/src/lib/components/context/SlotProvider.tsx +4 -4
  1023. package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
  1024. package/src/lib/components/context/ZudokuContext.ts +12 -3
  1025. package/src/lib/components/context/ZudokuProvider.tsx +1 -1
  1026. package/src/lib/components/index.ts +3 -1
  1027. package/src/lib/components/navigation/NavigationCategory.tsx +8 -1
  1028. package/src/lib/components/navigation/NavigationItem.tsx +3 -3
  1029. package/src/lib/components/navigation/NavigationWrapper.tsx +1 -1
  1030. package/src/lib/components/navigation/Toc.tsx +5 -5
  1031. package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
  1032. package/src/lib/components/navigation/utils.ts +5 -6
  1033. package/src/lib/core/RouteGuard.tsx +41 -21
  1034. package/src/lib/core/ZudokuContext.ts +5 -1
  1035. package/src/lib/errors/ErrorAlert.tsx +1 -2
  1036. package/src/lib/errors/RouterError.tsx +7 -2
  1037. package/src/lib/errors/TopLevelError.tsx +2 -4
  1038. package/src/lib/hooks/useEvent.test.tsx +2 -2
  1039. package/src/lib/oas/graphql/circular.ts +3 -3
  1040. package/src/lib/oas/graphql/index.ts +39 -3
  1041. package/src/lib/oas/parser/dereference/index.ts +2 -1
  1042. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  1043. package/src/lib/oas/parser/index.ts +10 -5
  1044. package/src/lib/oas/parser/upgrade/index.ts +2 -1
  1045. package/src/lib/plugins/api-catalog/Catalog.tsx +7 -0
  1046. package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
  1047. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
  1048. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +11 -7
  1049. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +23 -70
  1050. package/src/lib/plugins/api-keys/index.tsx +8 -8
  1051. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  1052. package/src/lib/plugins/markdown/MdxPage.tsx +131 -14
  1053. package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
  1054. package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
  1055. package/src/lib/plugins/markdown/index.tsx +6 -8
  1056. package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -3
  1057. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -1
  1058. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  1059. package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -0
  1060. package/src/lib/plugins/openapi/MCPEndpoint.tsx +273 -0
  1061. package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
  1062. package/src/lib/plugins/openapi/OperationList.tsx +39 -13
  1063. package/src/lib/plugins/openapi/OperationListItem.tsx +103 -76
  1064. package/src/lib/plugins/openapi/ParamInfos.tsx +10 -9
  1065. package/src/lib/plugins/openapi/ParameterList.tsx +3 -5
  1066. package/src/lib/plugins/openapi/ParameterListItem.tsx +6 -12
  1067. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -13
  1068. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +23 -4
  1069. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +27 -2
  1070. package/src/lib/plugins/openapi/Sidecar.tsx +112 -64
  1071. package/src/lib/plugins/openapi/SidecarExamples.tsx +40 -57
  1072. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  1073. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
  1074. package/src/lib/plugins/openapi/client/createServer.ts +1 -2
  1075. package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
  1076. package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
  1077. package/src/lib/plugins/openapi/components/ResponseContent.tsx +1 -1
  1078. package/src/lib/plugins/openapi/context.tsx +1 -1
  1079. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -1
  1080. package/src/lib/plugins/openapi/graphql/gql.ts +6 -6
  1081. package/src/lib/plugins/openapi/graphql/graphql.ts +25 -3
  1082. package/src/lib/plugins/openapi/index.tsx +14 -33
  1083. package/src/lib/plugins/openapi/interfaces.ts +19 -4
  1084. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +249 -33
  1085. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +10 -6
  1086. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +6 -5
  1087. package/src/lib/plugins/openapi/playground/Headers.tsx +104 -220
  1088. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +1 -1
  1089. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +1 -1
  1090. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +33 -1
  1091. package/src/lib/plugins/openapi/playground/PathParams.tsx +26 -34
  1092. package/src/lib/plugins/openapi/playground/Playground.tsx +90 -41
  1093. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +13 -2
  1094. package/src/lib/plugins/openapi/playground/QueryParams.tsx +83 -137
  1095. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
  1096. package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -0
  1097. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +1 -1
  1098. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +2 -2
  1099. package/src/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.tsx +872 -0
  1100. package/src/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.ts +349 -0
  1101. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +5 -3
  1102. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +124 -56
  1103. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +4 -4
  1104. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
  1105. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +3 -0
  1106. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
  1107. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
  1108. package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
  1109. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +6 -27
  1110. package/src/lib/plugins/openapi/schema/SchemaView.tsx +30 -23
  1111. package/src/lib/plugins/openapi/schema/UnionView.tsx +143 -0
  1112. package/src/lib/plugins/openapi/schema/union-helpers.ts +123 -0
  1113. package/src/lib/plugins/openapi/schema/utils.ts +0 -11
  1114. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +2 -2
  1115. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +1 -0
  1116. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +14 -15
  1117. package/src/lib/plugins/openapi/util/getRoutes.tsx +2 -2
  1118. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  1119. package/src/lib/plugins/search-inkeep/index.tsx +3 -3
  1120. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +2 -4
  1121. package/src/lib/plugins/search-pagefind/ResultList.tsx +3 -4
  1122. package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
  1123. package/src/lib/shiki.ts +35 -8
  1124. package/src/lib/ui/Breadcrumb.tsx +1 -0
  1125. package/src/lib/ui/Button.tsx +1 -0
  1126. package/src/lib/ui/Callout.tsx +10 -5
  1127. package/src/lib/ui/Checkbox.tsx +23 -24
  1128. package/src/lib/ui/CodeBlock.tsx +7 -41
  1129. package/src/lib/ui/Command.tsx +2 -4
  1130. package/src/lib/ui/Dialog.tsx +112 -107
  1131. package/src/lib/ui/EmbeddedCodeBlock.tsx +6 -4
  1132. package/src/lib/ui/Form.tsx +4 -4
  1133. package/src/lib/ui/Pagination.tsx +1 -2
  1134. package/src/lib/ui/ReactComponentDoc.tsx +68 -0
  1135. package/src/lib/ui/Secret.tsx +123 -0
  1136. package/src/lib/ui/Separator.tsx +25 -0
  1137. package/src/lib/ui/SyntaxHighlight.tsx +6 -1
  1138. package/src/lib/ui/ToggleGroup.tsx +1 -1
  1139. package/src/lib/ui/Tooltip.tsx +54 -32
  1140. package/src/lib/ui/Value.tsx +42 -0
  1141. package/src/lib/util/MdxComponents.tsx +12 -4
  1142. package/src/lib/util/cn.ts +1 -1
  1143. package/src/lib/util/createVariantComponent.tsx +33 -7
  1144. package/src/lib/util/flattenAllOf.test.ts +637 -0
  1145. package/src/lib/util/flattenAllOf.ts +101 -0
  1146. package/src/lib/util/groupBy.ts +1 -0
  1147. package/src/lib/util/humanFileSize.ts +2 -3
  1148. package/src/lib/util/invariant.ts +1 -0
  1149. package/src/lib/util/pastellize.ts +4 -4
  1150. package/src/lib/util/syncZustandState.ts +22 -0
  1151. package/src/lib/util/traverse.ts +36 -0
  1152. package/src/lib/util/types.ts +1 -1
  1153. package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
  1154. package/src/lib/util/useScrollToAnchor.ts +3 -1
  1155. package/src/shiki/langs/hurl.js +1 -0
  1156. package/src/shiki/langs/kdl.js +1 -0
  1157. package/src/shiki/langs/pkl.js +1 -0
  1158. package/src/shiki/langs/rosmsg.js +1 -0
  1159. package/dist/lib/components/ReactMarkdown.d.ts +0 -29
  1160. package/dist/lib/components/ReactMarkdown.js +0 -182
  1161. package/dist/lib/components/ReactMarkdown.js.map +0 -1
  1162. package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +0 -4
  1163. package/dist/lib/plugins/openapi/playground/InlineInput.js +0 -3
  1164. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +0 -1
  1165. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
  1166. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  1167. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  1168. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
  1169. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  1170. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  1171. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -6
  1172. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  1173. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  1174. package/lib/Button-B3o-2Xdf.js.map +0 -1
  1175. package/lib/CodeBlock-yJjjRwj-.js +0 -98
  1176. package/lib/CodeBlock-yJjjRwj-.js.map +0 -1
  1177. package/lib/Command-CDn17s8X.js.map +0 -1
  1178. package/lib/Dialog-BrIjMmUK.js +0 -114
  1179. package/lib/Dialog-BrIjMmUK.js.map +0 -1
  1180. package/lib/MdxPage-BmOQ5m5g.js +0 -111
  1181. package/lib/MdxPage-BmOQ5m5g.js.map +0 -1
  1182. package/lib/OAuthErrorPage-Jv3r8wnL.js.map +0 -1
  1183. package/lib/OasProvider-CA_lpILt.js.map +0 -1
  1184. package/lib/OperationList-C-TObVw6.js +0 -5169
  1185. package/lib/OperationList-C-TObVw6.js.map +0 -1
  1186. package/lib/RouteGuard-JLH6tCY8.js +0 -56
  1187. package/lib/RouteGuard-JLH6tCY8.js.map +0 -1
  1188. package/lib/RouterError-DcVonMP1.js +0 -41
  1189. package/lib/RouterError-DcVonMP1.js.map +0 -1
  1190. package/lib/SchemaView-CRcShewo.js +0 -366
  1191. package/lib/SchemaView-CRcShewo.js.map +0 -1
  1192. package/lib/Select-C3efYI1n.js +0 -273
  1193. package/lib/Select-C3efYI1n.js.map +0 -1
  1194. package/lib/SignUp-CxBGHgba.js +0 -56
  1195. package/lib/SignUp-CxBGHgba.js.map +0 -1
  1196. package/lib/Slot-DOtTvoyj.js.map +0 -1
  1197. package/lib/SyntaxHighlight-GR0eix_L.js.map +0 -1
  1198. package/lib/Toc-BlcGIkXc.js.map +0 -1
  1199. package/lib/ZudokuContext-BuJD7yIX.js +0 -1286
  1200. package/lib/ZudokuContext-BuJD7yIX.js.map +0 -1
  1201. package/lib/chunk-QMGIS6GS-DqecZ6nq.js +0 -9204
  1202. package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +0 -1
  1203. package/lib/createServer-DjgpuLne.js.map +0 -1
  1204. package/lib/errors-CrI3s7mR.js.map +0 -1
  1205. package/lib/hook-bv3iuX7X.js +0 -247
  1206. package/lib/hook-bv3iuX7X.js.map +0 -1
  1207. package/lib/index-CvTWnHZF.js +0 -3391
  1208. package/lib/index-CvTWnHZF.js.map +0 -1
  1209. package/lib/index-DmNq2fbN.js.map +0 -1
  1210. package/lib/index-DzO-Qh6S.js.map +0 -1
  1211. package/lib/index-HarEI51d.js.map +0 -1
  1212. package/lib/index.esm-CdzlRw50.js +0 -1254
  1213. package/lib/index.esm-CdzlRw50.js.map +0 -1
  1214. package/lib/jsx-runtime-C5mzlN2N.js.map +0 -1
  1215. package/src/lib/components/ReactMarkdown.license.txt +0 -21
  1216. package/src/lib/components/ReactMarkdown.tsx +0 -264
  1217. package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
  1218. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
  1219. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -57
  1220. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -33
@@ -1,1286 +0,0 @@
1
- import * as y from "react";
2
- import { createContext as mt, useContext as bt } from "react";
3
- import { j as gt } from "./jsx-runtime-C5mzlN2N.js";
4
- import { aM as A, an as W } from "./chunk-QMGIS6GS-DqecZ6nq.js";
5
- import { c as Rt } from "./index-DI5SPFK9.js";
6
- var B = class {
7
- constructor() {
8
- this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
9
- }
10
- subscribe(t) {
11
- return this.listeners.add(t), this.onSubscribe(), () => {
12
- this.listeners.delete(t), this.onUnsubscribe();
13
- };
14
- }
15
- hasListeners() {
16
- return this.listeners.size > 0;
17
- }
18
- onSubscribe() {
19
- }
20
- onUnsubscribe() {
21
- }
22
- }, C = typeof window > "u" || "Deno" in globalThis;
23
- function O() {
24
- }
25
- function ne(t, e) {
26
- return typeof t == "function" ? t(e) : t;
27
- }
28
- function U(t) {
29
- return typeof t == "number" && t >= 0 && t !== 1 / 0;
30
- }
31
- function rt(t, e) {
32
- return Math.max(t + (e || 0) - Date.now(), 0);
33
- }
34
- function I(t, e) {
35
- return typeof t == "function" ? t(e) : t;
36
- }
37
- function m(t, e) {
38
- return typeof t == "function" ? t(e) : t;
39
- }
40
- function ae(t, e) {
41
- const {
42
- type: s = "all",
43
- exact: r,
44
- fetchStatus: i,
45
- predicate: o,
46
- queryKey: a,
47
- stale: u
48
- } = t;
49
- if (a) {
50
- if (r) {
51
- if (e.queryHash !== St(a, e.options))
52
- return !1;
53
- } else if (!G(e.queryKey, a))
54
- return !1;
55
- }
56
- if (s !== "all") {
57
- const n = e.isActive();
58
- if (s === "active" && !n || s === "inactive" && n)
59
- return !1;
60
- }
61
- return !(typeof u == "boolean" && e.isStale() !== u || i && i !== e.state.fetchStatus || o && !o(e));
62
- }
63
- function oe(t, e) {
64
- const { exact: s, status: r, predicate: i, mutationKey: o } = t;
65
- if (o) {
66
- if (!e.options.mutationKey)
67
- return !1;
68
- if (s) {
69
- if (j(e.options.mutationKey) !== j(o))
70
- return !1;
71
- } else if (!G(e.options.mutationKey, o))
72
- return !1;
73
- }
74
- return !(r && e.state.status !== r || i && !i(e));
75
- }
76
- function St(t, e) {
77
- return (e?.queryKeyHashFn || j)(t);
78
- }
79
- function j(t) {
80
- return JSON.stringify(
81
- t,
82
- (e, s) => L(s) ? Object.keys(s).sort().reduce((r, i) => (r[i] = s[i], r), {}) : s
83
- );
84
- }
85
- function G(t, e) {
86
- return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((s) => G(t[s], e[s])) : !1;
87
- }
88
- function M(t, e) {
89
- if (t === e)
90
- return t;
91
- const s = Y(t) && Y(e);
92
- if (s || L(t) && L(e)) {
93
- const r = s ? t : Object.keys(t), i = r.length, o = s ? e : Object.keys(e), a = o.length, u = s ? [] : {}, n = new Set(r);
94
- let h = 0;
95
- for (let c = 0; c < a; c++) {
96
- const l = s ? c : o[c];
97
- (!s && n.has(l) || s) && t[l] === void 0 && e[l] === void 0 ? (u[l] = void 0, h++) : (u[l] = M(t[l], e[l]), u[l] === t[l] && t[l] !== void 0 && h++);
98
- }
99
- return i === a && h === i ? t : u;
100
- }
101
- return e;
102
- }
103
- function N(t, e) {
104
- if (!e || Object.keys(t).length !== Object.keys(e).length)
105
- return !1;
106
- for (const s in t)
107
- if (t[s] !== e[s])
108
- return !1;
109
- return !0;
110
- }
111
- function Y(t) {
112
- return Array.isArray(t) && t.length === Object.keys(t).length;
113
- }
114
- function L(t) {
115
- if (!X(t))
116
- return !1;
117
- const e = t.constructor;
118
- if (e === void 0)
119
- return !0;
120
- const s = e.prototype;
121
- return !(!X(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
122
- }
123
- function X(t) {
124
- return Object.prototype.toString.call(t) === "[object Object]";
125
- }
126
- function Ct(t) {
127
- return new Promise((e) => {
128
- setTimeout(e, t);
129
- });
130
- }
131
- function _(t, e, s) {
132
- if (typeof s.structuralSharing == "function")
133
- return s.structuralSharing(t, e);
134
- if (s.structuralSharing !== !1) {
135
- if (process.env.NODE_ENV !== "production")
136
- try {
137
- return M(t, e);
138
- } catch (r) {
139
- throw console.error(
140
- `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${s.queryHash}]: ${r}`
141
- ), r;
142
- }
143
- return M(t, e);
144
- }
145
- return e;
146
- }
147
- function ue(t) {
148
- return t;
149
- }
150
- function ce(t, e, s = 0) {
151
- const r = [...t, e];
152
- return s && r.length > s ? r.slice(1) : r;
153
- }
154
- function he(t, e, s = 0) {
155
- const r = [e, ...t];
156
- return s && r.length > s ? r.slice(0, -1) : r;
157
- }
158
- var q = Symbol();
159
- function Ot(t, e) {
160
- return process.env.NODE_ENV !== "production" && t.queryFn === q && console.error(
161
- `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
162
- ), !t.queryFn && e?.initialPromise ? () => e.initialPromise : !t.queryFn || t.queryFn === q ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
163
- }
164
- function wt(t, e) {
165
- return typeof t == "function" ? t(...e) : !!t;
166
- }
167
- var Ft = class extends B {
168
- #e;
169
- #t;
170
- #s;
171
- constructor() {
172
- super(), this.#s = (t) => {
173
- if (!C && window.addEventListener) {
174
- const e = () => t();
175
- return window.addEventListener("visibilitychange", e, !1), () => {
176
- window.removeEventListener("visibilitychange", e);
177
- };
178
- }
179
- };
180
- }
181
- onSubscribe() {
182
- this.#t || this.setEventListener(this.#s);
183
- }
184
- onUnsubscribe() {
185
- this.hasListeners() || (this.#t?.(), this.#t = void 0);
186
- }
187
- setEventListener(t) {
188
- this.#s = t, this.#t?.(), this.#t = t((e) => {
189
- typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
190
- });
191
- }
192
- setFocused(t) {
193
- this.#e !== t && (this.#e = t, this.onFocus());
194
- }
195
- onFocus() {
196
- const t = this.isFocused();
197
- this.listeners.forEach((e) => {
198
- e(t);
199
- });
200
- }
201
- isFocused() {
202
- return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
203
- }
204
- }, it = new Ft(), Et = class extends B {
205
- #e = !0;
206
- #t;
207
- #s;
208
- constructor() {
209
- super(), this.#s = (t) => {
210
- if (!C && window.addEventListener) {
211
- const e = () => t(!0), s = () => t(!1);
212
- return window.addEventListener("online", e, !1), window.addEventListener("offline", s, !1), () => {
213
- window.removeEventListener("online", e), window.removeEventListener("offline", s);
214
- };
215
- }
216
- };
217
- }
218
- onSubscribe() {
219
- this.#t || this.setEventListener(this.#s);
220
- }
221
- onUnsubscribe() {
222
- this.hasListeners() || (this.#t?.(), this.#t = void 0);
223
- }
224
- setEventListener(t) {
225
- this.#s = t, this.#t?.(), this.#t = t(this.setOnline.bind(this));
226
- }
227
- setOnline(t) {
228
- this.#e !== t && (this.#e = t, this.listeners.forEach((s) => {
229
- s(t);
230
- }));
231
- }
232
- isOnline() {
233
- return this.#e;
234
- }
235
- }, nt = new Et();
236
- function K() {
237
- let t, e;
238
- const s = new Promise((i, o) => {
239
- t = i, e = o;
240
- });
241
- s.status = "pending", s.catch(() => {
242
- });
243
- function r(i) {
244
- Object.assign(s, i), delete s.resolve, delete s.reject;
245
- }
246
- return s.resolve = (i) => {
247
- r({
248
- status: "fulfilled",
249
- value: i
250
- }), t(i);
251
- }, s.reject = (i) => {
252
- r({
253
- status: "rejected",
254
- reason: i
255
- }), e(i);
256
- }, s;
257
- }
258
- function le(t) {
259
- let e;
260
- if (t.then((s) => (e = s, s), O)?.catch(O), e !== void 0)
261
- return { data: e };
262
- }
263
- function It(t) {
264
- return Math.min(1e3 * 2 ** t, 3e4);
265
- }
266
- function at(t) {
267
- return (t ?? "online") === "online" ? nt.isOnline() : !0;
268
- }
269
- var ot = class extends Error {
270
- constructor(t) {
271
- super("CancelledError"), this.revert = t?.revert, this.silent = t?.silent;
272
- }
273
- };
274
- function Q(t) {
275
- return t instanceof ot;
276
- }
277
- function Pt(t) {
278
- let e = !1, s = 0, r = !1, i;
279
- const o = K(), a = (f) => {
280
- r || (d(new ot(f)), t.abort?.());
281
- }, u = () => {
282
- e = !0;
283
- }, n = () => {
284
- e = !1;
285
- }, h = () => it.isFocused() && (t.networkMode === "always" || nt.isOnline()) && t.canRun(), c = () => at(t.networkMode) && t.canRun(), l = (f) => {
286
- r || (r = !0, t.onSuccess?.(f), i?.(), o.resolve(f));
287
- }, d = (f) => {
288
- r || (r = !0, t.onError?.(f), i?.(), o.reject(f));
289
- }, P = () => new Promise((f) => {
290
- i = (F) => {
291
- (r || h()) && f(F);
292
- }, t.onPause?.();
293
- }).then(() => {
294
- i = void 0, r || t.onContinue?.();
295
- }), w = () => {
296
- if (r)
297
- return;
298
- let f;
299
- const F = s === 0 ? t.initialPromise : void 0;
300
- try {
301
- f = F ?? t.fn();
302
- } catch (v) {
303
- f = Promise.reject(v);
304
- }
305
- Promise.resolve(f).then(l).catch((v) => {
306
- if (r)
307
- return;
308
- const g = t.retry ?? (C ? 0 : 3), S = t.retryDelay ?? It, x = typeof S == "function" ? S(s, v) : S, T = g === !0 || typeof g == "number" && s < g || typeof g == "function" && g(s, v);
309
- if (e || !T) {
310
- d(v);
311
- return;
312
- }
313
- s++, t.onFail?.(s, v), Ct(x).then(() => h() ? void 0 : P()).then(() => {
314
- e ? d(v) : w();
315
- });
316
- });
317
- };
318
- return {
319
- promise: o,
320
- cancel: a,
321
- continue: () => (i?.(), o),
322
- cancelRetry: u,
323
- continueRetry: n,
324
- canStart: c,
325
- start: () => (c() ? w() : P().then(w), o)
326
- };
327
- }
328
- var xt = (t) => setTimeout(t, 0);
329
- function Tt() {
330
- let t = [], e = 0, s = (u) => {
331
- u();
332
- }, r = (u) => {
333
- u();
334
- }, i = xt;
335
- const o = (u) => {
336
- e ? t.push(u) : i(() => {
337
- s(u);
338
- });
339
- }, a = () => {
340
- const u = t;
341
- t = [], u.length && i(() => {
342
- r(() => {
343
- u.forEach((n) => {
344
- s(n);
345
- });
346
- });
347
- });
348
- };
349
- return {
350
- batch: (u) => {
351
- let n;
352
- e++;
353
- try {
354
- n = u();
355
- } finally {
356
- e--, e || a();
357
- }
358
- return n;
359
- },
360
- /**
361
- * All calls to the wrapped function will be batched.
362
- */
363
- batchCalls: (u) => (...n) => {
364
- o(() => {
365
- u(...n);
366
- });
367
- },
368
- schedule: o,
369
- /**
370
- * Use this method to set a custom notify function.
371
- * This can be used to for example wrap notifications with `React.act` while running tests.
372
- */
373
- setNotifyFunction: (u) => {
374
- s = u;
375
- },
376
- /**
377
- * Use this method to set a custom function to batch notifications together into a single tick.
378
- * By default React Query will use the batch function provided by ReactDOM or React Native.
379
- */
380
- setBatchNotifyFunction: (u) => {
381
- r = u;
382
- },
383
- setScheduler: (u) => {
384
- i = u;
385
- }
386
- };
387
- }
388
- var V = Tt(), Dt = class {
389
- #e;
390
- destroy() {
391
- this.clearGcTimeout();
392
- }
393
- scheduleGc() {
394
- this.clearGcTimeout(), U(this.gcTime) && (this.#e = setTimeout(() => {
395
- this.optionalRemove();
396
- }, this.gcTime));
397
- }
398
- updateGcTime(t) {
399
- this.gcTime = Math.max(
400
- this.gcTime || 0,
401
- t ?? (C ? 1 / 0 : 5 * 60 * 1e3)
402
- );
403
- }
404
- clearGcTimeout() {
405
- this.#e && (clearTimeout(this.#e), this.#e = void 0);
406
- }
407
- }, fe = class extends Dt {
408
- #e;
409
- #t;
410
- #s;
411
- #i;
412
- #r;
413
- #o;
414
- #a;
415
- constructor(t) {
416
- super(), this.#a = !1, this.#o = t.defaultOptions, this.setOptions(t.options), this.observers = [], this.#i = t.client, this.#s = this.#i.getQueryCache(), this.queryKey = t.queryKey, this.queryHash = t.queryHash, this.#e = kt(this.options), this.state = t.state ?? this.#e, this.scheduleGc();
417
- }
418
- get meta() {
419
- return this.options.meta;
420
- }
421
- get promise() {
422
- return this.#r?.promise;
423
- }
424
- setOptions(t) {
425
- this.options = { ...this.#o, ...t }, this.updateGcTime(this.options.gcTime);
426
- }
427
- optionalRemove() {
428
- !this.observers.length && this.state.fetchStatus === "idle" && this.#s.remove(this);
429
- }
430
- setData(t, e) {
431
- const s = _(this.state.data, t, this.options);
432
- return this.#n({
433
- data: s,
434
- type: "success",
435
- dataUpdatedAt: e?.updatedAt,
436
- manual: e?.manual
437
- }), s;
438
- }
439
- setState(t, e) {
440
- this.#n({ type: "setState", state: t, setStateOptions: e });
441
- }
442
- cancel(t) {
443
- const e = this.#r?.promise;
444
- return this.#r?.cancel(t), e ? e.then(O).catch(O) : Promise.resolve();
445
- }
446
- destroy() {
447
- super.destroy(), this.cancel({ silent: !0 });
448
- }
449
- reset() {
450
- this.destroy(), this.setState(this.#e);
451
- }
452
- isActive() {
453
- return this.observers.some(
454
- (t) => m(t.options.enabled, this) !== !1
455
- );
456
- }
457
- isDisabled() {
458
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === q || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
459
- }
460
- isStatic() {
461
- return this.getObserversCount() > 0 ? this.observers.some(
462
- (t) => I(t.options.staleTime, this) === "static"
463
- ) : !1;
464
- }
465
- isStale() {
466
- return this.getObserversCount() > 0 ? this.observers.some(
467
- (t) => t.getCurrentResult().isStale
468
- ) : this.state.data === void 0 || this.state.isInvalidated;
469
- }
470
- isStaleByTime(t = 0) {
471
- return this.state.data === void 0 ? !0 : t === "static" ? !1 : this.state.isInvalidated ? !0 : !rt(this.state.dataUpdatedAt, t);
472
- }
473
- onFocus() {
474
- this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#r?.continue();
475
- }
476
- onOnline() {
477
- this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#r?.continue();
478
- }
479
- addObserver(t) {
480
- this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), this.#s.notify({ type: "observerAdded", query: this, observer: t }));
481
- }
482
- removeObserver(t) {
483
- this.observers.includes(t) && (this.observers = this.observers.filter((e) => e !== t), this.observers.length || (this.#r && (this.#a ? this.#r.cancel({ revert: !0 }) : this.#r.cancelRetry()), this.scheduleGc()), this.#s.notify({ type: "observerRemoved", query: this, observer: t }));
484
- }
485
- getObserversCount() {
486
- return this.observers.length;
487
- }
488
- invalidate() {
489
- this.state.isInvalidated || this.#n({ type: "invalidate" });
490
- }
491
- fetch(t, e) {
492
- if (this.state.fetchStatus !== "idle") {
493
- if (this.state.data !== void 0 && e?.cancelRefetch)
494
- this.cancel({ silent: !0 });
495
- else if (this.#r)
496
- return this.#r.continueRetry(), this.#r.promise;
497
- }
498
- if (t && this.setOptions(t), !this.options.queryFn) {
499
- const n = this.observers.find((h) => h.options.queryFn);
500
- n && this.setOptions(n.options);
501
- }
502
- process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
503
- "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']"
504
- ));
505
- const s = new AbortController(), r = (n) => {
506
- Object.defineProperty(n, "signal", {
507
- enumerable: !0,
508
- get: () => (this.#a = !0, s.signal)
509
- });
510
- }, i = () => {
511
- const n = Ot(this.options, e), c = (() => {
512
- const l = {
513
- client: this.#i,
514
- queryKey: this.queryKey,
515
- meta: this.meta
516
- };
517
- return r(l), l;
518
- })();
519
- return this.#a = !1, this.options.persister ? this.options.persister(
520
- n,
521
- c,
522
- this
523
- ) : n(c);
524
- }, a = (() => {
525
- const n = {
526
- fetchOptions: e,
527
- options: this.options,
528
- queryKey: this.queryKey,
529
- client: this.#i,
530
- state: this.state,
531
- fetchFn: i
532
- };
533
- return r(n), n;
534
- })();
535
- this.options.behavior?.onFetch(a, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#n({ type: "fetch", meta: a.fetchOptions?.meta });
536
- const u = (n) => {
537
- Q(n) && n.silent || this.#n({
538
- type: "error",
539
- error: n
540
- }), Q(n) || (this.#s.config.onError?.(
541
- n,
542
- this
543
- ), this.#s.config.onSettled?.(
544
- this.state.data,
545
- n,
546
- this
547
- )), this.scheduleGc();
548
- };
549
- return this.#r = Pt({
550
- initialPromise: e?.initialPromise,
551
- fn: a.fetchFn,
552
- abort: s.abort.bind(s),
553
- onSuccess: (n) => {
554
- if (n === void 0) {
555
- process.env.NODE_ENV !== "production" && console.error(
556
- `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
557
- ), u(new Error(`${this.queryHash} data is undefined`));
558
- return;
559
- }
560
- try {
561
- this.setData(n);
562
- } catch (h) {
563
- u(h);
564
- return;
565
- }
566
- this.#s.config.onSuccess?.(n, this), this.#s.config.onSettled?.(
567
- n,
568
- this.state.error,
569
- this
570
- ), this.scheduleGc();
571
- },
572
- onError: u,
573
- onFail: (n, h) => {
574
- this.#n({ type: "failed", failureCount: n, error: h });
575
- },
576
- onPause: () => {
577
- this.#n({ type: "pause" });
578
- },
579
- onContinue: () => {
580
- this.#n({ type: "continue" });
581
- },
582
- retry: a.options.retry,
583
- retryDelay: a.options.retryDelay,
584
- networkMode: a.options.networkMode,
585
- canRun: () => !0
586
- }), this.#r.start();
587
- }
588
- #n(t) {
589
- const e = (s) => {
590
- switch (t.type) {
591
- case "failed":
592
- return {
593
- ...s,
594
- fetchFailureCount: t.failureCount,
595
- fetchFailureReason: t.error
596
- };
597
- case "pause":
598
- return {
599
- ...s,
600
- fetchStatus: "paused"
601
- };
602
- case "continue":
603
- return {
604
- ...s,
605
- fetchStatus: "fetching"
606
- };
607
- case "fetch":
608
- return {
609
- ...s,
610
- ...ut(s.data, this.options),
611
- fetchMeta: t.meta ?? null
612
- };
613
- case "success":
614
- return this.#t = void 0, {
615
- ...s,
616
- data: t.data,
617
- dataUpdateCount: s.dataUpdateCount + 1,
618
- dataUpdatedAt: t.dataUpdatedAt ?? Date.now(),
619
- error: null,
620
- isInvalidated: !1,
621
- status: "success",
622
- ...!t.manual && {
623
- fetchStatus: "idle",
624
- fetchFailureCount: 0,
625
- fetchFailureReason: null
626
- }
627
- };
628
- case "error":
629
- const r = t.error;
630
- return Q(r) && r.revert && this.#t ? { ...this.#t, fetchStatus: "idle" } : {
631
- ...s,
632
- error: r,
633
- errorUpdateCount: s.errorUpdateCount + 1,
634
- errorUpdatedAt: Date.now(),
635
- fetchFailureCount: s.fetchFailureCount + 1,
636
- fetchFailureReason: r,
637
- fetchStatus: "idle",
638
- status: "error"
639
- };
640
- case "invalidate":
641
- return {
642
- ...s,
643
- isInvalidated: !0
644
- };
645
- case "setState":
646
- return {
647
- ...s,
648
- ...t.state
649
- };
650
- }
651
- };
652
- this.state = e(this.state), V.batch(() => {
653
- this.observers.forEach((s) => {
654
- s.onQueryUpdate();
655
- }), this.#s.notify({ query: this, type: "updated", action: t });
656
- });
657
- }
658
- };
659
- function ut(t, e) {
660
- return {
661
- fetchFailureCount: 0,
662
- fetchFailureReason: null,
663
- fetchStatus: at(e.networkMode) ? "fetching" : "paused",
664
- ...t === void 0 && {
665
- error: null,
666
- status: "pending"
667
- }
668
- };
669
- }
670
- function kt(t) {
671
- 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;
672
- return {
673
- data: e,
674
- dataUpdateCount: 0,
675
- dataUpdatedAt: s ? r ?? Date.now() : 0,
676
- error: null,
677
- errorUpdateCount: 0,
678
- errorUpdatedAt: 0,
679
- fetchFailureCount: 0,
680
- fetchFailureReason: null,
681
- fetchMeta: null,
682
- isInvalidated: !1,
683
- status: s ? "success" : "pending",
684
- fetchStatus: "idle"
685
- };
686
- }
687
- var ct = class extends B {
688
- constructor(t, e) {
689
- super(), this.options = e, this.#e = t, this.#n = null, this.#a = K(), this.options.experimental_prefetchInRender || this.#a.reject(
690
- new Error("experimental_prefetchInRender feature flag is not enabled")
691
- ), this.bindMethods(), this.setOptions(e);
692
- }
693
- #e;
694
- #t = void 0;
695
- #s = void 0;
696
- #i = void 0;
697
- #r;
698
- #o;
699
- #a;
700
- #n;
701
- #y;
702
- #f;
703
- // This property keeps track of the last query with defined data.
704
- // It will be used to pass the previous data and query to the placeholder function between renders.
705
- #d;
706
- #c;
707
- #h;
708
- #u;
709
- #p = /* @__PURE__ */ new Set();
710
- bindMethods() {
711
- this.refetch = this.refetch.bind(this);
712
- }
713
- onSubscribe() {
714
- this.listeners.size === 1 && (this.#t.addObserver(this), tt(this.#t, this.options) ? this.#l() : this.updateResult(), this.#g());
715
- }
716
- onUnsubscribe() {
717
- this.hasListeners() || this.destroy();
718
- }
719
- shouldFetchOnReconnect() {
720
- return H(
721
- this.#t,
722
- this.options,
723
- this.options.refetchOnReconnect
724
- );
725
- }
726
- shouldFetchOnWindowFocus() {
727
- return H(
728
- this.#t,
729
- this.options,
730
- this.options.refetchOnWindowFocus
731
- );
732
- }
733
- destroy() {
734
- this.listeners = /* @__PURE__ */ new Set(), this.#R(), this.#S(), this.#t.removeObserver(this);
735
- }
736
- setOptions(t) {
737
- const e = this.options, s = this.#t;
738
- if (this.options = this.#e.defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof m(this.options.enabled, this.#t) != "boolean")
739
- throw new Error(
740
- "Expected enabled to be a boolean or a callback that returns a boolean"
741
- );
742
- this.#C(), this.#t.setOptions(this.options), e._defaulted && !N(this.options, e) && this.#e.getQueryCache().notify({
743
- type: "observerOptionsUpdated",
744
- query: this.#t,
745
- observer: this
746
- });
747
- const r = this.hasListeners();
748
- r && et(
749
- this.#t,
750
- s,
751
- this.options,
752
- e
753
- ) && this.#l(), this.updateResult(), r && (this.#t !== s || m(this.options.enabled, this.#t) !== m(e.enabled, this.#t) || I(this.options.staleTime, this.#t) !== I(e.staleTime, this.#t)) && this.#v();
754
- const i = this.#m();
755
- r && (this.#t !== s || m(this.options.enabled, this.#t) !== m(e.enabled, this.#t) || i !== this.#u) && this.#b(i);
756
- }
757
- getOptimisticResult(t) {
758
- const e = this.#e.getQueryCache().build(this.#e, t), s = this.createResult(e, t);
759
- return At(this, s) && (this.#i = s, this.#o = this.options, this.#r = this.#t.state), s;
760
- }
761
- getCurrentResult() {
762
- return this.#i;
763
- }
764
- trackResult(t, e) {
765
- return new Proxy(t, {
766
- get: (s, r) => (this.trackProp(r), e?.(r), Reflect.get(s, r))
767
- });
768
- }
769
- trackProp(t) {
770
- this.#p.add(t);
771
- }
772
- getCurrentQuery() {
773
- return this.#t;
774
- }
775
- refetch({ ...t } = {}) {
776
- return this.fetch({
777
- ...t
778
- });
779
- }
780
- fetchOptimistic(t) {
781
- const e = this.#e.defaultQueryOptions(t), s = this.#e.getQueryCache().build(this.#e, e);
782
- return s.fetch().then(() => this.createResult(s, e));
783
- }
784
- fetch(t) {
785
- return this.#l({
786
- ...t,
787
- cancelRefetch: t.cancelRefetch ?? !0
788
- }).then(() => (this.updateResult(), this.#i));
789
- }
790
- #l(t) {
791
- this.#C();
792
- let e = this.#t.fetch(
793
- this.options,
794
- t
795
- );
796
- return t?.throwOnError || (e = e.catch(O)), e;
797
- }
798
- #v() {
799
- this.#R();
800
- const t = I(
801
- this.options.staleTime,
802
- this.#t
803
- );
804
- if (C || this.#i.isStale || !U(t))
805
- return;
806
- const s = rt(this.#i.dataUpdatedAt, t) + 1;
807
- this.#c = setTimeout(() => {
808
- this.#i.isStale || this.updateResult();
809
- }, s);
810
- }
811
- #m() {
812
- return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
813
- }
814
- #b(t) {
815
- this.#S(), this.#u = t, !(C || m(this.options.enabled, this.#t) === !1 || !U(this.#u) || this.#u === 0) && (this.#h = setInterval(() => {
816
- (this.options.refetchIntervalInBackground || it.isFocused()) && this.#l();
817
- }, this.#u));
818
- }
819
- #g() {
820
- this.#v(), this.#b(this.#m());
821
- }
822
- #R() {
823
- this.#c && (clearTimeout(this.#c), this.#c = void 0);
824
- }
825
- #S() {
826
- this.#h && (clearInterval(this.#h), this.#h = void 0);
827
- }
828
- createResult(t, e) {
829
- const s = this.#t, r = this.options, i = this.#i, o = this.#r, a = this.#o, n = t !== s ? t.state : this.#s, { state: h } = t;
830
- let c = { ...h }, l = !1, d;
831
- if (e._optimisticResults) {
832
- const p = this.hasListeners(), D = !p && tt(t, e), E = p && et(t, s, e, r);
833
- (D || E) && (c = {
834
- ...c,
835
- ...ut(h.data, t.options)
836
- }), e._optimisticResults === "isRestoring" && (c.fetchStatus = "idle");
837
- }
838
- let { error: P, errorUpdatedAt: w, status: f } = c;
839
- d = c.data;
840
- let F = !1;
841
- if (e.placeholderData !== void 0 && d === void 0 && f === "pending") {
842
- let p;
843
- i?.isPlaceholderData && e.placeholderData === a?.placeholderData ? (p = i.data, F = !0) : p = typeof e.placeholderData == "function" ? e.placeholderData(
844
- this.#d?.state.data,
845
- this.#d
846
- ) : e.placeholderData, p !== void 0 && (f = "success", d = _(
847
- i?.data,
848
- p,
849
- e
850
- ), l = !0);
851
- }
852
- if (e.select && d !== void 0 && !F)
853
- if (i && d === o?.data && e.select === this.#y)
854
- d = this.#f;
855
- else
856
- try {
857
- this.#y = e.select, d = e.select(d), d = _(i?.data, d, e), this.#f = d, this.#n = null;
858
- } catch (p) {
859
- this.#n = p;
860
- }
861
- this.#n && (P = this.#n, d = this.#f, w = Date.now(), f = "error");
862
- const v = c.fetchStatus === "fetching", g = f === "pending", S = f === "error", x = g && v, T = d !== void 0, b = {
863
- status: f,
864
- fetchStatus: c.fetchStatus,
865
- isPending: g,
866
- isSuccess: f === "success",
867
- isError: S,
868
- isInitialLoading: x,
869
- isLoading: x,
870
- data: d,
871
- dataUpdatedAt: c.dataUpdatedAt,
872
- error: P,
873
- errorUpdatedAt: w,
874
- failureCount: c.fetchFailureCount,
875
- failureReason: c.fetchFailureReason,
876
- errorUpdateCount: c.errorUpdateCount,
877
- isFetched: c.dataUpdateCount > 0 || c.errorUpdateCount > 0,
878
- isFetchedAfterMount: c.dataUpdateCount > n.dataUpdateCount || c.errorUpdateCount > n.errorUpdateCount,
879
- isFetching: v,
880
- isRefetching: v && !g,
881
- isLoadingError: S && !T,
882
- isPaused: c.fetchStatus === "paused",
883
- isPlaceholderData: l,
884
- isRefetchError: S && T,
885
- isStale: $(t, e),
886
- refetch: this.refetch,
887
- promise: this.#a
888
- };
889
- if (this.options.experimental_prefetchInRender) {
890
- const p = (k) => {
891
- b.status === "error" ? k.reject(b.error) : b.data !== void 0 && k.resolve(b.data);
892
- }, D = () => {
893
- const k = this.#a = b.promise = K();
894
- p(k);
895
- }, E = this.#a;
896
- switch (E.status) {
897
- case "pending":
898
- t.queryHash === s.queryHash && p(E);
899
- break;
900
- case "fulfilled":
901
- (b.status === "error" || b.data !== E.value) && D();
902
- break;
903
- case "rejected":
904
- (b.status !== "error" || b.error !== E.reason) && D();
905
- break;
906
- }
907
- }
908
- return b;
909
- }
910
- updateResult() {
911
- const t = this.#i, e = this.createResult(this.#t, this.options);
912
- if (this.#r = this.#t.state, this.#o = this.options, this.#r.data !== void 0 && (this.#d = this.#t), N(e, t))
913
- return;
914
- this.#i = e;
915
- const s = () => {
916
- if (!t)
917
- return !0;
918
- const { notifyOnChangeProps: r } = this.options, i = typeof r == "function" ? r() : r;
919
- if (i === "all" || !i && !this.#p.size)
920
- return !0;
921
- const o = new Set(
922
- i ?? this.#p
923
- );
924
- return this.options.throwOnError && o.add("error"), Object.keys(this.#i).some((a) => {
925
- const u = a;
926
- return this.#i[u] !== t[u] && o.has(u);
927
- });
928
- };
929
- this.#O({ listeners: s() });
930
- }
931
- #C() {
932
- const t = this.#e.getQueryCache().build(this.#e, this.options);
933
- if (t === this.#t)
934
- return;
935
- const e = this.#t;
936
- this.#t = t, this.#s = t.state, this.hasListeners() && (e?.removeObserver(this), t.addObserver(this));
937
- }
938
- onQueryUpdate() {
939
- this.updateResult(), this.hasListeners() && this.#g();
940
- }
941
- #O(t) {
942
- V.batch(() => {
943
- t.listeners && this.listeners.forEach((e) => {
944
- e(this.#i);
945
- }), this.#e.getQueryCache().notify({
946
- query: this.#t,
947
- type: "observerResultsUpdated"
948
- });
949
- });
950
- }
951
- };
952
- function qt(t, e) {
953
- return m(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
954
- }
955
- function tt(t, e) {
956
- return qt(t, e) || t.state.data !== void 0 && H(t, e, e.refetchOnMount);
957
- }
958
- function H(t, e, s) {
959
- if (m(e.enabled, t) !== !1 && I(e.staleTime, t) !== "static") {
960
- const r = typeof s == "function" ? s(t) : s;
961
- return r === "always" || r !== !1 && $(t, e);
962
- }
963
- return !1;
964
- }
965
- function et(t, e, s, r) {
966
- return (t !== e || m(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && $(t, s);
967
- }
968
- function $(t, e) {
969
- return m(e.enabled, t) !== !1 && t.isStaleByTime(I(e.staleTime, t));
970
- }
971
- function At(t, e) {
972
- return !N(t.getCurrentResult(), e);
973
- }
974
- var ht = y.createContext(
975
- void 0
976
- ), lt = (t) => {
977
- const e = y.useContext(ht);
978
- if (t)
979
- return t;
980
- if (!e)
981
- throw new Error("No QueryClient set, use QueryClientProvider to set one");
982
- return e;
983
- }, de = ({
984
- client: t,
985
- children: e
986
- }) => (y.useEffect(() => (t.mount(), () => {
987
- t.unmount();
988
- }), [t]), /* @__PURE__ */ gt.jsx(ht.Provider, { value: t, children: e })), ft = y.createContext(!1), Qt = () => y.useContext(ft);
989
- ft.Provider;
990
- function Ut() {
991
- let t = !1;
992
- return {
993
- clearReset: () => {
994
- t = !1;
995
- },
996
- reset: () => {
997
- t = !0;
998
- },
999
- isReset: () => t
1000
- };
1001
- }
1002
- var jt = y.createContext(Ut()), Mt = () => y.useContext(jt), Nt = (t, e) => {
1003
- (t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
1004
- }, Lt = (t) => {
1005
- y.useEffect(() => {
1006
- t.clearReset();
1007
- }, [t]);
1008
- }, _t = ({
1009
- result: t,
1010
- errorResetBoundary: e,
1011
- throwOnError: s,
1012
- query: r,
1013
- suspense: i
1014
- }) => t.isError && !e.isReset() && !t.isFetching && r && (i && t.data === void 0 || wt(s, [t.error, r])), Kt = (t, e) => e.state.data === void 0, Ht = (t) => {
1015
- if (t.suspense) {
1016
- const e = (r) => r === "static" ? r : Math.max(r ?? 1e3, 1e3), s = t.staleTime;
1017
- t.staleTime = typeof s == "function" ? (...r) => e(s(...r)) : e(s), typeof t.gcTime == "number" && (t.gcTime = Math.max(t.gcTime, 1e3));
1018
- }
1019
- }, zt = (t, e) => t.isLoading && t.isFetching && !e, Bt = (t, e) => t?.suspense && e.isPending, st = (t, e, s) => e.fetchOptimistic(t).catch(() => {
1020
- s.clearReset();
1021
- });
1022
- function dt(t, e, s) {
1023
- if (process.env.NODE_ENV !== "production" && (typeof t != "object" || Array.isArray(t)))
1024
- throw new Error(
1025
- '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'
1026
- );
1027
- const r = Qt(), i = Mt(), o = lt(s), a = o.defaultQueryOptions(t);
1028
- o.getDefaultOptions().queries?._experimental_beforeQuery?.(
1029
- a
1030
- ), process.env.NODE_ENV !== "production" && (a.queryFn || console.error(
1031
- `[${a.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
1032
- )), a._optimisticResults = r ? "isRestoring" : "optimistic", Ht(a), Nt(a, i), Lt(i);
1033
- const u = !o.getQueryCache().get(a.queryHash), [n] = y.useState(
1034
- () => new e(
1035
- o,
1036
- a
1037
- )
1038
- ), h = n.getOptimisticResult(a), c = !r && t.subscribed !== !1;
1039
- if (y.useSyncExternalStore(
1040
- y.useCallback(
1041
- (l) => {
1042
- const d = c ? n.subscribe(V.batchCalls(l)) : O;
1043
- return n.updateResult(), d;
1044
- },
1045
- [n, c]
1046
- ),
1047
- () => n.getCurrentResult(),
1048
- () => n.getCurrentResult()
1049
- ), y.useEffect(() => {
1050
- n.setOptions(a);
1051
- }, [a, n]), Bt(a, h))
1052
- throw st(a, n, i);
1053
- if (_t({
1054
- result: h,
1055
- errorResetBoundary: i,
1056
- throwOnError: a.throwOnError,
1057
- query: o.getQueryCache().get(a.queryHash),
1058
- suspense: a.suspense
1059
- }))
1060
- throw h.error;
1061
- return o.getDefaultOptions().queries?._experimental_afterQuery?.(
1062
- a,
1063
- h
1064
- ), a.experimental_prefetchInRender && !C && zt(h, r) && (u ? (
1065
- // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1066
- st(a, n, i)
1067
- ) : (
1068
- // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
1069
- o.getQueryCache().get(a.queryHash)?.promise
1070
- ))?.catch(O).finally(() => {
1071
- n.updateResult();
1072
- }), a.notifyOnChangeProps ? h : n.trackResult(h);
1073
- }
1074
- function Gt(t, e) {
1075
- return dt(t, ct, e);
1076
- }
1077
- function Vt(t, e) {
1078
- return process.env.NODE_ENV !== "production" && t.queryFn === q && console.error("skipToken is not allowed for useSuspenseQuery"), dt(
1079
- {
1080
- ...t,
1081
- enabled: !0,
1082
- suspense: !0,
1083
- throwOnError: Kt,
1084
- placeholderData: void 0
1085
- },
1086
- ct,
1087
- e
1088
- );
1089
- }
1090
- const $t = /^(\w+:\/\/[^/?]+)?([^?]*)(\?.*)?$/, Zt = (t) => t.filter(
1091
- (e) => e != null && e !== !1 && (typeof e == "string" || typeof e == "number")
1092
- ).map((e) => `${e}`).filter((e) => e), Jt = (t) => {
1093
- const e = t.join("/"), [, s = "", r = ""] = e.match($t) ?? [];
1094
- return {
1095
- prefix: s,
1096
- pathname: r.split("/").filter((i) => i !== "")
1097
- };
1098
- }, Wt = (t) => {
1099
- const { prefix: e, pathname: s } = t;
1100
- let r = e;
1101
- return s.length > 0 ? (r ? r += "/" : r = "/", r += s.join("/")) : r || (r = "/"), r;
1102
- }, R = (...t) => {
1103
- const e = Zt(t), s = Jt(e);
1104
- return Wt(s);
1105
- }, pt = Object.freeze({
1106
- API_IDENTITIES: ["api-identities"]
1107
- }), pe = () => {
1108
- const t = lt();
1109
- return {
1110
- invalidateCache: async (e) => {
1111
- await t.invalidateQueries({ queryKey: pt[e] });
1112
- }
1113
- };
1114
- }, ye = "no-dehydrate", Z = (t, e) => {
1115
- for (const s of t) {
1116
- const r = J(s, e);
1117
- if (r !== void 0) return r;
1118
- }
1119
- }, J = (t, e, s = []) => {
1120
- const r = e(t, s);
1121
- if (r !== void 0) return r;
1122
- if (t.type === "category")
1123
- for (const i of t.items) {
1124
- const o = J(i, e, [
1125
- ...s,
1126
- t
1127
- ]);
1128
- if (o !== void 0) return o;
1129
- }
1130
- }, ve = () => {
1131
- const t = A(), { navigation: e } = vt();
1132
- return Z(e, (s) => {
1133
- if (s.type === "doc" && R(s.path) === t.pathname)
1134
- return s;
1135
- });
1136
- }, me = (t) => {
1137
- const e = A();
1138
- return J(t, (s) => {
1139
- switch (s.type) {
1140
- case "category":
1141
- return s.link && R(s.link.path) === e.pathname ? !0 : void 0;
1142
- case "custom-page":
1143
- case "doc":
1144
- return R(s.path) === e.pathname ? !0 : void 0;
1145
- case "link":
1146
- default:
1147
- return;
1148
- }
1149
- });
1150
- }, be = () => {
1151
- const t = A().pathname, { navigation: e } = vt();
1152
- let s, r, i = !1;
1153
- return Z(e, (o) => {
1154
- const a = o.type === "doc" ? R(o.path) : o.type === "category" && o.link ? R(o.link.path) : void 0;
1155
- if (a) {
1156
- if (i)
1157
- return r = { label: o.label, id: a }, !0;
1158
- t === a ? i = !0 : s = { label: o.label, id: a };
1159
- }
1160
- }), { prev: s, next: r };
1161
- }, ge = Rt(
1162
- "relative flex items-center gap-2 px-(--padding-nav-item) my-0.5 py-1.5 rounded-lg hover:bg-accent tabular-nums",
1163
- {
1164
- variants: {
1165
- isActive: {
1166
- true: "bg-accent font-medium",
1167
- false: "text-foreground/80"
1168
- },
1169
- isMuted: {
1170
- true: "text-foreground/30",
1171
- false: ""
1172
- },
1173
- isPending: {
1174
- true: "bg-accent animate-pulse",
1175
- false: ""
1176
- }
1177
- },
1178
- defaultVariants: {
1179
- isActive: !1
1180
- }
1181
- }
1182
- ), Re = (t, e) => (s) => typeof s.display == "function" ? s.display({ context: e, auth: t }) : s.display === "hide" || !s.label ? !1 : s.display === "auth" && t.isAuthenticated || s.display === "anon" && !t.isAuthenticated || !s.display || s.display === "always", Yt = mt(
1183
- void 0
1184
- ), yt = () => {
1185
- const t = bt(Yt);
1186
- if (!t)
1187
- throw new Error("useZudoku must be used within a ZudokuProvider.");
1188
- return t;
1189
- }, Se = () => {
1190
- const { getApiIdentities: t } = yt();
1191
- return Gt({
1192
- queryFn: t,
1193
- queryKey: pt.API_IDENTITIES
1194
- });
1195
- }, z = (t) => {
1196
- switch (t.type) {
1197
- case "doc":
1198
- return R(t.path);
1199
- case "category":
1200
- return t.link ? R(t.link.path) : void 0;
1201
- case "link":
1202
- return t.to;
1203
- case "custom-page":
1204
- return R(t.path);
1205
- default:
1206
- return;
1207
- }
1208
- }, Xt = (t) => {
1209
- const e = /* @__PURE__ */ new Set(), s = (r) => {
1210
- for (const i of r) {
1211
- const o = z(i)?.split("?").at(0)?.split("#").at(0);
1212
- o && e.add(o), i.type === "category" && s(i.items);
1213
- }
1214
- };
1215
- return s(t), [...e];
1216
- }, vt = () => {
1217
- const { getPluginNavigation: t, navigation: e } = yt(), s = A(), r = Z(e, (a, u) => {
1218
- if (z(a) === s.pathname)
1219
- return u.at(0) ?? a;
1220
- }), { data: i } = Vt({
1221
- queryFn: () => t(s.pathname),
1222
- queryKey: ["plugin-navigation", s.pathname]
1223
- });
1224
- let o = r;
1225
- if (!r && i.length > 0) {
1226
- const a = Xt(i);
1227
- o = e.flatMap((u) => {
1228
- const n = z(u);
1229
- return n ? [{ item: u, path: n }] : [];
1230
- }).sort((u, n) => n.path.length - u.path.length).find(({ path: u }) => a.some(
1231
- (n) => W({ path: u, end: !1 }, n) ?? W({ path: n, end: !1 }, u)
1232
- ))?.item;
1233
- }
1234
- return {
1235
- navigation: [
1236
- ...r?.type === "category" ? r.items : [],
1237
- ...i
1238
- ],
1239
- topNavItem: o
1240
- };
1241
- };
1242
- export {
1243
- nt as A,
1244
- I as B,
1245
- pt as C,
1246
- ne as D,
1247
- G as E,
1248
- q as F,
1249
- le as G,
1250
- de as H,
1251
- Se as I,
1252
- me as J,
1253
- ge as K,
1254
- ye as N,
1255
- fe as Q,
1256
- Dt as R,
1257
- B as S,
1258
- Yt as Z,
1259
- be as a,
1260
- Vt as b,
1261
- Pt as c,
1262
- yt as d,
1263
- Gt as e,
1264
- pe as f,
1265
- lt as g,
1266
- j as h,
1267
- O as i,
1268
- R as j,
1269
- wt as k,
1270
- ue as l,
1271
- Re as m,
1272
- V as n,
1273
- vt as o,
1274
- J as p,
1275
- St as q,
1276
- ae as r,
1277
- N as s,
1278
- Z as t,
1279
- ve as u,
1280
- oe as v,
1281
- Ot as w,
1282
- he as x,
1283
- ce as y,
1284
- it as z
1285
- };
1286
- //# sourceMappingURL=ZudokuContext-BuJD7yIX.js.map