zudoku 0.0.0-f417aae → 0.0.0-f41a0ead

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 (2415) hide show
  1. package/README.md +34 -14
  2. package/cli.js +12 -2
  3. package/client.d.ts +7 -0
  4. package/dist/app/ZuploBuildConfig.d.ts +45 -0
  5. package/dist/app/ZuploBuildConfig.js +29 -0
  6. package/dist/app/ZuploBuildConfig.js.map +1 -0
  7. package/dist/app/demo.js +23 -10
  8. package/dist/app/demo.js.map +1 -1
  9. package/dist/app/entry.client.d.ts +6 -2
  10. package/dist/app/entry.client.js +56 -7
  11. package/dist/app/entry.client.js.map +1 -1
  12. package/dist/app/entry.server.d.ts +9 -8
  13. package/dist/app/entry.server.js +36 -18
  14. package/dist/app/entry.server.js.map +1 -1
  15. package/dist/app/env.d.ts +33 -0
  16. package/dist/app/env.js +37 -0
  17. package/dist/app/env.js.map +1 -0
  18. package/dist/app/main.d.ts +94 -2
  19. package/dist/app/main.js +60 -64
  20. package/dist/app/main.js.map +1 -1
  21. package/dist/app/sentry.d.ts +3 -0
  22. package/dist/app/sentry.js +19 -0
  23. package/dist/app/sentry.js.map +1 -0
  24. package/dist/app/standalone.js +12 -11
  25. package/dist/app/standalone.js.map +1 -1
  26. package/dist/cli/build/handler.d.ts +1 -3
  27. package/dist/cli/build/handler.js +18 -2
  28. package/dist/cli/build/handler.js.map +1 -1
  29. package/dist/cli/cli.d.ts +9 -0
  30. package/dist/cli/cli.js +23 -15
  31. package/dist/cli/cli.js.map +1 -1
  32. package/dist/cli/cmds/build.d.ts +11 -3
  33. package/dist/cli/cmds/build.js +21 -13
  34. package/dist/cli/cmds/build.js.map +1 -1
  35. package/dist/cli/cmds/dev.d.ts +1 -1
  36. package/dist/cli/cmds/dev.js +5 -0
  37. package/dist/cli/cmds/dev.js.map +1 -1
  38. package/dist/cli/cmds/preview.d.ts +16 -0
  39. package/dist/cli/cmds/preview.js +25 -0
  40. package/dist/cli/cmds/preview.js.map +1 -0
  41. package/dist/cli/common/analytics/lib.js +1 -1
  42. package/dist/cli/common/analytics/lib.js.map +1 -1
  43. package/dist/cli/common/logger.js +8 -0
  44. package/dist/cli/common/logger.js.map +1 -1
  45. package/dist/cli/common/machine-id/lib.js +3 -1
  46. package/dist/cli/common/machine-id/lib.js.map +1 -1
  47. package/dist/cli/common/outdated.js +4 -2
  48. package/dist/cli/common/outdated.js.map +1 -1
  49. package/dist/cli/common/output.js +2 -3
  50. package/dist/cli/common/output.js.map +1 -1
  51. package/dist/cli/common/utils/box.js +2 -2
  52. package/dist/cli/common/utils/box.js.map +1 -1
  53. package/dist/cli/common/utils/ports.d.ts +1 -1
  54. package/dist/cli/common/utils/ports.js +16 -15
  55. package/dist/cli/common/utils/ports.js.map +1 -1
  56. package/dist/cli/common/validators/lib.js +1 -1
  57. package/dist/cli/common/validators/lib.js.map +1 -1
  58. package/dist/cli/common/version-check.d.ts +2 -0
  59. package/dist/cli/common/version-check.js +58 -0
  60. package/dist/cli/common/version-check.js.map +1 -0
  61. package/dist/cli/dev/handler.d.ts +1 -0
  62. package/dist/cli/dev/handler.js +14 -15
  63. package/dist/cli/dev/handler.js.map +1 -1
  64. package/dist/cli/preview/handler.d.ts +3 -0
  65. package/dist/cli/preview/handler.js +35 -0
  66. package/dist/cli/preview/handler.js.map +1 -0
  67. package/dist/codegen.d.ts +3 -0
  68. package/dist/codegen.js +45 -0
  69. package/dist/codegen.js.map +1 -0
  70. package/dist/config/config.d.ts +21 -31
  71. package/dist/config/file-exists.d.ts +1 -0
  72. package/dist/config/file-exists.js +5 -0
  73. package/dist/config/file-exists.js.map +1 -0
  74. package/dist/config/loader.d.ts +21 -0
  75. package/dist/config/loader.js +141 -0
  76. package/dist/config/loader.js.map +1 -0
  77. package/dist/config/validators/BuildSchema.d.ts +44 -0
  78. package/dist/config/validators/BuildSchema.js +57 -0
  79. package/dist/config/validators/BuildSchema.js.map +1 -0
  80. package/dist/config/validators/InputNavigationSchema.d.ts +7646 -0
  81. package/dist/config/validators/InputNavigationSchema.js +78 -0
  82. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  83. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  84. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  85. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  86. package/dist/config/validators/NavigationSchema.js +96 -0
  87. package/dist/config/validators/NavigationSchema.js.map +1 -0
  88. package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
  89. package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
  90. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  91. package/dist/config/validators/auth.d.ts +2 -2
  92. package/dist/config/validators/auth.js +1 -1
  93. package/dist/config/validators/auth.js.map +1 -1
  94. package/dist/config/validators/icon-types.d.ts +2 -0
  95. package/dist/config/validators/icon-types.js +1873 -0
  96. package/dist/config/validators/icon-types.js.map +1 -0
  97. package/dist/config/validators/validate.d.ts +917 -1498
  98. package/dist/config/validators/validate.js +419 -148
  99. package/dist/config/validators/validate.js.map +1 -1
  100. package/dist/config/validators/validate.test.js +183 -0
  101. package/dist/config/validators/validate.test.js.map +1 -0
  102. package/dist/flat-config.d.ts +386 -0
  103. package/dist/index.d.ts +11 -3
  104. package/dist/index.js +6 -1
  105. package/dist/index.js.map +1 -1
  106. package/dist/lib/MissingIcon.d.ts +2 -0
  107. package/dist/lib/MissingIcon.js +7 -0
  108. package/dist/lib/MissingIcon.js.map +1 -0
  109. package/dist/lib/assets/language-icons/c.d.ts +3 -0
  110. package/dist/lib/assets/language-icons/c.js +4 -0
  111. package/dist/lib/assets/language-icons/c.js.map +1 -0
  112. package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
  113. package/dist/lib/assets/language-icons/commonlisp.js +4 -0
  114. package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
  115. package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
  116. package/dist/lib/assets/language-icons/cpp.js +4 -0
  117. package/dist/lib/assets/language-icons/cpp.js.map +1 -0
  118. package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
  119. package/dist/lib/assets/language-icons/csharp.js +4 -0
  120. package/dist/lib/assets/language-icons/csharp.js.map +1 -0
  121. package/dist/lib/assets/language-icons/css.d.ts +3 -0
  122. package/dist/lib/assets/language-icons/css.js +4 -0
  123. package/dist/lib/assets/language-icons/css.js.map +1 -0
  124. package/dist/lib/assets/language-icons/dart.d.ts +3 -0
  125. package/dist/lib/assets/language-icons/dart.js +4 -0
  126. package/dist/lib/assets/language-icons/dart.js.map +1 -0
  127. package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
  128. package/dist/lib/assets/language-icons/elixir.js +4 -0
  129. package/dist/lib/assets/language-icons/elixir.js.map +1 -0
  130. package/dist/lib/assets/language-icons/go.d.ts +3 -0
  131. package/dist/lib/assets/language-icons/go.js +4 -0
  132. package/dist/lib/assets/language-icons/go.js.map +1 -0
  133. package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
  134. package/dist/lib/assets/language-icons/graphql.js +4 -0
  135. package/dist/lib/assets/language-icons/graphql.js.map +1 -0
  136. package/dist/lib/assets/language-icons/html.d.ts +3 -0
  137. package/dist/lib/assets/language-icons/html.js +4 -0
  138. package/dist/lib/assets/language-icons/html.js.map +1 -0
  139. package/dist/lib/assets/language-icons/java.d.ts +3 -0
  140. package/dist/lib/assets/language-icons/java.js +4 -0
  141. package/dist/lib/assets/language-icons/java.js.map +1 -0
  142. package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
  143. package/dist/lib/assets/language-icons/javascript.js +4 -0
  144. package/dist/lib/assets/language-icons/javascript.js.map +1 -0
  145. package/dist/lib/assets/language-icons/json.d.ts +3 -0
  146. package/dist/lib/assets/language-icons/json.js +4 -0
  147. package/dist/lib/assets/language-icons/json.js.map +1 -0
  148. package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
  149. package/dist/lib/assets/language-icons/kotlin.js +4 -0
  150. package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
  151. package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
  152. package/dist/lib/assets/language-icons/markdown.js +4 -0
  153. package/dist/lib/assets/language-icons/markdown.js.map +1 -0
  154. package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
  155. package/dist/lib/assets/language-icons/mdx.js +4 -0
  156. package/dist/lib/assets/language-icons/mdx.js.map +1 -0
  157. package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
  158. package/dist/lib/assets/language-icons/objectivec.js +4 -0
  159. package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
  160. package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
  161. package/dist/lib/assets/language-icons/ocaml.js +4 -0
  162. package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
  163. package/dist/lib/assets/language-icons/php.d.ts +3 -0
  164. package/dist/lib/assets/language-icons/php.js +4 -0
  165. package/dist/lib/assets/language-icons/php.js.map +1 -0
  166. package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
  167. package/dist/lib/assets/language-icons/powershell.js +4 -0
  168. package/dist/lib/assets/language-icons/powershell.js.map +1 -0
  169. package/dist/lib/assets/language-icons/python.d.ts +3 -0
  170. package/dist/lib/assets/language-icons/python.js +4 -0
  171. package/dist/lib/assets/language-icons/python.js.map +1 -0
  172. package/dist/lib/assets/language-icons/react.d.ts +3 -0
  173. package/dist/lib/assets/language-icons/react.js +4 -0
  174. package/dist/lib/assets/language-icons/react.js.map +1 -0
  175. package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
  176. package/dist/lib/assets/language-icons/ruby.js +4 -0
  177. package/dist/lib/assets/language-icons/ruby.js.map +1 -0
  178. package/dist/lib/assets/language-icons/rust.d.ts +3 -0
  179. package/dist/lib/assets/language-icons/rust.js +4 -0
  180. package/dist/lib/assets/language-icons/rust.js.map +1 -0
  181. package/dist/lib/assets/language-icons/scala.d.ts +3 -0
  182. package/dist/lib/assets/language-icons/scala.js +4 -0
  183. package/dist/lib/assets/language-icons/scala.js.map +1 -0
  184. package/dist/lib/assets/language-icons/shell.d.ts +3 -0
  185. package/dist/lib/assets/language-icons/shell.js +4 -0
  186. package/dist/lib/assets/language-icons/shell.js.map +1 -0
  187. package/dist/lib/assets/language-icons/swift.d.ts +3 -0
  188. package/dist/lib/assets/language-icons/swift.js +4 -0
  189. package/dist/lib/assets/language-icons/swift.js.map +1 -0
  190. package/dist/lib/assets/language-icons/toml.d.ts +3 -0
  191. package/dist/lib/assets/language-icons/toml.js +4 -0
  192. package/dist/lib/assets/language-icons/toml.js.map +1 -0
  193. package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
  194. package/dist/lib/assets/language-icons/typescript.js +4 -0
  195. package/dist/lib/assets/language-icons/typescript.js.map +1 -0
  196. package/dist/lib/assets/language-icons/xml.d.ts +3 -0
  197. package/dist/lib/assets/language-icons/xml.js +4 -0
  198. package/dist/lib/assets/language-icons/xml.js.map +1 -0
  199. package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
  200. package/dist/lib/assets/language-icons/yaml.js +4 -0
  201. package/dist/lib/assets/language-icons/yaml.js.map +1 -0
  202. package/dist/lib/assets/language-icons/zig.d.ts +3 -0
  203. package/dist/lib/assets/language-icons/zig.js +4 -0
  204. package/dist/lib/assets/language-icons/zig.js.map +1 -0
  205. package/dist/lib/auth/issuer.d.ts +2 -0
  206. package/dist/lib/auth/issuer.js +40 -0
  207. package/dist/lib/auth/issuer.js.map +1 -0
  208. package/dist/lib/auth/issuer.test.js +95 -0
  209. package/dist/lib/auth/issuer.test.js.map +1 -0
  210. package/dist/lib/authentication/AuthenticationPlugin.d.ts +6 -4
  211. package/dist/lib/authentication/AuthenticationPlugin.js +4 -1
  212. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  213. package/dist/lib/authentication/authentication.d.ts +23 -15
  214. package/dist/lib/authentication/components/CallbackHandler.js +18 -12
  215. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  216. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  217. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  218. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  219. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  220. package/dist/lib/authentication/components/SignIn.js +14 -7
  221. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  222. package/dist/lib/authentication/components/SignOut.js +6 -6
  223. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  224. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  225. package/dist/lib/authentication/components/SignUp.js +10 -5
  226. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  227. package/dist/lib/authentication/errors.d.ts +6 -12
  228. package/dist/lib/authentication/errors.js +2 -1
  229. package/dist/lib/authentication/errors.js.map +1 -1
  230. package/dist/lib/authentication/hook.d.ts +17 -5
  231. package/dist/lib/authentication/hook.js +29 -7
  232. package/dist/lib/authentication/hook.js.map +1 -1
  233. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  234. package/dist/lib/authentication/providers/auth0.js +31 -16
  235. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  236. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  237. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  238. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  239. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  240. package/dist/lib/authentication/providers/clerk.js +111 -49
  241. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  242. package/dist/lib/authentication/providers/firebase.d.ts +4 -0
  243. package/dist/lib/authentication/providers/firebase.js +273 -0
  244. package/dist/lib/authentication/providers/firebase.js.map +1 -0
  245. package/dist/lib/authentication/providers/openid.d.ts +29 -24
  246. package/dist/lib/authentication/providers/openid.js +115 -74
  247. package/dist/lib/authentication/providers/openid.js.map +1 -1
  248. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
  249. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
  250. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
  251. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  252. package/dist/lib/authentication/providers/supabase.js +108 -0
  253. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  254. package/dist/lib/authentication/state.d.ts +22 -19
  255. package/dist/lib/authentication/state.js +35 -7
  256. package/dist/lib/authentication/state.js.map +1 -1
  257. package/dist/lib/authentication/ui/EmailVerificationUi.d.ts +4 -0
  258. package/dist/lib/authentication/ui/EmailVerificationUi.js +34 -0
  259. package/dist/lib/authentication/ui/EmailVerificationUi.js.map +1 -0
  260. package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +29 -0
  261. package/dist/lib/authentication/ui/ZudokuAuthUi.js +160 -0
  262. package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -0
  263. package/dist/lib/authentication/ui/icons/Apple.d.ts +3 -0
  264. package/dist/lib/authentication/ui/icons/Apple.js +4 -0
  265. package/dist/lib/authentication/ui/icons/Apple.js.map +1 -0
  266. package/dist/lib/authentication/ui/icons/Facebook.d.ts +3 -0
  267. package/dist/lib/authentication/ui/icons/Facebook.js +4 -0
  268. package/dist/lib/authentication/ui/icons/Facebook.js.map +1 -0
  269. package/dist/lib/authentication/ui/icons/Github.d.ts +3 -0
  270. package/dist/lib/authentication/ui/icons/Github.js +4 -0
  271. package/dist/lib/authentication/ui/icons/Github.js.map +1 -0
  272. package/dist/lib/authentication/ui/icons/Google.d.ts +3 -0
  273. package/dist/lib/authentication/ui/icons/Google.js +4 -0
  274. package/dist/lib/authentication/ui/icons/Google.js.map +1 -0
  275. package/dist/lib/authentication/ui/icons/Microsoft.d.ts +3 -0
  276. package/dist/lib/authentication/ui/icons/Microsoft.js +4 -0
  277. package/dist/lib/authentication/ui/icons/Microsoft.js.map +1 -0
  278. package/dist/lib/authentication/ui/icons/X.d.ts +3 -0
  279. package/dist/lib/authentication/ui/icons/X.js +4 -0
  280. package/dist/lib/authentication/ui/icons/X.js.map +1 -0
  281. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  282. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  283. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  284. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  285. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  286. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  287. package/dist/lib/authentication/utils/relativeRedirectUrl.d.ts +1 -0
  288. package/dist/lib/authentication/utils/relativeRedirectUrl.js +8 -0
  289. package/dist/lib/authentication/utils/relativeRedirectUrl.js.map +1 -0
  290. package/dist/lib/components/AnchorLink.d.ts +2 -2
  291. package/dist/lib/components/AnchorLink.js +9 -5
  292. package/dist/lib/components/AnchorLink.js.map +1 -1
  293. package/dist/lib/components/Autocomplete.d.ts +15 -0
  294. package/dist/lib/components/Autocomplete.js +51 -0
  295. package/dist/lib/components/Autocomplete.js.map +1 -0
  296. package/dist/lib/components/Banner.js +2 -2
  297. package/dist/lib/components/Banner.js.map +1 -1
  298. package/dist/lib/components/Bootstrap.d.ts +5 -3
  299. package/dist/lib/components/Bootstrap.js +13 -6
  300. package/dist/lib/components/Bootstrap.js.map +1 -1
  301. package/dist/lib/components/BuildCheck.d.ts +5 -0
  302. package/dist/lib/components/BuildCheck.js +45 -0
  303. package/dist/lib/components/BuildCheck.js.map +1 -0
  304. package/dist/lib/components/CategoryHeading.js +1 -1
  305. package/dist/lib/components/CategoryHeading.js.map +1 -1
  306. package/dist/lib/components/ClientOnly.d.ts +4 -2
  307. package/dist/lib/components/ClientOnly.js +1 -1
  308. package/dist/lib/components/ClientOnly.js.map +1 -1
  309. package/dist/lib/components/DeveloperHint.js +2 -1
  310. package/dist/lib/components/DeveloperHint.js.map +1 -1
  311. package/dist/lib/components/ErrorPage.js +2 -2
  312. package/dist/lib/components/ErrorPage.js.map +1 -1
  313. package/dist/lib/components/Footer.d.ts +1 -0
  314. package/dist/lib/components/Footer.js +32 -0
  315. package/dist/lib/components/Footer.js.map +1 -0
  316. package/dist/lib/components/Framed.d.ts +7 -0
  317. package/dist/lib/components/Framed.js +26 -0
  318. package/dist/lib/components/Framed.js.map +1 -0
  319. package/dist/lib/components/Header.js +32 -14
  320. package/dist/lib/components/Header.js.map +1 -1
  321. package/dist/lib/components/Heading.d.ts +10 -6
  322. package/dist/lib/components/Heading.js +4 -3
  323. package/dist/lib/components/Heading.js.map +1 -1
  324. package/dist/lib/components/InlineCode.d.ts +2 -1
  325. package/dist/lib/components/InlineCode.js +2 -9
  326. package/dist/lib/components/InlineCode.js.map +1 -1
  327. package/dist/lib/components/LanguageIcon.d.ts +3 -0
  328. package/dist/lib/components/LanguageIcon.js +163 -0
  329. package/dist/lib/components/LanguageIcon.js.map +1 -0
  330. package/dist/lib/components/Layout.js +11 -24
  331. package/dist/lib/components/Layout.js.map +1 -1
  332. package/dist/lib/components/Main.d.ts +2 -0
  333. package/dist/lib/components/Main.js +18 -0
  334. package/dist/lib/components/Main.js.map +1 -0
  335. package/dist/lib/components/Markdown.d.ts +4 -3
  336. package/dist/lib/components/Markdown.js +14 -14
  337. package/dist/lib/components/Markdown.js.map +1 -1
  338. package/dist/lib/components/Mermaid.d.ts +7 -0
  339. package/dist/lib/components/Mermaid.js +42 -0
  340. package/dist/lib/components/Mermaid.js.map +1 -0
  341. package/dist/lib/components/Meta.d.ts +2 -0
  342. package/dist/lib/components/Meta.js +11 -0
  343. package/dist/lib/components/Meta.js.map +1 -0
  344. package/dist/lib/components/MobileTopNavigation.js +18 -9
  345. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  346. package/dist/lib/components/NotFoundPage.js +3 -3
  347. package/dist/lib/components/NotFoundPage.js.map +1 -1
  348. package/dist/lib/components/PageProgress.d.ts +1 -0
  349. package/dist/lib/components/PageProgress.js +20 -0
  350. package/dist/lib/components/PageProgress.js.map +1 -0
  351. package/dist/lib/components/PagefindSearchMeta.d.ts +8 -0
  352. package/dist/lib/components/PagefindSearchMeta.js +7 -0
  353. package/dist/lib/components/PagefindSearchMeta.js.map +1 -0
  354. package/dist/lib/components/Pagination.d.ts +11 -0
  355. package/dist/lib/components/Pagination.js +10 -0
  356. package/dist/lib/components/Pagination.js.map +1 -0
  357. package/dist/lib/components/PathRenderer.d.ts +11 -0
  358. package/dist/lib/components/PathRenderer.js +28 -0
  359. package/dist/lib/components/PathRenderer.js.map +1 -0
  360. package/dist/lib/components/Search.d.ts +3 -1
  361. package/dist/lib/components/Search.js +10 -4
  362. package/dist/lib/components/Search.js.map +1 -1
  363. package/dist/lib/components/Slot.d.ts +17 -0
  364. package/dist/lib/components/Slot.js +24 -0
  365. package/dist/lib/components/Slot.js.map +1 -0
  366. package/dist/lib/components/Slot.test.d.ts +1 -0
  367. package/dist/lib/components/Slot.test.js +172 -0
  368. package/dist/lib/components/Slot.test.js.map +1 -0
  369. package/dist/lib/components/StatusPage.d.ts +7 -0
  370. package/dist/lib/components/StatusPage.js +75 -0
  371. package/dist/lib/components/StatusPage.js.map +1 -0
  372. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  373. package/dist/lib/components/ThemeSwitch.js +16 -0
  374. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  375. package/dist/lib/components/TopNavigation.d.ts +7 -3
  376. package/dist/lib/components/TopNavigation.js +59 -16
  377. package/dist/lib/components/TopNavigation.js.map +1 -1
  378. package/dist/lib/components/Typography.d.ts +5 -0
  379. package/dist/lib/components/Typography.js +8 -0
  380. package/dist/lib/components/Typography.js.map +1 -0
  381. package/dist/lib/components/Zudoku.d.ts +7 -0
  382. package/dist/lib/components/Zudoku.js +55 -0
  383. package/dist/lib/components/Zudoku.js.map +1 -0
  384. package/dist/lib/components/cache.d.ts +15 -0
  385. package/dist/lib/components/cache.js +18 -0
  386. package/dist/lib/components/cache.js.map +1 -0
  387. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  388. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  389. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  390. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  391. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  392. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  393. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  394. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  395. package/dist/lib/components/context/SlotProvider.js +83 -0
  396. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  397. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  398. package/dist/lib/components/context/ViewportAnchorContext.js +30 -24
  399. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  400. package/dist/lib/components/context/ZudokuContext.d.ts +9 -19
  401. package/dist/lib/components/context/ZudokuContext.js +74 -27
  402. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  403. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  404. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  405. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  406. package/dist/lib/components/index.d.ts +66 -32
  407. package/dist/lib/components/index.js +26 -17
  408. package/dist/lib/components/index.js.map +1 -1
  409. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  410. package/dist/lib/components/navigation/Navigation.js +12 -0
  411. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  412. package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
  413. package/dist/lib/components/navigation/NavigationBadge.js +26 -0
  414. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  415. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  416. package/dist/lib/components/navigation/NavigationCategory.js +66 -0
  417. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  418. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  419. package/dist/lib/components/navigation/NavigationItem.js +55 -0
  420. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  421. package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
  422. package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
  423. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  424. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  425. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  426. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  427. package/dist/lib/components/navigation/Toc.js +46 -0
  428. package/dist/lib/components/navigation/Toc.js.map +1 -0
  429. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  430. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  431. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  432. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  433. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  434. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  435. package/dist/lib/components/navigation/utils.d.ts +16 -8
  436. package/dist/lib/components/navigation/utils.js +60 -33
  437. package/dist/lib/components/navigation/utils.js.map +1 -1
  438. package/dist/lib/core/RouteGuard.d.ts +2 -0
  439. package/dist/lib/core/RouteGuard.js +49 -0
  440. package/dist/lib/core/RouteGuard.js.map +1 -0
  441. package/dist/lib/core/ZudokuContext.d.ts +116 -0
  442. package/dist/lib/core/ZudokuContext.js +106 -0
  443. package/dist/lib/core/ZudokuContext.js.map +1 -0
  444. package/dist/lib/core/__internal.d.ts +37 -0
  445. package/dist/lib/core/__internal.js +26 -0
  446. package/dist/lib/core/__internal.js.map +1 -0
  447. package/dist/lib/core/plugins.d.ts +37 -18
  448. package/dist/lib/core/plugins.js +4 -0
  449. package/dist/lib/core/plugins.js.map +1 -1
  450. package/dist/lib/core/router.d.ts +1 -0
  451. package/dist/lib/core/router.js +2 -0
  452. package/dist/lib/core/router.js.map +1 -0
  453. package/dist/lib/errors/ErrorAlert.js +5 -2
  454. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  455. package/dist/lib/errors/ErrorMessage.d.ts +3 -0
  456. package/dist/lib/errors/ErrorMessage.js +16 -0
  457. package/dist/lib/errors/ErrorMessage.js.map +1 -0
  458. package/dist/lib/errors/RouterError.d.ts +3 -1
  459. package/dist/lib/errors/RouterError.js +4 -3
  460. package/dist/lib/errors/RouterError.js.map +1 -1
  461. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  462. package/dist/lib/errors/TopLevelError.js +1 -2
  463. package/dist/lib/errors/TopLevelError.js.map +1 -1
  464. package/dist/lib/hooks/index.d.ts +30 -0
  465. package/dist/lib/hooks/index.js +16 -0
  466. package/dist/lib/hooks/index.js.map +1 -0
  467. package/dist/lib/hooks/useEvent.d.ts +11 -0
  468. package/dist/lib/hooks/useEvent.js +19 -0
  469. package/dist/lib/hooks/useEvent.js.map +1 -0
  470. package/dist/lib/hooks/useEvent.test.d.ts +1 -0
  471. package/dist/lib/hooks/useEvent.test.js +102 -0
  472. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  473. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  474. package/dist/lib/hooks/useHotkey.js +58 -0
  475. package/dist/lib/hooks/useHotkey.js.map +1 -0
  476. package/dist/lib/icons.d.ts +1 -0
  477. package/dist/lib/icons.js +1 -0
  478. package/dist/lib/icons.js.map +1 -1
  479. package/dist/lib/oas/graphql/circular.d.ts +4 -0
  480. package/dist/lib/oas/graphql/circular.js +58 -0
  481. package/dist/lib/oas/graphql/circular.js.map +1 -0
  482. package/dist/lib/oas/graphql/index.d.ts +25 -1
  483. package/dist/lib/oas/graphql/index.js +257 -70
  484. package/dist/lib/oas/graphql/index.js.map +1 -1
  485. package/dist/lib/oas/parser/dereference/index.js +10 -4
  486. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  487. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  488. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  489. package/dist/lib/oas/parser/index.d.ts +9 -3
  490. package/dist/lib/oas/parser/index.js +12 -24
  491. package/dist/lib/oas/parser/index.js.map +1 -1
  492. package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
  493. package/dist/lib/oas/parser/upgrade/index.js +84 -31
  494. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  495. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  496. package/dist/lib/plugins/api-catalog/Catalog.js +32 -0
  497. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  498. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  499. package/dist/lib/plugins/api-catalog/index.js +46 -0
  500. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  501. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  502. package/dist/lib/plugins/api-keys/CreateApiKey.js +26 -8
  503. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  504. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
  505. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
  506. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
  507. package/dist/lib/plugins/api-keys/ProtectedRoute.js +5 -2
  508. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  509. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  510. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +11 -55
  511. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  512. package/dist/lib/plugins/api-keys/index.d.ts +40 -18
  513. package/dist/lib/plugins/api-keys/index.js +92 -44
  514. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  515. package/dist/lib/plugins/api-keys/settings/ApiKeyItem.d.ts +12 -0
  516. package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js +133 -0
  517. package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js.map +1 -0
  518. package/dist/lib/plugins/api-keys/settings/ApiKeyList.d.ts +4 -0
  519. package/dist/lib/plugins/api-keys/settings/ApiKeyList.js +33 -0
  520. package/dist/lib/plugins/api-keys/settings/ApiKeyList.js.map +1 -0
  521. package/dist/lib/plugins/api-keys/settings/RevealApiKey.d.ts +6 -0
  522. package/dist/lib/plugins/api-keys/settings/RevealApiKey.js +39 -0
  523. package/dist/lib/plugins/api-keys/settings/RevealApiKey.js.map +1 -0
  524. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  525. package/dist/lib/plugins/custom-pages/index.js +18 -10
  526. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  527. package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
  528. package/dist/lib/plugins/markdown/MdxPage.js +67 -10
  529. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  530. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
  531. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
  532. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
  533. package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
  534. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
  535. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
  536. package/dist/lib/plugins/markdown/index.d.ts +19 -8
  537. package/dist/lib/plugins/markdown/index.js +14 -3
  538. package/dist/lib/plugins/markdown/index.js.map +1 -1
  539. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +6 -0
  540. package/dist/lib/plugins/openapi/CollapsibleCode.js +26 -0
  541. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  542. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  543. package/dist/lib/plugins/openapi/ColorizedParam.js +32 -14
  544. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  545. package/dist/lib/plugins/openapi/DownloadSchemaButton.d.ts +3 -0
  546. package/dist/lib/plugins/openapi/DownloadSchemaButton.js +47 -0
  547. package/dist/lib/plugins/openapi/DownloadSchemaButton.js.map +1 -0
  548. package/dist/lib/plugins/openapi/Endpoint.js +13 -19
  549. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  550. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.d.ts +5 -0
  551. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +10 -0
  552. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js.map +1 -0
  553. package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
  554. package/dist/lib/plugins/openapi/MCPEndpoint.js +56 -0
  555. package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
  556. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  557. package/dist/lib/plugins/openapi/OasProvider.js +39 -0
  558. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  559. package/dist/lib/plugins/openapi/OperationList.d.ts +5 -4
  560. package/dist/lib/plugins/openapi/OperationList.js +141 -31
  561. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  562. package/dist/lib/plugins/openapi/OperationListItem.d.ts +6 -3
  563. package/dist/lib/plugins/openapi/OperationListItem.js +22 -8
  564. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  565. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  566. package/dist/lib/plugins/openapi/ParamInfos.js +48 -0
  567. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  568. package/dist/lib/plugins/openapi/ParameterList.d.ts +4 -3
  569. package/dist/lib/plugins/openapi/ParameterList.js +10 -6
  570. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  571. package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
  572. package/dist/lib/plugins/openapi/ParameterListItem.js +30 -1
  573. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  574. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +5 -4
  575. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +15 -4
  576. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  577. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +11 -5
  578. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +8 -9
  579. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  580. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +6 -6
  581. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +28 -8
  582. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  583. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  584. package/dist/lib/plugins/openapi/SchemaList.js +53 -0
  585. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  586. package/dist/lib/plugins/openapi/Sidecar.d.ts +6 -5
  587. package/dist/lib/plugins/openapi/Sidecar.js +123 -119
  588. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  589. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  590. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  591. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +14 -0
  592. package/dist/lib/plugins/openapi/SidecarExamples.js +57 -0
  593. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  594. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  595. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  596. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  597. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  598. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  599. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  600. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  601. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  602. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  603. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  604. package/dist/lib/plugins/openapi/client/createServer.js +6 -4
  605. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  606. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
  607. package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
  608. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  609. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  610. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  611. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  612. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  613. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  614. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  615. package/dist/lib/plugins/openapi/components/NonHighlightedCode.d.ts +4 -0
  616. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js +5 -0
  617. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js.map +1 -0
  618. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  619. package/dist/lib/plugins/openapi/components/ResponseContent.js +20 -0
  620. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  621. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  622. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  623. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  624. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  625. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  626. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  627. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  628. package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
  629. package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
  630. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  631. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +152 -26
  632. package/dist/lib/plugins/openapi/graphql/graphql.js +250 -662
  633. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  634. package/dist/lib/plugins/openapi/index.d.ts +11 -8
  635. package/dist/lib/plugins/openapi/index.js +114 -110
  636. package/dist/lib/plugins/openapi/index.js.map +1 -1
  637. package/dist/lib/plugins/openapi/interfaces.d.ts +76 -5
  638. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  639. package/dist/lib/plugins/openapi/playground/BodyPanel.js +78 -0
  640. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  641. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  642. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  643. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  644. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  645. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +9 -0
  646. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  647. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  648. package/dist/lib/plugins/openapi/playground/Headers.js +50 -9
  649. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  650. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  651. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +15 -0
  652. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  653. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  654. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +7 -0
  655. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  656. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +17 -0
  657. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +12 -0
  658. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  659. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  660. package/dist/lib/plugins/openapi/playground/PathParams.js +4 -8
  661. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  662. package/dist/lib/plugins/openapi/playground/Playground.d.ts +39 -2
  663. package/dist/lib/plugins/openapi/playground/Playground.js +213 -87
  664. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  665. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +6 -3
  666. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  667. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +4 -4
  668. package/dist/lib/plugins/openapi/playground/QueryParams.js +22 -25
  669. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  670. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +8 -0
  671. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +16 -0
  672. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  673. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  674. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  675. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  676. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  677. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  678. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  679. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +19 -0
  680. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  681. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  682. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.d.ts +8 -0
  683. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js +19 -0
  684. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js.map +1 -0
  685. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  686. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  687. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  688. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  689. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  690. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  691. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.d.ts +1 -0
  692. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js +540 -0
  693. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js.map +1 -0
  694. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.d.ts +40 -0
  695. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js +205 -0
  696. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js.map +1 -0
  697. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  698. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  699. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  700. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  701. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +71 -0
  702. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  703. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +14 -0
  704. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +117 -0
  705. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  706. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +11 -0
  707. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +15 -0
  708. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  709. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  710. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  711. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  712. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  713. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  714. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  715. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +18 -0
  716. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +12 -0
  717. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  718. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  719. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  720. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  721. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  722. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +195 -0
  723. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  724. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  725. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  726. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  727. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  728. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +160 -0
  729. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  730. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  731. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  732. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  733. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  734. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  735. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  736. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  737. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  738. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  739. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  740. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  741. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  742. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +8 -0
  743. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
  744. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  745. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +4 -3
  746. package/dist/lib/plugins/openapi/schema/SchemaView.js +59 -50
  747. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  748. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +5 -0
  749. package/dist/lib/plugins/openapi/schema/UnionView.js +33 -0
  750. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  751. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  752. package/dist/lib/plugins/openapi/schema/union-helpers.js +71 -0
  753. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  754. package/dist/lib/plugins/openapi/schema/utils.d.ts +8 -8
  755. package/dist/lib/plugins/openapi/schema/utils.js +23 -9
  756. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  757. package/dist/lib/plugins/openapi/state.d.ts +27 -0
  758. package/dist/lib/plugins/openapi/state.js +18 -0
  759. package/dist/lib/plugins/openapi/state.js.map +1 -0
  760. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  761. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +112 -0
  762. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  763. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  764. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +25 -0
  765. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  766. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +2 -3
  767. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +77 -39
  768. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  769. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +15 -0
  770. package/dist/lib/plugins/openapi/util/getRoutes.js +144 -0
  771. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  772. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  773. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  774. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  775. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  776. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  777. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  778. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  779. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  780. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  781. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  782. package/dist/lib/plugins/redirect/index.js +2 -2
  783. package/dist/lib/plugins/redirect/index.js.map +1 -1
  784. package/dist/lib/plugins/search-inkeep/index.d.ts +8 -6
  785. package/dist/lib/plugins/search-inkeep/index.js +49 -7
  786. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  787. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +2 -19
  788. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  789. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  790. package/dist/lib/plugins/search-pagefind/IndexingDialog.d.ts +3 -0
  791. package/dist/lib/plugins/search-pagefind/IndexingDialog.js +64 -0
  792. package/dist/lib/plugins/search-pagefind/IndexingDialog.js.map +1 -0
  793. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  794. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +97 -0
  795. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  796. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  797. package/dist/lib/plugins/search-pagefind/ResultList.js +43 -0
  798. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  799. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  800. package/dist/lib/plugins/search-pagefind/get-results.js +41 -0
  801. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  802. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  803. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  804. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  805. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  806. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  807. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  808. package/dist/lib/shiki.d.ts +32 -0
  809. package/dist/lib/shiki.js +130 -0
  810. package/dist/lib/shiki.js.map +1 -0
  811. package/dist/lib/ui/Accordion.d.ts +7 -0
  812. package/dist/lib/ui/Accordion.js +14 -0
  813. package/dist/lib/ui/Accordion.js.map +1 -0
  814. package/dist/lib/ui/ActionButton.d.ts +4 -0
  815. package/dist/lib/ui/ActionButton.js +10 -0
  816. package/dist/lib/ui/ActionButton.js.map +1 -0
  817. package/dist/lib/ui/Alert.d.ts +9 -0
  818. package/dist/lib/ui/Alert.js +25 -0
  819. package/dist/lib/ui/Alert.js.map +1 -0
  820. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  821. package/dist/lib/ui/AlertDialog.js +27 -0
  822. package/dist/lib/ui/AlertDialog.js.map +1 -0
  823. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  824. package/dist/lib/ui/AspectRatio.js +4 -0
  825. package/dist/lib/ui/AspectRatio.js.map +1 -0
  826. package/dist/lib/ui/Badge.d.ts +9 -0
  827. package/dist/lib/ui/Badge.js +24 -0
  828. package/dist/lib/ui/Badge.js.map +1 -0
  829. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  830. package/dist/lib/ui/Breadcrumb.js +24 -0
  831. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  832. package/dist/lib/ui/Button.d.ts +4 -5
  833. package/dist/lib/ui/Button.js +13 -8
  834. package/dist/lib/ui/Button.js.map +1 -1
  835. package/dist/lib/ui/ButtonGroup.d.ts +11 -0
  836. package/dist/lib/ui/ButtonGroup.js +28 -0
  837. package/dist/lib/ui/ButtonGroup.js.map +1 -0
  838. package/dist/lib/ui/Callout.d.ts +7 -6
  839. package/dist/lib/ui/Callout.js +8 -7
  840. package/dist/lib/ui/Callout.js.map +1 -1
  841. package/dist/lib/ui/Card.js +1 -1
  842. package/dist/lib/ui/Card.js.map +1 -1
  843. package/dist/lib/ui/Carousel.d.ts +18 -0
  844. package/dist/lib/ui/Carousel.js +99 -0
  845. package/dist/lib/ui/Carousel.js.map +1 -0
  846. package/dist/lib/ui/Checkbox.d.ts +4 -0
  847. package/dist/lib/ui/Checkbox.js +9 -0
  848. package/dist/lib/ui/Checkbox.js.map +1 -0
  849. package/dist/lib/ui/CodeBlock.d.ts +14 -0
  850. package/dist/lib/ui/CodeBlock.js +18 -0
  851. package/dist/lib/ui/CodeBlock.js.map +1 -0
  852. package/dist/lib/ui/Collapsible.d.ts +5 -0
  853. package/dist/lib/ui/Collapsible.js +13 -0
  854. package/dist/lib/ui/Collapsible.js.map +1 -0
  855. package/dist/lib/ui/Command.d.ts +94 -0
  856. package/dist/lib/ui/Command.js +31 -0
  857. package/dist/lib/ui/Command.js.map +1 -0
  858. package/dist/lib/ui/Dialog.d.ts +15 -0
  859. package/dist/lib/ui/Dialog.js +36 -0
  860. package/dist/lib/ui/Dialog.js.map +1 -0
  861. package/dist/lib/ui/DropdownMenu.d.ts +21 -23
  862. package/dist/lib/ui/DropdownMenu.js +47 -32
  863. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  864. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +16 -0
  865. package/dist/lib/ui/EmbeddedCodeBlock.js +19 -0
  866. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  867. package/dist/lib/ui/Form.d.ts +23 -0
  868. package/dist/lib/ui/Form.js +63 -0
  869. package/dist/lib/ui/Form.js.map +1 -0
  870. package/dist/lib/ui/Frame.d.ts +8 -0
  871. package/dist/lib/ui/Frame.js +22 -0
  872. package/dist/lib/ui/Frame.js.map +1 -0
  873. package/dist/lib/ui/HoverCard.d.ts +6 -0
  874. package/dist/lib/ui/HoverCard.js +10 -0
  875. package/dist/lib/ui/HoverCard.js.map +1 -0
  876. package/dist/lib/ui/Input.d.ts +1 -2
  877. package/dist/lib/ui/Input.js +1 -1
  878. package/dist/lib/ui/Input.js.map +1 -1
  879. package/dist/lib/ui/Item.d.ts +23 -0
  880. package/dist/lib/ui/Item.js +67 -0
  881. package/dist/lib/ui/Item.js.map +1 -0
  882. package/dist/lib/ui/Kbd.d.ts +3 -0
  883. package/dist/lib/ui/Kbd.js +10 -0
  884. package/dist/lib/ui/Kbd.js.map +1 -0
  885. package/dist/lib/ui/Label.d.ts +5 -0
  886. package/dist/lib/ui/Label.js +10 -0
  887. package/dist/lib/ui/Label.js.map +1 -0
  888. package/dist/lib/ui/NativeSelect.d.ts +5 -0
  889. package/dist/lib/ui/NativeSelect.js +14 -0
  890. package/dist/lib/ui/NativeSelect.js.map +1 -0
  891. package/dist/lib/ui/Pagination.d.ts +28 -0
  892. package/dist/lib/ui/Pagination.js +24 -0
  893. package/dist/lib/ui/Pagination.js.map +1 -0
  894. package/dist/lib/ui/Popover.d.ts +6 -0
  895. package/dist/lib/ui/Popover.js +10 -0
  896. package/dist/lib/ui/Popover.js.map +1 -0
  897. package/dist/lib/ui/Progress.d.ts +4 -0
  898. package/dist/lib/ui/Progress.js +8 -0
  899. package/dist/lib/ui/Progress.js.map +1 -0
  900. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  901. package/dist/lib/ui/RadioGroup.js +15 -0
  902. package/dist/lib/ui/RadioGroup.js.map +1 -0
  903. package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
  904. package/dist/lib/ui/ReactComponentDoc.js +10 -0
  905. package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
  906. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  907. package/dist/lib/ui/ScrollArea.js +12 -0
  908. package/dist/lib/ui/ScrollArea.js.map +1 -0
  909. package/dist/lib/ui/Secret.d.ts +18 -0
  910. package/dist/lib/ui/Secret.js +26 -0
  911. package/dist/lib/ui/Secret.js.map +1 -0
  912. package/dist/lib/ui/Select.d.ts +15 -0
  913. package/dist/lib/ui/Select.js +38 -0
  914. package/dist/lib/ui/Select.js.map +1 -0
  915. package/dist/lib/ui/Separator.d.ts +4 -0
  916. package/dist/lib/ui/Separator.js +8 -0
  917. package/dist/lib/ui/Separator.js.map +1 -0
  918. package/dist/lib/ui/Skeleton.d.ts +2 -0
  919. package/dist/lib/ui/Skeleton.js +7 -0
  920. package/dist/lib/ui/Skeleton.js.map +1 -0
  921. package/dist/lib/ui/Slider.d.ts +4 -0
  922. package/dist/lib/ui/Slider.js +8 -0
  923. package/dist/lib/ui/Slider.js.map +1 -0
  924. package/dist/lib/ui/Stepper.d.ts +3 -0
  925. package/dist/lib/ui/Stepper.js +7 -0
  926. package/dist/lib/ui/Stepper.js.map +1 -0
  927. package/dist/lib/ui/Switch.d.ts +4 -0
  928. package/dist/lib/ui/Switch.js +8 -0
  929. package/dist/lib/ui/Switch.js.map +1 -0
  930. package/dist/lib/ui/SyntaxHighlight.d.ts +13 -0
  931. package/dist/lib/ui/SyntaxHighlight.js +15 -0
  932. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  933. package/dist/lib/ui/Tabs.js +2 -2
  934. package/dist/lib/ui/Tabs.js.map +1 -1
  935. package/dist/lib/ui/Textarea.d.ts +4 -0
  936. package/dist/lib/ui/Textarea.js +9 -0
  937. package/dist/lib/ui/Textarea.js.map +1 -0
  938. package/dist/lib/ui/Toggle.d.ts +12 -0
  939. package/dist/lib/ui/Toggle.js +26 -0
  940. package/dist/lib/ui/Toggle.js.map +1 -0
  941. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  942. package/dist/lib/ui/ToggleGroup.js +21 -0
  943. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  944. package/dist/lib/ui/Tooltip.d.ts +8 -0
  945. package/dist/lib/ui/Tooltip.js +18 -0
  946. package/dist/lib/ui/Tooltip.js.map +1 -0
  947. package/dist/lib/ui/Value.d.ts +5 -0
  948. package/dist/lib/ui/Value.js +13 -0
  949. package/dist/lib/ui/Value.js.map +1 -0
  950. package/dist/lib/ui/util.d.ts +2 -0
  951. package/dist/lib/ui/util.js +3 -0
  952. package/dist/lib/ui/util.js.map +1 -0
  953. package/dist/lib/util/MdxComponents.d.ts +40 -21
  954. package/dist/lib/util/MdxComponents.js +26 -17
  955. package/dist/lib/util/MdxComponents.js.map +1 -1
  956. package/dist/lib/util/cn.js.map +1 -1
  957. package/dist/lib/util/createVariantComponent.d.ts +7 -4
  958. package/dist/lib/util/createVariantComponent.js +5 -2
  959. package/dist/lib/util/createVariantComponent.js.map +1 -1
  960. package/dist/lib/util/detectOS.d.ts +1 -0
  961. package/dist/lib/util/detectOS.js +11 -0
  962. package/dist/lib/util/detectOS.js.map +1 -0
  963. package/dist/lib/util/ensureArray.d.ts +1 -0
  964. package/dist/lib/util/ensureArray.js +2 -0
  965. package/dist/lib/util/ensureArray.js.map +1 -0
  966. package/dist/lib/util/flattenAllOf.d.ts +4 -0
  967. package/dist/lib/util/flattenAllOf.js +88 -0
  968. package/dist/lib/util/flattenAllOf.js.map +1 -0
  969. package/dist/lib/util/flattenAllOf.test.d.ts +1 -0
  970. package/dist/lib/util/flattenAllOf.test.js +587 -0
  971. package/dist/lib/util/flattenAllOf.test.js.map +1 -0
  972. package/dist/lib/util/groupBy.js +1 -0
  973. package/dist/lib/util/groupBy.js.map +1 -1
  974. package/dist/lib/util/humanFileSize.d.ts +6 -0
  975. package/dist/lib/util/humanFileSize.js +14 -0
  976. package/dist/lib/util/humanFileSize.js.map +1 -0
  977. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  978. package/dist/lib/util/humanFileSize.test.js +22 -0
  979. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  980. package/dist/lib/util/invariant.d.ts +7 -6
  981. package/dist/lib/util/invariant.js +6 -4
  982. package/dist/lib/util/invariant.js.map +1 -1
  983. package/dist/lib/util/joinPath.d.ts +3 -0
  984. package/dist/lib/util/joinPath.js +3 -0
  985. package/dist/lib/util/joinPath.js.map +1 -1
  986. package/dist/lib/util/joinUrl.d.ts +1 -0
  987. package/dist/lib/util/joinUrl.js +40 -0
  988. package/dist/lib/util/joinUrl.js.map +1 -0
  989. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  990. package/dist/lib/util/joinUrl.test.js +43 -0
  991. package/dist/lib/util/joinUrl.test.js.map +1 -0
  992. package/dist/lib/util/os.d.ts +2 -0
  993. package/dist/lib/util/os.js +21 -0
  994. package/dist/lib/util/os.js.map +1 -0
  995. package/dist/lib/util/pastellize.js +4 -4
  996. package/dist/lib/util/pastellize.js.map +1 -1
  997. package/dist/lib/util/readFrontmatter.d.ts +6 -0
  998. package/dist/lib/util/readFrontmatter.js +12 -0
  999. package/dist/lib/util/readFrontmatter.js.map +1 -0
  1000. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  1001. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  1002. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  1003. package/dist/lib/util/syncZustandState.d.ts +5 -0
  1004. package/dist/lib/util/syncZustandState.js +14 -0
  1005. package/dist/lib/util/syncZustandState.js.map +1 -0
  1006. package/dist/lib/util/traverse.d.ts +4 -0
  1007. package/dist/lib/util/traverse.js +48 -0
  1008. package/dist/lib/util/traverse.js.map +1 -0
  1009. package/dist/lib/util/types.d.ts +7 -0
  1010. package/dist/lib/util/types.js +2 -0
  1011. package/dist/lib/util/types.js.map +1 -0
  1012. package/dist/lib/util/url.d.ts +4 -0
  1013. package/dist/lib/util/url.js +13 -0
  1014. package/dist/lib/util/url.js.map +1 -0
  1015. package/dist/lib/util/url.test.d.ts +1 -0
  1016. package/dist/lib/util/url.test.js +26 -0
  1017. package/dist/lib/util/url.test.js.map +1 -0
  1018. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  1019. package/dist/lib/util/useCopyToClipboard.js +11 -0
  1020. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  1021. package/dist/lib/util/useExposedProps.d.ts +8 -1
  1022. package/dist/lib/util/useExposedProps.js +3 -2
  1023. package/dist/lib/util/useExposedProps.js.map +1 -1
  1024. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  1025. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  1026. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  1027. package/dist/lib/util/useLatest.d.ts +1 -0
  1028. package/dist/lib/util/useLatest.js +15 -0
  1029. package/dist/lib/util/useLatest.js.map +1 -0
  1030. package/dist/lib/util/useOnScreen.d.ts +5 -0
  1031. package/dist/lib/util/useOnScreen.js +19 -0
  1032. package/dist/lib/util/useOnScreen.js.map +1 -0
  1033. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  1034. package/dist/lib/util/useScrollToAnchor.js +45 -38
  1035. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  1036. package/dist/lib/util/useScrollToTop.js +7 -5
  1037. package/dist/lib/util/useScrollToTop.js.map +1 -1
  1038. package/dist/ts.js +3 -3
  1039. package/dist/ts.js.map +1 -1
  1040. package/dist/vite/api/SchemaManager.d.ts +43 -0
  1041. package/dist/vite/api/SchemaManager.js +176 -0
  1042. package/dist/vite/api/SchemaManager.js.map +1 -0
  1043. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  1044. package/dist/vite/api/SchemaManager.test.js +173 -0
  1045. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  1046. package/dist/vite/api/schema-codegen.d.ts +12 -0
  1047. package/dist/vite/api/schema-codegen.js +134 -0
  1048. package/dist/vite/api/schema-codegen.js.map +1 -0
  1049. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  1050. package/dist/vite/api/schema-codegen.test.js +468 -0
  1051. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  1052. package/dist/vite/build.js +63 -14
  1053. package/dist/vite/build.js.map +1 -1
  1054. package/dist/vite/config.d.ts +2 -16
  1055. package/dist/vite/config.js +132 -149
  1056. package/dist/vite/config.js.map +1 -1
  1057. package/dist/vite/config.test.js +12 -6
  1058. package/dist/vite/config.test.js.map +1 -1
  1059. package/dist/vite/css/collect.d.ts +2 -0
  1060. package/dist/vite/css/collect.js +27 -0
  1061. package/dist/vite/css/collect.js.map +1 -0
  1062. package/dist/vite/css/plugin.d.ts +4 -0
  1063. package/dist/vite/css/plugin.js +91 -0
  1064. package/dist/vite/css/plugin.js.map +1 -0
  1065. package/dist/vite/debug.d.ts +1 -0
  1066. package/dist/vite/debug.js +10 -0
  1067. package/dist/vite/debug.js.map +1 -0
  1068. package/dist/vite/dev-server.d.ts +5 -3
  1069. package/dist/vite/dev-server.js +107 -23
  1070. package/dist/vite/dev-server.js.map +1 -1
  1071. package/dist/vite/error-handler.d.ts +3 -3
  1072. package/dist/vite/error-handler.js +1 -1
  1073. package/dist/vite/error-handler.js.map +1 -1
  1074. package/dist/vite/html.d.ts +7 -3
  1075. package/dist/vite/html.js +15 -11
  1076. package/dist/vite/html.js.map +1 -1
  1077. package/dist/vite/llms.d.ts +12 -0
  1078. package/dist/vite/llms.js +66 -0
  1079. package/dist/vite/llms.js.map +1 -0
  1080. package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
  1081. package/dist/vite/mdx/remark-inject-filepath.js +6 -0
  1082. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
  1083. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  1084. package/dist/vite/mdx/remark-last-modified.js +82 -0
  1085. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  1086. package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
  1087. package/dist/vite/mdx/remark-link-rewrite.js +20 -0
  1088. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
  1089. package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
  1090. package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
  1091. package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
  1092. package/dist/vite/mdx/remark-static-generation.d.ts +3 -0
  1093. package/dist/vite/mdx/remark-static-generation.js +125 -0
  1094. package/dist/vite/mdx/remark-static-generation.js.map +1 -0
  1095. package/dist/vite/mdx/utils.d.ts +2 -0
  1096. package/dist/vite/mdx/utils.js +31 -0
  1097. package/dist/vite/mdx/utils.js.map +1 -0
  1098. package/dist/vite/output.d.ts +113 -0
  1099. package/dist/vite/output.js +60 -0
  1100. package/dist/vite/output.js.map +1 -0
  1101. package/dist/vite/pagefind-dev-index.d.ts +16 -0
  1102. package/dist/vite/pagefind-dev-index.js +68 -0
  1103. package/dist/vite/pagefind-dev-index.js.map +1 -0
  1104. package/dist/vite/plugin-api-keys.d.ts +2 -3
  1105. package/dist/vite/plugin-api-keys.js +18 -8
  1106. package/dist/vite/plugin-api-keys.js.map +1 -1
  1107. package/dist/vite/plugin-api.d.ts +1 -2
  1108. package/dist/vite/plugin-api.js +186 -33
  1109. package/dist/vite/plugin-api.js.map +1 -1
  1110. package/dist/vite/plugin-auth.d.ts +2 -3
  1111. package/dist/vite/plugin-auth.js +11 -7
  1112. package/dist/vite/plugin-auth.js.map +1 -1
  1113. package/dist/vite/plugin-component.d.ts +2 -3
  1114. package/dist/vite/plugin-component.js +25 -14
  1115. package/dist/vite/plugin-component.js.map +1 -1
  1116. package/dist/vite/plugin-config-reload.d.ts +3 -4
  1117. package/dist/vite/plugin-config-reload.js +31 -25
  1118. package/dist/vite/plugin-config-reload.js.map +1 -1
  1119. package/dist/vite/plugin-config.d.ts +2 -4
  1120. package/dist/vite/plugin-config.js +28 -3
  1121. package/dist/vite/plugin-config.js.map +1 -1
  1122. package/dist/vite/plugin-custom-pages.d.ts +2 -3
  1123. package/dist/vite/plugin-custom-pages.js +8 -7
  1124. package/dist/vite/plugin-custom-pages.js.map +1 -1
  1125. package/dist/vite/plugin-docs.d.ts +11 -3
  1126. package/dist/vite/plugin-docs.js +100 -41
  1127. package/dist/vite/plugin-docs.js.map +1 -1
  1128. package/dist/vite/plugin-frontmatter.js +33 -26
  1129. package/dist/vite/plugin-frontmatter.js.map +1 -1
  1130. package/dist/vite/plugin-markdown-export.d.ts +21 -0
  1131. package/dist/vite/plugin-markdown-export.js +140 -0
  1132. package/dist/vite/plugin-markdown-export.js.map +1 -0
  1133. package/dist/vite/plugin-mdx.d.ts +2 -9
  1134. package/dist/vite/plugin-mdx.js +91 -52
  1135. package/dist/vite/plugin-mdx.js.map +1 -1
  1136. package/dist/vite/plugin-metadata.d.ts +1 -1
  1137. package/dist/vite/plugin-navigation.d.ts +4 -0
  1138. package/dist/vite/plugin-navigation.js +67 -0
  1139. package/dist/vite/plugin-navigation.js.map +1 -0
  1140. package/dist/vite/plugin-redirect.d.ts +2 -3
  1141. package/dist/vite/plugin-redirect.js +7 -6
  1142. package/dist/vite/plugin-redirect.js.map +1 -1
  1143. package/dist/vite/plugin-search.d.ts +2 -3
  1144. package/dist/vite/plugin-search.js +9 -4
  1145. package/dist/vite/plugin-search.js.map +1 -1
  1146. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  1147. package/dist/vite/plugin-shiki-register.js +39 -0
  1148. package/dist/vite/plugin-shiki-register.js.map +1 -0
  1149. package/dist/vite/plugin-theme.d.ts +8 -0
  1150. package/dist/vite/plugin-theme.js +283 -0
  1151. package/dist/vite/plugin-theme.js.map +1 -0
  1152. package/dist/vite/plugin-theme.test.d.ts +1 -0
  1153. package/dist/vite/plugin-theme.test.js +314 -0
  1154. package/dist/vite/plugin-theme.test.js.map +1 -0
  1155. package/dist/vite/plugin.d.ts +2 -4
  1156. package/dist/vite/plugin.js +26 -21
  1157. package/dist/vite/plugin.js.map +1 -1
  1158. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  1159. package/dist/vite/prerender/FileWritingResponse.js +53 -0
  1160. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  1161. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  1162. package/dist/vite/prerender/InMemoryResponse.js +34 -0
  1163. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  1164. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  1165. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  1166. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  1167. package/dist/vite/prerender/prerender.d.ts +15 -0
  1168. package/dist/vite/prerender/prerender.js +124 -0
  1169. package/dist/vite/prerender/prerender.js.map +1 -0
  1170. package/dist/vite/prerender/utils.d.ts +2 -0
  1171. package/dist/vite/prerender/utils.js +24 -0
  1172. package/dist/vite/prerender/utils.js.map +1 -0
  1173. package/dist/vite/prerender/worker.d.ts +13 -0
  1174. package/dist/vite/prerender/worker.js +66 -0
  1175. package/dist/vite/prerender/worker.js.map +1 -0
  1176. package/dist/vite/reporter.d.ts +3 -0
  1177. package/dist/vite/reporter.js +33 -0
  1178. package/dist/vite/reporter.js.map +1 -0
  1179. package/dist/vite/shadcn-registry.d.ts +20 -0
  1180. package/dist/vite/shadcn-registry.js +29 -0
  1181. package/dist/vite/shadcn-registry.js.map +1 -0
  1182. package/dist/vite/sitemap.d.ts +1 -1
  1183. package/dist/vite/sitemap.js +16 -14
  1184. package/dist/vite/sitemap.js.map +1 -1
  1185. package/dist/vite/zuplo.d.ts +13 -0
  1186. package/dist/vite/zuplo.js +15 -0
  1187. package/dist/vite/zuplo.js.map +1 -0
  1188. package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
  1189. package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
  1190. package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
  1191. package/dist/zuplo/enrich-with-zuplo.d.ts +6 -0
  1192. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  1193. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  1194. package/dist/zuplo/policy-types.d.ts +33 -0
  1195. package/dist/zuplo/policy-types.js +7 -0
  1196. package/dist/zuplo/policy-types.js.map +1 -0
  1197. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  1198. package/dist/zuplo/with-zuplo-processors.js +28 -0
  1199. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  1200. package/dist/zuplo/with-zuplo.d.ts +6 -0
  1201. package/dist/zuplo/with-zuplo.js +10 -0
  1202. package/dist/zuplo/with-zuplo.js.map +1 -0
  1203. package/lib/ActionButton-B0CXL1Lq.js +25 -0
  1204. package/lib/ActionButton-B0CXL1Lq.js.map +1 -0
  1205. package/lib/Button-GUVe7pmt.js +54 -0
  1206. package/lib/Button-GUVe7pmt.js.map +1 -0
  1207. package/lib/Card-DCdq37aA.js +61 -0
  1208. package/lib/Card-DCdq37aA.js.map +1 -0
  1209. package/lib/CategoryHeading-DhmodDcq.js +17 -0
  1210. package/lib/CategoryHeading-DhmodDcq.js.map +1 -0
  1211. package/lib/ClaudeLogo-BWe0C_so.js +69 -0
  1212. package/lib/ClaudeLogo-BWe0C_so.js.map +1 -0
  1213. package/lib/ClientOnly-E7hGysn1.js +11 -0
  1214. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  1215. package/lib/Command-N6VujV30.js +134 -0
  1216. package/lib/Command-N6VujV30.js.map +1 -0
  1217. package/lib/Dialog-hlvmmQ_c.js +144 -0
  1218. package/lib/Dialog-hlvmmQ_c.js.map +1 -0
  1219. package/lib/Drawer-Ch7927PF.js +1133 -0
  1220. package/lib/Drawer-Ch7927PF.js.map +1 -0
  1221. package/lib/DropdownMenu-DN0jNrjj.js +104 -0
  1222. package/lib/DropdownMenu-DN0jNrjj.js.map +1 -0
  1223. package/lib/Frame-DKlOmSkU.js +205 -0
  1224. package/lib/Frame-DKlOmSkU.js.map +1 -0
  1225. package/lib/IndexingDialog-D0YdGfbn.js +100 -0
  1226. package/lib/IndexingDialog-D0YdGfbn.js.map +1 -0
  1227. package/lib/Input-nskrp_mj.js +136 -0
  1228. package/lib/Input-nskrp_mj.js.map +1 -0
  1229. package/lib/MdxPage-CePZRTMp.js +210 -0
  1230. package/lib/MdxPage-CePZRTMp.js.map +1 -0
  1231. package/lib/Mermaid-CGRoylZf.js +102 -0
  1232. package/lib/Mermaid-CGRoylZf.js.map +1 -0
  1233. package/lib/OAuthErrorPage-87ItaXvG.js +149 -0
  1234. package/lib/OAuthErrorPage-87ItaXvG.js.map +1 -0
  1235. package/lib/OasProvider-Bmg9-dFB.js +40 -0
  1236. package/lib/OasProvider-Bmg9-dFB.js.map +1 -0
  1237. package/lib/OperationList-BnHfDeIy.js +5819 -0
  1238. package/lib/OperationList-BnHfDeIy.js.map +1 -0
  1239. package/lib/RouteGuard-CIN9Ou-r.js +77 -0
  1240. package/lib/RouteGuard-CIN9Ou-r.js.map +1 -0
  1241. package/lib/SchemaList-B03683OY.js +151 -0
  1242. package/lib/SchemaList-B03683OY.js.map +1 -0
  1243. package/lib/SchemaView-Bo377i1k.js +438 -0
  1244. package/lib/SchemaView-Bo377i1k.js.map +1 -0
  1245. package/lib/Secret-BDBqq4p3.js +243 -0
  1246. package/lib/Secret-BDBqq4p3.js.map +1 -0
  1247. package/lib/Separator-BXt1LYnm.js +27 -0
  1248. package/lib/Separator-BXt1LYnm.js.map +1 -0
  1249. package/lib/SignUp-Bm5CfvIv.js +50 -0
  1250. package/lib/SignUp-Bm5CfvIv.js.map +1 -0
  1251. package/lib/Spinner-CI6bRyZw.js +7 -0
  1252. package/lib/Spinner-CI6bRyZw.js.map +1 -0
  1253. package/lib/SyntaxHighlight-9LdEQose.js +10409 -0
  1254. package/lib/SyntaxHighlight-9LdEQose.js.map +1 -0
  1255. package/lib/Toc-CQtuzud4.js +92 -0
  1256. package/lib/Toc-CQtuzud4.js.map +1 -0
  1257. package/lib/ZudokuContext-CDJYKqMY.js +1581 -0
  1258. package/lib/ZudokuContext-CDJYKqMY.js.map +1 -0
  1259. package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js +9 -0
  1260. package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +1 -0
  1261. package/lib/c-B-NUhs61.js +46 -0
  1262. package/lib/c-B-NUhs61.js.map +1 -0
  1263. package/lib/chunk-PVWAREVJ-ClM0m2aJ.js +7965 -0
  1264. package/lib/chunk-PVWAREVJ-ClM0m2aJ.js.map +1 -0
  1265. package/lib/circular-C8WbUSfZ.js +15361 -0
  1266. package/lib/circular-C8WbUSfZ.js.map +1 -0
  1267. package/lib/clsx-OuTLNxxd.js +17 -0
  1268. package/lib/clsx-OuTLNxxd.js.map +1 -0
  1269. package/lib/cn-5-Gd1Dss.js +2764 -0
  1270. package/lib/cn-5-Gd1Dss.js.map +1 -0
  1271. package/lib/commonlisp-De080z23.js +28 -0
  1272. package/lib/commonlisp-De080z23.js.map +1 -0
  1273. package/lib/cpp-79Paht7T.js +53 -0
  1274. package/lib/cpp-79Paht7T.js.map +1 -0
  1275. package/lib/createServer-XaST7nXb.js +16693 -0
  1276. package/lib/createServer-XaST7nXb.js.map +1 -0
  1277. package/lib/createVariantComponent-Dc0vtOvr.js +18 -0
  1278. package/lib/createVariantComponent-Dc0vtOvr.js.map +1 -0
  1279. package/lib/csharp-D8MIL50B.js +53 -0
  1280. package/lib/csharp-D8MIL50B.js.map +1 -0
  1281. package/lib/css-Bt6hr1td.js +54 -0
  1282. package/lib/css-Bt6hr1td.js.map +1 -0
  1283. package/lib/dart-B0vy1jWB.js +60 -0
  1284. package/lib/dart-B0vy1jWB.js.map +1 -0
  1285. package/lib/elixir-Ds8r0sF8.js +25 -0
  1286. package/lib/elixir-Ds8r0sF8.js.map +1 -0
  1287. package/lib/errors-r14WM5cv.js +45 -0
  1288. package/lib/errors-r14WM5cv.js.map +1 -0
  1289. package/lib/firebase-GLWpXK71.js +7612 -0
  1290. package/lib/firebase-GLWpXK71.js.map +1 -0
  1291. package/lib/go-D2VsmIOS.js +25 -0
  1292. package/lib/go-D2VsmIOS.js.map +1 -0
  1293. package/lib/graphql-BtA6M4m5.js +25 -0
  1294. package/lib/graphql-BtA6M4m5.js.map +1 -0
  1295. package/lib/hook-BxWvqzB0.js +52 -0
  1296. package/lib/hook-BxWvqzB0.js.map +1 -0
  1297. package/lib/html-MGnI2uzP.js +33 -0
  1298. package/lib/html-MGnI2uzP.js.map +1 -0
  1299. package/lib/index-7s0u7qwT.js +3675 -0
  1300. package/lib/index-7s0u7qwT.js.map +1 -0
  1301. package/lib/index-C2Ag_bmE.js +2210 -0
  1302. package/lib/index-C2Ag_bmE.js.map +1 -0
  1303. package/lib/index-CJGQ3vyv.js +16515 -0
  1304. package/lib/index-CJGQ3vyv.js.map +1 -0
  1305. package/lib/index-CjTisMeX.js +133 -0
  1306. package/lib/index-CjTisMeX.js.map +1 -0
  1307. package/lib/index-CrcNWbel.js +316 -0
  1308. package/lib/index-CrcNWbel.js.map +1 -0
  1309. package/lib/index-DI5SPFK9.js +36 -0
  1310. package/lib/index-DI5SPFK9.js.map +1 -0
  1311. package/lib/index-nGbmHh_A.js +4827 -0
  1312. package/lib/index-nGbmHh_A.js.map +1 -0
  1313. package/lib/index.esm-BYObtETB.js +1294 -0
  1314. package/lib/index.esm-BYObtETB.js.map +1 -0
  1315. package/lib/index.esm-B_0dvNjB.js +683 -0
  1316. package/lib/index.esm-B_0dvNjB.js.map +1 -0
  1317. package/lib/index.esm-TGqXe8U1.js +34 -0
  1318. package/lib/index.esm-TGqXe8U1.js.map +1 -0
  1319. package/lib/invariant-BJAl77rw.js +44 -0
  1320. package/lib/invariant-BJAl77rw.js.map +1 -0
  1321. package/lib/java-CVLzHfb1.js +53 -0
  1322. package/lib/java-CVLzHfb1.js.map +1 -0
  1323. package/lib/javascript-CcmIpL4G.js +10 -0
  1324. package/lib/javascript-CcmIpL4G.js.map +1 -0
  1325. package/lib/json-4AyP4uiY.js +25 -0
  1326. package/lib/json-4AyP4uiY.js.map +1 -0
  1327. package/lib/jsx-runtime-BzflLqGi.js +283 -0
  1328. package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
  1329. package/lib/kotlin-v2plddBQ.js +37 -0
  1330. package/lib/kotlin-v2plddBQ.js.map +1 -0
  1331. package/lib/markdown-DYGWCmGQ.js +25 -0
  1332. package/lib/markdown-DYGWCmGQ.js.map +1 -0
  1333. package/lib/mdx-CHwYvXd4.js +32 -0
  1334. package/lib/mdx-CHwYvXd4.js.map +1 -0
  1335. package/lib/mutation-Cq0wKBqW.js +222 -0
  1336. package/lib/mutation-Cq0wKBqW.js.map +1 -0
  1337. package/lib/objectivec-HZY8shkd.js +32 -0
  1338. package/lib/objectivec-HZY8shkd.js.map +1 -0
  1339. package/lib/ocaml-DqsdDdwb.js +52 -0
  1340. package/lib/ocaml-DqsdDdwb.js.map +1 -0
  1341. package/lib/php-rQXzo7K_.js +25 -0
  1342. package/lib/php-rQXzo7K_.js.map +1 -0
  1343. package/lib/powershell-CQje9pm1.js +39 -0
  1344. package/lib/powershell-CQje9pm1.js.map +1 -0
  1345. package/lib/processors/removeExtensions.js +11 -0
  1346. package/lib/processors/removeExtensions.js.map +1 -0
  1347. package/lib/processors/removeParameters.js +47 -0
  1348. package/lib/processors/removeParameters.js.map +1 -0
  1349. package/lib/processors/removePaths.js +28 -0
  1350. package/lib/processors/removePaths.js.map +1 -0
  1351. package/lib/processors/traverse.js +17 -0
  1352. package/lib/processors/traverse.js.map +1 -0
  1353. package/lib/python-QIQAE5Ei.js +32 -0
  1354. package/lib/python-QIQAE5Ei.js.map +1 -0
  1355. package/lib/react-DHpVpxRv.js +24 -0
  1356. package/lib/react-DHpVpxRv.js.map +1 -0
  1357. package/lib/ruby-B2dU8Ny5.js +25 -0
  1358. package/lib/ruby-B2dU8Ny5.js.map +1 -0
  1359. package/lib/rust-DYnLHAi2.js +25 -0
  1360. package/lib/rust-DYnLHAi2.js.map +1 -0
  1361. package/lib/scala-CeKInBR8.js +25 -0
  1362. package/lib/scala-CeKInBR8.js.map +1 -0
  1363. package/lib/shell-HUv9oVtp.js +25 -0
  1364. package/lib/shell-HUv9oVtp.js.map +1 -0
  1365. package/lib/swift-B4z6ig1Z.js +25 -0
  1366. package/lib/swift-B4z6ig1Z.js.map +1 -0
  1367. package/lib/toml-Co9mpdct.js +32 -0
  1368. package/lib/toml-Co9mpdct.js.map +1 -0
  1369. package/lib/typescript-C26xdBDC.js +32 -0
  1370. package/lib/typescript-C26xdBDC.js.map +1 -0
  1371. package/lib/ui/Accordion.js +47 -0
  1372. package/lib/ui/Accordion.js.map +1 -0
  1373. package/lib/ui/ActionButton.js +25 -0
  1374. package/lib/ui/ActionButton.js.map +1 -0
  1375. package/lib/ui/Alert.js +67 -0
  1376. package/lib/ui/Alert.js.map +1 -0
  1377. package/lib/ui/AlertDialog.js +114 -0
  1378. package/lib/ui/AlertDialog.js.map +1 -0
  1379. package/lib/ui/AspectRatio.js +6 -0
  1380. package/lib/ui/AspectRatio.js.map +1 -0
  1381. package/lib/ui/Badge.js +42 -0
  1382. package/lib/ui/Badge.js.map +1 -0
  1383. package/lib/ui/Breadcrumb.js +95 -0
  1384. package/lib/ui/Breadcrumb.js.map +1 -0
  1385. package/lib/ui/Button.js +55 -0
  1386. package/lib/ui/Button.js.map +1 -0
  1387. package/lib/ui/ButtonGroup.js +77 -0
  1388. package/lib/ui/ButtonGroup.js.map +1 -0
  1389. package/lib/ui/Callout.js +97 -0
  1390. package/lib/ui/Callout.js.map +1 -0
  1391. package/lib/ui/Card.js +62 -0
  1392. package/lib/ui/Card.js.map +1 -0
  1393. package/lib/ui/Carousel.js +1416 -0
  1394. package/lib/ui/Carousel.js.map +1 -0
  1395. package/lib/ui/Checkbox.js +32 -0
  1396. package/lib/ui/Checkbox.js.map +1 -0
  1397. package/lib/ui/CodeBlock.js +220 -0
  1398. package/lib/ui/CodeBlock.js.map +1 -0
  1399. package/lib/ui/Collapsible.js +35 -0
  1400. package/lib/ui/Collapsible.js.map +1 -0
  1401. package/lib/ui/Command.js +150 -0
  1402. package/lib/ui/Command.js.map +1 -0
  1403. package/lib/ui/Dialog.js +146 -0
  1404. package/lib/ui/Dialog.js.map +1 -0
  1405. package/lib/ui/Drawer.js +17 -0
  1406. package/lib/ui/Drawer.js.map +1 -0
  1407. package/lib/ui/DropdownMenu.js +232 -0
  1408. package/lib/ui/DropdownMenu.js.map +1 -0
  1409. package/lib/ui/EmbeddedCodeBlock.js +84 -0
  1410. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  1411. package/lib/ui/Form.js +95 -0
  1412. package/lib/ui/Form.js.map +1 -0
  1413. package/lib/ui/Frame.js +81 -0
  1414. package/lib/ui/Frame.js.map +1 -0
  1415. package/lib/ui/HoverCard.js +24 -0
  1416. package/lib/ui/HoverCard.js.map +1 -0
  1417. package/lib/ui/Input.js +22 -0
  1418. package/lib/ui/Input.js.map +1 -0
  1419. package/lib/ui/Item.js +188 -0
  1420. package/lib/ui/Item.js.map +1 -0
  1421. package/lib/ui/Kbd.js +32 -0
  1422. package/lib/ui/Kbd.js.map +1 -0
  1423. package/lib/ui/Label.js +20 -0
  1424. package/lib/ui/Label.js.map +1 -0
  1425. package/lib/ui/NativeSelect.js +57 -0
  1426. package/lib/ui/NativeSelect.js.map +1 -0
  1427. package/lib/ui/Pagination.js +105 -0
  1428. package/lib/ui/Pagination.js.map +1 -0
  1429. package/lib/ui/Popover.js +24 -0
  1430. package/lib/ui/Popover.js.map +1 -0
  1431. package/lib/ui/Progress.js +27 -0
  1432. package/lib/ui/Progress.js.map +1 -0
  1433. package/lib/ui/RadioGroup.js +32 -0
  1434. package/lib/ui/RadioGroup.js.map +1 -0
  1435. package/lib/ui/ReactComponentDoc.js +28 -0
  1436. package/lib/ui/ReactComponentDoc.js.map +1 -0
  1437. package/lib/ui/ScrollArea.js +39 -0
  1438. package/lib/ui/ScrollArea.js.map +1 -0
  1439. package/lib/ui/Secret.js +106 -0
  1440. package/lib/ui/Secret.js.map +1 -0
  1441. package/lib/ui/Select.js +172 -0
  1442. package/lib/ui/Select.js.map +1 -0
  1443. package/lib/ui/Separator.js +27 -0
  1444. package/lib/ui/Separator.js.map +1 -0
  1445. package/lib/ui/Skeleton.js +18 -0
  1446. package/lib/ui/Skeleton.js.map +1 -0
  1447. package/lib/ui/Slider.js +24 -0
  1448. package/lib/ui/Slider.js.map +1 -0
  1449. package/lib/ui/Stepper.js +6 -0
  1450. package/lib/ui/Stepper.js.map +1 -0
  1451. package/lib/ui/Switch.js +28 -0
  1452. package/lib/ui/Switch.js.map +1 -0
  1453. package/lib/ui/SyntaxHighlight.js +11 -0
  1454. package/lib/ui/SyntaxHighlight.js.map +1 -0
  1455. package/lib/ui/Tabs.js +47 -0
  1456. package/lib/ui/Tabs.js.map +1 -0
  1457. package/lib/ui/Textarea.js +21 -0
  1458. package/lib/ui/Textarea.js.map +1 -0
  1459. package/lib/ui/Toggle.js +38 -0
  1460. package/lib/ui/Toggle.js.map +1 -0
  1461. package/lib/ui/ToggleGroup.js +42 -0
  1462. package/lib/ui/ToggleGroup.js.map +1 -0
  1463. package/lib/ui/Tooltip.js +58 -0
  1464. package/lib/ui/Tooltip.js.map +1 -0
  1465. package/lib/ui/Value.js +39 -0
  1466. package/lib/ui/Value.js.map +1 -0
  1467. package/lib/ui/util.js +6 -0
  1468. package/lib/ui/util.js.map +1 -0
  1469. package/lib/useCopyToClipboard-B_085nfO.js +14 -0
  1470. package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
  1471. package/lib/useLatest-hmRS46UF.js +11 -0
  1472. package/lib/useLatest-hmRS46UF.js.map +1 -0
  1473. package/lib/xml-BQOOC04j.js +25 -0
  1474. package/lib/xml-BQOOC04j.js.map +1 -0
  1475. package/lib/yaml-BGsJItKv.js +32 -0
  1476. package/lib/yaml-BGsJItKv.js.map +1 -0
  1477. package/lib/zig-CUV2sTct.js +35 -0
  1478. package/lib/zig-CUV2sTct.js.map +1 -0
  1479. package/lib/zudoku.__internal.js +3114 -0
  1480. package/lib/zudoku.__internal.js.map +1 -0
  1481. package/lib/zudoku.auth-auth0.js +32 -29
  1482. package/lib/zudoku.auth-auth0.js.map +1 -1
  1483. package/lib/zudoku.auth-azureb2c.js +136 -0
  1484. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  1485. package/lib/zudoku.auth-clerk.js +112 -61
  1486. package/lib/zudoku.auth-clerk.js.map +1 -1
  1487. package/lib/zudoku.auth-firebase.js +10 -0
  1488. package/lib/zudoku.auth-firebase.js.map +1 -0
  1489. package/lib/zudoku.auth-openid.js +605 -632
  1490. package/lib/zudoku.auth-openid.js.map +1 -1
  1491. package/lib/zudoku.auth-supabase.js +154 -0
  1492. package/lib/zudoku.auth-supabase.js.map +1 -0
  1493. package/lib/zudoku.components.js +26 -3445
  1494. package/lib/zudoku.components.js.map +1 -1
  1495. package/lib/zudoku.hooks.js +14 -0
  1496. package/lib/zudoku.hooks.js.map +1 -0
  1497. package/lib/zudoku.icons.js +10 -0
  1498. package/lib/zudoku.icons.js.map +1 -1
  1499. package/lib/zudoku.mermaid.js +10 -0
  1500. package/lib/zudoku.mermaid.js.map +1 -0
  1501. package/lib/zudoku.plugin-api-catalog.js +123 -0
  1502. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  1503. package/lib/zudoku.plugin-api-keys.js +719 -212
  1504. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1505. package/lib/zudoku.plugin-custom-pages.js +15 -17
  1506. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1507. package/lib/zudoku.plugin-markdown.js +22 -28
  1508. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1509. package/lib/zudoku.plugin-openapi.js +7 -10
  1510. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1511. package/lib/zudoku.plugin-redirect.js +2 -2
  1512. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1513. package/lib/zudoku.plugin-search-inkeep.js +61 -36
  1514. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1515. package/lib/zudoku.plugin-search-pagefind.js +282 -0
  1516. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1517. package/lib/zudoku.plugins.js +15 -0
  1518. package/lib/zudoku.plugins.js.map +1 -0
  1519. package/lib/zudoku.router.js +2507 -0
  1520. package/lib/zudoku.router.js.map +1 -0
  1521. package/package.json +226 -94
  1522. package/src/app/ZuploBuildConfig.ts +33 -0
  1523. package/src/app/defaultTheme.css +73 -0
  1524. package/src/app/demo-cdn.html +31 -31
  1525. package/src/app/demo.html +1 -1
  1526. package/src/app/demo.tsx +26 -12
  1527. package/src/app/entry.client.tsx +75 -8
  1528. package/src/app/entry.server.tsx +97 -68
  1529. package/src/app/env.ts +43 -0
  1530. package/src/app/font.geist.css +73 -0
  1531. package/src/app/main.css +232 -133
  1532. package/src/app/main.tsx +96 -74
  1533. package/src/app/sentry.ts +24 -0
  1534. package/src/app/standalone.tsx +15 -13
  1535. package/src/lib/MissingIcon.tsx +22 -0
  1536. package/src/lib/assets/language-icons/c.tsx +31 -0
  1537. package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
  1538. package/src/lib/assets/language-icons/cpp.tsx +35 -0
  1539. package/src/lib/assets/language-icons/csharp.tsx +35 -0
  1540. package/src/lib/assets/language-icons/css.tsx +36 -0
  1541. package/src/lib/assets/language-icons/dart.tsx +39 -0
  1542. package/src/lib/assets/language-icons/elixir.tsx +19 -0
  1543. package/src/lib/assets/language-icons/go.tsx +19 -0
  1544. package/src/lib/assets/language-icons/graphql.tsx +19 -0
  1545. package/src/lib/assets/language-icons/html.tsx +24 -0
  1546. package/src/lib/assets/language-icons/java.tsx +35 -0
  1547. package/src/lib/assets/language-icons/javascript.tsx +11 -0
  1548. package/src/lib/assets/language-icons/json.tsx +19 -0
  1549. package/src/lib/assets/language-icons/kotlin.tsx +30 -0
  1550. package/src/lib/assets/language-icons/markdown.tsx +19 -0
  1551. package/src/lib/assets/language-icons/mdx.tsx +23 -0
  1552. package/src/lib/assets/language-icons/objectivec.tsx +23 -0
  1553. package/src/lib/assets/language-icons/ocaml.tsx +34 -0
  1554. package/src/lib/assets/language-icons/php.tsx +19 -0
  1555. package/src/lib/assets/language-icons/powershell.tsx +27 -0
  1556. package/src/lib/assets/language-icons/python.tsx +23 -0
  1557. package/src/lib/assets/language-icons/react.tsx +21 -0
  1558. package/src/lib/assets/language-icons/ruby.tsx +19 -0
  1559. package/src/lib/assets/language-icons/rust.tsx +19 -0
  1560. package/src/lib/assets/language-icons/scala.tsx +19 -0
  1561. package/src/lib/assets/language-icons/shell.tsx +19 -0
  1562. package/src/lib/assets/language-icons/swift.tsx +19 -0
  1563. package/src/lib/assets/language-icons/toml.tsx +23 -0
  1564. package/src/lib/assets/language-icons/typescript.tsx +23 -0
  1565. package/src/lib/assets/language-icons/xml.tsx +19 -0
  1566. package/src/lib/assets/language-icons/yaml.tsx +23 -0
  1567. package/src/lib/assets/language-icons/zig.tsx +32 -0
  1568. package/src/lib/auth/issuer.test.ts +121 -0
  1569. package/src/lib/auth/issuer.ts +44 -0
  1570. package/src/lib/authentication/AuthenticationPlugin.tsx +6 -3
  1571. package/src/lib/authentication/authentication.ts +35 -12
  1572. package/src/lib/authentication/components/CallbackHandler.tsx +30 -13
  1573. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  1574. package/src/lib/authentication/components/SignIn.tsx +38 -7
  1575. package/src/lib/authentication/components/SignOut.tsx +8 -6
  1576. package/src/lib/authentication/components/SignUp.tsx +39 -5
  1577. package/src/lib/authentication/errors.ts +27 -13
  1578. package/src/lib/authentication/hook.ts +45 -7
  1579. package/src/lib/authentication/providers/auth0.tsx +46 -20
  1580. package/src/lib/authentication/providers/azureb2c.tsx +208 -0
  1581. package/src/lib/authentication/providers/clerk.tsx +138 -54
  1582. package/src/lib/authentication/providers/firebase.tsx +376 -0
  1583. package/src/lib/authentication/providers/openid.tsx +175 -89
  1584. package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
  1585. package/src/lib/authentication/providers/supabase.tsx +162 -0
  1586. package/src/lib/authentication/state.ts +65 -24
  1587. package/src/lib/authentication/ui/EmailVerificationUi.tsx +129 -0
  1588. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +477 -0
  1589. package/src/lib/authentication/ui/icons/Apple.tsx +10 -0
  1590. package/src/lib/authentication/ui/icons/Facebook.tsx +15 -0
  1591. package/src/lib/authentication/ui/icons/Github.tsx +16 -0
  1592. package/src/lib/authentication/ui/icons/Google.tsx +16 -0
  1593. package/src/lib/authentication/ui/icons/Microsoft.tsx +12 -0
  1594. package/src/lib/authentication/ui/icons/X.tsx +10 -0
  1595. package/src/lib/authentication/use-broadcast/LICENSE.md +18 -0
  1596. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1597. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1598. package/src/lib/authentication/utils/relativeRedirectUrl.ts +12 -0
  1599. package/src/lib/components/AnchorLink.tsx +13 -8
  1600. package/src/lib/components/Autocomplete.tsx +123 -0
  1601. package/src/lib/components/Banner.tsx +3 -3
  1602. package/src/lib/components/Bootstrap.tsx +44 -16
  1603. package/src/lib/components/BuildCheck.tsx +88 -0
  1604. package/src/lib/components/CategoryHeading.tsx +4 -1
  1605. package/src/lib/components/ClientOnly.tsx +6 -3
  1606. package/src/lib/components/DeveloperHint.tsx +6 -1
  1607. package/src/lib/components/ErrorPage.tsx +3 -3
  1608. package/src/lib/components/Footer.tsx +136 -0
  1609. package/src/lib/components/Framed.tsx +51 -0
  1610. package/src/lib/components/Header.tsx +122 -68
  1611. package/src/lib/components/Heading.tsx +22 -19
  1612. package/src/lib/components/InlineCode.tsx +13 -16
  1613. package/src/lib/components/LanguageIcon.tsx +181 -0
  1614. package/src/lib/components/Layout.tsx +28 -70
  1615. package/src/lib/components/Main.tsx +51 -0
  1616. package/src/lib/components/Markdown.tsx +45 -30
  1617. package/src/lib/components/Mermaid.tsx +68 -0
  1618. package/src/lib/components/Meta.tsx +45 -0
  1619. package/src/lib/components/MobileTopNavigation.tsx +94 -32
  1620. package/src/lib/components/NotFoundPage.tsx +7 -6
  1621. package/src/lib/components/PageProgress.tsx +28 -0
  1622. package/src/lib/components/PagefindSearchMeta.tsx +14 -0
  1623. package/src/lib/components/Pagination.tsx +45 -0
  1624. package/src/lib/components/PathRenderer.tsx +61 -0
  1625. package/src/lib/components/Search.tsx +19 -8
  1626. package/src/lib/components/Slot.test.tsx +465 -0
  1627. package/src/lib/components/Slot.tsx +64 -0
  1628. package/src/lib/components/StatusPage.tsx +96 -0
  1629. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1630. package/src/lib/components/TopNavigation.tsx +103 -39
  1631. package/src/lib/components/Typography.tsx +14 -0
  1632. package/src/lib/components/Zudoku.tsx +116 -0
  1633. package/src/lib/components/cache.ts +27 -0
  1634. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1635. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  1636. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1637. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1638. package/src/lib/components/context/ViewportAnchorContext.tsx +35 -37
  1639. package/src/lib/components/context/ZudokuContext.ts +87 -29
  1640. package/src/lib/components/context/ZudokuProvider.tsx +4 -3
  1641. package/src/lib/components/index.ts +31 -23
  1642. package/src/lib/components/navigation/Navigation.tsx +50 -0
  1643. package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
  1644. package/src/lib/components/navigation/NavigationCategory.tsx +153 -0
  1645. package/src/lib/components/navigation/NavigationItem.tsx +148 -0
  1646. package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
  1647. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1648. package/src/lib/components/navigation/Toc.tsx +126 -0
  1649. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1650. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1651. package/src/lib/components/navigation/utils.ts +85 -50
  1652. package/src/lib/core/RouteGuard.tsx +122 -0
  1653. package/src/lib/core/ZudokuContext.ts +249 -0
  1654. package/src/lib/core/__internal.tsx +30 -0
  1655. package/src/lib/core/plugins.ts +56 -23
  1656. package/src/lib/core/router.ts +1 -0
  1657. package/src/lib/errors/ErrorAlert.tsx +18 -19
  1658. package/src/lib/errors/ErrorMessage.tsx +38 -0
  1659. package/src/lib/errors/RouterError.tsx +8 -3
  1660. package/src/lib/errors/TopLevelError.tsx +2 -4
  1661. package/src/lib/hooks/index.ts +16 -0
  1662. package/src/lib/hooks/useEvent.test.tsx +151 -0
  1663. package/src/lib/hooks/useEvent.ts +41 -0
  1664. package/src/lib/hooks/useHotkey.ts +70 -0
  1665. package/src/lib/icons.ts +1 -0
  1666. package/src/lib/oas/graphql/circular.ts +91 -0
  1667. package/src/lib/oas/graphql/index.ts +338 -104
  1668. package/src/lib/oas/parser/dereference/index.ts +12 -5
  1669. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  1670. package/src/lib/oas/parser/index.ts +23 -32
  1671. package/src/lib/oas/parser/upgrade/index.ts +105 -39
  1672. package/src/lib/plugins/api-catalog/Catalog.tsx +80 -0
  1673. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1674. package/src/lib/plugins/api-keys/CreateApiKey.tsx +79 -49
  1675. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
  1676. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +12 -8
  1677. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +45 -166
  1678. package/src/lib/plugins/api-keys/index.tsx +205 -77
  1679. package/src/lib/plugins/api-keys/settings/ApiKeyItem.tsx +342 -0
  1680. package/src/lib/plugins/api-keys/settings/ApiKeyList.tsx +67 -0
  1681. package/src/lib/plugins/api-keys/settings/RevealApiKey.tsx +124 -0
  1682. package/src/lib/plugins/custom-pages/index.tsx +25 -17
  1683. package/src/lib/plugins/markdown/MdxPage.tsx +234 -60
  1684. package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
  1685. package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
  1686. package/src/lib/plugins/markdown/index.tsx +39 -14
  1687. package/src/lib/plugins/openapi/CollapsibleCode.tsx +88 -0
  1688. package/src/lib/plugins/openapi/ColorizedParam.tsx +51 -23
  1689. package/src/lib/plugins/openapi/DownloadSchemaButton.tsx +115 -0
  1690. package/src/lib/plugins/openapi/Endpoint.tsx +33 -43
  1691. package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -0
  1692. package/src/lib/plugins/openapi/MCPEndpoint.tsx +273 -0
  1693. package/src/lib/plugins/openapi/OasProvider.tsx +65 -0
  1694. package/src/lib/plugins/openapi/OperationList.tsx +282 -74
  1695. package/src/lib/plugins/openapi/OperationListItem.tsx +147 -91
  1696. package/src/lib/plugins/openapi/ParamInfos.tsx +92 -0
  1697. package/src/lib/plugins/openapi/ParameterList.tsx +43 -27
  1698. package/src/lib/plugins/openapi/ParameterListItem.tsx +137 -39
  1699. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +25 -5
  1700. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +52 -28
  1701. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +109 -64
  1702. package/src/lib/plugins/openapi/SchemaList.tsx +161 -0
  1703. package/src/lib/plugins/openapi/Sidecar.tsx +246 -182
  1704. package/src/lib/plugins/openapi/SidecarBox.tsx +14 -4
  1705. package/src/lib/plugins/openapi/SidecarExamples.tsx +174 -0
  1706. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1707. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  1708. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1709. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1710. package/src/lib/plugins/openapi/client/createServer.ts +9 -4
  1711. package/src/lib/plugins/openapi/client/useCreateQuery.ts +46 -0
  1712. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1713. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1714. package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
  1715. package/src/lib/plugins/openapi/components/ResponseContent.tsx +114 -0
  1716. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1717. package/src/lib/plugins/openapi/context.tsx +2 -2
  1718. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +12 -19
  1719. package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
  1720. package/src/lib/plugins/openapi/graphql/graphql.ts +411 -683
  1721. package/src/lib/plugins/openapi/index.tsx +173 -156
  1722. package/src/lib/plugins/openapi/interfaces.ts +84 -5
  1723. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +271 -0
  1724. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +51 -0
  1725. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +60 -0
  1726. package/src/lib/plugins/openapi/playground/Headers.tsx +173 -58
  1727. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -0
  1728. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -0
  1729. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +45 -0
  1730. package/src/lib/plugins/openapi/playground/PathParams.tsx +36 -70
  1731. package/src/lib/plugins/openapi/playground/Playground.tsx +459 -289
  1732. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +24 -30
  1733. package/src/lib/plugins/openapi/playground/QueryParams.tsx +102 -112
  1734. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +70 -0
  1735. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1736. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1737. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1738. package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -0
  1739. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1740. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1741. package/src/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.tsx +872 -0
  1742. package/src/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.ts +349 -0
  1743. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1744. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +117 -0
  1745. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +339 -0
  1746. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +102 -0
  1747. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1748. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1749. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +23 -0
  1750. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +223 -0
  1751. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1752. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +183 -0
  1753. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1754. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1755. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1756. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1757. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1758. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +175 -0
  1759. package/src/lib/plugins/openapi/schema/SchemaView.tsx +156 -142
  1760. package/src/lib/plugins/openapi/schema/UnionView.tsx +132 -0
  1761. package/src/lib/plugins/openapi/schema/union-helpers.ts +123 -0
  1762. package/src/lib/plugins/openapi/schema/utils.ts +45 -14
  1763. package/src/lib/plugins/openapi/state.ts +36 -0
  1764. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +135 -0
  1765. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +39 -0
  1766. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -45
  1767. package/src/lib/plugins/openapi/util/getRoutes.tsx +230 -0
  1768. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1769. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1770. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1771. package/src/lib/plugins/redirect/index.tsx +6 -10
  1772. package/src/lib/plugins/search-inkeep/index.tsx +83 -32
  1773. package/src/lib/plugins/search-inkeep/inkeep.ts +15 -23
  1774. package/src/lib/plugins/search-pagefind/IndexingDialog.tsx +163 -0
  1775. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +202 -0
  1776. package/src/lib/plugins/search-pagefind/ResultList.tsx +118 -0
  1777. package/src/lib/plugins/search-pagefind/get-results.tsx +74 -0
  1778. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1779. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1780. package/src/lib/shiki.ts +170 -0
  1781. package/src/lib/ui/Accordion.tsx +56 -0
  1782. package/src/lib/ui/ActionButton.tsx +30 -0
  1783. package/src/lib/ui/Alert.tsx +65 -0
  1784. package/src/lib/ui/AlertDialog.tsx +139 -0
  1785. package/src/lib/ui/AspectRatio.tsx +5 -0
  1786. package/src/lib/ui/Badge.tsx +46 -0
  1787. package/src/lib/ui/Breadcrumb.tsx +116 -0
  1788. package/src/lib/ui/Button.tsx +17 -10
  1789. package/src/lib/ui/ButtonGroup.tsx +82 -0
  1790. package/src/lib/ui/Callout.tsx +40 -15
  1791. package/src/lib/ui/Card.tsx +1 -1
  1792. package/src/lib/ui/Carousel.tsx +260 -0
  1793. package/src/lib/ui/Checkbox.tsx +28 -0
  1794. package/src/lib/ui/CodeBlock.tsx +79 -0
  1795. package/src/lib/ui/Collapsible.tsx +31 -0
  1796. package/src/lib/ui/Command.tsx +191 -0
  1797. package/src/lib/ui/Dialog.tsx +138 -0
  1798. package/src/lib/ui/DropdownMenu.tsx +226 -170
  1799. package/src/lib/ui/EmbeddedCodeBlock.tsx +99 -0
  1800. package/src/lib/ui/Form.tsx +177 -0
  1801. package/src/lib/ui/Frame.tsx +81 -0
  1802. package/src/lib/ui/HoverCard.tsx +27 -0
  1803. package/src/lib/ui/Input.tsx +2 -3
  1804. package/src/lib/ui/Item.tsx +192 -0
  1805. package/src/lib/ui/Kbd.tsx +28 -0
  1806. package/src/lib/ui/Label.tsx +24 -0
  1807. package/src/lib/ui/NativeSelect.tsx +47 -0
  1808. package/src/lib/ui/Pagination.tsx +116 -0
  1809. package/src/lib/ui/Popover.tsx +29 -0
  1810. package/src/lib/ui/Progress.tsx +26 -0
  1811. package/src/lib/ui/RadioGroup.tsx +42 -0
  1812. package/src/lib/ui/ReactComponentDoc.tsx +68 -0
  1813. package/src/lib/ui/ScrollArea.tsx +46 -0
  1814. package/src/lib/ui/Secret.tsx +123 -0
  1815. package/src/lib/ui/Select.tsx +184 -0
  1816. package/src/lib/ui/Separator.tsx +25 -0
  1817. package/src/lib/ui/Skeleton.tsx +15 -0
  1818. package/src/lib/ui/Slider.tsx +26 -0
  1819. package/src/lib/ui/Stepper.tsx +8 -0
  1820. package/src/lib/ui/Switch.tsx +27 -0
  1821. package/src/lib/ui/SyntaxHighlight.tsx +40 -0
  1822. package/src/lib/ui/Tabs.tsx +2 -2
  1823. package/src/lib/ui/Textarea.tsx +23 -0
  1824. package/src/lib/ui/Toggle.tsx +43 -0
  1825. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1826. package/src/lib/ui/Tooltip.tsx +65 -0
  1827. package/src/lib/ui/Value.tsx +42 -0
  1828. package/src/lib/ui/util.tsx +3 -0
  1829. package/src/lib/util/MdxComponents.tsx +60 -26
  1830. package/src/lib/util/cn.ts +1 -1
  1831. package/src/lib/util/createVariantComponent.tsx +33 -7
  1832. package/src/lib/util/detectOS.ts +9 -0
  1833. package/src/lib/util/ensureArray.ts +3 -0
  1834. package/src/lib/util/flattenAllOf.test.ts +689 -0
  1835. package/src/lib/util/flattenAllOf.ts +122 -0
  1836. package/src/lib/util/groupBy.ts +1 -0
  1837. package/src/lib/util/humanFileSize.test.ts +24 -0
  1838. package/src/lib/util/humanFileSize.ts +15 -0
  1839. package/src/lib/util/invariant.ts +10 -6
  1840. package/src/lib/util/joinPath.tsx +3 -0
  1841. package/src/lib/util/joinUrl.test.ts +62 -0
  1842. package/src/lib/util/joinUrl.ts +57 -0
  1843. package/src/lib/util/os.ts +18 -0
  1844. package/src/lib/util/pastellize.ts +4 -4
  1845. package/src/lib/util/readFrontmatter.ts +13 -0
  1846. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1847. package/src/lib/util/syncZustandState.ts +22 -0
  1848. package/src/lib/util/traverse.ts +70 -0
  1849. package/src/lib/util/types.ts +7 -0
  1850. package/src/lib/util/url.test.ts +51 -0
  1851. package/src/lib/util/url.ts +18 -0
  1852. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1853. package/src/lib/util/useExposedProps.tsx +20 -3
  1854. package/src/lib/util/useIsomorphicLayoutEffect.ts +6 -0
  1855. package/src/lib/util/useLatest.ts +18 -0
  1856. package/src/lib/util/useOnScreen.ts +34 -0
  1857. package/src/lib/util/useScrollToAnchor.ts +51 -40
  1858. package/src/lib/util/useScrollToTop.ts +9 -4
  1859. package/src/shiki/langs/abap.js +1 -0
  1860. package/src/shiki/langs/actionscript-3.js +1 -0
  1861. package/src/shiki/langs/ada.js +1 -0
  1862. package/src/shiki/langs/angular-expression.js +1 -0
  1863. package/src/shiki/langs/angular-html.js +1 -0
  1864. package/src/shiki/langs/angular-inline-style.js +1 -0
  1865. package/src/shiki/langs/angular-inline-template.js +1 -0
  1866. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1867. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1868. package/src/shiki/langs/angular-template.js +1 -0
  1869. package/src/shiki/langs/angular-ts.js +1 -0
  1870. package/src/shiki/langs/apache.js +1 -0
  1871. package/src/shiki/langs/apex.js +1 -0
  1872. package/src/shiki/langs/apl.js +1 -0
  1873. package/src/shiki/langs/applescript.js +1 -0
  1874. package/src/shiki/langs/ara.js +1 -0
  1875. package/src/shiki/langs/asciidoc.js +1 -0
  1876. package/src/shiki/langs/asm.js +1 -0
  1877. package/src/shiki/langs/astro.js +1 -0
  1878. package/src/shiki/langs/awk.js +1 -0
  1879. package/src/shiki/langs/ballerina.js +1 -0
  1880. package/src/shiki/langs/bat.js +1 -0
  1881. package/src/shiki/langs/beancount.js +1 -0
  1882. package/src/shiki/langs/berry.js +1 -0
  1883. package/src/shiki/langs/bibtex.js +1 -0
  1884. package/src/shiki/langs/bicep.js +1 -0
  1885. package/src/shiki/langs/blade.js +1 -0
  1886. package/src/shiki/langs/bsl.js +1 -0
  1887. package/src/shiki/langs/c.js +1 -0
  1888. package/src/shiki/langs/cadence.js +1 -0
  1889. package/src/shiki/langs/cairo.js +1 -0
  1890. package/src/shiki/langs/clarity.js +1 -0
  1891. package/src/shiki/langs/clojure.js +1 -0
  1892. package/src/shiki/langs/cmake.js +1 -0
  1893. package/src/shiki/langs/cobol.js +1 -0
  1894. package/src/shiki/langs/codeowners.js +1 -0
  1895. package/src/shiki/langs/codeql.js +1 -0
  1896. package/src/shiki/langs/coffee.js +1 -0
  1897. package/src/shiki/langs/common-lisp.js +1 -0
  1898. package/src/shiki/langs/coq.js +1 -0
  1899. package/src/shiki/langs/cpp-macro.js +1 -0
  1900. package/src/shiki/langs/cpp.js +1 -0
  1901. package/src/shiki/langs/crystal.js +1 -0
  1902. package/src/shiki/langs/csharp.js +1 -0
  1903. package/src/shiki/langs/css.js +1 -0
  1904. package/src/shiki/langs/csv.js +1 -0
  1905. package/src/shiki/langs/cue.js +1 -0
  1906. package/src/shiki/langs/cypher.js +1 -0
  1907. package/src/shiki/langs/d.js +1 -0
  1908. package/src/shiki/langs/dart.js +1 -0
  1909. package/src/shiki/langs/dax.js +1 -0
  1910. package/src/shiki/langs/desktop.js +1 -0
  1911. package/src/shiki/langs/diff.js +1 -0
  1912. package/src/shiki/langs/docker.js +1 -0
  1913. package/src/shiki/langs/dotenv.js +1 -0
  1914. package/src/shiki/langs/dream-maker.js +1 -0
  1915. package/src/shiki/langs/edge.js +1 -0
  1916. package/src/shiki/langs/elixir.js +1 -0
  1917. package/src/shiki/langs/elm.js +1 -0
  1918. package/src/shiki/langs/emacs-lisp.js +1 -0
  1919. package/src/shiki/langs/erb.js +1 -0
  1920. package/src/shiki/langs/erlang.js +1 -0
  1921. package/src/shiki/langs/es-tag-css.js +1 -0
  1922. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1923. package/src/shiki/langs/es-tag-html.js +1 -0
  1924. package/src/shiki/langs/es-tag-sql.js +1 -0
  1925. package/src/shiki/langs/es-tag-xml.js +1 -0
  1926. package/src/shiki/langs/fennel.js +1 -0
  1927. package/src/shiki/langs/fish.js +1 -0
  1928. package/src/shiki/langs/fluent.js +1 -0
  1929. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1930. package/src/shiki/langs/fortran-free-form.js +1 -0
  1931. package/src/shiki/langs/fsharp.js +1 -0
  1932. package/src/shiki/langs/gdresource.js +1 -0
  1933. package/src/shiki/langs/gdscript.js +1 -0
  1934. package/src/shiki/langs/gdshader.js +1 -0
  1935. package/src/shiki/langs/genie.js +1 -0
  1936. package/src/shiki/langs/gherkin.js +1 -0
  1937. package/src/shiki/langs/git-commit.js +1 -0
  1938. package/src/shiki/langs/git-rebase.js +1 -0
  1939. package/src/shiki/langs/gleam.js +1 -0
  1940. package/src/shiki/langs/glimmer-js.js +1 -0
  1941. package/src/shiki/langs/glimmer-ts.js +1 -0
  1942. package/src/shiki/langs/glsl.js +1 -0
  1943. package/src/shiki/langs/gnuplot.js +1 -0
  1944. package/src/shiki/langs/go.js +1 -0
  1945. package/src/shiki/langs/graphql.js +1 -0
  1946. package/src/shiki/langs/groovy.js +1 -0
  1947. package/src/shiki/langs/hack.js +1 -0
  1948. package/src/shiki/langs/haml.js +1 -0
  1949. package/src/shiki/langs/handlebars.js +1 -0
  1950. package/src/shiki/langs/haskell.js +1 -0
  1951. package/src/shiki/langs/haxe.js +1 -0
  1952. package/src/shiki/langs/hcl.js +1 -0
  1953. package/src/shiki/langs/hjson.js +1 -0
  1954. package/src/shiki/langs/hlsl.js +1 -0
  1955. package/src/shiki/langs/html-derivative.js +1 -0
  1956. package/src/shiki/langs/html.js +1 -0
  1957. package/src/shiki/langs/http.js +1 -0
  1958. package/src/shiki/langs/hurl.js +1 -0
  1959. package/src/shiki/langs/hxml.js +1 -0
  1960. package/src/shiki/langs/hy.js +1 -0
  1961. package/src/shiki/langs/imba.js +1 -0
  1962. package/src/shiki/langs/ini.js +1 -0
  1963. package/src/shiki/langs/java.js +1 -0
  1964. package/src/shiki/langs/javascript.js +1 -0
  1965. package/src/shiki/langs/jinja-html.js +1 -0
  1966. package/src/shiki/langs/jinja.js +1 -0
  1967. package/src/shiki/langs/jison.js +1 -0
  1968. package/src/shiki/langs/json.js +1 -0
  1969. package/src/shiki/langs/json5.js +1 -0
  1970. package/src/shiki/langs/jsonc.js +1 -0
  1971. package/src/shiki/langs/jsonl.js +1 -0
  1972. package/src/shiki/langs/jsonnet.js +1 -0
  1973. package/src/shiki/langs/jssm.js +1 -0
  1974. package/src/shiki/langs/jsx.js +1 -0
  1975. package/src/shiki/langs/julia.js +1 -0
  1976. package/src/shiki/langs/kdl.js +1 -0
  1977. package/src/shiki/langs/kotlin.js +1 -0
  1978. package/src/shiki/langs/kusto.js +1 -0
  1979. package/src/shiki/langs/latex.js +1 -0
  1980. package/src/shiki/langs/lean.js +1 -0
  1981. package/src/shiki/langs/less.js +1 -0
  1982. package/src/shiki/langs/liquid.js +1 -0
  1983. package/src/shiki/langs/llvm.js +1 -0
  1984. package/src/shiki/langs/log.js +1 -0
  1985. package/src/shiki/langs/logo.js +1 -0
  1986. package/src/shiki/langs/lua.js +1 -0
  1987. package/src/shiki/langs/luau.js +1 -0
  1988. package/src/shiki/langs/make.js +1 -0
  1989. package/src/shiki/langs/markdown-nix.js +1 -0
  1990. package/src/shiki/langs/markdown-vue.js +1 -0
  1991. package/src/shiki/langs/markdown.js +1 -0
  1992. package/src/shiki/langs/marko.js +1 -0
  1993. package/src/shiki/langs/matlab.js +1 -0
  1994. package/src/shiki/langs/mdc.js +1 -0
  1995. package/src/shiki/langs/mdx.js +1 -0
  1996. package/src/shiki/langs/mermaid.js +1 -0
  1997. package/src/shiki/langs/mipsasm.js +1 -0
  1998. package/src/shiki/langs/mojo.js +1 -0
  1999. package/src/shiki/langs/move.js +1 -0
  2000. package/src/shiki/langs/narrat.js +1 -0
  2001. package/src/shiki/langs/nextflow.js +1 -0
  2002. package/src/shiki/langs/nginx.js +1 -0
  2003. package/src/shiki/langs/nim.js +1 -0
  2004. package/src/shiki/langs/nix.js +1 -0
  2005. package/src/shiki/langs/nushell.js +1 -0
  2006. package/src/shiki/langs/objective-c.js +1 -0
  2007. package/src/shiki/langs/objective-cpp.js +1 -0
  2008. package/src/shiki/langs/ocaml.js +1 -0
  2009. package/src/shiki/langs/openscad.js +1 -0
  2010. package/src/shiki/langs/pascal.js +1 -0
  2011. package/src/shiki/langs/perl.js +1 -0
  2012. package/src/shiki/langs/php.js +1 -0
  2013. package/src/shiki/langs/pkl.js +1 -0
  2014. package/src/shiki/langs/plsql.js +1 -0
  2015. package/src/shiki/langs/po.js +1 -0
  2016. package/src/shiki/langs/polar.js +1 -0
  2017. package/src/shiki/langs/postcss.js +1 -0
  2018. package/src/shiki/langs/powerquery.js +1 -0
  2019. package/src/shiki/langs/powershell.js +1 -0
  2020. package/src/shiki/langs/prisma.js +1 -0
  2021. package/src/shiki/langs/prolog.js +1 -0
  2022. package/src/shiki/langs/proto.js +1 -0
  2023. package/src/shiki/langs/pug.js +1 -0
  2024. package/src/shiki/langs/puppet.js +1 -0
  2025. package/src/shiki/langs/purescript.js +1 -0
  2026. package/src/shiki/langs/python.js +1 -0
  2027. package/src/shiki/langs/qml.js +1 -0
  2028. package/src/shiki/langs/qmldir.js +1 -0
  2029. package/src/shiki/langs/qss.js +1 -0
  2030. package/src/shiki/langs/r.js +1 -0
  2031. package/src/shiki/langs/racket.js +1 -0
  2032. package/src/shiki/langs/raku.js +1 -0
  2033. package/src/shiki/langs/razor.js +1 -0
  2034. package/src/shiki/langs/reg.js +1 -0
  2035. package/src/shiki/langs/regexp.js +1 -0
  2036. package/src/shiki/langs/rel.js +1 -0
  2037. package/src/shiki/langs/riscv.js +1 -0
  2038. package/src/shiki/langs/rosmsg.js +1 -0
  2039. package/src/shiki/langs/rst.js +1 -0
  2040. package/src/shiki/langs/ruby.js +1 -0
  2041. package/src/shiki/langs/rust.js +1 -0
  2042. package/src/shiki/langs/sas.js +1 -0
  2043. package/src/shiki/langs/sass.js +1 -0
  2044. package/src/shiki/langs/scala.js +1 -0
  2045. package/src/shiki/langs/scheme.js +1 -0
  2046. package/src/shiki/langs/scss.js +1 -0
  2047. package/src/shiki/langs/sdbl.js +1 -0
  2048. package/src/shiki/langs/shaderlab.js +1 -0
  2049. package/src/shiki/langs/shellscript.js +1 -0
  2050. package/src/shiki/langs/shellsession.js +1 -0
  2051. package/src/shiki/langs/smalltalk.js +1 -0
  2052. package/src/shiki/langs/solidity.js +1 -0
  2053. package/src/shiki/langs/soy.js +1 -0
  2054. package/src/shiki/langs/sparql.js +1 -0
  2055. package/src/shiki/langs/splunk.js +1 -0
  2056. package/src/shiki/langs/sql.js +1 -0
  2057. package/src/shiki/langs/ssh-config.js +1 -0
  2058. package/src/shiki/langs/stata.js +1 -0
  2059. package/src/shiki/langs/stylus.js +1 -0
  2060. package/src/shiki/langs/svelte.js +1 -0
  2061. package/src/shiki/langs/swift.js +1 -0
  2062. package/src/shiki/langs/system-verilog.js +1 -0
  2063. package/src/shiki/langs/systemd.js +1 -0
  2064. package/src/shiki/langs/talonscript.js +1 -0
  2065. package/src/shiki/langs/tasl.js +1 -0
  2066. package/src/shiki/langs/tcl.js +1 -0
  2067. package/src/shiki/langs/templ.js +1 -0
  2068. package/src/shiki/langs/terraform.js +1 -0
  2069. package/src/shiki/langs/tex.js +1 -0
  2070. package/src/shiki/langs/toml.js +1 -0
  2071. package/src/shiki/langs/ts-tags.js +1 -0
  2072. package/src/shiki/langs/tsv.js +1 -0
  2073. package/src/shiki/langs/tsx.js +1 -0
  2074. package/src/shiki/langs/turtle.js +1 -0
  2075. package/src/shiki/langs/twig.js +1 -0
  2076. package/src/shiki/langs/typescript.js +1 -0
  2077. package/src/shiki/langs/typespec.js +1 -0
  2078. package/src/shiki/langs/typst.js +1 -0
  2079. package/src/shiki/langs/v.js +1 -0
  2080. package/src/shiki/langs/vala.js +1 -0
  2081. package/src/shiki/langs/vb.js +1 -0
  2082. package/src/shiki/langs/verilog.js +1 -0
  2083. package/src/shiki/langs/vhdl.js +1 -0
  2084. package/src/shiki/langs/viml.js +1 -0
  2085. package/src/shiki/langs/vue-directives.js +1 -0
  2086. package/src/shiki/langs/vue-html.js +1 -0
  2087. package/src/shiki/langs/vue-interpolations.js +1 -0
  2088. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  2089. package/src/shiki/langs/vue-vine.js +1 -0
  2090. package/src/shiki/langs/vue.js +1 -0
  2091. package/src/shiki/langs/vyper.js +1 -0
  2092. package/src/shiki/langs/wasm.js +1 -0
  2093. package/src/shiki/langs/wenyan.js +1 -0
  2094. package/src/shiki/langs/wgsl.js +1 -0
  2095. package/src/shiki/langs/wikitext.js +1 -0
  2096. package/src/shiki/langs/wit.js +1 -0
  2097. package/src/shiki/langs/wolfram.js +1 -0
  2098. package/src/shiki/langs/xml.js +1 -0
  2099. package/src/shiki/langs/xsl.js +1 -0
  2100. package/src/shiki/langs/yaml.js +1 -0
  2101. package/src/shiki/langs/zenscript.js +1 -0
  2102. package/src/shiki/langs/zig.js +1 -0
  2103. package/src/shiki/themes/andromeeda.js +1 -0
  2104. package/src/shiki/themes/aurora-x.js +1 -0
  2105. package/src/shiki/themes/ayu-dark.js +1 -0
  2106. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  2107. package/src/shiki/themes/catppuccin-latte.js +1 -0
  2108. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  2109. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  2110. package/src/shiki/themes/dark-plus.js +1 -0
  2111. package/src/shiki/themes/dracula-soft.js +1 -0
  2112. package/src/shiki/themes/dracula.js +1 -0
  2113. package/src/shiki/themes/everforest-dark.js +1 -0
  2114. package/src/shiki/themes/everforest-light.js +1 -0
  2115. package/src/shiki/themes/github-dark-default.js +1 -0
  2116. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  2117. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  2118. package/src/shiki/themes/github-dark.js +1 -0
  2119. package/src/shiki/themes/github-light-default.js +1 -0
  2120. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  2121. package/src/shiki/themes/github-light.js +1 -0
  2122. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  2123. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  2124. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  2125. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  2126. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  2127. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  2128. package/src/shiki/themes/houston.js +1 -0
  2129. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  2130. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  2131. package/src/shiki/themes/kanagawa-wave.js +1 -0
  2132. package/src/shiki/themes/laserwave.js +1 -0
  2133. package/src/shiki/themes/light-plus.js +1 -0
  2134. package/src/shiki/themes/material-theme-darker.js +1 -0
  2135. package/src/shiki/themes/material-theme-lighter.js +1 -0
  2136. package/src/shiki/themes/material-theme-ocean.js +1 -0
  2137. package/src/shiki/themes/material-theme-palenight.js +1 -0
  2138. package/src/shiki/themes/material-theme.js +1 -0
  2139. package/src/shiki/themes/min-dark.js +1 -0
  2140. package/src/shiki/themes/min-light.js +1 -0
  2141. package/src/shiki/themes/monokai.js +1 -0
  2142. package/src/shiki/themes/night-owl.js +1 -0
  2143. package/src/shiki/themes/nord.js +1 -0
  2144. package/src/shiki/themes/one-dark-pro.js +1 -0
  2145. package/src/shiki/themes/one-light.js +1 -0
  2146. package/src/shiki/themes/plastic.js +1 -0
  2147. package/src/shiki/themes/poimandres.js +1 -0
  2148. package/src/shiki/themes/red.js +1 -0
  2149. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  2150. package/src/shiki/themes/rose-pine-moon.js +1 -0
  2151. package/src/shiki/themes/rose-pine.js +1 -0
  2152. package/src/shiki/themes/slack-dark.js +1 -0
  2153. package/src/shiki/themes/slack-ochin.js +1 -0
  2154. package/src/shiki/themes/snazzy-light.js +1 -0
  2155. package/src/shiki/themes/solarized-dark.js +1 -0
  2156. package/src/shiki/themes/solarized-light.js +1 -0
  2157. package/src/shiki/themes/synthwave-84.js +1 -0
  2158. package/src/shiki/themes/tokyo-night.js +1 -0
  2159. package/src/shiki/themes/vesper.js +1 -0
  2160. package/src/shiki/themes/vitesse-black.js +1 -0
  2161. package/src/shiki/themes/vitesse-dark.js +1 -0
  2162. package/src/shiki/themes/vitesse-light.js +1 -0
  2163. package/LICENSE.md +0 -9
  2164. package/dist/app/tailwind.d.ts +0 -3
  2165. package/dist/app/tailwind.js +0 -65
  2166. package/dist/app/tailwind.js.map +0 -1
  2167. package/dist/config/validators/InputSidebarSchema.d.ts +0 -201
  2168. package/dist/config/validators/InputSidebarSchema.js +0 -52
  2169. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  2170. package/dist/config/validators/SidebarSchema.d.ts +0 -23
  2171. package/dist/config/validators/SidebarSchema.js +0 -81
  2172. package/dist/config/validators/SidebarSchema.js.map +0 -1
  2173. package/dist/internal.d.ts +0 -1
  2174. package/dist/internal.js +0 -2
  2175. package/dist/internal.js.map +0 -1
  2176. package/dist/lib/components/DevPortal.d.ts +0 -7
  2177. package/dist/lib/components/DevPortal.js +0 -54
  2178. package/dist/lib/components/DevPortal.js.map +0 -1
  2179. package/dist/lib/components/Dialog.d.ts +0 -19
  2180. package/dist/lib/components/Dialog.js +0 -23
  2181. package/dist/lib/components/Dialog.js.map +0 -1
  2182. package/dist/lib/components/Select.d.ts +0 -13
  2183. package/dist/lib/components/Select.js +0 -27
  2184. package/dist/lib/components/Select.js.map +0 -1
  2185. package/dist/lib/components/SlotletProvider.d.ts +0 -16
  2186. package/dist/lib/components/SlotletProvider.js +0 -18
  2187. package/dist/lib/components/SlotletProvider.js.map +0 -1
  2188. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  2189. package/dist/lib/components/SyntaxHighlight.js +0 -50
  2190. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  2191. package/dist/lib/components/context/PluginSystem.js +0 -2
  2192. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  2193. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  2194. package/dist/lib/components/context/ThemeContext.js +0 -7
  2195. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  2196. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  2197. package/dist/lib/components/context/ThemeProvider.js +0 -23
  2198. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  2199. package/dist/lib/components/navigation/Sidebar.d.ts +0 -1
  2200. package/dist/lib/components/navigation/Sidebar.js +0 -14
  2201. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  2202. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -23
  2203. package/dist/lib/components/navigation/SidebarBadge.js +0 -24
  2204. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  2205. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  2206. package/dist/lib/components/navigation/SidebarCategory.js +0 -52
  2207. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  2208. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -12
  2209. package/dist/lib/components/navigation/SidebarItem.js +0 -50
  2210. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  2211. package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -6
  2212. package/dist/lib/components/navigation/SidebarWrapper.js +0 -6
  2213. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  2214. package/dist/lib/core/DevPortalContext.d.ts +0 -79
  2215. package/dist/lib/core/DevPortalContext.js +0 -49
  2216. package/dist/lib/core/DevPortalContext.js.map +0 -1
  2217. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  2218. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  2219. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  2220. package/dist/lib/plugins/markdown/Toc.js +0 -48
  2221. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  2222. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  2223. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  2224. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  2225. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  2226. package/dist/lib/plugins/openapi/Route.js +0 -8
  2227. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  2228. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  2229. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  2230. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  2231. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  2232. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  2233. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  2234. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  2235. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  2236. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  2237. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  2238. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  2239. package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +0 -4
  2240. package/dist/lib/plugins/openapi/playground/InlineInput.js +0 -3
  2241. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +0 -1
  2242. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  2243. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  2244. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  2245. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  2246. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  2247. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  2248. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -9
  2249. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  2250. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  2251. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -6
  2252. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  2253. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  2254. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -7
  2255. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  2256. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  2257. package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
  2258. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  2259. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  2260. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  2261. package/dist/lib/plugins/openapi-worker.js +0 -2
  2262. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  2263. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  2264. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  2265. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  2266. package/dist/lib/themeToggle.d.ts +0 -1
  2267. package/dist/lib/themeToggle.js +0 -7
  2268. package/dist/lib/themeToggle.js.map +0 -1
  2269. package/dist/lib/ui/Note.d.ts +0 -8
  2270. package/dist/lib/ui/Note.js +0 -23
  2271. package/dist/lib/ui/Note.js.map +0 -1
  2272. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  2273. package/dist/lib/util/createWaitForNotify.js +0 -15
  2274. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  2275. package/dist/vite/plugin-custom-css.d.ts +0 -6
  2276. package/dist/vite/plugin-custom-css.js +0 -55
  2277. package/dist/vite/plugin-custom-css.js.map +0 -1
  2278. package/dist/vite/plugin-docs.test.js +0 -30
  2279. package/dist/vite/plugin-docs.test.js.map +0 -1
  2280. package/dist/vite/plugin-html-transform.d.ts +0 -2
  2281. package/dist/vite/plugin-html-transform.js +0 -15
  2282. package/dist/vite/plugin-html-transform.js.map +0 -1
  2283. package/dist/vite/plugin-sidebar.d.ts +0 -3
  2284. package/dist/vite/plugin-sidebar.js +0 -46
  2285. package/dist/vite/plugin-sidebar.js.map +0 -1
  2286. package/dist/vite/prerender.d.ts +0 -17
  2287. package/dist/vite/prerender.js +0 -87
  2288. package/dist/vite/prerender.js.map +0 -1
  2289. package/lib/AuthenticationPlugin-tBvLKsFg.js +0 -55
  2290. package/lib/AuthenticationPlugin-tBvLKsFg.js.map +0 -1
  2291. package/lib/CategoryHeading-D2WS6sRI.js +0 -10
  2292. package/lib/CategoryHeading-D2WS6sRI.js.map +0 -1
  2293. package/lib/ClientOnly-CVN6leDu.js +0 -11
  2294. package/lib/ClientOnly-CVN6leDu.js.map +0 -1
  2295. package/lib/DeveloperHint-CRiZjqd2.js +0 -16
  2296. package/lib/DeveloperHint-CRiZjqd2.js.map +0 -1
  2297. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  2298. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  2299. package/lib/Input-CO-1DOZa.js +0 -2229
  2300. package/lib/Input-CO-1DOZa.js.map +0 -1
  2301. package/lib/Markdown-DM4zv3MA.js +0 -20442
  2302. package/lib/Markdown-DM4zv3MA.js.map +0 -1
  2303. package/lib/MdxPage-tWI_P8wP.js +0 -172
  2304. package/lib/MdxPage-tWI_P8wP.js.map +0 -1
  2305. package/lib/OperationList-Cd3lue0b.js +0 -600
  2306. package/lib/OperationList-Cd3lue0b.js.map +0 -1
  2307. package/lib/Route-DI0Y0pIV.js +0 -13
  2308. package/lib/Route-DI0Y0pIV.js.map +0 -1
  2309. package/lib/SlotletProvider-CBqY8mp6.js +0 -241
  2310. package/lib/SlotletProvider-CBqY8mp6.js.map +0 -1
  2311. package/lib/Spinner-DFQhPMBl.js +0 -505
  2312. package/lib/Spinner-DFQhPMBl.js.map +0 -1
  2313. package/lib/ZudokuContext-DEoP3GGJ.js +0 -1173
  2314. package/lib/ZudokuContext-DEoP3GGJ.js.map +0 -1
  2315. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  2316. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  2317. package/lib/assets/index-B_Jk_Yzp.js +0 -4820
  2318. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  2319. package/lib/assets/worker-Bf8vjASY.js +0 -18197
  2320. package/lib/assets/worker-Bf8vjASY.js.map +0 -1
  2321. package/lib/index-Bn6Lc9tq.js +0 -9
  2322. package/lib/index-Bn6Lc9tq.js.map +0 -1
  2323. package/lib/index-Bs9roz8y.js +0 -5973
  2324. package/lib/index-Bs9roz8y.js.map +0 -1
  2325. package/lib/index-CBr6BM_4.js +0 -2867
  2326. package/lib/index-CBr6BM_4.js.map +0 -1
  2327. package/lib/index-CRo94sKK.js +0 -1783
  2328. package/lib/index-CRo94sKK.js.map +0 -1
  2329. package/lib/index-CkwDvuPt.js +0 -4820
  2330. package/lib/index-CkwDvuPt.js.map +0 -1
  2331. package/lib/index-LNp6rxyU.js +0 -2094
  2332. package/lib/index-LNp6rxyU.js.map +0 -1
  2333. package/lib/index-UUT9q9f9.js +0 -124
  2334. package/lib/index-UUT9q9f9.js.map +0 -1
  2335. package/lib/invariant-Caa8-XvF.js +0 -26
  2336. package/lib/invariant-Caa8-XvF.js.map +0 -1
  2337. package/lib/joinPath-B7kNnUX4.js +0 -8
  2338. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  2339. package/lib/jsx-runtime-B6kdoens.js +0 -635
  2340. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  2341. package/lib/prism-bash.min-DadFsM4Z.js +0 -7
  2342. package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
  2343. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  2344. package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
  2345. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  2346. package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
  2347. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  2348. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  2349. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  2350. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  2351. package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
  2352. package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
  2353. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  2354. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  2355. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  2356. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  2357. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  2358. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  2359. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  2360. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  2361. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  2362. package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
  2363. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  2364. package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
  2365. package/lib/router-BsfSoK2j.js +0 -3024
  2366. package/lib/router-BsfSoK2j.js.map +0 -1
  2367. package/lib/state-CsuHT8ZO.js +0 -183
  2368. package/lib/state-CsuHT8ZO.js.map +0 -1
  2369. package/lib/urql-core-KJnLL26g.js +0 -1455
  2370. package/lib/urql-core-KJnLL26g.js.map +0 -1
  2371. package/lib/useExposedProps-B9K-9GTc.js +0 -9
  2372. package/lib/useExposedProps-B9K-9GTc.js.map +0 -1
  2373. package/lib/utils-G5XSiZc9.js +0 -749
  2374. package/lib/utils-G5XSiZc9.js.map +0 -1
  2375. package/lib/zudoku.openapi-worker.js +0 -16341
  2376. package/lib/zudoku.openapi-worker.js.map +0 -1
  2377. package/src/app/tailwind.ts +0 -68
  2378. package/src/lib/components/DevPortal.tsx +0 -111
  2379. package/src/lib/components/Dialog.tsx +0 -119
  2380. package/src/lib/components/Select.tsx +0 -157
  2381. package/src/lib/components/SlotletProvider.tsx +0 -53
  2382. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  2383. package/src/lib/components/context/PluginSystem.ts +0 -0
  2384. package/src/lib/components/context/ThemeContext.tsx +0 -8
  2385. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  2386. package/src/lib/components/navigation/Sidebar.tsx +0 -39
  2387. package/src/lib/components/navigation/SidebarBadge.tsx +0 -43
  2388. package/src/lib/components/navigation/SidebarCategory.tsx +0 -139
  2389. package/src/lib/components/navigation/SidebarItem.tsx +0 -129
  2390. package/src/lib/components/navigation/SidebarWrapper.tsx +0 -26
  2391. package/src/lib/core/DevPortalContext.ts +0 -140
  2392. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  2393. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  2394. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  2395. package/src/lib/plugins/openapi/Route.tsx +0 -20
  2396. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  2397. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  2398. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  2399. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  2400. package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
  2401. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  2402. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  2403. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -47
  2404. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -54
  2405. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -30
  2406. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  2407. package/src/lib/plugins/openapi-worker.ts +0 -1
  2408. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  2409. package/src/lib/themeToggle.ts +0 -7
  2410. package/src/lib/ui/Note.tsx +0 -58
  2411. package/src/lib/util/createWaitForNotify.ts +0 -18
  2412. /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
  2413. /package/dist/{lib/plugins/openapi/client/worker.d.ts → config/validators/validate.test.d.ts} +0 -0
  2414. /package/dist/{vite/plugin-docs.test.d.ts → lib/auth/issuer.test.d.ts} +0 -0
  2415. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
@@ -1,2229 +0,0 @@
1
- var zt = (e) => {
2
- throw TypeError(e);
3
- };
4
- var _t = (e, r, t) => r.has(e) || zt("Cannot " + t);
5
- var Z = (e, r, t) => (_t(e, r, "read from private field"), t ? t.call(e) : r.get(e)), Ue = (e, r, t) => r.has(e) ? zt("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, t), He = (e, r, t, s) => (_t(e, r, "write to private field"), s ? s.call(e, t) : r.set(e, t), t), We = (e, r, t) => (_t(e, r, "access private method"), t);
6
- import * as p from "react";
7
- import I from "react";
8
- import { o as ps, g as hs, c as ms, p as ir, d as _e, A as ys, P as me, b as oe, e as De, k as gs, l as vs, R as xs, S as _s, F as Ss, D as bs, C as ws, a as Bt, q as Cs, V as As, j as Vs, n as Fs, i as Es, u as Yt, r as Ts } from "./index-CBr6BM_4.js";
9
- import { S as Is, s as Rs, h as Xt, n as ar, a as Ns, d as Ds, e as Ps } from "./ZudokuContext-DEoP3GGJ.js";
10
- import { j as b } from "./jsx-runtime-B6kdoens.js";
11
- import * as lr from "react-dom";
12
- import { ChevronDown as cr, ChevronUp as ks, Check as Ms } from "lucide-react";
13
- import { a as Ee } from "./Markdown-DM4zv3MA.js";
14
- var Re, Ne, de, Ae, Fe, nt, Nt, nr, Os = (nr = class extends Is {
15
- constructor(r, t) {
16
- super();
17
- Ue(this, Fe);
18
- Ue(this, Re);
19
- Ue(this, Ne);
20
- Ue(this, de);
21
- Ue(this, Ae);
22
- He(this, Re, r), this.setOptions(t), this.bindMethods(), We(this, Fe, nt).call(this);
23
- }
24
- bindMethods() {
25
- this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
26
- }
27
- setOptions(r) {
28
- var s;
29
- const t = this.options;
30
- this.options = Z(this, Re).defaultMutationOptions(r), Rs(this.options, t) || Z(this, Re).getMutationCache().notify({
31
- type: "observerOptionsUpdated",
32
- mutation: Z(this, de),
33
- observer: this
34
- }), t != null && t.mutationKey && this.options.mutationKey && Xt(t.mutationKey) !== Xt(this.options.mutationKey) ? this.reset() : ((s = Z(this, de)) == null ? void 0 : s.state.status) === "pending" && Z(this, de).setOptions(this.options);
35
- }
36
- onUnsubscribe() {
37
- var r;
38
- this.hasListeners() || (r = Z(this, de)) == null || r.removeObserver(this);
39
- }
40
- onMutationUpdate(r) {
41
- We(this, Fe, nt).call(this), We(this, Fe, Nt).call(this, r);
42
- }
43
- getCurrentResult() {
44
- return Z(this, Ne);
45
- }
46
- reset() {
47
- var r;
48
- (r = Z(this, de)) == null || r.removeObserver(this), He(this, de, void 0), We(this, Fe, nt).call(this), We(this, Fe, Nt).call(this);
49
- }
50
- mutate(r, t) {
51
- var s;
52
- return He(this, Ae, t), (s = Z(this, de)) == null || s.removeObserver(this), He(this, de, Z(this, Re).getMutationCache().build(Z(this, Re), this.options)), Z(this, de).addObserver(this), Z(this, de).execute(r);
53
- }
54
- }, Re = new WeakMap(), Ne = new WeakMap(), de = new WeakMap(), Ae = new WeakMap(), Fe = new WeakSet(), nt = function() {
55
- var t;
56
- const r = ((t = Z(this, de)) == null ? void 0 : t.state) ?? ps();
57
- He(this, Ne, {
58
- ...r,
59
- isPending: r.status === "pending",
60
- isSuccess: r.status === "success",
61
- isError: r.status === "error",
62
- isIdle: r.status === "idle",
63
- mutate: this.mutate,
64
- reset: this.reset
65
- });
66
- }, Nt = function(r) {
67
- ar.batch(() => {
68
- var t, s, n, i, l, c, d, _;
69
- if (Z(this, Ae) && this.hasListeners()) {
70
- const m = Z(this, Ne).variables, g = Z(this, Ne).context;
71
- (r == null ? void 0 : r.type) === "success" ? ((s = (t = Z(this, Ae)).onSuccess) == null || s.call(t, r.data, m, g), (i = (n = Z(this, Ae)).onSettled) == null || i.call(n, r.data, null, m, g)) : (r == null ? void 0 : r.type) === "error" && ((c = (l = Z(this, Ae)).onError) == null || c.call(l, r.error, m, g), (_ = (d = Z(this, Ae)).onSettled) == null || _.call(
72
- d,
73
- void 0,
74
- r.error,
75
- m,
76
- g
77
- ));
78
- }
79
- this.listeners.forEach((m) => {
80
- m(Z(this, Ne));
81
- });
82
- });
83
- }, nr);
84
- function Ho(e, r) {
85
- const t = Ns(), [s] = p.useState(
86
- () => new Os(
87
- t,
88
- e
89
- )
90
- );
91
- p.useEffect(() => {
92
- s.setOptions(e);
93
- }, [s, e]);
94
- const n = p.useSyncExternalStore(
95
- p.useCallback(
96
- (l) => s.subscribe(ar.batchCalls(l)),
97
- [s]
98
- ),
99
- () => s.getCurrentResult(),
100
- () => s.getCurrentResult()
101
- ), i = p.useCallback(
102
- (l, c) => {
103
- s.mutate(l, c).catch(Ds);
104
- },
105
- [s]
106
- );
107
- if (n.error && Ps(s.options.throwOnError, [n.error]))
108
- throw n.error;
109
- return { ...n, mutate: i, mutateAsync: n.mutate };
110
- }
111
- var Qe = (e) => e.type === "checkbox", $e = (e) => e instanceof Date, le = (e) => e == null;
112
- const ur = (e) => typeof e == "object";
113
- var ee = (e) => !le(e) && !Array.isArray(e) && ur(e) && !$e(e), dr = (e) => ee(e) && e.target ? Qe(e.target) ? e.target.checked : e.target.value : e, js = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, fr = (e, r) => e.has(js(r)), Ls = (e) => {
114
- const r = e.constructor && e.constructor.prototype;
115
- return ee(r) && r.hasOwnProperty("isPrototypeOf");
116
- }, Ut = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
117
- function te(e) {
118
- let r;
119
- const t = Array.isArray(e);
120
- if (e instanceof Date)
121
- r = new Date(e);
122
- else if (e instanceof Set)
123
- r = new Set(e);
124
- else if (!(Ut && (e instanceof Blob || e instanceof FileList)) && (t || ee(e)))
125
- if (r = t ? [] : {}, !t && !Ls(e))
126
- r = e;
127
- else
128
- for (const s in e)
129
- e.hasOwnProperty(s) && (r[s] = te(e[s]));
130
- else
131
- return e;
132
- return r;
133
- }
134
- var Je = (e) => Array.isArray(e) ? e.filter(Boolean) : [], q = (e) => e === void 0, h = (e, r, t) => {
135
- if (!r || !ee(e))
136
- return t;
137
- const s = Je(r.split(/[,[\].]+?/)).reduce((n, i) => le(n) ? n : n[i], e);
138
- return q(s) || s === e ? q(e[r]) ? t : e[r] : s;
139
- }, pe = (e) => typeof e == "boolean", Ht = (e) => /^\w*$/.test(e), pr = (e) => Je(e.replace(/["|']|\]/g, "").split(/\.|\[/)), U = (e, r, t) => {
140
- let s = -1;
141
- const n = Ht(r) ? [r] : pr(r), i = n.length, l = i - 1;
142
- for (; ++s < i; ) {
143
- const c = n[s];
144
- let d = t;
145
- if (s !== l) {
146
- const _ = e[c];
147
- d = ee(_) || Array.isArray(_) ? _ : isNaN(+n[s + 1]) ? {} : [];
148
- }
149
- if (c === "__proto__")
150
- return;
151
- e[c] = d, e = e[c];
152
- }
153
- return e;
154
- };
155
- const at = {
156
- BLUR: "blur",
157
- FOCUS_OUT: "focusout",
158
- CHANGE: "change"
159
- }, he = {
160
- onBlur: "onBlur",
161
- onChange: "onChange",
162
- onSubmit: "onSubmit",
163
- onTouched: "onTouched",
164
- all: "all"
165
- }, Ce = {
166
- max: "max",
167
- min: "min",
168
- maxLength: "maxLength",
169
- minLength: "minLength",
170
- pattern: "pattern",
171
- required: "required",
172
- validate: "validate"
173
- }, hr = I.createContext(null), pt = () => I.useContext(hr), Wo = (e) => {
174
- const { children: r, ...t } = e;
175
- return I.createElement(hr.Provider, { value: t }, r);
176
- };
177
- var mr = (e, r, t, s = !0) => {
178
- const n = {
179
- defaultValues: r._defaultValues
180
- };
181
- for (const i in e)
182
- Object.defineProperty(n, i, {
183
- get: () => {
184
- const l = i;
185
- return r._proxyFormState[l] !== he.all && (r._proxyFormState[l] = !s || he.all), t && (t[l] = !0), e[l];
186
- }
187
- });
188
- return n;
189
- }, ae = (e) => ee(e) && !Object.keys(e).length, yr = (e, r, t, s) => {
190
- t(e);
191
- const { name: n, ...i } = e;
192
- return ae(i) || Object.keys(i).length >= Object.keys(r).length || Object.keys(i).find((l) => r[l] === (!s || he.all));
193
- }, fe = (e) => Array.isArray(e) ? e : [e], gr = (e, r, t) => !e || !r || e === r || fe(e).some((s) => s && (t ? s === r : s.startsWith(r) || r.startsWith(s)));
194
- function ht(e) {
195
- const r = I.useRef(e);
196
- r.current = e, I.useEffect(() => {
197
- const t = !e.disabled && r.current.subject && r.current.subject.subscribe({
198
- next: r.current.next
199
- });
200
- return () => {
201
- t && t.unsubscribe();
202
- };
203
- }, [e.disabled]);
204
- }
205
- function Bs(e) {
206
- const r = pt(), { control: t = r.control, disabled: s, name: n, exact: i } = e || {}, [l, c] = I.useState(t._formState), d = I.useRef(!0), _ = I.useRef({
207
- isDirty: !1,
208
- isLoading: !1,
209
- dirtyFields: !1,
210
- touchedFields: !1,
211
- validatingFields: !1,
212
- isValidating: !1,
213
- isValid: !1,
214
- errors: !1
215
- }), m = I.useRef(n);
216
- return m.current = n, ht({
217
- disabled: s,
218
- next: (g) => d.current && gr(m.current, g.name, i) && yr(g, _.current, t._updateFormState) && c({
219
- ...t._formState,
220
- ...g
221
- }),
222
- subject: t._subjects.state
223
- }), I.useEffect(() => (d.current = !0, _.current.isValid && t._updateValid(!0), () => {
224
- d.current = !1;
225
- }), [t]), mr(l, t, _.current, !1);
226
- }
227
- var xe = (e) => typeof e == "string", vr = (e, r, t, s, n) => xe(e) ? (s && r.watch.add(e), h(t, e, n)) : Array.isArray(e) ? e.map((i) => (s && r.watch.add(i), h(t, i))) : (s && (r.watchAll = !0), t);
228
- function Us(e) {
229
- const r = pt(), { control: t = r.control, name: s, defaultValue: n, disabled: i, exact: l } = e || {}, c = I.useRef(s);
230
- c.current = s, ht({
231
- disabled: i,
232
- subject: t._subjects.values,
233
- next: (m) => {
234
- gr(c.current, m.name, l) && _(te(vr(c.current, t._names, m.values || t._formValues, !1, n)));
235
- }
236
- });
237
- const [d, _] = I.useState(t._getWatch(s, n));
238
- return I.useEffect(() => t._removeUnmounted()), d;
239
- }
240
- function Hs(e) {
241
- const r = pt(), { name: t, disabled: s, control: n = r.control, shouldUnregister: i } = e, l = fr(n._names.array, t), c = Us({
242
- control: n,
243
- name: t,
244
- defaultValue: h(n._formValues, t, h(n._defaultValues, t, e.defaultValue)),
245
- exact: !0
246
- }), d = Bs({
247
- control: n,
248
- name: t,
249
- exact: !0
250
- }), _ = I.useRef(n.register(t, {
251
- ...e.rules,
252
- value: c,
253
- ...pe(e.disabled) ? { disabled: e.disabled } : {}
254
- }));
255
- return I.useEffect(() => {
256
- const m = n._options.shouldUnregister || i, g = (E, O) => {
257
- const D = h(n._fields, E);
258
- D && D._f && (D._f.mount = O);
259
- };
260
- if (g(t, !0), m) {
261
- const E = te(h(n._options.defaultValues, t));
262
- U(n._defaultValues, t, E), q(h(n._formValues, t)) && U(n._formValues, t, E);
263
- }
264
- return () => {
265
- (l ? m && !n._state.action : m) ? n.unregister(t) : g(t, !1);
266
- };
267
- }, [t, n, l, i]), I.useEffect(() => {
268
- h(n._fields, t) && n._updateDisabledField({
269
- disabled: s,
270
- fields: n._fields,
271
- name: t,
272
- value: h(n._fields, t)._f.value
273
- });
274
- }, [s, t, n]), {
275
- field: {
276
- name: t,
277
- value: c,
278
- ...pe(s) || d.disabled ? { disabled: d.disabled || s } : {},
279
- onChange: I.useCallback((m) => _.current.onChange({
280
- target: {
281
- value: dr(m),
282
- name: t
283
- },
284
- type: at.CHANGE
285
- }), [t]),
286
- onBlur: I.useCallback(() => _.current.onBlur({
287
- target: {
288
- value: h(n._formValues, t),
289
- name: t
290
- },
291
- type: at.BLUR
292
- }), [t, n]),
293
- ref: I.useCallback((m) => {
294
- const g = h(n._fields, t);
295
- g && m && (g._f.ref = {
296
- focus: () => m.focus(),
297
- select: () => m.select(),
298
- setCustomValidity: (E) => m.setCustomValidity(E),
299
- reportValidity: () => m.reportValidity()
300
- });
301
- }, [n._fields, t])
302
- },
303
- formState: d,
304
- fieldState: Object.defineProperties({}, {
305
- invalid: {
306
- enumerable: !0,
307
- get: () => !!h(d.errors, t)
308
- },
309
- isDirty: {
310
- enumerable: !0,
311
- get: () => !!h(d.dirtyFields, t)
312
- },
313
- isTouched: {
314
- enumerable: !0,
315
- get: () => !!h(d.touchedFields, t)
316
- },
317
- isValidating: {
318
- enumerable: !0,
319
- get: () => !!h(d.validatingFields, t)
320
- },
321
- error: {
322
- enumerable: !0,
323
- get: () => h(d.errors, t)
324
- }
325
- })
326
- };
327
- }
328
- const Ko = (e) => e.render(Hs(e));
329
- var Ws = (e, r, t, s, n) => r ? {
330
- ...t[e],
331
- types: {
332
- ...t[e] && t[e].types ? t[e].types : {},
333
- [s]: n || !0
334
- }
335
- } : {}, Te = () => {
336
- const e = typeof performance > "u" ? Date.now() : performance.now() * 1e3;
337
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (r) => {
338
- const t = (Math.random() * 16 + e) % 16 | 0;
339
- return (r == "x" ? t : t & 3 | 8).toString(16);
340
- });
341
- }, St = (e, r, t = {}) => t.shouldFocus || q(t.shouldFocus) ? t.focusName || `${e}.${q(t.focusIndex) ? r : t.focusIndex}.` : "", Ze = (e) => ({
342
- isOnSubmit: !e || e === he.onSubmit,
343
- isOnBlur: e === he.onBlur,
344
- isOnChange: e === he.onChange,
345
- isOnAll: e === he.all,
346
- isOnTouch: e === he.onTouched
347
- }), Dt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((s) => e.startsWith(s) && /^\.\w+/.test(e.slice(s.length))));
348
- const qe = (e, r, t, s) => {
349
- for (const n of t || Object.keys(e)) {
350
- const i = h(e, n);
351
- if (i) {
352
- const { _f: l, ...c } = i;
353
- if (l) {
354
- if (l.refs && l.refs[0] && r(l.refs[0], n) && !s)
355
- return !0;
356
- if (l.ref && r(l.ref, l.name) && !s)
357
- return !0;
358
- if (qe(c, r))
359
- break;
360
- } else if (ee(c) && qe(c, r))
361
- break;
362
- }
363
- }
364
- };
365
- var xr = (e, r, t) => {
366
- const s = fe(h(e, t));
367
- return U(s, "root", r[t]), U(e, t, s), e;
368
- }, Wt = (e) => e.type === "file", Ve = (e) => typeof e == "function", lt = (e) => {
369
- if (!Ut)
370
- return !1;
371
- const r = e ? e.ownerDocument : 0;
372
- return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
373
- }, it = (e) => xe(e), Kt = (e) => e.type === "radio", ct = (e) => e instanceof RegExp;
374
- const Zt = {
375
- value: !1,
376
- isValid: !1
377
- }, Qt = { value: !0, isValid: !0 };
378
- var _r = (e) => {
379
- if (Array.isArray(e)) {
380
- if (e.length > 1) {
381
- const r = e.filter((t) => t && t.checked && !t.disabled).map((t) => t.value);
382
- return { value: r, isValid: !!r.length };
383
- }
384
- return e[0].checked && !e[0].disabled ? (
385
- // @ts-expect-error expected to work in the browser
386
- e[0].attributes && !q(e[0].attributes.value) ? q(e[0].value) || e[0].value === "" ? Qt : { value: e[0].value, isValid: !0 } : Qt
387
- ) : Zt;
388
- }
389
- return Zt;
390
- };
391
- const Jt = {
392
- isValid: !1,
393
- value: null
394
- };
395
- var Sr = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
396
- isValid: !0,
397
- value: t.value
398
- } : r, Jt) : Jt;
399
- function er(e, r, t = "validate") {
400
- if (it(e) || Array.isArray(e) && e.every(it) || pe(e) && !e)
401
- return {
402
- type: t,
403
- message: it(e) ? e : "",
404
- ref: r
405
- };
406
- }
407
- var Ke = (e) => ee(e) && !ct(e) ? e : {
408
- value: e,
409
- message: ""
410
- }, Pt = async (e, r, t, s, n) => {
411
- const { ref: i, refs: l, required: c, maxLength: d, minLength: _, min: m, max: g, pattern: E, validate: O, name: D, valueAsNumber: C, mount: R, disabled: M } = e._f, y = h(r, D);
412
- if (!R || M)
413
- return {};
414
- const V = l ? l[0] : i, z = (T) => {
415
- s && V.reportValidity && (V.setCustomValidity(pe(T) ? "" : T || ""), V.reportValidity());
416
- }, x = {}, w = Kt(i), F = Qe(i), k = w || F, Q = (C || Wt(i)) && q(i.value) && q(y) || lt(i) && i.value === "" || y === "" || Array.isArray(y) && !y.length, Y = Ws.bind(null, D, t, x), ce = (T, P, L, W = Ce.maxLength, K = Ce.minLength) => {
417
- const X = T ? P : L;
418
- x[D] = {
419
- type: T ? W : K,
420
- message: X,
421
- ref: i,
422
- ...Y(T ? W : K, X)
423
- };
424
- };
425
- if (n ? !Array.isArray(y) || !y.length : c && (!k && (Q || le(y)) || pe(y) && !y || F && !_r(l).isValid || w && !Sr(l).isValid)) {
426
- const { value: T, message: P } = it(c) ? { value: !!c, message: c } : Ke(c);
427
- if (T && (x[D] = {
428
- type: Ce.required,
429
- message: P,
430
- ref: V,
431
- ...Y(Ce.required, P)
432
- }, !t))
433
- return z(P), x;
434
- }
435
- if (!Q && (!le(m) || !le(g))) {
436
- let T, P;
437
- const L = Ke(g), W = Ke(m);
438
- if (!le(y) && !isNaN(y)) {
439
- const K = i.valueAsNumber || y && +y;
440
- le(L.value) || (T = K > L.value), le(W.value) || (P = K < W.value);
441
- } else {
442
- const K = i.valueAsDate || new Date(y), X = (Se) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Se), ie = i.type == "time", ue = i.type == "week";
443
- xe(L.value) && y && (T = ie ? X(y) > X(L.value) : ue ? y > L.value : K > new Date(L.value)), xe(W.value) && y && (P = ie ? X(y) < X(W.value) : ue ? y < W.value : K < new Date(W.value));
444
- }
445
- if ((T || P) && (ce(!!T, L.message, W.message, Ce.max, Ce.min), !t))
446
- return z(x[D].message), x;
447
- }
448
- if ((d || _) && !Q && (xe(y) || n && Array.isArray(y))) {
449
- const T = Ke(d), P = Ke(_), L = !le(T.value) && y.length > +T.value, W = !le(P.value) && y.length < +P.value;
450
- if ((L || W) && (ce(L, T.message, P.message), !t))
451
- return z(x[D].message), x;
452
- }
453
- if (E && !Q && xe(y)) {
454
- const { value: T, message: P } = Ke(E);
455
- if (ct(T) && !y.match(T) && (x[D] = {
456
- type: Ce.pattern,
457
- message: P,
458
- ref: i,
459
- ...Y(Ce.pattern, P)
460
- }, !t))
461
- return z(P), x;
462
- }
463
- if (O) {
464
- if (Ve(O)) {
465
- const T = await O(y, r), P = er(T, V);
466
- if (P && (x[D] = {
467
- ...P,
468
- ...Y(Ce.validate, P.message)
469
- }, !t))
470
- return z(P.message), x;
471
- } else if (ee(O)) {
472
- let T = {};
473
- for (const P in O) {
474
- if (!ae(T) && !t)
475
- break;
476
- const L = er(await O[P](y, r), V, P);
477
- L && (T = {
478
- ...L,
479
- ...Y(P, L.message)
480
- }, z(L.message), t && (x[D] = T));
481
- }
482
- if (!ae(T) && (x[D] = {
483
- ref: V,
484
- ...T
485
- }, !t))
486
- return x;
487
- }
488
- }
489
- return z(!0), x;
490
- }, bt = (e, r) => [
491
- ...e,
492
- ...fe(r)
493
- ], wt = (e) => Array.isArray(e) ? e.map(() => {
494
- }) : void 0;
495
- function Ct(e, r, t) {
496
- return [
497
- ...e.slice(0, r),
498
- ...fe(t),
499
- ...e.slice(r)
500
- ];
501
- }
502
- var At = (e, r, t) => Array.isArray(e) ? (q(e[t]) && (e[t] = void 0), e.splice(t, 0, e.splice(r, 1)[0]), e) : [], Vt = (e, r) => [
503
- ...fe(r),
504
- ...fe(e)
505
- ];
506
- function Ks(e, r) {
507
- let t = 0;
508
- const s = [...e];
509
- for (const n of r)
510
- s.splice(n - t, 1), t++;
511
- return Je(s).length ? s : [];
512
- }
513
- var Ft = (e, r) => q(r) ? [] : Ks(e, fe(r).sort((t, s) => t - s)), Et = (e, r, t) => {
514
- [e[r], e[t]] = [e[t], e[r]];
515
- };
516
- function $s(e, r) {
517
- const t = r.slice(0, -1).length;
518
- let s = 0;
519
- for (; s < t; )
520
- e = q(e) ? s++ : e[r[s++]];
521
- return e;
522
- }
523
- function qs(e) {
524
- for (const r in e)
525
- if (e.hasOwnProperty(r) && !q(e[r]))
526
- return !1;
527
- return !0;
528
- }
529
- function J(e, r) {
530
- const t = Array.isArray(r) ? r : Ht(r) ? [r] : pr(r), s = t.length === 1 ? e : $s(e, t), n = t.length - 1, i = t[n];
531
- return s && delete s[i], n !== 0 && (ee(s) && ae(s) || Array.isArray(s) && qs(s)) && J(e, t.slice(0, -1)), e;
532
- }
533
- var tr = (e, r, t) => (e[r] = t, e);
534
- function $o(e) {
535
- const r = pt(), { control: t = r.control, name: s, keyName: n = "id", shouldUnregister: i } = e, [l, c] = I.useState(t._getFieldArray(s)), d = I.useRef(t._getFieldArray(s).map(Te)), _ = I.useRef(l), m = I.useRef(s), g = I.useRef(!1);
536
- m.current = s, _.current = l, t._names.array.add(s), e.rules && t.register(s, e.rules), ht({
537
- next: ({ values: x, name: w }) => {
538
- if (w === m.current || !w) {
539
- const F = h(x, m.current);
540
- Array.isArray(F) && (c(F), d.current = F.map(Te));
541
- }
542
- },
543
- subject: t._subjects.array
544
- });
545
- const E = I.useCallback((x) => {
546
- g.current = !0, t._updateFieldArray(s, x);
547
- }, [t, s]), O = (x, w) => {
548
- const F = fe(te(x)), k = bt(t._getFieldArray(s), F);
549
- t._names.focus = St(s, k.length - 1, w), d.current = bt(d.current, F.map(Te)), E(k), c(k), t._updateFieldArray(s, k, bt, {
550
- argA: wt(x)
551
- });
552
- }, D = (x, w) => {
553
- const F = fe(te(x)), k = Vt(t._getFieldArray(s), F);
554
- t._names.focus = St(s, 0, w), d.current = Vt(d.current, F.map(Te)), E(k), c(k), t._updateFieldArray(s, k, Vt, {
555
- argA: wt(x)
556
- });
557
- }, C = (x) => {
558
- const w = Ft(t._getFieldArray(s), x);
559
- d.current = Ft(d.current, x), E(w), c(w), t._updateFieldArray(s, w, Ft, {
560
- argA: x
561
- });
562
- }, R = (x, w, F) => {
563
- const k = fe(te(w)), Q = Ct(t._getFieldArray(s), x, k);
564
- t._names.focus = St(s, x, F), d.current = Ct(d.current, x, k.map(Te)), E(Q), c(Q), t._updateFieldArray(s, Q, Ct, {
565
- argA: x,
566
- argB: wt(w)
567
- });
568
- }, M = (x, w) => {
569
- const F = t._getFieldArray(s);
570
- Et(F, x, w), Et(d.current, x, w), E(F), c(F), t._updateFieldArray(s, F, Et, {
571
- argA: x,
572
- argB: w
573
- }, !1);
574
- }, y = (x, w) => {
575
- const F = t._getFieldArray(s);
576
- At(F, x, w), At(d.current, x, w), E(F), c(F), t._updateFieldArray(s, F, At, {
577
- argA: x,
578
- argB: w
579
- }, !1);
580
- }, V = (x, w) => {
581
- const F = te(w), k = tr(t._getFieldArray(s), x, F);
582
- d.current = [...k].map((Q, Y) => !Q || Y === x ? Te() : d.current[Y]), E(k), c([...k]), t._updateFieldArray(s, k, tr, {
583
- argA: x,
584
- argB: F
585
- }, !0, !1);
586
- }, z = (x) => {
587
- const w = fe(te(x));
588
- d.current = w.map(Te), E([...w]), c([...w]), t._updateFieldArray(s, [...w], (F) => F, {}, !0, !1);
589
- };
590
- return I.useEffect(() => {
591
- if (t._state.action = !1, Dt(s, t._names) && t._subjects.state.next({
592
- ...t._formState
593
- }), g.current && (!Ze(t._options.mode).isOnSubmit || t._formState.isSubmitted))
594
- if (t._options.resolver)
595
- t._executeSchema([s]).then((x) => {
596
- const w = h(x.errors, s), F = h(t._formState.errors, s);
597
- (F ? !w && F.type || w && (F.type !== w.type || F.message !== w.message) : w && w.type) && (w ? U(t._formState.errors, s, w) : J(t._formState.errors, s), t._subjects.state.next({
598
- errors: t._formState.errors
599
- }));
600
- });
601
- else {
602
- const x = h(t._fields, s);
603
- x && x._f && !(Ze(t._options.reValidateMode).isOnSubmit && Ze(t._options.mode).isOnSubmit) && Pt(x, t._formValues, t._options.criteriaMode === he.all, t._options.shouldUseNativeValidation, !0).then((w) => !ae(w) && t._subjects.state.next({
604
- errors: xr(t._formState.errors, w, s)
605
- }));
606
- }
607
- t._subjects.values.next({
608
- name: s,
609
- values: { ...t._formValues }
610
- }), t._names.focus && qe(t._fields, (x, w) => {
611
- if (t._names.focus && w.startsWith(t._names.focus) && x.focus)
612
- return x.focus(), 1;
613
- }), t._names.focus = "", t._updateValid(), g.current = !1;
614
- }, [l, s, t]), I.useEffect(() => (!h(t._formValues, s) && t._updateFieldArray(s), () => {
615
- (t._options.shouldUnregister || i) && t.unregister(s);
616
- }), [s, t, n, i]), {
617
- swap: I.useCallback(M, [E, s, t]),
618
- move: I.useCallback(y, [E, s, t]),
619
- prepend: I.useCallback(D, [E, s, t]),
620
- append: I.useCallback(O, [E, s, t]),
621
- remove: I.useCallback(C, [E, s, t]),
622
- insert: I.useCallback(R, [E, s, t]),
623
- update: I.useCallback(V, [E, s, t]),
624
- replace: I.useCallback(z, [E, s, t]),
625
- fields: I.useMemo(() => l.map((x, w) => ({
626
- ...x,
627
- [n]: d.current[w] || Te()
628
- })), [l, n])
629
- };
630
- }
631
- var Tt = () => {
632
- let e = [];
633
- return {
634
- get observers() {
635
- return e;
636
- },
637
- next: (n) => {
638
- for (const i of e)
639
- i.next && i.next(n);
640
- },
641
- subscribe: (n) => (e.push(n), {
642
- unsubscribe: () => {
643
- e = e.filter((i) => i !== n);
644
- }
645
- }),
646
- unsubscribe: () => {
647
- e = [];
648
- }
649
- };
650
- }, ut = (e) => le(e) || !ur(e);
651
- function Ie(e, r) {
652
- if (ut(e) || ut(r))
653
- return e === r;
654
- if ($e(e) && $e(r))
655
- return e.getTime() === r.getTime();
656
- const t = Object.keys(e), s = Object.keys(r);
657
- if (t.length !== s.length)
658
- return !1;
659
- for (const n of t) {
660
- const i = e[n];
661
- if (!s.includes(n))
662
- return !1;
663
- if (n !== "ref") {
664
- const l = r[n];
665
- if ($e(i) && $e(l) || ee(i) && ee(l) || Array.isArray(i) && Array.isArray(l) ? !Ie(i, l) : i !== l)
666
- return !1;
667
- }
668
- }
669
- return !0;
670
- }
671
- var br = (e) => e.type === "select-multiple", Gs = (e) => Kt(e) || Qe(e), It = (e) => lt(e) && e.isConnected, wr = (e) => {
672
- for (const r in e)
673
- if (Ve(e[r]))
674
- return !0;
675
- return !1;
676
- };
677
- function dt(e, r = {}) {
678
- const t = Array.isArray(e);
679
- if (ee(e) || t)
680
- for (const s in e)
681
- Array.isArray(e[s]) || ee(e[s]) && !wr(e[s]) ? (r[s] = Array.isArray(e[s]) ? [] : {}, dt(e[s], r[s])) : le(e[s]) || (r[s] = !0);
682
- return r;
683
- }
684
- function Cr(e, r, t) {
685
- const s = Array.isArray(e);
686
- if (ee(e) || s)
687
- for (const n in e)
688
- Array.isArray(e[n]) || ee(e[n]) && !wr(e[n]) ? q(r) || ut(t[n]) ? t[n] = Array.isArray(e[n]) ? dt(e[n], []) : { ...dt(e[n]) } : Cr(e[n], le(r) ? {} : r[n], t[n]) : t[n] = !Ie(e[n], r[n]);
689
- return t;
690
- }
691
- var ot = (e, r) => Cr(e, r, dt(r)), Ar = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: s }) => q(e) ? e : r ? e === "" ? NaN : e && +e : t && xe(e) ? new Date(e) : s ? s(e) : e;
692
- function Rt(e) {
693
- const r = e.ref;
694
- if (!(e.refs ? e.refs.every((t) => t.disabled) : r.disabled))
695
- return Wt(r) ? r.files : Kt(r) ? Sr(e.refs).value : br(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Qe(r) ? _r(e.refs).value : Ar(q(r.value) ? e.ref.value : r.value, e);
696
- }
697
- var zs = (e, r, t, s) => {
698
- const n = {};
699
- for (const i of e) {
700
- const l = h(r, i);
701
- l && U(n, i, l._f);
702
- }
703
- return {
704
- criteriaMode: t,
705
- names: [...e],
706
- fields: n,
707
- shouldUseNativeValidation: s
708
- };
709
- }, Ye = (e) => q(e) ? e : ct(e) ? e.source : ee(e) ? ct(e.value) ? e.value.source : e.value : e;
710
- const rr = "AsyncFunction";
711
- var Ys = (e) => (!e || !e.validate) && !!(Ve(e.validate) && e.validate.constructor.name === rr || ee(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === rr)), Xs = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate);
712
- function sr(e, r, t) {
713
- const s = h(e, t);
714
- if (s || Ht(t))
715
- return {
716
- error: s,
717
- name: t
718
- };
719
- const n = t.split(".");
720
- for (; n.length; ) {
721
- const i = n.join("."), l = h(r, i), c = h(e, i);
722
- if (l && !Array.isArray(l) && t !== i)
723
- return { name: t };
724
- if (c && c.type)
725
- return {
726
- name: i,
727
- error: c
728
- };
729
- n.pop();
730
- }
731
- return {
732
- name: t
733
- };
734
- }
735
- var Zs = (e, r, t, s, n) => n.isOnAll ? !1 : !t && n.isOnTouch ? !(r || e) : (t ? s.isOnBlur : n.isOnBlur) ? !e : (t ? s.isOnChange : n.isOnChange) ? e : !0, Qs = (e, r) => !Je(h(e, r)).length && J(e, r);
736
- const Js = {
737
- mode: he.onSubmit,
738
- reValidateMode: he.onChange,
739
- shouldFocusError: !0
740
- };
741
- function eo(e = {}) {
742
- let r = {
743
- ...Js,
744
- ...e
745
- }, t = {
746
- submitCount: 0,
747
- isDirty: !1,
748
- isLoading: Ve(r.defaultValues),
749
- isValidating: !1,
750
- isSubmitted: !1,
751
- isSubmitting: !1,
752
- isSubmitSuccessful: !1,
753
- isValid: !1,
754
- touchedFields: {},
755
- dirtyFields: {},
756
- validatingFields: {},
757
- errors: r.errors || {},
758
- disabled: r.disabled || !1
759
- }, s = {}, n = ee(r.defaultValues) || ee(r.values) ? te(r.defaultValues || r.values) || {} : {}, i = r.shouldUnregister ? {} : te(n), l = {
760
- action: !1,
761
- mount: !1,
762
- watch: !1
763
- }, c = {
764
- mount: /* @__PURE__ */ new Set(),
765
- unMount: /* @__PURE__ */ new Set(),
766
- array: /* @__PURE__ */ new Set(),
767
- watch: /* @__PURE__ */ new Set()
768
- }, d, _ = 0;
769
- const m = {
770
- isDirty: !1,
771
- dirtyFields: !1,
772
- validatingFields: !1,
773
- touchedFields: !1,
774
- isValidating: !1,
775
- isValid: !1,
776
- errors: !1
777
- }, g = {
778
- values: Tt(),
779
- array: Tt(),
780
- state: Tt()
781
- }, E = Ze(r.mode), O = Ze(r.reValidateMode), D = r.criteriaMode === he.all, C = (o) => (a) => {
782
- clearTimeout(_), _ = setTimeout(o, a);
783
- }, R = async (o) => {
784
- if (m.isValid || o) {
785
- const a = r.resolver ? ae((await k()).errors) : await Y(s, !0);
786
- a !== t.isValid && g.state.next({
787
- isValid: a
788
- });
789
- }
790
- }, M = (o, a) => {
791
- (m.isValidating || m.validatingFields) && ((o || Array.from(c.mount)).forEach((u) => {
792
- u && (a ? U(t.validatingFields, u, a) : J(t.validatingFields, u));
793
- }), g.state.next({
794
- validatingFields: t.validatingFields,
795
- isValidating: !ae(t.validatingFields)
796
- }));
797
- }, y = (o, a = [], u, S, v = !0, f = !0) => {
798
- if (S && u) {
799
- if (l.action = !0, f && Array.isArray(h(s, o))) {
800
- const A = u(h(s, o), S.argA, S.argB);
801
- v && U(s, o, A);
802
- }
803
- if (f && Array.isArray(h(t.errors, o))) {
804
- const A = u(h(t.errors, o), S.argA, S.argB);
805
- v && U(t.errors, o, A), Qs(t.errors, o);
806
- }
807
- if (m.touchedFields && f && Array.isArray(h(t.touchedFields, o))) {
808
- const A = u(h(t.touchedFields, o), S.argA, S.argB);
809
- v && U(t.touchedFields, o, A);
810
- }
811
- m.dirtyFields && (t.dirtyFields = ot(n, i)), g.state.next({
812
- name: o,
813
- isDirty: T(o, a),
814
- dirtyFields: t.dirtyFields,
815
- errors: t.errors,
816
- isValid: t.isValid
817
- });
818
- } else
819
- U(i, o, a);
820
- }, V = (o, a) => {
821
- U(t.errors, o, a), g.state.next({
822
- errors: t.errors
823
- });
824
- }, z = (o) => {
825
- t.errors = o, g.state.next({
826
- errors: t.errors,
827
- isValid: !1
828
- });
829
- }, x = (o, a, u, S) => {
830
- const v = h(s, o);
831
- if (v) {
832
- const f = h(i, o, q(u) ? h(n, o) : u);
833
- q(f) || S && S.defaultChecked || a ? U(i, o, a ? f : Rt(v._f)) : W(o, f), l.mount && R();
834
- }
835
- }, w = (o, a, u, S, v) => {
836
- let f = !1, A = !1;
837
- const j = {
838
- name: o
839
- }, re = !!(h(s, o) && h(s, o)._f && h(s, o)._f.disabled);
840
- if (!u || S) {
841
- m.isDirty && (A = t.isDirty, t.isDirty = j.isDirty = T(), f = A !== j.isDirty);
842
- const se = re || Ie(h(n, o), a);
843
- A = !!(!re && h(t.dirtyFields, o)), se || re ? J(t.dirtyFields, o) : U(t.dirtyFields, o, !0), j.dirtyFields = t.dirtyFields, f = f || m.dirtyFields && A !== !se;
844
- }
845
- if (u) {
846
- const se = h(t.touchedFields, o);
847
- se || (U(t.touchedFields, o, u), j.touchedFields = t.touchedFields, f = f || m.touchedFields && se !== u);
848
- }
849
- return f && v && g.state.next(j), f ? j : {};
850
- }, F = (o, a, u, S) => {
851
- const v = h(t.errors, o), f = m.isValid && pe(a) && t.isValid !== a;
852
- if (e.delayError && u ? (d = C(() => V(o, u)), d(e.delayError)) : (clearTimeout(_), d = null, u ? U(t.errors, o, u) : J(t.errors, o)), (u ? !Ie(v, u) : v) || !ae(S) || f) {
853
- const A = {
854
- ...S,
855
- ...f && pe(a) ? { isValid: a } : {},
856
- errors: t.errors,
857
- name: o
858
- };
859
- t = {
860
- ...t,
861
- ...A
862
- }, g.state.next(A);
863
- }
864
- }, k = async (o) => {
865
- M(o, !0);
866
- const a = await r.resolver(i, r.context, zs(o || c.mount, s, r.criteriaMode, r.shouldUseNativeValidation));
867
- return M(o), a;
868
- }, Q = async (o) => {
869
- const { errors: a } = await k(o);
870
- if (o)
871
- for (const u of o) {
872
- const S = h(a, u);
873
- S ? U(t.errors, u, S) : J(t.errors, u);
874
- }
875
- else
876
- t.errors = a;
877
- return a;
878
- }, Y = async (o, a, u = {
879
- valid: !0
880
- }) => {
881
- for (const S in o) {
882
- const v = o[S];
883
- if (v) {
884
- const { _f: f, ...A } = v;
885
- if (f) {
886
- const j = c.array.has(f.name), re = v._f && Ys(v._f);
887
- re && m.validatingFields && M([S], !0);
888
- const se = await Pt(v, i, D, r.shouldUseNativeValidation && !a, j);
889
- if (re && m.validatingFields && M([S]), se[f.name] && (u.valid = !1, a))
890
- break;
891
- !a && (h(se, f.name) ? j ? xr(t.errors, se, f.name) : U(t.errors, f.name, se[f.name]) : J(t.errors, f.name));
892
- }
893
- !ae(A) && await Y(A, a, u);
894
- }
895
- }
896
- return u.valid;
897
- }, ce = () => {
898
- for (const o of c.unMount) {
899
- const a = h(s, o);
900
- a && (a._f.refs ? a._f.refs.every((u) => !It(u)) : !It(a._f.ref)) && we(o);
901
- }
902
- c.unMount = /* @__PURE__ */ new Set();
903
- }, T = (o, a) => (o && a && U(i, o, a), !Ie(Me(), n)), P = (o, a, u) => vr(o, c, {
904
- ...l.mount ? i : q(a) ? n : xe(o) ? { [o]: a } : a
905
- }, u, a), L = (o) => Je(h(l.mount ? i : n, o, e.shouldUnregister ? h(n, o, []) : [])), W = (o, a, u = {}) => {
906
- const S = h(s, o);
907
- let v = a;
908
- if (S) {
909
- const f = S._f;
910
- f && (!f.disabled && U(i, o, Ar(a, f)), v = lt(f.ref) && le(a) ? "" : a, br(f.ref) ? [...f.ref.options].forEach((A) => A.selected = v.includes(A.value)) : f.refs ? Qe(f.ref) ? f.refs.length > 1 ? f.refs.forEach((A) => (!A.defaultChecked || !A.disabled) && (A.checked = Array.isArray(v) ? !!v.find((j) => j === A.value) : v === A.value)) : f.refs[0] && (f.refs[0].checked = !!v) : f.refs.forEach((A) => A.checked = A.value === v) : Wt(f.ref) ? f.ref.value = "" : (f.ref.value = v, f.ref.type || g.values.next({
911
- name: o,
912
- values: { ...i }
913
- })));
914
- }
915
- (u.shouldDirty || u.shouldTouch) && w(o, v, u.shouldTouch, u.shouldDirty, !0), u.shouldValidate && Se(o);
916
- }, K = (o, a, u) => {
917
- for (const S in a) {
918
- const v = a[S], f = `${o}.${S}`, A = h(s, f);
919
- (c.array.has(o) || !ut(v) || A && !A._f) && !$e(v) ? K(f, v, u) : W(f, v, u);
920
- }
921
- }, X = (o, a, u = {}) => {
922
- const S = h(s, o), v = c.array.has(o), f = te(a);
923
- U(i, o, f), v ? (g.array.next({
924
- name: o,
925
- values: { ...i }
926
- }), (m.isDirty || m.dirtyFields) && u.shouldDirty && g.state.next({
927
- name: o,
928
- dirtyFields: ot(n, i),
929
- isDirty: T(o, f)
930
- })) : S && !S._f && !le(f) ? K(o, f, u) : W(o, f, u), Dt(o, c) && g.state.next({ ...t }), g.values.next({
931
- name: l.mount ? o : void 0,
932
- values: { ...i }
933
- });
934
- }, ie = async (o) => {
935
- l.mount = !0;
936
- const a = o.target;
937
- let u = a.name, S = !0;
938
- const v = h(s, u), f = () => a.type ? Rt(v._f) : dr(o), A = (j) => {
939
- S = Number.isNaN(j) || Ie(j, h(i, u, j));
940
- };
941
- if (v) {
942
- let j, re;
943
- const se = f(), Oe = o.type === at.BLUR || o.type === at.FOCUS_OUT, us = !Xs(v._f) && !r.resolver && !h(t.errors, u) && !v._f.deps || Zs(Oe, h(t.touchedFields, u), t.isSubmitted, O, E), vt = Dt(u, c, Oe);
944
- U(i, u, se), Oe ? (v._f.onBlur && v._f.onBlur(o), d && d(0)) : v._f.onChange && v._f.onChange(o);
945
- const xt = w(u, se, Oe, !1), ds = !ae(xt) || vt;
946
- if (!Oe && g.values.next({
947
- name: u,
948
- type: o.type,
949
- values: { ...i }
950
- }), us)
951
- return m.isValid && (e.mode === "onBlur" ? Oe && R() : R()), ds && g.state.next({ name: u, ...vt ? {} : xt });
952
- if (!Oe && vt && g.state.next({ ...t }), r.resolver) {
953
- const { errors: qt } = await k([u]);
954
- if (A(se), S) {
955
- const fs = sr(t.errors, s, u), Gt = sr(qt, s, fs.name || u);
956
- j = Gt.error, u = Gt.name, re = ae(qt);
957
- }
958
- } else
959
- M([u], !0), j = (await Pt(v, i, D, r.shouldUseNativeValidation))[u], M([u]), A(se), S && (j ? re = !1 : m.isValid && (re = await Y(s, !0)));
960
- S && (v._f.deps && Se(v._f.deps), F(u, re, j, xt));
961
- }
962
- }, ue = (o, a) => {
963
- if (h(t.errors, a) && o.focus)
964
- return o.focus(), 1;
965
- }, Se = async (o, a = {}) => {
966
- let u, S;
967
- const v = fe(o);
968
- if (r.resolver) {
969
- const f = await Q(q(o) ? o : v);
970
- u = ae(f), S = o ? !v.some((A) => h(f, A)) : u;
971
- } else o ? (S = (await Promise.all(v.map(async (f) => {
972
- const A = h(s, f);
973
- return await Y(A && A._f ? { [f]: A } : A);
974
- }))).every(Boolean), !(!S && !t.isValid) && R()) : S = u = await Y(s);
975
- return g.state.next({
976
- ...!xe(o) || m.isValid && u !== t.isValid ? {} : { name: o },
977
- ...r.resolver || !o ? { isValid: u } : {},
978
- errors: t.errors
979
- }), a.shouldFocus && !S && qe(s, ue, o ? v : c.mount), S;
980
- }, Me = (o) => {
981
- const a = {
982
- ...l.mount ? i : n
983
- };
984
- return q(o) ? a : xe(o) ? h(a, o) : o.map((u) => h(a, u));
985
- }, Le = (o, a) => ({
986
- invalid: !!h((a || t).errors, o),
987
- isDirty: !!h((a || t).dirtyFields, o),
988
- error: h((a || t).errors, o),
989
- isValidating: !!h(t.validatingFields, o),
990
- isTouched: !!h((a || t).touchedFields, o)
991
- }), ze = (o) => {
992
- o && fe(o).forEach((a) => J(t.errors, a)), g.state.next({
993
- errors: o ? t.errors : {}
994
- });
995
- }, be = (o, a, u) => {
996
- const S = (h(s, o, { _f: {} })._f || {}).ref, v = h(t.errors, o) || {}, { ref: f, message: A, type: j, ...re } = v;
997
- U(t.errors, o, {
998
- ...re,
999
- ...a,
1000
- ref: S
1001
- }), g.state.next({
1002
- name: o,
1003
- errors: t.errors,
1004
- isValid: !1
1005
- }), u && u.shouldFocus && S && S.focus && S.focus();
1006
- }, Be = (o, a) => Ve(o) ? g.values.subscribe({
1007
- next: (u) => o(P(void 0, a), u)
1008
- }) : P(o, a, !0), we = (o, a = {}) => {
1009
- for (const u of o ? fe(o) : c.mount)
1010
- c.mount.delete(u), c.array.delete(u), a.keepValue || (J(s, u), J(i, u)), !a.keepError && J(t.errors, u), !a.keepDirty && J(t.dirtyFields, u), !a.keepTouched && J(t.touchedFields, u), !a.keepIsValidating && J(t.validatingFields, u), !r.shouldUnregister && !a.keepDefaultValue && J(n, u);
1011
- g.values.next({
1012
- values: { ...i }
1013
- }), g.state.next({
1014
- ...t,
1015
- ...a.keepDirty ? { isDirty: T() } : {}
1016
- }), !a.keepIsValid && R();
1017
- }, N = ({ disabled: o, name: a, field: u, fields: S, value: v }) => {
1018
- if (pe(o) && l.mount || o) {
1019
- const f = o ? void 0 : q(v) ? Rt(u ? u._f : h(S, a)._f) : v;
1020
- U(i, a, f), w(a, f, !1, !1, !0);
1021
- }
1022
- }, $ = (o, a = {}) => {
1023
- let u = h(s, o);
1024
- const S = pe(a.disabled) || pe(e.disabled);
1025
- return U(s, o, {
1026
- ...u || {},
1027
- _f: {
1028
- ...u && u._f ? u._f : { ref: { name: o } },
1029
- name: o,
1030
- mount: !0,
1031
- ...a
1032
- }
1033
- }), c.mount.add(o), u ? N({
1034
- field: u,
1035
- disabled: pe(a.disabled) ? a.disabled : e.disabled,
1036
- name: o,
1037
- value: a.value
1038
- }) : x(o, !0, a.value), {
1039
- ...S ? { disabled: a.disabled || e.disabled } : {},
1040
- ...r.progressive ? {
1041
- required: !!a.required,
1042
- min: Ye(a.min),
1043
- max: Ye(a.max),
1044
- minLength: Ye(a.minLength),
1045
- maxLength: Ye(a.maxLength),
1046
- pattern: Ye(a.pattern)
1047
- } : {},
1048
- name: o,
1049
- onChange: ie,
1050
- onBlur: ie,
1051
- ref: (v) => {
1052
- if (v) {
1053
- $(o, a), u = h(s, o);
1054
- const f = q(v.value) && v.querySelectorAll && v.querySelectorAll("input,select,textarea")[0] || v, A = Gs(f), j = u._f.refs || [];
1055
- if (A ? j.find((re) => re === f) : f === u._f.ref)
1056
- return;
1057
- U(s, o, {
1058
- _f: {
1059
- ...u._f,
1060
- ...A ? {
1061
- refs: [
1062
- ...j.filter(It),
1063
- f,
1064
- ...Array.isArray(h(n, o)) ? [{}] : []
1065
- ],
1066
- ref: { type: f.type, name: o }
1067
- } : { ref: f }
1068
- }
1069
- }), x(o, !1, void 0, f);
1070
- } else
1071
- u = h(s, o, {}), u._f && (u._f.mount = !1), (r.shouldUnregister || a.shouldUnregister) && !(fr(c.array, o) && l.action) && c.unMount.add(o);
1072
- }
1073
- };
1074
- }, ne = () => r.shouldFocusError && qe(s, ue, c.mount), G = (o) => {
1075
- pe(o) && (g.state.next({ disabled: o }), qe(s, (a, u) => {
1076
- const S = h(s, u);
1077
- S && (a.disabled = S._f.disabled || o, Array.isArray(S._f.refs) && S._f.refs.forEach((v) => {
1078
- v.disabled = S._f.disabled || o;
1079
- }));
1080
- }, 0, !1));
1081
- }, B = (o, a) => async (u) => {
1082
- let S;
1083
- u && (u.preventDefault && u.preventDefault(), u.persist && u.persist());
1084
- let v = te(i);
1085
- if (g.state.next({
1086
- isSubmitting: !0
1087
- }), r.resolver) {
1088
- const { errors: f, values: A } = await k();
1089
- t.errors = f, v = A;
1090
- } else
1091
- await Y(s);
1092
- if (J(t.errors, "root"), ae(t.errors)) {
1093
- g.state.next({
1094
- errors: {}
1095
- });
1096
- try {
1097
- await o(v, u);
1098
- } catch (f) {
1099
- S = f;
1100
- }
1101
- } else
1102
- a && await a({ ...t.errors }, u), ne(), setTimeout(ne);
1103
- if (g.state.next({
1104
- isSubmitted: !0,
1105
- isSubmitting: !1,
1106
- isSubmitSuccessful: ae(t.errors) && !S,
1107
- submitCount: t.submitCount + 1,
1108
- errors: t.errors
1109
- }), S)
1110
- throw S;
1111
- }, H = (o, a = {}) => {
1112
- h(s, o) && (q(a.defaultValue) ? X(o, te(h(n, o))) : (X(o, a.defaultValue), U(n, o, te(a.defaultValue))), a.keepTouched || J(t.touchedFields, o), a.keepDirty || (J(t.dirtyFields, o), t.isDirty = a.defaultValue ? T(o, te(h(n, o))) : T()), a.keepError || (J(t.errors, o), m.isValid && R()), g.state.next({ ...t }));
1113
- }, ge = (o, a = {}) => {
1114
- const u = o ? te(o) : n, S = te(u), v = ae(o), f = v ? n : S;
1115
- if (a.keepDefaultValues || (n = u), !a.keepValues) {
1116
- if (a.keepDirtyValues)
1117
- for (const A of c.mount)
1118
- h(t.dirtyFields, A) ? U(f, A, h(i, A)) : X(A, h(f, A));
1119
- else {
1120
- if (Ut && q(o))
1121
- for (const A of c.mount) {
1122
- const j = h(s, A);
1123
- if (j && j._f) {
1124
- const re = Array.isArray(j._f.refs) ? j._f.refs[0] : j._f.ref;
1125
- if (lt(re)) {
1126
- const se = re.closest("form");
1127
- if (se) {
1128
- se.reset();
1129
- break;
1130
- }
1131
- }
1132
- }
1133
- }
1134
- s = {};
1135
- }
1136
- i = e.shouldUnregister ? a.keepDefaultValues ? te(n) : {} : te(f), g.array.next({
1137
- values: { ...f }
1138
- }), g.values.next({
1139
- values: { ...f }
1140
- });
1141
- }
1142
- c = {
1143
- mount: a.keepDirtyValues ? c.mount : /* @__PURE__ */ new Set(),
1144
- unMount: /* @__PURE__ */ new Set(),
1145
- array: /* @__PURE__ */ new Set(),
1146
- watch: /* @__PURE__ */ new Set(),
1147
- watchAll: !1,
1148
- focus: ""
1149
- }, l.mount = !m.isValid || !!a.keepIsValid || !!a.keepDirtyValues, l.watch = !!e.shouldUnregister, g.state.next({
1150
- submitCount: a.keepSubmitCount ? t.submitCount : 0,
1151
- isDirty: v ? !1 : a.keepDirty ? t.isDirty : !!(a.keepDefaultValues && !Ie(o, n)),
1152
- isSubmitted: a.keepIsSubmitted ? t.isSubmitted : !1,
1153
- dirtyFields: v ? {} : a.keepDirtyValues ? a.keepDefaultValues && i ? ot(n, i) : t.dirtyFields : a.keepDefaultValues && o ? ot(n, o) : a.keepDirty ? t.dirtyFields : {},
1154
- touchedFields: a.keepTouched ? t.touchedFields : {},
1155
- errors: a.keepErrors ? t.errors : {},
1156
- isSubmitSuccessful: a.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
1157
- isSubmitting: !1
1158
- });
1159
- }, ve = (o, a) => ge(Ve(o) ? o(i) : o, a);
1160
- return {
1161
- control: {
1162
- register: $,
1163
- unregister: we,
1164
- getFieldState: Le,
1165
- handleSubmit: B,
1166
- setError: be,
1167
- _executeSchema: k,
1168
- _getWatch: P,
1169
- _getDirty: T,
1170
- _updateValid: R,
1171
- _removeUnmounted: ce,
1172
- _updateFieldArray: y,
1173
- _updateDisabledField: N,
1174
- _getFieldArray: L,
1175
- _reset: ge,
1176
- _resetDefaultValues: () => Ve(r.defaultValues) && r.defaultValues().then((o) => {
1177
- ve(o, r.resetOptions), g.state.next({
1178
- isLoading: !1
1179
- });
1180
- }),
1181
- _updateFormState: (o) => {
1182
- t = {
1183
- ...t,
1184
- ...o
1185
- };
1186
- },
1187
- _disableForm: G,
1188
- _subjects: g,
1189
- _proxyFormState: m,
1190
- _setErrors: z,
1191
- get _fields() {
1192
- return s;
1193
- },
1194
- get _formValues() {
1195
- return i;
1196
- },
1197
- get _state() {
1198
- return l;
1199
- },
1200
- set _state(o) {
1201
- l = o;
1202
- },
1203
- get _defaultValues() {
1204
- return n;
1205
- },
1206
- get _names() {
1207
- return c;
1208
- },
1209
- set _names(o) {
1210
- c = o;
1211
- },
1212
- get _formState() {
1213
- return t;
1214
- },
1215
- set _formState(o) {
1216
- t = o;
1217
- },
1218
- get _options() {
1219
- return r;
1220
- },
1221
- set _options(o) {
1222
- r = {
1223
- ...r,
1224
- ...o
1225
- };
1226
- }
1227
- },
1228
- trigger: Se,
1229
- register: $,
1230
- handleSubmit: B,
1231
- watch: Be,
1232
- setValue: X,
1233
- getValues: Me,
1234
- reset: ve,
1235
- resetField: H,
1236
- clearErrors: ze,
1237
- unregister: we,
1238
- setError: be,
1239
- setFocus: (o, a = {}) => {
1240
- const u = h(s, o), S = u && u._f;
1241
- if (S) {
1242
- const v = S.refs ? S.refs[0] : S.ref;
1243
- v.focus && (v.focus(), a.shouldSelect && v.select());
1244
- }
1245
- },
1246
- getFieldState: Le
1247
- };
1248
- }
1249
- function qo(e = {}) {
1250
- const r = I.useRef(), t = I.useRef(), [s, n] = I.useState({
1251
- isDirty: !1,
1252
- isValidating: !1,
1253
- isLoading: Ve(e.defaultValues),
1254
- isSubmitted: !1,
1255
- isSubmitting: !1,
1256
- isSubmitSuccessful: !1,
1257
- isValid: !1,
1258
- submitCount: 0,
1259
- dirtyFields: {},
1260
- touchedFields: {},
1261
- validatingFields: {},
1262
- errors: e.errors || {},
1263
- disabled: e.disabled || !1,
1264
- defaultValues: Ve(e.defaultValues) ? void 0 : e.defaultValues
1265
- });
1266
- r.current || (r.current = {
1267
- ...eo(e),
1268
- formState: s
1269
- });
1270
- const i = r.current.control;
1271
- return i._options = e, ht({
1272
- subject: i._subjects.state,
1273
- next: (l) => {
1274
- yr(l, i._proxyFormState, i._updateFormState, !0) && n({ ...i._formState });
1275
- }
1276
- }), I.useEffect(() => i._disableForm(e.disabled), [i, e.disabled]), I.useEffect(() => {
1277
- if (i._proxyFormState.isDirty) {
1278
- const l = i._getDirty();
1279
- l !== s.isDirty && i._subjects.state.next({
1280
- isDirty: l
1281
- });
1282
- }
1283
- }, [i, s.isDirty]), I.useEffect(() => {
1284
- e.values && !Ie(e.values, t.current) ? (i._reset(e.values, i._options.resetOptions), t.current = e.values, n((l) => ({ ...l }))) : i._resetDefaultValues();
1285
- }, [e.values, i]), I.useEffect(() => {
1286
- e.errors && i._setErrors(e.errors);
1287
- }, [e.errors, i]), I.useEffect(() => {
1288
- i._state.mount || (i._updateValid(), i._state.mount = !0), i._state.watch && (i._state.watch = !1, i._subjects.state.next({ ...i._formState })), i._removeUnmounted();
1289
- }), I.useEffect(() => {
1290
- e.shouldUnregister && i._subjects.values.next({
1291
- values: i._getWatch()
1292
- });
1293
- }, [e.shouldUnregister, i]), r.current.formState = mr(s, i), r.current;
1294
- }
1295
- function or(e, [r, t]) {
1296
- return Math.min(t, Math.max(r, e));
1297
- }
1298
- function to(e) {
1299
- const r = p.useRef({ value: e, previous: e });
1300
- return p.useMemo(() => (r.current.value !== e && (r.current.previous = r.current.value, r.current.value = e), r.current.previous), [e]);
1301
- }
1302
- var ro = [" ", "Enter", "ArrowUp", "ArrowDown"], so = [" ", "Enter"], et = "Select", [mt, yt, oo] = hs(et), [Ge, Go] = ms(et, [
1303
- oo,
1304
- ir
1305
- ]), gt = ir(), [no, Pe] = Ge(et), [io, ao] = Ge(et), Vr = (e) => {
1306
- const {
1307
- __scopeSelect: r,
1308
- children: t,
1309
- open: s,
1310
- defaultOpen: n,
1311
- onOpenChange: i,
1312
- value: l,
1313
- defaultValue: c,
1314
- onValueChange: d,
1315
- dir: _,
1316
- name: m,
1317
- autoComplete: g,
1318
- disabled: E,
1319
- required: O,
1320
- form: D
1321
- } = e, C = gt(r), [R, M] = p.useState(null), [y, V] = p.useState(null), [z, x] = p.useState(!1), w = Es(_), [F = !1, k] = Yt({
1322
- prop: s,
1323
- defaultProp: n,
1324
- onChange: i
1325
- }), [Q, Y] = Yt({
1326
- prop: l,
1327
- defaultProp: c,
1328
- onChange: d
1329
- }), ce = p.useRef(null), T = R ? D || !!R.closest("form") : !0, [P, L] = p.useState(/* @__PURE__ */ new Set()), W = Array.from(P).map((K) => K.props.value).join(";");
1330
- return /* @__PURE__ */ b.jsx(Ts, { ...C, children: /* @__PURE__ */ b.jsxs(
1331
- no,
1332
- {
1333
- required: O,
1334
- scope: r,
1335
- trigger: R,
1336
- onTriggerChange: M,
1337
- valueNode: y,
1338
- onValueNodeChange: V,
1339
- valueNodeHasChildren: z,
1340
- onValueNodeHasChildrenChange: x,
1341
- contentId: Bt(),
1342
- value: Q,
1343
- onValueChange: Y,
1344
- open: F,
1345
- onOpenChange: k,
1346
- dir: w,
1347
- triggerPointerDownPosRef: ce,
1348
- disabled: E,
1349
- children: [
1350
- /* @__PURE__ */ b.jsx(mt.Provider, { scope: r, children: /* @__PURE__ */ b.jsx(
1351
- io,
1352
- {
1353
- scope: e.__scopeSelect,
1354
- onNativeOptionAdd: p.useCallback((K) => {
1355
- L((X) => new Set(X).add(K));
1356
- }, []),
1357
- onNativeOptionRemove: p.useCallback((K) => {
1358
- L((X) => {
1359
- const ie = new Set(X);
1360
- return ie.delete(K), ie;
1361
- });
1362
- }, []),
1363
- children: t
1364
- }
1365
- ) }),
1366
- T ? /* @__PURE__ */ b.jsxs(
1367
- Qr,
1368
- {
1369
- "aria-hidden": !0,
1370
- required: O,
1371
- tabIndex: -1,
1372
- name: m,
1373
- autoComplete: g,
1374
- value: Q,
1375
- onChange: (K) => Y(K.target.value),
1376
- disabled: E,
1377
- form: D,
1378
- children: [
1379
- Q === void 0 ? /* @__PURE__ */ b.jsx("option", { value: "" }) : null,
1380
- Array.from(P)
1381
- ]
1382
- },
1383
- W
1384
- ) : null
1385
- ]
1386
- }
1387
- ) });
1388
- };
1389
- Vr.displayName = et;
1390
- var Fr = "SelectTrigger", Er = p.forwardRef(
1391
- (e, r) => {
1392
- const { __scopeSelect: t, disabled: s = !1, ...n } = e, i = gt(t), l = Pe(Fr, t), c = l.disabled || s, d = _e(r, l.onTriggerChange), _ = yt(t), m = p.useRef("touch"), [g, E, O] = Jr((C) => {
1393
- const R = _().filter((V) => !V.disabled), M = R.find((V) => V.value === l.value), y = es(R, C, M);
1394
- y !== void 0 && l.onValueChange(y.value);
1395
- }), D = (C) => {
1396
- c || (l.onOpenChange(!0), O()), C && (l.triggerPointerDownPosRef.current = {
1397
- x: Math.round(C.pageX),
1398
- y: Math.round(C.pageY)
1399
- });
1400
- };
1401
- return /* @__PURE__ */ b.jsx(ys, { asChild: !0, ...i, children: /* @__PURE__ */ b.jsx(
1402
- me.button,
1403
- {
1404
- type: "button",
1405
- role: "combobox",
1406
- "aria-controls": l.contentId,
1407
- "aria-expanded": l.open,
1408
- "aria-required": l.required,
1409
- "aria-autocomplete": "none",
1410
- dir: l.dir,
1411
- "data-state": l.open ? "open" : "closed",
1412
- disabled: c,
1413
- "data-disabled": c ? "" : void 0,
1414
- "data-placeholder": Zr(l.value) ? "" : void 0,
1415
- ...n,
1416
- ref: d,
1417
- onClick: oe(n.onClick, (C) => {
1418
- C.currentTarget.focus(), m.current !== "mouse" && D(C);
1419
- }),
1420
- onPointerDown: oe(n.onPointerDown, (C) => {
1421
- m.current = C.pointerType;
1422
- const R = C.target;
1423
- R.hasPointerCapture(C.pointerId) && R.releasePointerCapture(C.pointerId), C.button === 0 && C.ctrlKey === !1 && C.pointerType === "mouse" && (D(C), C.preventDefault());
1424
- }),
1425
- onKeyDown: oe(n.onKeyDown, (C) => {
1426
- const R = g.current !== "";
1427
- !(C.ctrlKey || C.altKey || C.metaKey) && C.key.length === 1 && E(C.key), !(R && C.key === " ") && ro.includes(C.key) && (D(), C.preventDefault());
1428
- })
1429
- }
1430
- ) });
1431
- }
1432
- );
1433
- Er.displayName = Fr;
1434
- var Tr = "SelectValue", Ir = p.forwardRef(
1435
- (e, r) => {
1436
- const { __scopeSelect: t, className: s, style: n, children: i, placeholder: l = "", ...c } = e, d = Pe(Tr, t), { onValueNodeHasChildrenChange: _ } = d, m = i !== void 0, g = _e(r, d.onValueNodeChange);
1437
- return De(() => {
1438
- _(m);
1439
- }, [_, m]), /* @__PURE__ */ b.jsx(
1440
- me.span,
1441
- {
1442
- ...c,
1443
- ref: g,
1444
- style: { pointerEvents: "none" },
1445
- children: Zr(d.value) ? /* @__PURE__ */ b.jsx(b.Fragment, { children: l }) : i
1446
- }
1447
- );
1448
- }
1449
- );
1450
- Ir.displayName = Tr;
1451
- var lo = "SelectIcon", Rr = p.forwardRef(
1452
- (e, r) => {
1453
- const { __scopeSelect: t, children: s, ...n } = e;
1454
- return /* @__PURE__ */ b.jsx(me.span, { "aria-hidden": !0, ...n, ref: r, children: s || "▼" });
1455
- }
1456
- );
1457
- Rr.displayName = lo;
1458
- var co = "SelectPortal", Nr = (e) => /* @__PURE__ */ b.jsx(Fs, { asChild: !0, ...e });
1459
- Nr.displayName = co;
1460
- var je = "SelectContent", Dr = p.forwardRef(
1461
- (e, r) => {
1462
- const t = Pe(je, e.__scopeSelect), [s, n] = p.useState();
1463
- if (De(() => {
1464
- n(new DocumentFragment());
1465
- }, []), !t.open) {
1466
- const i = s;
1467
- return i ? lr.createPortal(
1468
- /* @__PURE__ */ b.jsx(Pr, { scope: e.__scopeSelect, children: /* @__PURE__ */ b.jsx(mt.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ b.jsx("div", { children: e.children }) }) }),
1469
- i
1470
- ) : null;
1471
- }
1472
- return /* @__PURE__ */ b.jsx(kr, { ...e, ref: r });
1473
- }
1474
- );
1475
- Dr.displayName = je;
1476
- var ye = 10, [Pr, ke] = Ge(je), uo = "SelectContentImpl", kr = p.forwardRef(
1477
- (e, r) => {
1478
- const {
1479
- __scopeSelect: t,
1480
- position: s = "item-aligned",
1481
- onCloseAutoFocus: n,
1482
- onEscapeKeyDown: i,
1483
- onPointerDownOutside: l,
1484
- //
1485
- // PopperContent props
1486
- side: c,
1487
- sideOffset: d,
1488
- align: _,
1489
- alignOffset: m,
1490
- arrowPadding: g,
1491
- collisionBoundary: E,
1492
- collisionPadding: O,
1493
- sticky: D,
1494
- hideWhenDetached: C,
1495
- avoidCollisions: R,
1496
- //
1497
- ...M
1498
- } = e, y = Pe(je, t), [V, z] = p.useState(null), [x, w] = p.useState(null), F = _e(r, (N) => z(N)), [k, Q] = p.useState(null), [Y, ce] = p.useState(
1499
- null
1500
- ), T = yt(t), [P, L] = p.useState(!1), W = p.useRef(!1);
1501
- p.useEffect(() => {
1502
- if (V) return gs(V);
1503
- }, [V]), vs();
1504
- const K = p.useCallback(
1505
- (N) => {
1506
- const [$, ...ne] = T().map((H) => H.ref.current), [G] = ne.slice(-1), B = document.activeElement;
1507
- for (const H of N)
1508
- if (H === B || (H == null || H.scrollIntoView({ block: "nearest" }), H === $ && x && (x.scrollTop = 0), H === G && x && (x.scrollTop = x.scrollHeight), H == null || H.focus(), document.activeElement !== B)) return;
1509
- },
1510
- [T, x]
1511
- ), X = p.useCallback(
1512
- () => K([k, V]),
1513
- [K, k, V]
1514
- );
1515
- p.useEffect(() => {
1516
- P && X();
1517
- }, [P, X]);
1518
- const { onOpenChange: ie, triggerPointerDownPosRef: ue } = y;
1519
- p.useEffect(() => {
1520
- if (V) {
1521
- let N = { x: 0, y: 0 };
1522
- const $ = (G) => {
1523
- var B, H;
1524
- N = {
1525
- x: Math.abs(Math.round(G.pageX) - (((B = ue.current) == null ? void 0 : B.x) ?? 0)),
1526
- y: Math.abs(Math.round(G.pageY) - (((H = ue.current) == null ? void 0 : H.y) ?? 0))
1527
- };
1528
- }, ne = (G) => {
1529
- N.x <= 10 && N.y <= 10 ? G.preventDefault() : V.contains(G.target) || ie(!1), document.removeEventListener("pointermove", $), ue.current = null;
1530
- };
1531
- return ue.current !== null && (document.addEventListener("pointermove", $), document.addEventListener("pointerup", ne, { capture: !0, once: !0 })), () => {
1532
- document.removeEventListener("pointermove", $), document.removeEventListener("pointerup", ne, { capture: !0 });
1533
- };
1534
- }
1535
- }, [V, ie, ue]), p.useEffect(() => {
1536
- const N = () => ie(!1);
1537
- return window.addEventListener("blur", N), window.addEventListener("resize", N), () => {
1538
- window.removeEventListener("blur", N), window.removeEventListener("resize", N);
1539
- };
1540
- }, [ie]);
1541
- const [Se, Me] = Jr((N) => {
1542
- const $ = T().filter((B) => !B.disabled), ne = $.find((B) => B.ref.current === document.activeElement), G = es($, N, ne);
1543
- G && setTimeout(() => G.ref.current.focus());
1544
- }), Le = p.useCallback(
1545
- (N, $, ne) => {
1546
- const G = !W.current && !ne;
1547
- (y.value !== void 0 && y.value === $ || G) && (Q(N), G && (W.current = !0));
1548
- },
1549
- [y.value]
1550
- ), ze = p.useCallback(() => V == null ? void 0 : V.focus(), [V]), be = p.useCallback(
1551
- (N, $, ne) => {
1552
- const G = !W.current && !ne;
1553
- (y.value !== void 0 && y.value === $ || G) && ce(N);
1554
- },
1555
- [y.value]
1556
- ), Be = s === "popper" ? kt : Mr, we = Be === kt ? {
1557
- side: c,
1558
- sideOffset: d,
1559
- align: _,
1560
- alignOffset: m,
1561
- arrowPadding: g,
1562
- collisionBoundary: E,
1563
- collisionPadding: O,
1564
- sticky: D,
1565
- hideWhenDetached: C,
1566
- avoidCollisions: R
1567
- } : {};
1568
- return /* @__PURE__ */ b.jsx(
1569
- Pr,
1570
- {
1571
- scope: t,
1572
- content: V,
1573
- viewport: x,
1574
- onViewportChange: w,
1575
- itemRefCallback: Le,
1576
- selectedItem: k,
1577
- onItemLeave: ze,
1578
- itemTextRefCallback: be,
1579
- focusSelectedItem: X,
1580
- selectedItemText: Y,
1581
- position: s,
1582
- isPositioned: P,
1583
- searchRef: Se,
1584
- children: /* @__PURE__ */ b.jsx(xs, { as: _s, allowPinchZoom: !0, children: /* @__PURE__ */ b.jsx(
1585
- Ss,
1586
- {
1587
- asChild: !0,
1588
- trapped: y.open,
1589
- onMountAutoFocus: (N) => {
1590
- N.preventDefault();
1591
- },
1592
- onUnmountAutoFocus: oe(n, (N) => {
1593
- var $;
1594
- ($ = y.trigger) == null || $.focus({ preventScroll: !0 }), N.preventDefault();
1595
- }),
1596
- children: /* @__PURE__ */ b.jsx(
1597
- bs,
1598
- {
1599
- asChild: !0,
1600
- disableOutsidePointerEvents: !0,
1601
- onEscapeKeyDown: i,
1602
- onPointerDownOutside: l,
1603
- onFocusOutside: (N) => N.preventDefault(),
1604
- onDismiss: () => y.onOpenChange(!1),
1605
- children: /* @__PURE__ */ b.jsx(
1606
- Be,
1607
- {
1608
- role: "listbox",
1609
- id: y.contentId,
1610
- "data-state": y.open ? "open" : "closed",
1611
- dir: y.dir,
1612
- onContextMenu: (N) => N.preventDefault(),
1613
- ...M,
1614
- ...we,
1615
- onPlaced: () => L(!0),
1616
- ref: F,
1617
- style: {
1618
- // flex layout so we can place the scroll buttons properly
1619
- display: "flex",
1620
- flexDirection: "column",
1621
- // reset the outline by default as the content MAY get focused
1622
- outline: "none",
1623
- ...M.style
1624
- },
1625
- onKeyDown: oe(M.onKeyDown, (N) => {
1626
- const $ = N.ctrlKey || N.altKey || N.metaKey;
1627
- if (N.key === "Tab" && N.preventDefault(), !$ && N.key.length === 1 && Me(N.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(N.key)) {
1628
- let G = T().filter((B) => !B.disabled).map((B) => B.ref.current);
1629
- if (["ArrowUp", "End"].includes(N.key) && (G = G.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(N.key)) {
1630
- const B = N.target, H = G.indexOf(B);
1631
- G = G.slice(H + 1);
1632
- }
1633
- setTimeout(() => K(G)), N.preventDefault();
1634
- }
1635
- })
1636
- }
1637
- )
1638
- }
1639
- )
1640
- }
1641
- ) })
1642
- }
1643
- );
1644
- }
1645
- );
1646
- kr.displayName = uo;
1647
- var fo = "SelectItemAlignedPosition", Mr = p.forwardRef((e, r) => {
1648
- const { __scopeSelect: t, onPlaced: s, ...n } = e, i = Pe(je, t), l = ke(je, t), [c, d] = p.useState(null), [_, m] = p.useState(null), g = _e(r, (F) => m(F)), E = yt(t), O = p.useRef(!1), D = p.useRef(!0), { viewport: C, selectedItem: R, selectedItemText: M, focusSelectedItem: y } = l, V = p.useCallback(() => {
1649
- if (i.trigger && i.valueNode && c && _ && C && R && M) {
1650
- const F = i.trigger.getBoundingClientRect(), k = _.getBoundingClientRect(), Q = i.valueNode.getBoundingClientRect(), Y = M.getBoundingClientRect();
1651
- if (i.dir !== "rtl") {
1652
- const B = Y.left - k.left, H = Q.left - B, ge = F.left - H, ve = F.width + ge, tt = Math.max(ve, k.width), rt = window.innerWidth - ye, st = or(H, [
1653
- ye,
1654
- // Prevents the content from going off the starting edge of the
1655
- // viewport. It may still go off the ending edge, but this can be
1656
- // controlled by the user since they may want to manage overflow in a
1657
- // specific way.
1658
- // https://github.com/radix-ui/primitives/issues/2049
1659
- Math.max(ye, rt - tt)
1660
- ]);
1661
- c.style.minWidth = ve + "px", c.style.left = st + "px";
1662
- } else {
1663
- const B = k.right - Y.right, H = window.innerWidth - Q.right - B, ge = window.innerWidth - F.right - H, ve = F.width + ge, tt = Math.max(ve, k.width), rt = window.innerWidth - ye, st = or(H, [
1664
- ye,
1665
- Math.max(ye, rt - tt)
1666
- ]);
1667
- c.style.minWidth = ve + "px", c.style.right = st + "px";
1668
- }
1669
- const ce = E(), T = window.innerHeight - ye * 2, P = C.scrollHeight, L = window.getComputedStyle(_), W = parseInt(L.borderTopWidth, 10), K = parseInt(L.paddingTop, 10), X = parseInt(L.borderBottomWidth, 10), ie = parseInt(L.paddingBottom, 10), ue = W + K + P + ie + X, Se = Math.min(R.offsetHeight * 5, ue), Me = window.getComputedStyle(C), Le = parseInt(Me.paddingTop, 10), ze = parseInt(Me.paddingBottom, 10), be = F.top + F.height / 2 - ye, Be = T - be, we = R.offsetHeight / 2, N = R.offsetTop + we, $ = W + K + N, ne = ue - $;
1670
- if ($ <= be) {
1671
- const B = ce.length > 0 && R === ce[ce.length - 1].ref.current;
1672
- c.style.bottom = "0px";
1673
- const H = _.clientHeight - C.offsetTop - C.offsetHeight, ge = Math.max(
1674
- Be,
1675
- we + // viewport might have padding bottom, include it to avoid a scrollable viewport
1676
- (B ? ze : 0) + H + X
1677
- ), ve = $ + ge;
1678
- c.style.height = ve + "px";
1679
- } else {
1680
- const B = ce.length > 0 && R === ce[0].ref.current;
1681
- c.style.top = "0px";
1682
- const ge = Math.max(
1683
- be,
1684
- W + C.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
1685
- (B ? Le : 0) + we
1686
- ) + ne;
1687
- c.style.height = ge + "px", C.scrollTop = $ - be + C.offsetTop;
1688
- }
1689
- c.style.margin = `${ye}px 0`, c.style.minHeight = Se + "px", c.style.maxHeight = T + "px", s == null || s(), requestAnimationFrame(() => O.current = !0);
1690
- }
1691
- }, [
1692
- E,
1693
- i.trigger,
1694
- i.valueNode,
1695
- c,
1696
- _,
1697
- C,
1698
- R,
1699
- M,
1700
- i.dir,
1701
- s
1702
- ]);
1703
- De(() => V(), [V]);
1704
- const [z, x] = p.useState();
1705
- De(() => {
1706
- _ && x(window.getComputedStyle(_).zIndex);
1707
- }, [_]);
1708
- const w = p.useCallback(
1709
- (F) => {
1710
- F && D.current === !0 && (V(), y == null || y(), D.current = !1);
1711
- },
1712
- [V, y]
1713
- );
1714
- return /* @__PURE__ */ b.jsx(
1715
- ho,
1716
- {
1717
- scope: t,
1718
- contentWrapper: c,
1719
- shouldExpandOnScrollRef: O,
1720
- onScrollButtonChange: w,
1721
- children: /* @__PURE__ */ b.jsx(
1722
- "div",
1723
- {
1724
- ref: d,
1725
- style: {
1726
- display: "flex",
1727
- flexDirection: "column",
1728
- position: "fixed",
1729
- zIndex: z
1730
- },
1731
- children: /* @__PURE__ */ b.jsx(
1732
- me.div,
1733
- {
1734
- ...n,
1735
- ref: g,
1736
- style: {
1737
- // When we get the height of the content, it includes borders. If we were to set
1738
- // the height without having `boxSizing: 'border-box'` it would be too big.
1739
- boxSizing: "border-box",
1740
- // We need to ensure the content doesn't get taller than the wrapper
1741
- maxHeight: "100%",
1742
- ...n.style
1743
- }
1744
- }
1745
- )
1746
- }
1747
- )
1748
- }
1749
- );
1750
- });
1751
- Mr.displayName = fo;
1752
- var po = "SelectPopperPosition", kt = p.forwardRef((e, r) => {
1753
- const {
1754
- __scopeSelect: t,
1755
- align: s = "start",
1756
- collisionPadding: n = ye,
1757
- ...i
1758
- } = e, l = gt(t);
1759
- return /* @__PURE__ */ b.jsx(
1760
- ws,
1761
- {
1762
- ...l,
1763
- ...i,
1764
- ref: r,
1765
- align: s,
1766
- collisionPadding: n,
1767
- style: {
1768
- // Ensure border-box for floating-ui calculations
1769
- boxSizing: "border-box",
1770
- ...i.style,
1771
- "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
1772
- "--radix-select-content-available-width": "var(--radix-popper-available-width)",
1773
- "--radix-select-content-available-height": "var(--radix-popper-available-height)",
1774
- "--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
1775
- "--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
1776
- }
1777
- }
1778
- );
1779
- });
1780
- kt.displayName = po;
1781
- var [ho, $t] = Ge(je, {}), Mt = "SelectViewport", Or = p.forwardRef(
1782
- (e, r) => {
1783
- const { __scopeSelect: t, nonce: s, ...n } = e, i = ke(Mt, t), l = $t(Mt, t), c = _e(r, i.onViewportChange), d = p.useRef(0);
1784
- return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
1785
- /* @__PURE__ */ b.jsx(
1786
- "style",
1787
- {
1788
- dangerouslySetInnerHTML: {
1789
- __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
1790
- },
1791
- nonce: s
1792
- }
1793
- ),
1794
- /* @__PURE__ */ b.jsx(mt.Slot, { scope: t, children: /* @__PURE__ */ b.jsx(
1795
- me.div,
1796
- {
1797
- "data-radix-select-viewport": "",
1798
- role: "presentation",
1799
- ...n,
1800
- ref: c,
1801
- style: {
1802
- // we use position: 'relative' here on the `viewport` so that when we call
1803
- // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
1804
- // (independent of the scrollUpButton).
1805
- position: "relative",
1806
- flex: 1,
1807
- // Viewport should only be scrollable in the vertical direction.
1808
- // This won't work in vertical writing modes, so we'll need to
1809
- // revisit this if/when that is supported
1810
- // https://developer.chrome.com/blog/vertical-form-controls
1811
- overflow: "hidden auto",
1812
- ...n.style
1813
- },
1814
- onScroll: oe(n.onScroll, (_) => {
1815
- const m = _.currentTarget, { contentWrapper: g, shouldExpandOnScrollRef: E } = l;
1816
- if (E != null && E.current && g) {
1817
- const O = Math.abs(d.current - m.scrollTop);
1818
- if (O > 0) {
1819
- const D = window.innerHeight - ye * 2, C = parseFloat(g.style.minHeight), R = parseFloat(g.style.height), M = Math.max(C, R);
1820
- if (M < D) {
1821
- const y = M + O, V = Math.min(D, y), z = y - V;
1822
- g.style.height = V + "px", g.style.bottom === "0px" && (m.scrollTop = z > 0 ? z : 0, g.style.justifyContent = "flex-end");
1823
- }
1824
- }
1825
- }
1826
- d.current = m.scrollTop;
1827
- })
1828
- }
1829
- ) })
1830
- ] });
1831
- }
1832
- );
1833
- Or.displayName = Mt;
1834
- var jr = "SelectGroup", [mo, yo] = Ge(jr), Lr = p.forwardRef(
1835
- (e, r) => {
1836
- const { __scopeSelect: t, ...s } = e, n = Bt();
1837
- return /* @__PURE__ */ b.jsx(mo, { scope: t, id: n, children: /* @__PURE__ */ b.jsx(me.div, { role: "group", "aria-labelledby": n, ...s, ref: r }) });
1838
- }
1839
- );
1840
- Lr.displayName = jr;
1841
- var Br = "SelectLabel", Ur = p.forwardRef(
1842
- (e, r) => {
1843
- const { __scopeSelect: t, ...s } = e, n = yo(Br, t);
1844
- return /* @__PURE__ */ b.jsx(me.div, { id: n.id, ...s, ref: r });
1845
- }
1846
- );
1847
- Ur.displayName = Br;
1848
- var ft = "SelectItem", [go, Hr] = Ge(ft), Wr = p.forwardRef(
1849
- (e, r) => {
1850
- const {
1851
- __scopeSelect: t,
1852
- value: s,
1853
- disabled: n = !1,
1854
- textValue: i,
1855
- ...l
1856
- } = e, c = Pe(ft, t), d = ke(ft, t), _ = c.value === s, [m, g] = p.useState(i ?? ""), [E, O] = p.useState(!1), D = _e(
1857
- r,
1858
- (y) => {
1859
- var V;
1860
- return (V = d.itemRefCallback) == null ? void 0 : V.call(d, y, s, n);
1861
- }
1862
- ), C = Bt(), R = p.useRef("touch"), M = () => {
1863
- n || (c.onValueChange(s), c.onOpenChange(!1));
1864
- };
1865
- if (s === "")
1866
- throw new Error(
1867
- "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
1868
- );
1869
- return /* @__PURE__ */ b.jsx(
1870
- go,
1871
- {
1872
- scope: t,
1873
- value: s,
1874
- disabled: n,
1875
- textId: C,
1876
- isSelected: _,
1877
- onItemTextChange: p.useCallback((y) => {
1878
- g((V) => V || ((y == null ? void 0 : y.textContent) ?? "").trim());
1879
- }, []),
1880
- children: /* @__PURE__ */ b.jsx(
1881
- mt.ItemSlot,
1882
- {
1883
- scope: t,
1884
- value: s,
1885
- disabled: n,
1886
- textValue: m,
1887
- children: /* @__PURE__ */ b.jsx(
1888
- me.div,
1889
- {
1890
- role: "option",
1891
- "aria-labelledby": C,
1892
- "data-highlighted": E ? "" : void 0,
1893
- "aria-selected": _ && E,
1894
- "data-state": _ ? "checked" : "unchecked",
1895
- "aria-disabled": n || void 0,
1896
- "data-disabled": n ? "" : void 0,
1897
- tabIndex: n ? void 0 : -1,
1898
- ...l,
1899
- ref: D,
1900
- onFocus: oe(l.onFocus, () => O(!0)),
1901
- onBlur: oe(l.onBlur, () => O(!1)),
1902
- onClick: oe(l.onClick, () => {
1903
- R.current !== "mouse" && M();
1904
- }),
1905
- onPointerUp: oe(l.onPointerUp, () => {
1906
- R.current === "mouse" && M();
1907
- }),
1908
- onPointerDown: oe(l.onPointerDown, (y) => {
1909
- R.current = y.pointerType;
1910
- }),
1911
- onPointerMove: oe(l.onPointerMove, (y) => {
1912
- var V;
1913
- R.current = y.pointerType, n ? (V = d.onItemLeave) == null || V.call(d) : R.current === "mouse" && y.currentTarget.focus({ preventScroll: !0 });
1914
- }),
1915
- onPointerLeave: oe(l.onPointerLeave, (y) => {
1916
- var V;
1917
- y.currentTarget === document.activeElement && ((V = d.onItemLeave) == null || V.call(d));
1918
- }),
1919
- onKeyDown: oe(l.onKeyDown, (y) => {
1920
- var z;
1921
- ((z = d.searchRef) == null ? void 0 : z.current) !== "" && y.key === " " || (so.includes(y.key) && M(), y.key === " " && y.preventDefault());
1922
- })
1923
- }
1924
- )
1925
- }
1926
- )
1927
- }
1928
- );
1929
- }
1930
- );
1931
- Wr.displayName = ft;
1932
- var Xe = "SelectItemText", Kr = p.forwardRef(
1933
- (e, r) => {
1934
- const { __scopeSelect: t, className: s, style: n, ...i } = e, l = Pe(Xe, t), c = ke(Xe, t), d = Hr(Xe, t), _ = ao(Xe, t), [m, g] = p.useState(null), E = _e(
1935
- r,
1936
- (M) => g(M),
1937
- d.onItemTextChange,
1938
- (M) => {
1939
- var y;
1940
- return (y = c.itemTextRefCallback) == null ? void 0 : y.call(c, M, d.value, d.disabled);
1941
- }
1942
- ), O = m == null ? void 0 : m.textContent, D = p.useMemo(
1943
- () => /* @__PURE__ */ b.jsx("option", { value: d.value, disabled: d.disabled, children: O }, d.value),
1944
- [d.disabled, d.value, O]
1945
- ), { onNativeOptionAdd: C, onNativeOptionRemove: R } = _;
1946
- return De(() => (C(D), () => R(D)), [C, R, D]), /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
1947
- /* @__PURE__ */ b.jsx(me.span, { id: d.textId, ...i, ref: E }),
1948
- d.isSelected && l.valueNode && !l.valueNodeHasChildren ? lr.createPortal(i.children, l.valueNode) : null
1949
- ] });
1950
- }
1951
- );
1952
- Kr.displayName = Xe;
1953
- var $r = "SelectItemIndicator", qr = p.forwardRef(
1954
- (e, r) => {
1955
- const { __scopeSelect: t, ...s } = e;
1956
- return Hr($r, t).isSelected ? /* @__PURE__ */ b.jsx(me.span, { "aria-hidden": !0, ...s, ref: r }) : null;
1957
- }
1958
- );
1959
- qr.displayName = $r;
1960
- var Ot = "SelectScrollUpButton", Gr = p.forwardRef((e, r) => {
1961
- const t = ke(Ot, e.__scopeSelect), s = $t(Ot, e.__scopeSelect), [n, i] = p.useState(!1), l = _e(r, s.onScrollButtonChange);
1962
- return De(() => {
1963
- if (t.viewport && t.isPositioned) {
1964
- let c = function() {
1965
- const _ = d.scrollTop > 0;
1966
- i(_);
1967
- };
1968
- const d = t.viewport;
1969
- return c(), d.addEventListener("scroll", c), () => d.removeEventListener("scroll", c);
1970
- }
1971
- }, [t.viewport, t.isPositioned]), n ? /* @__PURE__ */ b.jsx(
1972
- Yr,
1973
- {
1974
- ...e,
1975
- ref: l,
1976
- onAutoScroll: () => {
1977
- const { viewport: c, selectedItem: d } = t;
1978
- c && d && (c.scrollTop = c.scrollTop - d.offsetHeight);
1979
- }
1980
- }
1981
- ) : null;
1982
- });
1983
- Gr.displayName = Ot;
1984
- var jt = "SelectScrollDownButton", zr = p.forwardRef((e, r) => {
1985
- const t = ke(jt, e.__scopeSelect), s = $t(jt, e.__scopeSelect), [n, i] = p.useState(!1), l = _e(r, s.onScrollButtonChange);
1986
- return De(() => {
1987
- if (t.viewport && t.isPositioned) {
1988
- let c = function() {
1989
- const _ = d.scrollHeight - d.clientHeight, m = Math.ceil(d.scrollTop) < _;
1990
- i(m);
1991
- };
1992
- const d = t.viewport;
1993
- return c(), d.addEventListener("scroll", c), () => d.removeEventListener("scroll", c);
1994
- }
1995
- }, [t.viewport, t.isPositioned]), n ? /* @__PURE__ */ b.jsx(
1996
- Yr,
1997
- {
1998
- ...e,
1999
- ref: l,
2000
- onAutoScroll: () => {
2001
- const { viewport: c, selectedItem: d } = t;
2002
- c && d && (c.scrollTop = c.scrollTop + d.offsetHeight);
2003
- }
2004
- }
2005
- ) : null;
2006
- });
2007
- zr.displayName = jt;
2008
- var Yr = p.forwardRef((e, r) => {
2009
- const { __scopeSelect: t, onAutoScroll: s, ...n } = e, i = ke("SelectScrollButton", t), l = p.useRef(null), c = yt(t), d = p.useCallback(() => {
2010
- l.current !== null && (window.clearInterval(l.current), l.current = null);
2011
- }, []);
2012
- return p.useEffect(() => () => d(), [d]), De(() => {
2013
- var m;
2014
- const _ = c().find((g) => g.ref.current === document.activeElement);
2015
- (m = _ == null ? void 0 : _.ref.current) == null || m.scrollIntoView({ block: "nearest" });
2016
- }, [c]), /* @__PURE__ */ b.jsx(
2017
- me.div,
2018
- {
2019
- "aria-hidden": !0,
2020
- ...n,
2021
- ref: r,
2022
- style: { flexShrink: 0, ...n.style },
2023
- onPointerDown: oe(n.onPointerDown, () => {
2024
- l.current === null && (l.current = window.setInterval(s, 50));
2025
- }),
2026
- onPointerMove: oe(n.onPointerMove, () => {
2027
- var _;
2028
- (_ = i.onItemLeave) == null || _.call(i), l.current === null && (l.current = window.setInterval(s, 50));
2029
- }),
2030
- onPointerLeave: oe(n.onPointerLeave, () => {
2031
- d();
2032
- })
2033
- }
2034
- );
2035
- }), vo = "SelectSeparator", Xr = p.forwardRef(
2036
- (e, r) => {
2037
- const { __scopeSelect: t, ...s } = e;
2038
- return /* @__PURE__ */ b.jsx(me.div, { "aria-hidden": !0, ...s, ref: r });
2039
- }
2040
- );
2041
- Xr.displayName = vo;
2042
- var Lt = "SelectArrow", xo = p.forwardRef(
2043
- (e, r) => {
2044
- const { __scopeSelect: t, ...s } = e, n = gt(t), i = Pe(Lt, t), l = ke(Lt, t);
2045
- return i.open && l.position === "popper" ? /* @__PURE__ */ b.jsx(Cs, { ...n, ...s, ref: r }) : null;
2046
- }
2047
- );
2048
- xo.displayName = Lt;
2049
- function Zr(e) {
2050
- return e === "" || e === void 0;
2051
- }
2052
- var Qr = p.forwardRef(
2053
- (e, r) => {
2054
- const { value: t, ...s } = e, n = p.useRef(null), i = _e(r, n), l = to(t);
2055
- return p.useEffect(() => {
2056
- const c = n.current, d = window.HTMLSelectElement.prototype, m = Object.getOwnPropertyDescriptor(
2057
- d,
2058
- "value"
2059
- ).set;
2060
- if (l !== t && m) {
2061
- const g = new Event("change", { bubbles: !0 });
2062
- m.call(c, t), c.dispatchEvent(g);
2063
- }
2064
- }, [l, t]), /* @__PURE__ */ b.jsx(As, { asChild: !0, children: /* @__PURE__ */ b.jsx("select", { ...s, ref: i, defaultValue: t }) });
2065
- }
2066
- );
2067
- Qr.displayName = "BubbleSelect";
2068
- function Jr(e) {
2069
- const r = Vs(e), t = p.useRef(""), s = p.useRef(0), n = p.useCallback(
2070
- (l) => {
2071
- const c = t.current + l;
2072
- r(c), function d(_) {
2073
- t.current = _, window.clearTimeout(s.current), _ !== "" && (s.current = window.setTimeout(() => d(""), 1e3));
2074
- }(c);
2075
- },
2076
- [r]
2077
- ), i = p.useCallback(() => {
2078
- t.current = "", window.clearTimeout(s.current);
2079
- }, []);
2080
- return p.useEffect(() => () => window.clearTimeout(s.current), []), [t, n, i];
2081
- }
2082
- function es(e, r, t) {
2083
- const n = r.length > 1 && Array.from(r).every((_) => _ === r[0]) ? r[0] : r, i = t ? e.indexOf(t) : -1;
2084
- let l = _o(e, Math.max(i, 0));
2085
- n.length === 1 && (l = l.filter((_) => _ !== t));
2086
- const d = l.find(
2087
- (_) => _.textValue.toLowerCase().startsWith(n.toLowerCase())
2088
- );
2089
- return d !== t ? d : void 0;
2090
- }
2091
- function _o(e, r) {
2092
- return e.map((t, s) => e[(r + s) % e.length]);
2093
- }
2094
- var So = Vr, ts = Er, bo = Ir, wo = Rr, Co = Nr, rs = Dr, Ao = Or, Vo = Lr, ss = Ur, os = Wr, Fo = Kr, Eo = qr, ns = Gr, is = zr, as = Xr;
2095
- const zo = So, Yo = Vo, Xo = bo, To = p.forwardRef(({ className: e, children: r, ...t }, s) => /* @__PURE__ */ b.jsxs(
2096
- ts,
2097
- {
2098
- ref: s,
2099
- className: Ee(
2100
- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
2101
- e
2102
- ),
2103
- ...t,
2104
- children: [
2105
- /* @__PURE__ */ b.jsx("span", { className: "truncate", children: r }),
2106
- /* @__PURE__ */ b.jsx(wo, { asChild: !0, children: /* @__PURE__ */ b.jsx(cr, { className: "flex-shrink-0 h-4 w-4 opacity-50" }) })
2107
- ]
2108
- }
2109
- ));
2110
- To.displayName = ts.displayName;
2111
- const ls = p.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ b.jsx(
2112
- ns,
2113
- {
2114
- ref: t,
2115
- className: Ee(
2116
- "flex cursor-default items-center justify-center py-1",
2117
- e
2118
- ),
2119
- ...r,
2120
- children: /* @__PURE__ */ b.jsx(ks, { className: "h-4 w-4" })
2121
- }
2122
- ));
2123
- ls.displayName = ns.displayName;
2124
- const cs = p.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ b.jsx(
2125
- is,
2126
- {
2127
- ref: t,
2128
- className: Ee(
2129
- "flex cursor-default items-center justify-center py-1",
2130
- e
2131
- ),
2132
- ...r,
2133
- children: /* @__PURE__ */ b.jsx(cr, { className: "h-4 w-4" })
2134
- }
2135
- ));
2136
- cs.displayName = is.displayName;
2137
- const Io = p.forwardRef(({ className: e, children: r, position: t = "popper", ...s }, n) => /* @__PURE__ */ b.jsx(Co, { children: /* @__PURE__ */ b.jsxs(
2138
- rs,
2139
- {
2140
- ref: n,
2141
- className: Ee(
2142
- "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",
2143
- t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
2144
- e
2145
- ),
2146
- position: t,
2147
- ...s,
2148
- children: [
2149
- /* @__PURE__ */ b.jsx(ls, {}),
2150
- /* @__PURE__ */ b.jsx(
2151
- Ao,
2152
- {
2153
- className: Ee(
2154
- "p-1",
2155
- t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
2156
- ),
2157
- children: r
2158
- }
2159
- ),
2160
- /* @__PURE__ */ b.jsx(cs, {})
2161
- ]
2162
- }
2163
- ) }));
2164
- Io.displayName = rs.displayName;
2165
- const Ro = p.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ b.jsx(
2166
- ss,
2167
- {
2168
- ref: t,
2169
- className: Ee("py-1.5 pl-8 pr-2 text-sm font-semibold", e),
2170
- ...r
2171
- }
2172
- ));
2173
- Ro.displayName = ss.displayName;
2174
- const No = p.forwardRef(({ className: e, children: r, ...t }, s) => /* @__PURE__ */ b.jsxs(
2175
- os,
2176
- {
2177
- ref: s,
2178
- className: Ee(
2179
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2180
- e
2181
- ),
2182
- ...t,
2183
- children: [
2184
- /* @__PURE__ */ b.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ b.jsx(Eo, { children: /* @__PURE__ */ b.jsx(Ms, { className: "h-4 w-4" }) }) }),
2185
- /* @__PURE__ */ b.jsx(Fo, { children: r })
2186
- ]
2187
- }
2188
- ));
2189
- No.displayName = os.displayName;
2190
- const Do = p.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ b.jsx(
2191
- as,
2192
- {
2193
- ref: t,
2194
- className: Ee("-mx-1 my-1 h-px bg-muted", e),
2195
- ...r
2196
- }
2197
- ));
2198
- Do.displayName = as.displayName;
2199
- const Po = p.forwardRef(
2200
- ({ className: e, type: r, ...t }, s) => /* @__PURE__ */ b.jsx(
2201
- "input",
2202
- {
2203
- type: r,
2204
- className: Ee(
2205
- "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
2206
- e
2207
- ),
2208
- ref: s,
2209
- ...t
2210
- }
2211
- )
2212
- );
2213
- Po.displayName = "Input";
2214
- export {
2215
- Ko as C,
2216
- Wo as F,
2217
- Po as I,
2218
- zo as S,
2219
- Ho as a,
2220
- To as b,
2221
- Xo as c,
2222
- Io as d,
2223
- Yo as e,
2224
- No as f,
2225
- $o as g,
2226
- pt as h,
2227
- qo as u
2228
- };
2229
- //# sourceMappingURL=Input-CO-1DOZa.js.map