zudoku 0.0.0-f9211eb → 0.0.0-f98e47d6

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 (1879) hide show
  1. package/README.md +33 -13
  2. package/cli.js +9 -2
  3. package/dist/app/ZuploBuildConfig.d.ts +45 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +22 -6
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +0 -2
  9. package/dist/app/entry.client.js +39 -4
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +0 -2
  12. package/dist/app/entry.server.js +3 -5
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +37 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +2 -1
  18. package/dist/app/main.js +41 -47
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/standalone.js +11 -7
  21. package/dist/app/standalone.js.map +1 -1
  22. package/dist/cli/build/handler.js +9 -1
  23. package/dist/cli/build/handler.js.map +1 -1
  24. package/dist/cli/cli.js +14 -2
  25. package/dist/cli/cli.js.map +1 -1
  26. package/dist/cli/cmds/build.d.ts +1 -1
  27. package/dist/cli/cmds/dev.d.ts +1 -1
  28. package/dist/cli/cmds/preview.d.ts +1 -1
  29. package/dist/cli/common/analytics/lib.js +1 -1
  30. package/dist/cli/common/analytics/lib.js.map +1 -1
  31. package/dist/cli/common/logger.js +0 -1
  32. package/dist/cli/common/logger.js.map +1 -1
  33. package/dist/cli/common/machine-id/lib.js +3 -1
  34. package/dist/cli/common/machine-id/lib.js.map +1 -1
  35. package/dist/cli/common/outdated.js +2 -1
  36. package/dist/cli/common/outdated.js.map +1 -1
  37. package/dist/cli/common/output.js +2 -3
  38. package/dist/cli/common/output.js.map +1 -1
  39. package/dist/cli/common/utils/box.js +2 -2
  40. package/dist/cli/common/utils/box.js.map +1 -1
  41. package/dist/cli/common/validators/lib.js +1 -1
  42. package/dist/cli/common/validators/lib.js.map +1 -1
  43. package/dist/cli/dev/handler.js +0 -4
  44. package/dist/cli/dev/handler.js.map +1 -1
  45. package/dist/codegen.js +2 -2
  46. package/dist/codegen.js.map +1 -1
  47. package/dist/config/config.d.ts +17 -3
  48. package/dist/config/file-exists.d.ts +1 -0
  49. package/dist/config/file-exists.js +5 -0
  50. package/dist/config/file-exists.js.map +1 -0
  51. package/dist/config/loader.d.ts +18 -17
  52. package/dist/config/loader.js +95 -103
  53. package/dist/config/loader.js.map +1 -1
  54. package/dist/config/validators/BuildSchema.d.ts +36 -0
  55. package/dist/config/validators/BuildSchema.js +25 -0
  56. package/dist/config/validators/BuildSchema.js.map +1 -0
  57. package/dist/config/validators/InputNavigationSchema.d.ts +7486 -0
  58. package/dist/config/validators/InputNavigationSchema.js +77 -0
  59. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  60. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  61. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  62. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  63. package/dist/config/validators/NavigationSchema.js +98 -0
  64. package/dist/config/validators/NavigationSchema.js.map +1 -0
  65. package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
  66. package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
  67. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  68. package/dist/config/validators/auth.d.ts +2 -2
  69. package/dist/config/validators/auth.js +1 -1
  70. package/dist/config/validators/auth.js.map +1 -1
  71. package/dist/config/validators/icon-types.d.ts +2 -1
  72. package/dist/config/validators/icon-types.js +1833 -1
  73. package/dist/config/validators/icon-types.js.map +1 -1
  74. package/dist/config/validators/validate.d.ts +591 -2760
  75. package/dist/config/validators/validate.js +441 -18
  76. package/dist/config/validators/validate.js.map +1 -1
  77. package/dist/config/validators/validate.test.js +140 -0
  78. package/dist/config/validators/validate.test.js.map +1 -0
  79. package/dist/flat-config.d.ts +331 -0
  80. package/dist/index.d.ts +10 -6
  81. package/dist/index.js +4 -0
  82. package/dist/index.js.map +1 -1
  83. package/dist/lib/MissingIcon.d.ts +1 -1
  84. package/dist/lib/MissingIcon.js.map +1 -1
  85. package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
  86. package/dist/lib/assets/language-icons/csharp.js +4 -0
  87. package/dist/lib/assets/language-icons/csharp.js.map +1 -0
  88. package/dist/lib/assets/language-icons/css.d.ts +3 -0
  89. package/dist/lib/assets/language-icons/css.js +4 -0
  90. package/dist/lib/assets/language-icons/css.js.map +1 -0
  91. package/dist/lib/assets/language-icons/go.d.ts +3 -0
  92. package/dist/lib/assets/language-icons/go.js +4 -0
  93. package/dist/lib/assets/language-icons/go.js.map +1 -0
  94. package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
  95. package/dist/lib/assets/language-icons/graphql.js +4 -0
  96. package/dist/lib/assets/language-icons/graphql.js.map +1 -0
  97. package/dist/lib/assets/language-icons/html.d.ts +3 -0
  98. package/dist/lib/assets/language-icons/html.js +4 -0
  99. package/dist/lib/assets/language-icons/html.js.map +1 -0
  100. package/dist/lib/assets/language-icons/java.d.ts +3 -0
  101. package/dist/lib/assets/language-icons/java.js +4 -0
  102. package/dist/lib/assets/language-icons/java.js.map +1 -0
  103. package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
  104. package/dist/lib/assets/language-icons/javascript.js +4 -0
  105. package/dist/lib/assets/language-icons/javascript.js.map +1 -0
  106. package/dist/lib/assets/language-icons/json.d.ts +3 -0
  107. package/dist/lib/assets/language-icons/json.js +4 -0
  108. package/dist/lib/assets/language-icons/json.js.map +1 -0
  109. package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
  110. package/dist/lib/assets/language-icons/kotlin.js +4 -0
  111. package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
  112. package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
  113. package/dist/lib/assets/language-icons/markdown.js +4 -0
  114. package/dist/lib/assets/language-icons/markdown.js.map +1 -0
  115. package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
  116. package/dist/lib/assets/language-icons/mdx.js +4 -0
  117. package/dist/lib/assets/language-icons/mdx.js.map +1 -0
  118. package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
  119. package/dist/lib/assets/language-icons/objectivec.js +4 -0
  120. package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
  121. package/dist/lib/assets/language-icons/php.d.ts +3 -0
  122. package/dist/lib/assets/language-icons/php.js +4 -0
  123. package/dist/lib/assets/language-icons/php.js.map +1 -0
  124. package/dist/lib/assets/language-icons/python.d.ts +3 -0
  125. package/dist/lib/assets/language-icons/python.js +4 -0
  126. package/dist/lib/assets/language-icons/python.js.map +1 -0
  127. package/dist/lib/assets/language-icons/react.d.ts +3 -0
  128. package/dist/lib/assets/language-icons/react.js +4 -0
  129. package/dist/lib/assets/language-icons/react.js.map +1 -0
  130. package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
  131. package/dist/lib/assets/language-icons/ruby.js +4 -0
  132. package/dist/lib/assets/language-icons/ruby.js.map +1 -0
  133. package/dist/lib/assets/language-icons/rust.d.ts +3 -0
  134. package/dist/lib/assets/language-icons/rust.js +4 -0
  135. package/dist/lib/assets/language-icons/rust.js.map +1 -0
  136. package/dist/lib/assets/language-icons/shell.d.ts +3 -0
  137. package/dist/lib/assets/language-icons/shell.js +4 -0
  138. package/dist/lib/assets/language-icons/shell.js.map +1 -0
  139. package/dist/lib/assets/language-icons/swift.d.ts +3 -0
  140. package/dist/lib/assets/language-icons/swift.js +4 -0
  141. package/dist/lib/assets/language-icons/swift.js.map +1 -0
  142. package/dist/lib/assets/language-icons/toml.d.ts +3 -0
  143. package/dist/lib/assets/language-icons/toml.js +4 -0
  144. package/dist/lib/assets/language-icons/toml.js.map +1 -0
  145. package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
  146. package/dist/lib/assets/language-icons/typescript.js +4 -0
  147. package/dist/lib/assets/language-icons/typescript.js.map +1 -0
  148. package/dist/lib/assets/language-icons/xml.d.ts +3 -0
  149. package/dist/lib/assets/language-icons/xml.js +4 -0
  150. package/dist/lib/assets/language-icons/xml.js.map +1 -0
  151. package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
  152. package/dist/lib/assets/language-icons/yaml.js +4 -0
  153. package/dist/lib/assets/language-icons/yaml.js.map +1 -0
  154. package/dist/lib/auth/issuer.d.ts +2 -0
  155. package/dist/lib/auth/issuer.js +37 -0
  156. package/dist/lib/auth/issuer.js.map +1 -0
  157. package/dist/lib/auth/issuer.test.js +95 -0
  158. package/dist/lib/auth/issuer.test.js.map +1 -0
  159. package/dist/lib/authentication/AuthenticationPlugin.d.ts +2 -2
  160. package/dist/lib/authentication/AuthenticationPlugin.js +1 -1
  161. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  162. package/dist/lib/authentication/authentication.d.ts +4 -6
  163. package/dist/lib/authentication/components/CallbackHandler.js +16 -10
  164. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  165. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  166. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  167. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  168. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  169. package/dist/lib/authentication/components/SignIn.js +5 -1
  170. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  171. package/dist/lib/authentication/components/SignOut.js +1 -1
  172. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  173. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  174. package/dist/lib/authentication/components/SignUp.js +4 -1
  175. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  176. package/dist/lib/authentication/errors.d.ts +6 -12
  177. package/dist/lib/authentication/errors.js +2 -1
  178. package/dist/lib/authentication/errors.js.map +1 -1
  179. package/dist/lib/authentication/hook.d.ts +7 -0
  180. package/dist/lib/authentication/hook.js.map +1 -1
  181. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  182. package/dist/lib/authentication/providers/auth0.js +3 -3
  183. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  184. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  185. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  186. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  187. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  188. package/dist/lib/authentication/providers/clerk.js +80 -60
  189. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  190. package/dist/lib/authentication/providers/openid.d.ts +17 -20
  191. package/dist/lib/authentication/providers/openid.js +73 -44
  192. package/dist/lib/authentication/providers/openid.js.map +1 -1
  193. package/dist/lib/authentication/providers/supabase.d.ts +2 -2
  194. package/dist/lib/authentication/providers/supabase.js +6 -14
  195. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  196. package/dist/lib/authentication/state.d.ts +6 -5
  197. package/dist/lib/authentication/state.js +19 -6
  198. package/dist/lib/authentication/state.js.map +1 -1
  199. package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
  200. package/dist/lib/authentication/use-broadcast/shared.js +3 -3
  201. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
  202. package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
  203. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
  204. package/dist/lib/components/Autocomplete.js +3 -3
  205. package/dist/lib/components/Autocomplete.js.map +1 -1
  206. package/dist/lib/components/Banner.js +2 -2
  207. package/dist/lib/components/Banner.js.map +1 -1
  208. package/dist/lib/components/Bootstrap.js.map +1 -1
  209. package/dist/lib/components/BuildCheck.d.ts +5 -0
  210. package/dist/lib/components/BuildCheck.js +45 -0
  211. package/dist/lib/components/BuildCheck.js.map +1 -0
  212. package/dist/lib/components/CategoryHeading.js +1 -1
  213. package/dist/lib/components/CategoryHeading.js.map +1 -1
  214. package/dist/lib/components/ErrorPage.js +2 -2
  215. package/dist/lib/components/ErrorPage.js.map +1 -1
  216. package/dist/lib/components/Footer.js +5 -5
  217. package/dist/lib/components/Footer.js.map +1 -1
  218. package/dist/lib/components/Framed.d.ts +7 -0
  219. package/dist/lib/components/Framed.js +26 -0
  220. package/dist/lib/components/Framed.js.map +1 -0
  221. package/dist/lib/components/Header.js +25 -18
  222. package/dist/lib/components/Header.js.map +1 -1
  223. package/dist/lib/components/Heading.d.ts +8 -4
  224. package/dist/lib/components/Heading.js +8 -3
  225. package/dist/lib/components/Heading.js.map +1 -1
  226. package/dist/lib/components/InlineCode.js +1 -1
  227. package/dist/lib/components/InlineCode.js.map +1 -1
  228. package/dist/lib/components/LanguageIcon.d.ts +3 -0
  229. package/dist/lib/components/LanguageIcon.js +118 -0
  230. package/dist/lib/components/LanguageIcon.js.map +1 -0
  231. package/dist/lib/components/Layout.js +6 -8
  232. package/dist/lib/components/Layout.js.map +1 -1
  233. package/dist/lib/components/Main.js +7 -6
  234. package/dist/lib/components/Main.js.map +1 -1
  235. package/dist/lib/components/Markdown.d.ts +3 -2
  236. package/dist/lib/components/Markdown.js +14 -16
  237. package/dist/lib/components/Markdown.js.map +1 -1
  238. package/dist/lib/components/Meta.d.ts +2 -0
  239. package/dist/lib/components/Meta.js +11 -0
  240. package/dist/lib/components/Meta.js.map +1 -0
  241. package/dist/lib/components/MobileTopNavigation.js +13 -6
  242. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  243. package/dist/lib/components/NotFoundPage.js +2 -2
  244. package/dist/lib/components/NotFoundPage.js.map +1 -1
  245. package/dist/lib/components/PageProgress.d.ts +1 -0
  246. package/dist/lib/components/PageProgress.js +20 -0
  247. package/dist/lib/components/PageProgress.js.map +1 -0
  248. package/dist/lib/components/Pagination.js +2 -2
  249. package/dist/lib/components/Pagination.js.map +1 -1
  250. package/dist/lib/components/PathRenderer.js +1 -1
  251. package/dist/lib/components/PathRenderer.js.map +1 -1
  252. package/dist/lib/components/Search.js +8 -2
  253. package/dist/lib/components/Search.js.map +1 -1
  254. package/dist/lib/components/Slot.d.ts +17 -0
  255. package/dist/lib/components/Slot.js +24 -0
  256. package/dist/lib/components/Slot.js.map +1 -0
  257. package/dist/lib/components/Slot.test.js +172 -0
  258. package/dist/lib/components/Slot.test.js.map +1 -0
  259. package/dist/lib/components/StatusPage.js +4 -0
  260. package/dist/lib/components/StatusPage.js.map +1 -1
  261. package/dist/lib/components/TopNavigation.d.ts +7 -6
  262. package/dist/lib/components/TopNavigation.js +53 -55
  263. package/dist/lib/components/TopNavigation.js.map +1 -1
  264. package/dist/lib/components/Typography.d.ts +5 -0
  265. package/dist/lib/components/Typography.js +8 -0
  266. package/dist/lib/components/Typography.js.map +1 -0
  267. package/dist/lib/components/Zudoku.js +5 -7
  268. package/dist/lib/components/Zudoku.js.map +1 -1
  269. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  270. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
  271. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  272. package/dist/lib/components/context/SlotProvider.js +83 -0
  273. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  274. package/dist/lib/components/context/ViewportAnchorContext.js +9 -10
  275. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  276. package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
  277. package/dist/lib/components/context/ZudokuContext.js +57 -32
  278. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  279. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  280. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  281. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  282. package/dist/lib/components/index.d.ts +51 -46
  283. package/dist/lib/components/index.js +17 -20
  284. package/dist/lib/components/index.js.map +1 -1
  285. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  286. package/dist/lib/components/navigation/Navigation.js +12 -0
  287. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  288. package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
  289. package/dist/lib/components/navigation/NavigationBadge.js +26 -0
  290. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  291. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  292. package/dist/lib/components/navigation/NavigationCategory.js +66 -0
  293. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  294. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  295. package/dist/lib/components/navigation/NavigationItem.js +55 -0
  296. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  297. package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
  298. package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
  299. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  300. package/dist/lib/components/navigation/PoweredByZudoku.js +2 -1
  301. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -1
  302. package/dist/lib/components/navigation/Toc.js +2 -2
  303. package/dist/lib/components/navigation/Toc.js.map +1 -1
  304. package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
  305. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  306. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  307. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  308. package/dist/lib/components/navigation/utils.d.ts +16 -8
  309. package/dist/lib/components/navigation/utils.js +58 -27
  310. package/dist/lib/components/navigation/utils.js.map +1 -1
  311. package/dist/lib/core/RouteGuard.js +9 -9
  312. package/dist/lib/core/RouteGuard.js.map +1 -1
  313. package/dist/lib/core/ZudokuContext.d.ts +37 -21
  314. package/dist/lib/core/ZudokuContext.js +49 -14
  315. package/dist/lib/core/ZudokuContext.js.map +1 -1
  316. package/dist/lib/core/__internal.d.ts +37 -0
  317. package/dist/lib/core/__internal.js +26 -0
  318. package/dist/lib/core/__internal.js.map +1 -0
  319. package/dist/lib/core/plugins.d.ts +8 -4
  320. package/dist/lib/core/plugins.js +1 -0
  321. package/dist/lib/core/plugins.js.map +1 -1
  322. package/dist/lib/core/router.d.ts +1 -0
  323. package/dist/lib/core/router.js +2 -0
  324. package/dist/lib/core/router.js.map +1 -0
  325. package/dist/lib/errors/ErrorAlert.js +2 -4
  326. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  327. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  328. package/dist/lib/errors/TopLevelError.js +1 -2
  329. package/dist/lib/errors/TopLevelError.js.map +1 -1
  330. package/dist/lib/hooks/index.d.ts +25 -0
  331. package/dist/lib/hooks/index.js +11 -0
  332. package/dist/lib/hooks/index.js.map +1 -1
  333. package/dist/lib/hooks/useEvent.test.js +5 -3
  334. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  335. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  336. package/dist/lib/hooks/useHotkey.js +58 -0
  337. package/dist/lib/hooks/useHotkey.js.map +1 -0
  338. package/dist/lib/oas/graphql/circular.js +24 -19
  339. package/dist/lib/oas/graphql/circular.js.map +1 -1
  340. package/dist/lib/oas/graphql/index.js +2 -1
  341. package/dist/lib/oas/graphql/index.js.map +1 -1
  342. package/dist/lib/oas/parser/dereference/index.js +2 -1
  343. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  344. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  345. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  346. package/dist/lib/oas/parser/index.d.ts +3 -0
  347. package/dist/lib/oas/parser/index.js +8 -2
  348. package/dist/lib/oas/parser/index.js.map +1 -1
  349. package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
  350. package/dist/lib/oas/parser/upgrade/index.js +79 -26
  351. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  352. package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
  353. package/dist/lib/plugins/api-catalog/Catalog.js +8 -2
  354. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  355. package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
  356. package/dist/lib/plugins/api-catalog/index.js +10 -10
  357. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  358. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  359. package/dist/lib/plugins/api-keys/CreateApiKey.js +18 -4
  360. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  361. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
  362. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
  363. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
  364. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  365. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +148 -27
  366. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  367. package/dist/lib/plugins/api-keys/index.d.ts +29 -15
  368. package/dist/lib/plugins/api-keys/index.js +63 -33
  369. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  370. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  371. package/dist/lib/plugins/custom-pages/index.js +18 -10
  372. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  373. package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -3
  374. package/dist/lib/plugins/markdown/MdxPage.js +31 -11
  375. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  376. package/dist/lib/plugins/markdown/index.d.ts +12 -4
  377. package/dist/lib/plugins/markdown/index.js +9 -26
  378. package/dist/lib/plugins/markdown/index.js.map +1 -1
  379. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  380. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  381. package/dist/lib/plugins/openapi/ColorizedParam.js +5 -2
  382. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  383. package/dist/lib/plugins/openapi/Endpoint.js +2 -2
  384. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  385. package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
  386. package/dist/lib/plugins/openapi/OasProvider.js +1 -0
  387. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  388. package/dist/lib/plugins/openapi/OperationList.d.ts +1 -3
  389. package/dist/lib/plugins/openapi/OperationList.js +18 -10
  390. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  391. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  392. package/dist/lib/plugins/openapi/OperationListItem.js +9 -6
  393. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  394. package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
  395. package/dist/lib/plugins/openapi/ParamInfos.js +15 -10
  396. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  397. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
  398. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  399. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  400. package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
  401. package/dist/lib/plugins/openapi/ParameterListItem.js +9 -2
  402. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  403. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
  404. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +8 -4
  405. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  406. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +2 -2
  407. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  408. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  409. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  410. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  411. package/dist/lib/plugins/openapi/SchemaList.js +7 -7
  412. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  413. package/dist/lib/plugins/openapi/Sidecar.d.ts +2 -2
  414. package/dist/lib/plugins/openapi/Sidecar.js +14 -62
  415. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  416. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +2 -4
  417. package/dist/lib/plugins/openapi/SidecarExamples.js +9 -1
  418. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  419. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  420. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
  421. package/dist/lib/plugins/openapi/client/createServer.js +1 -2
  422. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  423. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
  424. package/dist/lib/plugins/openapi/client/useCreateQuery.js +10 -4
  425. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  426. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  427. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  428. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  429. package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
  430. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
  431. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  432. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  433. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  434. package/dist/lib/plugins/openapi/context.d.ts +1 -1
  435. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
  436. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  437. package/dist/lib/plugins/openapi/graphql/gql.d.ts +2 -2
  438. package/dist/lib/plugins/openapi/graphql/gql.js +2 -3
  439. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  440. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +5 -3
  441. package/dist/lib/plugins/openapi/graphql/graphql.js +4 -2
  442. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  443. package/dist/lib/plugins/openapi/index.d.ts +5 -6
  444. package/dist/lib/plugins/openapi/index.js +56 -21
  445. package/dist/lib/plugins/openapi/index.js.map +1 -1
  446. package/dist/lib/plugins/openapi/interfaces.d.ts +8 -7
  447. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  448. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  449. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  450. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  451. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  452. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  453. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
  454. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
  455. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  456. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  457. package/dist/lib/plugins/openapi/playground/Headers.js +54 -32
  458. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  459. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
  460. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
  461. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
  462. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
  463. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -4
  464. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
  465. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  466. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  467. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
  468. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  469. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -2
  470. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  471. package/dist/lib/plugins/openapi/playground/Playground.d.ts +5 -10
  472. package/dist/lib/plugins/openapi/playground/Playground.js +116 -94
  473. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  474. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  475. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  476. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +4 -4
  477. package/dist/lib/plugins/openapi/playground/QueryParams.js +38 -23
  478. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  479. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  480. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  481. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  482. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  483. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  484. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  485. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  486. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  487. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  488. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  489. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  490. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  491. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  492. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  493. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  494. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  495. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +71 -0
  496. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  497. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +10 -4
  498. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +33 -31
  499. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  500. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  501. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
  502. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  503. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
  504. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
  505. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
  506. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  507. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  508. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  509. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  510. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  511. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  512. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  513. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +195 -0
  514. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  515. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  516. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  517. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  518. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  519. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +160 -0
  520. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  521. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  522. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  523. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  524. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  525. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  526. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  527. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  528. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  529. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.d.ts +5 -0
  530. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js +7 -0
  531. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js.map +1 -0
  532. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.d.ts +4 -0
  533. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js +10 -0
  534. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js.map +1 -0
  535. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.d.ts +4 -0
  536. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +16 -0
  537. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +1 -0
  538. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +5 -2
  539. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
  540. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
  541. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +19 -25
  542. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  543. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +3 -1
  544. package/dist/lib/plugins/openapi/schema/SchemaView.js +23 -15
  545. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  546. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +4 -0
  547. package/dist/lib/plugins/openapi/schema/UnionView.js +30 -0
  548. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  549. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  550. package/dist/lib/plugins/openapi/schema/union-helpers.js +48 -0
  551. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  552. package/dist/lib/plugins/openapi/schema/utils.d.ts +6 -8
  553. package/dist/lib/plugins/openapi/schema/utils.js +15 -13
  554. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  555. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  556. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  557. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  558. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  559. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +25 -0
  560. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  561. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +2 -2
  562. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +45 -2
  563. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  564. package/dist/lib/plugins/openapi/util/getRoutes.js +52 -15
  565. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  566. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  567. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  568. package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
  569. package/dist/lib/plugins/search-inkeep/index.js +35 -29
  570. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  571. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
  572. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  573. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  574. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +2 -2
  575. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  576. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +2 -2
  577. package/dist/lib/plugins/search-pagefind/ResultList.js +15 -5
  578. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  579. package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
  580. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  581. package/dist/lib/shiki.d.ts +32 -0
  582. package/dist/lib/shiki.js +104 -0
  583. package/dist/lib/shiki.js.map +1 -0
  584. package/dist/lib/ui/ActionButton.js +1 -1
  585. package/dist/lib/ui/ActionButton.js.map +1 -1
  586. package/dist/lib/ui/Alert.d.ts +6 -5
  587. package/dist/lib/ui/Alert.js +12 -10
  588. package/dist/lib/ui/Alert.js.map +1 -1
  589. package/dist/lib/ui/Badge.d.ts +2 -2
  590. package/dist/lib/ui/Badge.js +1 -1
  591. package/dist/lib/ui/Badge.js.map +1 -1
  592. package/dist/lib/ui/Breadcrumb.js +1 -1
  593. package/dist/lib/ui/Breadcrumb.js.map +1 -1
  594. package/dist/lib/ui/Button.d.ts +2 -2
  595. package/dist/lib/ui/Button.js +8 -6
  596. package/dist/lib/ui/Button.js.map +1 -1
  597. package/dist/lib/ui/Callout.js +1 -1
  598. package/dist/lib/ui/Callout.js.map +1 -1
  599. package/dist/lib/ui/Card.js +1 -1
  600. package/dist/lib/ui/Carousel.js.map +1 -1
  601. package/dist/lib/ui/Checkbox.js +1 -1
  602. package/dist/lib/ui/Checkbox.js.map +1 -1
  603. package/dist/lib/ui/CodeBlock.d.ts +15 -0
  604. package/dist/lib/ui/CodeBlock.js +18 -0
  605. package/dist/lib/ui/CodeBlock.js.map +1 -0
  606. package/dist/lib/ui/Command.d.ts +2 -2
  607. package/dist/lib/ui/Command.js +3 -7
  608. package/dist/lib/ui/Command.js.map +1 -1
  609. package/dist/lib/ui/Dialog.d.ts +3 -1
  610. package/dist/lib/ui/Dialog.js +2 -2
  611. package/dist/lib/ui/Dialog.js.map +1 -1
  612. package/dist/lib/ui/DropdownMenu.js +4 -4
  613. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  614. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  615. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  616. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  617. package/dist/lib/ui/Form.d.ts +3 -3
  618. package/dist/lib/ui/HoverCard.js +1 -1
  619. package/dist/lib/ui/HoverCard.js.map +1 -1
  620. package/dist/lib/ui/Input.js +1 -1
  621. package/dist/lib/ui/Input.js.map +1 -1
  622. package/dist/lib/ui/Pagination.d.ts +1 -1
  623. package/dist/lib/ui/Pagination.js +1 -1
  624. package/dist/lib/ui/Pagination.js.map +1 -1
  625. package/dist/lib/ui/Popover.js +1 -1
  626. package/dist/lib/ui/Popover.js.map +1 -1
  627. package/dist/lib/ui/RadioGroup.js +1 -1
  628. package/dist/lib/ui/RadioGroup.js.map +1 -1
  629. package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
  630. package/dist/lib/ui/ReactComponentDoc.js +10 -0
  631. package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
  632. package/dist/lib/ui/Secret.d.ts +12 -0
  633. package/dist/lib/ui/Secret.js +23 -0
  634. package/dist/lib/ui/Secret.js.map +1 -0
  635. package/dist/lib/ui/Select.js +2 -2
  636. package/dist/lib/ui/Select.js.map +1 -1
  637. package/dist/lib/ui/Slider.js +1 -1
  638. package/dist/lib/ui/Slider.js.map +1 -1
  639. package/dist/lib/ui/Switch.js +1 -1
  640. package/dist/lib/ui/Switch.js.map +1 -1
  641. package/dist/lib/ui/SyntaxHighlight.d.ts +12 -15
  642. package/dist/lib/ui/SyntaxHighlight.js +13 -60
  643. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  644. package/dist/lib/ui/Tabs.js +2 -2
  645. package/dist/lib/ui/Tabs.js.map +1 -1
  646. package/dist/lib/ui/Textarea.js +1 -1
  647. package/dist/lib/ui/Textarea.js.map +1 -1
  648. package/dist/lib/ui/Toggle.js +1 -1
  649. package/dist/lib/ui/Toggle.js.map +1 -1
  650. package/dist/lib/ui/ToggleGroup.d.ts +1 -1
  651. package/dist/lib/ui/Tooltip.d.ts +2 -1
  652. package/dist/lib/ui/Tooltip.js +2 -1
  653. package/dist/lib/ui/Tooltip.js.map +1 -1
  654. package/dist/lib/ui/Value.d.ts +5 -0
  655. package/dist/lib/ui/Value.js +13 -0
  656. package/dist/lib/ui/Value.js.map +1 -0
  657. package/dist/lib/util/MdxComponents.d.ts +19 -4
  658. package/dist/lib/util/MdxComponents.js +17 -12
  659. package/dist/lib/util/MdxComponents.js.map +1 -1
  660. package/dist/lib/util/cn.js.map +1 -1
  661. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  662. package/dist/lib/util/createVariantComponent.js.map +1 -1
  663. package/dist/lib/util/detectOS.d.ts +1 -0
  664. package/dist/lib/util/detectOS.js +11 -0
  665. package/dist/lib/util/detectOS.js.map +1 -0
  666. package/dist/lib/util/ensureArray.d.ts +1 -0
  667. package/dist/lib/util/ensureArray.js +2 -0
  668. package/dist/lib/util/ensureArray.js.map +1 -0
  669. package/dist/lib/util/groupBy.js +1 -0
  670. package/dist/lib/util/groupBy.js.map +1 -1
  671. package/dist/lib/util/humanFileSize.d.ts +6 -0
  672. package/dist/lib/util/humanFileSize.js +14 -0
  673. package/dist/lib/util/humanFileSize.js.map +1 -0
  674. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  675. package/dist/lib/util/humanFileSize.test.js +22 -0
  676. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  677. package/dist/lib/util/invariant.d.ts +6 -5
  678. package/dist/lib/util/invariant.js +4 -2
  679. package/dist/lib/util/invariant.js.map +1 -1
  680. package/dist/lib/util/os.d.ts +2 -0
  681. package/dist/lib/util/os.js +21 -0
  682. package/dist/lib/util/os.js.map +1 -0
  683. package/dist/lib/util/pastellize.js +2 -2
  684. package/dist/lib/util/pastellize.js.map +1 -1
  685. package/dist/lib/util/traverse.d.ts +1 -1
  686. package/dist/lib/util/traverse.js +6 -5
  687. package/dist/lib/util/traverse.js.map +1 -1
  688. package/dist/lib/util/url.d.ts +4 -0
  689. package/dist/lib/util/url.js +13 -0
  690. package/dist/lib/util/url.js.map +1 -0
  691. package/dist/lib/util/url.test.d.ts +1 -0
  692. package/dist/lib/util/url.test.js +26 -0
  693. package/dist/lib/util/url.test.js.map +1 -0
  694. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  695. package/dist/lib/util/useCopyToClipboard.js +11 -0
  696. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  697. package/dist/lib/util/useExposedProps.d.ts +8 -1
  698. package/dist/lib/util/useExposedProps.js.map +1 -1
  699. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
  700. package/dist/lib/util/useScrollToAnchor.js +5 -3
  701. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  702. package/dist/ts.js +3 -3
  703. package/dist/ts.js.map +1 -1
  704. package/dist/vite/api/SchemaManager.d.ts +36 -0
  705. package/dist/vite/api/SchemaManager.js +141 -0
  706. package/dist/vite/api/SchemaManager.js.map +1 -0
  707. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  708. package/dist/vite/api/SchemaManager.test.js +106 -0
  709. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  710. package/dist/vite/api/schema-codegen.js +79 -29
  711. package/dist/vite/api/schema-codegen.js.map +1 -1
  712. package/dist/vite/api/schema-codegen.test.js +156 -1
  713. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  714. package/dist/vite/build.js +22 -7
  715. package/dist/vite/build.js.map +1 -1
  716. package/dist/vite/config.d.ts +2 -9
  717. package/dist/vite/config.js +61 -97
  718. package/dist/vite/config.js.map +1 -1
  719. package/dist/vite/config.test.js +1 -1
  720. package/dist/vite/config.test.js.map +1 -1
  721. package/dist/vite/css/plugin.d.ts +1 -2
  722. package/dist/vite/css/plugin.js +14 -2
  723. package/dist/vite/css/plugin.js.map +1 -1
  724. package/dist/vite/dev-server.d.ts +0 -1
  725. package/dist/vite/dev-server.js +25 -16
  726. package/dist/vite/dev-server.js.map +1 -1
  727. package/dist/vite/error-handler.d.ts +2 -2
  728. package/dist/vite/error-handler.js.map +1 -1
  729. package/dist/vite/html.d.ts +7 -3
  730. package/dist/vite/html.js +15 -9
  731. package/dist/vite/html.js.map +1 -1
  732. package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
  733. package/dist/vite/mdx/remark-inject-filepath.js +6 -0
  734. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
  735. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  736. package/dist/vite/mdx/remark-last-modified.js +28 -0
  737. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  738. package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
  739. package/dist/vite/mdx/remark-link-rewrite.js +20 -0
  740. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
  741. package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
  742. package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
  743. package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
  744. package/dist/vite/mdx/remark-static-generation.d.ts +3 -0
  745. package/dist/vite/mdx/remark-static-generation.js +125 -0
  746. package/dist/vite/mdx/remark-static-generation.js.map +1 -0
  747. package/dist/vite/mdx/utils.d.ts +2 -0
  748. package/dist/vite/mdx/utils.js +31 -0
  749. package/dist/vite/mdx/utils.js.map +1 -0
  750. package/dist/vite/output.d.ts +1 -1
  751. package/dist/vite/output.js +1 -1
  752. package/dist/vite/output.js.map +1 -1
  753. package/dist/vite/plugin-api-keys.d.ts +2 -3
  754. package/dist/vite/plugin-api-keys.js +10 -4
  755. package/dist/vite/plugin-api-keys.js.map +1 -1
  756. package/dist/vite/plugin-api.d.ts +1 -2
  757. package/dist/vite/plugin-api.js +59 -115
  758. package/dist/vite/plugin-api.js.map +1 -1
  759. package/dist/vite/plugin-auth.d.ts +2 -3
  760. package/dist/vite/plugin-auth.js +4 -3
  761. package/dist/vite/plugin-auth.js.map +1 -1
  762. package/dist/vite/plugin-component.d.ts +2 -3
  763. package/dist/vite/plugin-component.js +3 -2
  764. package/dist/vite/plugin-component.js.map +1 -1
  765. package/dist/vite/plugin-config-reload.d.ts +2 -3
  766. package/dist/vite/plugin-config-reload.js +23 -22
  767. package/dist/vite/plugin-config-reload.js.map +1 -1
  768. package/dist/vite/plugin-config.d.ts +2 -3
  769. package/dist/vite/plugin-config.js +6 -4
  770. package/dist/vite/plugin-config.js.map +1 -1
  771. package/dist/vite/plugin-custom-pages.d.ts +2 -3
  772. package/dist/vite/plugin-custom-pages.js +6 -5
  773. package/dist/vite/plugin-custom-pages.js.map +1 -1
  774. package/dist/vite/plugin-docs.d.ts +1 -2
  775. package/dist/vite/plugin-docs.js +71 -63
  776. package/dist/vite/plugin-docs.js.map +1 -1
  777. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  778. package/dist/vite/plugin-frontmatter.js +10 -5
  779. package/dist/vite/plugin-frontmatter.js.map +1 -1
  780. package/dist/vite/plugin-mdx.d.ts +2 -3
  781. package/dist/vite/plugin-mdx.js +32 -76
  782. package/dist/vite/plugin-mdx.js.map +1 -1
  783. package/dist/vite/plugin-metadata.d.ts +1 -1
  784. package/dist/vite/plugin-navigation.d.ts +4 -0
  785. package/dist/vite/plugin-navigation.js +63 -0
  786. package/dist/vite/plugin-navigation.js.map +1 -0
  787. package/dist/vite/plugin-redirect.d.ts +2 -3
  788. package/dist/vite/plugin-redirect.js +4 -3
  789. package/dist/vite/plugin-redirect.js.map +1 -1
  790. package/dist/vite/plugin-search.d.ts +2 -3
  791. package/dist/vite/plugin-search.js +4 -3
  792. package/dist/vite/plugin-search.js.map +1 -1
  793. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  794. package/dist/vite/plugin-shiki-register.js +39 -0
  795. package/dist/vite/plugin-shiki-register.js.map +1 -0
  796. package/dist/vite/plugin-theme.d.ts +8 -0
  797. package/dist/vite/plugin-theme.js +274 -0
  798. package/dist/vite/plugin-theme.js.map +1 -0
  799. package/dist/vite/plugin-theme.test.d.ts +1 -0
  800. package/dist/vite/plugin-theme.test.js +314 -0
  801. package/dist/vite/plugin-theme.test.js.map +1 -0
  802. package/dist/vite/plugin.d.ts +2 -3
  803. package/dist/vite/plugin.js +24 -23
  804. package/dist/vite/plugin.js.map +1 -1
  805. package/dist/vite/prerender/FileWritingResponse.js +5 -3
  806. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  807. package/dist/vite/prerender/InMemoryResponse.js +3 -1
  808. package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
  809. package/dist/vite/prerender/prerender.js +7 -6
  810. package/dist/vite/prerender/prerender.js.map +1 -1
  811. package/dist/vite/prerender/worker.d.ts +1 -1
  812. package/dist/vite/prerender/worker.js +5 -1
  813. package/dist/vite/prerender/worker.js.map +1 -1
  814. package/dist/vite/reporter.js +2 -2
  815. package/dist/vite/reporter.js.map +1 -1
  816. package/dist/vite/shadcn-registry.d.ts +20 -0
  817. package/dist/vite/shadcn-registry.js +29 -0
  818. package/dist/vite/shadcn-registry.js.map +1 -0
  819. package/dist/vite/sitemap.d.ts +1 -1
  820. package/dist/vite/sitemap.js +14 -13
  821. package/dist/vite/sitemap.js.map +1 -1
  822. package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
  823. package/dist/zuplo/enrich-with-zuplo.js +21 -20
  824. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  825. package/dist/zuplo/policy-types.js +0 -1
  826. package/dist/zuplo/policy-types.js.map +1 -1
  827. package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
  828. package/dist/zuplo/with-zuplo-processors.js +7 -7
  829. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  830. package/dist/zuplo/with-zuplo.d.ts +5 -2
  831. package/dist/zuplo/with-zuplo.js +6 -9
  832. package/dist/zuplo/with-zuplo.js.map +1 -1
  833. package/lib/Button-DTDRi4CT.js +51 -0
  834. package/lib/Button-DTDRi4CT.js.map +1 -0
  835. package/lib/Card-hTy9PAnh.js +61 -0
  836. package/lib/Card-hTy9PAnh.js.map +1 -0
  837. package/lib/CategoryHeading-BGCNu3VK.js +17 -0
  838. package/lib/CategoryHeading-BGCNu3VK.js.map +1 -0
  839. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  840. package/lib/CodeBlock-Dg3uMMeq.js +178 -0
  841. package/lib/CodeBlock-Dg3uMMeq.js.map +1 -0
  842. package/lib/Command-TEBTONf1.js +134 -0
  843. package/lib/Command-TEBTONf1.js.map +1 -0
  844. package/lib/Dialog-VIMic7xI.js +114 -0
  845. package/lib/Dialog-VIMic7xI.js.map +1 -0
  846. package/lib/Drawer-DM9wJUC6.js +1133 -0
  847. package/lib/Drawer-DM9wJUC6.js.map +1 -0
  848. package/lib/ErrorAlert-IEDm37qc.js +15524 -0
  849. package/lib/ErrorAlert-IEDm37qc.js.map +1 -0
  850. package/lib/MdxPage-ClcOjjPz.js +111 -0
  851. package/lib/MdxPage-ClcOjjPz.js.map +1 -0
  852. package/lib/OAuthErrorPage-BvULWq8R.js +150 -0
  853. package/lib/OAuthErrorPage-BvULWq8R.js.map +1 -0
  854. package/lib/OasProvider-DoHqdSOH.js +36 -0
  855. package/lib/OasProvider-DoHqdSOH.js.map +1 -0
  856. package/lib/OperationList-CfXcgnVM.js +5166 -0
  857. package/lib/OperationList-CfXcgnVM.js.map +1 -0
  858. package/lib/Pagination-DS0uHY1B.js +37 -0
  859. package/lib/Pagination-DS0uHY1B.js.map +1 -0
  860. package/lib/RouteGuard-nFlgfJqk.js +56 -0
  861. package/lib/RouteGuard-nFlgfJqk.js.map +1 -0
  862. package/lib/RouterError-DPrYdVmB.js +41 -0
  863. package/lib/RouterError-DPrYdVmB.js.map +1 -0
  864. package/lib/SchemaList-W-pn-5tN.js +150 -0
  865. package/lib/SchemaList-W-pn-5tN.js.map +1 -0
  866. package/lib/SchemaView-BvX8lnmz.js +429 -0
  867. package/lib/SchemaView-BvX8lnmz.js.map +1 -0
  868. package/lib/Select-BPQp7Yqx.js +273 -0
  869. package/lib/Select-BPQp7Yqx.js.map +1 -0
  870. package/lib/SignUp-BeCdx65k.js +56 -0
  871. package/lib/SignUp-BeCdx65k.js.map +1 -0
  872. package/lib/Spinner-Cf6E803I.js +7 -0
  873. package/lib/Spinner-Cf6E803I.js.map +1 -0
  874. package/lib/SyntaxHighlight--o45zbws.js +10307 -0
  875. package/lib/SyntaxHighlight--o45zbws.js.map +1 -0
  876. package/lib/Toc-DnPdxn-5.js +92 -0
  877. package/lib/Toc-DnPdxn-5.js.map +1 -0
  878. package/lib/ZudokuContext-3cqbu21w.js +1285 -0
  879. package/lib/ZudokuContext-3cqbu21w.js.map +1 -0
  880. package/lib/chunk-QMGIS6GS-DqecZ6nq.js +9204 -0
  881. package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +1 -0
  882. package/lib/circular-MyC_rUWL.js +14934 -0
  883. package/lib/circular-MyC_rUWL.js.map +1 -0
  884. package/lib/clsx-OuTLNxxd.js +17 -0
  885. package/lib/clsx-OuTLNxxd.js.map +1 -0
  886. package/lib/cn-dYga0KKN.js +2731 -0
  887. package/lib/cn-dYga0KKN.js.map +1 -0
  888. package/lib/createServer-DCzf6OVC.js +12490 -0
  889. package/lib/createServer-DCzf6OVC.js.map +1 -0
  890. package/lib/csharp-rrJEDRrV.js +53 -0
  891. package/lib/csharp-rrJEDRrV.js.map +1 -0
  892. package/lib/css-Dpk9bCql.js +54 -0
  893. package/lib/css-Dpk9bCql.js.map +1 -0
  894. package/lib/errors-CqArF-g5.js +45 -0
  895. package/lib/errors-CqArF-g5.js.map +1 -0
  896. package/lib/go-D8SJIQ0Z.js +25 -0
  897. package/lib/go-D8SJIQ0Z.js.map +1 -0
  898. package/lib/graphql-aeVKJNa2.js +25 -0
  899. package/lib/graphql-aeVKJNa2.js.map +1 -0
  900. package/lib/hook-ChlxzJwv.js +247 -0
  901. package/lib/hook-ChlxzJwv.js.map +1 -0
  902. package/lib/html-D_7om-nA.js +33 -0
  903. package/lib/html-D_7om-nA.js.map +1 -0
  904. package/lib/index-1GaxDljW.js +1058 -0
  905. package/lib/index-1GaxDljW.js.map +1 -0
  906. package/lib/index-C4Z_Qrw9.js +3395 -0
  907. package/lib/index-C4Z_Qrw9.js.map +1 -0
  908. package/lib/index-CrcNWbel.js +316 -0
  909. package/lib/index-CrcNWbel.js.map +1 -0
  910. package/lib/index-DI5SPFK9.js +36 -0
  911. package/lib/index-DI5SPFK9.js.map +1 -0
  912. package/lib/index-DirFu7tw.js +2094 -0
  913. package/lib/index-DirFu7tw.js.map +1 -0
  914. package/lib/index-nGbmHh_A.js +4827 -0
  915. package/lib/index-nGbmHh_A.js.map +1 -0
  916. package/lib/index.esm-BnYHxCYC.js +683 -0
  917. package/lib/index.esm-BnYHxCYC.js.map +1 -0
  918. package/lib/index.esm-CdzlRw50.js +1254 -0
  919. package/lib/index.esm-CdzlRw50.js.map +1 -0
  920. package/lib/invariant-Bm-FVUQE.js +44 -0
  921. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  922. package/lib/java-DUh-EL8n.js +53 -0
  923. package/lib/java-DUh-EL8n.js.map +1 -0
  924. package/lib/javascript-CrY8dcGu.js +10 -0
  925. package/lib/javascript-CrY8dcGu.js.map +1 -0
  926. package/lib/json-DLK2_sdf.js +25 -0
  927. package/lib/json-DLK2_sdf.js.map +1 -0
  928. package/lib/jsx-runtime-DywqP_6a.js +285 -0
  929. package/lib/jsx-runtime-DywqP_6a.js.map +1 -0
  930. package/lib/kotlin-rJMOGl7D.js +37 -0
  931. package/lib/kotlin-rJMOGl7D.js.map +1 -0
  932. package/lib/markdown-BD9bIU5J.js +25 -0
  933. package/lib/markdown-BD9bIU5J.js.map +1 -0
  934. package/lib/mdx-G25UCvf3.js +32 -0
  935. package/lib/mdx-G25UCvf3.js.map +1 -0
  936. package/lib/mutation-DvBlWyBr.js +196 -0
  937. package/lib/mutation-DvBlWyBr.js.map +1 -0
  938. package/lib/objectivec-DDpj0aWX.js +32 -0
  939. package/lib/objectivec-DDpj0aWX.js.map +1 -0
  940. package/lib/php-BeG18bSy.js +25 -0
  941. package/lib/php-BeG18bSy.js.map +1 -0
  942. package/lib/processors/removeExtensions.js +11 -0
  943. package/lib/processors/removeExtensions.js.map +1 -0
  944. package/lib/processors/removeParameters.js +47 -0
  945. package/lib/processors/removeParameters.js.map +1 -0
  946. package/lib/processors/removePaths.js +28 -0
  947. package/lib/processors/removePaths.js.map +1 -0
  948. package/lib/processors/traverse.js +17 -0
  949. package/lib/processors/traverse.js.map +1 -0
  950. package/lib/python-BaF2byD-.js +32 -0
  951. package/lib/python-BaF2byD-.js.map +1 -0
  952. package/lib/react-CQvDN20M.js +24 -0
  953. package/lib/react-CQvDN20M.js.map +1 -0
  954. package/lib/ruby-CmxRVHMR.js +25 -0
  955. package/lib/ruby-CmxRVHMR.js.map +1 -0
  956. package/lib/rust-IfSC62c5.js +25 -0
  957. package/lib/rust-IfSC62c5.js.map +1 -0
  958. package/lib/shell-BFu0M6m4.js +25 -0
  959. package/lib/shell-BFu0M6m4.js.map +1 -0
  960. package/lib/swift-DckbsN4v.js +25 -0
  961. package/lib/swift-DckbsN4v.js.map +1 -0
  962. package/lib/toml-BJsCc8TC.js +32 -0
  963. package/lib/toml-BJsCc8TC.js.map +1 -0
  964. package/lib/typescript-7qOVMjOC.js +32 -0
  965. package/lib/typescript-7qOVMjOC.js.map +1 -0
  966. package/lib/ui/Accordion.js +2 -2
  967. package/lib/ui/Accordion.js.map +1 -1
  968. package/lib/ui/ActionButton.js +11 -11
  969. package/lib/ui/ActionButton.js.map +1 -1
  970. package/lib/ui/Alert.js +55 -39
  971. package/lib/ui/Alert.js.map +1 -1
  972. package/lib/ui/AlertDialog.js +2 -2
  973. package/lib/ui/AlertDialog.js.map +1 -1
  974. package/lib/ui/Badge.js +4 -4
  975. package/lib/ui/Badge.js.map +1 -1
  976. package/lib/ui/Breadcrumb.js +24 -23
  977. package/lib/ui/Breadcrumb.js.map +1 -1
  978. package/lib/ui/Button.js +20 -18
  979. package/lib/ui/Button.js.map +1 -1
  980. package/lib/ui/Callout.js +14 -12
  981. package/lib/ui/Callout.js.map +1 -1
  982. package/lib/ui/Card.js +9 -9
  983. package/lib/ui/Card.js.map +1 -1
  984. package/lib/ui/Carousel.js +348 -348
  985. package/lib/ui/Carousel.js.map +1 -1
  986. package/lib/ui/Checkbox.js +8 -8
  987. package/lib/ui/Checkbox.js.map +1 -1
  988. package/lib/ui/CodeBlock.js +10 -0
  989. package/lib/ui/CodeBlock.js.map +1 -0
  990. package/lib/ui/Command.js +67 -73
  991. package/lib/ui/Command.js.map +1 -1
  992. package/lib/ui/Dialog.js +74 -59
  993. package/lib/ui/Dialog.js.map +1 -1
  994. package/lib/ui/Drawer.js +3 -3
  995. package/lib/ui/DropdownMenu.js +35 -35
  996. package/lib/ui/DropdownMenu.js.map +1 -1
  997. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  998. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  999. package/lib/ui/Form.js +3 -3
  1000. package/lib/ui/Form.js.map +1 -1
  1001. package/lib/ui/HoverCard.js +6 -6
  1002. package/lib/ui/HoverCard.js.map +1 -1
  1003. package/lib/ui/Input.js +3 -3
  1004. package/lib/ui/Input.js.map +1 -1
  1005. package/lib/ui/Label.js +3 -3
  1006. package/lib/ui/Label.js.map +1 -1
  1007. package/lib/ui/Pagination.js +29 -30
  1008. package/lib/ui/Pagination.js.map +1 -1
  1009. package/lib/ui/Popover.js +3 -3
  1010. package/lib/ui/Popover.js.map +1 -1
  1011. package/lib/ui/Progress.js +2 -2
  1012. package/lib/ui/Progress.js.map +1 -1
  1013. package/lib/ui/RadioGroup.js +11 -11
  1014. package/lib/ui/RadioGroup.js.map +1 -1
  1015. package/lib/ui/ReactComponentDoc.js +28 -0
  1016. package/lib/ui/ReactComponentDoc.js.map +1 -0
  1017. package/lib/ui/ScrollArea.js +2 -2
  1018. package/lib/ui/ScrollArea.js.map +1 -1
  1019. package/lib/ui/Secret.js +96 -0
  1020. package/lib/ui/Secret.js.map +1 -0
  1021. package/lib/ui/Select.js +32 -32
  1022. package/lib/ui/Select.js.map +1 -1
  1023. package/lib/ui/Skeleton.js +2 -2
  1024. package/lib/ui/Skeleton.js.map +1 -1
  1025. package/lib/ui/Slider.js +6 -6
  1026. package/lib/ui/Slider.js.map +1 -1
  1027. package/lib/ui/Stepper.js +1 -1
  1028. package/lib/ui/Stepper.js.map +1 -1
  1029. package/lib/ui/Switch.js +6 -6
  1030. package/lib/ui/Switch.js.map +1 -1
  1031. package/lib/ui/SyntaxHighlight.js +6 -6
  1032. package/lib/ui/Tabs.js +17 -17
  1033. package/lib/ui/Tabs.js.map +1 -1
  1034. package/lib/ui/Textarea.js +6 -6
  1035. package/lib/ui/Textarea.js.map +1 -1
  1036. package/lib/ui/Toggle.js +8 -8
  1037. package/lib/ui/Toggle.js.map +1 -1
  1038. package/lib/ui/ToggleGroup.js +2 -2
  1039. package/lib/ui/ToggleGroup.js.map +1 -1
  1040. package/lib/ui/Tooltip.js +15 -8
  1041. package/lib/ui/Tooltip.js.map +1 -1
  1042. package/lib/ui/Value.js +39 -0
  1043. package/lib/ui/Value.js.map +1 -0
  1044. package/lib/ui/util.js +1 -1
  1045. package/lib/useCopyToClipboard-B_085nfO.js +14 -0
  1046. package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
  1047. package/lib/useExposedProps-BH9aq4MD.js +113 -0
  1048. package/lib/useExposedProps-BH9aq4MD.js.map +1 -0
  1049. package/lib/useLatest-hmRS46UF.js.map +1 -1
  1050. package/lib/xml-DAaTIkBX.js +25 -0
  1051. package/lib/xml-DAaTIkBX.js.map +1 -0
  1052. package/lib/yaml-DUi-dbfu.js +32 -0
  1053. package/lib/yaml-DUi-dbfu.js.map +1 -0
  1054. package/lib/zudoku.__internal.js +2981 -0
  1055. package/lib/zudoku.__internal.js.map +1 -0
  1056. package/lib/zudoku.auth-auth0.js +29 -32
  1057. package/lib/zudoku.auth-auth0.js.map +1 -1
  1058. package/lib/zudoku.auth-azureb2c.js +137 -0
  1059. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  1060. package/lib/zudoku.auth-clerk.js +104 -99
  1061. package/lib/zudoku.auth-clerk.js.map +1 -1
  1062. package/lib/zudoku.auth-openid.js +557 -544
  1063. package/lib/zudoku.auth-openid.js.map +1 -1
  1064. package/lib/zudoku.auth-supabase.js +98 -0
  1065. package/lib/zudoku.auth-supabase.js.map +1 -0
  1066. package/lib/zudoku.components.js +24 -29
  1067. package/lib/zudoku.hooks.js +21 -13
  1068. package/lib/zudoku.hooks.js.map +1 -1
  1069. package/lib/zudoku.icons.js +1 -1
  1070. package/lib/zudoku.icons.js.map +1 -1
  1071. package/lib/zudoku.plugin-api-catalog.js +76 -68
  1072. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  1073. package/lib/zudoku.plugin-api-keys.js +735 -192
  1074. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1075. package/lib/zudoku.plugin-custom-pages.js +15 -18
  1076. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1077. package/lib/zudoku.plugin-markdown.js +20 -73
  1078. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1079. package/lib/zudoku.plugin-openapi.js +8 -6
  1080. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1081. package/lib/zudoku.plugin-redirect.js +3 -3
  1082. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1083. package/lib/zudoku.plugin-search-inkeep.js +55 -59
  1084. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1085. package/lib/zudoku.plugin-search-pagefind.js +216 -124
  1086. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  1087. package/lib/zudoku.plugins.js +7 -6
  1088. package/lib/zudoku.plugins.js.map +1 -1
  1089. package/lib/zudoku.router.js +123 -0
  1090. package/lib/zudoku.router.js.map +1 -0
  1091. package/package.json +133 -109
  1092. package/src/app/ZuploBuildConfig.ts +33 -0
  1093. package/src/app/defaultTheme.css +73 -0
  1094. package/src/app/demo.html +1 -1
  1095. package/src/app/demo.tsx +25 -7
  1096. package/src/app/entry.client.tsx +47 -5
  1097. package/src/app/entry.server.tsx +4 -6
  1098. package/src/app/env.ts +43 -0
  1099. package/src/app/font.geist.css +73 -0
  1100. package/src/app/main.css +130 -147
  1101. package/src/app/main.tsx +63 -58
  1102. package/src/app/standalone.tsx +14 -8
  1103. package/src/lib/MissingIcon.tsx +1 -1
  1104. package/src/lib/assets/language-icons/csharp.tsx +35 -0
  1105. package/src/lib/assets/language-icons/css.tsx +36 -0
  1106. package/src/lib/assets/language-icons/go.tsx +19 -0
  1107. package/src/lib/assets/language-icons/graphql.tsx +19 -0
  1108. package/src/lib/assets/language-icons/html.tsx +24 -0
  1109. package/src/lib/assets/language-icons/java.tsx +35 -0
  1110. package/src/lib/assets/language-icons/javascript.tsx +11 -0
  1111. package/src/lib/assets/language-icons/json.tsx +19 -0
  1112. package/src/lib/assets/language-icons/kotlin.tsx +30 -0
  1113. package/src/lib/assets/language-icons/markdown.tsx +19 -0
  1114. package/src/lib/assets/language-icons/mdx.tsx +23 -0
  1115. package/src/lib/assets/language-icons/objectivec.tsx +23 -0
  1116. package/src/lib/assets/language-icons/php.tsx +19 -0
  1117. package/src/lib/assets/language-icons/python.tsx +23 -0
  1118. package/src/lib/assets/language-icons/react.tsx +21 -0
  1119. package/src/lib/assets/language-icons/ruby.tsx +19 -0
  1120. package/src/lib/assets/language-icons/rust.tsx +19 -0
  1121. package/src/lib/assets/language-icons/shell.tsx +19 -0
  1122. package/src/lib/assets/language-icons/swift.tsx +19 -0
  1123. package/src/lib/assets/language-icons/toml.tsx +23 -0
  1124. package/src/lib/assets/language-icons/typescript.tsx +23 -0
  1125. package/src/lib/assets/language-icons/xml.tsx +19 -0
  1126. package/src/lib/assets/language-icons/yaml.tsx +23 -0
  1127. package/src/lib/auth/issuer.test.ts +121 -0
  1128. package/src/lib/auth/issuer.ts +41 -0
  1129. package/src/lib/authentication/AuthenticationPlugin.tsx +2 -2
  1130. package/src/lib/authentication/authentication.ts +6 -9
  1131. package/src/lib/authentication/components/CallbackHandler.tsx +28 -11
  1132. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  1133. package/src/lib/authentication/components/SignIn.tsx +27 -1
  1134. package/src/lib/authentication/components/SignOut.tsx +1 -1
  1135. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1136. package/src/lib/authentication/errors.ts +27 -13
  1137. package/src/lib/authentication/hook.ts +2 -0
  1138. package/src/lib/authentication/providers/auth0.tsx +12 -6
  1139. package/src/lib/authentication/providers/azureb2c.tsx +201 -0
  1140. package/src/lib/authentication/providers/clerk.tsx +93 -71
  1141. package/src/lib/authentication/providers/openid.tsx +121 -57
  1142. package/src/lib/authentication/providers/supabase.tsx +14 -20
  1143. package/src/lib/authentication/state.ts +37 -7
  1144. package/src/lib/authentication/use-broadcast/LICENSE.md +12 -3
  1145. package/src/lib/authentication/use-broadcast/shared.ts +4 -4
  1146. package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
  1147. package/src/lib/components/AnchorLink.tsx +1 -1
  1148. package/src/lib/components/Autocomplete.tsx +4 -3
  1149. package/src/lib/components/Banner.tsx +3 -4
  1150. package/src/lib/components/Bootstrap.tsx +1 -0
  1151. package/src/lib/components/BuildCheck.tsx +86 -0
  1152. package/src/lib/components/CategoryHeading.tsx +4 -1
  1153. package/src/lib/components/ErrorPage.tsx +3 -3
  1154. package/src/lib/components/Footer.tsx +6 -6
  1155. package/src/lib/components/Framed.tsx +51 -0
  1156. package/src/lib/components/Header.tsx +46 -43
  1157. package/src/lib/components/Heading.tsx +19 -12
  1158. package/src/lib/components/InlineCode.tsx +1 -1
  1159. package/src/lib/components/LanguageIcon.tsx +136 -0
  1160. package/src/lib/components/Layout.tsx +14 -29
  1161. package/src/lib/components/Main.tsx +15 -14
  1162. package/src/lib/components/Markdown.tsx +43 -27
  1163. package/src/lib/components/Meta.tsx +45 -0
  1164. package/src/lib/components/MobileTopNavigation.tsx +72 -16
  1165. package/src/lib/components/NotFoundPage.tsx +6 -5
  1166. package/src/lib/components/PageProgress.tsx +28 -0
  1167. package/src/lib/components/Pagination.tsx +6 -11
  1168. package/src/lib/components/PathRenderer.tsx +2 -2
  1169. package/src/lib/components/Search.tsx +16 -5
  1170. package/src/lib/components/Slot.test.tsx +465 -0
  1171. package/src/lib/components/Slot.tsx +64 -0
  1172. package/src/lib/components/StatusPage.tsx +5 -0
  1173. package/src/lib/components/TopNavigation.tsx +81 -86
  1174. package/src/lib/components/Typography.tsx +14 -0
  1175. package/src/lib/components/Zudoku.tsx +12 -14
  1176. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  1177. package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
  1178. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1179. package/src/lib/components/context/ViewportAnchorContext.tsx +10 -17
  1180. package/src/lib/components/context/ZudokuContext.ts +67 -43
  1181. package/src/lib/components/context/ZudokuProvider.tsx +3 -2
  1182. package/src/lib/components/index.ts +18 -26
  1183. package/src/lib/components/navigation/Navigation.tsx +50 -0
  1184. package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
  1185. package/src/lib/components/navigation/NavigationCategory.tsx +153 -0
  1186. package/src/lib/components/navigation/NavigationItem.tsx +161 -0
  1187. package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
  1188. package/src/lib/components/navigation/PoweredByZudoku.tsx +15 -5
  1189. package/src/lib/components/navigation/Toc.tsx +7 -7
  1190. package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
  1191. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1192. package/src/lib/components/navigation/utils.ts +82 -42
  1193. package/src/lib/core/RouteGuard.tsx +13 -13
  1194. package/src/lib/core/ZudokuContext.ts +96 -30
  1195. package/src/lib/core/__internal.tsx +30 -0
  1196. package/src/lib/core/plugins.ts +13 -4
  1197. package/src/lib/core/router.ts +1 -0
  1198. package/src/lib/errors/ErrorAlert.tsx +8 -17
  1199. package/src/lib/errors/TopLevelError.tsx +2 -4
  1200. package/src/lib/hooks/index.ts +11 -0
  1201. package/src/lib/hooks/useEvent.test.tsx +9 -7
  1202. package/src/lib/hooks/useHotkey.ts +70 -0
  1203. package/src/lib/oas/graphql/circular.ts +28 -20
  1204. package/src/lib/oas/graphql/index.ts +2 -1
  1205. package/src/lib/oas/parser/dereference/index.ts +2 -1
  1206. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  1207. package/src/lib/oas/parser/index.ts +9 -3
  1208. package/src/lib/oas/parser/upgrade/index.ts +100 -29
  1209. package/src/lib/plugins/api-catalog/Catalog.tsx +9 -2
  1210. package/src/lib/plugins/api-catalog/index.tsx +19 -19
  1211. package/src/lib/plugins/api-keys/CreateApiKey.tsx +70 -44
  1212. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
  1213. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +457 -119
  1214. package/src/lib/plugins/api-keys/index.tsx +143 -65
  1215. package/src/lib/plugins/custom-pages/index.tsx +24 -16
  1216. package/src/lib/plugins/markdown/MdxPage.tsx +81 -26
  1217. package/src/lib/plugins/markdown/index.tsx +30 -43
  1218. package/src/lib/plugins/openapi/CollapsibleCode.tsx +8 -5
  1219. package/src/lib/plugins/openapi/ColorizedParam.tsx +5 -3
  1220. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  1221. package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
  1222. package/src/lib/plugins/openapi/OperationList.tsx +35 -31
  1223. package/src/lib/plugins/openapi/OperationListItem.tsx +41 -62
  1224. package/src/lib/plugins/openapi/ParamInfos.tsx +14 -10
  1225. package/src/lib/plugins/openapi/ParameterList.tsx +3 -5
  1226. package/src/lib/plugins/openapi/ParameterListItem.tsx +42 -12
  1227. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +16 -8
  1228. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +3 -2
  1229. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  1230. package/src/lib/plugins/openapi/SchemaList.tsx +25 -19
  1231. package/src/lib/plugins/openapi/Sidecar.tsx +18 -69
  1232. package/src/lib/plugins/openapi/SidecarExamples.tsx +11 -11
  1233. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  1234. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
  1235. package/src/lib/plugins/openapi/client/createServer.ts +1 -2
  1236. package/src/lib/plugins/openapi/client/useCreateQuery.ts +24 -4
  1237. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1238. package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
  1239. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1240. package/src/lib/plugins/openapi/context.tsx +1 -1
  1241. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -2
  1242. package/src/lib/plugins/openapi/graphql/gql.ts +8 -9
  1243. package/src/lib/plugins/openapi/graphql/graphql.ts +10 -7
  1244. package/src/lib/plugins/openapi/index.tsx +85 -33
  1245. package/src/lib/plugins/openapi/interfaces.ts +10 -7
  1246. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  1247. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  1248. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +11 -4
  1249. package/src/lib/plugins/openapi/playground/Headers.tsx +217 -115
  1250. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +4 -3
  1251. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +20 -36
  1252. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  1253. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
  1254. package/src/lib/plugins/openapi/playground/PathParams.tsx +5 -6
  1255. package/src/lib/plugins/openapi/playground/Playground.tsx +270 -293
  1256. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -2
  1257. package/src/lib/plugins/openapi/playground/QueryParams.tsx +106 -60
  1258. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1259. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1260. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1261. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1262. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1263. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +117 -0
  1264. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +149 -108
  1265. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +70 -91
  1266. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
  1267. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  1268. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +223 -0
  1269. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1270. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +183 -0
  1271. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1272. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1273. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1274. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1275. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.tsx +36 -0
  1276. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.tsx +25 -0
  1277. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.tsx +35 -0
  1278. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +10 -7
  1279. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +39 -46
  1280. package/src/lib/plugins/openapi/schema/SchemaView.tsx +52 -36
  1281. package/src/lib/plugins/openapi/schema/UnionView.tsx +123 -0
  1282. package/src/lib/plugins/openapi/schema/union-helpers.ts +96 -0
  1283. package/src/lib/plugins/openapi/schema/utils.ts +24 -17
  1284. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  1285. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +39 -0
  1286. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +54 -5
  1287. package/src/lib/plugins/openapi/util/getRoutes.tsx +87 -15
  1288. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  1289. package/src/lib/plugins/redirect/index.tsx +1 -1
  1290. package/src/lib/plugins/search-inkeep/index.tsx +54 -58
  1291. package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
  1292. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +3 -4
  1293. package/src/lib/plugins/search-pagefind/ResultList.tsx +16 -8
  1294. package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
  1295. package/src/lib/shiki.ts +138 -0
  1296. package/src/lib/ui/ActionButton.tsx +3 -1
  1297. package/src/lib/ui/Alert.tsx +45 -39
  1298. package/src/lib/ui/Badge.tsx +2 -2
  1299. package/src/lib/ui/Breadcrumb.tsx +1 -0
  1300. package/src/lib/ui/Button.tsx +9 -6
  1301. package/src/lib/ui/Callout.tsx +3 -1
  1302. package/src/lib/ui/Card.tsx +1 -1
  1303. package/src/lib/ui/Carousel.tsx +1 -0
  1304. package/src/lib/ui/Checkbox.tsx +1 -1
  1305. package/src/lib/ui/CodeBlock.tsx +82 -0
  1306. package/src/lib/ui/Command.tsx +6 -8
  1307. package/src/lib/ui/Dialog.tsx +20 -8
  1308. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1309. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  1310. package/src/lib/ui/Form.tsx +4 -4
  1311. package/src/lib/ui/HoverCard.tsx +1 -1
  1312. package/src/lib/ui/Input.tsx +1 -1
  1313. package/src/lib/ui/Pagination.tsx +1 -2
  1314. package/src/lib/ui/Popover.tsx +1 -1
  1315. package/src/lib/ui/RadioGroup.tsx +1 -1
  1316. package/src/lib/ui/ReactComponentDoc.tsx +68 -0
  1317. package/src/lib/ui/Secret.tsx +106 -0
  1318. package/src/lib/ui/Select.tsx +3 -3
  1319. package/src/lib/ui/Slider.tsx +1 -1
  1320. package/src/lib/ui/Switch.tsx +1 -1
  1321. package/src/lib/ui/SyntaxHighlight.tsx +28 -179
  1322. package/src/lib/ui/Tabs.tsx +2 -2
  1323. package/src/lib/ui/Textarea.tsx +1 -1
  1324. package/src/lib/ui/Toggle.tsx +1 -1
  1325. package/src/lib/ui/ToggleGroup.tsx +1 -1
  1326. package/src/lib/ui/Tooltip.tsx +16 -1
  1327. package/src/lib/ui/Value.tsx +42 -0
  1328. package/src/lib/util/MdxComponents.tsx +53 -17
  1329. package/src/lib/util/cn.ts +1 -1
  1330. package/src/lib/util/createVariantComponent.tsx +2 -2
  1331. package/src/lib/util/detectOS.ts +9 -0
  1332. package/src/lib/util/ensureArray.ts +3 -0
  1333. package/src/lib/util/groupBy.ts +1 -0
  1334. package/src/lib/util/humanFileSize.test.ts +24 -0
  1335. package/src/lib/util/humanFileSize.ts +15 -0
  1336. package/src/lib/util/invariant.ts +8 -5
  1337. package/src/lib/util/os.ts +18 -0
  1338. package/src/lib/util/pastellize.ts +2 -2
  1339. package/src/lib/util/traverse.ts +8 -5
  1340. package/src/lib/util/types.ts +1 -1
  1341. package/src/lib/util/url.test.ts +51 -0
  1342. package/src/lib/util/url.ts +18 -0
  1343. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1344. package/src/lib/util/useExposedProps.tsx +12 -1
  1345. package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
  1346. package/src/lib/util/useScrollToAnchor.ts +6 -4
  1347. package/src/shiki/langs/abap.js +1 -0
  1348. package/src/shiki/langs/actionscript-3.js +1 -0
  1349. package/src/shiki/langs/ada.js +1 -0
  1350. package/src/shiki/langs/angular-expression.js +1 -0
  1351. package/src/shiki/langs/angular-html.js +1 -0
  1352. package/src/shiki/langs/angular-inline-style.js +1 -0
  1353. package/src/shiki/langs/angular-inline-template.js +1 -0
  1354. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1355. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1356. package/src/shiki/langs/angular-template.js +1 -0
  1357. package/src/shiki/langs/angular-ts.js +1 -0
  1358. package/src/shiki/langs/apache.js +1 -0
  1359. package/src/shiki/langs/apex.js +1 -0
  1360. package/src/shiki/langs/apl.js +1 -0
  1361. package/src/shiki/langs/applescript.js +1 -0
  1362. package/src/shiki/langs/ara.js +1 -0
  1363. package/src/shiki/langs/asciidoc.js +1 -0
  1364. package/src/shiki/langs/asm.js +1 -0
  1365. package/src/shiki/langs/astro.js +1 -0
  1366. package/src/shiki/langs/awk.js +1 -0
  1367. package/src/shiki/langs/ballerina.js +1 -0
  1368. package/src/shiki/langs/bat.js +1 -0
  1369. package/src/shiki/langs/beancount.js +1 -0
  1370. package/src/shiki/langs/berry.js +1 -0
  1371. package/src/shiki/langs/bibtex.js +1 -0
  1372. package/src/shiki/langs/bicep.js +1 -0
  1373. package/src/shiki/langs/blade.js +1 -0
  1374. package/src/shiki/langs/bsl.js +1 -0
  1375. package/src/shiki/langs/c.js +1 -0
  1376. package/src/shiki/langs/cadence.js +1 -0
  1377. package/src/shiki/langs/cairo.js +1 -0
  1378. package/src/shiki/langs/clarity.js +1 -0
  1379. package/src/shiki/langs/clojure.js +1 -0
  1380. package/src/shiki/langs/cmake.js +1 -0
  1381. package/src/shiki/langs/cobol.js +1 -0
  1382. package/src/shiki/langs/codeowners.js +1 -0
  1383. package/src/shiki/langs/codeql.js +1 -0
  1384. package/src/shiki/langs/coffee.js +1 -0
  1385. package/src/shiki/langs/common-lisp.js +1 -0
  1386. package/src/shiki/langs/coq.js +1 -0
  1387. package/src/shiki/langs/cpp-macro.js +1 -0
  1388. package/src/shiki/langs/cpp.js +1 -0
  1389. package/src/shiki/langs/crystal.js +1 -0
  1390. package/src/shiki/langs/csharp.js +1 -0
  1391. package/src/shiki/langs/css.js +1 -0
  1392. package/src/shiki/langs/csv.js +1 -0
  1393. package/src/shiki/langs/cue.js +1 -0
  1394. package/src/shiki/langs/cypher.js +1 -0
  1395. package/src/shiki/langs/d.js +1 -0
  1396. package/src/shiki/langs/dart.js +1 -0
  1397. package/src/shiki/langs/dax.js +1 -0
  1398. package/src/shiki/langs/desktop.js +1 -0
  1399. package/src/shiki/langs/diff.js +1 -0
  1400. package/src/shiki/langs/docker.js +1 -0
  1401. package/src/shiki/langs/dotenv.js +1 -0
  1402. package/src/shiki/langs/dream-maker.js +1 -0
  1403. package/src/shiki/langs/edge.js +1 -0
  1404. package/src/shiki/langs/elixir.js +1 -0
  1405. package/src/shiki/langs/elm.js +1 -0
  1406. package/src/shiki/langs/emacs-lisp.js +1 -0
  1407. package/src/shiki/langs/erb.js +1 -0
  1408. package/src/shiki/langs/erlang.js +1 -0
  1409. package/src/shiki/langs/es-tag-css.js +1 -0
  1410. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1411. package/src/shiki/langs/es-tag-html.js +1 -0
  1412. package/src/shiki/langs/es-tag-sql.js +1 -0
  1413. package/src/shiki/langs/es-tag-xml.js +1 -0
  1414. package/src/shiki/langs/fennel.js +1 -0
  1415. package/src/shiki/langs/fish.js +1 -0
  1416. package/src/shiki/langs/fluent.js +1 -0
  1417. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1418. package/src/shiki/langs/fortran-free-form.js +1 -0
  1419. package/src/shiki/langs/fsharp.js +1 -0
  1420. package/src/shiki/langs/gdresource.js +1 -0
  1421. package/src/shiki/langs/gdscript.js +1 -0
  1422. package/src/shiki/langs/gdshader.js +1 -0
  1423. package/src/shiki/langs/genie.js +1 -0
  1424. package/src/shiki/langs/gherkin.js +1 -0
  1425. package/src/shiki/langs/git-commit.js +1 -0
  1426. package/src/shiki/langs/git-rebase.js +1 -0
  1427. package/src/shiki/langs/gleam.js +1 -0
  1428. package/src/shiki/langs/glimmer-js.js +1 -0
  1429. package/src/shiki/langs/glimmer-ts.js +1 -0
  1430. package/src/shiki/langs/glsl.js +1 -0
  1431. package/src/shiki/langs/gnuplot.js +1 -0
  1432. package/src/shiki/langs/go.js +1 -0
  1433. package/src/shiki/langs/graphql.js +1 -0
  1434. package/src/shiki/langs/groovy.js +1 -0
  1435. package/src/shiki/langs/hack.js +1 -0
  1436. package/src/shiki/langs/haml.js +1 -0
  1437. package/src/shiki/langs/handlebars.js +1 -0
  1438. package/src/shiki/langs/haskell.js +1 -0
  1439. package/src/shiki/langs/haxe.js +1 -0
  1440. package/src/shiki/langs/hcl.js +1 -0
  1441. package/src/shiki/langs/hjson.js +1 -0
  1442. package/src/shiki/langs/hlsl.js +1 -0
  1443. package/src/shiki/langs/html-derivative.js +1 -0
  1444. package/src/shiki/langs/html.js +1 -0
  1445. package/src/shiki/langs/http.js +1 -0
  1446. package/src/shiki/langs/hxml.js +1 -0
  1447. package/src/shiki/langs/hy.js +1 -0
  1448. package/src/shiki/langs/imba.js +1 -0
  1449. package/src/shiki/langs/ini.js +1 -0
  1450. package/src/shiki/langs/java.js +1 -0
  1451. package/src/shiki/langs/javascript.js +1 -0
  1452. package/src/shiki/langs/jinja-html.js +1 -0
  1453. package/src/shiki/langs/jinja.js +1 -0
  1454. package/src/shiki/langs/jison.js +1 -0
  1455. package/src/shiki/langs/json.js +1 -0
  1456. package/src/shiki/langs/json5.js +1 -0
  1457. package/src/shiki/langs/jsonc.js +1 -0
  1458. package/src/shiki/langs/jsonl.js +1 -0
  1459. package/src/shiki/langs/jsonnet.js +1 -0
  1460. package/src/shiki/langs/jssm.js +1 -0
  1461. package/src/shiki/langs/jsx.js +1 -0
  1462. package/src/shiki/langs/julia.js +1 -0
  1463. package/src/shiki/langs/kotlin.js +1 -0
  1464. package/src/shiki/langs/kusto.js +1 -0
  1465. package/src/shiki/langs/latex.js +1 -0
  1466. package/src/shiki/langs/lean.js +1 -0
  1467. package/src/shiki/langs/less.js +1 -0
  1468. package/src/shiki/langs/liquid.js +1 -0
  1469. package/src/shiki/langs/llvm.js +1 -0
  1470. package/src/shiki/langs/log.js +1 -0
  1471. package/src/shiki/langs/logo.js +1 -0
  1472. package/src/shiki/langs/lua.js +1 -0
  1473. package/src/shiki/langs/luau.js +1 -0
  1474. package/src/shiki/langs/make.js +1 -0
  1475. package/src/shiki/langs/markdown-vue.js +1 -0
  1476. package/src/shiki/langs/markdown.js +1 -0
  1477. package/src/shiki/langs/marko.js +1 -0
  1478. package/src/shiki/langs/matlab.js +1 -0
  1479. package/src/shiki/langs/mdc.js +1 -0
  1480. package/src/shiki/langs/mdx.js +1 -0
  1481. package/src/shiki/langs/mermaid.js +1 -0
  1482. package/src/shiki/langs/mipsasm.js +1 -0
  1483. package/src/shiki/langs/mojo.js +1 -0
  1484. package/src/shiki/langs/move.js +1 -0
  1485. package/src/shiki/langs/narrat.js +1 -0
  1486. package/src/shiki/langs/nextflow.js +1 -0
  1487. package/src/shiki/langs/nginx.js +1 -0
  1488. package/src/shiki/langs/nim.js +1 -0
  1489. package/src/shiki/langs/nix.js +1 -0
  1490. package/src/shiki/langs/nushell.js +1 -0
  1491. package/src/shiki/langs/objective-c.js +1 -0
  1492. package/src/shiki/langs/objective-cpp.js +1 -0
  1493. package/src/shiki/langs/ocaml.js +1 -0
  1494. package/src/shiki/langs/pascal.js +1 -0
  1495. package/src/shiki/langs/perl.js +1 -0
  1496. package/src/shiki/langs/php.js +1 -0
  1497. package/src/shiki/langs/plsql.js +1 -0
  1498. package/src/shiki/langs/po.js +1 -0
  1499. package/src/shiki/langs/polar.js +1 -0
  1500. package/src/shiki/langs/postcss.js +1 -0
  1501. package/src/shiki/langs/powerquery.js +1 -0
  1502. package/src/shiki/langs/powershell.js +1 -0
  1503. package/src/shiki/langs/prisma.js +1 -0
  1504. package/src/shiki/langs/prolog.js +1 -0
  1505. package/src/shiki/langs/proto.js +1 -0
  1506. package/src/shiki/langs/pug.js +1 -0
  1507. package/src/shiki/langs/puppet.js +1 -0
  1508. package/src/shiki/langs/purescript.js +1 -0
  1509. package/src/shiki/langs/python.js +1 -0
  1510. package/src/shiki/langs/qml.js +1 -0
  1511. package/src/shiki/langs/qmldir.js +1 -0
  1512. package/src/shiki/langs/qss.js +1 -0
  1513. package/src/shiki/langs/r.js +1 -0
  1514. package/src/shiki/langs/racket.js +1 -0
  1515. package/src/shiki/langs/raku.js +1 -0
  1516. package/src/shiki/langs/razor.js +1 -0
  1517. package/src/shiki/langs/reg.js +1 -0
  1518. package/src/shiki/langs/regexp.js +1 -0
  1519. package/src/shiki/langs/rel.js +1 -0
  1520. package/src/shiki/langs/riscv.js +1 -0
  1521. package/src/shiki/langs/rst.js +1 -0
  1522. package/src/shiki/langs/ruby.js +1 -0
  1523. package/src/shiki/langs/rust.js +1 -0
  1524. package/src/shiki/langs/sas.js +1 -0
  1525. package/src/shiki/langs/sass.js +1 -0
  1526. package/src/shiki/langs/scala.js +1 -0
  1527. package/src/shiki/langs/scheme.js +1 -0
  1528. package/src/shiki/langs/scss.js +1 -0
  1529. package/src/shiki/langs/sdbl.js +1 -0
  1530. package/src/shiki/langs/shaderlab.js +1 -0
  1531. package/src/shiki/langs/shellscript.js +1 -0
  1532. package/src/shiki/langs/shellsession.js +1 -0
  1533. package/src/shiki/langs/smalltalk.js +1 -0
  1534. package/src/shiki/langs/solidity.js +1 -0
  1535. package/src/shiki/langs/soy.js +1 -0
  1536. package/src/shiki/langs/sparql.js +1 -0
  1537. package/src/shiki/langs/splunk.js +1 -0
  1538. package/src/shiki/langs/sql.js +1 -0
  1539. package/src/shiki/langs/ssh-config.js +1 -0
  1540. package/src/shiki/langs/stata.js +1 -0
  1541. package/src/shiki/langs/stylus.js +1 -0
  1542. package/src/shiki/langs/svelte.js +1 -0
  1543. package/src/shiki/langs/swift.js +1 -0
  1544. package/src/shiki/langs/system-verilog.js +1 -0
  1545. package/src/shiki/langs/systemd.js +1 -0
  1546. package/src/shiki/langs/talonscript.js +1 -0
  1547. package/src/shiki/langs/tasl.js +1 -0
  1548. package/src/shiki/langs/tcl.js +1 -0
  1549. package/src/shiki/langs/templ.js +1 -0
  1550. package/src/shiki/langs/terraform.js +1 -0
  1551. package/src/shiki/langs/tex.js +1 -0
  1552. package/src/shiki/langs/toml.js +1 -0
  1553. package/src/shiki/langs/ts-tags.js +1 -0
  1554. package/src/shiki/langs/tsv.js +1 -0
  1555. package/src/shiki/langs/tsx.js +1 -0
  1556. package/src/shiki/langs/turtle.js +1 -0
  1557. package/src/shiki/langs/twig.js +1 -0
  1558. package/src/shiki/langs/typescript.js +1 -0
  1559. package/src/shiki/langs/typespec.js +1 -0
  1560. package/src/shiki/langs/typst.js +1 -0
  1561. package/src/shiki/langs/v.js +1 -0
  1562. package/src/shiki/langs/vala.js +1 -0
  1563. package/src/shiki/langs/vb.js +1 -0
  1564. package/src/shiki/langs/verilog.js +1 -0
  1565. package/src/shiki/langs/vhdl.js +1 -0
  1566. package/src/shiki/langs/viml.js +1 -0
  1567. package/src/shiki/langs/vue-directives.js +1 -0
  1568. package/src/shiki/langs/vue-html.js +1 -0
  1569. package/src/shiki/langs/vue-interpolations.js +1 -0
  1570. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1571. package/src/shiki/langs/vue-vine.js +1 -0
  1572. package/src/shiki/langs/vue.js +1 -0
  1573. package/src/shiki/langs/vyper.js +1 -0
  1574. package/src/shiki/langs/wasm.js +1 -0
  1575. package/src/shiki/langs/wenyan.js +1 -0
  1576. package/src/shiki/langs/wgsl.js +1 -0
  1577. package/src/shiki/langs/wikitext.js +1 -0
  1578. package/src/shiki/langs/wit.js +1 -0
  1579. package/src/shiki/langs/wolfram.js +1 -0
  1580. package/src/shiki/langs/xml.js +1 -0
  1581. package/src/shiki/langs/xsl.js +1 -0
  1582. package/src/shiki/langs/yaml.js +1 -0
  1583. package/src/shiki/langs/zenscript.js +1 -0
  1584. package/src/shiki/langs/zig.js +1 -0
  1585. package/src/shiki/themes/andromeeda.js +1 -0
  1586. package/src/shiki/themes/aurora-x.js +1 -0
  1587. package/src/shiki/themes/ayu-dark.js +1 -0
  1588. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1589. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1590. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1591. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1592. package/src/shiki/themes/dark-plus.js +1 -0
  1593. package/src/shiki/themes/dracula-soft.js +1 -0
  1594. package/src/shiki/themes/dracula.js +1 -0
  1595. package/src/shiki/themes/everforest-dark.js +1 -0
  1596. package/src/shiki/themes/everforest-light.js +1 -0
  1597. package/src/shiki/themes/github-dark-default.js +1 -0
  1598. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1599. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1600. package/src/shiki/themes/github-dark.js +1 -0
  1601. package/src/shiki/themes/github-light-default.js +1 -0
  1602. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1603. package/src/shiki/themes/github-light.js +1 -0
  1604. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1605. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1606. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1607. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1608. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1609. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1610. package/src/shiki/themes/houston.js +1 -0
  1611. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1612. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1613. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1614. package/src/shiki/themes/laserwave.js +1 -0
  1615. package/src/shiki/themes/light-plus.js +1 -0
  1616. package/src/shiki/themes/material-theme-darker.js +1 -0
  1617. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1618. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1619. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1620. package/src/shiki/themes/material-theme.js +1 -0
  1621. package/src/shiki/themes/min-dark.js +1 -0
  1622. package/src/shiki/themes/min-light.js +1 -0
  1623. package/src/shiki/themes/monokai.js +1 -0
  1624. package/src/shiki/themes/night-owl.js +1 -0
  1625. package/src/shiki/themes/nord.js +1 -0
  1626. package/src/shiki/themes/one-dark-pro.js +1 -0
  1627. package/src/shiki/themes/one-light.js +1 -0
  1628. package/src/shiki/themes/plastic.js +1 -0
  1629. package/src/shiki/themes/poimandres.js +1 -0
  1630. package/src/shiki/themes/red.js +1 -0
  1631. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1632. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1633. package/src/shiki/themes/rose-pine.js +1 -0
  1634. package/src/shiki/themes/slack-dark.js +1 -0
  1635. package/src/shiki/themes/slack-ochin.js +1 -0
  1636. package/src/shiki/themes/snazzy-light.js +1 -0
  1637. package/src/shiki/themes/solarized-dark.js +1 -0
  1638. package/src/shiki/themes/solarized-light.js +1 -0
  1639. package/src/shiki/themes/synthwave-84.js +1 -0
  1640. package/src/shiki/themes/tokyo-night.js +1 -0
  1641. package/src/shiki/themes/vesper.js +1 -0
  1642. package/src/shiki/themes/vitesse-black.js +1 -0
  1643. package/src/shiki/themes/vitesse-dark.js +1 -0
  1644. package/src/shiki/themes/vitesse-light.js +1 -0
  1645. package/client.d.ts +0 -8
  1646. package/dist/app/tailwind.d.ts +0 -4
  1647. package/dist/app/tailwind.js +0 -97
  1648. package/dist/app/tailwind.js.map +0 -1
  1649. package/dist/config/common.d.ts +0 -10
  1650. package/dist/config/common.js +0 -2
  1651. package/dist/config/common.js.map +0 -1
  1652. package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
  1653. package/dist/config/validators/InputSidebarSchema.js +0 -62
  1654. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1655. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  1656. package/dist/config/validators/SidebarSchema.js +0 -118
  1657. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1658. package/dist/config/validators/common.d.ts +0 -7714
  1659. package/dist/config/validators/common.js +0 -408
  1660. package/dist/config/validators/common.js.map +0 -1
  1661. package/dist/lib/components/ReactMarkdown.d.ts +0 -29
  1662. package/dist/lib/components/ReactMarkdown.js +0 -182
  1663. package/dist/lib/components/ReactMarkdown.js.map +0 -1
  1664. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1665. package/dist/lib/components/SlotletProvider.js +0 -18
  1666. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1667. package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
  1668. package/dist/lib/components/navigation/Sidebar.js +0 -8
  1669. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1670. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -26
  1671. package/dist/lib/components/navigation/SidebarBadge.js +0 -26
  1672. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1673. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1674. package/dist/lib/components/navigation/SidebarCategory.js +0 -55
  1675. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1676. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -11
  1677. package/dist/lib/components/navigation/SidebarItem.js +0 -50
  1678. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1679. package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -7
  1680. package/dist/lib/components/navigation/SidebarWrapper.js +0 -21
  1681. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1682. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  1683. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  1684. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  1685. package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
  1686. package/dist/lib/plugins/markdown/resolver.js +0 -46
  1687. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1688. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
  1689. package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -22
  1690. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
  1691. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1692. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1693. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1694. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
  1695. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
  1696. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
  1697. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
  1698. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +0 -16
  1699. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
  1700. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +0 -174
  1701. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
  1702. package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +0 -10
  1703. package/dist/lib/plugins/openapi/post-processors/removeParameters.js +0 -66
  1704. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
  1705. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +0 -131
  1706. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
  1707. package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +0 -11
  1708. package/dist/lib/plugins/openapi/post-processors/removePaths.js +0 -33
  1709. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
  1710. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
  1711. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
  1712. package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +0 -1
  1713. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
  1714. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
  1715. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  1716. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  1717. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
  1718. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  1719. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  1720. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -6
  1721. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  1722. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  1723. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
  1724. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +0 -23
  1725. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
  1726. package/dist/vite/plugin-docs.test.js +0 -22
  1727. package/dist/vite/plugin-docs.test.js.map +0 -1
  1728. package/dist/vite/plugin-sidebar.d.ts +0 -3
  1729. package/dist/vite/plugin-sidebar.js +0 -56
  1730. package/dist/vite/plugin-sidebar.js.map +0 -1
  1731. package/dist/vite/plugin-theme-css.d.ts +0 -6
  1732. package/dist/vite/plugin-theme-css.js +0 -117
  1733. package/dist/vite/plugin-theme-css.js.map +0 -1
  1734. package/dist/vite/remarkStaticGeneration.d.ts +0 -3
  1735. package/dist/vite/remarkStaticGeneration.js +0 -125
  1736. package/dist/vite/remarkStaticGeneration.js.map +0 -1
  1737. package/dist/zuplo/env.d.ts +0 -7
  1738. package/dist/zuplo/env.js +0 -12
  1739. package/dist/zuplo/env.js.map +0 -1
  1740. package/lib/AuthenticationPlugin-foqdvvkf.js +0 -58
  1741. package/lib/AuthenticationPlugin-foqdvvkf.js.map +0 -1
  1742. package/lib/Button-Fp19CMUr.js +0 -49
  1743. package/lib/Button-Fp19CMUr.js.map +0 -1
  1744. package/lib/Callout-B2vsR09t.js +0 -229
  1745. package/lib/Callout-B2vsR09t.js.map +0 -1
  1746. package/lib/CategoryHeading-DpB47wvk.js +0 -10
  1747. package/lib/CategoryHeading-DpB47wvk.js.map +0 -1
  1748. package/lib/Dialog-sbgekbjb.js +0 -98
  1749. package/lib/Dialog-sbgekbjb.js.map +0 -1
  1750. package/lib/Drawer-kDAfOq_2.js +0 -1133
  1751. package/lib/Drawer-kDAfOq_2.js.map +0 -1
  1752. package/lib/Markdown-aF5FdsNi.js +0 -16960
  1753. package/lib/Markdown-aF5FdsNi.js.map +0 -1
  1754. package/lib/MdxPage-Vw_dc9Yz.js +0 -85
  1755. package/lib/MdxPage-Vw_dc9Yz.js.map +0 -1
  1756. package/lib/OasProvider-CjXTP-nz.js +0 -34
  1757. package/lib/OasProvider-CjXTP-nz.js.map +0 -1
  1758. package/lib/OperationList-BYemrDYk.js +0 -5068
  1759. package/lib/OperationList-BYemrDYk.js.map +0 -1
  1760. package/lib/Pagination-SdlocK96.js +0 -48
  1761. package/lib/Pagination-SdlocK96.js.map +0 -1
  1762. package/lib/RouteGuard-CqZPoZYJ.js +0 -744
  1763. package/lib/RouteGuard-CqZPoZYJ.js.map +0 -1
  1764. package/lib/SchemaList-CAeKy9pV.js +0 -148
  1765. package/lib/SchemaList-CAeKy9pV.js.map +0 -1
  1766. package/lib/SchemaView-B3fOPR4V.js +0 -357
  1767. package/lib/SchemaView-B3fOPR4V.js.map +0 -1
  1768. package/lib/Select-DVFRKf1R.js +0 -223
  1769. package/lib/Select-DVFRKf1R.js.map +0 -1
  1770. package/lib/SlotletProvider-DXvc0aY6.js +0 -338
  1771. package/lib/SlotletProvider-DXvc0aY6.js.map +0 -1
  1772. package/lib/Spinner-CE68iCm0.js +0 -7
  1773. package/lib/Spinner-CE68iCm0.js.map +0 -1
  1774. package/lib/SyntaxHighlight-BEoSoPEo.js +0 -2890
  1775. package/lib/SyntaxHighlight-BEoSoPEo.js.map +0 -1
  1776. package/lib/Toc-YBsgI72s.js +0 -92
  1777. package/lib/Toc-YBsgI72s.js.map +0 -1
  1778. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1779. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1780. package/lib/chunk-HA7DTUK3-C4gP41vD.js +0 -1821
  1781. package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +0 -1
  1782. package/lib/circular-ByJI6Mci.js +0 -15877
  1783. package/lib/circular-ByJI6Mci.js.map +0 -1
  1784. package/lib/cn-qaFjX9_3.js +0 -2279
  1785. package/lib/cn-qaFjX9_3.js.map +0 -1
  1786. package/lib/context-DLCwaMXN.js +0 -22
  1787. package/lib/context-DLCwaMXN.js.map +0 -1
  1788. package/lib/createServer-mYvGvmc0.js +0 -12454
  1789. package/lib/createServer-mYvGvmc0.js.map +0 -1
  1790. package/lib/hook-CqpVYDqN.js +0 -1483
  1791. package/lib/hook-CqpVYDqN.js.map +0 -1
  1792. package/lib/index-Bn6Lc9tq.js +0 -9
  1793. package/lib/index-Bn6Lc9tq.js.map +0 -1
  1794. package/lib/index-C1OzjGUK.js +0 -2227
  1795. package/lib/index-C1OzjGUK.js.map +0 -1
  1796. package/lib/index-CPNSgwSb.js +0 -36
  1797. package/lib/index-CPNSgwSb.js.map +0 -1
  1798. package/lib/index-D48iOQvJ.js +0 -1973
  1799. package/lib/index-D48iOQvJ.js.map +0 -1
  1800. package/lib/index-Dl3Yl0yb.js +0 -4837
  1801. package/lib/index-Dl3Yl0yb.js.map +0 -1
  1802. package/lib/index-DwT-v3zK.js +0 -86
  1803. package/lib/index-DwT-v3zK.js.map +0 -1
  1804. package/lib/index-LNp6rxyU.js +0 -2094
  1805. package/lib/index-LNp6rxyU.js.map +0 -1
  1806. package/lib/index-gQD2h1wX.js +0 -447
  1807. package/lib/index-gQD2h1wX.js.map +0 -1
  1808. package/lib/index.esm--gIChbWs.js +0 -1207
  1809. package/lib/index.esm--gIChbWs.js.map +0 -1
  1810. package/lib/invariant-Caa8-XvF.js +0 -26
  1811. package/lib/invariant-Caa8-XvF.js.map +0 -1
  1812. package/lib/jsx-runtime-CYK1ROHF.js +0 -446
  1813. package/lib/jsx-runtime-CYK1ROHF.js.map +0 -1
  1814. package/lib/mutation-8LjrN7uz.js +0 -208
  1815. package/lib/mutation-8LjrN7uz.js.map +0 -1
  1816. package/lib/objectEntries-yMIkr2mI.js +0 -5
  1817. package/lib/objectEntries-yMIkr2mI.js.map +0 -1
  1818. package/lib/post-processors/removeExtensions.js +0 -11
  1819. package/lib/post-processors/removeExtensions.js.map +0 -1
  1820. package/lib/post-processors/removeParameters.js +0 -48
  1821. package/lib/post-processors/removeParameters.js.map +0 -1
  1822. package/lib/post-processors/removePaths.js +0 -28
  1823. package/lib/post-processors/removePaths.js.map +0 -1
  1824. package/lib/post-processors/traverse.js +0 -15
  1825. package/lib/post-processors/traverse.js.map +0 -1
  1826. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  1827. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  1828. package/lib/prism-csharp.min-bQAo2pmx.js +0 -63
  1829. package/lib/prism-csharp.min-bQAo2pmx.js.map +0 -1
  1830. package/lib/prism-java.min-BpvsOuIa.js +0 -35
  1831. package/lib/prism-java.min-BpvsOuIa.js.map +0 -1
  1832. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1833. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1834. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1835. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1836. package/lib/prism-jsstacktrace.min-BfobCF2F.js +0 -2
  1837. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +0 -1
  1838. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  1839. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  1840. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1841. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1842. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1843. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1844. package/lib/prism-ruby.min-Dx9KO9ds.js +0 -38
  1845. package/lib/prism-ruby.min-Dx9KO9ds.js.map +0 -1
  1846. package/lib/prism-typescript.min-CD7H2IYQ.js +0 -34
  1847. package/lib/prism-typescript.min-CD7H2IYQ.js.map +0 -1
  1848. package/lib/useExposedProps-B9qXJedG.js +0 -9
  1849. package/lib/useExposedProps-B9qXJedG.js.map +0 -1
  1850. package/src/app/tailwind.ts +0 -103
  1851. package/src/lib/components/ReactMarkdown.license.txt +0 -21
  1852. package/src/lib/components/ReactMarkdown.tsx +0 -264
  1853. package/src/lib/components/SlotletProvider.tsx +0 -55
  1854. package/src/lib/components/navigation/Sidebar.tsx +0 -41
  1855. package/src/lib/components/navigation/SidebarBadge.tsx +0 -48
  1856. package/src/lib/components/navigation/SidebarCategory.tsx +0 -140
  1857. package/src/lib/components/navigation/SidebarItem.tsx +0 -118
  1858. package/src/lib/components/navigation/SidebarWrapper.tsx +0 -46
  1859. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  1860. package/src/lib/plugins/markdown/resolver.ts +0 -57
  1861. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -75
  1862. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  1863. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
  1864. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +0 -202
  1865. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +0 -27
  1866. package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +0 -148
  1867. package/src/lib/plugins/openapi/post-processors/removeParameters.ts +0 -101
  1868. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
  1869. package/src/lib/plugins/openapi/post-processors/removePaths.ts +0 -55
  1870. package/src/lib/plugins/openapi/post-processors/traverse.ts +0 -1
  1871. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
  1872. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -57
  1873. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -33
  1874. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +0 -37
  1875. /package/dist/{lib/plugins/openapi/post-processors/removeExtensions.test.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
  1876. /package/dist/{lib/plugins/openapi/post-processors/removeParameters.test.d.ts → config/validators/validate.test.d.ts} +0 -0
  1877. /package/dist/lib/{plugins/openapi/post-processors/removePaths.test.d.ts → auth/issuer.test.d.ts} +0 -0
  1878. /package/dist/{vite/plugin-docs.test.d.ts → lib/components/Slot.test.d.ts} +0 -0
  1879. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
@@ -1,151 +1,149 @@
1
- var Le = Object.defineProperty;
2
- var xe = (t, e, n) => e in t ? Le(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var b = (t, e, n) => xe(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { j as B } from "./jsx-runtime-CYK1ROHF.js";
5
- import { g as Ce } from "./_commonjsHelpers-BkfeUUK-.js";
6
- import { C as Ie } from "./ClientOnly-E7hGysn1.js";
7
- import { d as je, f as ie, u as x } from "./hook-CqpVYDqN.js";
8
- import { A as Je } from "./AuthenticationPlugin-foqdvvkf.js";
9
- import { N as Oe } from "./chunk-HA7DTUK3-C4gP41vD.js";
10
- import { Z as ze } from "./invariant-Caa8-XvF.js";
11
- var D = { exports: {} }, De = D.exports, ae;
12
- function Ne() {
13
- return ae || (ae = 1, function(t) {
1
+ import { j as D } from "./jsx-runtime-DywqP_6a.js";
2
+ import { g as Le } from "./invariant-Bm-FVUQE.js";
3
+ import { E as Ue } from "./index-1GaxDljW.js";
4
+ import { C as xe } from "./ClientOnly-E7hGysn1.js";
5
+ import { j as Ce } from "./ZudokuContext-3cqbu21w.js";
6
+ import { C as Ie, O as re, A as R } from "./errors-CqArF-g5.js";
7
+ import { C as je, O as Oe } from "./OAuthErrorPage-BvULWq8R.js";
8
+ import { u as S } from "./hook-ChlxzJwv.js";
9
+ var J = { exports: {} }, De = J.exports, oe;
10
+ function Je() {
11
+ return oe || (oe = 1, function(t) {
14
12
  (function(e, n) {
15
13
  t.exports ? t.exports = n() : e.log = n();
16
14
  })(De, function() {
17
15
  var e = function() {
18
- }, n = "undefined", o = typeof window !== n && typeof window.navigator !== n && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
16
+ }, n = "undefined", o = typeof window !== n && typeof window.navigator !== n && /Trident\/|MSIE /.test(window.navigator.userAgent), s = [
19
17
  "trace",
20
18
  "debug",
21
19
  "info",
22
20
  "warn",
23
21
  "error"
24
22
  ], r = {}, i = null;
25
- function c(l, m) {
26
- var u = l[m];
27
- if (typeof u.bind == "function")
28
- return u.bind(l);
23
+ function u(l, m) {
24
+ var c = l[m];
25
+ if (typeof c.bind == "function")
26
+ return c.bind(l);
29
27
  try {
30
- return Function.prototype.bind.call(u, l);
28
+ return Function.prototype.bind.call(c, l);
31
29
  } catch {
32
30
  return function() {
33
- return Function.prototype.apply.apply(u, [l, arguments]);
31
+ return Function.prototype.apply.apply(c, [l, arguments]);
34
32
  };
35
33
  }
36
34
  }
37
- function p() {
35
+ function d() {
38
36
  console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
39
37
  }
40
- function w(l) {
41
- return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ? p : console[l] !== void 0 ? c(console, l) : console.log !== void 0 ? c(console, "log") : e;
38
+ function y(l) {
39
+ return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ? d : console[l] !== void 0 ? u(console, l) : console.log !== void 0 ? u(console, "log") : e;
42
40
  }
43
- function f() {
44
- for (var l = this.getLevel(), m = 0; m < a.length; m++) {
45
- var u = a[m];
46
- this[u] = m < l ? e : this.methodFactory(u, l, this.name);
41
+ function p() {
42
+ for (var l = this.getLevel(), m = 0; m < s.length; m++) {
43
+ var c = s[m];
44
+ this[c] = m < l ? e : this.methodFactory(c, l, this.name);
47
45
  }
48
46
  if (this.log = this.debug, typeof console === n && l < this.levels.SILENT)
49
47
  return "No console available for logging";
50
48
  }
51
- function v(l) {
49
+ function k(l) {
52
50
  return function() {
53
- typeof console !== n && (f.call(this), this[l].apply(this, arguments));
51
+ typeof console !== n && (p.call(this), this[l].apply(this, arguments));
54
52
  };
55
53
  }
56
- function _(l, m, u) {
57
- return w(l) || v.apply(this, arguments);
54
+ function b(l, m, c) {
55
+ return y(l) || k.apply(this, arguments);
58
56
  }
59
57
  function h(l, m) {
60
- var u = this, J, $, U, S = "loglevel";
61
- typeof l == "string" ? S += ":" + l : typeof l == "symbol" && (S = void 0);
62
- function Re(d) {
63
- var y = (a[d] || "silent").toUpperCase();
64
- if (!(typeof window === n || !S)) {
58
+ var c = this, j, H, L, _ = "loglevel";
59
+ typeof l == "string" ? _ += ":" + l : typeof l == "symbol" && (_ = void 0);
60
+ function Ee(f) {
61
+ var g = (s[f] || "silent").toUpperCase();
62
+ if (!(typeof window === n || !_)) {
65
63
  try {
66
- window.localStorage[S] = y;
64
+ window.localStorage[_] = g;
67
65
  return;
68
66
  } catch {
69
67
  }
70
68
  try {
71
- window.document.cookie = encodeURIComponent(S) + "=" + y + ";";
69
+ window.document.cookie = encodeURIComponent(_) + "=" + g + ";";
72
70
  } catch {
73
71
  }
74
72
  }
75
73
  }
76
- function ne() {
77
- var d;
78
- if (!(typeof window === n || !S)) {
74
+ function ee() {
75
+ var f;
76
+ if (!(typeof window === n || !_)) {
79
77
  try {
80
- d = window.localStorage[S];
78
+ f = window.localStorage[_];
81
79
  } catch {
82
80
  }
83
- if (typeof d === n)
81
+ if (typeof f === n)
84
82
  try {
85
- var y = window.document.cookie, O = encodeURIComponent(S), oe = y.indexOf(O + "=");
86
- oe !== -1 && (d = /^([^;]+)/.exec(
87
- y.slice(oe + O.length + 1)
83
+ var g = window.document.cookie, O = encodeURIComponent(_), ne = g.indexOf(O + "=");
84
+ ne !== -1 && (f = /^([^;]+)/.exec(
85
+ g.slice(ne + O.length + 1)
88
86
  )[1]);
89
87
  } catch {
90
88
  }
91
- return u.levels[d] === void 0 && (d = void 0), d;
89
+ return c.levels[f] === void 0 && (f = void 0), f;
92
90
  }
93
91
  }
94
- function Pe() {
95
- if (!(typeof window === n || !S)) {
92
+ function Re() {
93
+ if (!(typeof window === n || !_)) {
96
94
  try {
97
- window.localStorage.removeItem(S);
95
+ window.localStorage.removeItem(_);
98
96
  } catch {
99
97
  }
100
98
  try {
101
- window.document.cookie = encodeURIComponent(S) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
99
+ window.document.cookie = encodeURIComponent(_) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
102
100
  } catch {
103
101
  }
104
102
  }
105
103
  }
106
- function L(d) {
107
- var y = d;
108
- if (typeof y == "string" && u.levels[y.toUpperCase()] !== void 0 && (y = u.levels[y.toUpperCase()]), typeof y == "number" && y >= 0 && y <= u.levels.SILENT)
109
- return y;
110
- throw new TypeError("log.setLevel() called with invalid level: " + d);
104
+ function U(f) {
105
+ var g = f;
106
+ if (typeof g == "string" && c.levels[g.toUpperCase()] !== void 0 && (g = c.levels[g.toUpperCase()]), typeof g == "number" && g >= 0 && g <= c.levels.SILENT)
107
+ return g;
108
+ throw new TypeError("log.setLevel() called with invalid level: " + f);
111
109
  }
112
- u.name = l, u.levels = {
110
+ c.name = l, c.levels = {
113
111
  TRACE: 0,
114
112
  DEBUG: 1,
115
113
  INFO: 2,
116
114
  WARN: 3,
117
115
  ERROR: 4,
118
116
  SILENT: 5
119
- }, u.methodFactory = m || _, u.getLevel = function() {
120
- return U ?? $ ?? J;
121
- }, u.setLevel = function(d, y) {
122
- return U = L(d), y !== !1 && Re(U), f.call(u);
123
- }, u.setDefaultLevel = function(d) {
124
- $ = L(d), ne() || u.setLevel(d, !1);
125
- }, u.resetLevel = function() {
126
- U = null, Pe(), f.call(u);
127
- }, u.enableAll = function(d) {
128
- u.setLevel(u.levels.TRACE, d);
129
- }, u.disableAll = function(d) {
130
- u.setLevel(u.levels.SILENT, d);
131
- }, u.rebuild = function() {
132
- if (i !== u && (J = L(i.getLevel())), f.call(u), i === u)
133
- for (var d in r)
134
- r[d].rebuild();
135
- }, J = L(
117
+ }, c.methodFactory = m || b, c.getLevel = function() {
118
+ return L ?? H ?? j;
119
+ }, c.setLevel = function(f, g) {
120
+ return L = U(f), g !== !1 && Ee(L), p.call(c);
121
+ }, c.setDefaultLevel = function(f) {
122
+ H = U(f), ee() || c.setLevel(f, !1);
123
+ }, c.resetLevel = function() {
124
+ L = null, Re(), p.call(c);
125
+ }, c.enableAll = function(f) {
126
+ c.setLevel(c.levels.TRACE, f);
127
+ }, c.disableAll = function(f) {
128
+ c.setLevel(c.levels.SILENT, f);
129
+ }, c.rebuild = function() {
130
+ if (i !== c && (j = U(i.getLevel())), p.call(c), i === c)
131
+ for (var f in r)
132
+ r[f].rebuild();
133
+ }, j = U(
136
134
  i ? i.getLevel() : "WARN"
137
135
  );
138
- var re = ne();
139
- re != null && (U = L(re)), f.call(u);
136
+ var te = ee();
137
+ te != null && (L = U(te)), p.call(c);
140
138
  }
141
139
  i = new h(), i.getLogger = function(m) {
142
140
  if (typeof m != "symbol" && typeof m != "string" || m === "")
143
141
  throw new TypeError("You must supply a name when creating a logger.");
144
- var u = r[m];
145
- return u || (u = r[m] = new h(
142
+ var c = r[m];
143
+ return c || (c = r[m] = new h(
146
144
  m,
147
145
  i.methodFactory
148
- )), u;
146
+ )), c;
149
147
  };
150
148
  var P = typeof window !== n ? window.log : void 0;
151
149
  return i.noConflict = function() {
@@ -154,14 +152,13 @@ function Ne() {
154
152
  return r;
155
153
  }, i.default = i, i;
156
154
  });
157
- }(D)), D.exports;
158
- }
159
- var We = Ne();
160
- const se = /* @__PURE__ */ Ce(We);
161
- let V;
162
- var z, we;
163
- (typeof navigator > "u" || !((we = (z = navigator.userAgent) == null ? void 0 : z.startsWith) != null && we.call(z, "Mozilla/5.0 "))) && (V = "oauth4webapi/v2.17.0");
164
- function Y(t, e) {
155
+ }(J)), J.exports;
156
+ }
157
+ var ze = Je();
158
+ const ie = /* @__PURE__ */ Le(ze);
159
+ let B;
160
+ (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (B = "oauth4webapi/v2.17.0");
161
+ function V(t, e) {
165
162
  if (t == null)
166
163
  return !1;
167
164
  try {
@@ -170,32 +167,32 @@ function Y(t, e) {
170
167
  return !1;
171
168
  }
172
169
  }
173
- const W = Symbol(), Ke = Symbol(), Z = Symbol(), He = Symbol(), $e = Symbol(), Fe = Symbol(), Me = new TextEncoder(), qe = new TextDecoder();
170
+ const N = Symbol(), Ne = Symbol(), G = Symbol(), We = Symbol(), Ke = Symbol(), He = Symbol(), $e = new TextEncoder(), Fe = new TextDecoder();
174
171
  function E(t) {
175
- return typeof t == "string" ? Me.encode(t) : qe.decode(t);
172
+ return typeof t == "string" ? $e.encode(t) : Fe.decode(t);
176
173
  }
177
- const ce = 32768;
178
- function Be(t) {
174
+ const se = 32768;
175
+ function Me(t) {
179
176
  t instanceof ArrayBuffer && (t = new Uint8Array(t));
180
177
  const e = [];
181
- for (let n = 0; n < t.byteLength; n += ce)
182
- e.push(String.fromCharCode.apply(null, t.subarray(n, n + ce)));
178
+ for (let n = 0; n < t.byteLength; n += se)
179
+ e.push(String.fromCharCode.apply(null, t.subarray(n, n + se)));
183
180
  return btoa(e.join("")).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
184
181
  }
185
- function Ve(t) {
182
+ function Be(t) {
186
183
  try {
187
184
  const e = atob(t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "")), n = new Uint8Array(e.length);
188
185
  for (let o = 0; o < e.length; o++)
189
186
  n[o] = e.charCodeAt(o);
190
187
  return n;
191
188
  } catch (e) {
192
- throw new s("The input to be decoded is not correctly encoded.", { cause: e });
189
+ throw new a("The input to be decoded is not correctly encoded.", { cause: e });
193
190
  }
194
191
  }
195
- function k(t) {
196
- return typeof t == "string" ? Ve(t) : Be(t);
192
+ function A(t) {
193
+ return typeof t == "string" ? Be(t) : Me(t);
197
194
  }
198
- class Ge {
195
+ class qe {
199
196
  constructor(e) {
200
197
  this.cache = /* @__PURE__ */ new Map(), this._cache = /* @__PURE__ */ new Map(), this.maxSize = e;
201
198
  }
@@ -219,60 +216,58 @@ class Ge {
219
216
  this.cache.set(e, n), this.cache.size >= this.maxSize && (this._cache = this.cache, this.cache = /* @__PURE__ */ new Map());
220
217
  }
221
218
  }
222
- class T extends Error {
219
+ class v extends Error {
223
220
  constructor(e) {
224
- var n;
225
- super(e ?? "operation not supported"), this.name = this.constructor.name, (n = Error.captureStackTrace) == null || n.call(Error, this, this.constructor);
221
+ super(e ?? "operation not supported"), this.name = this.constructor.name, Error.captureStackTrace?.(this, this.constructor);
226
222
  }
227
223
  }
228
- class Ye extends Error {
224
+ class Ve extends Error {
229
225
  constructor(e, n) {
230
- var o;
231
- super(e, n), this.name = this.constructor.name, (o = Error.captureStackTrace) == null || o.call(Error, this, this.constructor);
226
+ super(e, n), this.name = this.constructor.name, Error.captureStackTrace?.(this, this.constructor);
232
227
  }
233
228
  }
234
- const s = Ye, ge = new Ge(100);
229
+ const a = Ve, we = new qe(100);
235
230
  function me(t) {
236
231
  return t instanceof CryptoKey;
237
232
  }
238
- function Ze(t) {
233
+ function Ge(t) {
239
234
  return me(t) && t.type === "private";
240
235
  }
241
- function Qe(t) {
236
+ function Ye(t) {
242
237
  return me(t) && t.type === "public";
243
238
  }
244
- function Q(t) {
239
+ function Y(t) {
245
240
  try {
246
241
  const e = t.headers.get("dpop-nonce");
247
- e && ge.set(new URL(t.url).origin, e);
242
+ e && we.set(new URL(t.url).origin, e);
248
243
  } catch {
249
244
  }
250
245
  return t;
251
246
  }
252
- function C(t) {
247
+ function x(t) {
253
248
  return !(t === null || typeof t != "object" || Array.isArray(t));
254
249
  }
255
- function K(t) {
256
- Y(t, Headers) && (t = Object.fromEntries(t.entries()));
250
+ function W(t) {
251
+ V(t, Headers) && (t = Object.fromEntries(t.entries()));
257
252
  const e = new Headers(t);
258
- if (V && !e.has("user-agent") && e.set("user-agent", V), e.has("authorization"))
253
+ if (B && !e.has("user-agent") && e.set("user-agent", B), e.has("authorization"))
259
254
  throw new TypeError('"options.headers" must not include the "authorization" header name');
260
255
  if (e.has("dpop"))
261
256
  throw new TypeError('"options.headers" must not include the "dpop" header name');
262
257
  return e;
263
258
  }
264
- function Xe(t) {
259
+ function Ze(t) {
265
260
  if (typeof t == "function" && (t = t()), !(t instanceof AbortSignal))
266
261
  throw new TypeError('"options.signal" must return or be an instance of AbortSignal');
267
262
  return t;
268
263
  }
269
- async function et(t, e) {
264
+ async function Qe(t, e) {
270
265
  if (!(t instanceof URL))
271
266
  throw new TypeError('"issuerIdentifier" must be an instance of URL');
272
267
  if (t.protocol !== "https:" && t.protocol !== "http:")
273
268
  throw new TypeError('"issuer.protocol" must be "https:" or "http:"');
274
269
  const n = new URL(t.href);
275
- switch (e == null ? void 0 : e.algorithm) {
270
+ switch (e?.algorithm) {
276
271
  case void 0:
277
272
  case "oidc":
278
273
  n.pathname = `${n.pathname}/.well-known/openid-configuration`.replace("//", "/");
@@ -283,61 +278,61 @@ async function et(t, e) {
283
278
  default:
284
279
  throw new TypeError('"options.algorithm" must be "oidc" (default), or "oauth2"');
285
280
  }
286
- const o = K(e == null ? void 0 : e.headers);
287
- return o.set("accept", "application/json"), ((e == null ? void 0 : e[Z]) || fetch)(n.href, {
281
+ const o = W(e?.headers);
282
+ return o.set("accept", "application/json"), (e?.[G] || fetch)(n.href, {
288
283
  headers: Object.fromEntries(o.entries()),
289
284
  method: "GET",
290
285
  redirect: "manual",
291
286
  signal: null
292
- }).then(Q);
287
+ }).then(Y);
293
288
  }
294
- function g(t) {
289
+ function w(t) {
295
290
  return typeof t == "string" && t.length !== 0;
296
291
  }
297
- async function tt(t, e) {
292
+ async function Xe(t, e) {
298
293
  if (!(t instanceof URL))
299
294
  throw new TypeError('"expectedIssuer" must be an instance of URL');
300
- if (!Y(e, Response))
295
+ if (!V(e, Response))
301
296
  throw new TypeError('"response" must be an instance of Response');
302
297
  if (e.status !== 200)
303
- throw new s('"response" is not a conform Authorization Server Metadata response');
304
- te(e);
298
+ throw new a('"response" is not a conform Authorization Server Metadata response');
299
+ X(e);
305
300
  let n;
306
301
  try {
307
302
  n = await e.json();
308
303
  } catch (o) {
309
- throw new s('failed to parse "response" body as JSON', { cause: o });
304
+ throw new a('failed to parse "response" body as JSON', { cause: o });
310
305
  }
311
- if (!C(n))
312
- throw new s('"response" body must be a top level object');
313
- if (!g(n.issuer))
314
- throw new s('"response" body "issuer" property must be a non-empty string');
306
+ if (!x(n))
307
+ throw new a('"response" body must be a top level object');
308
+ if (!w(n.issuer))
309
+ throw new a('"response" body "issuer" property must be a non-empty string');
315
310
  if (new URL(n.issuer).href !== t.href)
316
- throw new s('"response" body "issuer" does not match "expectedIssuer"');
311
+ throw new a('"response" body "issuer" does not match "expectedIssuer"');
317
312
  return n;
318
313
  }
319
- function X() {
320
- return k(crypto.getRandomValues(new Uint8Array(32)));
314
+ function Z() {
315
+ return A(crypto.getRandomValues(new Uint8Array(32)));
321
316
  }
322
- function nt() {
323
- return X();
317
+ function et() {
318
+ return Z();
324
319
  }
325
- function rt() {
326
- return X();
320
+ function tt() {
321
+ return Z();
327
322
  }
328
- async function ot(t) {
329
- if (!g(t))
323
+ async function nt(t) {
324
+ if (!w(t))
330
325
  throw new TypeError('"codeVerifier" must be a non-empty string');
331
- return k(await crypto.subtle.digest("SHA-256", E(t)));
326
+ return A(await crypto.subtle.digest("SHA-256", E(t)));
332
327
  }
333
- function ue(t) {
328
+ function ae(t) {
334
329
  return encodeURIComponent(t).replace(/%20/g, "+");
335
330
  }
336
- function it(t, e) {
337
- const n = ue(t), o = ue(e);
331
+ function rt(t, e) {
332
+ const n = ae(t), o = ae(e);
338
333
  return `Basic ${btoa(`${n}:${o}`)}`;
339
334
  }
340
- function at(t) {
335
+ function ot(t) {
341
336
  switch (t.algorithm.hash.name) {
342
337
  case "SHA-256":
343
338
  return "PS256";
@@ -346,10 +341,10 @@ function at(t) {
346
341
  case "SHA-512":
347
342
  return "PS512";
348
343
  default:
349
- throw new T("unsupported RsaHashedKeyAlgorithm hash name");
344
+ throw new v("unsupported RsaHashedKeyAlgorithm hash name");
350
345
  }
351
346
  }
352
- function st(t) {
347
+ function it(t) {
353
348
  switch (t.algorithm.hash.name) {
354
349
  case "SHA-256":
355
350
  return "RS256";
@@ -358,10 +353,10 @@ function st(t) {
358
353
  case "SHA-512":
359
354
  return "RS512";
360
355
  default:
361
- throw new T("unsupported RsaHashedKeyAlgorithm hash name");
356
+ throw new v("unsupported RsaHashedKeyAlgorithm hash name");
362
357
  }
363
358
  }
364
- function ct(t) {
359
+ function st(t) {
365
360
  switch (t.algorithm.namedCurve) {
366
361
  case "P-256":
367
362
  return "ES256";
@@ -370,268 +365,267 @@ function ct(t) {
370
365
  case "P-521":
371
366
  return "ES512";
372
367
  default:
373
- throw new T("unsupported EcKeyAlgorithm namedCurve");
368
+ throw new v("unsupported EcKeyAlgorithm namedCurve");
374
369
  }
375
370
  }
376
- function ut(t) {
371
+ function at(t) {
377
372
  switch (t.algorithm.name) {
378
373
  case "RSA-PSS":
379
- return at(t);
374
+ return ot(t);
380
375
  case "RSASSA-PKCS1-v1_5":
381
- return st(t);
376
+ return it(t);
382
377
  case "ECDSA":
383
- return ct(t);
378
+ return st(t);
384
379
  case "Ed25519":
385
380
  case "Ed448":
386
381
  return "EdDSA";
387
382
  default:
388
- throw new T("unsupported CryptoKey algorithm name");
383
+ throw new v("unsupported CryptoKey algorithm name");
389
384
  }
390
385
  }
391
- function H(t) {
392
- const e = t == null ? void 0 : t[W];
386
+ function K(t) {
387
+ const e = t?.[N];
393
388
  return typeof e == "number" && Number.isFinite(e) ? e : 0;
394
389
  }
395
- function ye(t) {
396
- const e = t == null ? void 0 : t[Ke];
390
+ function ge(t) {
391
+ const e = t?.[Ne];
397
392
  return typeof e == "number" && Number.isFinite(e) && Math.sign(e) !== -1 ? e : 30;
398
393
  }
399
- function ee() {
394
+ function Q() {
400
395
  return Math.floor(Date.now() / 1e3);
401
396
  }
402
- function I(t) {
397
+ function C(t) {
403
398
  if (typeof t != "object" || t === null)
404
399
  throw new TypeError('"as" must be an object');
405
- if (!g(t.issuer))
400
+ if (!w(t.issuer))
406
401
  throw new TypeError('"as.issuer" property must be a non-empty string');
407
402
  return !0;
408
403
  }
409
- function j(t) {
404
+ function I(t) {
410
405
  if (typeof t != "object" || t === null)
411
406
  throw new TypeError('"client" must be an object');
412
- if (!g(t.client_id))
407
+ if (!w(t.client_id))
413
408
  throw new TypeError('"client.client_id" property must be a non-empty string');
414
409
  return !0;
415
410
  }
416
- function le(t) {
417
- if (!g(t))
411
+ function ce(t) {
412
+ if (!w(t))
418
413
  throw new TypeError('"client.client_secret" property must be a non-empty string');
419
414
  return t;
420
415
  }
421
- function de(t, e) {
416
+ function ue(t, e) {
422
417
  if (e !== void 0)
423
418
  throw new TypeError(`"client.client_secret" property must not be provided when ${t} client authentication method is used.`);
424
419
  }
425
- async function lt(t, e, n, o, a) {
420
+ async function ct(t, e, n, o, s) {
426
421
  switch (n.delete("client_secret"), n.delete("client_assertion_type"), n.delete("client_assertion"), e.token_endpoint_auth_method) {
427
422
  case void 0:
428
423
  case "client_secret_basic": {
429
- o.set("authorization", it(e.client_id, le(e.client_secret)));
424
+ o.set("authorization", rt(e.client_id, ce(e.client_secret)));
430
425
  break;
431
426
  }
432
427
  case "client_secret_post": {
433
- n.set("client_id", e.client_id), n.set("client_secret", le(e.client_secret));
428
+ n.set("client_id", e.client_id), n.set("client_secret", ce(e.client_secret));
434
429
  break;
435
430
  }
436
431
  case "private_key_jwt":
437
- throw de("private_key_jwt", e.client_secret), new TypeError('"options.clientPrivateKey" must be provided when "client.token_endpoint_auth_method" is "private_key_jwt"');
432
+ throw ue("private_key_jwt", e.client_secret), new TypeError('"options.clientPrivateKey" must be provided when "client.token_endpoint_auth_method" is "private_key_jwt"');
438
433
  case "tls_client_auth":
439
434
  case "self_signed_tls_client_auth":
440
435
  case "none": {
441
- de(e.token_endpoint_auth_method, e.client_secret), e.token_endpoint_auth_method, n.set("client_id", e.client_id);
436
+ ue(e.token_endpoint_auth_method, e.client_secret), e.token_endpoint_auth_method, n.set("client_id", e.client_id);
442
437
  break;
443
438
  }
444
439
  default:
445
- throw new T("unsupported client token_endpoint_auth_method");
440
+ throw new v("unsupported client token_endpoint_auth_method");
446
441
  }
447
442
  }
448
- async function dt(t, e, n) {
443
+ async function ut(t, e, n) {
449
444
  if (!n.usages.includes("sign"))
450
445
  throw new TypeError('CryptoKey instances used for signing assertions must include "sign" in their "usages"');
451
- const o = `${k(E(JSON.stringify(t)))}.${k(E(JSON.stringify(e)))}`, a = k(await crypto.subtle.sign(ke(n), n, E(o)));
452
- return `${o}.${a}`;
446
+ const o = `${A(E(JSON.stringify(t)))}.${A(E(JSON.stringify(e)))}`, s = A(await crypto.subtle.sign(Ae(n), n, E(o)));
447
+ return `${o}.${s}`;
453
448
  }
454
- async function ht(t, e, n, o, a, r) {
455
- var _;
456
- const { privateKey: i, publicKey: c, nonce: p = ge.get(n.origin) } = e;
457
- if (!Ze(i))
449
+ async function lt(t, e, n, o, s, r) {
450
+ const { privateKey: i, publicKey: u, nonce: d = we.get(n.origin) } = e;
451
+ if (!Ge(i))
458
452
  throw new TypeError('"DPoP.privateKey" must be a private CryptoKey');
459
- if (!Qe(c))
453
+ if (!Ye(u))
460
454
  throw new TypeError('"DPoP.publicKey" must be a public CryptoKey');
461
- if (p !== void 0 && !g(p))
455
+ if (d !== void 0 && !w(d))
462
456
  throw new TypeError('"DPoP.nonce" must be a non-empty string or undefined');
463
- if (!c.extractable)
457
+ if (!u.extractable)
464
458
  throw new TypeError('"DPoP.publicKey.extractable" must be true');
465
- const w = ee() + a, f = {
466
- alg: ut(i),
459
+ const y = Q() + s, p = {
460
+ alg: at(i),
467
461
  typ: "dpop+jwt",
468
- jwk: await pt(c)
469
- }, v = {
470
- iat: w,
471
- jti: X(),
462
+ jwk: await ft(u)
463
+ }, k = {
464
+ iat: y,
465
+ jti: Z(),
472
466
  htm: o,
473
- nonce: p,
467
+ nonce: d,
474
468
  htu: `${n.origin}${n.pathname}`,
475
- ath: r ? k(await crypto.subtle.digest("SHA-256", E(r))) : void 0
469
+ ath: r ? A(await crypto.subtle.digest("SHA-256", E(r))) : void 0
476
470
  };
477
- (_ = e[He]) == null || _.call(e, f, v), t.set("dpop", await dt(f, v, i));
471
+ e[We]?.(p, k), t.set("dpop", await ut(p, k, i));
478
472
  }
479
- let N;
480
- async function ft(t) {
481
- const { kty: e, e: n, n: o, x: a, y: r, crv: i } = await crypto.subtle.exportKey("jwk", t), c = { kty: e, e: n, n: o, x: a, y: r, crv: i };
482
- return N.set(t, c), c;
473
+ let z;
474
+ async function dt(t) {
475
+ const { kty: e, e: n, n: o, x: s, y: r, crv: i } = await crypto.subtle.exportKey("jwk", t), u = { kty: e, e: n, n: o, x: s, y: r, crv: i };
476
+ return z.set(t, u), u;
483
477
  }
484
- async function pt(t) {
485
- return N || (N = /* @__PURE__ */ new WeakMap()), N.get(t) || ft(t);
478
+ async function ft(t) {
479
+ return z || (z = /* @__PURE__ */ new WeakMap()), z.get(t) || dt(t);
486
480
  }
487
- function he(t, e, n) {
481
+ function le(t, e, n) {
488
482
  if (typeof t != "string")
489
483
  throw n ? new TypeError(`"as.mtls_endpoint_aliases.${e}" must be a string`) : new TypeError(`"as.${e}" must be a string`);
490
484
  return new URL(t);
491
485
  }
492
- function be(t, e, n = !1) {
493
- return n && t.mtls_endpoint_aliases && e in t.mtls_endpoint_aliases ? he(t.mtls_endpoint_aliases[e], e, n) : he(t[e], e, n);
486
+ function ye(t, e, n = !1) {
487
+ return n && t.mtls_endpoint_aliases && e in t.mtls_endpoint_aliases ? le(t.mtls_endpoint_aliases[e], e, n) : le(t[e], e, n);
494
488
  }
495
- function _e(t, e) {
496
- return !!(t.use_mtls_endpoint_aliases || e != null && e[Fe]);
489
+ function be(t, e) {
490
+ return !!(t.use_mtls_endpoint_aliases || e?.[He]);
497
491
  }
498
- function G(t) {
492
+ function q(t) {
499
493
  const e = t;
500
494
  return typeof e != "object" || Array.isArray(e) || e === null ? !1 : e.error !== void 0;
501
495
  }
502
- async function wt(t, e, n, o, a, r) {
503
- if (!g(t))
496
+ async function ht(t, e, n, o, s, r) {
497
+ if (!w(t))
504
498
  throw new TypeError('"accessToken" must be a non-empty string');
505
499
  if (!(n instanceof URL))
506
500
  throw new TypeError('"url" must be an instance of URL');
507
- return o = K(o), (r == null ? void 0 : r.DPoP) === void 0 ? o.set("authorization", `Bearer ${t}`) : (await ht(o, r.DPoP, n, e.toUpperCase(), H({ [W]: r == null ? void 0 : r[W] }), t), o.set("authorization", `DPoP ${t}`)), ((r == null ? void 0 : r[Z]) || fetch)(n.href, {
508
- body: a,
501
+ return o = W(o), r?.DPoP === void 0 ? o.set("authorization", `Bearer ${t}`) : (await lt(o, r.DPoP, n, e.toUpperCase(), K({ [N]: r?.[N] }), t), o.set("authorization", `DPoP ${t}`)), (r?.[G] || fetch)(n.href, {
502
+ body: s,
509
503
  headers: Object.fromEntries(o.entries()),
510
504
  method: e,
511
505
  redirect: "manual",
512
- signal: r != null && r.signal ? Xe(r.signal) : null
513
- }).then(Q);
506
+ signal: r?.signal ? Ze(r.signal) : null
507
+ }).then(Y);
514
508
  }
515
- async function gt(t, e, n, o) {
516
- I(t), j(e);
517
- const a = be(t, "userinfo_endpoint", _e(e, o)), r = K(o == null ? void 0 : o.headers);
518
- return e.userinfo_signed_response_alg ? r.set("accept", "application/jwt") : (r.set("accept", "application/json"), r.append("accept", "application/jwt")), wt(n, "GET", a, r, null, {
509
+ async function pt(t, e, n, o) {
510
+ C(t), I(e);
511
+ const s = ye(t, "userinfo_endpoint", be(e, o)), r = W(o?.headers);
512
+ return e.userinfo_signed_response_alg ? r.set("accept", "application/jwt") : (r.set("accept", "application/json"), r.append("accept", "application/jwt")), ht(n, "GET", s, r, null, {
519
513
  ...o,
520
- [W]: H(e)
514
+ [N]: K(e)
521
515
  });
522
516
  }
523
- async function mt(t, e, n, o, a, r, i) {
524
- return await lt(t, e, a, r), r.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"), ((i == null ? void 0 : i[Z]) || fetch)(o.href, {
525
- body: a,
517
+ async function wt(t, e, n, o, s, r, i) {
518
+ return await ct(t, e, s, r), r.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"), (i?.[G] || fetch)(o.href, {
519
+ body: s,
526
520
  headers: Object.fromEntries(r.entries()),
527
521
  method: n,
528
522
  redirect: "manual",
529
523
  signal: null
530
- }).then(Q);
524
+ }).then(Y);
531
525
  }
532
- async function ve(t, e, n, o, a) {
533
- const r = be(t, "token_endpoint", _e(e, a));
526
+ async function _e(t, e, n, o, s) {
527
+ const r = ye(t, "token_endpoint", be(e, s));
534
528
  o.set("grant_type", n);
535
- const i = K(a == null ? void 0 : a.headers);
536
- return i.set("accept", "application/json"), mt(t, e, "POST", r, o, i, a);
529
+ const i = W(s?.headers);
530
+ return i.set("accept", "application/json"), wt(t, e, "POST", r, o, i, s);
537
531
  }
538
- async function yt(t, e, n, o) {
539
- if (I(t), j(e), !g(n))
532
+ async function de(t, e, n, o) {
533
+ if (C(t), I(e), !w(n))
540
534
  throw new TypeError('"refreshToken" must be a non-empty string');
541
- const a = new URLSearchParams(o == null ? void 0 : o.additionalParameters);
542
- return a.set("refresh_token", n), ve(t, e, "refresh_token", a, o);
535
+ const s = new URLSearchParams(o?.additionalParameters);
536
+ return s.set("refresh_token", n), _e(t, e, "refresh_token", s, o);
543
537
  }
544
- const Se = /* @__PURE__ */ new WeakMap();
545
- function bt(t) {
538
+ const ve = /* @__PURE__ */ new WeakMap();
539
+ function mt(t) {
546
540
  if (!t.id_token)
547
541
  return;
548
- const e = Se.get(t);
542
+ const e = ve.get(t);
549
543
  if (!e)
550
544
  throw new TypeError('"ref" was already garbage collected or did not resolve from the proper sources');
551
545
  return e[0];
552
546
  }
553
- async function Te(t, e, n, o = !1, a = !1) {
554
- if (I(t), j(e), !Y(n, Response))
547
+ async function Se(t, e, n, o = !1, s = !1) {
548
+ if (C(t), I(e), !V(n, Response))
555
549
  throw new TypeError('"response" must be an instance of Response');
556
550
  if (n.status !== 200) {
557
551
  let i;
558
- if (i = await Ut(n))
552
+ if (i = await kt(n))
559
553
  return i;
560
- throw new s('"response" is not a conform Token Endpoint response');
554
+ throw new a('"response" is not a conform Token Endpoint response');
561
555
  }
562
- te(n);
556
+ X(n);
563
557
  let r;
564
558
  try {
565
559
  r = await n.json();
566
560
  } catch (i) {
567
- throw new s('failed to parse "response" body as JSON', { cause: i });
561
+ throw new a('failed to parse "response" body as JSON', { cause: i });
568
562
  }
569
- if (!C(r))
570
- throw new s('"response" body must be a top level object');
571
- if (!g(r.access_token))
572
- throw new s('"response" body "access_token" property must be a non-empty string');
573
- if (!g(r.token_type))
574
- throw new s('"response" body "token_type" property must be a non-empty string');
563
+ if (!x(r))
564
+ throw new a('"response" body must be a top level object');
565
+ if (!w(r.access_token))
566
+ throw new a('"response" body "access_token" property must be a non-empty string');
567
+ if (!w(r.token_type))
568
+ throw new a('"response" body "token_type" property must be a non-empty string');
575
569
  if (r.token_type = r.token_type.toLowerCase(), r.token_type !== "dpop" && r.token_type !== "bearer")
576
- throw new T("unsupported `token_type` value");
570
+ throw new v("unsupported `token_type` value");
577
571
  if (r.expires_in !== void 0 && (typeof r.expires_in != "number" || r.expires_in <= 0))
578
- throw new s('"response" body "expires_in" property must be a positive number');
579
- if (!a && r.refresh_token !== void 0 && !g(r.refresh_token))
580
- throw new s('"response" body "refresh_token" property must be a non-empty string');
572
+ throw new a('"response" body "expires_in" property must be a positive number');
573
+ if (!s && r.refresh_token !== void 0 && !w(r.refresh_token))
574
+ throw new a('"response" body "refresh_token" property must be a non-empty string');
581
575
  if (r.scope !== void 0 && typeof r.scope != "string")
582
- throw new s('"response" body "scope" property must be a string');
576
+ throw new a('"response" body "scope" property must be a string');
583
577
  if (!o) {
584
- if (r.id_token !== void 0 && !g(r.id_token))
585
- throw new s('"response" body "id_token" property must be a non-empty string');
578
+ if (r.id_token !== void 0 && !w(r.id_token))
579
+ throw new a('"response" body "id_token" property must be a non-empty string');
586
580
  if (r.id_token) {
587
- const { claims: i, jwt: c } = await Ct(r.id_token, It.bind(void 0, e.id_token_signed_response_alg, t.id_token_signing_alg_values_supported), Ee, H(e), ye(e), e[$e]).then(Et.bind(void 0, ["aud", "exp", "iat", "iss", "sub"])).then(St.bind(void 0, t.issuer)).then(vt.bind(void 0, e.client_id));
581
+ const { claims: i, jwt: u } = await Pt(r.id_token, Lt.bind(void 0, e.id_token_signed_response_alg, t.id_token_signing_alg_values_supported), ke, K(e), ge(e), e[Ke]).then(St.bind(void 0, ["aud", "exp", "iat", "iss", "sub"])).then(yt.bind(void 0, t.issuer)).then(gt.bind(void 0, e.client_id));
588
582
  if (Array.isArray(i.aud) && i.aud.length !== 1) {
589
583
  if (i.azp === void 0)
590
- throw new s('ID Token "aud" (audience) claim includes additional untrusted audiences');
584
+ throw new a('ID Token "aud" (audience) claim includes additional untrusted audiences');
591
585
  if (i.azp !== e.client_id)
592
- throw new s('unexpected ID Token "azp" (authorized party) claim value');
586
+ throw new a('unexpected ID Token "azp" (authorized party) claim value');
593
587
  }
594
588
  if (i.auth_time !== void 0 && (!Number.isFinite(i.auth_time) || Math.sign(i.auth_time) !== 1))
595
- throw new s('ID Token "auth_time" (authentication time) must be a positive number');
596
- Se.set(r, [i, c]);
589
+ throw new a('ID Token "auth_time" (authentication time) must be a positive number');
590
+ ve.set(r, [i, u]);
597
591
  }
598
592
  }
599
593
  return r;
600
594
  }
601
- async function _t(t, e, n) {
602
- return Te(t, e, n);
595
+ async function fe(t, e, n) {
596
+ return Se(t, e, n);
603
597
  }
604
- function vt(t, e) {
598
+ function gt(t, e) {
605
599
  if (Array.isArray(e.claims.aud)) {
606
600
  if (!e.claims.aud.includes(t))
607
- throw new s('unexpected JWT "aud" (audience) claim value');
601
+ throw new a('unexpected JWT "aud" (audience) claim value');
608
602
  } else if (e.claims.aud !== t)
609
- throw new s('unexpected JWT "aud" (audience) claim value');
603
+ throw new a('unexpected JWT "aud" (audience) claim value');
610
604
  return e;
611
605
  }
612
- function St(t, e) {
606
+ function yt(t, e) {
613
607
  if (e.claims.iss !== t)
614
- throw new s('unexpected JWT "iss" (issuer) claim value');
608
+ throw new a('unexpected JWT "iss" (issuer) claim value');
615
609
  return e;
616
610
  }
617
- const Ae = /* @__PURE__ */ new WeakSet();
618
- function Tt(t) {
619
- return Ae.add(t), t;
611
+ const Te = /* @__PURE__ */ new WeakSet();
612
+ function bt(t) {
613
+ return Te.add(t), t;
620
614
  }
621
- async function At(t, e, n, o, a, r) {
622
- if (I(t), j(e), !Ae.has(n))
615
+ async function _t(t, e, n, o, s, r) {
616
+ if (C(t), I(e), !Te.has(n))
623
617
  throw new TypeError('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()');
624
- if (!g(o))
618
+ if (!w(o))
625
619
  throw new TypeError('"redirectUri" must be a non-empty string');
626
- if (!g(a))
620
+ if (!w(s))
627
621
  throw new TypeError('"codeVerifier" must be a non-empty string');
628
- const i = A(n, "code");
622
+ const i = T(n, "code");
629
623
  if (!i)
630
- throw new s('no authorization code in "callbackParameters"');
631
- const c = new URLSearchParams(r == null ? void 0 : r.additionalParameters);
632
- return c.set("redirect_uri", o), c.set("code_verifier", a), c.set("code", i), ve(t, e, "authorization_code", c, r);
624
+ throw new a('no authorization code in "callbackParameters"');
625
+ const u = new URLSearchParams(r?.additionalParameters);
626
+ return u.set("redirect_uri", o), u.set("code_verifier", s), u.set("code", i), _e(t, e, "authorization_code", u, r);
633
627
  }
634
- const kt = {
628
+ const vt = {
635
629
  aud: "audience",
636
630
  c_hash: "code hash",
637
631
  client_id: "client id",
@@ -647,66 +641,66 @@ const kt = {
647
641
  htu: "http uri",
648
642
  cnf: "confirmation"
649
643
  };
650
- function Et(t, e) {
644
+ function St(t, e) {
651
645
  for (const n of t)
652
646
  if (e.claims[n] === void 0)
653
- throw new s(`JWT "${n}" (${kt[n]}) claim missing`);
647
+ throw new a(`JWT "${n}" (${vt[n]}) claim missing`);
654
648
  return e;
655
649
  }
656
- const Rt = Symbol(), F = Symbol();
657
- async function Pt(t, e, n, o, a) {
658
- const r = await Te(t, e, n);
659
- if (G(r))
650
+ const Tt = Symbol(), $ = Symbol();
651
+ async function At(t, e, n, o, s) {
652
+ const r = await Se(t, e, n);
653
+ if (q(r))
660
654
  return r;
661
- if (!g(r.id_token))
662
- throw new s('"response" body "id_token" property must be a non-empty string');
663
- a ?? (a = e.default_max_age ?? F);
664
- const i = bt(r);
665
- if ((e.require_auth_time || a !== F) && i.auth_time === void 0)
666
- throw new s('ID Token "auth_time" (authentication time) claim missing');
667
- if (a !== F) {
668
- if (typeof a != "number" || a < 0)
655
+ if (!w(r.id_token))
656
+ throw new a('"response" body "id_token" property must be a non-empty string');
657
+ s ?? (s = e.default_max_age ?? $);
658
+ const i = mt(r);
659
+ if ((e.require_auth_time || s !== $) && i.auth_time === void 0)
660
+ throw new a('ID Token "auth_time" (authentication time) claim missing');
661
+ if (s !== $) {
662
+ if (typeof s != "number" || s < 0)
669
663
  throw new TypeError('"maxAge" must be a non-negative number');
670
- const c = ee() + H(e), p = ye(e);
671
- if (i.auth_time + a < c - p)
672
- throw new s("too much time has elapsed since the last End-User authentication");
664
+ const u = Q() + K(e), d = ge(e);
665
+ if (i.auth_time + s < u - d)
666
+ throw new a("too much time has elapsed since the last End-User authentication");
673
667
  }
674
668
  switch (o) {
675
669
  case void 0:
676
- case Rt:
670
+ case Tt:
677
671
  if (i.nonce !== void 0)
678
- throw new s('unexpected ID Token "nonce" claim value');
672
+ throw new a('unexpected ID Token "nonce" claim value');
679
673
  break;
680
674
  default:
681
- if (!g(o))
675
+ if (!w(o))
682
676
  throw new TypeError('"expectedNonce" must be a non-empty string');
683
677
  if (i.nonce === void 0)
684
- throw new s('ID Token "nonce" claim missing');
678
+ throw new a('ID Token "nonce" claim missing');
685
679
  if (i.nonce !== o)
686
- throw new s('unexpected ID Token "nonce" claim value');
680
+ throw new a('unexpected ID Token "nonce" claim value');
687
681
  }
688
682
  return r;
689
683
  }
690
- function te(t) {
684
+ function X(t) {
691
685
  if (t.bodyUsed)
692
686
  throw new TypeError('"response" body has been used already');
693
687
  }
694
- async function Ut(t) {
688
+ async function kt(t) {
695
689
  if (t.status > 399 && t.status < 500) {
696
- te(t);
690
+ X(t);
697
691
  try {
698
692
  const e = await t.json();
699
- if (C(e) && typeof e.error == "string" && e.error.length)
693
+ if (x(e) && typeof e.error == "string" && e.error.length)
700
694
  return e.error_description !== void 0 && typeof e.error_description != "string" && delete e.error_description, e.error_uri !== void 0 && typeof e.error_uri != "string" && delete e.error_uri, e.algs !== void 0 && typeof e.algs != "string" && delete e.algs, e.scope !== void 0 && typeof e.scope != "string" && delete e.scope, e;
701
695
  } catch {
702
696
  }
703
697
  }
704
698
  }
705
- function fe(t) {
699
+ function he(t) {
706
700
  if (typeof t.modulusLength != "number" || t.modulusLength < 2048)
707
- throw new s(`${t.name} modulusLength must be at least 2048 bits`);
701
+ throw new a(`${t.name} modulusLength must be at least 2048 bits`);
708
702
  }
709
- function Lt(t) {
703
+ function Et(t) {
710
704
  switch (t) {
711
705
  case "P-256":
712
706
  return "SHA-256";
@@ -715,18 +709,18 @@ function Lt(t) {
715
709
  case "P-521":
716
710
  return "SHA-512";
717
711
  default:
718
- throw new T();
712
+ throw new v();
719
713
  }
720
714
  }
721
- function ke(t) {
715
+ function Ae(t) {
722
716
  switch (t.algorithm.name) {
723
717
  case "ECDSA":
724
718
  return {
725
719
  name: t.algorithm.name,
726
- hash: Lt(t.algorithm.namedCurve)
720
+ hash: Et(t.algorithm.namedCurve)
727
721
  };
728
722
  case "RSA-PSS":
729
- switch (fe(t.algorithm), t.algorithm.hash.name) {
723
+ switch (he(t.algorithm), t.algorithm.hash.name) {
730
724
  case "SHA-256":
731
725
  case "SHA-384":
732
726
  case "SHA-512":
@@ -735,279 +729,163 @@ function ke(t) {
735
729
  saltLength: parseInt(t.algorithm.hash.name.slice(-3), 10) >> 3
736
730
  };
737
731
  default:
738
- throw new T();
732
+ throw new v();
739
733
  }
740
734
  case "RSASSA-PKCS1-v1_5":
741
- return fe(t.algorithm), t.algorithm.name;
735
+ return he(t.algorithm), t.algorithm.name;
742
736
  case "Ed448":
743
737
  case "Ed25519":
744
738
  return t.algorithm.name;
745
739
  }
746
- throw new T();
740
+ throw new v();
747
741
  }
748
- const Ee = Symbol();
749
- async function xt(t, e, n, o) {
750
- const a = `${t}.${e}`;
751
- if (!await crypto.subtle.verify(ke(n), n, o, E(a)))
752
- throw new s("JWT signature verification failed");
742
+ const ke = Symbol();
743
+ async function Rt(t, e, n, o) {
744
+ const s = `${t}.${e}`;
745
+ if (!await crypto.subtle.verify(Ae(n), n, o, E(s)))
746
+ throw new a("JWT signature verification failed");
753
747
  }
754
- async function Ct(t, e, n, o, a, r) {
755
- let { 0: i, 1: c, 2: p, length: w } = t.split(".");
756
- if (w === 5)
748
+ async function Pt(t, e, n, o, s, r) {
749
+ let { 0: i, 1: u, 2: d, length: y } = t.split(".");
750
+ if (y === 5)
757
751
  if (r !== void 0)
758
- t = await r(t), { 0: i, 1: c, 2: p, length: w } = t.split(".");
752
+ t = await r(t), { 0: i, 1: u, 2: d, length: y } = t.split(".");
759
753
  else
760
- throw new T("JWE structure JWTs are not supported");
761
- if (w !== 3)
762
- throw new s("Invalid JWT");
763
- let f;
754
+ throw new v("JWE structure JWTs are not supported");
755
+ if (y !== 3)
756
+ throw new a("Invalid JWT");
757
+ let p;
764
758
  try {
765
- f = JSON.parse(E(k(i)));
759
+ p = JSON.parse(E(A(i)));
766
760
  } catch (l) {
767
- throw new s("failed to parse JWT Header body as base64url encoded JSON", { cause: l });
761
+ throw new a("failed to parse JWT Header body as base64url encoded JSON", { cause: l });
768
762
  }
769
- if (!C(f))
770
- throw new s("JWT Header must be a top level object");
771
- if (e(f), f.crit !== void 0)
772
- throw new s('unexpected JWT "crit" header parameter');
773
- const v = k(p);
774
- let _;
775
- n !== Ee && (_ = await n(f), await xt(i, c, _, v));
763
+ if (!x(p))
764
+ throw new a("JWT Header must be a top level object");
765
+ if (e(p), p.crit !== void 0)
766
+ throw new a('unexpected JWT "crit" header parameter');
767
+ const k = A(d);
768
+ let b;
769
+ n !== ke && (b = await n(p), await Rt(i, u, b, k));
776
770
  let h;
777
771
  try {
778
- h = JSON.parse(E(k(c)));
772
+ h = JSON.parse(E(A(u)));
779
773
  } catch (l) {
780
- throw new s("failed to parse JWT Payload body as base64url encoded JSON", { cause: l });
774
+ throw new a("failed to parse JWT Payload body as base64url encoded JSON", { cause: l });
781
775
  }
782
- if (!C(h))
783
- throw new s("JWT Payload must be a top level object");
784
- const P = ee() + o;
776
+ if (!x(h))
777
+ throw new a("JWT Payload must be a top level object");
778
+ const P = Q() + o;
785
779
  if (h.exp !== void 0) {
786
780
  if (typeof h.exp != "number")
787
- throw new s('unexpected JWT "exp" (expiration time) claim type');
788
- if (h.exp <= P - a)
789
- throw new s('unexpected JWT "exp" (expiration time) claim value, timestamp is <= now()');
781
+ throw new a('unexpected JWT "exp" (expiration time) claim type');
782
+ if (h.exp <= P - s)
783
+ throw new a('unexpected JWT "exp" (expiration time) claim value, timestamp is <= now()');
790
784
  }
791
785
  if (h.iat !== void 0 && typeof h.iat != "number")
792
- throw new s('unexpected JWT "iat" (issued at) claim type');
786
+ throw new a('unexpected JWT "iat" (issued at) claim type');
793
787
  if (h.iss !== void 0 && typeof h.iss != "string")
794
- throw new s('unexpected JWT "iss" (issuer) claim type');
788
+ throw new a('unexpected JWT "iss" (issuer) claim type');
795
789
  if (h.nbf !== void 0) {
796
790
  if (typeof h.nbf != "number")
797
- throw new s('unexpected JWT "nbf" (not before) claim type');
798
- if (h.nbf > P + a)
799
- throw new s('unexpected JWT "nbf" (not before) claim value, timestamp is > now()');
791
+ throw new a('unexpected JWT "nbf" (not before) claim type');
792
+ if (h.nbf > P + s)
793
+ throw new a('unexpected JWT "nbf" (not before) claim value, timestamp is > now()');
800
794
  }
801
795
  if (h.aud !== void 0 && typeof h.aud != "string" && !Array.isArray(h.aud))
802
- throw new s('unexpected JWT "aud" (audience) claim type');
803
- return { header: f, claims: h, signature: v, key: _, jwt: t };
796
+ throw new a('unexpected JWT "aud" (audience) claim type');
797
+ return { header: p, claims: h, signature: k, key: b, jwt: t };
804
798
  }
805
- function It(t, e, n) {
799
+ function Lt(t, e, n) {
806
800
  if (t !== void 0) {
807
801
  if (n.alg !== t)
808
- throw new s('unexpected JWT "alg" header parameter');
802
+ throw new a('unexpected JWT "alg" header parameter');
809
803
  return;
810
804
  }
811
805
  if (Array.isArray(e)) {
812
806
  if (!e.includes(n.alg))
813
- throw new s('unexpected JWT "alg" header parameter');
807
+ throw new a('unexpected JWT "alg" header parameter');
814
808
  return;
815
809
  }
816
810
  if (n.alg !== "RS256")
817
- throw new s('unexpected JWT "alg" header parameter');
811
+ throw new a('unexpected JWT "alg" header parameter');
818
812
  }
819
- function A(t, e) {
813
+ function T(t, e) {
820
814
  const { 0: n, length: o } = t.getAll(e);
821
815
  if (o > 1)
822
- throw new s(`"${e}" parameter must be provided only once`);
816
+ throw new a(`"${e}" parameter must be provided only once`);
823
817
  return n;
824
818
  }
825
- const jt = Symbol(), Jt = Symbol();
826
- function Ot(t, e, n, o) {
827
- if (I(t), j(e), n instanceof URL && (n = n.searchParams), !(n instanceof URLSearchParams))
819
+ const Ut = Symbol(), xt = Symbol();
820
+ function Ct(t, e, n, o) {
821
+ if (C(t), I(e), n instanceof URL && (n = n.searchParams), !(n instanceof URLSearchParams))
828
822
  throw new TypeError('"parameters" must be an instance of URLSearchParams, or URL');
829
- if (A(n, "response"))
830
- throw new s('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()');
831
- const a = A(n, "iss"), r = A(n, "state");
832
- if (!a && t.authorization_response_iss_parameter_supported)
833
- throw new s('response parameter "iss" (issuer) missing');
834
- if (a && a !== t.issuer)
835
- throw new s('unexpected "iss" (issuer) response parameter value');
823
+ if (T(n, "response"))
824
+ throw new a('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()');
825
+ const s = T(n, "iss"), r = T(n, "state");
826
+ if (!s && t.authorization_response_iss_parameter_supported)
827
+ throw new a('response parameter "iss" (issuer) missing');
828
+ if (s && s !== t.issuer)
829
+ throw new a('unexpected "iss" (issuer) response parameter value');
836
830
  switch (o) {
837
831
  case void 0:
838
- case Jt:
832
+ case xt:
839
833
  if (r !== void 0)
840
- throw new s('unexpected "state" response parameter encountered');
834
+ throw new a('unexpected "state" response parameter encountered');
841
835
  break;
842
- case jt:
836
+ case Ut:
843
837
  break;
844
838
  default:
845
- if (!g(o))
846
- throw new s('"expectedState" must be a non-empty string');
839
+ if (!w(o))
840
+ throw new a('"expectedState" must be a non-empty string');
847
841
  if (r === void 0)
848
- throw new s('response parameter "state" missing');
842
+ throw new a('response parameter "state" missing');
849
843
  if (r !== o)
850
- throw new s('unexpected "state" response parameter value');
844
+ throw new a('unexpected "state" response parameter value');
851
845
  }
852
- const i = A(n, "error");
846
+ const i = T(n, "error");
853
847
  if (i)
854
848
  return {
855
849
  error: i,
856
- error_description: A(n, "error_description"),
857
- error_uri: A(n, "error_uri")
850
+ error_description: T(n, "error_description"),
851
+ error_uri: T(n, "error_uri")
858
852
  };
859
- const c = A(n, "id_token"), p = A(n, "token");
860
- if (c !== void 0 || p !== void 0)
861
- throw new T("implicit and hybrid flows are not supported");
862
- return Tt(new URLSearchParams(n));
863
- }
864
- function zt({
865
- handleCallback: t
866
- }) {
867
- const e = je({
868
- retry: !1,
869
- queryKey: ["oauth-callback"],
870
- queryFn: async () => {
871
- try {
872
- return await t();
873
- } catch (n) {
874
- throw new ze("Could not validate user", {
875
- cause: n,
876
- title: "Authentication Error",
877
- developerHint: "Check the configuration of your authorization provider and ensure all settings such as the callback URL are configured correctly."
878
- });
879
- }
880
- }
881
- });
882
- return /* @__PURE__ */ B.jsx(Oe, { to: e.data });
883
- }
884
- class R extends Error {
885
- }
886
- class pe extends R {
887
- constructor(e, n, o) {
888
- super(e, o), this.error = n;
889
- }
890
- }
891
- const M = "code-verifier", q = "oauth-state";
892
- class Dt extends Je {
893
- constructor(e, n) {
894
- super(), this.callbackUrlPath = e, this.handleCallback = n;
895
- }
896
- getRoutes() {
897
- return [
898
- ...super.getRoutes(),
899
- {
900
- path: this.callbackUrlPath,
901
- element: /* @__PURE__ */ B.jsx(Ie, { children: /* @__PURE__ */ B.jsx(zt, { handleCallback: this.handleCallback }) })
902
- }
903
- ];
904
- }
905
- }
906
- class Nt {
853
+ const u = T(n, "id_token"), d = T(n, "token");
854
+ if (u !== void 0 || d !== void 0)
855
+ throw new v("implicit and hybrid flows are not supported");
856
+ return bt(new URLSearchParams(n));
857
+ }
858
+ const F = "code-verifier", M = "oauth-state", pe = "/oauth/callback";
859
+ class It extends Ie {
860
+ client;
861
+ issuer;
862
+ authorizationServer;
863
+ callbackUrlPath;
864
+ onAuthorizationUrl;
865
+ redirectToAfterSignUp;
866
+ redirectToAfterSignIn;
867
+ redirectToAfterSignOut;
868
+ audience;
869
+ scopes;
907
870
  constructor({
908
871
  issuer: e,
909
872
  audience: n,
910
873
  clientId: o,
911
- redirectToAfterSignUp: a,
874
+ redirectToAfterSignUp: s,
912
875
  redirectToAfterSignIn: r,
913
- redirectToAfterSignOut: i,
914
- basePath: c,
915
- scopes: p
876
+ redirectToAfterSignOut: i = "/",
877
+ basePath: u,
878
+ scopes: d
916
879
  }) {
917
- b(this, "client");
918
- b(this, "issuer");
919
- b(this, "authorizationServer");
920
- b(this, "callbackUrlPath");
921
- b(this, "logoutRedirectUrlPath");
922
- b(this, "onAuthorizationUrl");
923
- b(this, "redirectToAfterSignUp");
924
- b(this, "redirectToAfterSignIn");
925
- b(this, "redirectToAfterSignOut");
926
- b(this, "audience");
927
- b(this, "scopes");
928
- b(this, "signRequest", async (e) => {
929
- const n = await this.getAccessToken();
930
- return e.headers.set("Authorization", `Bearer ${n}`), e;
931
- });
932
- b(this, "signOut", async () => {
933
- x.setState({
934
- isAuthenticated: !1,
935
- isPending: !1,
936
- profile: void 0,
937
- providerData: void 0
938
- });
939
- const e = await this.getAuthServer(), n = new URL(
940
- window.location.origin + this.redirectToAfterSignOut
941
- );
942
- n.pathname = this.logoutRedirectUrlPath;
943
- let o;
944
- e.end_session_endpoint ? (o = new URL(e.end_session_endpoint), o.searchParams.set(
945
- "post_logout_redirect_uri",
946
- n.toString()
947
- )) : o = n;
948
- });
949
- b(this, "handleCallback", async () => {
950
- const e = new URL(window.location.href), n = e.searchParams.get("state"), o = sessionStorage.getItem(q);
951
- if (sessionStorage.removeItem(q), n !== o)
952
- throw new R("Invalid state parameter");
953
- const a = sessionStorage.getItem(M);
954
- if (sessionStorage.removeItem(M), !a)
955
- throw new R("No code verifier found in state.");
956
- const r = await this.getAuthServer(), i = Ot(
957
- r,
958
- this.client,
959
- e.searchParams,
960
- n ?? void 0
961
- );
962
- if (G(i))
963
- throw se.error("Error validating OAuth response", i), new pe(
964
- "Error validating OAuth response",
965
- i
966
- );
967
- const c = new URL(e);
968
- c.pathname = this.callbackUrlPath, c.search = "";
969
- const p = await At(
970
- r,
971
- this.client,
972
- i,
973
- c.toString(),
974
- a
975
- ), w = await Pt(
976
- r,
977
- this.client,
978
- p
979
- );
980
- this.setTokensFromResponse(w);
981
- const f = await this.getAccessToken(), _ = await (await gt(
982
- r,
983
- this.client,
984
- f
985
- )).json(), h = {
986
- sub: _.sub,
987
- email: _.email,
988
- name: _.name,
989
- emailVerified: _.email_verified ?? !1,
990
- pictureUrl: _.picture
991
- };
992
- x.setState({
993
- isAuthenticated: !0,
994
- isPending: !1,
995
- profile: h
996
- });
997
- const P = sessionStorage.getItem("redirect-to") ?? "/";
998
- return sessionStorage.removeItem("redirect-to"), P;
999
- });
1000
- this.client = {
880
+ super(), this.client = {
1001
881
  client_id: o,
1002
882
  token_endpoint_auth_method: "none"
1003
- }, this.audience = n, this.issuer = e, this.callbackUrlPath = ie(c, "/oauth/callback"), this.scopes = p ?? ["openid", "profile", "email"];
1004
- const w = ie(c, "/");
1005
- this.logoutRedirectUrlPath = w, this.redirectToAfterSignUp = a ?? w, this.redirectToAfterSignIn = r ?? w, this.redirectToAfterSignOut = i ?? w;
883
+ }, this.audience = n, this.issuer = e, this.callbackUrlPath = Ce(u, pe), this.scopes = d ?? ["openid", "profile", "email"], this.redirectToAfterSignUp = s, this.redirectToAfterSignIn = r, this.redirectToAfterSignOut = i;
1006
884
  }
1007
885
  async getAuthServer() {
1008
886
  if (!this.authorizationServer) {
1009
- const e = new URL(this.issuer), n = await et(e);
1010
- this.authorizationServer = await tt(
887
+ const e = new URL(this.issuer), n = await Qe(e);
888
+ this.authorizationServer = await Xe(
1011
889
  e,
1012
890
  n
1013
891
  );
@@ -1019,8 +897,8 @@ class Nt {
1019
897
  * @param response
1020
898
  */
1021
899
  setTokensFromResponse(e) {
1022
- if (G(e))
1023
- throw se.error("Bad Token Response", e), new pe("Bad Token Response", e);
900
+ if (q(e))
901
+ throw ie.error("Bad Token Response", e), new re("Bad Token Response", e);
1024
902
  if (!e.expires_in)
1025
903
  throw new R("No expires_in in response");
1026
904
  const n = {
@@ -1030,67 +908,75 @@ class Nt {
1030
908
  expiresOn: new Date(Date.now() + e.expires_in * 1e3),
1031
909
  tokenType: e.token_type
1032
910
  };
1033
- x.setState({
911
+ S.setState({
1034
912
  providerData: n
1035
913
  });
1036
914
  }
1037
- async signUp({ redirectTo: e } = {}) {
915
+ async signUp({
916
+ redirectTo: e,
917
+ replace: n = !1
918
+ } = {}) {
1038
919
  return this.authorize({
1039
- redirectTo: e ?? this.redirectToAfterSignUp,
920
+ redirectTo: this.redirectToAfterSignUp ?? e ?? "/",
921
+ replace: n,
1040
922
  isSignUp: !0
1041
923
  });
1042
924
  }
1043
- async signIn({ redirectTo: e } = {}) {
925
+ async signIn({
926
+ redirectTo: e,
927
+ replace: n = !1
928
+ } = {}) {
1044
929
  return this.authorize({
1045
- redirectTo: e ?? this.redirectToAfterSignIn
930
+ redirectTo: this.redirectToAfterSignIn ?? e ?? "/",
931
+ replace: n
1046
932
  });
1047
933
  }
1048
934
  async authorize({
1049
935
  redirectTo: e,
1050
- isSignUp: n = !1
936
+ isSignUp: n = !1,
937
+ replace: o = !1
1051
938
  }) {
1052
- var v;
1053
- const o = "S256", a = await this.getAuthServer();
1054
- if (!a.authorization_endpoint)
939
+ const s = "S256", r = await this.getAuthServer();
940
+ if (!r.authorization_endpoint)
1055
941
  throw new R("No authorization endpoint");
1056
- const r = nt(), i = await ot(r);
1057
- sessionStorage.setItem(M, r);
1058
- const c = new URL(
1059
- a.authorization_endpoint
1060
- ), p = e.startsWith(window.location.origin) ? e.slice(window.location.origin.length) : e;
1061
- sessionStorage.setItem("redirect-to", p);
1062
- const w = new URL(window.location.origin);
1063
- w.pathname = this.callbackUrlPath, w.search = "", c.searchParams.set("client_id", this.client.client_id), c.searchParams.set("redirect_uri", w.toString()), c.searchParams.set("response_type", "code"), c.searchParams.set("scope", this.scopes.join(" ")), c.searchParams.set("code_challenge", i), c.searchParams.set(
942
+ const i = et(), u = await nt(i);
943
+ sessionStorage.setItem(F, i);
944
+ const d = new URL(
945
+ r.authorization_endpoint
946
+ );
947
+ sessionStorage.setItem("redirect-to", e);
948
+ const y = new URL(window.location.origin);
949
+ y.pathname = this.callbackUrlPath, y.search = "", d.searchParams.set("client_id", this.client.client_id), d.searchParams.set("redirect_uri", y.toString()), d.searchParams.set("response_type", "code"), d.searchParams.set("scope", this.scopes.join(" ")), d.searchParams.set("code_challenge", u), d.searchParams.set(
1064
950
  "code_challenge_method",
1065
- o
1066
- ), this.audience && c.searchParams.set("audience", this.audience), (v = this.onAuthorizationUrl) == null || v.call(this, c, {
951
+ s
952
+ ), this.audience && d.searchParams.set("audience", this.audience), this.onAuthorizationUrl?.(d, {
1067
953
  isSignIn: !n,
1068
954
  isSignUp: n
1069
955
  });
1070
- const f = rt();
1071
- sessionStorage.setItem(q, f), c.searchParams.set("state", f), location.href = c.href;
956
+ const p = tt();
957
+ sessionStorage.setItem(M, p), d.searchParams.set("state", p), o ? location.replace(d.href) : location.href = d.href;
1072
958
  }
1073
959
  async getAccessToken() {
1074
- const e = await this.getAuthServer(), { providerData: n } = x.getState();
960
+ const e = await this.getAuthServer(), { providerData: n } = S.getState();
1075
961
  if (!n)
1076
962
  throw new R("User is not authenticated");
1077
963
  const o = n;
1078
964
  if (new Date(o.expiresOn) < /* @__PURE__ */ new Date()) {
1079
965
  if (!o.refreshToken)
1080
- return x.setState({
966
+ return S.setState({
1081
967
  isAuthenticated: !1,
1082
968
  isPending: !1,
1083
969
  profile: null,
1084
970
  providerData: null
1085
971
  }), "";
1086
- const a = await yt(
972
+ const s = await de(
1087
973
  e,
1088
974
  this.client,
1089
975
  o.refreshToken
1090
- ), r = await _t(
976
+ ), r = await fe(
1091
977
  e,
1092
978
  this.client,
1093
- a
979
+ s
1094
980
  );
1095
981
  if (!r.access_token)
1096
982
  throw new R("No access token in response");
@@ -1098,13 +984,140 @@ class Nt {
1098
984
  } else
1099
985
  return o.accessToken;
1100
986
  }
1101
- getAuthenticationPlugin() {
1102
- return new Dt(this.callbackUrlPath, this.handleCallback);
987
+ signRequest = async (e) => {
988
+ const n = await this.getAccessToken();
989
+ return e.headers.set("Authorization", `Bearer ${n}`), e;
990
+ };
991
+ signOut = async () => {
992
+ S.setState({
993
+ isAuthenticated: !1,
994
+ isPending: !1,
995
+ profile: void 0,
996
+ providerData: void 0
997
+ });
998
+ const e = await this.getAuthServer(), n = new URL(
999
+ window.location.origin + this.redirectToAfterSignOut
1000
+ );
1001
+ n.pathname = this.callbackUrlPath;
1002
+ let o;
1003
+ e.end_session_endpoint ? (o = new URL(e.end_session_endpoint), o.searchParams.set(
1004
+ "post_logout_redirect_uri",
1005
+ n.toString()
1006
+ )) : o = n;
1007
+ };
1008
+ onPageLoad = async () => {
1009
+ const { providerData: e } = S.getState();
1010
+ if (!e) {
1011
+ S.setState({ isPending: !1 });
1012
+ return;
1013
+ }
1014
+ const n = e;
1015
+ if (new Date(n.expiresOn) < /* @__PURE__ */ new Date()) {
1016
+ if (!n.refreshToken) {
1017
+ S.setState({
1018
+ isAuthenticated: !1,
1019
+ isPending: !1,
1020
+ profile: null,
1021
+ providerData: null
1022
+ });
1023
+ return;
1024
+ }
1025
+ try {
1026
+ const o = await this.getAuthServer(), s = await de(
1027
+ o,
1028
+ this.client,
1029
+ n.refreshToken
1030
+ ), r = await fe(
1031
+ o,
1032
+ this.client,
1033
+ s
1034
+ );
1035
+ if (!r.access_token)
1036
+ throw new R("No access token in response");
1037
+ this.setTokensFromResponse(r);
1038
+ } catch {
1039
+ S.setState({
1040
+ isAuthenticated: !1,
1041
+ isPending: !1,
1042
+ profile: null,
1043
+ providerData: null
1044
+ });
1045
+ return;
1046
+ }
1047
+ }
1048
+ S.setState({ isPending: !1 });
1049
+ };
1050
+ handleCallback = async () => {
1051
+ const e = new URL(window.location.href), n = e.searchParams.get("state"), o = sessionStorage.getItem(M);
1052
+ if (sessionStorage.removeItem(M), n !== o)
1053
+ throw new R("Invalid state parameter");
1054
+ const s = sessionStorage.getItem(F);
1055
+ if (sessionStorage.removeItem(F), !s)
1056
+ throw new R("No code verifier found in state.");
1057
+ const r = await this.getAuthServer(), i = Ct(
1058
+ r,
1059
+ this.client,
1060
+ e.searchParams,
1061
+ n ?? void 0
1062
+ );
1063
+ if (q(i))
1064
+ throw ie.error("Error validating OAuth response", i), new re(
1065
+ "Error validating OAuth response",
1066
+ i
1067
+ );
1068
+ const u = new URL(e);
1069
+ u.pathname = this.callbackUrlPath, u.search = "";
1070
+ const d = await _t(
1071
+ r,
1072
+ this.client,
1073
+ i,
1074
+ u.toString(),
1075
+ s
1076
+ ), y = await At(
1077
+ r,
1078
+ this.client,
1079
+ d
1080
+ );
1081
+ this.setTokensFromResponse(y);
1082
+ const p = await this.getAccessToken(), b = await (await pt(
1083
+ r,
1084
+ this.client,
1085
+ p
1086
+ )).json(), h = {
1087
+ sub: b.sub,
1088
+ email: b.email,
1089
+ name: b.name,
1090
+ emailVerified: b.email_verified ?? !1,
1091
+ pictureUrl: b.picture
1092
+ };
1093
+ S.setState({
1094
+ isAuthenticated: !0,
1095
+ isPending: !1,
1096
+ profile: h
1097
+ });
1098
+ const P = sessionStorage.getItem("redirect-to") ?? "/";
1099
+ return sessionStorage.removeItem("redirect-to"), P;
1100
+ };
1101
+ getRoutes() {
1102
+ return [
1103
+ ...super.getRoutes(),
1104
+ {
1105
+ path: pe,
1106
+ element: /* @__PURE__ */ D.jsx(xe, { children: /* @__PURE__ */ D.jsx(
1107
+ Ue,
1108
+ {
1109
+ fallbackRender: ({ error: e }) => /* @__PURE__ */ D.jsx(Oe, { error: e }),
1110
+ children: /* @__PURE__ */ D.jsx(je, { handleCallback: this.handleCallback })
1111
+ }
1112
+ ) })
1113
+ }
1114
+ ];
1103
1115
  }
1104
1116
  }
1105
- const Vt = (t) => new Nt(t);
1117
+ const Ht = (t) => new It(t);
1106
1118
  export {
1107
- Nt as OpenIDAuthenticationProvider,
1108
- Vt as default
1119
+ pe as OPENID_CALLBACK_PATH,
1120
+ It as OpenIDAuthenticationProvider,
1121
+ Ht as default
1109
1122
  };
1110
1123
  //# sourceMappingURL=zudoku.auth-openid.js.map