zudoku 0.0.0-f2c28ed → 0.0.0-f36627bd

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 (1429) hide show
  1. package/README.md +33 -13
  2. package/cli.js +1 -0
  3. package/dist/app/ZuploBuildConfig.d.ts +10 -120
  4. package/dist/app/ZuploBuildConfig.js +7 -7
  5. package/dist/app/ZuploBuildConfig.js.map +1 -1
  6. package/dist/app/demo.js +22 -6
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +0 -2
  9. package/dist/app/entry.client.js +6 -7
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +0 -2
  12. package/dist/app/entry.server.js +3 -5
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +7 -7
  15. package/dist/app/env.js +10 -2
  16. package/dist/app/env.js.map +1 -1
  17. package/dist/app/main.d.ts +2 -1
  18. package/dist/app/main.js +30 -48
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/standalone.js +11 -7
  21. package/dist/app/standalone.js.map +1 -1
  22. package/dist/cli/build/handler.js +9 -1
  23. package/dist/cli/build/handler.js.map +1 -1
  24. package/dist/cli/cli.js +2 -1
  25. package/dist/cli/cli.js.map +1 -1
  26. package/dist/cli/cmds/build.d.ts +1 -1
  27. package/dist/cli/cmds/dev.d.ts +1 -1
  28. package/dist/cli/cmds/preview.d.ts +1 -1
  29. package/dist/cli/common/analytics/lib.js +1 -1
  30. package/dist/cli/common/analytics/lib.js.map +1 -1
  31. package/dist/cli/common/logger.js +0 -1
  32. package/dist/cli/common/logger.js.map +1 -1
  33. package/dist/cli/common/machine-id/lib.js +3 -2
  34. package/dist/cli/common/machine-id/lib.js.map +1 -1
  35. package/dist/cli/common/outdated.js +2 -1
  36. package/dist/cli/common/outdated.js.map +1 -1
  37. package/dist/cli/common/output.js +2 -3
  38. package/dist/cli/common/output.js.map +1 -1
  39. package/dist/cli/common/utils/box.js +2 -2
  40. package/dist/cli/common/utils/box.js.map +1 -1
  41. package/dist/cli/common/validators/lib.js +1 -1
  42. package/dist/cli/common/validators/lib.js.map +1 -1
  43. package/dist/cli/dev/handler.js +0 -4
  44. package/dist/cli/dev/handler.js.map +1 -1
  45. package/dist/codegen.js +2 -2
  46. package/dist/codegen.js.map +1 -1
  47. package/dist/config/config.d.ts +14 -2
  48. package/dist/config/file-exists.d.ts +1 -0
  49. package/dist/config/file-exists.js +5 -0
  50. package/dist/config/file-exists.js.map +1 -0
  51. package/dist/config/loader.d.ts +19 -4
  52. package/dist/config/loader.js +91 -15
  53. package/dist/config/loader.js.map +1 -1
  54. package/dist/config/validators/BuildSchema.d.ts +20 -44
  55. package/dist/config/validators/BuildSchema.js +10 -16
  56. package/dist/config/validators/BuildSchema.js.map +1 -1
  57. package/dist/config/validators/InputNavigationSchema.d.ts +7562 -0
  58. package/dist/config/validators/InputNavigationSchema.js +77 -0
  59. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  60. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  61. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  62. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  63. package/dist/config/validators/NavigationSchema.js +98 -0
  64. package/dist/config/validators/NavigationSchema.js.map +1 -0
  65. package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
  66. package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
  67. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  68. package/dist/config/validators/auth.d.ts +2 -2
  69. package/dist/config/validators/auth.js +1 -1
  70. package/dist/config/validators/auth.js.map +1 -1
  71. package/dist/config/validators/icon-types.d.ts +2 -1
  72. package/dist/config/validators/icon-types.js +1852 -1
  73. package/dist/config/validators/icon-types.js.map +1 -1
  74. package/dist/config/validators/validate.d.ts +583 -2861
  75. package/dist/config/validators/validate.js +441 -18
  76. package/dist/config/validators/validate.js.map +1 -1
  77. package/dist/config/validators/validate.test.d.ts +1 -0
  78. package/dist/config/validators/validate.test.js +140 -0
  79. package/dist/config/validators/validate.test.js.map +1 -0
  80. package/dist/flat-config.d.ts +331 -0
  81. package/dist/index.d.ts +8 -5
  82. package/dist/index.js +4 -1
  83. package/dist/index.js.map +1 -1
  84. package/dist/lib/MissingIcon.d.ts +1 -1
  85. package/dist/lib/MissingIcon.js.map +1 -1
  86. package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
  87. package/dist/lib/assets/language-icons/csharp.js +4 -0
  88. package/dist/lib/assets/language-icons/csharp.js.map +1 -0
  89. package/dist/lib/assets/language-icons/css.d.ts +3 -0
  90. package/dist/lib/assets/language-icons/css.js +4 -0
  91. package/dist/lib/assets/language-icons/css.js.map +1 -0
  92. package/dist/lib/assets/language-icons/go.d.ts +3 -0
  93. package/dist/lib/assets/language-icons/go.js +4 -0
  94. package/dist/lib/assets/language-icons/go.js.map +1 -0
  95. package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
  96. package/dist/lib/assets/language-icons/graphql.js +4 -0
  97. package/dist/lib/assets/language-icons/graphql.js.map +1 -0
  98. package/dist/lib/assets/language-icons/html.d.ts +3 -0
  99. package/dist/lib/assets/language-icons/html.js +4 -0
  100. package/dist/lib/assets/language-icons/html.js.map +1 -0
  101. package/dist/lib/assets/language-icons/java.d.ts +3 -0
  102. package/dist/lib/assets/language-icons/java.js +4 -0
  103. package/dist/lib/assets/language-icons/java.js.map +1 -0
  104. package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
  105. package/dist/lib/assets/language-icons/javascript.js +4 -0
  106. package/dist/lib/assets/language-icons/javascript.js.map +1 -0
  107. package/dist/lib/assets/language-icons/json.d.ts +3 -0
  108. package/dist/lib/assets/language-icons/json.js +4 -0
  109. package/dist/lib/assets/language-icons/json.js.map +1 -0
  110. package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
  111. package/dist/lib/assets/language-icons/kotlin.js +4 -0
  112. package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
  113. package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
  114. package/dist/lib/assets/language-icons/markdown.js +4 -0
  115. package/dist/lib/assets/language-icons/markdown.js.map +1 -0
  116. package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
  117. package/dist/lib/assets/language-icons/mdx.js +4 -0
  118. package/dist/lib/assets/language-icons/mdx.js.map +1 -0
  119. package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
  120. package/dist/lib/assets/language-icons/objectivec.js +4 -0
  121. package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
  122. package/dist/lib/assets/language-icons/php.d.ts +3 -0
  123. package/dist/lib/assets/language-icons/php.js +4 -0
  124. package/dist/lib/assets/language-icons/php.js.map +1 -0
  125. package/dist/lib/assets/language-icons/python.d.ts +3 -0
  126. package/dist/lib/assets/language-icons/python.js +4 -0
  127. package/dist/lib/assets/language-icons/python.js.map +1 -0
  128. package/dist/lib/assets/language-icons/react.d.ts +3 -0
  129. package/dist/lib/assets/language-icons/react.js +4 -0
  130. package/dist/lib/assets/language-icons/react.js.map +1 -0
  131. package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
  132. package/dist/lib/assets/language-icons/ruby.js +4 -0
  133. package/dist/lib/assets/language-icons/ruby.js.map +1 -0
  134. package/dist/lib/assets/language-icons/rust.d.ts +3 -0
  135. package/dist/lib/assets/language-icons/rust.js +4 -0
  136. package/dist/lib/assets/language-icons/rust.js.map +1 -0
  137. package/dist/lib/assets/language-icons/shell.d.ts +3 -0
  138. package/dist/lib/assets/language-icons/shell.js +4 -0
  139. package/dist/lib/assets/language-icons/shell.js.map +1 -0
  140. package/dist/lib/assets/language-icons/swift.d.ts +3 -0
  141. package/dist/lib/assets/language-icons/swift.js +4 -0
  142. package/dist/lib/assets/language-icons/swift.js.map +1 -0
  143. package/dist/lib/assets/language-icons/toml.d.ts +3 -0
  144. package/dist/lib/assets/language-icons/toml.js +4 -0
  145. package/dist/lib/assets/language-icons/toml.js.map +1 -0
  146. package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
  147. package/dist/lib/assets/language-icons/typescript.js +4 -0
  148. package/dist/lib/assets/language-icons/typescript.js.map +1 -0
  149. package/dist/lib/assets/language-icons/xml.d.ts +3 -0
  150. package/dist/lib/assets/language-icons/xml.js +4 -0
  151. package/dist/lib/assets/language-icons/xml.js.map +1 -0
  152. package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
  153. package/dist/lib/assets/language-icons/yaml.js +4 -0
  154. package/dist/lib/assets/language-icons/yaml.js.map +1 -0
  155. package/dist/lib/auth/issuer.d.ts +2 -0
  156. package/dist/lib/auth/issuer.js +37 -0
  157. package/dist/lib/auth/issuer.js.map +1 -0
  158. package/dist/lib/auth/issuer.test.d.ts +1 -0
  159. package/dist/lib/auth/issuer.test.js +95 -0
  160. package/dist/lib/auth/issuer.test.js.map +1 -0
  161. package/dist/lib/authentication/AuthenticationPlugin.d.ts +2 -2
  162. package/dist/lib/authentication/AuthenticationPlugin.js +1 -1
  163. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  164. package/dist/lib/authentication/authentication.d.ts +4 -6
  165. package/dist/lib/authentication/components/CallbackHandler.js +12 -10
  166. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  167. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  168. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  169. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  170. package/dist/lib/authentication/components/SignIn.js +4 -3
  171. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  172. package/dist/lib/authentication/components/SignOut.js +1 -1
  173. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  174. package/dist/lib/authentication/errors.d.ts +6 -12
  175. package/dist/lib/authentication/errors.js +2 -1
  176. package/dist/lib/authentication/errors.js.map +1 -1
  177. package/dist/lib/authentication/hook.d.ts +7 -0
  178. package/dist/lib/authentication/hook.js.map +1 -1
  179. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  180. package/dist/lib/authentication/providers/auth0.js +2 -2
  181. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  182. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  183. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  184. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  185. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  186. package/dist/lib/authentication/providers/clerk.js +66 -54
  187. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  188. package/dist/lib/authentication/providers/openid.d.ts +13 -15
  189. package/dist/lib/authentication/providers/openid.js +62 -27
  190. package/dist/lib/authentication/providers/openid.js.map +1 -1
  191. package/dist/lib/authentication/providers/supabase.d.ts +2 -2
  192. package/dist/lib/authentication/providers/supabase.js +6 -14
  193. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  194. package/dist/lib/authentication/state.d.ts +6 -5
  195. package/dist/lib/authentication/state.js +19 -6
  196. package/dist/lib/authentication/state.js.map +1 -1
  197. package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
  198. package/dist/lib/authentication/use-broadcast/shared.js +3 -3
  199. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
  200. package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
  201. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
  202. package/dist/lib/components/Autocomplete.js +3 -3
  203. package/dist/lib/components/Autocomplete.js.map +1 -1
  204. package/dist/lib/components/Banner.js +2 -2
  205. package/dist/lib/components/Banner.js.map +1 -1
  206. package/dist/lib/components/Bootstrap.js.map +1 -1
  207. package/dist/lib/components/BuildCheck.d.ts +2 -1
  208. package/dist/lib/components/BuildCheck.js +10 -3
  209. package/dist/lib/components/BuildCheck.js.map +1 -1
  210. package/dist/lib/components/CategoryHeading.js +1 -1
  211. package/dist/lib/components/CategoryHeading.js.map +1 -1
  212. package/dist/lib/components/ErrorPage.js +2 -2
  213. package/dist/lib/components/ErrorPage.js.map +1 -1
  214. package/dist/lib/components/Footer.js +6 -6
  215. package/dist/lib/components/Footer.js.map +1 -1
  216. package/dist/lib/components/Framed.d.ts +7 -0
  217. package/dist/lib/components/Framed.js +26 -0
  218. package/dist/lib/components/Framed.js.map +1 -0
  219. package/dist/lib/components/Header.js +25 -18
  220. package/dist/lib/components/Header.js.map +1 -1
  221. package/dist/lib/components/Heading.d.ts +7 -3
  222. package/dist/lib/components/Heading.js +8 -3
  223. package/dist/lib/components/Heading.js.map +1 -1
  224. package/dist/lib/components/InlineCode.js +1 -1
  225. package/dist/lib/components/InlineCode.js.map +1 -1
  226. package/dist/lib/components/LanguageIcon.d.ts +3 -0
  227. package/dist/lib/components/LanguageIcon.js +118 -0
  228. package/dist/lib/components/LanguageIcon.js.map +1 -0
  229. package/dist/lib/components/Layout.js +5 -8
  230. package/dist/lib/components/Layout.js.map +1 -1
  231. package/dist/lib/components/Main.js +5 -5
  232. package/dist/lib/components/Main.js.map +1 -1
  233. package/dist/lib/components/Markdown.d.ts +0 -1
  234. package/dist/lib/components/Markdown.js +10 -6
  235. package/dist/lib/components/Markdown.js.map +1 -1
  236. package/dist/lib/components/Meta.d.ts +2 -0
  237. package/dist/lib/components/Meta.js +11 -0
  238. package/dist/lib/components/Meta.js.map +1 -0
  239. package/dist/lib/components/MobileTopNavigation.js +13 -6
  240. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  241. package/dist/lib/components/NotFoundPage.js +2 -2
  242. package/dist/lib/components/NotFoundPage.js.map +1 -1
  243. package/dist/lib/components/PageProgress.d.ts +1 -0
  244. package/dist/lib/components/PageProgress.js +20 -0
  245. package/dist/lib/components/PageProgress.js.map +1 -0
  246. package/dist/lib/components/Pagination.js +1 -1
  247. package/dist/lib/components/Pagination.js.map +1 -1
  248. package/dist/lib/components/PathRenderer.js +1 -1
  249. package/dist/lib/components/PathRenderer.js.map +1 -1
  250. package/dist/lib/components/Search.js +2 -2
  251. package/dist/lib/components/Search.js.map +1 -1
  252. package/dist/lib/components/Slot.d.ts +17 -0
  253. package/dist/lib/components/Slot.js +24 -0
  254. package/dist/lib/components/Slot.js.map +1 -0
  255. package/dist/lib/components/Slot.test.d.ts +1 -0
  256. package/dist/lib/components/Slot.test.js +172 -0
  257. package/dist/lib/components/Slot.test.js.map +1 -0
  258. package/dist/lib/components/StatusPage.js +4 -0
  259. package/dist/lib/components/StatusPage.js.map +1 -1
  260. package/dist/lib/components/TopNavigation.d.ts +7 -6
  261. package/dist/lib/components/TopNavigation.js +52 -54
  262. package/dist/lib/components/TopNavigation.js.map +1 -1
  263. package/dist/lib/components/Typography.d.ts +5 -0
  264. package/dist/lib/components/Typography.js +8 -0
  265. package/dist/lib/components/Typography.js.map +1 -0
  266. package/dist/lib/components/Zudoku.js +4 -4
  267. package/dist/lib/components/Zudoku.js.map +1 -1
  268. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  269. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
  270. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  271. package/dist/lib/components/context/SlotProvider.js +83 -0
  272. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  273. package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
  274. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  275. package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
  276. package/dist/lib/components/context/ZudokuContext.js +56 -30
  277. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  278. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  279. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  280. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  281. package/dist/lib/components/index.d.ts +49 -49
  282. package/dist/lib/components/index.js +17 -22
  283. package/dist/lib/components/index.js.map +1 -1
  284. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  285. package/dist/lib/components/navigation/Navigation.js +12 -0
  286. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  287. package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
  288. package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +3 -3
  289. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  290. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  291. package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +22 -15
  292. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  293. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  294. package/dist/lib/components/navigation/NavigationItem.js +55 -0
  295. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  296. package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
  297. package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +5 -5
  298. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  299. package/dist/lib/components/navigation/PoweredByZudoku.js +1 -1
  300. package/dist/lib/components/navigation/Toc.js +1 -1
  301. package/dist/lib/components/navigation/Toc.js.map +1 -1
  302. package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
  303. package/dist/lib/components/navigation/utils.d.ts +16 -8
  304. package/dist/lib/components/navigation/utils.js +58 -27
  305. package/dist/lib/components/navigation/utils.js.map +1 -1
  306. package/dist/lib/core/RouteGuard.js +9 -9
  307. package/dist/lib/core/RouteGuard.js.map +1 -1
  308. package/dist/lib/core/ZudokuContext.d.ts +27 -20
  309. package/dist/lib/core/ZudokuContext.js +49 -14
  310. package/dist/lib/core/ZudokuContext.js.map +1 -1
  311. package/dist/lib/core/__internal.d.ts +37 -0
  312. package/dist/lib/core/__internal.js +26 -0
  313. package/dist/lib/core/__internal.js.map +1 -0
  314. package/dist/lib/core/plugins.d.ts +8 -4
  315. package/dist/lib/core/plugins.js +1 -0
  316. package/dist/lib/core/plugins.js.map +1 -1
  317. package/dist/lib/core/router.d.ts +1 -0
  318. package/dist/lib/core/router.js +2 -0
  319. package/dist/lib/core/router.js.map +1 -0
  320. package/dist/lib/errors/ErrorAlert.js +2 -4
  321. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  322. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  323. package/dist/lib/errors/TopLevelError.js +1 -2
  324. package/dist/lib/errors/TopLevelError.js.map +1 -1
  325. package/dist/lib/hooks/index.d.ts +25 -0
  326. package/dist/lib/hooks/index.js +11 -0
  327. package/dist/lib/hooks/index.js.map +1 -1
  328. package/dist/lib/hooks/useEvent.test.js +5 -3
  329. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  330. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  331. package/dist/lib/hooks/useHotkey.js +58 -0
  332. package/dist/lib/hooks/useHotkey.js.map +1 -0
  333. package/dist/lib/oas/graphql/circular.js +2 -2
  334. package/dist/lib/oas/graphql/circular.js.map +1 -1
  335. package/dist/lib/oas/graphql/index.js +22 -3
  336. package/dist/lib/oas/graphql/index.js.map +1 -1
  337. package/dist/lib/oas/parser/dereference/index.js +2 -1
  338. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  339. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  340. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  341. package/dist/lib/oas/parser/index.js +1 -1
  342. package/dist/lib/oas/parser/index.js.map +1 -1
  343. package/dist/lib/oas/parser/upgrade/index.js +2 -1
  344. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  345. package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
  346. package/dist/lib/plugins/api-catalog/Catalog.js +8 -2
  347. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  348. package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
  349. package/dist/lib/plugins/api-catalog/index.js +10 -10
  350. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  351. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  352. package/dist/lib/plugins/api-keys/CreateApiKey.js +18 -4
  353. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  354. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
  355. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
  356. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
  357. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  358. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +146 -27
  359. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  360. package/dist/lib/plugins/api-keys/index.d.ts +29 -15
  361. package/dist/lib/plugins/api-keys/index.js +63 -33
  362. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  363. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  364. package/dist/lib/plugins/custom-pages/index.js +18 -10
  365. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  366. package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -3
  367. package/dist/lib/plugins/markdown/MdxPage.js +31 -11
  368. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  369. package/dist/lib/plugins/markdown/index.d.ts +12 -4
  370. package/dist/lib/plugins/markdown/index.js +9 -26
  371. package/dist/lib/plugins/markdown/index.js.map +1 -1
  372. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  373. package/dist/lib/plugins/openapi/ColorizedParam.js +5 -2
  374. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  375. package/dist/lib/plugins/openapi/Endpoint.js +2 -2
  376. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  377. package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
  378. package/dist/lib/plugins/openapi/MCPEndpoint.js +65 -0
  379. package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
  380. package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
  381. package/dist/lib/plugins/openapi/OasProvider.js +1 -0
  382. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  383. package/dist/lib/plugins/openapi/OperationList.d.ts +0 -2
  384. package/dist/lib/plugins/openapi/OperationList.js +23 -8
  385. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  386. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  387. package/dist/lib/plugins/openapi/OperationListItem.js +10 -7
  388. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  389. package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
  390. package/dist/lib/plugins/openapi/ParamInfos.js +11 -9
  391. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  392. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
  393. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  394. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  395. package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
  396. package/dist/lib/plugins/openapi/ParameterListItem.js +2 -2
  397. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  398. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
  399. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +8 -4
  400. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  401. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +2 -2
  402. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  403. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  404. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  405. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  406. package/dist/lib/plugins/openapi/SchemaList.js +7 -7
  407. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  408. package/dist/lib/plugins/openapi/Sidecar.d.ts +2 -2
  409. package/dist/lib/plugins/openapi/Sidecar.js +14 -92
  410. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  411. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +2 -4
  412. package/dist/lib/plugins/openapi/SidecarExamples.js +9 -1
  413. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  414. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  415. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
  416. package/dist/lib/plugins/openapi/client/createServer.js +1 -2
  417. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  418. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  419. package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
  420. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
  421. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  422. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  423. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  424. package/dist/lib/plugins/openapi/context.d.ts +1 -1
  425. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
  426. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  427. package/dist/lib/plugins/openapi/graphql/gql.d.ts +2 -2
  428. package/dist/lib/plugins/openapi/graphql/gql.js +2 -3
  429. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  430. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +7 -3
  431. package/dist/lib/plugins/openapi/graphql/graphql.js +6 -2
  432. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  433. package/dist/lib/plugins/openapi/index.d.ts +5 -5
  434. package/dist/lib/plugins/openapi/index.js +52 -19
  435. package/dist/lib/plugins/openapi/index.js.map +1 -1
  436. package/dist/lib/plugins/openapi/interfaces.d.ts +7 -7
  437. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  438. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  439. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  440. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  441. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  442. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  443. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
  444. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
  445. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  446. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  447. package/dist/lib/plugins/openapi/playground/Headers.js +54 -32
  448. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  449. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
  450. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
  451. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
  452. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
  453. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -2
  454. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
  455. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  456. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  457. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
  458. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  459. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -2
  460. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  461. package/dist/lib/plugins/openapi/playground/Playground.d.ts +5 -10
  462. package/dist/lib/plugins/openapi/playground/Playground.js +116 -94
  463. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  464. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  465. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  466. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -3
  467. package/dist/lib/plugins/openapi/playground/QueryParams.js +38 -23
  468. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  469. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  470. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  471. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  472. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  473. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  474. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  475. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  476. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  477. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  478. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  479. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  480. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  481. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  482. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  483. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  484. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  485. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +71 -0
  486. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  487. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +10 -4
  488. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +33 -31
  489. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  490. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  491. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
  492. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  493. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
  494. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
  495. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
  496. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  497. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  498. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  499. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
  500. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
  501. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
  502. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
  503. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
  504. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
  505. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.d.ts +5 -0
  506. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js +7 -0
  507. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js.map +1 -0
  508. package/dist/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupItem.d.ts → AllOfGroup/AllOfGroupItem.d.ts} +1 -3
  509. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js +10 -0
  510. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js.map +1 -0
  511. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.d.ts +5 -0
  512. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +16 -0
  513. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +1 -0
  514. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
  515. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
  516. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
  517. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +8 -17
  518. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  519. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +3 -1
  520. package/dist/lib/plugins/openapi/schema/SchemaView.js +19 -14
  521. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  522. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +5 -0
  523. package/dist/lib/plugins/openapi/schema/UnionView.js +36 -0
  524. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  525. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  526. package/dist/lib/plugins/openapi/schema/union-helpers.js +72 -0
  527. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  528. package/dist/lib/plugins/openapi/schema/utils.d.ts +0 -7
  529. package/dist/lib/plugins/openapi/schema/utils.js +3 -8
  530. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  531. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  532. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  533. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  534. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  535. package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +6 -4
  536. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  537. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  538. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +1 -2
  539. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  540. package/dist/lib/plugins/openapi/util/getRoutes.js +3 -3
  541. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  542. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  543. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  544. package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
  545. package/dist/lib/plugins/search-inkeep/index.js +35 -29
  546. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  547. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
  548. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  549. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  550. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +2 -2
  551. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  552. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +2 -2
  553. package/dist/lib/plugins/search-pagefind/ResultList.js +15 -5
  554. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  555. package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
  556. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  557. package/dist/lib/shiki.d.ts +10 -13
  558. package/dist/lib/shiki.js +14 -13
  559. package/dist/lib/shiki.js.map +1 -1
  560. package/dist/lib/ui/ActionButton.js +1 -1
  561. package/dist/lib/ui/ActionButton.js.map +1 -1
  562. package/dist/lib/ui/Alert.d.ts +6 -5
  563. package/dist/lib/ui/Alert.js +12 -10
  564. package/dist/lib/ui/Alert.js.map +1 -1
  565. package/dist/lib/ui/Badge.d.ts +2 -2
  566. package/dist/lib/ui/Badge.js +1 -1
  567. package/dist/lib/ui/Badge.js.map +1 -1
  568. package/dist/lib/ui/Breadcrumb.js +1 -1
  569. package/dist/lib/ui/Breadcrumb.js.map +1 -1
  570. package/dist/lib/ui/Button.d.ts +2 -2
  571. package/dist/lib/ui/Button.js +8 -6
  572. package/dist/lib/ui/Button.js.map +1 -1
  573. package/dist/lib/ui/Callout.js +1 -1
  574. package/dist/lib/ui/Callout.js.map +1 -1
  575. package/dist/lib/ui/Card.js +1 -1
  576. package/dist/lib/ui/Carousel.js.map +1 -1
  577. package/dist/lib/ui/Checkbox.js +1 -1
  578. package/dist/lib/ui/Checkbox.js.map +1 -1
  579. package/dist/lib/ui/CodeBlock.d.ts +2 -3
  580. package/dist/lib/ui/CodeBlock.js +10 -10
  581. package/dist/lib/ui/CodeBlock.js.map +1 -1
  582. package/dist/lib/ui/Command.d.ts +2 -2
  583. package/dist/lib/ui/Command.js +3 -7
  584. package/dist/lib/ui/Command.js.map +1 -1
  585. package/dist/lib/ui/Dialog.d.ts +3 -1
  586. package/dist/lib/ui/Dialog.js +2 -2
  587. package/dist/lib/ui/Dialog.js.map +1 -1
  588. package/dist/lib/ui/DropdownMenu.js +4 -4
  589. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  590. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  591. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  592. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  593. package/dist/lib/ui/Form.d.ts +2 -2
  594. package/dist/lib/ui/HoverCard.js +1 -1
  595. package/dist/lib/ui/HoverCard.js.map +1 -1
  596. package/dist/lib/ui/Input.js +1 -1
  597. package/dist/lib/ui/Input.js.map +1 -1
  598. package/dist/lib/ui/Pagination.d.ts +1 -1
  599. package/dist/lib/ui/Pagination.js +1 -1
  600. package/dist/lib/ui/Pagination.js.map +1 -1
  601. package/dist/lib/ui/Popover.js +1 -1
  602. package/dist/lib/ui/Popover.js.map +1 -1
  603. package/dist/lib/ui/RadioGroup.js +1 -1
  604. package/dist/lib/ui/RadioGroup.js.map +1 -1
  605. package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
  606. package/dist/lib/ui/ReactComponentDoc.js +10 -0
  607. package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
  608. package/dist/lib/ui/Secret.d.ts +12 -0
  609. package/dist/lib/ui/Secret.js +23 -0
  610. package/dist/lib/ui/Secret.js.map +1 -0
  611. package/dist/lib/ui/Select.js +2 -2
  612. package/dist/lib/ui/Select.js.map +1 -1
  613. package/dist/lib/ui/Slider.js +1 -1
  614. package/dist/lib/ui/Slider.js.map +1 -1
  615. package/dist/lib/ui/Switch.js +1 -1
  616. package/dist/lib/ui/Switch.js.map +1 -1
  617. package/dist/lib/ui/SyntaxHighlight.d.ts +3 -1
  618. package/dist/lib/ui/SyntaxHighlight.js +3 -2
  619. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  620. package/dist/lib/ui/Tabs.js +2 -2
  621. package/dist/lib/ui/Tabs.js.map +1 -1
  622. package/dist/lib/ui/Textarea.js +1 -1
  623. package/dist/lib/ui/Textarea.js.map +1 -1
  624. package/dist/lib/ui/Toggle.js +1 -1
  625. package/dist/lib/ui/Toggle.js.map +1 -1
  626. package/dist/lib/ui/ToggleGroup.d.ts +1 -1
  627. package/dist/lib/ui/Tooltip.d.ts +2 -1
  628. package/dist/lib/ui/Tooltip.js +2 -1
  629. package/dist/lib/ui/Tooltip.js.map +1 -1
  630. package/dist/lib/ui/Value.d.ts +5 -0
  631. package/dist/lib/ui/Value.js +13 -0
  632. package/dist/lib/ui/Value.js.map +1 -0
  633. package/dist/lib/util/MdxComponents.d.ts +10 -2
  634. package/dist/lib/util/MdxComponents.js +7 -3
  635. package/dist/lib/util/MdxComponents.js.map +1 -1
  636. package/dist/lib/util/cn.js.map +1 -1
  637. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  638. package/dist/lib/util/createVariantComponent.js.map +1 -1
  639. package/dist/lib/util/groupBy.js +1 -0
  640. package/dist/lib/util/groupBy.js.map +1 -1
  641. package/dist/lib/util/humanFileSize.d.ts +6 -0
  642. package/dist/lib/util/humanFileSize.js +14 -0
  643. package/dist/lib/util/humanFileSize.js.map +1 -0
  644. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  645. package/dist/lib/util/humanFileSize.test.js +22 -0
  646. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  647. package/dist/lib/util/invariant.d.ts +6 -5
  648. package/dist/lib/util/invariant.js +4 -2
  649. package/dist/lib/util/invariant.js.map +1 -1
  650. package/dist/lib/util/os.d.ts +2 -0
  651. package/dist/lib/util/os.js +21 -0
  652. package/dist/lib/util/os.js.map +1 -0
  653. package/dist/lib/util/pastellize.js +2 -2
  654. package/dist/lib/util/pastellize.js.map +1 -1
  655. package/dist/lib/util/traverse.d.ts +1 -0
  656. package/dist/lib/util/traverse.js +25 -0
  657. package/dist/lib/util/traverse.js.map +1 -1
  658. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  659. package/dist/lib/util/useCopyToClipboard.js +11 -0
  660. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  661. package/dist/lib/util/useExposedProps.d.ts +8 -1
  662. package/dist/lib/util/useExposedProps.js.map +1 -1
  663. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
  664. package/dist/lib/util/useScrollToAnchor.js +5 -3
  665. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  666. package/dist/ts.js +3 -3
  667. package/dist/ts.js.map +1 -1
  668. package/dist/vite/api/SchemaManager.d.ts +4 -4
  669. package/dist/vite/api/SchemaManager.js +51 -28
  670. package/dist/vite/api/SchemaManager.js.map +1 -1
  671. package/dist/vite/api/SchemaManager.test.js +4 -4
  672. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  673. package/dist/vite/api/schema-codegen.js +71 -22
  674. package/dist/vite/api/schema-codegen.js.map +1 -1
  675. package/dist/vite/api/schema-codegen.test.js +156 -1
  676. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  677. package/dist/vite/build.js +22 -8
  678. package/dist/vite/build.js.map +1 -1
  679. package/dist/vite/config.d.ts +2 -9
  680. package/dist/vite/config.js +24 -98
  681. package/dist/vite/config.js.map +1 -1
  682. package/dist/vite/config.test.js +1 -1
  683. package/dist/vite/config.test.js.map +1 -1
  684. package/dist/vite/css/plugin.d.ts +1 -2
  685. package/dist/vite/css/plugin.js +14 -2
  686. package/dist/vite/css/plugin.js.map +1 -1
  687. package/dist/vite/dev-server.d.ts +0 -1
  688. package/dist/vite/dev-server.js +21 -15
  689. package/dist/vite/dev-server.js.map +1 -1
  690. package/dist/vite/error-handler.d.ts +2 -2
  691. package/dist/vite/error-handler.js.map +1 -1
  692. package/dist/vite/html.d.ts +2 -2
  693. package/dist/vite/html.js +5 -2
  694. package/dist/vite/html.js.map +1 -1
  695. package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
  696. package/dist/vite/mdx/remark-inject-filepath.js +6 -0
  697. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
  698. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  699. package/dist/vite/mdx/remark-last-modified.js +28 -0
  700. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  701. package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
  702. package/dist/vite/mdx/remark-link-rewrite.js +20 -0
  703. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
  704. package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
  705. package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
  706. package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
  707. package/dist/vite/{remarkStaticGeneration.d.ts → mdx/remark-static-generation.d.ts} +2 -2
  708. package/dist/vite/{remarkStaticGeneration.js → mdx/remark-static-generation.js} +2 -2
  709. package/dist/vite/mdx/remark-static-generation.js.map +1 -0
  710. package/dist/vite/mdx/utils.d.ts +2 -0
  711. package/dist/vite/mdx/utils.js +31 -0
  712. package/dist/vite/mdx/utils.js.map +1 -0
  713. package/dist/vite/output.d.ts +1 -1
  714. package/dist/vite/output.js +1 -1
  715. package/dist/vite/output.js.map +1 -1
  716. package/dist/vite/plugin-api-keys.d.ts +2 -3
  717. package/dist/vite/plugin-api-keys.js +10 -4
  718. package/dist/vite/plugin-api-keys.js.map +1 -1
  719. package/dist/vite/plugin-api.d.ts +1 -2
  720. package/dist/vite/plugin-api.js +17 -16
  721. package/dist/vite/plugin-api.js.map +1 -1
  722. package/dist/vite/plugin-auth.d.ts +2 -3
  723. package/dist/vite/plugin-auth.js +4 -3
  724. package/dist/vite/plugin-auth.js.map +1 -1
  725. package/dist/vite/plugin-component.d.ts +2 -3
  726. package/dist/vite/plugin-component.js +3 -2
  727. package/dist/vite/plugin-component.js.map +1 -1
  728. package/dist/vite/plugin-config-reload.d.ts +2 -3
  729. package/dist/vite/plugin-config-reload.js +23 -22
  730. package/dist/vite/plugin-config-reload.js.map +1 -1
  731. package/dist/vite/plugin-config.d.ts +2 -3
  732. package/dist/vite/plugin-config.js +6 -4
  733. package/dist/vite/plugin-config.js.map +1 -1
  734. package/dist/vite/plugin-custom-pages.d.ts +2 -3
  735. package/dist/vite/plugin-custom-pages.js +6 -5
  736. package/dist/vite/plugin-custom-pages.js.map +1 -1
  737. package/dist/vite/plugin-docs.d.ts +1 -2
  738. package/dist/vite/plugin-docs.js +75 -63
  739. package/dist/vite/plugin-docs.js.map +1 -1
  740. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  741. package/dist/vite/plugin-frontmatter.js +10 -5
  742. package/dist/vite/plugin-frontmatter.js.map +1 -1
  743. package/dist/vite/plugin-mdx.d.ts +2 -3
  744. package/dist/vite/plugin-mdx.js +28 -65
  745. package/dist/vite/plugin-mdx.js.map +1 -1
  746. package/dist/vite/plugin-metadata.d.ts +1 -1
  747. package/dist/vite/plugin-navigation.d.ts +4 -0
  748. package/dist/vite/plugin-navigation.js +63 -0
  749. package/dist/vite/plugin-navigation.js.map +1 -0
  750. package/dist/vite/plugin-redirect.d.ts +2 -3
  751. package/dist/vite/plugin-redirect.js +4 -3
  752. package/dist/vite/plugin-redirect.js.map +1 -1
  753. package/dist/vite/plugin-search.d.ts +2 -3
  754. package/dist/vite/plugin-search.js +4 -3
  755. package/dist/vite/plugin-search.js.map +1 -1
  756. package/dist/vite/plugin-shiki-register.d.ts +1 -2
  757. package/dist/vite/plugin-shiki-register.js +3 -2
  758. package/dist/vite/plugin-shiki-register.js.map +1 -1
  759. package/dist/vite/plugin-theme.d.ts +8 -0
  760. package/dist/vite/plugin-theme.js +274 -0
  761. package/dist/vite/plugin-theme.js.map +1 -0
  762. package/dist/vite/plugin-theme.test.d.ts +1 -0
  763. package/dist/vite/plugin-theme.test.js +314 -0
  764. package/dist/vite/plugin-theme.test.js.map +1 -0
  765. package/dist/vite/plugin.d.ts +2 -3
  766. package/dist/vite/plugin.js +23 -24
  767. package/dist/vite/plugin.js.map +1 -1
  768. package/dist/vite/prerender/FileWritingResponse.js +5 -3
  769. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  770. package/dist/vite/prerender/InMemoryResponse.js +3 -1
  771. package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
  772. package/dist/vite/prerender/prerender.js +1 -1
  773. package/dist/vite/prerender/prerender.js.map +1 -1
  774. package/dist/vite/prerender/worker.d.ts +1 -1
  775. package/dist/vite/prerender/worker.js +5 -1
  776. package/dist/vite/prerender/worker.js.map +1 -1
  777. package/dist/vite/reporter.js +2 -2
  778. package/dist/vite/reporter.js.map +1 -1
  779. package/dist/vite/shadcn-registry.d.ts +20 -0
  780. package/dist/vite/shadcn-registry.js +29 -0
  781. package/dist/vite/shadcn-registry.js.map +1 -0
  782. package/dist/vite/sitemap.d.ts +1 -1
  783. package/dist/vite/sitemap.js +14 -13
  784. package/dist/vite/sitemap.js.map +1 -1
  785. package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
  786. package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
  787. package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
  788. package/dist/zuplo/enrich-with-zuplo.d.ts +1 -0
  789. package/dist/zuplo/enrich-with-zuplo.js +4 -4
  790. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  791. package/dist/zuplo/policy-types.js +0 -1
  792. package/dist/zuplo/policy-types.js.map +1 -1
  793. package/dist/zuplo/with-zuplo-processors.js +2 -0
  794. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  795. package/dist/zuplo/with-zuplo.d.ts +2 -2
  796. package/dist/zuplo/with-zuplo.js +1 -1
  797. package/dist/zuplo/with-zuplo.js.map +1 -1
  798. package/lib/Button-DTDRi4CT.js +51 -0
  799. package/lib/Button-DTDRi4CT.js.map +1 -0
  800. package/lib/{Card-BlCYNw5W.js → Card-hTy9PAnh.js} +4 -4
  801. package/lib/{Card-BlCYNw5W.js.map → Card-hTy9PAnh.js.map} +1 -1
  802. package/lib/CategoryHeading-BGCNu3VK.js +17 -0
  803. package/lib/CategoryHeading-BGCNu3VK.js.map +1 -0
  804. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  805. package/lib/CodeBlock-i0BM_QFf.js +176 -0
  806. package/lib/CodeBlock-i0BM_QFf.js.map +1 -0
  807. package/lib/Command-TEBTONf1.js +134 -0
  808. package/lib/Command-TEBTONf1.js.map +1 -0
  809. package/lib/Dialog-VIMic7xI.js +114 -0
  810. package/lib/Dialog-VIMic7xI.js.map +1 -0
  811. package/lib/{Drawer-BPBxzel2.js → Drawer-DM9wJUC6.js} +87 -87
  812. package/lib/Drawer-DM9wJUC6.js.map +1 -0
  813. package/lib/ErrorAlert-Diu_w5Po.js +15522 -0
  814. package/lib/ErrorAlert-Diu_w5Po.js.map +1 -0
  815. package/lib/MdxPage-CDs_vtjC.js +111 -0
  816. package/lib/MdxPage-CDs_vtjC.js.map +1 -0
  817. package/lib/OAuthErrorPage-BbI9XJWR.js +150 -0
  818. package/lib/OAuthErrorPage-BbI9XJWR.js.map +1 -0
  819. package/lib/OasProvider-D3Cjaaxr.js +36 -0
  820. package/lib/OasProvider-D3Cjaaxr.js.map +1 -0
  821. package/lib/OperationList-BH4cFU-0.js +5454 -0
  822. package/lib/OperationList-BH4cFU-0.js.map +1 -0
  823. package/lib/Pagination-BKphudjx.js +37 -0
  824. package/lib/Pagination-BKphudjx.js.map +1 -0
  825. package/lib/RouteGuard-nFlgfJqk.js +56 -0
  826. package/lib/RouteGuard-nFlgfJqk.js.map +1 -0
  827. package/lib/RouterError-CnS5hYUh.js +41 -0
  828. package/lib/RouterError-CnS5hYUh.js.map +1 -0
  829. package/lib/SchemaList-BcJyi2sR.js +150 -0
  830. package/lib/SchemaList-BcJyi2sR.js.map +1 -0
  831. package/lib/SchemaView-DnTxmN15.js +458 -0
  832. package/lib/SchemaView-DnTxmN15.js.map +1 -0
  833. package/lib/{Select-HTio1oSE.js → Select-BPQp7Yqx.js} +116 -54
  834. package/lib/Select-BPQp7Yqx.js.map +1 -0
  835. package/lib/SignUp-tBtnwuXL.js +56 -0
  836. package/lib/SignUp-tBtnwuXL.js.map +1 -0
  837. package/lib/{Spinner-mNLZ6awP.js → Spinner-Cf6E803I.js} +2 -2
  838. package/lib/{Spinner-mNLZ6awP.js.map → Spinner-Cf6E803I.js.map} +1 -1
  839. package/lib/{SyntaxHighlight-UxOF1xNb.js → SyntaxHighlight-Cqh6cwC3.js} +4659 -3459
  840. package/lib/SyntaxHighlight-Cqh6cwC3.js.map +1 -0
  841. package/lib/{Toc-Ax54Pw8S.js → Toc-Zzozy3eB.js} +6 -6
  842. package/lib/Toc-Zzozy3eB.js.map +1 -0
  843. package/lib/ZudokuContext-3cqbu21w.js +1285 -0
  844. package/lib/ZudokuContext-3cqbu21w.js.map +1 -0
  845. package/lib/chunk-QMGIS6GS-DqecZ6nq.js +9204 -0
  846. package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +1 -0
  847. package/lib/{circular-B_TODp4H.js → circular-CokAagii.js} +1812 -1807
  848. package/lib/circular-CokAagii.js.map +1 -0
  849. package/lib/clsx-OuTLNxxd.js +17 -0
  850. package/lib/clsx-OuTLNxxd.js.map +1 -0
  851. package/lib/{cn-CwJPJKOE.js → cn-dYga0KKN.js} +1015 -562
  852. package/lib/cn-dYga0KKN.js.map +1 -0
  853. package/lib/{createServer-CXd8q7nF.js → createServer-DW4hIUUB.js} +2510 -2505
  854. package/lib/createServer-DW4hIUUB.js.map +1 -0
  855. package/lib/csharp-rrJEDRrV.js +53 -0
  856. package/lib/csharp-rrJEDRrV.js.map +1 -0
  857. package/lib/css-Dpk9bCql.js +54 -0
  858. package/lib/css-Dpk9bCql.js.map +1 -0
  859. package/lib/errors-CQLQ5016.js +45 -0
  860. package/lib/errors-CQLQ5016.js.map +1 -0
  861. package/lib/go-D8SJIQ0Z.js +25 -0
  862. package/lib/go-D8SJIQ0Z.js.map +1 -0
  863. package/lib/graphql-aeVKJNa2.js +25 -0
  864. package/lib/graphql-aeVKJNa2.js.map +1 -0
  865. package/lib/hook-ChlxzJwv.js +247 -0
  866. package/lib/hook-ChlxzJwv.js.map +1 -0
  867. package/lib/html-D_7om-nA.js +33 -0
  868. package/lib/html-D_7om-nA.js.map +1 -0
  869. package/lib/index-7FEjMkZ_.js +1058 -0
  870. package/lib/index-7FEjMkZ_.js.map +1 -0
  871. package/lib/{index-BvvmIczU.js → index-CF3Ls1wd.js} +2 -2
  872. package/lib/{index-BvvmIczU.js.map → index-CF3Ls1wd.js.map} +1 -1
  873. package/lib/index-CrcNWbel.js.map +1 -1
  874. package/lib/{index-Z13x6tPX.js → index-DI5SPFK9.js} +2 -2
  875. package/lib/{index-Z13x6tPX.js.map → index-DI5SPFK9.js.map} +1 -1
  876. package/lib/index-QwGs6inR.js +3397 -0
  877. package/lib/index-QwGs6inR.js.map +1 -0
  878. package/lib/{index-zddirpDj.js → index-nGbmHh_A.js} +227 -222
  879. package/lib/index-nGbmHh_A.js.map +1 -0
  880. package/lib/{RouteGuard-lkdEJoDV.js → index.esm-BnYHxCYC.js} +232 -281
  881. package/lib/index.esm-BnYHxCYC.js.map +1 -0
  882. package/lib/index.esm-CdzlRw50.js +1254 -0
  883. package/lib/index.esm-CdzlRw50.js.map +1 -0
  884. package/lib/{invariant-DAFpPywt.js → invariant-Bm-FVUQE.js} +2 -6
  885. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  886. package/lib/java-DUh-EL8n.js +53 -0
  887. package/lib/java-DUh-EL8n.js.map +1 -0
  888. package/lib/javascript-CrY8dcGu.js +10 -0
  889. package/lib/javascript-CrY8dcGu.js.map +1 -0
  890. package/lib/json-DLK2_sdf.js +25 -0
  891. package/lib/json-DLK2_sdf.js.map +1 -0
  892. package/lib/{jsx-runtime-C5mzlN2N.js → jsx-runtime-DywqP_6a.js} +14 -14
  893. package/lib/{jsx-runtime-C5mzlN2N.js.map → jsx-runtime-DywqP_6a.js.map} +1 -1
  894. package/lib/kotlin-rJMOGl7D.js +37 -0
  895. package/lib/kotlin-rJMOGl7D.js.map +1 -0
  896. package/lib/markdown-BD9bIU5J.js +25 -0
  897. package/lib/markdown-BD9bIU5J.js.map +1 -0
  898. package/lib/mdx-G25UCvf3.js +32 -0
  899. package/lib/mdx-G25UCvf3.js.map +1 -0
  900. package/lib/{mutation-CL2MCRQL.js → mutation-DvBlWyBr.js} +2 -2
  901. package/lib/{mutation-CL2MCRQL.js.map → mutation-DvBlWyBr.js.map} +1 -1
  902. package/lib/objectivec-DDpj0aWX.js +32 -0
  903. package/lib/objectivec-DDpj0aWX.js.map +1 -0
  904. package/lib/php-BeG18bSy.js +25 -0
  905. package/lib/php-BeG18bSy.js.map +1 -0
  906. package/lib/processors/removeExtensions.js.map +1 -1
  907. package/lib/processors/removeParameters.js.map +1 -1
  908. package/lib/processors/removePaths.js.map +1 -1
  909. package/lib/processors/traverse.js.map +1 -1
  910. package/lib/python-BaF2byD-.js +32 -0
  911. package/lib/python-BaF2byD-.js.map +1 -0
  912. package/lib/react-CQvDN20M.js +24 -0
  913. package/lib/react-CQvDN20M.js.map +1 -0
  914. package/lib/ruby-CmxRVHMR.js +25 -0
  915. package/lib/ruby-CmxRVHMR.js.map +1 -0
  916. package/lib/rust-IfSC62c5.js +25 -0
  917. package/lib/rust-IfSC62c5.js.map +1 -0
  918. package/lib/shell-BFu0M6m4.js +25 -0
  919. package/lib/shell-BFu0M6m4.js.map +1 -0
  920. package/lib/swift-DckbsN4v.js +25 -0
  921. package/lib/swift-DckbsN4v.js.map +1 -0
  922. package/lib/toml-BJsCc8TC.js +32 -0
  923. package/lib/toml-BJsCc8TC.js.map +1 -0
  924. package/lib/typescript-7qOVMjOC.js +32 -0
  925. package/lib/typescript-7qOVMjOC.js.map +1 -0
  926. package/lib/ui/Accordion.js +2 -2
  927. package/lib/ui/Accordion.js.map +1 -1
  928. package/lib/ui/ActionButton.js +11 -11
  929. package/lib/ui/ActionButton.js.map +1 -1
  930. package/lib/ui/Alert.js +55 -39
  931. package/lib/ui/Alert.js.map +1 -1
  932. package/lib/ui/AlertDialog.js +2 -2
  933. package/lib/ui/AlertDialog.js.map +1 -1
  934. package/lib/ui/Badge.js +4 -4
  935. package/lib/ui/Badge.js.map +1 -1
  936. package/lib/ui/Breadcrumb.js +24 -23
  937. package/lib/ui/Breadcrumb.js.map +1 -1
  938. package/lib/ui/Button.js +20 -18
  939. package/lib/ui/Button.js.map +1 -1
  940. package/lib/ui/Callout.js +7 -6
  941. package/lib/ui/Callout.js.map +1 -1
  942. package/lib/ui/Card.js +9 -9
  943. package/lib/ui/Card.js.map +1 -1
  944. package/lib/ui/Carousel.js +2 -2
  945. package/lib/ui/Carousel.js.map +1 -1
  946. package/lib/ui/Checkbox.js +8 -8
  947. package/lib/ui/Checkbox.js.map +1 -1
  948. package/lib/ui/CodeBlock.js +6 -79
  949. package/lib/ui/CodeBlock.js.map +1 -1
  950. package/lib/ui/Command.js +51 -57
  951. package/lib/ui/Command.js.map +1 -1
  952. package/lib/ui/Dialog.js +74 -59
  953. package/lib/ui/Dialog.js.map +1 -1
  954. package/lib/ui/Drawer.js +3 -3
  955. package/lib/ui/DropdownMenu.js +35 -35
  956. package/lib/ui/DropdownMenu.js.map +1 -1
  957. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  958. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  959. package/lib/ui/Form.js +3 -3
  960. package/lib/ui/Form.js.map +1 -1
  961. package/lib/ui/HoverCard.js +6 -6
  962. package/lib/ui/HoverCard.js.map +1 -1
  963. package/lib/ui/Input.js +3 -3
  964. package/lib/ui/Input.js.map +1 -1
  965. package/lib/ui/Label.js +3 -3
  966. package/lib/ui/Label.js.map +1 -1
  967. package/lib/ui/Pagination.js +29 -30
  968. package/lib/ui/Pagination.js.map +1 -1
  969. package/lib/ui/Popover.js +3 -3
  970. package/lib/ui/Popover.js.map +1 -1
  971. package/lib/ui/Progress.js +2 -2
  972. package/lib/ui/Progress.js.map +1 -1
  973. package/lib/ui/RadioGroup.js +11 -11
  974. package/lib/ui/RadioGroup.js.map +1 -1
  975. package/lib/ui/ReactComponentDoc.js +28 -0
  976. package/lib/ui/ReactComponentDoc.js.map +1 -0
  977. package/lib/ui/ScrollArea.js +2 -2
  978. package/lib/ui/ScrollArea.js.map +1 -1
  979. package/lib/ui/Secret.js +96 -0
  980. package/lib/ui/Secret.js.map +1 -0
  981. package/lib/ui/Select.js +32 -32
  982. package/lib/ui/Select.js.map +1 -1
  983. package/lib/ui/Skeleton.js +2 -2
  984. package/lib/ui/Skeleton.js.map +1 -1
  985. package/lib/ui/Slider.js +6 -6
  986. package/lib/ui/Slider.js.map +1 -1
  987. package/lib/ui/Stepper.js +1 -1
  988. package/lib/ui/Stepper.js.map +1 -1
  989. package/lib/ui/Switch.js +6 -6
  990. package/lib/ui/Switch.js.map +1 -1
  991. package/lib/ui/SyntaxHighlight.js +7 -6
  992. package/lib/ui/SyntaxHighlight.js.map +1 -1
  993. package/lib/ui/Tabs.js +17 -17
  994. package/lib/ui/Tabs.js.map +1 -1
  995. package/lib/ui/Textarea.js +6 -6
  996. package/lib/ui/Textarea.js.map +1 -1
  997. package/lib/ui/Toggle.js +8 -8
  998. package/lib/ui/Toggle.js.map +1 -1
  999. package/lib/ui/ToggleGroup.js +2 -2
  1000. package/lib/ui/ToggleGroup.js.map +1 -1
  1001. package/lib/ui/Tooltip.js +15 -8
  1002. package/lib/ui/Tooltip.js.map +1 -1
  1003. package/lib/ui/Value.js +39 -0
  1004. package/lib/ui/Value.js.map +1 -0
  1005. package/lib/ui/util.js +1 -1
  1006. package/lib/useCopyToClipboard-B_085nfO.js +14 -0
  1007. package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
  1008. package/lib/useExposedProps-BH9aq4MD.js +113 -0
  1009. package/lib/useExposedProps-BH9aq4MD.js.map +1 -0
  1010. package/lib/useLatest-hmRS46UF.js.map +1 -1
  1011. package/lib/xml-DAaTIkBX.js +25 -0
  1012. package/lib/xml-DAaTIkBX.js.map +1 -0
  1013. package/lib/yaml-DUi-dbfu.js +32 -0
  1014. package/lib/yaml-DUi-dbfu.js.map +1 -0
  1015. package/lib/zudoku.__internal.js +2981 -0
  1016. package/lib/zudoku.__internal.js.map +1 -0
  1017. package/lib/zudoku.auth-auth0.js +2 -2
  1018. package/lib/zudoku.auth-auth0.js.map +1 -1
  1019. package/lib/zudoku.auth-azureb2c.js +137 -0
  1020. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  1021. package/lib/zudoku.auth-clerk.js +97 -86
  1022. package/lib/zudoku.auth-clerk.js.map +1 -1
  1023. package/lib/zudoku.auth-openid.js +344 -330
  1024. package/lib/zudoku.auth-openid.js.map +1 -1
  1025. package/lib/zudoku.auth-supabase.js +98 -0
  1026. package/lib/zudoku.auth-supabase.js.map +1 -0
  1027. package/lib/zudoku.components.js +22 -28
  1028. package/lib/zudoku.hooks.js +21 -13
  1029. package/lib/zudoku.hooks.js.map +1 -1
  1030. package/lib/zudoku.icons.js +1 -1
  1031. package/lib/zudoku.icons.js.map +1 -1
  1032. package/lib/zudoku.plugin-api-catalog.js +67 -59
  1033. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  1034. package/lib/zudoku.plugin-api-keys.js +717 -192
  1035. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1036. package/lib/zudoku.plugin-custom-pages.js +15 -18
  1037. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1038. package/lib/zudoku.plugin-markdown.js +19 -69
  1039. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1040. package/lib/zudoku.plugin-openapi.js +6 -5
  1041. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1042. package/lib/zudoku.plugin-redirect.js +3 -3
  1043. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1044. package/lib/zudoku.plugin-search-inkeep.js +54 -57
  1045. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1046. package/lib/zudoku.plugin-search-pagefind.js +214 -119
  1047. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  1048. package/lib/zudoku.plugins.js +7 -6
  1049. package/lib/zudoku.plugins.js.map +1 -1
  1050. package/lib/zudoku.router.js +123 -0
  1051. package/lib/zudoku.router.js.map +1 -0
  1052. package/package.json +121 -104
  1053. package/src/app/ZuploBuildConfig.ts +7 -7
  1054. package/src/app/defaultTheme.css +73 -0
  1055. package/src/app/demo.tsx +25 -7
  1056. package/src/app/entry.client.tsx +7 -8
  1057. package/src/app/entry.server.tsx +4 -6
  1058. package/src/app/env.ts +10 -2
  1059. package/src/app/font.geist.css +73 -0
  1060. package/src/app/main.css +93 -162
  1061. package/src/app/main.tsx +45 -63
  1062. package/src/app/standalone.tsx +14 -8
  1063. package/src/lib/MissingIcon.tsx +1 -1
  1064. package/src/lib/assets/language-icons/csharp.tsx +35 -0
  1065. package/src/lib/assets/language-icons/css.tsx +36 -0
  1066. package/src/lib/assets/language-icons/go.tsx +19 -0
  1067. package/src/lib/assets/language-icons/graphql.tsx +19 -0
  1068. package/src/lib/assets/language-icons/html.tsx +24 -0
  1069. package/src/lib/assets/language-icons/java.tsx +35 -0
  1070. package/src/lib/assets/language-icons/javascript.tsx +11 -0
  1071. package/src/lib/assets/language-icons/json.tsx +19 -0
  1072. package/src/lib/assets/language-icons/kotlin.tsx +30 -0
  1073. package/src/lib/assets/language-icons/markdown.tsx +19 -0
  1074. package/src/lib/assets/language-icons/mdx.tsx +23 -0
  1075. package/src/lib/assets/language-icons/objectivec.tsx +23 -0
  1076. package/src/lib/assets/language-icons/php.tsx +19 -0
  1077. package/src/lib/assets/language-icons/python.tsx +23 -0
  1078. package/src/lib/assets/language-icons/react.tsx +21 -0
  1079. package/src/lib/assets/language-icons/ruby.tsx +19 -0
  1080. package/src/lib/assets/language-icons/rust.tsx +19 -0
  1081. package/src/lib/assets/language-icons/shell.tsx +19 -0
  1082. package/src/lib/assets/language-icons/swift.tsx +19 -0
  1083. package/src/lib/assets/language-icons/toml.tsx +23 -0
  1084. package/src/lib/assets/language-icons/typescript.tsx +23 -0
  1085. package/src/lib/assets/language-icons/xml.tsx +19 -0
  1086. package/src/lib/assets/language-icons/yaml.tsx +23 -0
  1087. package/src/lib/auth/issuer.test.ts +121 -0
  1088. package/src/lib/auth/issuer.ts +41 -0
  1089. package/src/lib/authentication/AuthenticationPlugin.tsx +2 -2
  1090. package/src/lib/authentication/authentication.ts +6 -9
  1091. package/src/lib/authentication/components/CallbackHandler.tsx +23 -16
  1092. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  1093. package/src/lib/authentication/components/SignIn.tsx +5 -12
  1094. package/src/lib/authentication/components/SignOut.tsx +1 -1
  1095. package/src/lib/authentication/errors.ts +27 -13
  1096. package/src/lib/authentication/hook.ts +2 -0
  1097. package/src/lib/authentication/providers/auth0.tsx +11 -5
  1098. package/src/lib/authentication/providers/azureb2c.tsx +201 -0
  1099. package/src/lib/authentication/providers/clerk.tsx +77 -59
  1100. package/src/lib/authentication/providers/openid.tsx +105 -34
  1101. package/src/lib/authentication/providers/supabase.tsx +14 -20
  1102. package/src/lib/authentication/state.ts +37 -7
  1103. package/src/lib/authentication/use-broadcast/LICENSE.md +12 -3
  1104. package/src/lib/authentication/use-broadcast/shared.ts +4 -4
  1105. package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
  1106. package/src/lib/components/AnchorLink.tsx +1 -1
  1107. package/src/lib/components/Autocomplete.tsx +4 -3
  1108. package/src/lib/components/Banner.tsx +2 -3
  1109. package/src/lib/components/Bootstrap.tsx +1 -0
  1110. package/src/lib/components/BuildCheck.tsx +14 -3
  1111. package/src/lib/components/CategoryHeading.tsx +4 -1
  1112. package/src/lib/components/ErrorPage.tsx +3 -3
  1113. package/src/lib/components/Footer.tsx +8 -11
  1114. package/src/lib/components/Framed.tsx +51 -0
  1115. package/src/lib/components/Header.tsx +46 -43
  1116. package/src/lib/components/Heading.tsx +17 -10
  1117. package/src/lib/components/InlineCode.tsx +1 -1
  1118. package/src/lib/components/LanguageIcon.tsx +136 -0
  1119. package/src/lib/components/Layout.tsx +6 -25
  1120. package/src/lib/components/Main.tsx +13 -13
  1121. package/src/lib/components/Markdown.tsx +23 -12
  1122. package/src/lib/components/Meta.tsx +45 -0
  1123. package/src/lib/components/MobileTopNavigation.tsx +71 -15
  1124. package/src/lib/components/NotFoundPage.tsx +6 -5
  1125. package/src/lib/components/PageProgress.tsx +28 -0
  1126. package/src/lib/components/Pagination.tsx +5 -10
  1127. package/src/lib/components/PathRenderer.tsx +2 -2
  1128. package/src/lib/components/Search.tsx +2 -2
  1129. package/src/lib/components/Slot.test.tsx +465 -0
  1130. package/src/lib/components/Slot.tsx +64 -0
  1131. package/src/lib/components/StatusPage.tsx +5 -0
  1132. package/src/lib/components/TopNavigation.tsx +80 -85
  1133. package/src/lib/components/Typography.tsx +14 -0
  1134. package/src/lib/components/Zudoku.tsx +11 -11
  1135. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  1136. package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
  1137. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1138. package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
  1139. package/src/lib/components/context/ZudokuContext.ts +66 -41
  1140. package/src/lib/components/context/ZudokuProvider.tsx +3 -2
  1141. package/src/lib/components/index.ts +18 -28
  1142. package/src/lib/components/navigation/Navigation.tsx +50 -0
  1143. package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +2 -2
  1144. package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +27 -18
  1145. package/src/lib/components/navigation/NavigationItem.tsx +161 -0
  1146. package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +9 -6
  1147. package/src/lib/components/navigation/PoweredByZudoku.tsx +1 -1
  1148. package/src/lib/components/navigation/Toc.tsx +4 -4
  1149. package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
  1150. package/src/lib/components/navigation/utils.ts +82 -42
  1151. package/src/lib/core/RouteGuard.tsx +13 -13
  1152. package/src/lib/core/ZudokuContext.ts +89 -29
  1153. package/src/lib/core/__internal.tsx +30 -0
  1154. package/src/lib/core/plugins.ts +13 -4
  1155. package/src/lib/core/router.ts +1 -0
  1156. package/src/lib/errors/ErrorAlert.tsx +8 -17
  1157. package/src/lib/errors/TopLevelError.tsx +2 -4
  1158. package/src/lib/hooks/index.ts +11 -0
  1159. package/src/lib/hooks/useEvent.test.tsx +9 -7
  1160. package/src/lib/hooks/useHotkey.ts +70 -0
  1161. package/src/lib/oas/graphql/circular.ts +3 -3
  1162. package/src/lib/oas/graphql/index.ts +20 -3
  1163. package/src/lib/oas/parser/dereference/index.ts +2 -1
  1164. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  1165. package/src/lib/oas/parser/index.ts +2 -2
  1166. package/src/lib/oas/parser/upgrade/index.ts +2 -1
  1167. package/src/lib/plugins/api-catalog/Catalog.tsx +9 -2
  1168. package/src/lib/plugins/api-catalog/index.tsx +19 -19
  1169. package/src/lib/plugins/api-keys/CreateApiKey.tsx +70 -44
  1170. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
  1171. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +441 -122
  1172. package/src/lib/plugins/api-keys/index.tsx +143 -65
  1173. package/src/lib/plugins/custom-pages/index.tsx +24 -16
  1174. package/src/lib/plugins/markdown/MdxPage.tsx +81 -26
  1175. package/src/lib/plugins/markdown/index.tsx +30 -43
  1176. package/src/lib/plugins/openapi/CollapsibleCode.tsx +1 -1
  1177. package/src/lib/plugins/openapi/ColorizedParam.tsx +5 -3
  1178. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  1179. package/src/lib/plugins/openapi/MCPEndpoint.tsx +293 -0
  1180. package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
  1181. package/src/lib/plugins/openapi/OperationList.tsx +31 -29
  1182. package/src/lib/plugins/openapi/OperationListItem.tsx +96 -105
  1183. package/src/lib/plugins/openapi/ParamInfos.tsx +10 -9
  1184. package/src/lib/plugins/openapi/ParameterList.tsx +3 -5
  1185. package/src/lib/plugins/openapi/ParameterListItem.tsx +12 -12
  1186. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +16 -8
  1187. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +3 -2
  1188. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  1189. package/src/lib/plugins/openapi/SchemaList.tsx +24 -18
  1190. package/src/lib/plugins/openapi/Sidecar.tsx +18 -102
  1191. package/src/lib/plugins/openapi/SidecarExamples.tsx +11 -11
  1192. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  1193. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
  1194. package/src/lib/plugins/openapi/client/createServer.ts +1 -2
  1195. package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
  1196. package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
  1197. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1198. package/src/lib/plugins/openapi/context.tsx +1 -1
  1199. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -2
  1200. package/src/lib/plugins/openapi/graphql/gql.ts +8 -9
  1201. package/src/lib/plugins/openapi/graphql/graphql.ts +14 -7
  1202. package/src/lib/plugins/openapi/index.tsx +81 -30
  1203. package/src/lib/plugins/openapi/interfaces.ts +9 -7
  1204. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  1205. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  1206. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +11 -4
  1207. package/src/lib/plugins/openapi/playground/Headers.tsx +217 -115
  1208. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +4 -3
  1209. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +14 -17
  1210. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  1211. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
  1212. package/src/lib/plugins/openapi/playground/PathParams.tsx +5 -6
  1213. package/src/lib/plugins/openapi/playground/Playground.tsx +270 -293
  1214. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -2
  1215. package/src/lib/plugins/openapi/playground/QueryParams.tsx +105 -59
  1216. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1217. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1218. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1219. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1220. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1221. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +117 -0
  1222. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +149 -108
  1223. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +70 -91
  1224. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
  1225. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  1226. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
  1227. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
  1228. package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
  1229. package/src/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupConnector.tsx → AllOfGroup/AllOfGroupConnector.tsx} +4 -25
  1230. package/src/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupItem.tsx → AllOfGroup/AllOfGroupItem.tsx} +3 -11
  1231. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.tsx +42 -0
  1232. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +5 -5
  1233. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +11 -30
  1234. package/src/lib/plugins/openapi/schema/SchemaView.tsx +44 -33
  1235. package/src/lib/plugins/openapi/schema/UnionView.tsx +143 -0
  1236. package/src/lib/plugins/openapi/schema/union-helpers.ts +124 -0
  1237. package/src/lib/plugins/openapi/schema/utils.ts +3 -13
  1238. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  1239. package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +7 -5
  1240. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +3 -4
  1241. package/src/lib/plugins/openapi/util/getRoutes.tsx +4 -4
  1242. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  1243. package/src/lib/plugins/redirect/index.tsx +1 -1
  1244. package/src/lib/plugins/search-inkeep/index.tsx +54 -58
  1245. package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
  1246. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +3 -4
  1247. package/src/lib/plugins/search-pagefind/ResultList.tsx +16 -8
  1248. package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
  1249. package/src/lib/shiki.ts +27 -22
  1250. package/src/lib/ui/ActionButton.tsx +3 -1
  1251. package/src/lib/ui/Alert.tsx +45 -39
  1252. package/src/lib/ui/Badge.tsx +2 -2
  1253. package/src/lib/ui/Breadcrumb.tsx +1 -0
  1254. package/src/lib/ui/Button.tsx +9 -6
  1255. package/src/lib/ui/Callout.tsx +1 -0
  1256. package/src/lib/ui/Card.tsx +1 -1
  1257. package/src/lib/ui/Carousel.tsx +1 -0
  1258. package/src/lib/ui/Checkbox.tsx +1 -1
  1259. package/src/lib/ui/CodeBlock.tsx +37 -59
  1260. package/src/lib/ui/Command.tsx +6 -8
  1261. package/src/lib/ui/Dialog.tsx +20 -8
  1262. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1263. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  1264. package/src/lib/ui/Form.tsx +4 -4
  1265. package/src/lib/ui/HoverCard.tsx +1 -1
  1266. package/src/lib/ui/Input.tsx +1 -1
  1267. package/src/lib/ui/Pagination.tsx +1 -2
  1268. package/src/lib/ui/Popover.tsx +1 -1
  1269. package/src/lib/ui/RadioGroup.tsx +1 -1
  1270. package/src/lib/ui/ReactComponentDoc.tsx +68 -0
  1271. package/src/lib/ui/Secret.tsx +106 -0
  1272. package/src/lib/ui/Select.tsx +3 -3
  1273. package/src/lib/ui/Slider.tsx +1 -1
  1274. package/src/lib/ui/Switch.tsx +1 -1
  1275. package/src/lib/ui/SyntaxHighlight.tsx +11 -3
  1276. package/src/lib/ui/Tabs.tsx +2 -2
  1277. package/src/lib/ui/Textarea.tsx +1 -1
  1278. package/src/lib/ui/Toggle.tsx +1 -1
  1279. package/src/lib/ui/ToggleGroup.tsx +1 -1
  1280. package/src/lib/ui/Tooltip.tsx +16 -1
  1281. package/src/lib/ui/Value.tsx +42 -0
  1282. package/src/lib/util/MdxComponents.tsx +25 -4
  1283. package/src/lib/util/cn.ts +1 -1
  1284. package/src/lib/util/createVariantComponent.tsx +2 -2
  1285. package/src/lib/util/groupBy.ts +1 -0
  1286. package/src/lib/util/humanFileSize.test.ts +24 -0
  1287. package/src/lib/util/humanFileSize.ts +15 -0
  1288. package/src/lib/util/invariant.ts +8 -5
  1289. package/src/lib/util/os.ts +18 -0
  1290. package/src/lib/util/pastellize.ts +2 -2
  1291. package/src/lib/util/traverse.ts +36 -0
  1292. package/src/lib/util/types.ts +1 -1
  1293. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1294. package/src/lib/util/useExposedProps.tsx +12 -1
  1295. package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
  1296. package/src/lib/util/useScrollToAnchor.ts +6 -4
  1297. package/src/shiki/langs/vue-vine.js +1 -0
  1298. package/dist/app/tailwind.d.ts +0 -4
  1299. package/dist/app/tailwind.js +0 -97
  1300. package/dist/app/tailwind.js.map +0 -1
  1301. package/dist/config/common.d.ts +0 -10
  1302. package/dist/config/common.js +0 -2
  1303. package/dist/config/common.js.map +0 -1
  1304. package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
  1305. package/dist/config/validators/InputSidebarSchema.js +0 -62
  1306. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1307. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  1308. package/dist/config/validators/SidebarSchema.js +0 -118
  1309. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1310. package/dist/config/validators/common.d.ts +0 -8001
  1311. package/dist/config/validators/common.js +0 -414
  1312. package/dist/config/validators/common.js.map +0 -1
  1313. package/dist/lib/components/ReactMarkdown.d.ts +0 -29
  1314. package/dist/lib/components/ReactMarkdown.js +0 -182
  1315. package/dist/lib/components/ReactMarkdown.js.map +0 -1
  1316. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1317. package/dist/lib/components/SlotletProvider.js +0 -18
  1318. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1319. package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
  1320. package/dist/lib/components/navigation/Sidebar.js +0 -10
  1321. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1322. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1323. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1324. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1325. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -11
  1326. package/dist/lib/components/navigation/SidebarItem.js +0 -49
  1327. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1328. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1329. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  1330. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  1331. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  1332. package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
  1333. package/dist/lib/plugins/markdown/resolver.js +0 -46
  1334. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1335. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
  1336. package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -22
  1337. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
  1338. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1339. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1340. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1341. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
  1342. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
  1343. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
  1344. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
  1345. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  1346. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  1347. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
  1348. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  1349. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  1350. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  1351. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  1352. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
  1353. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
  1354. package/dist/vite/plugin-docs.test.js +0 -22
  1355. package/dist/vite/plugin-docs.test.js.map +0 -1
  1356. package/dist/vite/plugin-sidebar.d.ts +0 -5
  1357. package/dist/vite/plugin-sidebar.js +0 -62
  1358. package/dist/vite/plugin-sidebar.js.map +0 -1
  1359. package/dist/vite/plugin-theme-css.d.ts +0 -6
  1360. package/dist/vite/plugin-theme-css.js +0 -117
  1361. package/dist/vite/plugin-theme-css.js.map +0 -1
  1362. package/dist/vite/remarkStaticGeneration.js.map +0 -1
  1363. package/lib/AuthenticationPlugin-UNaAuxNo.js +0 -90
  1364. package/lib/AuthenticationPlugin-UNaAuxNo.js.map +0 -1
  1365. package/lib/Button-Bdk_Ij3U.js +0 -49
  1366. package/lib/Button-Bdk_Ij3U.js.map +0 -1
  1367. package/lib/Callout-XadUe37J.js +0 -230
  1368. package/lib/Callout-XadUe37J.js.map +0 -1
  1369. package/lib/CategoryHeading-DZi-Szor.js +0 -10
  1370. package/lib/CategoryHeading-DZi-Szor.js.map +0 -1
  1371. package/lib/Dialog-CNf2oWXG.js +0 -98
  1372. package/lib/Dialog-CNf2oWXG.js.map +0 -1
  1373. package/lib/Drawer-BPBxzel2.js.map +0 -1
  1374. package/lib/Markdown-D96AphCL.js +0 -7691
  1375. package/lib/Markdown-D96AphCL.js.map +0 -1
  1376. package/lib/MdxPage-Sjv6y3cA.js +0 -84
  1377. package/lib/MdxPage-Sjv6y3cA.js.map +0 -1
  1378. package/lib/OasProvider-CzRXrs_-.js +0 -33
  1379. package/lib/OasProvider-CzRXrs_-.js.map +0 -1
  1380. package/lib/OperationList-DefCF3ZI.js +0 -5111
  1381. package/lib/OperationList-DefCF3ZI.js.map +0 -1
  1382. package/lib/Pagination-B89j9KJS.js +0 -48
  1383. package/lib/Pagination-B89j9KJS.js.map +0 -1
  1384. package/lib/RouteGuard-lkdEJoDV.js.map +0 -1
  1385. package/lib/SchemaList-zHQ2Ekyw.js +0 -146
  1386. package/lib/SchemaList-zHQ2Ekyw.js.map +0 -1
  1387. package/lib/SchemaView-CqF4oMU-.js +0 -370
  1388. package/lib/SchemaView-CqF4oMU-.js.map +0 -1
  1389. package/lib/Select-HTio1oSE.js.map +0 -1
  1390. package/lib/SlotletProvider-CTgIBRWg.js +0 -257
  1391. package/lib/SlotletProvider-CTgIBRWg.js.map +0 -1
  1392. package/lib/SyntaxHighlight-UxOF1xNb.js.map +0 -1
  1393. package/lib/Toc-Ax54Pw8S.js.map +0 -1
  1394. package/lib/chunk-BAXFHI7N-C9WnHsLV.js +0 -1839
  1395. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +0 -1
  1396. package/lib/circular-B_TODp4H.js.map +0 -1
  1397. package/lib/cn-CwJPJKOE.js.map +0 -1
  1398. package/lib/createServer-CXd8q7nF.js.map +0 -1
  1399. package/lib/hook-BwOB_iZo.js +0 -1442
  1400. package/lib/hook-BwOB_iZo.js.map +0 -1
  1401. package/lib/index--oeBayMa.js +0 -86
  1402. package/lib/index--oeBayMa.js.map +0 -1
  1403. package/lib/index-BY8J3gEh.js +0 -3158
  1404. package/lib/index-BY8J3gEh.js.map +0 -1
  1405. package/lib/index-Bn6Lc9tq.js +0 -9
  1406. package/lib/index-Bn6Lc9tq.js.map +0 -1
  1407. package/lib/index-CT2PstvH.js +0 -4982
  1408. package/lib/index-CT2PstvH.js.map +0 -1
  1409. package/lib/index-zddirpDj.js.map +0 -1
  1410. package/lib/index.esm-D2ZUREQN.js +0 -1216
  1411. package/lib/index.esm-D2ZUREQN.js.map +0 -1
  1412. package/lib/invariant-DAFpPywt.js.map +0 -1
  1413. package/lib/objectEntries-yMIkr2mI.js +0 -5
  1414. package/lib/objectEntries-yMIkr2mI.js.map +0 -1
  1415. package/lib/useExposedProps-DG8J6ewJ.js +0 -9
  1416. package/lib/useExposedProps-DG8J6ewJ.js.map +0 -1
  1417. package/src/app/tailwind.ts +0 -103
  1418. package/src/lib/components/ReactMarkdown.license.txt +0 -21
  1419. package/src/lib/components/ReactMarkdown.tsx +0 -264
  1420. package/src/lib/components/SlotletProvider.tsx +0 -55
  1421. package/src/lib/components/navigation/Sidebar.tsx +0 -48
  1422. package/src/lib/components/navigation/SidebarItem.tsx +0 -117
  1423. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  1424. package/src/lib/plugins/markdown/resolver.ts +0 -57
  1425. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -75
  1426. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  1427. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
  1428. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
  1429. /package/dist/{vite/plugin-docs.test.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
@@ -1,3158 +0,0 @@
1
- import { j as n } from "./jsx-runtime-C5mzlN2N.js";
2
- import { ChevronRightIcon as W, CheckIcon as ln, DotIcon as cn, Check as dn, XIcon as un, Circle as mn, ChevronDownIcon as pn, InfoIcon as nt, LogInIcon as hn, CirclePlayIcon as fn } from "lucide-react";
3
- import { r as xn, c as gn, u as yn, N as vn, h as bn, m as st } from "./chunk-BAXFHI7N-C9WnHsLV.js";
4
- import { J as vt, K as bt, L as jn, m as Nn, M as Cn, f as L, d as Sn, l as wn } from "./hook-BwOB_iZo.js";
5
- import { Button as X } from "./ui/Button.js";
6
- import { Z as Tn } from "./invariant-DAFpPywt.js";
7
- import * as S from "react";
8
- import { createContext as jt, use as An, Fragment as D, useRef as U, useEffect as re, useMemo as On, useState as P, useCallback as En, useTransition as Pn, useContext as $n } from "react";
9
- import { VisuallyHidden as Ln } from "@radix-ui/react-visually-hidden";
10
- import { D as Le, a as Re, b as Ie, d as Nt, e as Ct, f as Rn } from "./Dialog-CNf2oWXG.js";
11
- import { S as Ne, a as Ce, b as Se, c as we, e as J, u as In } from "./Select-HTio1oSE.js";
12
- import { b as ke, u as De, C as q, a as kn, F as Dn } from "./index.esm-D2ZUREQN.js";
13
- import { c as St } from "./index-Z13x6tPX.js";
14
- import { c as v } from "./cn-CwJPJKOE.js";
15
- import { Tabs as wt, TabsList as Tt, TabsTrigger as z, TabsContent as M } from "./ui/Tabs.js";
16
- import { o as qn } from "./objectEntries-yMIkr2mI.js";
17
- import { u as Vn } from "./useLatest-hmRS46UF.js";
18
- import { z as Fn } from "./index--oeBayMa.js";
19
- import { B as V } from "./Button-Bdk_Ij3U.js";
20
- import * as b from "@radix-ui/react-dropdown-menu";
21
- import { C as ce } from "./Card-BlCYNw5W.js";
22
- import * as Te from "@radix-ui/react-checkbox";
23
- import * as ae from "@radix-ui/react-popover";
24
- import { PopoverAnchor as _n } from "@radix-ui/react-popover";
25
- import { P as Bn } from "./index-CrcNWbel.js";
26
- import { g as zn, h as Mn, C as Gn, b as Un, f as Hn } from "./Callout-XadUe37J.js";
27
- import { Input as qe } from "./ui/Input.js";
28
- import { Slot as Qn } from "@radix-ui/react-slot";
29
- import * as At from "@radix-ui/react-label";
30
- import * as Z from "@radix-ui/react-radio-group";
31
- import { S as Jn } from "./Spinner-mNLZ6awP.js";
32
- import { Callout as Wn } from "./ui/Callout.js";
33
- import { Card as Ot, CardHeader as Xn, CardTitle as Zn, CardContent as Yn } from "./ui/Card.js";
34
- import { Collapsible as rt, CollapsibleTrigger as at, CollapsibleContent as ot } from "./ui/Collapsible.js";
35
- import * as Ve from "@radix-ui/react-collapsible";
36
- import { S as Kn } from "./SyntaxHighlight-UxOF1xNb.js";
37
- let fe;
38
- const es = (e) => {
39
- if (e.errors?.[0])
40
- throw new Tn(e.errors[0].message, {
41
- developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
42
- });
43
- };
44
- class ts {
45
- constructor(t) {
46
- this.config = t;
47
- }
48
- #e = async () => (fe || (fe = import("./createServer-CXd8q7nF.js").then(
49
- (t) => t.createServer(this.config)
50
- )), fe);
51
- #t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
52
- fetch = async (t, s) => {
53
- const a = t.match(/query (\w+)/)?.[1], r = await this.#t({
54
- method: "POST",
55
- body: JSON.stringify({ query: t, variables: s, operationName: a }),
56
- headers: { "Content-Type": "application/json" }
57
- });
58
- if (!r.ok)
59
- throw new Error("Network response was not ok");
60
- const o = await r.json();
61
- return es(o), o.data;
62
- };
63
- }
64
- function xe(e, t) {
65
- if (!!!e)
66
- throw new Error(t);
67
- }
68
- function ns(e) {
69
- return typeof e == "object" && e !== null;
70
- }
71
- function ss(e, t) {
72
- if (!!!e)
73
- throw new Error(
74
- t ?? "Unexpected invariant triggered."
75
- );
76
- }
77
- const rs = /\r\n|[\n\r]/g;
78
- function Ae(e, t) {
79
- let s = 0, a = 1;
80
- for (const r of e.body.matchAll(rs)) {
81
- if (typeof r.index == "number" || ss(!1), r.index >= t)
82
- break;
83
- s = r.index + r[0].length, a += 1;
84
- }
85
- return {
86
- line: a,
87
- column: t + 1 - s
88
- };
89
- }
90
- function as(e) {
91
- return Et(
92
- e.source,
93
- Ae(e.source, e.start)
94
- );
95
- }
96
- function Et(e, t) {
97
- const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, c = t.line === 1 ? s : 0, l = t.column + c, u = `${e.name}:${i}:${l}
98
- `, p = a.split(/\r\n|[\n\r]/g), y = p[r];
99
- if (y.length > 120) {
100
- const f = Math.floor(l / 80), x = l % 80, m = [];
101
- for (let g = 0; g < y.length; g += 80)
102
- m.push(y.slice(g, g + 80));
103
- return u + it([
104
- [`${i} |`, m[0]],
105
- ...m.slice(1, f + 1).map((g) => ["|", g]),
106
- ["|", "^".padStart(x)],
107
- ["|", m[f + 1]]
108
- ]);
109
- }
110
- return u + it([
111
- // Lines specified like this: ["prefix", "string"],
112
- [`${i - 1} |`, p[r - 1]],
113
- [`${i} |`, y],
114
- ["|", "^".padStart(l)],
115
- [`${i + 1} |`, p[r + 1]]
116
- ]);
117
- }
118
- function it(e) {
119
- const t = e.filter(([a, r]) => r !== void 0), s = Math.max(...t.map(([a]) => a.length));
120
- return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
121
- `);
122
- }
123
- function os(e) {
124
- const t = e[0];
125
- return t == null || "kind" in t || "length" in t ? {
126
- nodes: t,
127
- source: e[1],
128
- positions: e[2],
129
- path: e[3],
130
- originalError: e[4],
131
- extensions: e[5]
132
- } : t;
133
- }
134
- class Fe extends Error {
135
- /**
136
- * An array of `{ line, column }` locations within the source GraphQL document
137
- * which correspond to this error.
138
- *
139
- * Errors during validation often contain multiple locations, for example to
140
- * point out two things with the same name. Errors during execution include a
141
- * single location, the field which produced the error.
142
- *
143
- * Enumerable, and appears in the result of JSON.stringify().
144
- */
145
- /**
146
- * An array describing the JSON-path into the execution response which
147
- * corresponds to this error. Only included for errors during execution.
148
- *
149
- * Enumerable, and appears in the result of JSON.stringify().
150
- */
151
- /**
152
- * An array of GraphQL AST Nodes corresponding to this error.
153
- */
154
- /**
155
- * The source GraphQL document for the first location of this error.
156
- *
157
- * Note that if this Error represents more than one node, the source may not
158
- * represent nodes after the first node.
159
- */
160
- /**
161
- * An array of character offsets within the source GraphQL document
162
- * which correspond to this error.
163
- */
164
- /**
165
- * The original error thrown from a field resolver during execution.
166
- */
167
- /**
168
- * Extension fields to add to the formatted error.
169
- */
170
- /**
171
- * @deprecated Please use the `GraphQLErrorOptions` constructor overload instead.
172
- */
173
- constructor(t, ...s) {
174
- var a, r, o;
175
- const { nodes: i, source: c, positions: l, path: u, originalError: p, extensions: y } = os(s);
176
- super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = p ?? void 0, this.nodes = lt(
177
- Array.isArray(i) ? i : i ? [i] : void 0
178
- );
179
- const f = lt(
180
- (a = this.nodes) === null || a === void 0 ? void 0 : a.map((m) => m.loc).filter((m) => m != null)
181
- );
182
- this.source = c ?? (f == null || (r = f[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? f?.map((m) => m.start), this.locations = l && c ? l.map((m) => Ae(c, m)) : f?.map((m) => Ae(m.source, m.start));
183
- const x = ns(
184
- p?.extensions
185
- ) ? p?.extensions : void 0;
186
- this.extensions = (o = y ?? x) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
187
- message: {
188
- writable: !0,
189
- enumerable: !0
190
- },
191
- name: {
192
- enumerable: !1
193
- },
194
- nodes: {
195
- enumerable: !1
196
- },
197
- source: {
198
- enumerable: !1
199
- },
200
- positions: {
201
- enumerable: !1
202
- },
203
- originalError: {
204
- enumerable: !1
205
- }
206
- }), p != null && p.stack ? Object.defineProperty(this, "stack", {
207
- value: p.stack,
208
- writable: !0,
209
- configurable: !0
210
- }) : Error.captureStackTrace ? Error.captureStackTrace(this, Fe) : Object.defineProperty(this, "stack", {
211
- value: Error().stack,
212
- writable: !0,
213
- configurable: !0
214
- });
215
- }
216
- get [Symbol.toStringTag]() {
217
- return "GraphQLError";
218
- }
219
- toString() {
220
- let t = this.message;
221
- if (this.nodes)
222
- for (const s of this.nodes)
223
- s.loc && (t += `
224
-
225
- ` + as(s.loc));
226
- else if (this.source && this.locations)
227
- for (const s of this.locations)
228
- t += `
229
-
230
- ` + Et(this.source, s);
231
- return t;
232
- }
233
- toJSON() {
234
- const t = {
235
- message: this.message
236
- };
237
- return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
238
- }
239
- }
240
- function lt(e) {
241
- return e === void 0 || e.length === 0 ? void 0 : e;
242
- }
243
- function A(e, t, s) {
244
- return new Fe(`Syntax Error: ${s}`, {
245
- source: e,
246
- positions: [t]
247
- });
248
- }
249
- class da {
250
- /**
251
- * The character offset at which this Node begins.
252
- */
253
- /**
254
- * The character offset at which this Node ends.
255
- */
256
- /**
257
- * The Token at which this Node begins.
258
- */
259
- /**
260
- * The Token at which this Node ends.
261
- */
262
- /**
263
- * The Source document the AST represents.
264
- */
265
- constructor(t, s, a) {
266
- this.start = t.start, this.end = s.end, this.startToken = t, this.endToken = s, this.source = a;
267
- }
268
- get [Symbol.toStringTag]() {
269
- return "Location";
270
- }
271
- toJSON() {
272
- return {
273
- start: this.start,
274
- end: this.end
275
- };
276
- }
277
- }
278
- class Pt {
279
- /**
280
- * The kind of Token.
281
- */
282
- /**
283
- * The character offset at which this Node begins.
284
- */
285
- /**
286
- * The character offset at which this Node ends.
287
- */
288
- /**
289
- * The 1-indexed line number on which this Token appears.
290
- */
291
- /**
292
- * The 1-indexed column number at which this Token begins.
293
- */
294
- /**
295
- * For non-punctuation tokens, represents the interpreted value of the token.
296
- *
297
- * Note: is undefined for punctuation tokens, but typed as string for
298
- * convenience in the parser.
299
- */
300
- /**
301
- * Tokens exist as nodes in a double-linked-list amongst all tokens
302
- * including ignored tokens. <SOF> is always the first node and <EOF>
303
- * the last.
304
- */
305
- constructor(t, s, a, r, o, i) {
306
- this.kind = t, this.start = s, this.end = a, this.line = r, this.column = o, this.value = i, this.prev = null, this.next = null;
307
- }
308
- get [Symbol.toStringTag]() {
309
- return "Token";
310
- }
311
- toJSON() {
312
- return {
313
- kind: this.kind,
314
- value: this.value,
315
- line: this.line,
316
- column: this.column
317
- };
318
- }
319
- }
320
- const is = {
321
- Name: [],
322
- Document: ["definitions"],
323
- OperationDefinition: [
324
- "name",
325
- "variableDefinitions",
326
- "directives",
327
- "selectionSet"
328
- ],
329
- VariableDefinition: ["variable", "type", "defaultValue", "directives"],
330
- Variable: ["name"],
331
- SelectionSet: ["selections"],
332
- Field: ["alias", "name", "arguments", "directives", "selectionSet"],
333
- Argument: ["name", "value"],
334
- FragmentSpread: ["name", "directives"],
335
- InlineFragment: ["typeCondition", "directives", "selectionSet"],
336
- FragmentDefinition: [
337
- "name",
338
- // Note: fragment variable definitions are deprecated and will removed in v17.0.0
339
- "variableDefinitions",
340
- "typeCondition",
341
- "directives",
342
- "selectionSet"
343
- ],
344
- IntValue: [],
345
- FloatValue: [],
346
- StringValue: [],
347
- BooleanValue: [],
348
- NullValue: [],
349
- EnumValue: [],
350
- ListValue: ["values"],
351
- ObjectValue: ["fields"],
352
- ObjectField: ["name", "value"],
353
- Directive: ["name", "arguments"],
354
- NamedType: ["name"],
355
- ListType: ["type"],
356
- NonNullType: ["type"],
357
- SchemaDefinition: ["description", "directives", "operationTypes"],
358
- OperationTypeDefinition: ["type"],
359
- ScalarTypeDefinition: ["description", "name", "directives"],
360
- ObjectTypeDefinition: [
361
- "description",
362
- "name",
363
- "interfaces",
364
- "directives",
365
- "fields"
366
- ],
367
- FieldDefinition: ["description", "name", "arguments", "type", "directives"],
368
- InputValueDefinition: [
369
- "description",
370
- "name",
371
- "type",
372
- "defaultValue",
373
- "directives"
374
- ],
375
- InterfaceTypeDefinition: [
376
- "description",
377
- "name",
378
- "interfaces",
379
- "directives",
380
- "fields"
381
- ],
382
- UnionTypeDefinition: ["description", "name", "directives", "types"],
383
- EnumTypeDefinition: ["description", "name", "directives", "values"],
384
- EnumValueDefinition: ["description", "name", "directives"],
385
- InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
386
- DirectiveDefinition: ["description", "name", "arguments", "locations"],
387
- SchemaExtension: ["directives", "operationTypes"],
388
- ScalarTypeExtension: ["name", "directives"],
389
- ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
390
- InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
391
- UnionTypeExtension: ["name", "directives", "types"],
392
- EnumTypeExtension: ["name", "directives", "values"],
393
- InputObjectTypeExtension: ["name", "directives", "fields"]
394
- }, ls = new Set(Object.keys(is));
395
- function ua(e) {
396
- const t = e?.kind;
397
- return typeof t == "string" && ls.has(t);
398
- }
399
- var ct;
400
- (function(e) {
401
- e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
402
- })(ct || (ct = {}));
403
- function Oe(e) {
404
- return e === 9 || e === 32;
405
- }
406
- function Y(e) {
407
- return e >= 48 && e <= 57;
408
- }
409
- function $t(e) {
410
- return e >= 97 && e <= 122 || // A-Z
411
- e >= 65 && e <= 90;
412
- }
413
- function Lt(e) {
414
- return $t(e) || e === 95;
415
- }
416
- function cs(e) {
417
- return $t(e) || Y(e) || e === 95;
418
- }
419
- function ds(e) {
420
- var t;
421
- let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
422
- for (let i = 0; i < e.length; ++i) {
423
- var o;
424
- const c = e[i], l = us(c);
425
- l !== c.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && l < s && (s = l));
426
- }
427
- return e.map((i, c) => c === 0 ? i : i.slice(s)).slice(
428
- (t = a) !== null && t !== void 0 ? t : 0,
429
- r + 1
430
- );
431
- }
432
- function us(e) {
433
- let t = 0;
434
- for (; t < e.length && Oe(e.charCodeAt(t)); )
435
- ++t;
436
- return t;
437
- }
438
- function ms(e, t) {
439
- const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((x) => x.length === 0 || Oe(x.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), u = c || l, p = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
440
- (!r || e.length > 70 || u || o || i);
441
- let y = "";
442
- const f = r && Oe(e.charCodeAt(0));
443
- return (p && !f || o) && (y += `
444
- `), y += s, (p || u) && (y += `
445
- `), '"""' + y + '"""';
446
- }
447
- var h;
448
- (function(e) {
449
- e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
450
- })(h || (h = {}));
451
- class ps {
452
- /**
453
- * The previously focused non-ignored token.
454
- */
455
- /**
456
- * The currently focused non-ignored token.
457
- */
458
- /**
459
- * The (1-indexed) line containing the current token.
460
- */
461
- /**
462
- * The character offset at which the current line begins.
463
- */
464
- constructor(t) {
465
- const s = new Pt(h.SOF, 0, 0, 0, 0);
466
- this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
467
- }
468
- get [Symbol.toStringTag]() {
469
- return "Lexer";
470
- }
471
- /**
472
- * Advances the token stream to the next non-ignored token.
473
- */
474
- advance() {
475
- return this.lastToken = this.token, this.token = this.lookahead();
476
- }
477
- /**
478
- * Looks ahead and returns the next non-ignored token, but does not change
479
- * the state of Lexer.
480
- */
481
- lookahead() {
482
- let t = this.token;
483
- if (t.kind !== h.EOF)
484
- do
485
- if (t.next)
486
- t = t.next;
487
- else {
488
- const s = fs(this, t.end);
489
- t.next = s, s.prev = t, t = s;
490
- }
491
- while (t.kind === h.COMMENT);
492
- return t;
493
- }
494
- }
495
- function hs(e) {
496
- return e === h.BANG || e === h.DOLLAR || e === h.AMP || e === h.PAREN_L || e === h.PAREN_R || e === h.SPREAD || e === h.COLON || e === h.EQUALS || e === h.AT || e === h.BRACKET_L || e === h.BRACKET_R || e === h.BRACE_L || e === h.PIPE || e === h.BRACE_R;
497
- }
498
- function H(e) {
499
- return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
500
- }
501
- function de(e, t) {
502
- return Rt(e.charCodeAt(t)) && It(e.charCodeAt(t + 1));
503
- }
504
- function Rt(e) {
505
- return e >= 55296 && e <= 56319;
506
- }
507
- function It(e) {
508
- return e >= 56320 && e <= 57343;
509
- }
510
- function F(e, t) {
511
- const s = e.source.body.codePointAt(t);
512
- if (s === void 0)
513
- return h.EOF;
514
- if (s >= 32 && s <= 126) {
515
- const a = String.fromCodePoint(s);
516
- return a === '"' ? `'"'` : `"${a}"`;
517
- }
518
- return "U+" + s.toString(16).toUpperCase().padStart(4, "0");
519
- }
520
- function N(e, t, s, a, r) {
521
- const o = e.line, i = 1 + s - e.lineStart;
522
- return new Pt(t, s, a, o, i, r);
523
- }
524
- function fs(e, t) {
525
- const s = e.source.body, a = s.length;
526
- let r = t;
527
- for (; r < a; ) {
528
- const o = s.charCodeAt(r);
529
- switch (o) {
530
- // Ignored ::
531
- // - UnicodeBOM
532
- // - WhiteSpace
533
- // - LineTerminator
534
- // - Comment
535
- // - Comma
536
- //
537
- // UnicodeBOM :: "Byte Order Mark (U+FEFF)"
538
- //
539
- // WhiteSpace ::
540
- // - "Horizontal Tab (U+0009)"
541
- // - "Space (U+0020)"
542
- //
543
- // Comma :: ,
544
- case 65279:
545
- // <BOM>
546
- case 9:
547
- // \t
548
- case 32:
549
- // <space>
550
- case 44:
551
- ++r;
552
- continue;
553
- // LineTerminator ::
554
- // - "New Line (U+000A)"
555
- // - "Carriage Return (U+000D)" [lookahead != "New Line (U+000A)"]
556
- // - "Carriage Return (U+000D)" "New Line (U+000A)"
557
- case 10:
558
- ++r, ++e.line, e.lineStart = r;
559
- continue;
560
- case 13:
561
- s.charCodeAt(r + 1) === 10 ? r += 2 : ++r, ++e.line, e.lineStart = r;
562
- continue;
563
- // Comment
564
- case 35:
565
- return xs(e, r);
566
- // Token ::
567
- // - Punctuator
568
- // - Name
569
- // - IntValue
570
- // - FloatValue
571
- // - StringValue
572
- //
573
- // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
574
- case 33:
575
- return N(e, h.BANG, r, r + 1);
576
- case 36:
577
- return N(e, h.DOLLAR, r, r + 1);
578
- case 38:
579
- return N(e, h.AMP, r, r + 1);
580
- case 40:
581
- return N(e, h.PAREN_L, r, r + 1);
582
- case 41:
583
- return N(e, h.PAREN_R, r, r + 1);
584
- case 46:
585
- if (s.charCodeAt(r + 1) === 46 && s.charCodeAt(r + 2) === 46)
586
- return N(e, h.SPREAD, r, r + 3);
587
- break;
588
- case 58:
589
- return N(e, h.COLON, r, r + 1);
590
- case 61:
591
- return N(e, h.EQUALS, r, r + 1);
592
- case 64:
593
- return N(e, h.AT, r, r + 1);
594
- case 91:
595
- return N(e, h.BRACKET_L, r, r + 1);
596
- case 93:
597
- return N(e, h.BRACKET_R, r, r + 1);
598
- case 123:
599
- return N(e, h.BRACE_L, r, r + 1);
600
- case 124:
601
- return N(e, h.PIPE, r, r + 1);
602
- case 125:
603
- return N(e, h.BRACE_R, r, r + 1);
604
- // StringValue
605
- case 34:
606
- return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Ns(e, r) : ys(e, r);
607
- }
608
- if (Y(o) || o === 45)
609
- return gs(e, r, o);
610
- if (Lt(o))
611
- return Cs(e, r);
612
- throw A(
613
- e.source,
614
- r,
615
- o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : H(o) || de(s, r) ? `Unexpected character: ${F(e, r)}.` : `Invalid character: ${F(e, r)}.`
616
- );
617
- }
618
- return N(e, h.EOF, a, a);
619
- }
620
- function xs(e, t) {
621
- const s = e.source.body, a = s.length;
622
- let r = t + 1;
623
- for (; r < a; ) {
624
- const o = s.charCodeAt(r);
625
- if (o === 10 || o === 13)
626
- break;
627
- if (H(o))
628
- ++r;
629
- else if (de(s, r))
630
- r += 2;
631
- else
632
- break;
633
- }
634
- return N(
635
- e,
636
- h.COMMENT,
637
- t,
638
- r,
639
- s.slice(t + 1, r)
640
- );
641
- }
642
- function gs(e, t, s) {
643
- const a = e.source.body;
644
- let r = t, o = s, i = !1;
645
- if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
646
- if (o = a.charCodeAt(++r), Y(o))
647
- throw A(
648
- e.source,
649
- r,
650
- `Invalid number, unexpected digit after 0: ${F(
651
- e,
652
- r
653
- )}.`
654
- );
655
- } else
656
- r = ge(e, r, o), o = a.charCodeAt(r);
657
- if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = ge(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = ge(e, r, o), o = a.charCodeAt(r)), o === 46 || Lt(o))
658
- throw A(
659
- e.source,
660
- r,
661
- `Invalid number, expected digit but got: ${F(
662
- e,
663
- r
664
- )}.`
665
- );
666
- return N(
667
- e,
668
- i ? h.FLOAT : h.INT,
669
- t,
670
- r,
671
- a.slice(t, r)
672
- );
673
- }
674
- function ge(e, t, s) {
675
- if (!Y(s))
676
- throw A(
677
- e.source,
678
- t,
679
- `Invalid number, expected digit but got: ${F(
680
- e,
681
- t
682
- )}.`
683
- );
684
- const a = e.source.body;
685
- let r = t + 1;
686
- for (; Y(a.charCodeAt(r)); )
687
- ++r;
688
- return r;
689
- }
690
- function ys(e, t) {
691
- const s = e.source.body, a = s.length;
692
- let r = t + 1, o = r, i = "";
693
- for (; r < a; ) {
694
- const c = s.charCodeAt(r);
695
- if (c === 34)
696
- return i += s.slice(o, r), N(e, h.STRING, t, r + 1, i);
697
- if (c === 92) {
698
- i += s.slice(o, r);
699
- const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? vs(e, r) : bs(e, r) : js(e, r);
700
- i += l.value, r += l.size, o = r;
701
- continue;
702
- }
703
- if (c === 10 || c === 13)
704
- break;
705
- if (H(c))
706
- ++r;
707
- else if (de(s, r))
708
- r += 2;
709
- else
710
- throw A(
711
- e.source,
712
- r,
713
- `Invalid character within String: ${F(
714
- e,
715
- r
716
- )}.`
717
- );
718
- }
719
- throw A(e.source, r, "Unterminated string.");
720
- }
721
- function vs(e, t) {
722
- const s = e.source.body;
723
- let a = 0, r = 3;
724
- for (; r < 12; ) {
725
- const o = s.charCodeAt(t + r++);
726
- if (o === 125) {
727
- if (r < 5 || !H(a))
728
- break;
729
- return {
730
- value: String.fromCodePoint(a),
731
- size: r
732
- };
733
- }
734
- if (a = a << 4 | Q(o), a < 0)
735
- break;
736
- }
737
- throw A(
738
- e.source,
739
- t,
740
- `Invalid Unicode escape sequence: "${s.slice(
741
- t,
742
- t + r
743
- )}".`
744
- );
745
- }
746
- function bs(e, t) {
747
- const s = e.source.body, a = dt(s, t + 2);
748
- if (H(a))
749
- return {
750
- value: String.fromCodePoint(a),
751
- size: 6
752
- };
753
- if (Rt(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
754
- const r = dt(s, t + 8);
755
- if (It(r))
756
- return {
757
- value: String.fromCodePoint(a, r),
758
- size: 12
759
- };
760
- }
761
- throw A(
762
- e.source,
763
- t,
764
- `Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
765
- );
766
- }
767
- function dt(e, t) {
768
- return Q(e.charCodeAt(t)) << 12 | Q(e.charCodeAt(t + 1)) << 8 | Q(e.charCodeAt(t + 2)) << 4 | Q(e.charCodeAt(t + 3));
769
- }
770
- function Q(e) {
771
- return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
772
- }
773
- function js(e, t) {
774
- const s = e.source.body;
775
- switch (s.charCodeAt(t + 1)) {
776
- case 34:
777
- return {
778
- value: '"',
779
- size: 2
780
- };
781
- case 92:
782
- return {
783
- value: "\\",
784
- size: 2
785
- };
786
- case 47:
787
- return {
788
- value: "/",
789
- size: 2
790
- };
791
- case 98:
792
- return {
793
- value: "\b",
794
- size: 2
795
- };
796
- case 102:
797
- return {
798
- value: "\f",
799
- size: 2
800
- };
801
- case 110:
802
- return {
803
- value: `
804
- `,
805
- size: 2
806
- };
807
- case 114:
808
- return {
809
- value: "\r",
810
- size: 2
811
- };
812
- case 116:
813
- return {
814
- value: " ",
815
- size: 2
816
- };
817
- }
818
- throw A(
819
- e.source,
820
- t,
821
- `Invalid character escape sequence: "${s.slice(
822
- t,
823
- t + 2
824
- )}".`
825
- );
826
- }
827
- function Ns(e, t) {
828
- const s = e.source.body, a = s.length;
829
- let r = e.lineStart, o = t + 3, i = o, c = "";
830
- const l = [];
831
- for (; o < a; ) {
832
- const u = s.charCodeAt(o);
833
- if (u === 34 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34) {
834
- c += s.slice(i, o), l.push(c);
835
- const p = N(
836
- e,
837
- h.BLOCK_STRING,
838
- t,
839
- o + 3,
840
- // Return a string of the lines joined with U+000A.
841
- ds(l).join(`
842
- `)
843
- );
844
- return e.line += l.length - 1, e.lineStart = r, p;
845
- }
846
- if (u === 92 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34 && s.charCodeAt(o + 3) === 34) {
847
- c += s.slice(i, o), i = o + 1, o += 4;
848
- continue;
849
- }
850
- if (u === 10 || u === 13) {
851
- c += s.slice(i, o), l.push(c), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, c = "", i = o, r = o;
852
- continue;
853
- }
854
- if (H(u))
855
- ++o;
856
- else if (de(s, o))
857
- o += 2;
858
- else
859
- throw A(
860
- e.source,
861
- o,
862
- `Invalid character within String: ${F(
863
- e,
864
- o
865
- )}.`
866
- );
867
- }
868
- throw A(e.source, o, "Unterminated string.");
869
- }
870
- function Cs(e, t) {
871
- const s = e.source.body, a = s.length;
872
- let r = t + 1;
873
- for (; r < a; ) {
874
- const o = s.charCodeAt(r);
875
- if (cs(o))
876
- ++r;
877
- else
878
- break;
879
- }
880
- return N(
881
- e,
882
- h.NAME,
883
- t,
884
- r,
885
- s.slice(t, r)
886
- );
887
- }
888
- const Ss = 10, kt = 2;
889
- function Dt(e) {
890
- return ue(e, []);
891
- }
892
- function ue(e, t) {
893
- switch (typeof e) {
894
- case "string":
895
- return JSON.stringify(e);
896
- case "function":
897
- return e.name ? `[function ${e.name}]` : "[function]";
898
- case "object":
899
- return ws(e, t);
900
- default:
901
- return String(e);
902
- }
903
- }
904
- function ws(e, t) {
905
- if (e === null)
906
- return "null";
907
- if (t.includes(e))
908
- return "[Circular]";
909
- const s = [...t, e];
910
- if (Ts(e)) {
911
- const a = e.toJSON();
912
- if (a !== e)
913
- return typeof a == "string" ? a : ue(a, s);
914
- } else if (Array.isArray(e))
915
- return Os(e, s);
916
- return As(e, s);
917
- }
918
- function Ts(e) {
919
- return typeof e.toJSON == "function";
920
- }
921
- function As(e, t) {
922
- const s = Object.entries(e);
923
- return s.length === 0 ? "{}" : t.length > kt ? "[" + Es(e) + "]" : "{ " + s.map(
924
- ([r, o]) => r + ": " + ue(o, t)
925
- ).join(", ") + " }";
926
- }
927
- function Os(e, t) {
928
- if (e.length === 0)
929
- return "[]";
930
- if (t.length > kt)
931
- return "[Array]";
932
- const s = Math.min(Ss, e.length), a = e.length - s, r = [];
933
- for (let o = 0; o < s; ++o)
934
- r.push(ue(e[o], t));
935
- return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
936
- }
937
- function Es(e) {
938
- const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
939
- if (t === "Object" && typeof e.constructor == "function") {
940
- const s = e.constructor.name;
941
- if (typeof s == "string" && s !== "")
942
- return s;
943
- }
944
- return t;
945
- }
946
- const Ps = globalThis.process && // eslint-disable-next-line no-undef
947
- process.env.NODE_ENV === "production", $s = (
948
- /* c8 ignore next 6 */
949
- // FIXME: https://github.com/graphql/graphql-js/issues/2317
950
- Ps ? function(t, s) {
951
- return t instanceof s;
952
- } : function(t, s) {
953
- if (t instanceof s)
954
- return !0;
955
- if (typeof t == "object" && t !== null) {
956
- var a;
957
- const r = s.prototype[Symbol.toStringTag], o = (
958
- // We still need to support constructor's name to detect conflicts with older versions of this library.
959
- Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
960
- );
961
- if (r === o) {
962
- const i = Dt(t);
963
- throw new Error(`Cannot use ${r} "${i}" from another module or realm.
964
-
965
- Ensure that there is only one instance of "graphql" in the node_modules
966
- directory. If different versions of "graphql" are the dependencies of other
967
- relied on modules, use "resolutions" to ensure only one version is installed.
968
-
969
- https://yarnpkg.com/en/docs/selective-version-resolutions
970
-
971
- Duplicate "graphql" modules cannot be used at the same time since different
972
- versions may have different capabilities and behavior. The data from one
973
- version used in the function from another could produce confusing and
974
- spurious results.`);
975
- }
976
- }
977
- return !1;
978
- }
979
- );
980
- class qt {
981
- constructor(t, s = "GraphQL request", a = {
982
- line: 1,
983
- column: 1
984
- }) {
985
- typeof t == "string" || xe(!1, `Body must be a string. Received: ${Dt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || xe(
986
- !1,
987
- "line in locationOffset is 1-indexed and must be positive."
988
- ), this.locationOffset.column > 0 || xe(
989
- !1,
990
- "column in locationOffset is 1-indexed and must be positive."
991
- );
992
- }
993
- get [Symbol.toStringTag]() {
994
- return "Source";
995
- }
996
- }
997
- function Ls(e) {
998
- return $s(e, qt);
999
- }
1000
- function Rs(e) {
1001
- const t = Ls(e) ? e : new qt(e), s = t.body, a = new ps(t);
1002
- let r = "", o = !1;
1003
- for (; a.advance().kind !== h.EOF; ) {
1004
- const i = a.token, c = i.kind, l = !hs(i.kind);
1005
- o && (l || i.kind === h.SPREAD) && (r += " ");
1006
- const u = s.slice(i.start, i.end);
1007
- c === h.BLOCK_STRING ? r += ms(i.value, {
1008
- minimize: !0
1009
- }) : r += u, o = l;
1010
- }
1011
- return r;
1012
- }
1013
- const Vt = jt(
1014
- void 0
1015
- ), ma = ({
1016
- children: e,
1017
- client: t
1018
- }) => /* @__PURE__ */ n.jsx(Vt.Provider, { value: t, children: e }), Ft = (e, t, ...[s]) => ({
1019
- queryFn: () => e.fetch(t, s),
1020
- queryKey: [Rs(t.toString()), s]
1021
- }), Is = (e, ...[t]) => {
1022
- const s = An(Vt);
1023
- if (s === void 0)
1024
- throw new Error("useGraphQL must be used within a GraphQLProvider");
1025
- return Ft(s, e, ...t === void 0 ? [] : [t]);
1026
- };
1027
- class _ extends String {
1028
- __apiType;
1029
- value;
1030
- __meta__;
1031
- constructor(t, s) {
1032
- super(t), this.value = t, this.__meta__ = s;
1033
- }
1034
- toString() {
1035
- return this.value;
1036
- }
1037
- }
1038
- const ks = new _(
1039
- `
1040
- fragment OperationsFragment on OperationItem {
1041
- slug
1042
- summary
1043
- method
1044
- description
1045
- operationId
1046
- contentTypes
1047
- path
1048
- deprecated
1049
- extensions
1050
- parameters {
1051
- name
1052
- in
1053
- description
1054
- required
1055
- schema
1056
- style
1057
- explode
1058
- examples {
1059
- name
1060
- description
1061
- externalValue
1062
- value
1063
- summary
1064
- }
1065
- }
1066
- requestBody {
1067
- content {
1068
- mediaType
1069
- encoding {
1070
- name
1071
- }
1072
- examples {
1073
- name
1074
- description
1075
- externalValue
1076
- value
1077
- summary
1078
- }
1079
- schema
1080
- }
1081
- description
1082
- required
1083
- }
1084
- responses {
1085
- statusCode
1086
- links
1087
- description
1088
- content {
1089
- examples {
1090
- name
1091
- description
1092
- externalValue
1093
- value
1094
- summary
1095
- }
1096
- mediaType
1097
- encoding {
1098
- name
1099
- }
1100
- schema
1101
- }
1102
- }
1103
- }
1104
- `,
1105
- { fragmentName: "OperationsFragment" }
1106
- ), Ds = new _(`
1107
- query ServersQuery($input: JSON!, $type: SchemaType!) {
1108
- schema(input: $input, type: $type) {
1109
- url
1110
- servers {
1111
- url
1112
- }
1113
- }
1114
- }
1115
- `), qs = new _(`
1116
- query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1117
- schema(input: $input, type: $type) {
1118
- openapi
1119
- }
1120
- }
1121
- `), Vs = new _(`
1122
- query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1123
- schema(input: $input, type: $type) {
1124
- servers {
1125
- url
1126
- }
1127
- description
1128
- summary
1129
- title
1130
- url
1131
- version
1132
- tag(slug: $tag, untagged: $untagged) {
1133
- name
1134
- description
1135
- operations {
1136
- slug
1137
- ...OperationsFragment
1138
- }
1139
- next {
1140
- name
1141
- slug
1142
- }
1143
- prev {
1144
- name
1145
- slug
1146
- }
1147
- }
1148
- }
1149
- }
1150
- fragment OperationsFragment on OperationItem {
1151
- slug
1152
- summary
1153
- method
1154
- description
1155
- operationId
1156
- contentTypes
1157
- path
1158
- deprecated
1159
- extensions
1160
- parameters {
1161
- name
1162
- in
1163
- description
1164
- required
1165
- schema
1166
- style
1167
- explode
1168
- examples {
1169
- name
1170
- description
1171
- externalValue
1172
- value
1173
- summary
1174
- }
1175
- }
1176
- requestBody {
1177
- content {
1178
- mediaType
1179
- encoding {
1180
- name
1181
- }
1182
- examples {
1183
- name
1184
- description
1185
- externalValue
1186
- value
1187
- summary
1188
- }
1189
- schema
1190
- }
1191
- description
1192
- required
1193
- }
1194
- responses {
1195
- statusCode
1196
- links
1197
- description
1198
- content {
1199
- examples {
1200
- name
1201
- description
1202
- externalValue
1203
- value
1204
- summary
1205
- }
1206
- mediaType
1207
- encoding {
1208
- name
1209
- }
1210
- schema
1211
- }
1212
- }
1213
- }`), Fs = new _(`
1214
- query GetSchemas($input: JSON!, $type: SchemaType!) {
1215
- schema(input: $input, type: $type) {
1216
- title
1217
- description
1218
- summary
1219
- components {
1220
- schemas {
1221
- name
1222
- schema
1223
- extensions
1224
- }
1225
- }
1226
- }
1227
- }
1228
- `), _s = new _(`
1229
- query getServerQuery($input: JSON!, $type: SchemaType!) {
1230
- schema(input: $input, type: $type) {
1231
- url
1232
- servers {
1233
- url
1234
- }
1235
- }
1236
- }
1237
- `), Bs = new _(`
1238
- query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
1239
- schema(input: $input, type: $type) {
1240
- tags {
1241
- slug
1242
- name
1243
- extensions
1244
- operations {
1245
- summary
1246
- slug
1247
- method
1248
- operationId
1249
- path
1250
- }
1251
- }
1252
- components {
1253
- schemas {
1254
- __typename
1255
- }
1256
- }
1257
- }
1258
- }
1259
- `), zs = {
1260
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Ds,
1261
- "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": ks,
1262
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": qs,
1263
- "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": Vs,
1264
- "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": Fs,
1265
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": _s,
1266
- "\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": Bs
1267
- };
1268
- function Ms(e) {
1269
- return zs[e] ?? {};
1270
- }
1271
- const Gs = St(
1272
- "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
1273
- {
1274
- variants: {
1275
- variant: {
1276
- default: "bg-background text-foreground",
1277
- destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
1278
- }
1279
- },
1280
- defaultVariants: {
1281
- variant: "default"
1282
- }
1283
- }
1284
- ), Ee = S.forwardRef(({ className: e, variant: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1285
- "div",
1286
- {
1287
- ref: a,
1288
- role: "alert",
1289
- className: v(Gs({ variant: t }), e),
1290
- ...s
1291
- }
1292
- ));
1293
- Ee.displayName = "Alert";
1294
- const Pe = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1295
- "h5",
1296
- {
1297
- ref: s,
1298
- className: v("mb-1 font-medium leading-none tracking-tight", e),
1299
- ...t
1300
- }
1301
- ));
1302
- Pe.displayName = "AlertTitle";
1303
- const $e = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1304
- "div",
1305
- {
1306
- ref: s,
1307
- className: v("text-sm [&_p]:leading-relaxed", e),
1308
- ...t
1309
- }
1310
- ));
1311
- $e.displayName = "AlertDescription";
1312
- const Us = ({
1313
- path: e,
1314
- renderParam: t
1315
- }) => {
1316
- let s = 0;
1317
- return e.split("/").map((a, r, o) => {
1318
- const i = Array.from(a.matchAll(/{([^}]+)}/g)), c = [];
1319
- let l = 0;
1320
- return i.forEach((u) => {
1321
- const [p, y] = u;
1322
- if (!y) return;
1323
- const f = u.index;
1324
- f > l && c.push(
1325
- /* @__PURE__ */ n.jsx(D, { children: a.slice(l, f) }, `text-${l}-${f}`)
1326
- ), c.push(
1327
- /* @__PURE__ */ n.jsx(D, { children: t({ name: y, originalValue: p, index: s++ }) }, `param-${y}`)
1328
- ), l = f + p.length;
1329
- }), l < a.length && c.push(
1330
- /* @__PURE__ */ n.jsx(D, { children: a.slice(l) }, `text-${l}-${a.length}`)
1331
- ), // eslint-disable-next-line react/no-array-index-key
1332
- /* @__PURE__ */ n.jsxs(D, { children: [
1333
- c,
1334
- r < o.length - 1 && "/",
1335
- /* @__PURE__ */ n.jsx("wbr", {})
1336
- ] }, `${a}-${r}`);
1337
- });
1338
- }, _t = S.forwardRef(
1339
- ({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1340
- "textarea",
1341
- {
1342
- className: v(
1343
- "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1344
- e
1345
- ),
1346
- ref: s,
1347
- ...t
1348
- }
1349
- )
1350
- );
1351
- _t.displayName = "Textarea";
1352
- const ye = (e) => Math.abs(
1353
- isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
1354
- ), ve = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${ye(t) + ye(s)}`)) : ye(e), ut = (e, t = {}) => {
1355
- const s = (3 * ve(e) + 2 * ve(e) + ve(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
1356
- return `${s}deg ${a}% ${r}%`;
1357
- }, be = "data-linked-param", Hs = (e) => {
1358
- const { resolvedTheme: t } = Fn();
1359
- return {
1360
- text: ut(
1361
- e,
1362
- t === "light" ? { saturation: 95, lightness: 38 } : {}
1363
- ),
1364
- background: ut(
1365
- e,
1366
- t === "light" ? { saturation: 85, lightness: 40 } : {}
1367
- )
1368
- };
1369
- }, Bt = ({
1370
- name: e,
1371
- className: t,
1372
- slug: s,
1373
- title: a,
1374
- children: r,
1375
- onClick: o
1376
- }) => {
1377
- const i = U(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: u, background: p } = Hs(l), y = `hsl(${u} / 100%)`, f = `hsl(${p} / 10%)`, x = `hsl(${p} / 50%)`;
1378
- return re(() => {
1379
- if (!c || !i.current) return;
1380
- const m = () => {
1381
- document.querySelectorAll(`[${be}="${c}"]`).forEach((j) => {
1382
- j instanceof HTMLElement && (j.dataset.active = "true");
1383
- });
1384
- }, g = () => {
1385
- document.querySelectorAll(`[${be}="${c}"]`).forEach((j) => {
1386
- j instanceof HTMLElement && (j.dataset.active = "false");
1387
- });
1388
- }, C = i.current;
1389
- return C.addEventListener("mouseenter", m), C.addEventListener("mouseleave", g), () => {
1390
- C.removeEventListener("mouseenter", m), C.removeEventListener("mouseleave", g);
1391
- };
1392
- }, [c]), /* @__PURE__ */ n.jsx(
1393
- "span",
1394
- {
1395
- [be]: c,
1396
- className: v(
1397
- // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
1398
- "relative transition-all duration-100 rounded-lg",
1399
- "border border-[--border-color] p-0.5 text-[--param-color] bg-[--background-color]",
1400
- "data-[active=true]:border-[--param-color] data-[active=true]:shadow data-[active=true]:bottom-px",
1401
- t
1402
- ),
1403
- title: a,
1404
- suppressHydrationWarning: !0,
1405
- ref: i,
1406
- onClick: o,
1407
- style: {
1408
- "--param-color": y,
1409
- "--border-color": x,
1410
- "--background-color": f
1411
- },
1412
- children: r ?? e
1413
- }
1414
- );
1415
- }, Qs = vt()(
1416
- bt(
1417
- (e) => ({
1418
- selectedServer: void 0,
1419
- setSelectedServer: (t) => e({ selectedServer: t })
1420
- }),
1421
- { name: "zudoku-selected-server" }
1422
- )
1423
- ), Js = (e) => {
1424
- const { selectedServer: t, setSelectedServer: s } = Qs();
1425
- return { selectedServer: On(
1426
- () => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
1427
- [t, e]
1428
- ), setSelectedServer: s };
1429
- }, Ws = (e, t, s) => {
1430
- const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
1431
- const i = o.replace(/[:{}]/g, "");
1432
- return s.pathParams.find((l) => l.name === i)?.value ?? o;
1433
- }), r = new URL(
1434
- a.replace(/^\//, ""),
1435
- e.endsWith("/") ? e : `${e}/`
1436
- );
1437
- return s.queryParams.filter((o) => o.active).forEach((o) => {
1438
- r.searchParams.set(o.name, o.value);
1439
- }), r;
1440
- }, zt = b.Root, Mt = b.Trigger, Xs = b.Group, Zs = S.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1441
- b.SubTrigger,
1442
- {
1443
- ref: r,
1444
- className: v(
1445
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1446
- t && "pl-8",
1447
- e
1448
- ),
1449
- ...a,
1450
- children: [
1451
- s,
1452
- /* @__PURE__ */ n.jsx(W, { className: "ml-auto h-4 w-4" })
1453
- ]
1454
- }
1455
- ));
1456
- Zs.displayName = b.SubTrigger.displayName;
1457
- const Ys = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1458
- b.SubContent,
1459
- {
1460
- ref: s,
1461
- className: v(
1462
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1463
- e
1464
- ),
1465
- ...t
1466
- }
1467
- ));
1468
- Ys.displayName = b.SubContent.displayName;
1469
- const _e = S.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(b.Portal, { children: /* @__PURE__ */ n.jsx(
1470
- b.Content,
1471
- {
1472
- ref: a,
1473
- sideOffset: t,
1474
- className: v(
1475
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1476
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1477
- e
1478
- ),
1479
- ...s
1480
- }
1481
- ) }));
1482
- _e.displayName = b.Content.displayName;
1483
- const Be = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1484
- b.Item,
1485
- {
1486
- ref: a,
1487
- className: v(
1488
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1489
- t && "pl-8",
1490
- e
1491
- ),
1492
- ...s
1493
- }
1494
- ));
1495
- Be.displayName = b.Item.displayName;
1496
- const Ks = S.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1497
- b.CheckboxItem,
1498
- {
1499
- ref: r,
1500
- className: v(
1501
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1502
- e
1503
- ),
1504
- checked: s,
1505
- ...a,
1506
- children: [
1507
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(b.ItemIndicator, { children: /* @__PURE__ */ n.jsx(ln, { className: "h-4 w-4" }) }) }),
1508
- t
1509
- ]
1510
- }
1511
- ));
1512
- Ks.displayName = b.CheckboxItem.displayName;
1513
- const er = S.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1514
- b.RadioItem,
1515
- {
1516
- ref: a,
1517
- className: v(
1518
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1519
- e
1520
- ),
1521
- ...s,
1522
- children: [
1523
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(b.ItemIndicator, { children: /* @__PURE__ */ n.jsx(cn, { className: "h-4 w-4 fill-current" }) }) }),
1524
- t
1525
- ]
1526
- }
1527
- ));
1528
- er.displayName = b.RadioItem.displayName;
1529
- const Gt = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1530
- b.Label,
1531
- {
1532
- ref: a,
1533
- className: v(
1534
- "px-2 py-1.5 text-sm font-semibold",
1535
- t && "pl-8",
1536
- e
1537
- ),
1538
- ...s
1539
- }
1540
- ));
1541
- Gt.displayName = b.Label.displayName;
1542
- const Ut = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1543
- b.Separator,
1544
- {
1545
- ref: s,
1546
- className: v("-mx-1 my-1 h-px bg-muted", e),
1547
- ...t
1548
- }
1549
- ));
1550
- Ut.displayName = b.Separator.displayName;
1551
- const tr = ({
1552
- examples: e,
1553
- onSelect: t
1554
- }) => /* @__PURE__ */ n.jsxs(zt, { children: [
1555
- /* @__PURE__ */ n.jsx(Mt, { asChild: !0, children: /* @__PURE__ */ n.jsx(V, { variant: "outline", children: "Use Example" }) }),
1556
- /* @__PURE__ */ n.jsx(_e, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1557
- /* @__PURE__ */ n.jsx(Gt, { children: s.mediaType }),
1558
- /* @__PURE__ */ n.jsx(Ut, {}),
1559
- /* @__PURE__ */ n.jsx(Xs, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1560
- Be,
1561
- {
1562
- onSelect: () => t(a, s.mediaType),
1563
- children: /* @__PURE__ */ n.jsx(
1564
- "span",
1565
- {
1566
- className: "line-clamp-1",
1567
- title: a.summary ?? a.name,
1568
- children: a.summary ?? a.name
1569
- }
1570
- )
1571
- },
1572
- a.name
1573
- )) })
1574
- ] }, s.mediaType)) })
1575
- ] }), me = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1576
- Te.Root,
1577
- {
1578
- ref: s,
1579
- className: v(
1580
- "peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",
1581
- "border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
1582
- e
1583
- ),
1584
- ...t,
1585
- children: /* @__PURE__ */ n.jsx(
1586
- Te.Indicator,
1587
- {
1588
- className: v("flex items-center justify-center text-current"),
1589
- children: /* @__PURE__ */ n.jsx(dn, { className: "h-4 w-4" })
1590
- }
1591
- )
1592
- }
1593
- ));
1594
- me.displayName = Te.Root.displayName;
1595
- const nr = ae.Root, Ht = S.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(ae.Portal, { children: /* @__PURE__ */ n.jsx(
1596
- ae.Content,
1597
- {
1598
- ref: r,
1599
- align: t,
1600
- sideOffset: s,
1601
- className: v(
1602
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1603
- e
1604
- ),
1605
- ...a
1606
- }
1607
- ) }));
1608
- Ht.displayName = ae.Content.displayName;
1609
- const sr = ({
1610
- value: e,
1611
- options: t,
1612
- onChange: s,
1613
- className: a,
1614
- placeholder: r = "Enter value",
1615
- onEnterPress: o,
1616
- ref: i
1617
- }) => {
1618
- const [c, l] = P(!1), [u, p] = P(!1), y = Bn((x) => x.filtered.count), f = U(null);
1619
- return /* @__PURE__ */ n.jsxs(nr, { open: c, children: [
1620
- /* @__PURE__ */ n.jsx(_n, { children: /* @__PURE__ */ n.jsx(
1621
- Mn,
1622
- {
1623
- ref: (x) => {
1624
- f.current = x, typeof i == "function" ? i(x) : i && (i.current = x);
1625
- },
1626
- value: e,
1627
- placeholder: r,
1628
- className: v("h-9 bg-transparent", a),
1629
- onFocus: () => l(!0),
1630
- onBlur: () => {
1631
- u || l(!1);
1632
- },
1633
- onKeyDown: (x) => {
1634
- x.key === "Enter" && (l(!1), f.current?.blur(), o?.(x));
1635
- },
1636
- onValueChange: (x) => s(x)
1637
- }
1638
- ) }),
1639
- /* @__PURE__ */ n.jsx(
1640
- Ht,
1641
- {
1642
- onMouseEnter: () => p(!0),
1643
- onMouseLeave: () => p(!1),
1644
- onOpenAutoFocus: (x) => x.preventDefault(),
1645
- className: v("p-0 w-[--radix-popover-trigger-width]", {
1646
- "border-0": y === 0
1647
- }),
1648
- align: "start",
1649
- side: "bottom",
1650
- onWheel: (x) => {
1651
- x.stopPropagation();
1652
- },
1653
- onTouchMove: (x) => {
1654
- x.stopPropagation();
1655
- },
1656
- children: /* @__PURE__ */ n.jsx(Gn, { className: "max-h-[140px]", children: t.map((x) => /* @__PURE__ */ n.jsx(
1657
- Un,
1658
- {
1659
- value: x,
1660
- onSelect: (m) => {
1661
- s(m), l(!1);
1662
- },
1663
- className: "cursor-pointer",
1664
- children: x
1665
- },
1666
- x
1667
- )) })
1668
- }
1669
- )
1670
- ] });
1671
- }, oe = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(zn, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(sr, { ...t }) }), ze = (e, t) => {
1672
- const s = S.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1673
- const c = r ? Qn : e;
1674
- return S.createElement(c, {
1675
- ...o,
1676
- ref: i,
1677
- className: typeof t == "function" ? t({ className: a }) : v(t, a)
1678
- });
1679
- });
1680
- return s.displayName = `VariantComponent(${e})`, s;
1681
- }, Me = ze(
1682
- "div",
1683
- "grid grid-cols-[2fr_3fr] gap-2 items-center"
1684
- ), Ge = ze(
1685
- "div",
1686
- "group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
1687
- ), rr = Object.freeze([
1688
- "Accept",
1689
- "Accept-Encoding",
1690
- "Accept-Language",
1691
- "Authorization",
1692
- "Cache-Control",
1693
- "Connection",
1694
- "Content-Disposition",
1695
- "Content-Encoding",
1696
- "Content-Language",
1697
- "Content-Length",
1698
- "Content-Range",
1699
- "Content-Security-Policy",
1700
- "Content-Type",
1701
- "Cookie",
1702
- "Date",
1703
- "ETag",
1704
- "Expires",
1705
- "Host",
1706
- "If-Modified-Since",
1707
- "Location",
1708
- "Origin",
1709
- "Pragma",
1710
- "Referer",
1711
- "Set-Cookie",
1712
- "User-Agent",
1713
- "X-Requested-With"
1714
- ]), ar = ({
1715
- control: e,
1716
- headers: t
1717
- }) => {
1718
- const { fields: s, append: a, remove: r } = ke({
1719
- control: e,
1720
- name: "headers"
1721
- }), { setValue: o, watch: i } = De(), c = U([]), l = U([]), u = i("headers"), p = En(() => {
1722
- a({ name: "", value: "", active: !1 });
1723
- }, [a]);
1724
- re(() => {
1725
- u.length === 0 && p();
1726
- }, [u, p]);
1727
- const y = (m) => {
1728
- c.current[m]?.focus();
1729
- }, f = (m) => {
1730
- p(), requestAnimationFrame(() => l.current[m + 1]?.focus());
1731
- }, x = t.filter((m) => !u.some((g) => g.name === m.name)).map(({ name: m }) => m);
1732
- return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
1733
- /* @__PURE__ */ n.jsx(ce, { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(Me, { children: s.map((m, g) => {
1734
- const C = t.find(
1735
- (j) => j.name === i(`headers.${g}.name`)
1736
- );
1737
- return /* @__PURE__ */ n.jsxs(Ge, { children: [
1738
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 ", children: [
1739
- /* @__PURE__ */ n.jsx(
1740
- q,
1741
- {
1742
- control: e,
1743
- name: `headers.${g}.active`,
1744
- render: ({ field: j }) => /* @__PURE__ */ n.jsx(
1745
- me,
1746
- {
1747
- id: `headers.${g}.active`,
1748
- checked: j.value,
1749
- onCheckedChange: (R) => {
1750
- j.onChange(R);
1751
- }
1752
- }
1753
- )
1754
- }
1755
- ),
1756
- /* @__PURE__ */ n.jsx(
1757
- q,
1758
- {
1759
- control: e,
1760
- name: `headers.${g}.name`,
1761
- render: ({ field: j }) => /* @__PURE__ */ n.jsx(
1762
- oe,
1763
- {
1764
- ...j,
1765
- placeholder: "Name",
1766
- className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
1767
- options: [...x, ...rr],
1768
- onEnterPress: () => y(g),
1769
- onChange: (R) => {
1770
- j.onChange(R), o(`headers.${g}.active`, !0);
1771
- },
1772
- ref: (R) => {
1773
- l.current[g] = R;
1774
- }
1775
- }
1776
- )
1777
- }
1778
- )
1779
- ] }),
1780
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
1781
- /* @__PURE__ */ n.jsx(
1782
- q,
1783
- {
1784
- control: e,
1785
- name: `headers.${g}.value`,
1786
- render: ({ field: j }) => C?.enum && C.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1787
- oe,
1788
- {
1789
- shouldFilter: !1,
1790
- value: j.value,
1791
- options: C.enum ?? [],
1792
- onChange: (I) => {
1793
- j.onChange(I), o(`headers.${g}.active`, !0);
1794
- },
1795
- className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
1796
- }
1797
- ) : /* @__PURE__ */ n.jsx(
1798
- qe,
1799
- {
1800
- placeholder: "Value",
1801
- className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
1802
- ...j,
1803
- ref: (I) => {
1804
- c.current[g] = I;
1805
- },
1806
- onKeyDown: (I) => {
1807
- I.key === "Enter" && I.currentTarget.value.trim() && f(g);
1808
- },
1809
- autoComplete: "off"
1810
- }
1811
- )
1812
- }
1813
- ),
1814
- /* @__PURE__ */ n.jsx(
1815
- X,
1816
- {
1817
- size: "icon",
1818
- variant: "ghost",
1819
- className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
1820
- onClick: () => r(g),
1821
- type: "button",
1822
- children: /* @__PURE__ */ n.jsx(un, { size: 16 })
1823
- }
1824
- )
1825
- ] })
1826
- ] }, m.id);
1827
- }) }) }),
1828
- /* @__PURE__ */ n.jsx("div", { className: "text-end", children: /* @__PURE__ */ n.jsx(
1829
- X,
1830
- {
1831
- className: "",
1832
- onClick: p,
1833
- type: "button",
1834
- variant: "secondary",
1835
- children: "Add header"
1836
- }
1837
- ) })
1838
- ] });
1839
- }, or = St(
1840
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1841
- ), ie = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1842
- At.Root,
1843
- {
1844
- ref: s,
1845
- className: v(or(), e),
1846
- ...t
1847
- }
1848
- ));
1849
- ie.displayName = At.Root.displayName;
1850
- const Ue = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1851
- Z.Root,
1852
- {
1853
- className: v("grid gap-2", e),
1854
- ...t,
1855
- ref: s
1856
- }
1857
- ));
1858
- Ue.displayName = Z.Root.displayName;
1859
- const le = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1860
- Z.Item,
1861
- {
1862
- ref: s,
1863
- className: v(
1864
- "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1865
- e
1866
- ),
1867
- ...t,
1868
- children: /* @__PURE__ */ n.jsx(Z.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(mn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1869
- }
1870
- ));
1871
- le.displayName = Z.Item.displayName;
1872
- const Qt = ({
1873
- identities: e,
1874
- setValue: t,
1875
- value: s
1876
- }) => /* @__PURE__ */ n.jsx(ce, { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsxs(
1877
- Ue,
1878
- {
1879
- onValueChange: (a) => t(a),
1880
- value: s,
1881
- defaultValue: G,
1882
- className: "gap-0",
1883
- disabled: e?.length === 0,
1884
- children: [
1885
- /* @__PURE__ */ n.jsxs(ie, { className: "h-12 border-b items-center flex gap-2 p-4 cursor-pointer hover:bg-accent", children: [
1886
- /* @__PURE__ */ n.jsx(le, { value: G, id: "none" }),
1887
- /* @__PURE__ */ n.jsx("span", { children: "None" })
1888
- ] }),
1889
- e?.map((a) => /* @__PURE__ */ n.jsxs(
1890
- ie,
1891
- {
1892
- className: "h-12 border-b items-center flex gap-2 p-4 cursor-pointer hover:bg-accent",
1893
- children: [
1894
- /* @__PURE__ */ n.jsx(le, { value: a.id, id: a.id }),
1895
- /* @__PURE__ */ n.jsx("span", { children: a.label })
1896
- ]
1897
- },
1898
- a.id
1899
- ))
1900
- ]
1901
- }
1902
- ) }), ir = ({
1903
- onSubmit: e,
1904
- identities: t,
1905
- open: s,
1906
- onOpenChange: a
1907
- }) => {
1908
- const [r, o] = P(void 0), [i, c] = P(!1);
1909
- return /* @__PURE__ */ n.jsx(Le, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(Re, { children: [
1910
- /* @__PURE__ */ n.jsx(Ie, { children: "Select an auth identity" }),
1911
- /* @__PURE__ */ n.jsx(Nt, { children: "Please select an identity for this request." }),
1912
- /* @__PURE__ */ n.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
1913
- Qt,
1914
- {
1915
- identities: t,
1916
- setValue: o,
1917
- value: r
1918
- }
1919
- ) }),
1920
- /* @__PURE__ */ n.jsxs(Ct, { className: "flex flex-col gap-2", children: [
1921
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
1922
- /* @__PURE__ */ n.jsx(
1923
- me,
1924
- {
1925
- id: "remember",
1926
- checked: i,
1927
- onCheckedChange: (l) => c(
1928
- l === "indeterminate" ? !1 : !!l
1929
- )
1930
- }
1931
- ),
1932
- /* @__PURE__ */ n.jsx(ie, { htmlFor: "remember", children: "Remember my choice" })
1933
- ] }),
1934
- /* @__PURE__ */ n.jsx(
1935
- V,
1936
- {
1937
- onClick: () => e({ identity: r, rememberedIdentity: i }),
1938
- children: "Send"
1939
- }
1940
- )
1941
- ] })
1942
- ] }) });
1943
- }, lr = ({
1944
- control: e,
1945
- url: t
1946
- }) => {
1947
- const { fields: s } = ke({
1948
- control: e,
1949
- name: "pathParams"
1950
- }), a = [...s].sort(
1951
- (r, o) => t.indexOf(`{${r.name}}`) - t.indexOf(`{${o.name}}`)
1952
- );
1953
- return /* @__PURE__ */ n.jsx(ce, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx(Me, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(Ge, { children: [
1954
- /* @__PURE__ */ n.jsx(
1955
- q,
1956
- {
1957
- control: e,
1958
- name: `pathParams.${o}.name`,
1959
- render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
1960
- Bt,
1961
- {
1962
- slug: r.name,
1963
- name: r.name,
1964
- className: "font-mono text-xs px-2"
1965
- }
1966
- ) })
1967
- }
1968
- ),
1969
- /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ n.jsx(
1970
- q,
1971
- {
1972
- control: e,
1973
- name: `pathParams.${o}.value`,
1974
- render: ({ field: i }) => /* @__PURE__ */ n.jsx(
1975
- qe,
1976
- {
1977
- ...i,
1978
- required: !0,
1979
- placeholder: "Enter value",
1980
- className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0"
1981
- }
1982
- )
1983
- }
1984
- ) })
1985
- ] }, r.id)) }) });
1986
- }, cr = ze(
1987
- "input",
1988
- "px-2 bg-transparent h-6 font-mono text-xs m-2"
1989
- ), dr = ({
1990
- control: e,
1991
- queryParams: t
1992
- }) => {
1993
- const { fields: s } = ke({
1994
- control: e,
1995
- name: "queryParams"
1996
- }), a = De(), r = t.map((o) => !!o.isRequired);
1997
- return /* @__PURE__ */ n.jsx(ce, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx("div", { className: "w-full ", children: /* @__PURE__ */ n.jsx(Me, { children: s.map((o, i) => {
1998
- const c = t.find(
1999
- (l) => l.name === a.watch(`queryParams.${i}.name`)
2000
- );
2001
- return /* @__PURE__ */ n.jsxs(Ge, { children: [
2002
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2003
- /* @__PURE__ */ n.jsx(
2004
- q,
2005
- {
2006
- control: e,
2007
- name: `queryParams.${i}.active`,
2008
- render: ({ field: l }) => /* @__PURE__ */ n.jsx(
2009
- me,
2010
- {
2011
- id: `queryParams.${i}.active`,
2012
- className: "me-2",
2013
- checked: l.value,
2014
- onCheckedChange: l.onChange
2015
- }
2016
- )
2017
- }
2018
- ),
2019
- /* @__PURE__ */ n.jsx(
2020
- q,
2021
- {
2022
- control: e,
2023
- render: ({ field: l }) => r[i] ? /* @__PURE__ */ n.jsx(cr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2024
- "label",
2025
- {
2026
- className: "flex items-center cursor-pointer gap-1",
2027
- htmlFor: `queryParams.${i}.active`,
2028
- title: r[i] ? "Required field" : void 0,
2029
- children: [
2030
- l.value,
2031
- r[i] && /* @__PURE__ */ n.jsx("sup", { children: " *" })
2032
- ]
2033
- }
2034
- ) }) : /* @__PURE__ */ n.jsx(
2035
- oe,
2036
- {
2037
- value: l.value,
2038
- options: t.map((u) => u.name),
2039
- onChange: (u) => {
2040
- l.onChange(u);
2041
- },
2042
- className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2043
- }
2044
- ),
2045
- name: `queryParams.${i}.name`
2046
- }
2047
- )
2048
- ] }, o.id),
2049
- /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ n.jsx(
2050
- q,
2051
- {
2052
- control: e,
2053
- render: ({ field: l }) => c?.enum && c.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2054
- oe,
2055
- {
2056
- value: l.value,
2057
- options: c.enum ?? [],
2058
- onChange: (p) => {
2059
- l.onChange(p), a.setValue(`queryParams.${i}.active`, !0);
2060
- },
2061
- className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2062
- }
2063
- ) : /* @__PURE__ */ n.jsx(
2064
- qe,
2065
- {
2066
- ...l,
2067
- onChange: (p) => {
2068
- l.onChange(p.target.value), p.target.value.length > 0 && a.setValue(`queryParams.${i}.active`, !0);
2069
- },
2070
- placeholder: "Enter value",
2071
- className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
2072
- }
2073
- ),
2074
- name: `queryParams.${i}.value`
2075
- }
2076
- ) })
2077
- ] }, o.id);
2078
- }) }) }) });
2079
- }, ur = vt()(
2080
- bt(
2081
- (e, t) => ({
2082
- rememberedIdentity: null,
2083
- setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
2084
- getRememberedIdentity: (s) => s.find(
2085
- (a) => a === t().rememberedIdentity
2086
- )
2087
- }),
2088
- {
2089
- name: "identity-storage",
2090
- storage: jn(() => sessionStorage)
2091
- }
2092
- )
2093
- ), mr = ({
2094
- open: e,
2095
- setOpen: t,
2096
- onSignUp: s,
2097
- onLogin: a
2098
- }) => /* @__PURE__ */ n.jsx(Le, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(Re, { children: [
2099
- /* @__PURE__ */ n.jsx(Ie, { children: "Welcome to the Playground!" }),
2100
- /* @__PURE__ */ n.jsx(Nt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2101
- /* @__PURE__ */ n.jsxs(Ct, { className: "flex gap-2 sm:justify-between", children: [
2102
- /* @__PURE__ */ n.jsx(V, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2103
- /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2104
- s && /* @__PURE__ */ n.jsx(V, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2105
- a && /* @__PURE__ */ n.jsx(V, { type: "button", variant: "default", onClick: a, children: "Login" })
2106
- ] })
2107
- ] })
2108
- ] }) }), $ = {
2109
- green: "text-green-600",
2110
- blue: "text-sky-600",
2111
- yellow: "text-yellow-600",
2112
- red: "text-red-600",
2113
- purple: "text-purple-600",
2114
- indigo: "text-indigo-600",
2115
- gray: "text-gray-600"
2116
- }, pr = {
2117
- get: $.green,
2118
- post: $.blue,
2119
- put: $.yellow,
2120
- delete: $.red,
2121
- patch: $.purple,
2122
- options: $.indigo,
2123
- head: $.gray,
2124
- trace: $.gray
2125
- }, hr = (e) => pr[e.toLocaleLowerCase()] ?? $.gray, fr = ({
2126
- method: e,
2127
- url: t,
2128
- headers: s,
2129
- body: a
2130
- }) => /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
2131
- /* @__PURE__ */ n.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
2132
- /* @__PURE__ */ n.jsx("span", { className: v(hr(e), "font-semibold"), children: e }),
2133
- " ",
2134
- /* @__PURE__ */ n.jsx("span", { className: "break-all", children: t }),
2135
- " ",
2136
- /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "HTTP/1.1" })
2137
- ] }),
2138
- /* @__PURE__ */ n.jsxs("div", { className: "mx-1.5 flex flex-col gap-3", children: [
2139
- /* @__PURE__ */ n.jsxs(rt, { defaultOpen: !0, children: [
2140
- /* @__PURE__ */ n.jsxs(at, { className: "flex items-center gap-2 hover:text-primary group", children: [
2141
- /* @__PURE__ */ n.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2142
- /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Headers" })
2143
- ] }),
2144
- /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2", children: s.map(([r, o]) => /* @__PURE__ */ n.jsxs(D, { children: [
2145
- /* @__PURE__ */ n.jsx("div", { className: "text-primary", children: r }),
2146
- /* @__PURE__ */ n.jsx("div", { className: "break-all", children: o })
2147
- ] }, r)) }) })
2148
- ] }),
2149
- /* @__PURE__ */ n.jsxs(rt, { defaultOpen: !0, children: [
2150
- /* @__PURE__ */ n.jsxs(at, { className: "flex items-center gap-2 hover:text-primary group", children: [
2151
- /* @__PURE__ */ n.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2152
- /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Body" })
2153
- ] }),
2154
- /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx("div", { className: "ps-0 pt-2", children: /* @__PURE__ */ n.jsx(
2155
- "div",
2156
- {
2157
- className: v(
2158
- "whitespace-pre-wrap break-all bg-muted p-2 rounded-md",
2159
- !a && "text-muted-foreground"
2160
- ),
2161
- children: a ?? "Empty body"
2162
- }
2163
- ) }) })
2164
- ] })
2165
- ] })
2166
- ] }), mt = Ve.Root, pt = Ve.CollapsibleTrigger, ht = Ve.CollapsibleContent;
2167
- function He(e) {
2168
- if (e === null) return "null";
2169
- if (Array.isArray(e)) {
2170
- if (e.length === 0) return "any[]";
2171
- const t = e[0];
2172
- return t === void 0 ? "any[]" : `${He(t)}[]`;
2173
- }
2174
- return typeof e == "object" ? xr(e) : typeof e;
2175
- }
2176
- function xr(e, t = "") {
2177
- const s = ["{"];
2178
- for (const [a, r] of Object.entries(e)) {
2179
- const o = He(r);
2180
- s.push(` ${a}: ${o};`);
2181
- }
2182
- return s.push("}"), s.join(`
2183
- `);
2184
- }
2185
- function gr(e) {
2186
- return { lines: [`type GeneratedType = ${He(e)};`] };
2187
- }
2188
- const yr = {
2189
- 200: "OK",
2190
- 201: "Created",
2191
- 202: "Accepted",
2192
- 204: "No Content",
2193
- 400: "Bad Request",
2194
- 401: "Unauthorized",
2195
- 403: "Forbidden",
2196
- 404: "Not Found",
2197
- 405: "Method Not Allowed",
2198
- 500: "Internal Server Error"
2199
- }, ft = (e) => {
2200
- const t = Math.floor(Math.log(e) / Math.log(1e3));
2201
- return `${(e / Math.pow(1e3, t)).toFixed(
2202
- t ? 2 : 0
2203
- )} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
2204
- }, vr = (e) => Object.entries({
2205
- "application/json": "json",
2206
- "text/json": "json",
2207
- "text/html": "html",
2208
- "text/css": "css",
2209
- "text/javascript": "javascript",
2210
- "application/xml": "xml",
2211
- "application/xhtml+xml": "xhtml"
2212
- }).find(
2213
- ([s]) => e.includes(s)
2214
- )?.[1], br = (e) => {
2215
- const t = e.find(([s, a]) => s === "Content-Type")?.[1] || "";
2216
- return vr(t);
2217
- }, jr = (e) => {
2218
- try {
2219
- return JSON.stringify(JSON.parse(e), null, 2);
2220
- } catch {
2221
- return null;
2222
- }
2223
- }, Nr = (e) => {
2224
- const t = [
2225
- "Content-Type",
2226
- "Content-Length",
2227
- "Authorization",
2228
- "X-RateLimit-Remaining",
2229
- "X-RateLimit-Limit",
2230
- "Cache-Control",
2231
- "ETag"
2232
- ].map((s) => s.toLowerCase());
2233
- return [...e].sort(([s], [a]) => {
2234
- const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
2235
- return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
2236
- });
2237
- }, xt = 64e3, Cr = ({
2238
- body: e = "",
2239
- headers: t,
2240
- status: s,
2241
- time: a,
2242
- size: r,
2243
- url: o
2244
- }) => {
2245
- const i = br(t), c = jr(e), l = c || e, [u, p] = P(
2246
- c ? "formatted" : "raw"
2247
- ), y = Nn({
2248
- queryKey: ["types", l],
2249
- queryFn: async () => gr(JSON.parse(l)),
2250
- enabled: u === "types"
2251
- }), f = Nr([...t]), x = r > xt;
2252
- return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
2253
- /* @__PURE__ */ n.jsxs(mt, { defaultOpen: !0, children: [
2254
- /* @__PURE__ */ n.jsxs(pt, { className: "flex items-center gap-2 hover:text-primary group", children: [
2255
- /* @__PURE__ */ n.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2256
- /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Headers" })
2257
- ] }),
2258
- /* @__PURE__ */ n.jsx(ht, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2 font-mono text-xs", children: [
2259
- f.slice(0, 5).map(([m, g]) => /* @__PURE__ */ n.jsxs(D, { children: [
2260
- /* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: m }),
2261
- /* @__PURE__ */ n.jsx("div", { className: "break-all", children: g })
2262
- ] }, m)),
2263
- f.length > 5 && /* @__PURE__ */ n.jsxs(mt, { className: "col-span-full grid-cols-subgrid grid", children: [
2264
- /* @__PURE__ */ n.jsxs(pt, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
2265
- /* @__PURE__ */ n.jsx(W, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2266
- "Show ",
2267
- f.length - 5,
2268
- " more headers"
2269
- ] }),
2270
- /* @__PURE__ */ n.jsx(ht, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: f.slice(5).map(([m, g]) => /* @__PURE__ */ n.jsxs(D, { children: [
2271
- /* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: m }),
2272
- /* @__PURE__ */ n.jsx("div", { className: "break-all", children: g })
2273
- ] }, m)) })
2274
- ] })
2275
- ] }) })
2276
- ] }),
2277
- /* @__PURE__ */ n.jsxs(Ot, { className: "shadow-none", children: [
2278
- x && /* @__PURE__ */ n.jsxs(Hn, { type: "info", className: "my-0 p-2", children: [
2279
- "Code highlight is disabled for responses larger than",
2280
- " ",
2281
- ft(xt)
2282
- ] }),
2283
- /* @__PURE__ */ n.jsx(
2284
- Kn,
2285
- {
2286
- language: u === "types" ? "typescript" : u === "raw" ? c ? "plain" : i : "json",
2287
- showCopy: "always",
2288
- disabled: x,
2289
- noBackground: !0,
2290
- className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
2291
- code: (u === "raw" ? e : u === "types" ? y.data?.lines.join(`
2292
- `) : l) ?? ""
2293
- }
2294
- )
2295
- ] }),
2296
- /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2 justify-between items-center", children: [
2297
- /* @__PURE__ */ n.jsxs("div", { className: "flex text-xs gap-2 border bg-muted rounded-md p-2 items-center h-8 font-mono divide-x", children: [
2298
- /* @__PURE__ */ n.jsxs("div", { children: [
2299
- /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Status" }),
2300
- " ",
2301
- s,
2302
- " ",
2303
- yr[s] ?? ""
2304
- ] }),
2305
- /* @__PURE__ */ n.jsxs("div", { children: [
2306
- /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
2307
- " ",
2308
- a.toFixed(0),
2309
- "ms"
2310
- ] }),
2311
- /* @__PURE__ */ n.jsxs("div", { children: [
2312
- /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2313
- " ",
2314
- ft(r)
2315
- ] })
2316
- ] }),
2317
- c && /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsxs(
2318
- Ne,
2319
- {
2320
- value: u,
2321
- onValueChange: (m) => p(m),
2322
- children: [
2323
- /* @__PURE__ */ n.jsx(Ce, { className: "min-w-32", children: /* @__PURE__ */ n.jsx(Se, { placeholder: "View" }) }),
2324
- /* @__PURE__ */ n.jsxs(we, { children: [
2325
- /* @__PURE__ */ n.jsx(J, { value: "formatted", children: "Formatted" }),
2326
- /* @__PURE__ */ n.jsx(J, { value: "raw", children: "Raw" }),
2327
- /* @__PURE__ */ n.jsx(J, { value: "types", children: "Types" })
2328
- ] })
2329
- ]
2330
- }
2331
- ) })
2332
- ] })
2333
- ] });
2334
- }, Sr = ({
2335
- queryMutation: e,
2336
- showPathParamsWarning: t,
2337
- showLongRunningWarning: s,
2338
- onCancel: a
2339
- }) => {
2340
- const r = ((e.data?.status ?? 0) / 100).toFixed(0);
2341
- return /* @__PURE__ */ n.jsx("div", { className: "min-w-0 p-4 py-8 bg-muted/50", children: e.error ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
2342
- t && /* @__PURE__ */ n.jsx(Wn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
2343
- /* @__PURE__ */ n.jsxs(Ot, { children: [
2344
- /* @__PURE__ */ n.jsx(Xn, { children: /* @__PURE__ */ n.jsx(Zn, { children: "Request failed" }) }),
2345
- /* @__PURE__ */ n.jsxs(Yn, { children: [
2346
- "Error:",
2347
- " ",
2348
- e.error.message || String(e.error) || "Unexpected error"
2349
- ] })
2350
- ] })
2351
- ] }) : e.data ? /* @__PURE__ */ n.jsxs(wt, { defaultValue: "response", children: [
2352
- /* @__PURE__ */ n.jsxs(Tt, { children: [
2353
- /* @__PURE__ */ n.jsx(z, { value: "request", children: "Request" }),
2354
- /* @__PURE__ */ n.jsxs(z, { value: "response", children: [
2355
- "Response",
2356
- /* @__PURE__ */ n.jsxs(
2357
- "span",
2358
- {
2359
- className: v(
2360
- "text-xs font-mono ms-1",
2361
- r === "2" && "text-green-500",
2362
- r === "3" && "text-blue-500",
2363
- r === "4" && "text-yellow-500",
2364
- r === "5" && "text-red-500"
2365
- ),
2366
- children: [
2367
- "(",
2368
- e.data.status,
2369
- ")"
2370
- ]
2371
- }
2372
- )
2373
- ] })
2374
- ] }),
2375
- /* @__PURE__ */ n.jsx(M, { value: "request", children: /* @__PURE__ */ n.jsx(fr, { ...e.data.request }) }),
2376
- /* @__PURE__ */ n.jsx(M, { value: "response", children: /* @__PURE__ */ n.jsx(
2377
- Cr,
2378
- {
2379
- status: e.data.status,
2380
- time: e.data.time,
2381
- size: e.data.size,
2382
- headers: e.data.headers,
2383
- body: e.data.body,
2384
- url: e.data.request.url
2385
- }
2386
- ) })
2387
- ] }) : /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: e.isPending ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
2388
- /* @__PURE__ */ n.jsx(Jn, { size: 20 }),
2389
- /* @__PURE__ */ n.jsxs(
2390
- "div",
2391
- {
2392
- className: v(
2393
- "opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
2394
- s && "opacity-100 pointer-events-auto"
2395
- ),
2396
- children: [
2397
- "Looks like the request is taking longer than expected.",
2398
- /* @__PURE__ */ n.jsx(
2399
- X,
2400
- {
2401
- type: "button",
2402
- onClick: a,
2403
- size: "sm",
2404
- className: "w-fit",
2405
- variant: "outline",
2406
- children: "Cancel"
2407
- }
2408
- )
2409
- ]
2410
- }
2411
- )
2412
- ] }) : /* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
2413
- }, wr = ({
2414
- identities: e,
2415
- formRef: t,
2416
- disabled: s
2417
- }) => {
2418
- const { setValue: a } = De(), [r, o] = P();
2419
- return e.length === 0 ? /* @__PURE__ */ n.jsx(V, { disabled: s, children: "Send" }) : /* @__PURE__ */ n.jsxs("div", { className: "flex", children: [
2420
- /* @__PURE__ */ n.jsx(
2421
- V,
2422
- {
2423
- className: "rounded-r-none inset-shadow-sm",
2424
- disabled: s,
2425
- onClick: () => t?.current?.requestSubmit(),
2426
- children: "Send"
2427
- }
2428
- ),
2429
- /* @__PURE__ */ n.jsxs(zt, { children: [
2430
- /* @__PURE__ */ n.jsx(Mt, { asChild: !0, children: /* @__PURE__ */ n.jsx(
2431
- V,
2432
- {
2433
- disabled: s,
2434
- className: "rounded-l-none border-l border-border/40 inset-shadow-sm w-6",
2435
- size: "icon",
2436
- children: /* @__PURE__ */ n.jsx(pn, { className: "w-4 h-4" })
2437
- }
2438
- ) }),
2439
- /* @__PURE__ */ n.jsx(Ue, { value: r, children: /* @__PURE__ */ n.jsx(_e, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: G, label: "None" }, ...e].map(
2440
- (i) => /* @__PURE__ */ n.jsxs(
2441
- Be,
2442
- {
2443
- onClick: () => {
2444
- o(i.id), a("identity", i.id), t?.current?.requestSubmit();
2445
- },
2446
- onMouseEnter: () => o(i.id),
2447
- onMouseLeave: () => o(void 0),
2448
- children: [
2449
- /* @__PURE__ */ n.jsx(le, { value: i.id, className: "me-2" }),
2450
- i.label
2451
- ]
2452
- },
2453
- i.id
2454
- )
2455
- ) }) })
2456
- ] })
2457
- ] });
2458
- }, G = "__none", je = {
2459
- Plain: "text/plain",
2460
- JSON: "application/json",
2461
- XML: "application/xml",
2462
- YAML: "application/yaml",
2463
- CSV: "text/csv"
2464
- }, Tr = ({
2465
- server: e,
2466
- servers: t = [],
2467
- url: s,
2468
- method: a,
2469
- headers: r = [],
2470
- queryParams: o = [],
2471
- pathParams: i = [],
2472
- defaultBody: c = "",
2473
- examples: l,
2474
- requiresLogin: u = !1,
2475
- onLogin: p,
2476
- onSignUp: y
2477
- }) => {
2478
- const { selectedServer: f, setSelectedServer: x } = Js(
2479
- t.map((d) => ({ url: d }))
2480
- ), [m, g] = P(!1), C = Cn(), { setRememberedIdentity: j, getRememberedIdentity: R } = ur(), [, I] = Pn(), [Kt, en] = P(!1), [tn, K] = P(!1), ee = U(void 0), Je = Vn(j), { register: We, control: te, handleSubmit: Xe, watch: Ze, setValue: B, ...pe } = kn({
2481
- defaultValues: {
2482
- body: c,
2483
- bodyContentType: "JSON",
2484
- queryParams: o.map((d) => ({
2485
- name: d.name,
2486
- value: d.defaultValue ?? "",
2487
- active: d.defaultActive ?? !1,
2488
- enum: d.enum ?? []
2489
- })).concat([
2490
- {
2491
- name: "",
2492
- value: "",
2493
- active: !1,
2494
- enum: []
2495
- }
2496
- ]),
2497
- pathParams: i.map((d) => ({
2498
- name: d.name,
2499
- value: d.defaultValue ?? ""
2500
- })),
2501
- headers: r.map((d) => ({
2502
- name: d.name,
2503
- value: d.defaultValue ?? "",
2504
- active: d.defaultActive ?? !1
2505
- })).concat([
2506
- {
2507
- name: "",
2508
- value: "",
2509
- active: !1
2510
- }
2511
- ]),
2512
- identity: R(
2513
- C.data?.map((d) => d.id) ?? []
2514
- )
2515
- }
2516
- }), T = Ze(), Ye = U(null);
2517
- re(() => {
2518
- T.identity && Je.current(T.identity);
2519
- }, [Je, T.identity]);
2520
- const he = In({
2521
- mutationFn: async (d) => {
2522
- const O = performance.now(), k = !d.headers.some(
2523
- (w) => w.active && w.name.toLowerCase() === "content-type"
2524
- ), se = Object.fromEntries([
2525
- ...d.headers.filter((w) => w.name && w.active).map((w) => [w.name, w.value]),
2526
- ...k ? [["content-type", je[d.bodyContentType]]] : []
2527
- ]), E = new Request(
2528
- Ws(e ?? f, s, d),
2529
- {
2530
- method: a.toUpperCase(),
2531
- headers: se,
2532
- body: d.body ? d.body : void 0
2533
- }
2534
- );
2535
- d.identity !== G && await C.data?.find((w) => w.id === d.identity)?.authorizeRequest(E);
2536
- const et = setTimeout(
2537
- () => K(!0),
2538
- 3210
2539
- );
2540
- ee.current = new AbortController();
2541
- try {
2542
- const w = await fetch(E, {
2543
- signal: ee.current.signal
2544
- });
2545
- clearTimeout(et), K(!1);
2546
- const an = performance.now() - O, tt = await w.text(), on = new URL(E.url);
2547
- return {
2548
- status: w.status,
2549
- headers: Array.from(w.headers.entries()),
2550
- size: tt.length,
2551
- body: tt,
2552
- time: an,
2553
- request: {
2554
- method: E.method.toUpperCase(),
2555
- url: E.url,
2556
- headers: [
2557
- ["Host", on.host],
2558
- ["User-Agent", "Zudoku Playground"],
2559
- ...Array.from(E.headers.entries())
2560
- ],
2561
- body: d.body ? d.body : void 0
2562
- }
2563
- };
2564
- } catch (w) {
2565
- throw clearTimeout(et), K(!1), w instanceof TypeError ? new Error(
2566
- "The request failed, possibly due to network issues or CORS policy."
2567
- ) : w;
2568
- }
2569
- }
2570
- });
2571
- re(() => () => {
2572
- ee.current?.abort();
2573
- }, []);
2574
- const nn = /* @__PURE__ */ n.jsx(
2575
- Us,
2576
- {
2577
- path: s,
2578
- renderParam: ({ name: d, originalValue: O, index: k }) => {
2579
- const se = T.pathParams.find(
2580
- (E) => E.name === d
2581
- )?.value;
2582
- return /* @__PURE__ */ n.jsx(
2583
- Bt,
2584
- {
2585
- name: d,
2586
- backgroundOpacity: "0",
2587
- slug: d,
2588
- onClick: () => pe.setFocus(`pathParams.${k}.value`),
2589
- children: se || O
2590
- }
2591
- );
2592
- }
2593
- }
2594
- ), Ke = T.queryParams.filter((d) => d.active).map((d, O, k) => /* @__PURE__ */ n.jsxs(D, { children: [
2595
- d.name,
2596
- "=",
2597
- encodeURIComponent(d.value).replaceAll("%20", "+"),
2598
- O < k.length - 1 && "&",
2599
- /* @__PURE__ */ n.jsx("wbr", {})
2600
- ] }, d.name)), sn = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2601
- Ne,
2602
- {
2603
- onValueChange: (d) => {
2604
- I(() => x(d));
2605
- },
2606
- value: f,
2607
- defaultValue: f,
2608
- children: [
2609
- /* @__PURE__ */ n.jsx(Ce, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(Se, {}) }),
2610
- /* @__PURE__ */ n.jsx(we, { children: t.map((d) => /* @__PURE__ */ n.jsx(J, { value: d, children: d.replace(/^https?:\/\//, "").replace(/\/$/, "") }, d)) })
2611
- ]
2612
- }
2613
- ) }), rn = u && !Kt, ne = ["POST", "PUT", "PATCH", "DELETE"].includes(
2614
- a.toUpperCase()
2615
- );
2616
- return /* @__PURE__ */ n.jsx(
2617
- Dn,
2618
- {
2619
- register: We,
2620
- control: te,
2621
- handleSubmit: Xe,
2622
- watch: Ze,
2623
- setValue: B,
2624
- ...pe,
2625
- children: /* @__PURE__ */ n.jsxs(
2626
- "form",
2627
- {
2628
- onSubmit: Xe((d) => {
2629
- C.data?.length === 0 || d.identity ? he.mutate(d) : g(!0);
2630
- }),
2631
- ref: Ye,
2632
- className: "relative",
2633
- children: [
2634
- /* @__PURE__ */ n.jsx(
2635
- ir,
2636
- {
2637
- identities: C.data ?? [],
2638
- open: m,
2639
- onOpenChange: g,
2640
- onSubmit: ({ rememberedIdentity: d, identity: O }) => {
2641
- d && B("identity", O ?? G), g(!1), he.mutate({ ...T, identity: O });
2642
- }
2643
- }
2644
- ),
2645
- /* @__PURE__ */ n.jsx(
2646
- mr,
2647
- {
2648
- open: rn,
2649
- setOpen: (d) => en(!d),
2650
- onSignUp: y,
2651
- onLogin: p
2652
- }
2653
- ),
2654
- /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
2655
- /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 p-4 after:bg-muted-foreground/20 relative after:absolute after:w-px after:inset-0 after:start-auto", children: [
2656
- /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2 items-stretch", children: [
2657
- /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
2658
- /* @__PURE__ */ n.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
2659
- /* @__PURE__ */ n.jsxs("div", { className: "items-center px-2 py-0.5 font-mono text-xs break-all leading-6", children: [
2660
- sn,
2661
- nn,
2662
- Ke.length > 0 ? "?" : "",
2663
- Ke
2664
- ] })
2665
- ] }),
2666
- /* @__PURE__ */ n.jsx(
2667
- wr,
2668
- {
2669
- identities: C.data ?? [],
2670
- formRef: Ye,
2671
- disabled: C.isLoading || pe.formState.isSubmitting
2672
- }
2673
- )
2674
- ] }),
2675
- /* @__PURE__ */ n.jsxs(wt, { defaultValue: "parameters", children: [
2676
- /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ n.jsxs(Tt, { children: [
2677
- /* @__PURE__ */ n.jsxs(z, { value: "parameters", children: [
2678
- "Parameters",
2679
- (T.pathParams.some((d) => d.value !== "") || T.queryParams.some((d) => d.active)) && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2680
- ] }),
2681
- /* @__PURE__ */ n.jsxs(z, { value: "headers", children: [
2682
- "Headers",
2683
- T.headers.filter((d) => d.active).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2684
- ] }),
2685
- /* @__PURE__ */ n.jsxs(z, { value: "auth", children: [
2686
- "Auth",
2687
- T.identity !== G && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2688
- ] }),
2689
- /* @__PURE__ */ n.jsxs(z, { value: "body", children: [
2690
- "Body",
2691
- T.body && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2692
- ] })
2693
- ] }) }),
2694
- /* @__PURE__ */ n.jsx(M, { value: "headers", children: /* @__PURE__ */ n.jsx(ar, { control: te, headers: r }) }),
2695
- /* @__PURE__ */ n.jsxs(M, { value: "parameters", children: [
2696
- i.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2697
- /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
2698
- /* @__PURE__ */ n.jsx(lr, { url: s, control: te })
2699
- ] }),
2700
- /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2701
- /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
2702
- /* @__PURE__ */ n.jsx(dr, { control: te, queryParams: o })
2703
- ] })
2704
- ] }),
2705
- /* @__PURE__ */ n.jsxs(M, { value: "body", children: [
2706
- !["POST", "PUT", "PATCH", "DELETE"].includes(
2707
- a.toUpperCase()
2708
- ) && /* @__PURE__ */ n.jsxs(Ee, { className: "mb-2", children: [
2709
- /* @__PURE__ */ n.jsx(nt, { className: "w-4 h-4" }),
2710
- /* @__PURE__ */ n.jsx(Pe, { children: "Body" }),
2711
- /* @__PURE__ */ n.jsx($e, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
2712
- ] }),
2713
- /* @__PURE__ */ n.jsx(
2714
- _t,
2715
- {
2716
- ...We("body"),
2717
- className: v(
2718
- "border w-full rounded-lg bg-muted/40 p-2 h-64 font-mono text-[13px]",
2719
- !ne && "h-20 bg-muted"
2720
- ),
2721
- placeholder: ne ? void 0 : "This request does not support a body",
2722
- disabled: !ne
2723
- }
2724
- ),
2725
- ne && /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
2726
- /* @__PURE__ */ n.jsxs(
2727
- Ne,
2728
- {
2729
- value: T.bodyContentType,
2730
- onValueChange: (d) => B(
2731
- "bodyContentType",
2732
- d
2733
- ),
2734
- children: [
2735
- /* @__PURE__ */ n.jsx(Ce, { className: "w-[100px]", children: /* @__PURE__ */ n.jsx(Se, {}) }),
2736
- /* @__PURE__ */ n.jsx(we, { children: Object.keys(je).map((d) => /* @__PURE__ */ n.jsx(J, { value: d, children: d }, d)) })
2737
- ]
2738
- }
2739
- ),
2740
- l && l.length > 0 && /* @__PURE__ */ n.jsx(
2741
- tr,
2742
- {
2743
- examples: l,
2744
- onSelect: (d, O) => {
2745
- B(
2746
- "body",
2747
- JSON.stringify(d.value, null, 2)
2748
- );
2749
- const k = qn(je).find(
2750
- ([se, E]) => E === O
2751
- )?.[0];
2752
- k && B("bodyContentType", k);
2753
- }
2754
- }
2755
- )
2756
- ] })
2757
- ] }),
2758
- /* @__PURE__ */ n.jsx(M, { value: "auth", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2759
- C.data?.length === 0 && /* @__PURE__ */ n.jsxs(Ee, { children: [
2760
- /* @__PURE__ */ n.jsx(nt, { className: "w-4 h-4" }),
2761
- /* @__PURE__ */ n.jsx(Pe, { children: "Authentication" }),
2762
- /* @__PURE__ */ n.jsx($e, { children: "No identities found. Please create an identity first." })
2763
- ] }),
2764
- /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ n.jsx(
2765
- Qt,
2766
- {
2767
- value: T.identity,
2768
- identities: C.data ?? [],
2769
- setValue: (d) => B("identity", d)
2770
- }
2771
- ) })
2772
- ] }) })
2773
- ] })
2774
- ] }),
2775
- /* @__PURE__ */ n.jsx(
2776
- Sr,
2777
- {
2778
- queryMutation: he,
2779
- showPathParamsWarning: T.pathParams.some(
2780
- (d) => d.value === ""
2781
- ),
2782
- showLongRunningWarning: tn,
2783
- onCancel: () => {
2784
- ee.current?.abort(
2785
- "Request cancelled by the user"
2786
- ), K(!1);
2787
- }
2788
- }
2789
- )
2790
- ] })
2791
- ]
2792
- }
2793
- )
2794
- }
2795
- );
2796
- }, Ar = ({
2797
- className: e,
2798
- size: t = 16
2799
- }) => /* @__PURE__ */ n.jsx(
2800
- "svg",
2801
- {
2802
- xmlns: "http://www.w3.org/2000/svg",
2803
- viewBox: "0 0 24 24",
2804
- fill: "currentColor",
2805
- className: e,
2806
- width: t,
2807
- height: t,
2808
- children: /* @__PURE__ */ n.jsx(
2809
- "path",
2810
- {
2811
- fillRule: "evenodd",
2812
- d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm14.024-.983a1.125 1.125 0 0 1 0 1.966l-5.603 3.113A1.125 1.125 0 0 1 9 15.113V8.887c0-.857.921-1.4 1.671-.983l5.603 3.113Z",
2813
- clipRule: "evenodd"
2814
- }
2815
- )
2816
- }
2817
- ), Or = (e) => {
2818
- const [t, s] = P(!1);
2819
- return /* @__PURE__ */ n.jsxs(Le, { onOpenChange: (a) => s(a), children: [
2820
- /* @__PURE__ */ n.jsx(Rn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
2821
- "button",
2822
- {
2823
- type: "button",
2824
- className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-sm hover:bg-primary/80",
2825
- children: [
2826
- "Test",
2827
- /* @__PURE__ */ n.jsx(Ar, { size: 14 })
2828
- ]
2829
- }
2830
- ) }),
2831
- /* @__PURE__ */ n.jsxs(
2832
- Re,
2833
- {
2834
- className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
2835
- "aria-describedby": void 0,
2836
- children: [
2837
- /* @__PURE__ */ n.jsx(Ln, { children: /* @__PURE__ */ n.jsx(Ie, { children: "Playground" }) }),
2838
- t && /* @__PURE__ */ n.jsx(Tr, { ...e })
2839
- ]
2840
- }
2841
- )
2842
- ] });
2843
- }, Er = {
2844
- get: "green",
2845
- post: "blue",
2846
- put: "yellow",
2847
- delete: "red",
2848
- patch: "purple",
2849
- options: "gray",
2850
- head: "gray"
2851
- }, gt = ({
2852
- label: e,
2853
- path: t,
2854
- operations: s,
2855
- collapsible: a,
2856
- collapsed: r
2857
- }) => ({
2858
- type: "category",
2859
- label: e,
2860
- link: {
2861
- type: "doc",
2862
- id: t,
2863
- label: e
2864
- },
2865
- collapsible: a,
2866
- collapsed: r,
2867
- items: s.map((o) => ({
2868
- type: "link",
2869
- label: o.summary ?? o.path,
2870
- href: `${t}#${o.slug}`,
2871
- badge: {
2872
- label: o.method,
2873
- color: Er[o.method.toLowerCase()],
2874
- invert: !0
2875
- }
2876
- }))
2877
- }), Jt = jt(
2878
- void 0
2879
- ), pa = Jt.Provider, Pr = () => {
2880
- const e = $n(Jt);
2881
- if (!e)
2882
- throw new Error("useOasConfig must be used within a OasConfigProvider");
2883
- return e.config;
2884
- }, yt = (e) => ({
2885
- path: e.routePath,
2886
- async lazy() {
2887
- const { OasProvider: t } = await import("./OasProvider-CzRXrs_-.js");
2888
- return {
2889
- element: /* @__PURE__ */ n.jsx(
2890
- t,
2891
- {
2892
- basePath: e.basePath,
2893
- version: e.version,
2894
- client: e.client,
2895
- config: e.config
2896
- }
2897
- )
2898
- };
2899
- },
2900
- children: e.routes
2901
- }), Wt = ({
2902
- path: e,
2903
- tag: t,
2904
- untagged: s
2905
- }) => ({
2906
- path: e,
2907
- async lazy() {
2908
- const { OperationList: a } = await import("./OperationList-DefCF3ZI.js");
2909
- return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
2910
- }
2911
- }), $r = ({
2912
- render: e,
2913
- path: t
2914
- }) => {
2915
- const { type: s, input: a } = Pr(), { tag: r } = gn(), o = yn(), i = Is(Yt, { type: s, input: a }), {
2916
- data: { schema: c }
2917
- } = Sn(i), l = c.tags.at(0);
2918
- return !r && l?.slug ? /* @__PURE__ */ n.jsx(
2919
- vn,
2920
- {
2921
- to: {
2922
- pathname: bn(t, { tag: l.slug }),
2923
- search: o.search
2924
- }
2925
- }
2926
- ) : r && c.tags.some((u) => u.slug === r) ? e(r) : null;
2927
- }, Lr = ({ path: e }) => ({
2928
- path: e,
2929
- async lazy() {
2930
- const { OperationList: t } = await import("./OperationList-DefCF3ZI.js");
2931
- return {
2932
- element: /* @__PURE__ */ n.jsx(
2933
- $r,
2934
- {
2935
- path: e,
2936
- render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
2937
- }
2938
- )
2939
- };
2940
- }
2941
- }), Xt = (e) => [
2942
- // Category without tagged operations
2943
- Wt({
2944
- path: L(e, Qe),
2945
- untagged: !0
2946
- }),
2947
- // Schema list route
2948
- {
2949
- path: L(e, "~schemas"),
2950
- lazy: async () => {
2951
- const { SchemaList: t } = await import("./SchemaList-zHQ2Ekyw.js");
2952
- return { element: /* @__PURE__ */ n.jsx(t, {}) };
2953
- }
2954
- }
2955
- ], Rr = (e, t) => {
2956
- const s = L(e, t.at(0) ?? Qe);
2957
- return [
2958
- // Redirect to first tag on the index route
2959
- { index: !0, loader: () => xn(s) },
2960
- // Create routes for each tag
2961
- ...t.map(
2962
- (a) => Wt({
2963
- path: L(e, a),
2964
- tag: a
2965
- })
2966
- ),
2967
- ...Xt(e)
2968
- ];
2969
- }, Zt = (e) => e.type === "file" ? Object.keys(e.input) : [], Ir = ({
2970
- basePath: e,
2971
- config: t,
2972
- client: s
2973
- }) => {
2974
- const a = t.tagPages;
2975
- if (!a)
2976
- return [
2977
- yt({
2978
- basePath: e,
2979
- routePath: e,
2980
- routes: [
2981
- Lr({ path: e + "/:tag?" }),
2982
- ...Xt(e)
2983
- ],
2984
- client: s,
2985
- config: t
2986
- })
2987
- ];
2988
- const r = Zt(t);
2989
- return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
2990
- const c = L(e, i);
2991
- return yt({
2992
- basePath: e,
2993
- version: i,
2994
- routePath: c,
2995
- routes: Rr(c, a),
2996
- client: s,
2997
- config: t
2998
- });
2999
- });
3000
- }, Yt = Ms(`
3001
- query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
3002
- schema(input: $input, type: $type) {
3003
- tags {
3004
- slug
3005
- name
3006
- extensions
3007
- operations {
3008
- summary
3009
- slug
3010
- method
3011
- operationId
3012
- path
3013
- }
3014
- }
3015
- components {
3016
- schemas {
3017
- __typename
3018
- }
3019
- }
3020
- }
3021
- }
3022
- `), Qe = "~endpoints", ha = (e) => {
3023
- const t = L(e.navigationId ?? "/reference"), s = new ts(e);
3024
- return {
3025
- getHead: () => {
3026
- if (e.type === "url" && !e.skipPreload)
3027
- return /* @__PURE__ */ n.jsx(
3028
- "link",
3029
- {
3030
- rel: "preload",
3031
- href: e.input,
3032
- as: "fetch",
3033
- crossOrigin: "anonymous"
3034
- }
3035
- );
3036
- if (e.server)
3037
- return /* @__PURE__ */ n.jsx("link", { rel: "preconnect", href: e.server });
3038
- },
3039
- getMdxComponents: () => ({
3040
- OpenPlaygroundButton: ({
3041
- requireAuth: a,
3042
- server: r,
3043
- method: o,
3044
- url: i,
3045
- children: c,
3046
- ...l
3047
- }) => {
3048
- const u = wn();
3049
- if (!r)
3050
- throw new Error("Server is required");
3051
- return a && !u.isAuthenticated ? /* @__PURE__ */ n.jsxs(
3052
- X,
3053
- {
3054
- className: "gap-2 items-center",
3055
- variant: "outline",
3056
- onClick: u.login,
3057
- children: [
3058
- "Login to open in Playground ",
3059
- /* @__PURE__ */ n.jsx(hn, { size: 16 })
3060
- ]
3061
- }
3062
- ) : /* @__PURE__ */ n.jsx(
3063
- Or,
3064
- {
3065
- url: i ?? "/",
3066
- method: o ?? "get",
3067
- server: r,
3068
- ...l,
3069
- children: /* @__PURE__ */ n.jsx(X, { className: "gap-2 items-center", variant: "outline", children: c ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3070
- "Open in Playground ",
3071
- /* @__PURE__ */ n.jsx(fn, { size: 16 })
3072
- ] }) })
3073
- }
3074
- );
3075
- }
3076
- }),
3077
- getSidebar: async (a, r) => {
3078
- if (!st({ path: t, end: !1 }, a))
3079
- return [];
3080
- const o = st(
3081
- { path: `${t}/:version?/:tag`, end: !0 },
3082
- a
3083
- );
3084
- try {
3085
- const i = o?.params.version, c = i ?? Zt(e).at(0), { type: l } = e, u = l === "file" ? e.input[c] : e.input, p = Ft(s, Yt, {
3086
- type: l,
3087
- input: u
3088
- }), y = await r.queryClient.ensureQueryData(p), f = y.schema.tags.flatMap((m) => {
3089
- if (!m.name || m.operations.length === 0) return [];
3090
- const g = L(t, i, m.slug), C = m.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, j = m.extensions?.["x-zudoku-collapsible"] ?? !0;
3091
- return gt({
3092
- label: m.name,
3093
- path: g,
3094
- operations: m.operations,
3095
- collapsed: C,
3096
- collapsible: j
3097
- });
3098
- }), x = y.schema.tags.find(
3099
- (m) => !m.name
3100
- )?.operations;
3101
- return x && f.push(
3102
- gt({
3103
- label: "Other endpoints",
3104
- path: L(t, i, Qe),
3105
- operations: x,
3106
- collapsed: !e.options?.expandAllTags
3107
- })
3108
- ), y.schema.components?.schemas?.length && f.push({
3109
- type: "link",
3110
- label: "Schemas",
3111
- href: L(t, i, "~schemas")
3112
- }), f;
3113
- } catch {
3114
- return [];
3115
- }
3116
- },
3117
- getRoutes: () => Ir({ basePath: t, config: e, client: s })
3118
- };
3119
- };
3120
- export {
3121
- ha as A,
3122
- mt as C,
3123
- ma as G,
3124
- ps as L,
3125
- pa as O,
3126
- Or as P,
3127
- is as Q,
3128
- qt as S,
3129
- h as T,
3130
- Qe as U,
3131
- Is as a,
3132
- pt as b,
3133
- ht as c,
3134
- Ms as d,
3135
- Js as e,
3136
- Bt as f,
3137
- Zt as g,
3138
- Us as h,
3139
- Ls as i,
3140
- ct as j,
3141
- da as k,
3142
- hs as l,
3143
- hr as m,
3144
- Fe as n,
3145
- Dt as o,
3146
- ns as p,
3147
- $s as q,
3148
- xe as r,
3149
- A as s,
3150
- ss as t,
3151
- Pr as u,
3152
- ua as v,
3153
- ms as w,
3154
- cs as x,
3155
- Lt as y,
3156
- Yt as z
3157
- };
3158
- //# sourceMappingURL=index-BY8J3gEh.js.map