zudoku 0.0.0-ff3751f → 0.0.0-fix-display-option-navigation-items.4bdfe991

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 (1841) hide show
  1. package/README.md +3 -3
  2. package/cli.js +9 -0
  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 -9
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +6 -2
  9. package/dist/app/entry.client.js +51 -3
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +9 -8
  12. package/dist/app/entry.server.js +18 -16
  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 +4 -3
  18. package/dist/app/main.js +44 -43
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/sentry.d.ts +3 -0
  21. package/dist/app/sentry.js +19 -0
  22. package/dist/app/sentry.js.map +1 -0
  23. package/dist/app/standalone.js +8 -10
  24. package/dist/app/standalone.js.map +1 -1
  25. package/dist/cli/build/handler.d.ts +1 -3
  26. package/dist/cli/build/handler.js +18 -2
  27. package/dist/cli/build/handler.js.map +1 -1
  28. package/dist/cli/cli.js +17 -3
  29. package/dist/cli/cli.js.map +1 -1
  30. package/dist/cli/cmds/build.d.ts +11 -3
  31. package/dist/cli/cmds/build.js +21 -13
  32. package/dist/cli/cmds/build.js.map +1 -1
  33. package/dist/cli/cmds/dev.d.ts +1 -1
  34. package/dist/cli/cmds/dev.js +5 -0
  35. package/dist/cli/cmds/dev.js.map +1 -1
  36. package/dist/cli/cmds/preview.d.ts +16 -0
  37. package/dist/cli/cmds/preview.js +25 -0
  38. package/dist/cli/cmds/preview.js.map +1 -0
  39. package/dist/cli/common/logger.js +9 -0
  40. package/dist/cli/common/logger.js.map +1 -1
  41. package/dist/cli/common/machine-id/lib.js +1 -0
  42. package/dist/cli/common/machine-id/lib.js.map +1 -1
  43. package/dist/cli/common/outdated.js +2 -1
  44. package/dist/cli/common/outdated.js.map +1 -1
  45. package/dist/cli/common/output.js.map +1 -1
  46. package/dist/cli/common/utils/ports.d.ts +1 -1
  47. package/dist/cli/common/utils/ports.js +16 -15
  48. package/dist/cli/common/utils/ports.js.map +1 -1
  49. package/dist/cli/dev/handler.d.ts +1 -0
  50. package/dist/cli/dev/handler.js +15 -12
  51. package/dist/cli/dev/handler.js.map +1 -1
  52. package/dist/cli/preview/handler.d.ts +3 -0
  53. package/dist/cli/preview/handler.js +35 -0
  54. package/dist/cli/preview/handler.js.map +1 -0
  55. package/dist/codegen.d.ts +3 -0
  56. package/dist/codegen.js +45 -0
  57. package/dist/codegen.js.map +1 -0
  58. package/dist/config/config.d.ts +28 -13
  59. package/dist/config/file-exists.d.ts +1 -0
  60. package/dist/config/file-exists.js +5 -0
  61. package/dist/config/file-exists.js.map +1 -0
  62. package/dist/config/loader.d.ts +21 -0
  63. package/dist/config/loader.js +141 -0
  64. package/dist/config/loader.js.map +1 -0
  65. package/dist/config/validators/BuildSchema.d.ts +36 -0
  66. package/dist/config/validators/BuildSchema.js +25 -0
  67. package/dist/config/validators/BuildSchema.js.map +1 -0
  68. package/dist/config/validators/InputNavigationSchema.d.ts +7460 -0
  69. package/dist/config/validators/InputNavigationSchema.js +74 -0
  70. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  71. package/dist/config/validators/InputNavigationSchema.test-d.js +145 -0
  72. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  73. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  74. package/dist/config/validators/NavigationSchema.js +96 -0
  75. package/dist/config/validators/NavigationSchema.js.map +1 -0
  76. package/dist/config/validators/ProtectedRoutesSchema.d.ts +12 -0
  77. package/dist/config/validators/ProtectedRoutesSchema.js +19 -0
  78. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  79. package/dist/config/validators/icon-types.d.ts +2 -0
  80. package/dist/config/validators/icon-types.js +1830 -0
  81. package/dist/config/validators/icon-types.js.map +1 -0
  82. package/dist/config/validators/validate.d.ts +655 -1564
  83. package/dist/config/validators/validate.js +345 -145
  84. package/dist/config/validators/validate.js.map +1 -1
  85. package/dist/config/validators/validate.test.js +141 -0
  86. package/dist/config/validators/validate.test.js.map +1 -0
  87. package/dist/index.d.ts +9 -5
  88. package/dist/index.js +5 -1
  89. package/dist/index.js.map +1 -1
  90. package/dist/lib/MissingIcon.d.ts +2 -0
  91. package/dist/lib/MissingIcon.js +7 -0
  92. package/dist/lib/MissingIcon.js.map +1 -0
  93. package/dist/lib/auth/issuer.d.ts +2 -0
  94. package/dist/lib/auth/issuer.js +37 -0
  95. package/dist/lib/auth/issuer.js.map +1 -0
  96. package/dist/lib/auth/issuer.test.js +94 -0
  97. package/dist/lib/auth/issuer.test.js.map +1 -0
  98. package/dist/lib/authentication/AuthenticationPlugin.d.ts +6 -4
  99. package/dist/lib/authentication/AuthenticationPlugin.js +4 -1
  100. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  101. package/dist/lib/authentication/authentication.d.ts +6 -5
  102. package/dist/lib/authentication/components/CallbackHandler.js +17 -11
  103. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  104. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  105. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  106. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  107. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  108. package/dist/lib/authentication/components/SignIn.js +6 -2
  109. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  110. package/dist/lib/authentication/components/SignOut.js +2 -2
  111. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  112. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  113. package/dist/lib/authentication/components/SignUp.js +4 -1
  114. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  115. package/dist/lib/authentication/errors.d.ts +6 -12
  116. package/dist/lib/authentication/errors.js +2 -1
  117. package/dist/lib/authentication/errors.js.map +1 -1
  118. package/dist/lib/authentication/hook.d.ts +13 -4
  119. package/dist/lib/authentication/hook.js +12 -4
  120. package/dist/lib/authentication/hook.js.map +1 -1
  121. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  122. package/dist/lib/authentication/providers/auth0.js +16 -14
  123. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  124. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  125. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  126. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  127. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  128. package/dist/lib/authentication/providers/clerk.js +108 -48
  129. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  130. package/dist/lib/authentication/providers/openid.d.ts +26 -21
  131. package/dist/lib/authentication/providers/openid.js +112 -73
  132. package/dist/lib/authentication/providers/openid.js.map +1 -1
  133. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  134. package/dist/lib/authentication/providers/supabase.js +108 -0
  135. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  136. package/dist/lib/authentication/state.d.ts +24 -19
  137. package/dist/lib/authentication/state.js +47 -7
  138. package/dist/lib/authentication/state.js.map +1 -1
  139. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  140. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  141. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  142. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  143. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  144. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  145. package/dist/lib/components/AnchorLink.d.ts +2 -2
  146. package/dist/lib/components/AnchorLink.js +9 -5
  147. package/dist/lib/components/AnchorLink.js.map +1 -1
  148. package/dist/lib/components/Autocomplete.d.ts +13 -0
  149. package/dist/lib/components/Autocomplete.js +47 -0
  150. package/dist/lib/components/Autocomplete.js.map +1 -0
  151. package/dist/lib/components/Banner.js +2 -2
  152. package/dist/lib/components/Banner.js.map +1 -1
  153. package/dist/lib/components/Bootstrap.d.ts +5 -3
  154. package/dist/lib/components/Bootstrap.js +13 -6
  155. package/dist/lib/components/Bootstrap.js.map +1 -1
  156. package/dist/lib/components/BuildCheck.d.ts +4 -0
  157. package/dist/lib/components/BuildCheck.js +38 -0
  158. package/dist/lib/components/BuildCheck.js.map +1 -0
  159. package/dist/lib/components/CategoryHeading.js +1 -1
  160. package/dist/lib/components/CategoryHeading.js.map +1 -1
  161. package/dist/lib/components/ClientOnly.d.ts +4 -2
  162. package/dist/lib/components/ClientOnly.js +1 -1
  163. package/dist/lib/components/ClientOnly.js.map +1 -1
  164. package/dist/lib/components/DeveloperHint.js +2 -1
  165. package/dist/lib/components/DeveloperHint.js.map +1 -1
  166. package/dist/lib/components/ErrorPage.js +2 -2
  167. package/dist/lib/components/ErrorPage.js.map +1 -1
  168. package/dist/lib/components/Footer.d.ts +1 -0
  169. package/dist/lib/components/Footer.js +32 -0
  170. package/dist/lib/components/Footer.js.map +1 -0
  171. package/dist/lib/components/Framed.d.ts +7 -0
  172. package/dist/lib/components/Framed.js +26 -0
  173. package/dist/lib/components/Framed.js.map +1 -0
  174. package/dist/lib/components/Header.js +32 -17
  175. package/dist/lib/components/Header.js.map +1 -1
  176. package/dist/lib/components/Heading.d.ts +10 -6
  177. package/dist/lib/components/Heading.js +7 -2
  178. package/dist/lib/components/Heading.js.map +1 -1
  179. package/dist/lib/components/InlineCode.d.ts +2 -1
  180. package/dist/lib/components/InlineCode.js +2 -9
  181. package/dist/lib/components/InlineCode.js.map +1 -1
  182. package/dist/lib/components/Layout.js +10 -21
  183. package/dist/lib/components/Layout.js.map +1 -1
  184. package/dist/lib/components/Main.d.ts +2 -0
  185. package/dist/lib/components/Main.js +18 -0
  186. package/dist/lib/components/Main.js.map +1 -0
  187. package/dist/lib/components/Markdown.d.ts +4 -3
  188. package/dist/lib/components/Markdown.js +14 -14
  189. package/dist/lib/components/Markdown.js.map +1 -1
  190. package/dist/lib/components/MobileTopNavigation.js +18 -9
  191. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  192. package/dist/lib/components/NotFoundPage.js +3 -3
  193. package/dist/lib/components/NotFoundPage.js.map +1 -1
  194. package/dist/lib/components/PageProgress.d.ts +1 -0
  195. package/dist/lib/components/PageProgress.js +20 -0
  196. package/dist/lib/components/PageProgress.js.map +1 -0
  197. package/dist/lib/components/Pagination.d.ts +11 -0
  198. package/dist/lib/components/Pagination.js +10 -0
  199. package/dist/lib/components/Pagination.js.map +1 -0
  200. package/dist/lib/components/PathRenderer.d.ts +11 -0
  201. package/dist/lib/components/PathRenderer.js +28 -0
  202. package/dist/lib/components/PathRenderer.js.map +1 -0
  203. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  204. package/dist/lib/components/ReactMarkdown.js +182 -0
  205. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  206. package/dist/lib/components/Search.d.ts +3 -1
  207. package/dist/lib/components/Search.js +9 -3
  208. package/dist/lib/components/Search.js.map +1 -1
  209. package/dist/lib/components/Slot.d.ts +17 -0
  210. package/dist/lib/components/Slot.js +24 -0
  211. package/dist/lib/components/Slot.js.map +1 -0
  212. package/dist/lib/components/Slot.test.d.ts +1 -0
  213. package/dist/lib/components/Slot.test.js +168 -0
  214. package/dist/lib/components/Slot.test.js.map +1 -0
  215. package/dist/lib/components/StatusPage.d.ts +7 -0
  216. package/dist/lib/components/StatusPage.js +75 -0
  217. package/dist/lib/components/StatusPage.js.map +1 -0
  218. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  219. package/dist/lib/components/ThemeSwitch.js +16 -0
  220. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  221. package/dist/lib/components/TopNavigation.d.ts +7 -3
  222. package/dist/lib/components/TopNavigation.js +55 -37
  223. package/dist/lib/components/TopNavigation.js.map +1 -1
  224. package/dist/lib/components/Typography.d.ts +5 -0
  225. package/dist/lib/components/Typography.js +8 -0
  226. package/dist/lib/components/Typography.js.map +1 -0
  227. package/dist/lib/components/Zudoku.d.ts +7 -0
  228. package/dist/lib/components/Zudoku.js +58 -0
  229. package/dist/lib/components/Zudoku.js.map +1 -0
  230. package/dist/lib/components/cache.d.ts +13 -0
  231. package/dist/lib/components/cache.js +20 -0
  232. package/dist/lib/components/cache.js.map +1 -0
  233. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  234. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  235. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  236. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  237. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  238. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  239. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  240. package/dist/lib/components/context/SlotProvider.js +83 -0
  241. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  242. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  243. package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
  244. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  245. package/dist/lib/components/context/ZudokuContext.d.ts +9 -13
  246. package/dist/lib/components/context/ZudokuContext.js +64 -31
  247. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  248. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  249. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  250. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  251. package/dist/lib/components/index.d.ts +69 -20
  252. package/dist/lib/components/index.js +31 -9
  253. package/dist/lib/components/index.js.map +1 -1
  254. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  255. package/dist/lib/components/navigation/Navigation.js +12 -0
  256. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  257. package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
  258. package/dist/lib/components/navigation/NavigationBadge.js +26 -0
  259. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  260. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  261. package/dist/lib/components/navigation/NavigationCategory.js +61 -0
  262. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  263. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  264. package/dist/lib/components/navigation/NavigationItem.js +54 -0
  265. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  266. package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
  267. package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
  268. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  269. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  270. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  271. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  272. package/dist/lib/components/navigation/Toc.js +46 -0
  273. package/dist/lib/components/navigation/Toc.js.map +1 -0
  274. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  275. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  276. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  277. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  278. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  279. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  280. package/dist/lib/components/navigation/utils.d.ts +14 -6
  281. package/dist/lib/components/navigation/utils.js +50 -19
  282. package/dist/lib/components/navigation/utils.js.map +1 -1
  283. package/dist/lib/core/RouteGuard.d.ts +2 -0
  284. package/dist/lib/core/RouteGuard.js +52 -0
  285. package/dist/lib/core/RouteGuard.js.map +1 -0
  286. package/dist/lib/core/ZudokuContext.d.ts +113 -0
  287. package/dist/lib/core/ZudokuContext.js +93 -0
  288. package/dist/lib/core/ZudokuContext.js.map +1 -0
  289. package/dist/lib/core/plugins.d.ts +37 -19
  290. package/dist/lib/core/plugins.js +4 -0
  291. package/dist/lib/core/plugins.js.map +1 -1
  292. package/dist/lib/errors/ErrorAlert.js +5 -1
  293. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  294. package/dist/lib/errors/RouterError.js +1 -1
  295. package/dist/lib/errors/RouterError.js.map +1 -1
  296. package/dist/lib/hooks/index.d.ts +28 -0
  297. package/dist/lib/hooks/index.js +16 -0
  298. package/dist/lib/hooks/index.js.map +1 -0
  299. package/dist/lib/hooks/useEvent.d.ts +11 -0
  300. package/dist/lib/hooks/useEvent.js +19 -0
  301. package/dist/lib/hooks/useEvent.js.map +1 -0
  302. package/dist/lib/hooks/useEvent.test.d.ts +1 -0
  303. package/dist/lib/hooks/useEvent.test.js +102 -0
  304. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  305. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  306. package/dist/lib/hooks/useHotkey.js +58 -0
  307. package/dist/lib/hooks/useHotkey.js.map +1 -0
  308. package/dist/lib/icons.d.ts +1 -0
  309. package/dist/lib/icons.js +1 -0
  310. package/dist/lib/icons.js.map +1 -1
  311. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  312. package/dist/lib/oas/graphql/circular.js +43 -0
  313. package/dist/lib/oas/graphql/circular.js.map +1 -0
  314. package/dist/lib/oas/graphql/index.d.ts +25 -1
  315. package/dist/lib/oas/graphql/index.js +216 -69
  316. package/dist/lib/oas/graphql/index.js.map +1 -1
  317. package/dist/lib/oas/parser/dereference/index.js +8 -3
  318. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  319. package/dist/lib/oas/parser/index.d.ts +8 -3
  320. package/dist/lib/oas/parser/index.js +7 -23
  321. package/dist/lib/oas/parser/index.js.map +1 -1
  322. package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
  323. package/dist/lib/oas/parser/upgrade/index.js +83 -31
  324. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  325. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  326. package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
  327. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  328. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  329. package/dist/lib/plugins/api-catalog/index.js +46 -0
  330. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  331. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  332. package/dist/lib/plugins/api-keys/CreateApiKey.js +15 -7
  333. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  334. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  335. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  336. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  337. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +151 -28
  338. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  339. package/dist/lib/plugins/api-keys/index.d.ts +25 -15
  340. package/dist/lib/plugins/api-keys/index.js +68 -30
  341. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  342. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  343. package/dist/lib/plugins/custom-pages/index.js +15 -10
  344. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  345. package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -2
  346. package/dist/lib/plugins/markdown/MdxPage.js +43 -10
  347. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  348. package/dist/lib/plugins/markdown/index.d.ts +14 -4
  349. package/dist/lib/plugins/markdown/index.js +9 -26
  350. package/dist/lib/plugins/markdown/index.js.map +1 -1
  351. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  352. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  353. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  354. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  355. package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
  356. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  357. package/dist/lib/plugins/openapi/Endpoint.js +13 -16
  358. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  359. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  360. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  361. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  362. package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
  363. package/dist/lib/plugins/openapi/OperationList.js +109 -29
  364. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  365. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  366. package/dist/lib/plugins/openapi/OperationListItem.js +13 -7
  367. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  368. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  369. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  370. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  371. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  372. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  373. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  374. package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
  375. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  376. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
  377. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +17 -4
  378. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  379. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  380. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  381. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  382. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  383. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -6
  384. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  385. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  386. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  387. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  388. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  389. package/dist/lib/plugins/openapi/Sidecar.js +87 -118
  390. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  391. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  392. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  393. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  394. package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
  395. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  396. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  397. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  398. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  399. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  400. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  401. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  402. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  403. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  404. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  405. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  406. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  407. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
  408. package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
  409. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  410. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  411. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  412. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  413. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  414. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  415. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  416. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  417. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  418. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  419. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  420. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  421. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  422. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  423. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  424. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  425. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  426. package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
  427. package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
  428. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  429. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +142 -25
  430. package/dist/lib/plugins/openapi/graphql/graphql.js +239 -662
  431. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  432. package/dist/lib/plugins/openapi/index.d.ts +11 -8
  433. package/dist/lib/plugins/openapi/index.js +106 -104
  434. package/dist/lib/plugins/openapi/index.js.map +1 -1
  435. package/dist/lib/plugins/openapi/interfaces.d.ts +58 -4
  436. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  437. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  438. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  439. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  440. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  441. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  442. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  443. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +9 -0
  444. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  445. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  446. package/dist/lib/plugins/openapi/playground/Headers.js +108 -7
  447. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  448. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  449. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +15 -0
  450. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  451. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  452. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +7 -0
  453. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  454. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  455. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  456. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  457. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  458. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  459. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  460. package/dist/lib/plugins/openapi/playground/PathParams.js +4 -7
  461. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  462. package/dist/lib/plugins/openapi/playground/Playground.d.ts +32 -2
  463. package/dist/lib/plugins/openapi/playground/Playground.js +168 -84
  464. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  465. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  466. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  467. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -3
  468. package/dist/lib/plugins/openapi/playground/QueryParams.js +43 -22
  469. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  470. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  471. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  472. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  473. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  474. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  475. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  476. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  477. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  478. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  479. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  480. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  481. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  482. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  483. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  484. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  485. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  486. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  487. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  488. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  489. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  490. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  491. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  492. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +69 -0
  493. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  494. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +14 -0
  495. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +103 -0
  496. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  497. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +11 -0
  498. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +15 -0
  499. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  500. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  501. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  502. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  503. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  504. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  505. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  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 +194 -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 +159 -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 +2 -0
  529. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  530. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  531. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  532. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  533. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  534. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  535. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  536. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  537. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  538. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  539. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  540. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  541. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  542. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +11 -0
  543. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +44 -0
  544. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  545. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  546. package/dist/lib/plugins/openapi/schema/SchemaView.js +40 -51
  547. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  548. package/dist/lib/plugins/openapi/schema/utils.d.ts +8 -1
  549. package/dist/lib/plugins/openapi/schema/utils.js +16 -4
  550. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  551. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  552. package/dist/lib/plugins/openapi/state.js +18 -0
  553. package/dist/lib/plugins/openapi/state.js.map +1 -0
  554. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  555. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  556. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  557. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  558. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +24 -0
  559. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  560. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -2
  561. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +80 -39
  562. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  563. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  564. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  565. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  566. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  567. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  568. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  569. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  570. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  571. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  572. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  573. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  574. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  575. package/dist/lib/plugins/redirect/index.d.ts +3 -3
  576. package/dist/lib/plugins/redirect/index.js +1 -1
  577. package/dist/lib/plugins/redirect/index.js.map +1 -1
  578. package/dist/lib/plugins/search-inkeep/index.d.ts +8 -6
  579. package/dist/lib/plugins/search-inkeep/index.js +49 -7
  580. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  581. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +2 -19
  582. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  583. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  584. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  585. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  586. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  587. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  588. package/dist/lib/plugins/search-pagefind/ResultList.js +39 -0
  589. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  590. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  591. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  592. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  593. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  594. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  595. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  596. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  597. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  598. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  599. package/dist/lib/shiki.d.ts +31 -0
  600. package/dist/lib/shiki.js +101 -0
  601. package/dist/lib/shiki.js.map +1 -0
  602. package/dist/lib/ui/ActionButton.d.ts +4 -0
  603. package/dist/lib/ui/ActionButton.js +10 -0
  604. package/dist/lib/ui/ActionButton.js.map +1 -0
  605. package/dist/lib/ui/Alert.d.ts +6 -5
  606. package/dist/lib/ui/Alert.js +12 -10
  607. package/dist/lib/ui/Alert.js.map +1 -1
  608. package/dist/lib/ui/Badge.d.ts +2 -2
  609. package/dist/lib/ui/Badge.js +2 -1
  610. package/dist/lib/ui/Badge.js.map +1 -1
  611. package/dist/lib/ui/Button.d.ts +3 -3
  612. package/dist/lib/ui/Button.js +9 -6
  613. package/dist/lib/ui/Button.js.map +1 -1
  614. package/dist/lib/ui/Callout.d.ts +2 -1
  615. package/dist/lib/ui/Callout.js +3 -2
  616. package/dist/lib/ui/Callout.js.map +1 -1
  617. package/dist/lib/ui/Card.js +1 -1
  618. package/dist/lib/ui/Card.js.map +1 -1
  619. package/dist/lib/ui/Checkbox.js +1 -1
  620. package/dist/lib/ui/Checkbox.js.map +1 -1
  621. package/dist/lib/ui/CodeBlock.d.ts +15 -0
  622. package/dist/lib/ui/CodeBlock.js +17 -0
  623. package/dist/lib/ui/CodeBlock.js.map +1 -0
  624. package/dist/lib/ui/Command.d.ts +17 -3
  625. package/dist/lib/ui/Command.js +9 -5
  626. package/dist/lib/ui/Command.js.map +1 -1
  627. package/dist/lib/ui/Dialog.d.ts +3 -1
  628. package/dist/lib/ui/Dialog.js +2 -2
  629. package/dist/lib/ui/Dialog.js.map +1 -1
  630. package/dist/lib/ui/DropdownMenu.js +4 -4
  631. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  632. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  633. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  634. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  635. package/dist/lib/ui/Form.d.ts +1 -1
  636. package/dist/lib/ui/HoverCard.js +1 -1
  637. package/dist/lib/ui/HoverCard.js.map +1 -1
  638. package/dist/lib/ui/Input.d.ts +1 -2
  639. package/dist/lib/ui/Input.js +1 -1
  640. package/dist/lib/ui/Input.js.map +1 -1
  641. package/dist/lib/ui/Popover.js +1 -1
  642. package/dist/lib/ui/Popover.js.map +1 -1
  643. package/dist/lib/ui/RadioGroup.js +1 -1
  644. package/dist/lib/ui/RadioGroup.js.map +1 -1
  645. package/dist/lib/ui/Select.js +4 -4
  646. package/dist/lib/ui/Select.js.map +1 -1
  647. package/dist/lib/ui/Slider.js +1 -1
  648. package/dist/lib/ui/Slider.js.map +1 -1
  649. package/dist/lib/ui/Stepper.d.ts +3 -0
  650. package/dist/lib/ui/Stepper.js +7 -0
  651. package/dist/lib/ui/Stepper.js.map +1 -0
  652. package/dist/lib/ui/Switch.js +1 -1
  653. package/dist/lib/ui/Switch.js.map +1 -1
  654. package/dist/lib/ui/SyntaxHighlight.d.ts +12 -0
  655. package/dist/lib/ui/SyntaxHighlight.js +15 -0
  656. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  657. package/dist/lib/ui/Tabs.js +2 -2
  658. package/dist/lib/ui/Tabs.js.map +1 -1
  659. package/dist/lib/ui/Textarea.js +1 -1
  660. package/dist/lib/ui/Textarea.js.map +1 -1
  661. package/dist/lib/ui/Toggle.js +1 -1
  662. package/dist/lib/ui/Toggle.js.map +1 -1
  663. package/dist/lib/ui/Tooltip.d.ts +2 -1
  664. package/dist/lib/ui/Tooltip.js +2 -1
  665. package/dist/lib/ui/Tooltip.js.map +1 -1
  666. package/dist/lib/ui/util.d.ts +2 -0
  667. package/dist/lib/ui/util.js +3 -0
  668. package/dist/lib/ui/util.js.map +1 -0
  669. package/dist/lib/util/MdxComponents.d.ts +38 -21
  670. package/dist/lib/util/MdxComponents.js +21 -17
  671. package/dist/lib/util/MdxComponents.js.map +1 -1
  672. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  673. package/dist/lib/util/detectOS.d.ts +1 -0
  674. package/dist/lib/util/detectOS.js +11 -0
  675. package/dist/lib/util/detectOS.js.map +1 -0
  676. package/dist/lib/util/ensureArray.d.ts +1 -0
  677. package/dist/lib/util/ensureArray.js +2 -0
  678. package/dist/lib/util/ensureArray.js.map +1 -0
  679. package/dist/lib/util/humanFileSize.d.ts +6 -0
  680. package/dist/lib/util/humanFileSize.js +14 -0
  681. package/dist/lib/util/humanFileSize.js.map +1 -0
  682. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  683. package/dist/lib/util/humanFileSize.test.js +22 -0
  684. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  685. package/dist/lib/util/invariant.d.ts +6 -5
  686. package/dist/lib/util/invariant.js +1 -1
  687. package/dist/lib/util/invariant.js.map +1 -1
  688. package/dist/lib/util/joinPath.d.ts +3 -0
  689. package/dist/lib/util/joinPath.js +3 -0
  690. package/dist/lib/util/joinPath.js.map +1 -1
  691. package/dist/lib/util/joinUrl.d.ts +1 -0
  692. package/dist/lib/util/joinUrl.js +40 -0
  693. package/dist/lib/util/joinUrl.js.map +1 -0
  694. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  695. package/dist/lib/util/joinUrl.test.js +43 -0
  696. package/dist/lib/util/joinUrl.test.js.map +1 -0
  697. package/dist/lib/util/os.d.ts +2 -0
  698. package/dist/lib/util/os.js +21 -0
  699. package/dist/lib/util/os.js.map +1 -0
  700. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  701. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  702. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  703. package/dist/lib/util/traverse.d.ts +3 -0
  704. package/dist/lib/util/traverse.js +23 -0
  705. package/dist/lib/util/traverse.js.map +1 -0
  706. package/dist/lib/util/types.d.ts +7 -0
  707. package/dist/lib/util/types.js +2 -0
  708. package/dist/lib/util/types.js.map +1 -0
  709. package/dist/lib/util/url.d.ts +4 -0
  710. package/dist/lib/util/url.js +13 -0
  711. package/dist/lib/util/url.js.map +1 -0
  712. package/dist/lib/util/url.test.d.ts +1 -0
  713. package/dist/lib/util/url.test.js +26 -0
  714. package/dist/lib/util/url.test.js.map +1 -0
  715. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  716. package/dist/lib/util/useCopyToClipboard.js +11 -0
  717. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  718. package/dist/lib/util/useExposedProps.d.ts +8 -1
  719. package/dist/lib/util/useExposedProps.js +1 -1
  720. package/dist/lib/util/useExposedProps.js.map +1 -1
  721. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  722. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  723. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  724. package/dist/lib/util/useLatest.d.ts +1 -0
  725. package/dist/lib/util/useLatest.js +15 -0
  726. package/dist/lib/util/useLatest.js.map +1 -0
  727. package/dist/lib/util/useOnScreen.d.ts +5 -0
  728. package/dist/lib/util/useOnScreen.js +19 -0
  729. package/dist/lib/util/useOnScreen.js.map +1 -0
  730. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  731. package/dist/lib/util/useScrollToAnchor.js +43 -38
  732. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  733. package/dist/lib/util/useScrollToTop.js +7 -5
  734. package/dist/lib/util/useScrollToTop.js.map +1 -1
  735. package/dist/vite/api/SchemaManager.d.ts +36 -0
  736. package/dist/vite/api/SchemaManager.js +141 -0
  737. package/dist/vite/api/SchemaManager.js.map +1 -0
  738. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  739. package/dist/vite/api/SchemaManager.test.js +106 -0
  740. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  741. package/dist/vite/api/schema-codegen.d.ts +12 -0
  742. package/dist/vite/api/schema-codegen.js +116 -0
  743. package/dist/vite/api/schema-codegen.js.map +1 -0
  744. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  745. package/dist/vite/api/schema-codegen.test.js +395 -0
  746. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  747. package/dist/vite/build.js +58 -18
  748. package/dist/vite/build.js.map +1 -1
  749. package/dist/vite/config.d.ts +2 -10
  750. package/dist/vite/config.js +115 -112
  751. package/dist/vite/config.js.map +1 -1
  752. package/dist/vite/config.test.js +12 -6
  753. package/dist/vite/config.test.js.map +1 -1
  754. package/dist/vite/create-pagefind-index.d.ts +4 -0
  755. package/dist/vite/create-pagefind-index.js +12 -0
  756. package/dist/vite/create-pagefind-index.js.map +1 -0
  757. package/dist/vite/css/collect.d.ts +2 -0
  758. package/dist/vite/css/collect.js +27 -0
  759. package/dist/vite/css/collect.js.map +1 -0
  760. package/dist/vite/css/plugin.d.ts +4 -0
  761. package/dist/vite/css/plugin.js +91 -0
  762. package/dist/vite/css/plugin.js.map +1 -0
  763. package/dist/vite/dev-server.d.ts +5 -3
  764. package/dist/vite/dev-server.js +81 -22
  765. package/dist/vite/dev-server.js.map +1 -1
  766. package/dist/vite/error-handler.d.ts +1 -1
  767. package/dist/vite/error-handler.js +1 -1
  768. package/dist/vite/error-handler.js.map +1 -1
  769. package/dist/vite/html.d.ts +7 -3
  770. package/dist/vite/html.js +15 -11
  771. package/dist/vite/html.js.map +1 -1
  772. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  773. package/dist/vite/mdx/remark-last-modified.js +29 -0
  774. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  775. package/dist/vite/mdx/utils.d.ts +2 -0
  776. package/dist/vite/mdx/utils.js +31 -0
  777. package/dist/vite/mdx/utils.js.map +1 -0
  778. package/dist/vite/output.d.ts +15 -3
  779. package/dist/vite/output.js +46 -16
  780. package/dist/vite/output.js.map +1 -1
  781. package/dist/vite/plugin-api-keys.d.ts +1 -2
  782. package/dist/vite/plugin-api-keys.js +13 -7
  783. package/dist/vite/plugin-api-keys.js.map +1 -1
  784. package/dist/vite/plugin-api.d.ts +1 -2
  785. package/dist/vite/plugin-api.js +146 -32
  786. package/dist/vite/plugin-api.js.map +1 -1
  787. package/dist/vite/plugin-auth.d.ts +1 -2
  788. package/dist/vite/plugin-auth.js +10 -6
  789. package/dist/vite/plugin-auth.js.map +1 -1
  790. package/dist/vite/plugin-component.d.ts +1 -2
  791. package/dist/vite/plugin-component.js +23 -22
  792. package/dist/vite/plugin-component.js.map +1 -1
  793. package/dist/vite/plugin-config-reload.d.ts +3 -4
  794. package/dist/vite/plugin-config-reload.js +31 -23
  795. package/dist/vite/plugin-config-reload.js.map +1 -1
  796. package/dist/vite/plugin-config.d.ts +1 -2
  797. package/dist/vite/plugin-config.js +27 -2
  798. package/dist/vite/plugin-config.js.map +1 -1
  799. package/dist/vite/plugin-custom-pages.d.ts +1 -2
  800. package/dist/vite/plugin-custom-pages.js +7 -6
  801. package/dist/vite/plugin-custom-pages.js.map +1 -1
  802. package/dist/vite/plugin-docs.d.ts +2 -3
  803. package/dist/vite/plugin-docs.js +73 -46
  804. package/dist/vite/plugin-docs.js.map +1 -1
  805. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  806. package/dist/vite/plugin-frontmatter.js +13 -7
  807. package/dist/vite/plugin-frontmatter.js.map +1 -1
  808. package/dist/vite/plugin-mdx.d.ts +1 -8
  809. package/dist/vite/plugin-mdx.js +72 -26
  810. package/dist/vite/plugin-mdx.js.map +1 -1
  811. package/dist/vite/plugin-navigation.d.ts +4 -0
  812. package/dist/vite/plugin-navigation.js +64 -0
  813. package/dist/vite/plugin-navigation.js.map +1 -0
  814. package/dist/vite/plugin-redirect.d.ts +1 -2
  815. package/dist/vite/plugin-redirect.js +6 -5
  816. package/dist/vite/plugin-redirect.js.map +1 -1
  817. package/dist/vite/plugin-search.d.ts +1 -2
  818. package/dist/vite/plugin-search.js +8 -3
  819. package/dist/vite/plugin-search.js.map +1 -1
  820. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  821. package/dist/vite/plugin-shiki-register.js +39 -0
  822. package/dist/vite/plugin-shiki-register.js.map +1 -0
  823. package/dist/vite/plugin-theme.d.ts +8 -0
  824. package/dist/vite/plugin-theme.js +274 -0
  825. package/dist/vite/plugin-theme.js.map +1 -0
  826. package/dist/vite/plugin-theme.test.d.ts +1 -0
  827. package/dist/vite/plugin-theme.test.js +312 -0
  828. package/dist/vite/plugin-theme.test.js.map +1 -0
  829. package/dist/vite/plugin.d.ts +1 -3
  830. package/dist/vite/plugin.js +24 -21
  831. package/dist/vite/plugin.js.map +1 -1
  832. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  833. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  834. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  835. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  836. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  837. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  838. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  839. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  840. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  841. package/dist/vite/prerender/prerender.d.ts +15 -0
  842. package/dist/vite/prerender/prerender.js +109 -0
  843. package/dist/vite/prerender/prerender.js.map +1 -0
  844. package/dist/vite/prerender/worker.d.ts +13 -0
  845. package/dist/vite/prerender/worker.js +63 -0
  846. package/dist/vite/prerender/worker.js.map +1 -0
  847. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  848. package/dist/vite/remarkStaticGeneration.js +125 -0
  849. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  850. package/dist/vite/reporter.d.ts +3 -0
  851. package/dist/vite/reporter.js +33 -0
  852. package/dist/vite/reporter.js.map +1 -0
  853. package/dist/vite/shadcn-registry.d.ts +45 -0
  854. package/dist/vite/shadcn-registry.js +29 -0
  855. package/dist/vite/shadcn-registry.js.map +1 -0
  856. package/dist/vite/sitemap.d.ts +1 -1
  857. package/dist/vite/sitemap.js +2 -1
  858. package/dist/vite/sitemap.js.map +1 -1
  859. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  860. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  861. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  862. package/dist/zuplo/policy-types.d.ts +33 -0
  863. package/dist/zuplo/policy-types.js +8 -0
  864. package/dist/zuplo/policy-types.js.map +1 -0
  865. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  866. package/dist/zuplo/with-zuplo-processors.js +26 -0
  867. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  868. package/dist/zuplo/with-zuplo.d.ts +6 -0
  869. package/dist/zuplo/with-zuplo.js +10 -0
  870. package/dist/zuplo/with-zuplo.js.map +1 -0
  871. package/lib/Alert-De-0F8I9.js +161 -0
  872. package/lib/Alert-De-0F8I9.js.map +1 -0
  873. package/lib/Button-B3o-2Xdf.js +51 -0
  874. package/lib/Button-B3o-2Xdf.js.map +1 -0
  875. package/lib/Card-CMDQUPM4.js +61 -0
  876. package/lib/Card-CMDQUPM4.js.map +1 -0
  877. package/lib/ClientOnly-E7hGysn1.js +11 -0
  878. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  879. package/lib/CodeBlock-B-G0eKtw.js +85 -0
  880. package/lib/CodeBlock-B-G0eKtw.js.map +1 -0
  881. package/lib/Command-C9AC5cf-.js +140 -0
  882. package/lib/Command-C9AC5cf-.js.map +1 -0
  883. package/lib/Dialog-DMWw1doX.js +99 -0
  884. package/lib/Dialog-DMWw1doX.js.map +1 -0
  885. package/lib/Drawer-DJ05s2pH.js +1133 -0
  886. package/lib/Drawer-DJ05s2pH.js.map +1 -0
  887. package/lib/MdxPage-Cipn_ReM.js +110 -0
  888. package/lib/MdxPage-Cipn_ReM.js.map +1 -0
  889. package/lib/OAuthErrorPage-DpNmpL61.js +150 -0
  890. package/lib/OAuthErrorPage-DpNmpL61.js.map +1 -0
  891. package/lib/OasProvider-6hriUaZr.js +35 -0
  892. package/lib/OasProvider-6hriUaZr.js.map +1 -0
  893. package/lib/OperationList-o1tnXlAi.js +5167 -0
  894. package/lib/OperationList-o1tnXlAi.js.map +1 -0
  895. package/lib/Pagination-BtZ4LBGC.js +37 -0
  896. package/lib/Pagination-BtZ4LBGC.js.map +1 -0
  897. package/lib/RouteGuard-BxsRhHRt.js +738 -0
  898. package/lib/RouteGuard-BxsRhHRt.js.map +1 -0
  899. package/lib/SchemaList-XZWLQ9Iu.js +149 -0
  900. package/lib/SchemaList-XZWLQ9Iu.js.map +1 -0
  901. package/lib/SchemaView-CnCipUNH.js +366 -0
  902. package/lib/SchemaView-CnCipUNH.js.map +1 -0
  903. package/lib/SignUp-CEKqv066.js +56 -0
  904. package/lib/SignUp-CEKqv066.js.map +1 -0
  905. package/lib/Slot-DAyXieeZ.js +15726 -0
  906. package/lib/Slot-DAyXieeZ.js.map +1 -0
  907. package/lib/Spinner-mNLZ6awP.js +7 -0
  908. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  909. package/lib/SyntaxHighlight-BMKR4pl6.js +10306 -0
  910. package/lib/SyntaxHighlight-BMKR4pl6.js.map +1 -0
  911. package/lib/Toc-BKDRCQzU.js +92 -0
  912. package/lib/Toc-BKDRCQzU.js.map +1 -0
  913. package/lib/ZudokuContext-CLl5w57E.js +1278 -0
  914. package/lib/ZudokuContext-CLl5w57E.js.map +1 -0
  915. package/lib/chunk-QMGIS6GS-CEOk3lro.js +1839 -0
  916. package/lib/chunk-QMGIS6GS-CEOk3lro.js.map +1 -0
  917. package/lib/circular-NO6Ikm3k.js +14934 -0
  918. package/lib/circular-NO6Ikm3k.js.map +1 -0
  919. package/lib/clsx-OuTLNxxd.js +17 -0
  920. package/lib/clsx-OuTLNxxd.js.map +1 -0
  921. package/lib/cn-dYga0KKN.js +2731 -0
  922. package/lib/cn-dYga0KKN.js.map +1 -0
  923. package/lib/createServer-CSgplJuR.js +12505 -0
  924. package/lib/createServer-CSgplJuR.js.map +1 -0
  925. package/lib/errors-D036swsq.js +45 -0
  926. package/lib/errors-D036swsq.js.map +1 -0
  927. package/lib/hook-DbUCLQNg.js +247 -0
  928. package/lib/hook-DbUCLQNg.js.map +1 -0
  929. package/lib/index-BdJ_3lZe.js +3500 -0
  930. package/lib/index-BdJ_3lZe.js.map +1 -0
  931. package/lib/index-BkW9tJ6j.js +2094 -0
  932. package/lib/index-BkW9tJ6j.js.map +1 -0
  933. package/lib/index-Bm35Tkgf.js +107 -0
  934. package/lib/index-Bm35Tkgf.js.map +1 -0
  935. package/lib/index-BtBsh6LU.js +4081 -0
  936. package/lib/index-BtBsh6LU.js.map +1 -0
  937. package/lib/index-CrcNWbel.js +316 -0
  938. package/lib/index-CrcNWbel.js.map +1 -0
  939. package/lib/index-DI5SPFK9.js +36 -0
  940. package/lib/index-DI5SPFK9.js.map +1 -0
  941. package/lib/index-DmNq2fbN.js +4827 -0
  942. package/lib/index-DmNq2fbN.js.map +1 -0
  943. package/lib/index.esm-CpVp4hQq.js +1254 -0
  944. package/lib/index.esm-CpVp4hQq.js.map +1 -0
  945. package/lib/invariant-Bm-FVUQE.js +44 -0
  946. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  947. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  948. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  949. package/lib/processors/removeExtensions.js +11 -0
  950. package/lib/processors/removeExtensions.js.map +1 -0
  951. package/lib/processors/removeParameters.js +47 -0
  952. package/lib/processors/removeParameters.js.map +1 -0
  953. package/lib/processors/removePaths.js +28 -0
  954. package/lib/processors/removePaths.js.map +1 -0
  955. package/lib/processors/traverse.js +17 -0
  956. package/lib/processors/traverse.js.map +1 -0
  957. package/lib/ui/Accordion.js +2 -2
  958. package/lib/ui/Accordion.js.map +1 -1
  959. package/lib/ui/ActionButton.js +25 -0
  960. package/lib/ui/ActionButton.js.map +1 -0
  961. package/lib/ui/Alert.js +55 -39
  962. package/lib/ui/Alert.js.map +1 -1
  963. package/lib/ui/AlertDialog.js +2 -2
  964. package/lib/ui/AlertDialog.js.map +1 -1
  965. package/lib/ui/Badge.js +5 -4
  966. package/lib/ui/Badge.js.map +1 -1
  967. package/lib/ui/Breadcrumb.js +5 -5
  968. package/lib/ui/Breadcrumb.js.map +1 -1
  969. package/lib/ui/Button.js +22 -19
  970. package/lib/ui/Button.js.map +1 -1
  971. package/lib/ui/Callout.js +40 -20
  972. package/lib/ui/Callout.js.map +1 -1
  973. package/lib/ui/Card.js +3 -3
  974. package/lib/ui/Card.js.map +1 -1
  975. package/lib/ui/Carousel.js +552 -546
  976. package/lib/ui/Carousel.js.map +1 -1
  977. package/lib/ui/Checkbox.js +14 -13
  978. package/lib/ui/Checkbox.js.map +1 -1
  979. package/lib/ui/CodeBlock.js +9 -0
  980. package/lib/ui/CodeBlock.js.map +1 -0
  981. package/lib/ui/Command.js +116 -510
  982. package/lib/ui/Command.js.map +1 -1
  983. package/lib/ui/Dialog.js +41 -41
  984. package/lib/ui/Dialog.js.map +1 -1
  985. package/lib/ui/Drawer.js +14 -1150
  986. package/lib/ui/Drawer.js.map +1 -1
  987. package/lib/ui/DropdownMenu.js +35 -35
  988. package/lib/ui/DropdownMenu.js.map +1 -1
  989. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  990. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  991. package/lib/ui/Form.js +6 -6
  992. package/lib/ui/Form.js.map +1 -1
  993. package/lib/ui/HoverCard.js +6 -6
  994. package/lib/ui/HoverCard.js.map +1 -1
  995. package/lib/ui/Input.js +3 -3
  996. package/lib/ui/Input.js.map +1 -1
  997. package/lib/ui/Label.js +3 -3
  998. package/lib/ui/Label.js.map +1 -1
  999. package/lib/ui/Pagination.js +5 -5
  1000. package/lib/ui/Pagination.js.map +1 -1
  1001. package/lib/ui/Popover.js +3 -3
  1002. package/lib/ui/Popover.js.map +1 -1
  1003. package/lib/ui/Progress.js +2 -2
  1004. package/lib/ui/Progress.js.map +1 -1
  1005. package/lib/ui/RadioGroup.js +11 -11
  1006. package/lib/ui/RadioGroup.js.map +1 -1
  1007. package/lib/ui/ScrollArea.js +2 -2
  1008. package/lib/ui/ScrollArea.js.map +1 -1
  1009. package/lib/ui/Select.js +34 -34
  1010. package/lib/ui/Select.js.map +1 -1
  1011. package/lib/ui/Skeleton.js +2 -2
  1012. package/lib/ui/Skeleton.js.map +1 -1
  1013. package/lib/ui/Slider.js +6 -6
  1014. package/lib/ui/Slider.js.map +1 -1
  1015. package/lib/ui/Stepper.js +6 -0
  1016. package/lib/ui/Stepper.js.map +1 -0
  1017. package/lib/ui/Switch.js +6 -6
  1018. package/lib/ui/Switch.js.map +1 -1
  1019. package/lib/ui/SyntaxHighlight.js +11 -0
  1020. package/lib/ui/SyntaxHighlight.js.map +1 -0
  1021. package/lib/ui/Tabs.js +17 -17
  1022. package/lib/ui/Tabs.js.map +1 -1
  1023. package/lib/ui/Textarea.js +6 -6
  1024. package/lib/ui/Textarea.js.map +1 -1
  1025. package/lib/ui/Toggle.js +8 -8
  1026. package/lib/ui/Toggle.js.map +1 -1
  1027. package/lib/ui/ToggleGroup.js +2 -2
  1028. package/lib/ui/ToggleGroup.js.map +1 -1
  1029. package/lib/ui/Tooltip.js +15 -8
  1030. package/lib/ui/Tooltip.js.map +1 -1
  1031. package/lib/ui/util.js +6 -0
  1032. package/lib/ui/util.js.map +1 -0
  1033. package/lib/useExposedProps-KcgXHKeE.js +9 -0
  1034. package/lib/useExposedProps-KcgXHKeE.js.map +1 -0
  1035. package/lib/zudoku.auth-auth0.js +32 -30
  1036. package/lib/zudoku.auth-auth0.js.map +1 -1
  1037. package/lib/zudoku.auth-azureb2c.js +137 -0
  1038. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  1039. package/lib/zudoku.auth-clerk.js +108 -60
  1040. package/lib/zudoku.auth-clerk.js.map +1 -1
  1041. package/lib/zudoku.auth-openid.js +600 -623
  1042. package/lib/zudoku.auth-openid.js.map +1 -1
  1043. package/lib/zudoku.auth-supabase.js +97 -0
  1044. package/lib/zudoku.auth-supabase.js.map +1 -0
  1045. package/lib/zudoku.components.js +34 -1464
  1046. package/lib/zudoku.components.js.map +1 -1
  1047. package/lib/zudoku.hooks.js +28 -0
  1048. package/lib/zudoku.hooks.js.map +1 -0
  1049. package/lib/zudoku.icons.js +10 -0
  1050. package/lib/zudoku.icons.js.map +1 -1
  1051. package/lib/zudoku.plugin-api-catalog.js +118 -0
  1052. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  1053. package/lib/zudoku.plugin-api-keys.js +560 -204
  1054. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1055. package/lib/zudoku.plugin-custom-pages.js +12 -18
  1056. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1057. package/lib/zudoku.plugin-markdown.js +20 -93
  1058. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1059. package/lib/zudoku.plugin-openapi.js +8 -10
  1060. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1061. package/lib/zudoku.plugin-redirect.js +1 -1
  1062. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1063. package/lib/zudoku.plugin-search-inkeep.js +61 -36
  1064. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1065. package/lib/zudoku.plugin-search-pagefind.js +325 -0
  1066. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1067. package/lib/zudoku.plugins.js +15 -0
  1068. package/lib/zudoku.plugins.js.map +1 -0
  1069. package/package.json +187 -101
  1070. package/src/app/ZuploBuildConfig.ts +33 -0
  1071. package/src/app/defaultTheme.css +73 -0
  1072. package/src/app/demo-cdn.html +31 -31
  1073. package/src/app/demo.html +1 -1
  1074. package/src/app/demo.tsx +25 -11
  1075. package/src/app/entry.client.tsx +67 -3
  1076. package/src/app/entry.server.tsx +80 -65
  1077. package/src/app/env.ts +43 -0
  1078. package/src/app/font.geist.css +73 -0
  1079. package/src/app/main.css +177 -130
  1080. package/src/app/main.tsx +72 -50
  1081. package/src/app/sentry.ts +24 -0
  1082. package/src/app/standalone.tsx +8 -11
  1083. package/src/lib/MissingIcon.tsx +22 -0
  1084. package/src/lib/auth/issuer.test.ts +120 -0
  1085. package/src/lib/auth/issuer.ts +41 -0
  1086. package/src/lib/authentication/AuthenticationPlugin.tsx +8 -5
  1087. package/src/lib/authentication/authentication.ts +7 -8
  1088. package/src/lib/authentication/components/CallbackHandler.tsx +29 -12
  1089. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  1090. package/src/lib/authentication/components/SignIn.tsx +28 -2
  1091. package/src/lib/authentication/components/SignOut.tsx +3 -2
  1092. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1093. package/src/lib/authentication/errors.ts +27 -13
  1094. package/src/lib/authentication/hook.ts +15 -4
  1095. package/src/lib/authentication/providers/auth0.tsx +29 -19
  1096. package/src/lib/authentication/providers/azureb2c.tsx +201 -0
  1097. package/src/lib/authentication/providers/clerk.tsx +127 -53
  1098. package/src/lib/authentication/providers/openid.tsx +169 -88
  1099. package/src/lib/authentication/providers/supabase.tsx +150 -0
  1100. package/src/lib/authentication/state.ts +86 -25
  1101. package/src/lib/authentication/use-broadcast/LICENSE.md +9 -0
  1102. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1103. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1104. package/src/lib/components/AnchorLink.tsx +13 -8
  1105. package/src/lib/components/Autocomplete.tsx +114 -0
  1106. package/src/lib/components/Banner.tsx +3 -3
  1107. package/src/lib/components/Bootstrap.tsx +43 -16
  1108. package/src/lib/components/BuildCheck.tsx +75 -0
  1109. package/src/lib/components/CategoryHeading.tsx +4 -1
  1110. package/src/lib/components/ClientOnly.tsx +6 -3
  1111. package/src/lib/components/DeveloperHint.tsx +6 -1
  1112. package/src/lib/components/ErrorPage.tsx +3 -3
  1113. package/src/lib/components/Footer.tsx +136 -0
  1114. package/src/lib/components/Framed.tsx +51 -0
  1115. package/src/lib/components/Header.tsx +119 -80
  1116. package/src/lib/components/Heading.tsx +26 -18
  1117. package/src/lib/components/InlineCode.tsx +13 -16
  1118. package/src/lib/components/Layout.tsx +36 -60
  1119. package/src/lib/components/Main.tsx +51 -0
  1120. package/src/lib/components/Markdown.tsx +42 -30
  1121. package/src/lib/components/MobileTopNavigation.tsx +96 -32
  1122. package/src/lib/components/NotFoundPage.tsx +7 -6
  1123. package/src/lib/components/PageProgress.tsx +28 -0
  1124. package/src/lib/components/Pagination.tsx +45 -0
  1125. package/src/lib/components/PathRenderer.tsx +61 -0
  1126. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  1127. package/src/lib/components/ReactMarkdown.tsx +264 -0
  1128. package/src/lib/components/Search.tsx +18 -7
  1129. package/src/lib/components/Slot.test.tsx +465 -0
  1130. package/src/lib/components/Slot.tsx +64 -0
  1131. package/src/lib/components/StatusPage.tsx +96 -0
  1132. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1133. package/src/lib/components/TopNavigation.tsx +91 -61
  1134. package/src/lib/components/Typography.tsx +14 -0
  1135. package/src/lib/components/Zudoku.tsx +119 -0
  1136. package/src/lib/components/cache.ts +23 -0
  1137. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1138. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1139. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1140. package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
  1141. package/src/lib/components/context/ZudokuContext.ts +79 -38
  1142. package/src/lib/components/context/ZudokuProvider.tsx +4 -3
  1143. package/src/lib/components/index.ts +37 -13
  1144. package/src/lib/components/navigation/Navigation.tsx +50 -0
  1145. package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
  1146. package/src/lib/components/navigation/NavigationCategory.tsx +146 -0
  1147. package/src/lib/components/navigation/NavigationItem.tsx +159 -0
  1148. package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
  1149. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1150. package/src/lib/components/navigation/Toc.tsx +126 -0
  1151. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1152. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1153. package/src/lib/components/navigation/utils.ts +70 -29
  1154. package/src/lib/core/RouteGuard.tsx +96 -0
  1155. package/src/lib/core/ZudokuContext.ts +227 -0
  1156. package/src/lib/core/plugins.ts +55 -24
  1157. package/src/lib/errors/ErrorAlert.tsx +18 -18
  1158. package/src/lib/errors/RouterError.tsx +1 -1
  1159. package/src/lib/hooks/index.ts +16 -0
  1160. package/src/lib/hooks/useEvent.test.tsx +151 -0
  1161. package/src/lib/hooks/useEvent.ts +41 -0
  1162. package/src/lib/hooks/useHotkey.ts +70 -0
  1163. package/src/lib/icons.ts +1 -0
  1164. package/src/lib/oas/graphql/circular.ts +58 -0
  1165. package/src/lib/oas/graphql/index.ts +298 -104
  1166. package/src/lib/oas/parser/dereference/index.ts +10 -4
  1167. package/src/lib/oas/parser/index.ts +14 -30
  1168. package/src/lib/oas/parser/upgrade/index.ts +103 -38
  1169. package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
  1170. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1171. package/src/lib/plugins/api-keys/CreateApiKey.tsx +61 -45
  1172. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  1173. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +464 -116
  1174. package/src/lib/plugins/api-keys/index.tsx +141 -62
  1175. package/src/lib/plugins/custom-pages/index.tsx +22 -17
  1176. package/src/lib/plugins/markdown/MdxPage.tsx +111 -54
  1177. package/src/lib/plugins/markdown/index.tsx +33 -43
  1178. package/src/lib/plugins/openapi/CollapsibleCode.tsx +86 -0
  1179. package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
  1180. package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
  1181. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  1182. package/src/lib/plugins/openapi/OperationList.tsx +234 -72
  1183. package/src/lib/plugins/openapi/OperationListItem.tsx +123 -94
  1184. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  1185. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  1186. package/src/lib/plugins/openapi/ParameterListItem.tsx +84 -31
  1187. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +28 -3
  1188. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
  1189. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -59
  1190. package/src/lib/plugins/openapi/SchemaList.tsx +157 -0
  1191. package/src/lib/plugins/openapi/Sidecar.tsx +154 -172
  1192. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1193. package/src/lib/plugins/openapi/SidecarExamples.tsx +169 -0
  1194. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1195. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1196. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1197. package/src/lib/plugins/openapi/client/createServer.ts +8 -2
  1198. package/src/lib/plugins/openapi/client/useCreateQuery.ts +45 -0
  1199. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1200. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1201. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1202. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1203. package/src/lib/plugins/openapi/context.tsx +2 -2
  1204. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  1205. package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
  1206. package/src/lib/plugins/openapi/graphql/graphql.ts +388 -682
  1207. package/src/lib/plugins/openapi/index.tsx +161 -134
  1208. package/src/lib/plugins/openapi/interfaces.ts +59 -4
  1209. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  1210. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  1211. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +59 -0
  1212. package/src/lib/plugins/openapi/playground/Headers.tsx +284 -53
  1213. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -0
  1214. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -0
  1215. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  1216. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1217. package/src/lib/plugins/openapi/playground/PathParams.tsx +38 -64
  1218. package/src/lib/plugins/openapi/playground/Playground.tsx +405 -288
  1219. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -3
  1220. package/src/lib/plugins/openapi/playground/QueryParams.tsx +134 -90
  1221. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1222. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1223. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1224. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1225. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1226. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1227. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1228. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +115 -0
  1229. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +271 -0
  1230. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +102 -0
  1231. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1232. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1233. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  1234. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1235. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1236. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1237. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1238. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1239. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1240. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1241. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1242. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1243. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1244. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1245. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +159 -0
  1246. package/src/lib/plugins/openapi/schema/SchemaView.tsx +103 -141
  1247. package/src/lib/plugins/openapi/schema/utils.ts +33 -5
  1248. package/src/lib/plugins/openapi/state.ts +36 -0
  1249. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  1250. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +38 -0
  1251. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -44
  1252. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1253. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1254. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1255. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1256. package/src/lib/plugins/redirect/index.tsx +4 -4
  1257. package/src/lib/plugins/search-inkeep/index.tsx +83 -32
  1258. package/src/lib/plugins/search-inkeep/inkeep.ts +15 -23
  1259. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +165 -0
  1260. package/src/lib/plugins/search-pagefind/ResultList.tsx +114 -0
  1261. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1262. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1263. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1264. package/src/lib/shiki.ts +132 -0
  1265. package/src/lib/ui/ActionButton.tsx +30 -0
  1266. package/src/lib/ui/Alert.tsx +45 -39
  1267. package/src/lib/ui/Badge.tsx +3 -2
  1268. package/src/lib/ui/Button.tsx +12 -7
  1269. package/src/lib/ui/Callout.tsx +30 -10
  1270. package/src/lib/ui/Card.tsx +1 -1
  1271. package/src/lib/ui/Checkbox.tsx +2 -1
  1272. package/src/lib/ui/CodeBlock.tsx +88 -0
  1273. package/src/lib/ui/Command.tsx +47 -5
  1274. package/src/lib/ui/Dialog.tsx +11 -7
  1275. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1276. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  1277. package/src/lib/ui/HoverCard.tsx +1 -1
  1278. package/src/lib/ui/Input.tsx +2 -3
  1279. package/src/lib/ui/Popover.tsx +1 -1
  1280. package/src/lib/ui/RadioGroup.tsx +1 -1
  1281. package/src/lib/ui/Select.tsx +4 -4
  1282. package/src/lib/ui/Slider.tsx +1 -1
  1283. package/src/lib/ui/Stepper.tsx +8 -0
  1284. package/src/lib/ui/Switch.tsx +1 -1
  1285. package/src/lib/ui/SyntaxHighlight.tsx +35 -0
  1286. package/src/lib/ui/Tabs.tsx +2 -2
  1287. package/src/lib/ui/Textarea.tsx +1 -1
  1288. package/src/lib/ui/Toggle.tsx +1 -1
  1289. package/src/lib/ui/Tooltip.tsx +16 -1
  1290. package/src/lib/ui/util.tsx +3 -0
  1291. package/src/lib/util/MdxComponents.tsx +50 -25
  1292. package/src/lib/util/createVariantComponent.tsx +2 -2
  1293. package/src/lib/util/detectOS.ts +9 -0
  1294. package/src/lib/util/ensureArray.ts +3 -0
  1295. package/src/lib/util/humanFileSize.test.ts +24 -0
  1296. package/src/lib/util/humanFileSize.ts +16 -0
  1297. package/src/lib/util/invariant.ts +7 -5
  1298. package/src/lib/util/joinPath.tsx +3 -0
  1299. package/src/lib/util/joinUrl.test.ts +62 -0
  1300. package/src/lib/util/joinUrl.ts +57 -0
  1301. package/src/lib/util/os.ts +18 -0
  1302. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1303. package/src/lib/util/traverse.ts +34 -0
  1304. package/src/lib/util/types.ts +7 -0
  1305. package/src/lib/util/url.test.ts +51 -0
  1306. package/src/lib/util/url.ts +18 -0
  1307. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1308. package/src/lib/util/useExposedProps.tsx +13 -2
  1309. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  1310. package/src/lib/util/useLatest.ts +18 -0
  1311. package/src/lib/util/useOnScreen.ts +34 -0
  1312. package/src/lib/util/useScrollToAnchor.ts +49 -40
  1313. package/src/lib/util/useScrollToTop.ts +9 -4
  1314. package/src/shiki/langs/abap.js +1 -0
  1315. package/src/shiki/langs/actionscript-3.js +1 -0
  1316. package/src/shiki/langs/ada.js +1 -0
  1317. package/src/shiki/langs/angular-expression.js +1 -0
  1318. package/src/shiki/langs/angular-html.js +1 -0
  1319. package/src/shiki/langs/angular-inline-style.js +1 -0
  1320. package/src/shiki/langs/angular-inline-template.js +1 -0
  1321. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1322. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1323. package/src/shiki/langs/angular-template.js +1 -0
  1324. package/src/shiki/langs/angular-ts.js +1 -0
  1325. package/src/shiki/langs/apache.js +1 -0
  1326. package/src/shiki/langs/apex.js +1 -0
  1327. package/src/shiki/langs/apl.js +1 -0
  1328. package/src/shiki/langs/applescript.js +1 -0
  1329. package/src/shiki/langs/ara.js +1 -0
  1330. package/src/shiki/langs/asciidoc.js +1 -0
  1331. package/src/shiki/langs/asm.js +1 -0
  1332. package/src/shiki/langs/astro.js +1 -0
  1333. package/src/shiki/langs/awk.js +1 -0
  1334. package/src/shiki/langs/ballerina.js +1 -0
  1335. package/src/shiki/langs/bat.js +1 -0
  1336. package/src/shiki/langs/beancount.js +1 -0
  1337. package/src/shiki/langs/berry.js +1 -0
  1338. package/src/shiki/langs/bibtex.js +1 -0
  1339. package/src/shiki/langs/bicep.js +1 -0
  1340. package/src/shiki/langs/blade.js +1 -0
  1341. package/src/shiki/langs/bsl.js +1 -0
  1342. package/src/shiki/langs/c.js +1 -0
  1343. package/src/shiki/langs/cadence.js +1 -0
  1344. package/src/shiki/langs/cairo.js +1 -0
  1345. package/src/shiki/langs/clarity.js +1 -0
  1346. package/src/shiki/langs/clojure.js +1 -0
  1347. package/src/shiki/langs/cmake.js +1 -0
  1348. package/src/shiki/langs/cobol.js +1 -0
  1349. package/src/shiki/langs/codeowners.js +1 -0
  1350. package/src/shiki/langs/codeql.js +1 -0
  1351. package/src/shiki/langs/coffee.js +1 -0
  1352. package/src/shiki/langs/common-lisp.js +1 -0
  1353. package/src/shiki/langs/coq.js +1 -0
  1354. package/src/shiki/langs/cpp-macro.js +1 -0
  1355. package/src/shiki/langs/cpp.js +1 -0
  1356. package/src/shiki/langs/crystal.js +1 -0
  1357. package/src/shiki/langs/csharp.js +1 -0
  1358. package/src/shiki/langs/css.js +1 -0
  1359. package/src/shiki/langs/csv.js +1 -0
  1360. package/src/shiki/langs/cue.js +1 -0
  1361. package/src/shiki/langs/cypher.js +1 -0
  1362. package/src/shiki/langs/d.js +1 -0
  1363. package/src/shiki/langs/dart.js +1 -0
  1364. package/src/shiki/langs/dax.js +1 -0
  1365. package/src/shiki/langs/desktop.js +1 -0
  1366. package/src/shiki/langs/diff.js +1 -0
  1367. package/src/shiki/langs/docker.js +1 -0
  1368. package/src/shiki/langs/dotenv.js +1 -0
  1369. package/src/shiki/langs/dream-maker.js +1 -0
  1370. package/src/shiki/langs/edge.js +1 -0
  1371. package/src/shiki/langs/elixir.js +1 -0
  1372. package/src/shiki/langs/elm.js +1 -0
  1373. package/src/shiki/langs/emacs-lisp.js +1 -0
  1374. package/src/shiki/langs/erb.js +1 -0
  1375. package/src/shiki/langs/erlang.js +1 -0
  1376. package/src/shiki/langs/es-tag-css.js +1 -0
  1377. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1378. package/src/shiki/langs/es-tag-html.js +1 -0
  1379. package/src/shiki/langs/es-tag-sql.js +1 -0
  1380. package/src/shiki/langs/es-tag-xml.js +1 -0
  1381. package/src/shiki/langs/fennel.js +1 -0
  1382. package/src/shiki/langs/fish.js +1 -0
  1383. package/src/shiki/langs/fluent.js +1 -0
  1384. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1385. package/src/shiki/langs/fortran-free-form.js +1 -0
  1386. package/src/shiki/langs/fsharp.js +1 -0
  1387. package/src/shiki/langs/gdresource.js +1 -0
  1388. package/src/shiki/langs/gdscript.js +1 -0
  1389. package/src/shiki/langs/gdshader.js +1 -0
  1390. package/src/shiki/langs/genie.js +1 -0
  1391. package/src/shiki/langs/gherkin.js +1 -0
  1392. package/src/shiki/langs/git-commit.js +1 -0
  1393. package/src/shiki/langs/git-rebase.js +1 -0
  1394. package/src/shiki/langs/gleam.js +1 -0
  1395. package/src/shiki/langs/glimmer-js.js +1 -0
  1396. package/src/shiki/langs/glimmer-ts.js +1 -0
  1397. package/src/shiki/langs/glsl.js +1 -0
  1398. package/src/shiki/langs/gnuplot.js +1 -0
  1399. package/src/shiki/langs/go.js +1 -0
  1400. package/src/shiki/langs/graphql.js +1 -0
  1401. package/src/shiki/langs/groovy.js +1 -0
  1402. package/src/shiki/langs/hack.js +1 -0
  1403. package/src/shiki/langs/haml.js +1 -0
  1404. package/src/shiki/langs/handlebars.js +1 -0
  1405. package/src/shiki/langs/haskell.js +1 -0
  1406. package/src/shiki/langs/haxe.js +1 -0
  1407. package/src/shiki/langs/hcl.js +1 -0
  1408. package/src/shiki/langs/hjson.js +1 -0
  1409. package/src/shiki/langs/hlsl.js +1 -0
  1410. package/src/shiki/langs/html-derivative.js +1 -0
  1411. package/src/shiki/langs/html.js +1 -0
  1412. package/src/shiki/langs/http.js +1 -0
  1413. package/src/shiki/langs/hxml.js +1 -0
  1414. package/src/shiki/langs/hy.js +1 -0
  1415. package/src/shiki/langs/imba.js +1 -0
  1416. package/src/shiki/langs/ini.js +1 -0
  1417. package/src/shiki/langs/java.js +1 -0
  1418. package/src/shiki/langs/javascript.js +1 -0
  1419. package/src/shiki/langs/jinja-html.js +1 -0
  1420. package/src/shiki/langs/jinja.js +1 -0
  1421. package/src/shiki/langs/jison.js +1 -0
  1422. package/src/shiki/langs/json.js +1 -0
  1423. package/src/shiki/langs/json5.js +1 -0
  1424. package/src/shiki/langs/jsonc.js +1 -0
  1425. package/src/shiki/langs/jsonl.js +1 -0
  1426. package/src/shiki/langs/jsonnet.js +1 -0
  1427. package/src/shiki/langs/jssm.js +1 -0
  1428. package/src/shiki/langs/jsx.js +1 -0
  1429. package/src/shiki/langs/julia.js +1 -0
  1430. package/src/shiki/langs/kotlin.js +1 -0
  1431. package/src/shiki/langs/kusto.js +1 -0
  1432. package/src/shiki/langs/latex.js +1 -0
  1433. package/src/shiki/langs/lean.js +1 -0
  1434. package/src/shiki/langs/less.js +1 -0
  1435. package/src/shiki/langs/liquid.js +1 -0
  1436. package/src/shiki/langs/llvm.js +1 -0
  1437. package/src/shiki/langs/log.js +1 -0
  1438. package/src/shiki/langs/logo.js +1 -0
  1439. package/src/shiki/langs/lua.js +1 -0
  1440. package/src/shiki/langs/luau.js +1 -0
  1441. package/src/shiki/langs/make.js +1 -0
  1442. package/src/shiki/langs/markdown-vue.js +1 -0
  1443. package/src/shiki/langs/markdown.js +1 -0
  1444. package/src/shiki/langs/marko.js +1 -0
  1445. package/src/shiki/langs/matlab.js +1 -0
  1446. package/src/shiki/langs/mdc.js +1 -0
  1447. package/src/shiki/langs/mdx.js +1 -0
  1448. package/src/shiki/langs/mermaid.js +1 -0
  1449. package/src/shiki/langs/mipsasm.js +1 -0
  1450. package/src/shiki/langs/mojo.js +1 -0
  1451. package/src/shiki/langs/move.js +1 -0
  1452. package/src/shiki/langs/narrat.js +1 -0
  1453. package/src/shiki/langs/nextflow.js +1 -0
  1454. package/src/shiki/langs/nginx.js +1 -0
  1455. package/src/shiki/langs/nim.js +1 -0
  1456. package/src/shiki/langs/nix.js +1 -0
  1457. package/src/shiki/langs/nushell.js +1 -0
  1458. package/src/shiki/langs/objective-c.js +1 -0
  1459. package/src/shiki/langs/objective-cpp.js +1 -0
  1460. package/src/shiki/langs/ocaml.js +1 -0
  1461. package/src/shiki/langs/pascal.js +1 -0
  1462. package/src/shiki/langs/perl.js +1 -0
  1463. package/src/shiki/langs/php.js +1 -0
  1464. package/src/shiki/langs/plsql.js +1 -0
  1465. package/src/shiki/langs/po.js +1 -0
  1466. package/src/shiki/langs/polar.js +1 -0
  1467. package/src/shiki/langs/postcss.js +1 -0
  1468. package/src/shiki/langs/powerquery.js +1 -0
  1469. package/src/shiki/langs/powershell.js +1 -0
  1470. package/src/shiki/langs/prisma.js +1 -0
  1471. package/src/shiki/langs/prolog.js +1 -0
  1472. package/src/shiki/langs/proto.js +1 -0
  1473. package/src/shiki/langs/pug.js +1 -0
  1474. package/src/shiki/langs/puppet.js +1 -0
  1475. package/src/shiki/langs/purescript.js +1 -0
  1476. package/src/shiki/langs/python.js +1 -0
  1477. package/src/shiki/langs/qml.js +1 -0
  1478. package/src/shiki/langs/qmldir.js +1 -0
  1479. package/src/shiki/langs/qss.js +1 -0
  1480. package/src/shiki/langs/r.js +1 -0
  1481. package/src/shiki/langs/racket.js +1 -0
  1482. package/src/shiki/langs/raku.js +1 -0
  1483. package/src/shiki/langs/razor.js +1 -0
  1484. package/src/shiki/langs/reg.js +1 -0
  1485. package/src/shiki/langs/regexp.js +1 -0
  1486. package/src/shiki/langs/rel.js +1 -0
  1487. package/src/shiki/langs/riscv.js +1 -0
  1488. package/src/shiki/langs/rst.js +1 -0
  1489. package/src/shiki/langs/ruby.js +1 -0
  1490. package/src/shiki/langs/rust.js +1 -0
  1491. package/src/shiki/langs/sas.js +1 -0
  1492. package/src/shiki/langs/sass.js +1 -0
  1493. package/src/shiki/langs/scala.js +1 -0
  1494. package/src/shiki/langs/scheme.js +1 -0
  1495. package/src/shiki/langs/scss.js +1 -0
  1496. package/src/shiki/langs/sdbl.js +1 -0
  1497. package/src/shiki/langs/shaderlab.js +1 -0
  1498. package/src/shiki/langs/shellscript.js +1 -0
  1499. package/src/shiki/langs/shellsession.js +1 -0
  1500. package/src/shiki/langs/smalltalk.js +1 -0
  1501. package/src/shiki/langs/solidity.js +1 -0
  1502. package/src/shiki/langs/soy.js +1 -0
  1503. package/src/shiki/langs/sparql.js +1 -0
  1504. package/src/shiki/langs/splunk.js +1 -0
  1505. package/src/shiki/langs/sql.js +1 -0
  1506. package/src/shiki/langs/ssh-config.js +1 -0
  1507. package/src/shiki/langs/stata.js +1 -0
  1508. package/src/shiki/langs/stylus.js +1 -0
  1509. package/src/shiki/langs/svelte.js +1 -0
  1510. package/src/shiki/langs/swift.js +1 -0
  1511. package/src/shiki/langs/system-verilog.js +1 -0
  1512. package/src/shiki/langs/systemd.js +1 -0
  1513. package/src/shiki/langs/talonscript.js +1 -0
  1514. package/src/shiki/langs/tasl.js +1 -0
  1515. package/src/shiki/langs/tcl.js +1 -0
  1516. package/src/shiki/langs/templ.js +1 -0
  1517. package/src/shiki/langs/terraform.js +1 -0
  1518. package/src/shiki/langs/tex.js +1 -0
  1519. package/src/shiki/langs/toml.js +1 -0
  1520. package/src/shiki/langs/ts-tags.js +1 -0
  1521. package/src/shiki/langs/tsv.js +1 -0
  1522. package/src/shiki/langs/tsx.js +1 -0
  1523. package/src/shiki/langs/turtle.js +1 -0
  1524. package/src/shiki/langs/twig.js +1 -0
  1525. package/src/shiki/langs/typescript.js +1 -0
  1526. package/src/shiki/langs/typespec.js +1 -0
  1527. package/src/shiki/langs/typst.js +1 -0
  1528. package/src/shiki/langs/v.js +1 -0
  1529. package/src/shiki/langs/vala.js +1 -0
  1530. package/src/shiki/langs/vb.js +1 -0
  1531. package/src/shiki/langs/verilog.js +1 -0
  1532. package/src/shiki/langs/vhdl.js +1 -0
  1533. package/src/shiki/langs/viml.js +1 -0
  1534. package/src/shiki/langs/vue-directives.js +1 -0
  1535. package/src/shiki/langs/vue-html.js +1 -0
  1536. package/src/shiki/langs/vue-interpolations.js +1 -0
  1537. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1538. package/src/shiki/langs/vue.js +1 -0
  1539. package/src/shiki/langs/vyper.js +1 -0
  1540. package/src/shiki/langs/wasm.js +1 -0
  1541. package/src/shiki/langs/wenyan.js +1 -0
  1542. package/src/shiki/langs/wgsl.js +1 -0
  1543. package/src/shiki/langs/wikitext.js +1 -0
  1544. package/src/shiki/langs/wit.js +1 -0
  1545. package/src/shiki/langs/wolfram.js +1 -0
  1546. package/src/shiki/langs/xml.js +1 -0
  1547. package/src/shiki/langs/xsl.js +1 -0
  1548. package/src/shiki/langs/yaml.js +1 -0
  1549. package/src/shiki/langs/zenscript.js +1 -0
  1550. package/src/shiki/langs/zig.js +1 -0
  1551. package/src/shiki/themes/andromeeda.js +1 -0
  1552. package/src/shiki/themes/aurora-x.js +1 -0
  1553. package/src/shiki/themes/ayu-dark.js +1 -0
  1554. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1555. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1556. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1557. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1558. package/src/shiki/themes/dark-plus.js +1 -0
  1559. package/src/shiki/themes/dracula-soft.js +1 -0
  1560. package/src/shiki/themes/dracula.js +1 -0
  1561. package/src/shiki/themes/everforest-dark.js +1 -0
  1562. package/src/shiki/themes/everforest-light.js +1 -0
  1563. package/src/shiki/themes/github-dark-default.js +1 -0
  1564. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1565. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1566. package/src/shiki/themes/github-dark.js +1 -0
  1567. package/src/shiki/themes/github-light-default.js +1 -0
  1568. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1569. package/src/shiki/themes/github-light.js +1 -0
  1570. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1571. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1572. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1573. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1574. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1575. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1576. package/src/shiki/themes/houston.js +1 -0
  1577. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1578. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1579. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1580. package/src/shiki/themes/laserwave.js +1 -0
  1581. package/src/shiki/themes/light-plus.js +1 -0
  1582. package/src/shiki/themes/material-theme-darker.js +1 -0
  1583. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1584. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1585. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1586. package/src/shiki/themes/material-theme.js +1 -0
  1587. package/src/shiki/themes/min-dark.js +1 -0
  1588. package/src/shiki/themes/min-light.js +1 -0
  1589. package/src/shiki/themes/monokai.js +1 -0
  1590. package/src/shiki/themes/night-owl.js +1 -0
  1591. package/src/shiki/themes/nord.js +1 -0
  1592. package/src/shiki/themes/one-dark-pro.js +1 -0
  1593. package/src/shiki/themes/one-light.js +1 -0
  1594. package/src/shiki/themes/plastic.js +1 -0
  1595. package/src/shiki/themes/poimandres.js +1 -0
  1596. package/src/shiki/themes/red.js +1 -0
  1597. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1598. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1599. package/src/shiki/themes/rose-pine.js +1 -0
  1600. package/src/shiki/themes/slack-dark.js +1 -0
  1601. package/src/shiki/themes/slack-ochin.js +1 -0
  1602. package/src/shiki/themes/snazzy-light.js +1 -0
  1603. package/src/shiki/themes/solarized-dark.js +1 -0
  1604. package/src/shiki/themes/solarized-light.js +1 -0
  1605. package/src/shiki/themes/synthwave-84.js +1 -0
  1606. package/src/shiki/themes/tokyo-night.js +1 -0
  1607. package/src/shiki/themes/vesper.js +1 -0
  1608. package/src/shiki/themes/vitesse-black.js +1 -0
  1609. package/src/shiki/themes/vitesse-dark.js +1 -0
  1610. package/src/shiki/themes/vitesse-light.js +1 -0
  1611. package/LICENSE.md +0 -9
  1612. package/client.d.ts +0 -1
  1613. package/dist/app/tailwind.d.ts +0 -3
  1614. package/dist/app/tailwind.js +0 -65
  1615. package/dist/app/tailwind.js.map +0 -1
  1616. package/dist/config/validators/InputSidebarSchema.d.ts +0 -201
  1617. package/dist/config/validators/InputSidebarSchema.js +0 -52
  1618. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1619. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  1620. package/dist/config/validators/SidebarSchema.js +0 -118
  1621. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1622. package/dist/lib/components/DevPortal.d.ts +0 -7
  1623. package/dist/lib/components/DevPortal.js +0 -54
  1624. package/dist/lib/components/DevPortal.js.map +0 -1
  1625. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1626. package/dist/lib/components/SlotletProvider.js +0 -18
  1627. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1628. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1629. package/dist/lib/components/SyntaxHighlight.js +0 -53
  1630. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1631. package/dist/lib/components/context/PluginSystem.js +0 -2
  1632. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1633. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  1634. package/dist/lib/components/context/ThemeContext.js +0 -7
  1635. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  1636. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  1637. package/dist/lib/components/context/ThemeProvider.js +0 -23
  1638. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  1639. package/dist/lib/components/navigation/Sidebar.d.ts +0 -1
  1640. package/dist/lib/components/navigation/Sidebar.js +0 -14
  1641. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1642. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -23
  1643. package/dist/lib/components/navigation/SidebarBadge.js +0 -24
  1644. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1645. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1646. package/dist/lib/components/navigation/SidebarCategory.js +0 -50
  1647. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1648. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -12
  1649. package/dist/lib/components/navigation/SidebarItem.js +0 -48
  1650. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1651. package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -6
  1652. package/dist/lib/components/navigation/SidebarWrapper.js +0 -6
  1653. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1654. package/dist/lib/core/DevPortalContext.d.ts +0 -75
  1655. package/dist/lib/core/DevPortalContext.js +0 -49
  1656. package/dist/lib/core/DevPortalContext.js.map +0 -1
  1657. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  1658. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  1659. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  1660. package/dist/lib/plugins/markdown/Toc.js +0 -48
  1661. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1662. package/dist/lib/plugins/markdown/resolver.d.ts +0 -38
  1663. package/dist/lib/plugins/markdown/resolver.js +0 -75
  1664. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1665. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1666. package/dist/lib/plugins/openapi/Route.js +0 -8
  1667. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1668. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  1669. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  1670. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  1671. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  1672. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  1673. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  1674. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  1675. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  1676. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  1677. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  1678. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1679. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1680. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1681. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1682. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1683. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1684. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1685. package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
  1686. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  1687. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  1688. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  1689. package/dist/lib/plugins/openapi-worker.js +0 -2
  1690. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  1691. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  1692. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  1693. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  1694. package/dist/lib/themeToggle.d.ts +0 -1
  1695. package/dist/lib/themeToggle.js +0 -7
  1696. package/dist/lib/themeToggle.js.map +0 -1
  1697. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  1698. package/dist/lib/util/createWaitForNotify.js +0 -15
  1699. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  1700. package/dist/vite/plugin-custom-css.d.ts +0 -6
  1701. package/dist/vite/plugin-custom-css.js +0 -55
  1702. package/dist/vite/plugin-custom-css.js.map +0 -1
  1703. package/dist/vite/plugin-docs.test.js +0 -30
  1704. package/dist/vite/plugin-docs.test.js.map +0 -1
  1705. package/dist/vite/plugin-html-transform.d.ts +0 -2
  1706. package/dist/vite/plugin-html-transform.js +0 -15
  1707. package/dist/vite/plugin-html-transform.js.map +0 -1
  1708. package/dist/vite/plugin-sidebar.d.ts +0 -3
  1709. package/dist/vite/plugin-sidebar.js +0 -47
  1710. package/dist/vite/plugin-sidebar.js.map +0 -1
  1711. package/dist/vite/prerender.d.ts +0 -21
  1712. package/dist/vite/prerender.js +0 -88
  1713. package/dist/vite/prerender.js.map +0 -1
  1714. package/lib/AnchorLink-BbB2q-jx.js +0 -705
  1715. package/lib/AnchorLink-BbB2q-jx.js.map +0 -1
  1716. package/lib/AuthenticationPlugin-C9BHGXlE.js +0 -55
  1717. package/lib/AuthenticationPlugin-C9BHGXlE.js.map +0 -1
  1718. package/lib/CategoryHeading-Bb9dqxD3.js +0 -10
  1719. package/lib/CategoryHeading-Bb9dqxD3.js.map +0 -1
  1720. package/lib/ClientOnly-CVN6leDu.js +0 -11
  1721. package/lib/ClientOnly-CVN6leDu.js.map +0 -1
  1722. package/lib/DeveloperHint-DHdLXGHA.js +0 -16
  1723. package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
  1724. package/lib/Dialog-k70Qfukb.js +0 -67
  1725. package/lib/Dialog-k70Qfukb.js.map +0 -1
  1726. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  1727. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  1728. package/lib/Markdown-BDcCAWwm.js +0 -18059
  1729. package/lib/Markdown-BDcCAWwm.js.map +0 -1
  1730. package/lib/MdxPage-DKMH_t0f.js +0 -174
  1731. package/lib/MdxPage-DKMH_t0f.js.map +0 -1
  1732. package/lib/OperationList-Tj7ubW_t.js +0 -604
  1733. package/lib/OperationList-Tj7ubW_t.js.map +0 -1
  1734. package/lib/Route-C3DGB6OS.js +0 -13
  1735. package/lib/Route-C3DGB6OS.js.map +0 -1
  1736. package/lib/Select-Bagt3Bme.js +0 -223
  1737. package/lib/Select-Bagt3Bme.js.map +0 -1
  1738. package/lib/SlotletProvider-Da7eFgd2.js +0 -241
  1739. package/lib/SlotletProvider-Da7eFgd2.js.map +0 -1
  1740. package/lib/Spinner-C6zroowC.js +0 -40
  1741. package/lib/Spinner-C6zroowC.js.map +0 -1
  1742. package/lib/StaggeredRender-DDHSzQKE.js +0 -17
  1743. package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
  1744. package/lib/ZudokuContext-BKXGJTmu.js +0 -1222
  1745. package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
  1746. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  1747. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  1748. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1749. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1750. package/lib/assets/index-B_Jk_Yzp.js +0 -4820
  1751. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  1752. package/lib/assets/worker-Bf8vjASY.js +0 -18197
  1753. package/lib/assets/worker-Bf8vjASY.js.map +0 -1
  1754. package/lib/cn-BmFQLtkS.js +0 -2279
  1755. package/lib/cn-BmFQLtkS.js.map +0 -1
  1756. package/lib/hook-sn0zMTkE.js +0 -229
  1757. package/lib/hook-sn0zMTkE.js.map +0 -1
  1758. package/lib/index-AjWCJNGC.js +0 -5690
  1759. package/lib/index-AjWCJNGC.js.map +0 -1
  1760. package/lib/index-Bn6Lc9tq.js +0 -9
  1761. package/lib/index-Bn6Lc9tq.js.map +0 -1
  1762. package/lib/index-BuAyrJe3.js +0 -46
  1763. package/lib/index-BuAyrJe3.js.map +0 -1
  1764. package/lib/index-CRo94sKK.js +0 -1783
  1765. package/lib/index-CRo94sKK.js.map +0 -1
  1766. package/lib/index-CkwDvuPt.js +0 -4820
  1767. package/lib/index-CkwDvuPt.js.map +0 -1
  1768. package/lib/index-LNp6rxyU.js +0 -2094
  1769. package/lib/index-LNp6rxyU.js.map +0 -1
  1770. package/lib/index.esm-C5mr_sKO.js +0 -1193
  1771. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  1772. package/lib/invariant-Caa8-XvF.js +0 -26
  1773. package/lib/invariant-Caa8-XvF.js.map +0 -1
  1774. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1775. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1776. package/lib/prism-bash.min-DadFsM4Z.js +0 -7
  1777. package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
  1778. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1779. package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
  1780. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1781. package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
  1782. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1783. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1784. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1785. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1786. package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
  1787. package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
  1788. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1789. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1790. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1791. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1792. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1793. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1794. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1795. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1796. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1797. package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
  1798. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1799. package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
  1800. package/lib/router-BsfSoK2j.js +0 -3024
  1801. package/lib/router-BsfSoK2j.js.map +0 -1
  1802. package/lib/state-CsuHT8ZO.js +0 -183
  1803. package/lib/state-CsuHT8ZO.js.map +0 -1
  1804. package/lib/urql-core-KJnLL26g.js +0 -1455
  1805. package/lib/urql-core-KJnLL26g.js.map +0 -1
  1806. package/lib/useExposedProps-ChOIUaS4.js +0 -9
  1807. package/lib/useExposedProps-ChOIUaS4.js.map +0 -1
  1808. package/lib/zudoku.openapi-worker.js +0 -16341
  1809. package/lib/zudoku.openapi-worker.js.map +0 -1
  1810. package/src/app/tailwind.ts +0 -68
  1811. package/src/lib/components/DevPortal.tsx +0 -111
  1812. package/src/lib/components/SlotletProvider.tsx +0 -55
  1813. package/src/lib/components/SyntaxHighlight.tsx +0 -126
  1814. package/src/lib/components/context/PluginSystem.ts +0 -0
  1815. package/src/lib/components/context/ThemeContext.tsx +0 -8
  1816. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  1817. package/src/lib/components/navigation/Sidebar.tsx +0 -39
  1818. package/src/lib/components/navigation/SidebarBadge.tsx +0 -43
  1819. package/src/lib/components/navigation/SidebarCategory.tsx +0 -137
  1820. package/src/lib/components/navigation/SidebarItem.tsx +0 -127
  1821. package/src/lib/components/navigation/SidebarWrapper.tsx +0 -26
  1822. package/src/lib/core/DevPortalContext.ts +0 -136
  1823. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  1824. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  1825. package/src/lib/plugins/markdown/resolver.ts +0 -92
  1826. package/src/lib/plugins/openapi/Route.tsx +0 -20
  1827. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  1828. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  1829. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  1830. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  1831. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  1832. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  1833. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  1834. package/src/lib/plugins/openapi-worker.ts +0 -1
  1835. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1836. package/src/lib/themeToggle.ts +0 -7
  1837. package/src/lib/util/createWaitForNotify.ts +0 -18
  1838. /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
  1839. /package/dist/{lib/plugins/openapi/client/worker.d.ts → config/validators/validate.test.d.ts} +0 -0
  1840. /package/dist/{vite/plugin-docs.test.d.ts → lib/auth/issuer.test.d.ts} +0 -0
  1841. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
@@ -1,1783 +0,0 @@
1
- import * as n from "react";
2
- import * as Bt from "react-dom";
3
- import { i as m, j as G, g as be, w as C, a as Re, m as we, A as de, p as fe, s as T, b as X, d as Mt, c as Ce, e as jt, I as Ht, f as qe, h as Se, k as _e, l as Q, n as Ge, o as Xe, q as Qe, r as Ze, t as et, u as tt, v as rt, x as nt, y as ot, E as at, z as Kt } from "./router-BsfSoK2j.js";
4
- /**
5
- * React Router v6.27.0
6
- *
7
- * Copyright (c) Remix Software Inc.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE.md file in the root directory of this source tree.
11
- *
12
- * @license MIT
13
- */
14
- function I() {
15
- return I = Object.assign ? Object.assign.bind() : function(e) {
16
- for (var t = 1; t < arguments.length; t++) {
17
- var r = arguments[t];
18
- for (var o in r)
19
- Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
20
- }
21
- return e;
22
- }, I.apply(this, arguments);
23
- }
24
- const U = /* @__PURE__ */ n.createContext(null);
25
- process.env.NODE_ENV !== "production" && (U.displayName = "DataRouter");
26
- const B = /* @__PURE__ */ n.createContext(null);
27
- process.env.NODE_ENV !== "production" && (B.displayName = "DataRouterState");
28
- const Z = /* @__PURE__ */ n.createContext(null);
29
- process.env.NODE_ENV !== "production" && (Z.displayName = "Await");
30
- const S = /* @__PURE__ */ n.createContext(null);
31
- process.env.NODE_ENV !== "production" && (S.displayName = "Navigation");
32
- const M = /* @__PURE__ */ n.createContext(null);
33
- process.env.NODE_ENV !== "production" && (M.displayName = "Location");
34
- const _ = /* @__PURE__ */ n.createContext({
35
- outlet: null,
36
- matches: [],
37
- isDataRoute: !1
38
- });
39
- process.env.NODE_ENV !== "production" && (_.displayName = "Route");
40
- const xe = /* @__PURE__ */ n.createContext(null);
41
- process.env.NODE_ENV !== "production" && (xe.displayName = "RouteError");
42
- function De(e, t) {
43
- let {
44
- relative: r
45
- } = t === void 0 ? {} : t;
46
- V() || (process.env.NODE_ENV !== "production" ? m(
47
- !1,
48
- // TODO: This error is probably because they somehow have 2 versions of the
49
- // router loaded. We can help them understand how to avoid that.
50
- "useHref() may be used only in the context of a <Router> component."
51
- ) : m(!1));
52
- let {
53
- basename: o,
54
- navigator: a
55
- } = n.useContext(S), {
56
- hash: l,
57
- pathname: i,
58
- search: u
59
- } = Y(e, {
60
- relative: r
61
- }), f = i;
62
- return o !== "/" && (f = i === "/" ? o : G([o, i])), a.createHref({
63
- pathname: f,
64
- search: u,
65
- hash: l
66
- });
67
- }
68
- function V() {
69
- return n.useContext(M) != null;
70
- }
71
- function L() {
72
- return V() || (process.env.NODE_ENV !== "production" ? m(
73
- !1,
74
- // TODO: This error is probably because they somehow have 2 versions of the
75
- // router loaded. We can help them understand how to avoid that.
76
- "useLocation() may be used only in the context of a <Router> component."
77
- ) : m(!1)), n.useContext(M).location;
78
- }
79
- function it() {
80
- return n.useContext(M).navigationType;
81
- }
82
- function lt(e) {
83
- V() || (process.env.NODE_ENV !== "production" ? m(
84
- !1,
85
- // TODO: This error is probably because they somehow have 2 versions of the
86
- // router loaded. We can help them understand how to avoid that.
87
- "useMatch() may be used only in the context of a <Router> component."
88
- ) : m(!1));
89
- let {
90
- pathname: t
91
- } = L();
92
- return n.useMemo(() => X(e, Mt(t)), [t, e]);
93
- }
94
- const st = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
95
- function ut(e) {
96
- n.useContext(S).static || n.useLayoutEffect(e);
97
- }
98
- function te() {
99
- let {
100
- isDataRoute: e
101
- } = n.useContext(_);
102
- return e ? Xt() : zt();
103
- }
104
- function zt() {
105
- V() || (process.env.NODE_ENV !== "production" ? m(
106
- !1,
107
- // TODO: This error is probably because they somehow have 2 versions of the
108
- // router loaded. We can help them understand how to avoid that.
109
- "useNavigate() may be used only in the context of a <Router> component."
110
- ) : m(!1));
111
- let e = n.useContext(U), {
112
- basename: t,
113
- future: r,
114
- navigator: o
115
- } = n.useContext(S), {
116
- matches: a
117
- } = n.useContext(_), {
118
- pathname: l
119
- } = L(), i = JSON.stringify(be(a, r.v7_relativeSplatPath)), u = n.useRef(!1);
120
- return ut(() => {
121
- u.current = !0;
122
- }), n.useCallback(function(s, c) {
123
- if (c === void 0 && (c = {}), process.env.NODE_ENV !== "production" && C(u.current, st), !u.current) return;
124
- if (typeof s == "number") {
125
- o.go(s);
126
- return;
127
- }
128
- let d = Re(s, JSON.parse(i), l, c.relative === "path");
129
- e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t : G([t, d.pathname])), (c.replace ? o.replace : o.push)(d, c.state, c);
130
- }, [t, o, i, l, e]);
131
- }
132
- const ct = /* @__PURE__ */ n.createContext(null);
133
- function dt() {
134
- return n.useContext(ct);
135
- }
136
- function Oe(e) {
137
- let t = n.useContext(_).outlet;
138
- return t && /* @__PURE__ */ n.createElement(ct.Provider, {
139
- value: e
140
- }, t);
141
- }
142
- function ft() {
143
- let {
144
- matches: e
145
- } = n.useContext(_), t = e[e.length - 1];
146
- return t ? t.params : {};
147
- }
148
- function Y(e, t) {
149
- let {
150
- relative: r
151
- } = t === void 0 ? {} : t, {
152
- future: o
153
- } = n.useContext(S), {
154
- matches: a
155
- } = n.useContext(_), {
156
- pathname: l
157
- } = L(), i = JSON.stringify(be(a, o.v7_relativeSplatPath));
158
- return n.useMemo(() => Re(e, JSON.parse(i), l, r === "path"), [e, i, l, r]);
159
- }
160
- function Pe(e, t) {
161
- return pe(e, t);
162
- }
163
- function pe(e, t, r, o) {
164
- V() || (process.env.NODE_ENV !== "production" ? m(
165
- !1,
166
- // TODO: This error is probably because they somehow have 2 versions of the
167
- // router loaded. We can help them understand how to avoid that.
168
- "useRoutes() may be used only in the context of a <Router> component."
169
- ) : m(!1));
170
- let {
171
- navigator: a
172
- } = n.useContext(S), {
173
- matches: l
174
- } = n.useContext(_), i = l[l.length - 1], u = i ? i.params : {}, f = i ? i.pathname : "/", s = i ? i.pathnameBase : "/", c = i && i.route;
175
- if (process.env.NODE_ENV !== "production") {
176
- let h = c && c.path || "";
177
- gt(f, !c || h.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + f + '" (under <Route path="' + h + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
178
-
179
- ` + ('Please change the parent <Route path="' + h + '"> to <Route ') + ('path="' + (h === "/" ? "*" : h + "/*") + '">.'));
180
- }
181
- let d = L(), p;
182
- if (t) {
183
- var v;
184
- let h = typeof t == "string" ? fe(t) : t;
185
- s === "/" || (v = h.pathname) != null && v.startsWith(s) || (process.env.NODE_ENV !== "production" ? m(!1, "When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was " + ('matched by all parent routes. The current pathname base is "' + s + '" ') + ('but pathname "' + h.pathname + '" was given in the `location` prop.')) : m(!1)), p = h;
186
- } else
187
- p = d;
188
- let g = p.pathname || "/", N = g;
189
- if (s !== "/") {
190
- let h = s.replace(/^\//, "").split("/");
191
- N = "/" + g.replace(/^\//, "").split("/").slice(h.length).join("/");
192
- }
193
- let y = we(e, {
194
- pathname: N
195
- });
196
- process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && C(c || y != null, 'No routes matched location "' + p.pathname + p.search + p.hash + '" '), process.env.NODE_ENV !== "production" && C(y == null || y[y.length - 1].route.element !== void 0 || y[y.length - 1].route.Component !== void 0 || y[y.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + p.pathname + p.search + p.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));
197
- let w = pt(y && y.map((h) => Object.assign({}, h, {
198
- params: Object.assign({}, u, h.params),
199
- pathname: G([
200
- s,
201
- // Re-encode pathnames that were decoded inside matchRoutes
202
- a.encodeLocation ? a.encodeLocation(h.pathname).pathname : h.pathname
203
- ]),
204
- pathnameBase: h.pathnameBase === "/" ? s : G([
205
- s,
206
- // Re-encode pathnames that were decoded inside matchRoutes
207
- a.encodeLocation ? a.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
208
- ])
209
- })), l, r, o);
210
- return t && w ? /* @__PURE__ */ n.createElement(M.Provider, {
211
- value: {
212
- location: I({
213
- pathname: "/",
214
- search: "",
215
- hash: "",
216
- state: null,
217
- key: "default"
218
- }, p),
219
- navigationType: de.Pop
220
- }
221
- }, w) : w;
222
- }
223
- function Wt() {
224
- let e = ke(), t = Ce(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, o = "rgba(200,200,200, 0.5)", a = {
225
- padding: "0.5rem",
226
- backgroundColor: o
227
- }, l = {
228
- padding: "2px 4px",
229
- backgroundColor: o
230
- }, i = null;
231
- return process.env.NODE_ENV !== "production" && (console.error("Error handled by React Router default ErrorBoundary:", e), i = /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ n.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ n.createElement("code", {
232
- style: l
233
- }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ n.createElement("code", {
234
- style: l
235
- }, "errorElement"), " prop on your route."))), /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ n.createElement("h3", {
236
- style: {
237
- fontStyle: "italic"
238
- }
239
- }, t), r ? /* @__PURE__ */ n.createElement("pre", {
240
- style: a
241
- }, r) : null, i);
242
- }
243
- const Yt = /* @__PURE__ */ n.createElement(Wt, null);
244
- class $t extends n.Component {
245
- constructor(t) {
246
- super(t), this.state = {
247
- location: t.location,
248
- revalidation: t.revalidation,
249
- error: t.error
250
- };
251
- }
252
- static getDerivedStateFromError(t) {
253
- return {
254
- error: t
255
- };
256
- }
257
- static getDerivedStateFromProps(t, r) {
258
- return r.location !== t.location || r.revalidation !== "idle" && t.revalidation === "idle" ? {
259
- error: t.error,
260
- location: t.location,
261
- revalidation: t.revalidation
262
- } : {
263
- error: t.error !== void 0 ? t.error : r.error,
264
- location: r.location,
265
- revalidation: t.revalidation || r.revalidation
266
- };
267
- }
268
- componentDidCatch(t, r) {
269
- console.error("React Router caught the following error during render", t, r);
270
- }
271
- render() {
272
- return this.state.error !== void 0 ? /* @__PURE__ */ n.createElement(_.Provider, {
273
- value: this.props.routeContext
274
- }, /* @__PURE__ */ n.createElement(xe.Provider, {
275
- value: this.state.error,
276
- children: this.props.component
277
- })) : this.props.children;
278
- }
279
- }
280
- function Jt(e) {
281
- let {
282
- routeContext: t,
283
- match: r,
284
- children: o
285
- } = e, a = n.useContext(U);
286
- return a && a.static && a.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ n.createElement(_.Provider, {
287
- value: t
288
- }, o);
289
- }
290
- function pt(e, t, r, o) {
291
- var a;
292
- if (t === void 0 && (t = []), r === void 0 && (r = null), o === void 0 && (o = null), e == null) {
293
- var l;
294
- if (!r)
295
- return null;
296
- if (r.errors)
297
- e = r.matches;
298
- else if ((l = o) != null && l.v7_partialHydration && t.length === 0 && !r.initialized && r.matches.length > 0)
299
- e = r.matches;
300
- else
301
- return null;
302
- }
303
- let i = e, u = (a = r) == null ? void 0 : a.errors;
304
- if (u != null) {
305
- let c = i.findIndex((d) => d.route.id && (u == null ? void 0 : u[d.route.id]) !== void 0);
306
- c >= 0 || (process.env.NODE_ENV !== "production" ? m(!1, "Could not find a matching route for errors on route IDs: " + Object.keys(u).join(",")) : m(!1)), i = i.slice(0, Math.min(i.length, c + 1));
307
- }
308
- let f = !1, s = -1;
309
- if (r && o && o.v7_partialHydration)
310
- for (let c = 0; c < i.length; c++) {
311
- let d = i[c];
312
- if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (s = c), d.route.id) {
313
- let {
314
- loaderData: p,
315
- errors: v
316
- } = r, g = d.route.loader && p[d.route.id] === void 0 && (!v || v[d.route.id] === void 0);
317
- if (d.route.lazy || g) {
318
- f = !0, s >= 0 ? i = i.slice(0, s + 1) : i = [i[0]];
319
- break;
320
- }
321
- }
322
- }
323
- return i.reduceRight((c, d, p) => {
324
- let v, g = !1, N = null, y = null;
325
- r && (v = u && d.route.id ? u[d.route.id] : void 0, N = d.route.errorElement || Yt, f && (s < 0 && p === 0 ? (gt("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), g = !0, y = null) : s === p && (g = !0, y = d.route.hydrateFallbackElement || null)));
326
- let w = t.concat(i.slice(0, p + 1)), h = () => {
327
- let E;
328
- return v ? E = N : g ? E = y : d.route.Component ? E = /* @__PURE__ */ n.createElement(d.route.Component, null) : d.route.element ? E = d.route.element : E = c, /* @__PURE__ */ n.createElement(Jt, {
329
- match: d,
330
- routeContext: {
331
- outlet: c,
332
- matches: w,
333
- isDataRoute: r != null
334
- },
335
- children: E
336
- });
337
- };
338
- return r && (d.route.ErrorBoundary || d.route.errorElement || p === 0) ? /* @__PURE__ */ n.createElement($t, {
339
- location: r.location,
340
- revalidation: r.revalidation,
341
- component: N,
342
- error: v,
343
- children: h(),
344
- routeContext: {
345
- outlet: null,
346
- matches: w,
347
- isDataRoute: !0
348
- }
349
- }) : h();
350
- }, null);
351
- }
352
- var he = /* @__PURE__ */ function(e) {
353
- return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
354
- }(he || {}), O = /* @__PURE__ */ function(e) {
355
- return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
356
- }(O || {});
357
- function Le(e) {
358
- return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
359
- }
360
- function Te(e) {
361
- let t = n.useContext(U);
362
- return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
363
- }
364
- function j(e) {
365
- let t = n.useContext(B);
366
- return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
367
- }
368
- function qt(e) {
369
- let t = n.useContext(_);
370
- return t || (process.env.NODE_ENV !== "production" ? m(!1, Le(e)) : m(!1)), t;
371
- }
372
- function re(e) {
373
- let t = qt(e), r = t.matches[t.matches.length - 1];
374
- return r.route.id || (process.env.NODE_ENV !== "production" ? m(!1, e + ' can only be used on routes that contain a unique "id"') : m(!1)), r.route.id;
375
- }
376
- function Fe() {
377
- return re(O.UseRouteId);
378
- }
379
- function Ue() {
380
- return j(O.UseNavigation).navigation;
381
- }
382
- function ht() {
383
- let e = Te(he.UseRevalidator), t = j(O.UseRevalidator);
384
- return n.useMemo(() => ({
385
- revalidate: e.router.revalidate,
386
- state: t.revalidation
387
- }), [e.router.revalidate, t.revalidation]);
388
- }
389
- function Ve() {
390
- let {
391
- matches: e,
392
- loaderData: t
393
- } = j(O.UseMatches);
394
- return n.useMemo(() => e.map((r) => jt(r, t)), [e, t]);
395
- }
396
- function mt() {
397
- let e = j(O.UseLoaderData), t = re(O.UseLoaderData);
398
- if (e.errors && e.errors[t] != null) {
399
- console.error("You cannot `useLoaderData` in an errorElement (routeId: " + t + ")");
400
- return;
401
- }
402
- return e.loaderData[t];
403
- }
404
- function vt(e) {
405
- return j(O.UseRouteLoaderData).loaderData[e];
406
- }
407
- function Et() {
408
- let e = j(O.UseActionData), t = re(O.UseLoaderData);
409
- return e.actionData ? e.actionData[t] : void 0;
410
- }
411
- function ke() {
412
- var e;
413
- let t = n.useContext(xe), r = j(O.UseRouteError), o = re(O.UseRouteError);
414
- return t !== void 0 ? t : (e = r.errors) == null ? void 0 : e[o];
415
- }
416
- function Ie() {
417
- let e = n.useContext(Z);
418
- return e == null ? void 0 : e._data;
419
- }
420
- function yt() {
421
- let e = n.useContext(Z);
422
- return e == null ? void 0 : e._error;
423
- }
424
- let Gt = 0;
425
- function Ae(e) {
426
- let {
427
- router: t,
428
- basename: r
429
- } = Te(he.UseBlocker), o = j(O.UseBlocker), [a, l] = n.useState(""), i = n.useCallback((u) => {
430
- if (typeof e != "function")
431
- return !!e;
432
- if (r === "/")
433
- return e(u);
434
- let {
435
- currentLocation: f,
436
- nextLocation: s,
437
- historyAction: c
438
- } = u;
439
- return e({
440
- currentLocation: I({}, f, {
441
- pathname: T(f.pathname, r) || f.pathname
442
- }),
443
- nextLocation: I({}, s, {
444
- pathname: T(s.pathname, r) || s.pathname
445
- }),
446
- historyAction: c
447
- });
448
- }, [r, e]);
449
- return n.useEffect(() => {
450
- let u = String(++Gt);
451
- return l(u), () => t.deleteBlocker(u);
452
- }, [t]), n.useEffect(() => {
453
- a !== "" && t.getBlocker(a, i);
454
- }, [t, a, i]), a && o.blockers.has(a) ? o.blockers.get(a) : Ht;
455
- }
456
- function Xt() {
457
- let {
458
- router: e
459
- } = Te(he.UseNavigateStable), t = re(O.UseNavigateStable), r = n.useRef(!1);
460
- return ut(() => {
461
- r.current = !0;
462
- }), n.useCallback(function(a, l) {
463
- l === void 0 && (l = {}), process.env.NODE_ENV !== "production" && C(r.current, st), r.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, I({
464
- fromRouteId: t
465
- }, l)));
466
- }, [e, t]);
467
- }
468
- const We = {};
469
- function gt(e, t, r) {
470
- !t && !We[e] && (We[e] = !0, process.env.NODE_ENV !== "production" && C(!1, r));
471
- }
472
- const Qt = "startTransition", ue = n[Qt];
473
- function Zt(e) {
474
- let {
475
- fallbackElement: t,
476
- router: r,
477
- future: o
478
- } = e, [a, l] = n.useState(r.state), {
479
- v7_startTransition: i
480
- } = o || {}, u = n.useCallback((d) => {
481
- i && ue ? ue(() => l(d)) : l(d);
482
- }, [l, i]);
483
- n.useLayoutEffect(() => r.subscribe(u), [r, u]), n.useEffect(() => {
484
- process.env.NODE_ENV !== "production" && C(t == null || !r.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
485
- }, []);
486
- let f = n.useMemo(() => ({
487
- createHref: r.createHref,
488
- encodeLocation: r.encodeLocation,
489
- go: (d) => r.navigate(d),
490
- push: (d, p, v) => r.navigate(d, {
491
- state: p,
492
- preventScrollReset: v == null ? void 0 : v.preventScrollReset
493
- }),
494
- replace: (d, p, v) => r.navigate(d, {
495
- replace: !0,
496
- state: p,
497
- preventScrollReset: v == null ? void 0 : v.preventScrollReset
498
- })
499
- }), [r]), s = r.basename || "/", c = n.useMemo(() => ({
500
- router: r,
501
- navigator: f,
502
- static: !1,
503
- basename: s
504
- }), [r, f, s]);
505
- return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(U.Provider, {
506
- value: c
507
- }, /* @__PURE__ */ n.createElement(B.Provider, {
508
- value: a
509
- }, /* @__PURE__ */ n.createElement(H, {
510
- basename: s,
511
- location: a.location,
512
- navigationType: a.historyAction,
513
- navigator: f,
514
- future: {
515
- v7_relativeSplatPath: r.future.v7_relativeSplatPath
516
- }
517
- }, a.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ n.createElement(er, {
518
- routes: r.routes,
519
- future: r.future,
520
- state: a
521
- }) : t))), null);
522
- }
523
- function er(e) {
524
- let {
525
- routes: t,
526
- future: r,
527
- state: o
528
- } = e;
529
- return pe(t, void 0, o, r);
530
- }
531
- function Nt(e) {
532
- let {
533
- basename: t,
534
- children: r,
535
- initialEntries: o,
536
- initialIndex: a,
537
- future: l
538
- } = e, i = n.useRef();
539
- i.current == null && (i.current = qe({
540
- initialEntries: o,
541
- initialIndex: a,
542
- v5Compat: !0
543
- }));
544
- let u = i.current, [f, s] = n.useState({
545
- action: u.action,
546
- location: u.location
547
- }), {
548
- v7_startTransition: c
549
- } = l || {}, d = n.useCallback((p) => {
550
- c && ue ? ue(() => s(p)) : s(p);
551
- }, [s, c]);
552
- return n.useLayoutEffect(() => u.listen(d), [u, d]), /* @__PURE__ */ n.createElement(H, {
553
- basename: t,
554
- children: r,
555
- location: f.location,
556
- navigationType: f.action,
557
- navigator: u,
558
- future: l
559
- });
560
- }
561
- function bt(e) {
562
- let {
563
- to: t,
564
- replace: r,
565
- state: o,
566
- relative: a
567
- } = e;
568
- V() || (process.env.NODE_ENV !== "production" ? m(
569
- !1,
570
- // TODO: This error is probably because they somehow have 2 versions of
571
- // the router loaded. We can help them understand how to avoid that.
572
- "<Navigate> may be used only in the context of a <Router> component."
573
- ) : m(!1));
574
- let {
575
- future: l,
576
- static: i
577
- } = n.useContext(S);
578
- process.env.NODE_ENV !== "production" && C(!i, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
579
- let {
580
- matches: u
581
- } = n.useContext(_), {
582
- pathname: f
583
- } = L(), s = te(), c = Re(t, be(u, l.v7_relativeSplatPath), f, a === "path"), d = JSON.stringify(c);
584
- return n.useEffect(() => s(JSON.parse(d), {
585
- replace: r,
586
- state: o,
587
- relative: a
588
- }), [s, d, a, r, o]), null;
589
- }
590
- function Rt(e) {
591
- return Oe(e.context);
592
- }
593
- function Be(e) {
594
- process.env.NODE_ENV !== "production" ? m(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.") : m(!1);
595
- }
596
- function H(e) {
597
- let {
598
- basename: t = "/",
599
- children: r = null,
600
- location: o,
601
- navigationType: a = de.Pop,
602
- navigator: l,
603
- static: i = !1,
604
- future: u
605
- } = e;
606
- V() && (process.env.NODE_ENV !== "production" ? m(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : m(!1));
607
- let f = t.replace(/^\/*/, "/"), s = n.useMemo(() => ({
608
- basename: f,
609
- navigator: l,
610
- static: i,
611
- future: I({
612
- v7_relativeSplatPath: !1
613
- }, u)
614
- }), [f, u, l, i]);
615
- typeof o == "string" && (o = fe(o));
616
- let {
617
- pathname: c = "/",
618
- search: d = "",
619
- hash: p = "",
620
- state: v = null,
621
- key: g = "default"
622
- } = o, N = n.useMemo(() => {
623
- let y = T(c, f);
624
- return y == null ? null : {
625
- location: {
626
- pathname: y,
627
- search: d,
628
- hash: p,
629
- state: v,
630
- key: g
631
- },
632
- navigationType: a
633
- };
634
- }, [f, c, d, p, v, g, a]);
635
- return process.env.NODE_ENV !== "production" && C(N != null, '<Router basename="' + f + '"> is not able to match the URL ' + ('"' + c + d + p + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), N == null ? null : /* @__PURE__ */ n.createElement(S.Provider, {
636
- value: s
637
- }, /* @__PURE__ */ n.createElement(M.Provider, {
638
- children: r,
639
- value: N
640
- }));
641
- }
642
- function wt(e) {
643
- let {
644
- children: t,
645
- location: r
646
- } = e;
647
- return Pe(W(t), r);
648
- }
649
- function Ct(e) {
650
- let {
651
- children: t,
652
- errorElement: r,
653
- resolve: o
654
- } = e;
655
- return /* @__PURE__ */ n.createElement(rr, {
656
- resolve: o,
657
- errorElement: r
658
- }, /* @__PURE__ */ n.createElement(nr, null, t));
659
- }
660
- var P = /* @__PURE__ */ function(e) {
661
- return e[e.pending = 0] = "pending", e[e.success = 1] = "success", e[e.error = 2] = "error", e;
662
- }(P || {});
663
- const tr = new Promise(() => {
664
- });
665
- class rr extends n.Component {
666
- constructor(t) {
667
- super(t), this.state = {
668
- error: null
669
- };
670
- }
671
- static getDerivedStateFromError(t) {
672
- return {
673
- error: t
674
- };
675
- }
676
- componentDidCatch(t, r) {
677
- console.error("<Await> caught the following error during render", t, r);
678
- }
679
- render() {
680
- let {
681
- children: t,
682
- errorElement: r,
683
- resolve: o
684
- } = this.props, a = null, l = P.pending;
685
- if (!(o instanceof Promise))
686
- l = P.success, a = Promise.resolve(), Object.defineProperty(a, "_tracked", {
687
- get: () => !0
688
- }), Object.defineProperty(a, "_data", {
689
- get: () => o
690
- });
691
- else if (this.state.error) {
692
- l = P.error;
693
- let i = this.state.error;
694
- a = Promise.reject().catch(() => {
695
- }), Object.defineProperty(a, "_tracked", {
696
- get: () => !0
697
- }), Object.defineProperty(a, "_error", {
698
- get: () => i
699
- });
700
- } else o._tracked ? (a = o, l = "_error" in a ? P.error : "_data" in a ? P.success : P.pending) : (l = P.pending, Object.defineProperty(o, "_tracked", {
701
- get: () => !0
702
- }), a = o.then((i) => Object.defineProperty(o, "_data", {
703
- get: () => i
704
- }), (i) => Object.defineProperty(o, "_error", {
705
- get: () => i
706
- })));
707
- if (l === P.error && a._error instanceof Se)
708
- throw tr;
709
- if (l === P.error && !r)
710
- throw a._error;
711
- if (l === P.error)
712
- return /* @__PURE__ */ n.createElement(Z.Provider, {
713
- value: a,
714
- children: r
715
- });
716
- if (l === P.success)
717
- return /* @__PURE__ */ n.createElement(Z.Provider, {
718
- value: a,
719
- children: t
720
- });
721
- throw a;
722
- }
723
- }
724
- function nr(e) {
725
- let {
726
- children: t
727
- } = e, r = Ie(), o = typeof t == "function" ? t(r) : t;
728
- return /* @__PURE__ */ n.createElement(n.Fragment, null, o);
729
- }
730
- function W(e, t) {
731
- t === void 0 && (t = []);
732
- let r = [];
733
- return n.Children.forEach(e, (o, a) => {
734
- if (!/* @__PURE__ */ n.isValidElement(o))
735
- return;
736
- let l = [...t, a];
737
- if (o.type === n.Fragment) {
738
- r.push.apply(r, W(o.props.children, l));
739
- return;
740
- }
741
- o.type !== Be && (process.env.NODE_ENV !== "production" ? m(!1, "[" + (typeof o.type == "string" ? o.type : o.type.name) + "] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>") : m(!1)), !o.props.index || !o.props.children || (process.env.NODE_ENV !== "production" ? m(!1, "An index route cannot have child routes.") : m(!1));
742
- let i = {
743
- id: o.props.id || l.join("-"),
744
- caseSensitive: o.props.caseSensitive,
745
- element: o.props.element,
746
- Component: o.props.Component,
747
- index: o.props.index,
748
- path: o.props.path,
749
- loader: o.props.loader,
750
- action: o.props.action,
751
- errorElement: o.props.errorElement,
752
- ErrorBoundary: o.props.ErrorBoundary,
753
- hasErrorBoundary: o.props.ErrorBoundary != null || o.props.errorElement != null,
754
- shouldRevalidate: o.props.shouldRevalidate,
755
- handle: o.props.handle,
756
- lazy: o.props.lazy
757
- };
758
- o.props.children && (i.children = W(o.props.children, l)), r.push(i);
759
- }), r;
760
- }
761
- function St(e) {
762
- return pt(e);
763
- }
764
- function me(e) {
765
- let t = {
766
- // Note: this check also occurs in createRoutesFromChildren so update
767
- // there if you change this -- please and thank you!
768
- hasErrorBoundary: e.ErrorBoundary != null || e.errorElement != null
769
- };
770
- return e.Component && (process.env.NODE_ENV !== "production" && e.element && process.env.NODE_ENV !== "production" && C(!1, "You should not include both `Component` and `element` on your route - `Component` will be used."), Object.assign(t, {
771
- element: /* @__PURE__ */ n.createElement(e.Component),
772
- Component: void 0
773
- })), e.HydrateFallback && (process.env.NODE_ENV !== "production" && e.hydrateFallbackElement && process.env.NODE_ENV !== "production" && C(!1, "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."), Object.assign(t, {
774
- hydrateFallbackElement: /* @__PURE__ */ n.createElement(e.HydrateFallback),
775
- HydrateFallback: void 0
776
- })), e.ErrorBoundary && (process.env.NODE_ENV !== "production" && e.errorElement && process.env.NODE_ENV !== "production" && C(!1, "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."), Object.assign(t, {
777
- errorElement: /* @__PURE__ */ n.createElement(e.ErrorBoundary),
778
- ErrorBoundary: void 0
779
- })), t;
780
- }
781
- function _t(e, t) {
782
- return _e({
783
- basename: t == null ? void 0 : t.basename,
784
- future: I({}, t == null ? void 0 : t.future, {
785
- v7_prependBasename: !0
786
- }),
787
- history: qe({
788
- initialEntries: t == null ? void 0 : t.initialEntries,
789
- initialIndex: t == null ? void 0 : t.initialIndex
790
- }),
791
- hydrationData: t == null ? void 0 : t.hydrationData,
792
- routes: e,
793
- mapRouteProperties: me,
794
- dataStrategy: t == null ? void 0 : t.dataStrategy,
795
- patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation
796
- }).initialize();
797
- }
798
- const jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
799
- __proto__: null,
800
- AbortedDeferredError: Se,
801
- Await: Ct,
802
- MemoryRouter: Nt,
803
- Navigate: bt,
804
- get NavigationType() {
805
- return de;
806
- },
807
- Outlet: Rt,
808
- Route: Be,
809
- Router: H,
810
- RouterProvider: Zt,
811
- Routes: wt,
812
- UNSAFE_DataRouterContext: U,
813
- UNSAFE_DataRouterStateContext: B,
814
- UNSAFE_LocationContext: M,
815
- UNSAFE_NavigationContext: S,
816
- UNSAFE_RouteContext: _,
817
- UNSAFE_mapRouteProperties: me,
818
- UNSAFE_useRouteId: Fe,
819
- UNSAFE_useRoutesImpl: pe,
820
- createMemoryRouter: _t,
821
- createPath: Q,
822
- createRoutesFromChildren: W,
823
- createRoutesFromElements: W,
824
- defer: Ge,
825
- generatePath: Xe,
826
- isRouteErrorResponse: Ce,
827
- json: Qe,
828
- matchPath: X,
829
- matchRoutes: we,
830
- parsePath: fe,
831
- redirect: Ze,
832
- redirectDocument: et,
833
- renderMatches: St,
834
- replace: tt,
835
- resolvePath: rt,
836
- useActionData: Et,
837
- useAsyncError: yt,
838
- useAsyncValue: Ie,
839
- useBlocker: Ae,
840
- useHref: De,
841
- useInRouterContext: V,
842
- useLoaderData: mt,
843
- useLocation: L,
844
- useMatch: lt,
845
- useMatches: Ve,
846
- useNavigate: te,
847
- useNavigation: Ue,
848
- useNavigationType: it,
849
- useOutlet: Oe,
850
- useOutletContext: dt,
851
- useParams: ft,
852
- useResolvedPath: Y,
853
- useRevalidator: ht,
854
- useRouteError: ke,
855
- useRouteLoaderData: vt,
856
- useRoutes: Pe
857
- }, Symbol.toStringTag, { value: "Module" }));
858
- /**
859
- * React Router DOM v6.27.0
860
- *
861
- * Copyright (c) Remix Software Inc.
862
- *
863
- * This source code is licensed under the MIT license found in the
864
- * LICENSE.md file in the root directory of this source tree.
865
- *
866
- * @license MIT
867
- */
868
- function D() {
869
- return D = Object.assign ? Object.assign.bind() : function(e) {
870
- for (var t = 1; t < arguments.length; t++) {
871
- var r = arguments[t];
872
- for (var o in r)
873
- Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
874
- }
875
- return e;
876
- }, D.apply(this, arguments);
877
- }
878
- function Me(e, t) {
879
- if (e == null) return {};
880
- var r = {}, o = Object.keys(e), a, l;
881
- for (l = 0; l < o.length; l++)
882
- a = o[l], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
883
- return r;
884
- }
885
- const le = "get", se = "application/x-www-form-urlencoded";
886
- function ve(e) {
887
- return e != null && typeof e.tagName == "string";
888
- }
889
- function or(e) {
890
- return ve(e) && e.tagName.toLowerCase() === "button";
891
- }
892
- function ar(e) {
893
- return ve(e) && e.tagName.toLowerCase() === "form";
894
- }
895
- function ir(e) {
896
- return ve(e) && e.tagName.toLowerCase() === "input";
897
- }
898
- function lr(e) {
899
- return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
900
- }
901
- function sr(e, t) {
902
- return e.button === 0 && // Ignore everything but left clicks
903
- (!t || t === "_self") && // Let browser handle "target=_blank" etc.
904
- !lr(e);
905
- }
906
- function ce(e) {
907
- return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, r) => {
908
- let o = e[r];
909
- return t.concat(Array.isArray(o) ? o.map((a) => [r, a]) : [[r, o]]);
910
- }, []));
911
- }
912
- function ur(e, t) {
913
- let r = ce(e);
914
- return t && t.forEach((o, a) => {
915
- r.has(a) || t.getAll(a).forEach((l) => {
916
- r.append(a, l);
917
- });
918
- }), r;
919
- }
920
- let ae = null;
921
- function cr() {
922
- if (ae === null)
923
- try {
924
- new FormData(
925
- document.createElement("form"),
926
- // @ts-expect-error if FormData supports the submitter parameter, this will throw
927
- 0
928
- ), ae = !1;
929
- } catch {
930
- ae = !0;
931
- }
932
- return ae;
933
- }
934
- const dr = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
935
- function Ne(e) {
936
- return e != null && !dr.has(e) ? (process.env.NODE_ENV !== "production" && C(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + se + '"')), null) : e;
937
- }
938
- function fr(e, t) {
939
- let r, o, a, l, i;
940
- if (ar(e)) {
941
- let u = e.getAttribute("action");
942
- o = u ? T(u, t) : null, r = e.getAttribute("method") || le, a = Ne(e.getAttribute("enctype")) || se, l = new FormData(e);
943
- } else if (or(e) || ir(e) && (e.type === "submit" || e.type === "image")) {
944
- let u = e.form;
945
- if (u == null)
946
- throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
947
- let f = e.getAttribute("formaction") || u.getAttribute("action");
948
- if (o = f ? T(f, t) : null, r = e.getAttribute("formmethod") || u.getAttribute("method") || le, a = Ne(e.getAttribute("formenctype")) || Ne(u.getAttribute("enctype")) || se, l = new FormData(u, e), !cr()) {
949
- let {
950
- name: s,
951
- type: c,
952
- value: d
953
- } = e;
954
- if (c === "image") {
955
- let p = s ? s + "." : "";
956
- l.append(p + "x", "0"), l.append(p + "y", "0");
957
- } else s && l.append(s, d);
958
- }
959
- } else {
960
- if (ve(e))
961
- throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
962
- r = le, o = null, a = se, i = e;
963
- }
964
- return l && a === "text/plain" && (i = l, l = void 0), {
965
- action: o,
966
- method: r.toLowerCase(),
967
- encType: a,
968
- formData: l,
969
- body: i
970
- };
971
- }
972
- const pr = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"], hr = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"], mr = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"], vr = "6";
973
- try {
974
- window.__reactRouterVersion = vr;
975
- } catch {
976
- }
977
- function Er(e, t) {
978
- return _e({
979
- basename: t == null ? void 0 : t.basename,
980
- future: D({}, t == null ? void 0 : t.future, {
981
- v7_prependBasename: !0
982
- }),
983
- history: nt({
984
- window: t == null ? void 0 : t.window
985
- }),
986
- hydrationData: (t == null ? void 0 : t.hydrationData) || xt(),
987
- routes: e,
988
- mapRouteProperties: me,
989
- dataStrategy: t == null ? void 0 : t.dataStrategy,
990
- patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation,
991
- window: t == null ? void 0 : t.window
992
- }).initialize();
993
- }
994
- function yr(e, t) {
995
- return _e({
996
- basename: t == null ? void 0 : t.basename,
997
- future: D({}, t == null ? void 0 : t.future, {
998
- v7_prependBasename: !0
999
- }),
1000
- history: ot({
1001
- window: t == null ? void 0 : t.window
1002
- }),
1003
- hydrationData: (t == null ? void 0 : t.hydrationData) || xt(),
1004
- routes: e,
1005
- mapRouteProperties: me,
1006
- dataStrategy: t == null ? void 0 : t.dataStrategy,
1007
- patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation,
1008
- window: t == null ? void 0 : t.window
1009
- }).initialize();
1010
- }
1011
- function xt() {
1012
- var e;
1013
- let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
1014
- return t && t.errors && (t = D({}, t, {
1015
- errors: gr(t.errors)
1016
- })), t;
1017
- }
1018
- function gr(e) {
1019
- if (!e) return null;
1020
- let t = Object.entries(e), r = {};
1021
- for (let [o, a] of t)
1022
- if (a && a.__type === "RouteErrorResponse")
1023
- r[o] = new at(a.status, a.statusText, a.data, a.internal === !0);
1024
- else if (a && a.__type === "Error") {
1025
- if (a.__subType) {
1026
- let l = window[a.__subType];
1027
- if (typeof l == "function")
1028
- try {
1029
- let i = new l(a.message);
1030
- i.stack = "", r[o] = i;
1031
- } catch {
1032
- }
1033
- }
1034
- if (r[o] == null) {
1035
- let l = new Error(a.message);
1036
- l.stack = "", r[o] = l;
1037
- }
1038
- } else
1039
- r[o] = a;
1040
- return r;
1041
- }
1042
- const Ee = /* @__PURE__ */ n.createContext({
1043
- isTransitioning: !1
1044
- });
1045
- process.env.NODE_ENV !== "production" && (Ee.displayName = "ViewTransition");
1046
- const ye = /* @__PURE__ */ n.createContext(/* @__PURE__ */ new Map());
1047
- process.env.NODE_ENV !== "production" && (ye.displayName = "Fetchers");
1048
- const Nr = "startTransition", A = n[Nr], br = "flushSync", Ye = Bt[br], Rr = "useId", $e = n[Rr];
1049
- function wr(e) {
1050
- A ? A(e) : e();
1051
- }
1052
- function q(e) {
1053
- Ye ? Ye(e) : e();
1054
- }
1055
- class Cr {
1056
- constructor() {
1057
- this.status = "pending", this.promise = new Promise((t, r) => {
1058
- this.resolve = (o) => {
1059
- this.status === "pending" && (this.status = "resolved", t(o));
1060
- }, this.reject = (o) => {
1061
- this.status === "pending" && (this.status = "rejected", r(o));
1062
- };
1063
- });
1064
- }
1065
- }
1066
- function Sr(e) {
1067
- let {
1068
- fallbackElement: t,
1069
- router: r,
1070
- future: o
1071
- } = e, [a, l] = n.useState(r.state), [i, u] = n.useState(), [f, s] = n.useState({
1072
- isTransitioning: !1
1073
- }), [c, d] = n.useState(), [p, v] = n.useState(), [g, N] = n.useState(), y = n.useRef(/* @__PURE__ */ new Map()), {
1074
- v7_startTransition: w
1075
- } = o || {}, h = n.useCallback((R) => {
1076
- w ? wr(R) : R();
1077
- }, [w]), E = n.useCallback((R, F) => {
1078
- let {
1079
- deletedFetchers: x,
1080
- flushSync: oe,
1081
- viewTransitionOpts: K
1082
- } = F;
1083
- x.forEach((z) => y.current.delete(z)), R.fetchers.forEach((z, At) => {
1084
- z.data !== void 0 && y.current.set(At, z.data);
1085
- });
1086
- let It = r.window == null || r.window.document == null || typeof r.window.document.startViewTransition != "function";
1087
- if (!K || It) {
1088
- oe ? q(() => l(R)) : h(() => l(R));
1089
- return;
1090
- }
1091
- if (oe) {
1092
- q(() => {
1093
- p && (c && c.resolve(), p.skipTransition()), s({
1094
- isTransitioning: !0,
1095
- flushSync: !0,
1096
- currentLocation: K.currentLocation,
1097
- nextLocation: K.nextLocation
1098
- });
1099
- });
1100
- let z = r.window.document.startViewTransition(() => {
1101
- q(() => l(R));
1102
- });
1103
- z.finished.finally(() => {
1104
- q(() => {
1105
- d(void 0), v(void 0), u(void 0), s({
1106
- isTransitioning: !1
1107
- });
1108
- });
1109
- }), q(() => v(z));
1110
- return;
1111
- }
1112
- p ? (c && c.resolve(), p.skipTransition(), N({
1113
- state: R,
1114
- currentLocation: K.currentLocation,
1115
- nextLocation: K.nextLocation
1116
- })) : (u(R), s({
1117
- isTransitioning: !0,
1118
- flushSync: !1,
1119
- currentLocation: K.currentLocation,
1120
- nextLocation: K.nextLocation
1121
- }));
1122
- }, [r.window, p, c, y, h]);
1123
- n.useLayoutEffect(() => r.subscribe(E), [r, E]), n.useEffect(() => {
1124
- f.isTransitioning && !f.flushSync && d(new Cr());
1125
- }, [f]), n.useEffect(() => {
1126
- if (c && i && r.window) {
1127
- let R = i, F = c.promise, x = r.window.document.startViewTransition(async () => {
1128
- h(() => l(R)), await F;
1129
- });
1130
- x.finished.finally(() => {
1131
- d(void 0), v(void 0), u(void 0), s({
1132
- isTransitioning: !1
1133
- });
1134
- }), v(x);
1135
- }
1136
- }, [h, i, c, r.window]), n.useEffect(() => {
1137
- c && i && a.location.key === i.location.key && c.resolve();
1138
- }, [c, p, a.location, i]), n.useEffect(() => {
1139
- !f.isTransitioning && g && (u(g.state), s({
1140
- isTransitioning: !0,
1141
- flushSync: !1,
1142
- currentLocation: g.currentLocation,
1143
- nextLocation: g.nextLocation
1144
- }), N(void 0));
1145
- }, [f.isTransitioning, g]), n.useEffect(() => {
1146
- process.env.NODE_ENV !== "production" && C(t == null || !r.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
1147
- }, []);
1148
- let b = n.useMemo(() => ({
1149
- createHref: r.createHref,
1150
- encodeLocation: r.encodeLocation,
1151
- go: (R) => r.navigate(R),
1152
- push: (R, F, x) => r.navigate(R, {
1153
- state: F,
1154
- preventScrollReset: x == null ? void 0 : x.preventScrollReset
1155
- }),
1156
- replace: (R, F, x) => r.navigate(R, {
1157
- replace: !0,
1158
- state: F,
1159
- preventScrollReset: x == null ? void 0 : x.preventScrollReset
1160
- })
1161
- }), [r]), k = r.basename || "/", J = n.useMemo(() => ({
1162
- router: r,
1163
- navigator: b,
1164
- static: !1,
1165
- basename: k
1166
- }), [r, b, k]), ne = n.useMemo(() => ({
1167
- v7_relativeSplatPath: r.future.v7_relativeSplatPath
1168
- }), [r.future.v7_relativeSplatPath]);
1169
- return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(U.Provider, {
1170
- value: J
1171
- }, /* @__PURE__ */ n.createElement(B.Provider, {
1172
- value: a
1173
- }, /* @__PURE__ */ n.createElement(ye.Provider, {
1174
- value: y.current
1175
- }, /* @__PURE__ */ n.createElement(Ee.Provider, {
1176
- value: f
1177
- }, /* @__PURE__ */ n.createElement(H, {
1178
- basename: k,
1179
- location: a.location,
1180
- navigationType: a.historyAction,
1181
- navigator: b,
1182
- future: ne
1183
- }, a.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ n.createElement(_r, {
1184
- routes: r.routes,
1185
- future: r.future,
1186
- state: a
1187
- }) : t))))), null);
1188
- }
1189
- const _r = /* @__PURE__ */ n.memo(xr);
1190
- function xr(e) {
1191
- let {
1192
- routes: t,
1193
- future: r,
1194
- state: o
1195
- } = e;
1196
- return pe(t, void 0, o, r);
1197
- }
1198
- function Dr(e) {
1199
- let {
1200
- basename: t,
1201
- children: r,
1202
- future: o,
1203
- window: a
1204
- } = e, l = n.useRef();
1205
- l.current == null && (l.current = nt({
1206
- window: a,
1207
- v5Compat: !0
1208
- }));
1209
- let i = l.current, [u, f] = n.useState({
1210
- action: i.action,
1211
- location: i.location
1212
- }), {
1213
- v7_startTransition: s
1214
- } = o || {}, c = n.useCallback((d) => {
1215
- s && A ? A(() => f(d)) : f(d);
1216
- }, [f, s]);
1217
- return n.useLayoutEffect(() => i.listen(c), [i, c]), /* @__PURE__ */ n.createElement(H, {
1218
- basename: t,
1219
- children: r,
1220
- location: u.location,
1221
- navigationType: u.action,
1222
- navigator: i,
1223
- future: o
1224
- });
1225
- }
1226
- function Or(e) {
1227
- let {
1228
- basename: t,
1229
- children: r,
1230
- future: o,
1231
- window: a
1232
- } = e, l = n.useRef();
1233
- l.current == null && (l.current = ot({
1234
- window: a,
1235
- v5Compat: !0
1236
- }));
1237
- let i = l.current, [u, f] = n.useState({
1238
- action: i.action,
1239
- location: i.location
1240
- }), {
1241
- v7_startTransition: s
1242
- } = o || {}, c = n.useCallback((d) => {
1243
- s && A ? A(() => f(d)) : f(d);
1244
- }, [f, s]);
1245
- return n.useLayoutEffect(() => i.listen(c), [i, c]), /* @__PURE__ */ n.createElement(H, {
1246
- basename: t,
1247
- children: r,
1248
- location: u.location,
1249
- navigationType: u.action,
1250
- navigator: i,
1251
- future: o
1252
- });
1253
- }
1254
- function Dt(e) {
1255
- let {
1256
- basename: t,
1257
- children: r,
1258
- future: o,
1259
- history: a
1260
- } = e, [l, i] = n.useState({
1261
- action: a.action,
1262
- location: a.location
1263
- }), {
1264
- v7_startTransition: u
1265
- } = o || {}, f = n.useCallback((s) => {
1266
- u && A ? A(() => i(s)) : i(s);
1267
- }, [i, u]);
1268
- return n.useLayoutEffect(() => a.listen(f), [a, f]), /* @__PURE__ */ n.createElement(H, {
1269
- basename: t,
1270
- children: r,
1271
- location: l.location,
1272
- navigationType: l.action,
1273
- navigator: a,
1274
- future: o
1275
- });
1276
- }
1277
- process.env.NODE_ENV !== "production" && (Dt.displayName = "unstable_HistoryRouter");
1278
- const Pr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Lr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, je = /* @__PURE__ */ n.forwardRef(function(t, r) {
1279
- let {
1280
- onClick: o,
1281
- relative: a,
1282
- reloadDocument: l,
1283
- replace: i,
1284
- state: u,
1285
- target: f,
1286
- to: s,
1287
- preventScrollReset: c,
1288
- viewTransition: d
1289
- } = t, p = Me(t, pr), {
1290
- basename: v
1291
- } = n.useContext(S), g, N = !1;
1292
- if (typeof s == "string" && Lr.test(s) && (g = s, Pr))
1293
- try {
1294
- let E = new URL(window.location.href), b = s.startsWith("//") ? new URL(E.protocol + s) : new URL(s), k = T(b.pathname, v);
1295
- b.origin === E.origin && k != null ? s = k + b.search + b.hash : N = !0;
1296
- } catch {
1297
- process.env.NODE_ENV !== "production" && C(!1, '<Link to="' + s + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
1298
- }
1299
- let y = De(s, {
1300
- relative: a
1301
- }), w = Tt(s, {
1302
- replace: i,
1303
- state: u,
1304
- target: f,
1305
- preventScrollReset: c,
1306
- relative: a,
1307
- viewTransition: d
1308
- });
1309
- function h(E) {
1310
- o && o(E), E.defaultPrevented || w(E);
1311
- }
1312
- return (
1313
- // eslint-disable-next-line jsx-a11y/anchor-has-content
1314
- /* @__PURE__ */ n.createElement("a", D({}, p, {
1315
- href: g || y,
1316
- onClick: N || l ? o : h,
1317
- ref: r,
1318
- target: f
1319
- }))
1320
- );
1321
- });
1322
- process.env.NODE_ENV !== "production" && (je.displayName = "Link");
1323
- const Ot = /* @__PURE__ */ n.forwardRef(function(t, r) {
1324
- let {
1325
- "aria-current": o = "page",
1326
- caseSensitive: a = !1,
1327
- className: l = "",
1328
- end: i = !1,
1329
- style: u,
1330
- to: f,
1331
- viewTransition: s,
1332
- children: c
1333
- } = t, d = Me(t, hr), p = Y(f, {
1334
- relative: d.relative
1335
- }), v = L(), g = n.useContext(B), {
1336
- navigator: N,
1337
- basename: y
1338
- } = n.useContext(S), w = g != null && // Conditional usage is OK here because the usage of a data router is static
1339
- // eslint-disable-next-line react-hooks/rules-of-hooks
1340
- kt(p) && s === !0, h = N.encodeLocation ? N.encodeLocation(p).pathname : p.pathname, E = v.pathname, b = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
1341
- a || (E = E.toLowerCase(), b = b ? b.toLowerCase() : null, h = h.toLowerCase()), b && y && (b = T(b, y) || b);
1342
- const k = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
1343
- let J = E === h || !i && E.startsWith(h) && E.charAt(k) === "/", ne = b != null && (b === h || !i && b.startsWith(h) && b.charAt(h.length) === "/"), R = {
1344
- isActive: J,
1345
- isPending: ne,
1346
- isTransitioning: w
1347
- }, F = J ? o : void 0, x;
1348
- typeof l == "function" ? x = l(R) : x = [l, J ? "active" : null, ne ? "pending" : null, w ? "transitioning" : null].filter(Boolean).join(" ");
1349
- let oe = typeof u == "function" ? u(R) : u;
1350
- return /* @__PURE__ */ n.createElement(je, D({}, d, {
1351
- "aria-current": F,
1352
- className: x,
1353
- ref: r,
1354
- style: oe,
1355
- to: f,
1356
- viewTransition: s
1357
- }), typeof c == "function" ? c(R) : c);
1358
- });
1359
- process.env.NODE_ENV !== "production" && (Ot.displayName = "NavLink");
1360
- const He = /* @__PURE__ */ n.forwardRef((e, t) => {
1361
- let {
1362
- fetcherKey: r,
1363
- navigate: o,
1364
- reloadDocument: a,
1365
- replace: l,
1366
- state: i,
1367
- method: u = le,
1368
- action: f,
1369
- onSubmit: s,
1370
- relative: c,
1371
- preventScrollReset: d,
1372
- viewTransition: p
1373
- } = e, v = Me(e, mr), g = ze(), N = Ut(f, {
1374
- relative: c
1375
- }), y = u.toLowerCase() === "get" ? "get" : "post", w = (h) => {
1376
- if (s && s(h), h.defaultPrevented) return;
1377
- h.preventDefault();
1378
- let E = h.nativeEvent.submitter, b = (E == null ? void 0 : E.getAttribute("formmethod")) || u;
1379
- g(E || h.currentTarget, {
1380
- fetcherKey: r,
1381
- method: b,
1382
- navigate: o,
1383
- replace: l,
1384
- state: i,
1385
- relative: c,
1386
- preventScrollReset: d,
1387
- viewTransition: p
1388
- });
1389
- };
1390
- return /* @__PURE__ */ n.createElement("form", D({
1391
- ref: t,
1392
- method: y,
1393
- action: N,
1394
- onSubmit: a ? s : w
1395
- }, v));
1396
- });
1397
- process.env.NODE_ENV !== "production" && (He.displayName = "Form");
1398
- function Pt(e) {
1399
- let {
1400
- getKey: t,
1401
- storageKey: r
1402
- } = e;
1403
- return Vt({
1404
- getKey: t,
1405
- storageKey: r
1406
- }), null;
1407
- }
1408
- process.env.NODE_ENV !== "production" && (Pt.displayName = "ScrollRestoration");
1409
- var $;
1410
- (function(e) {
1411
- e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
1412
- })($ || ($ = {}));
1413
- var ee;
1414
- (function(e) {
1415
- e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
1416
- })(ee || (ee = {}));
1417
- function Lt(e) {
1418
- return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
1419
- }
1420
- function ge(e) {
1421
- let t = n.useContext(U);
1422
- return t || (process.env.NODE_ENV !== "production" ? m(!1, Lt(e)) : m(!1)), t;
1423
- }
1424
- function Ke(e) {
1425
- let t = n.useContext(B);
1426
- return t || (process.env.NODE_ENV !== "production" ? m(!1, Lt(e)) : m(!1)), t;
1427
- }
1428
- function Tt(e, t) {
1429
- let {
1430
- target: r,
1431
- replace: o,
1432
- state: a,
1433
- preventScrollReset: l,
1434
- relative: i,
1435
- viewTransition: u
1436
- } = t === void 0 ? {} : t, f = te(), s = L(), c = Y(e, {
1437
- relative: i
1438
- });
1439
- return n.useCallback((d) => {
1440
- if (sr(d, r)) {
1441
- d.preventDefault();
1442
- let p = o !== void 0 ? o : Q(s) === Q(c);
1443
- f(e, {
1444
- replace: p,
1445
- state: a,
1446
- preventScrollReset: l,
1447
- relative: i,
1448
- viewTransition: u
1449
- });
1450
- }
1451
- }, [s, f, c, o, a, r, e, l, i, u]);
1452
- }
1453
- function Tr(e) {
1454
- process.env.NODE_ENV !== "production" && C(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");
1455
- let t = n.useRef(ce(e)), r = n.useRef(!1), o = L(), a = n.useMemo(() => (
1456
- // Only merge in the defaults if we haven't yet called setSearchParams.
1457
- // Once we call that we want those to take precedence, otherwise you can't
1458
- // remove a param with setSearchParams({}) if it has an initial value
1459
- ur(o.search, r.current ? null : t.current)
1460
- ), [o.search]), l = te(), i = n.useCallback((u, f) => {
1461
- const s = ce(typeof u == "function" ? u(a) : u);
1462
- r.current = !0, l("?" + s, f);
1463
- }, [l, a]);
1464
- return [a, i];
1465
- }
1466
- function Fr() {
1467
- if (typeof document > "u")
1468
- throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
1469
- }
1470
- let Ur = 0, Ft = () => "__" + String(++Ur) + "__";
1471
- function ze() {
1472
- let {
1473
- router: e
1474
- } = ge($.UseSubmit), {
1475
- basename: t
1476
- } = n.useContext(S), r = Fe();
1477
- return n.useCallback(function(o, a) {
1478
- a === void 0 && (a = {}), Fr();
1479
- let {
1480
- action: l,
1481
- method: i,
1482
- encType: u,
1483
- formData: f,
1484
- body: s
1485
- } = fr(o, t);
1486
- if (a.navigate === !1) {
1487
- let c = a.fetcherKey || Ft();
1488
- e.fetch(c, r, a.action || l, {
1489
- preventScrollReset: a.preventScrollReset,
1490
- formData: f,
1491
- body: s,
1492
- formMethod: a.method || i,
1493
- formEncType: a.encType || u,
1494
- flushSync: a.flushSync
1495
- });
1496
- } else
1497
- e.navigate(a.action || l, {
1498
- preventScrollReset: a.preventScrollReset,
1499
- formData: f,
1500
- body: s,
1501
- formMethod: a.method || i,
1502
- formEncType: a.encType || u,
1503
- replace: a.replace,
1504
- state: a.state,
1505
- fromRouteId: r,
1506
- flushSync: a.flushSync,
1507
- viewTransition: a.viewTransition
1508
- });
1509
- }, [e, t, r]);
1510
- }
1511
- function Ut(e, t) {
1512
- let {
1513
- relative: r
1514
- } = t === void 0 ? {} : t, {
1515
- basename: o
1516
- } = n.useContext(S), a = n.useContext(_);
1517
- a || (process.env.NODE_ENV !== "production" ? m(!1, "useFormAction must be used inside a RouteContext") : m(!1));
1518
- let [l] = a.matches.slice(-1), i = D({}, Y(e || ".", {
1519
- relative: r
1520
- })), u = L();
1521
- if (e == null) {
1522
- i.search = u.search;
1523
- let f = new URLSearchParams(i.search), s = f.getAll("index");
1524
- if (s.some((d) => d === "")) {
1525
- f.delete("index"), s.filter((p) => p).forEach((p) => f.append("index", p));
1526
- let d = f.toString();
1527
- i.search = d ? "?" + d : "";
1528
- }
1529
- }
1530
- return (!e || e === ".") && l.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), o !== "/" && (i.pathname = i.pathname === "/" ? o : G([o, i.pathname])), Q(i);
1531
- }
1532
- function Vr(e) {
1533
- var t;
1534
- let {
1535
- key: r
1536
- } = e === void 0 ? {} : e, {
1537
- router: o
1538
- } = ge($.UseFetcher), a = Ke(ee.UseFetcher), l = n.useContext(ye), i = n.useContext(_), u = (t = i.matches[i.matches.length - 1]) == null ? void 0 : t.route.id;
1539
- l || (process.env.NODE_ENV !== "production" ? m(!1, "useFetcher must be used inside a FetchersContext") : m(!1)), i || (process.env.NODE_ENV !== "production" ? m(!1, "useFetcher must be used inside a RouteContext") : m(!1)), u == null && (process.env.NODE_ENV !== "production" ? m(!1, 'useFetcher can only be used on routes that contain a unique "id"') : m(!1));
1540
- let f = $e ? $e() : "", [s, c] = n.useState(r || f);
1541
- r && r !== s ? c(r) : s || c(Ft()), n.useEffect(() => (o.getFetcher(s), () => {
1542
- o.deleteFetcher(s);
1543
- }), [o, s]);
1544
- let d = n.useCallback((h, E) => {
1545
- u || (process.env.NODE_ENV !== "production" ? m(!1, "No routeId available for fetcher.load()") : m(!1)), o.fetch(s, u, h, E);
1546
- }, [s, u, o]), p = ze(), v = n.useCallback((h, E) => {
1547
- p(h, D({}, E, {
1548
- navigate: !1,
1549
- fetcherKey: s
1550
- }));
1551
- }, [s, p]), g = n.useMemo(() => {
1552
- let h = /* @__PURE__ */ n.forwardRef((E, b) => /* @__PURE__ */ n.createElement(He, D({}, E, {
1553
- navigate: !1,
1554
- fetcherKey: s,
1555
- ref: b
1556
- })));
1557
- return process.env.NODE_ENV !== "production" && (h.displayName = "fetcher.Form"), h;
1558
- }, [s]), N = a.fetchers.get(s) || Kt, y = l.get(s);
1559
- return n.useMemo(() => D({
1560
- Form: g,
1561
- submit: v,
1562
- load: d
1563
- }, N, {
1564
- data: y
1565
- }), [g, v, d, N, y]);
1566
- }
1567
- function kr() {
1568
- let e = Ke(ee.UseFetchers);
1569
- return Array.from(e.fetchers.entries()).map((t) => {
1570
- let [r, o] = t;
1571
- return D({}, o, {
1572
- key: r
1573
- });
1574
- });
1575
- }
1576
- const Je = "react-router-scroll-positions";
1577
- let ie = {};
1578
- function Vt(e) {
1579
- let {
1580
- getKey: t,
1581
- storageKey: r
1582
- } = e === void 0 ? {} : e, {
1583
- router: o
1584
- } = ge($.UseScrollRestoration), {
1585
- restoreScrollPosition: a,
1586
- preventScrollReset: l
1587
- } = Ke(ee.UseScrollRestoration), {
1588
- basename: i
1589
- } = n.useContext(S), u = L(), f = Ve(), s = Ue();
1590
- n.useEffect(() => (window.history.scrollRestoration = "manual", () => {
1591
- window.history.scrollRestoration = "auto";
1592
- }), []), Ar(n.useCallback(() => {
1593
- if (s.state === "idle") {
1594
- let c = (t ? t(u, f) : null) || u.key;
1595
- ie[c] = window.scrollY;
1596
- }
1597
- try {
1598
- sessionStorage.setItem(r || Je, JSON.stringify(ie));
1599
- } catch (c) {
1600
- process.env.NODE_ENV !== "production" && C(!1, "Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (" + c + ").");
1601
- }
1602
- window.history.scrollRestoration = "auto";
1603
- }, [r, t, s.state, u, f])), typeof document < "u" && (n.useLayoutEffect(() => {
1604
- try {
1605
- let c = sessionStorage.getItem(r || Je);
1606
- c && (ie = JSON.parse(c));
1607
- } catch {
1608
- }
1609
- }, [r]), n.useLayoutEffect(() => {
1610
- let c = t && i !== "/" ? (p, v) => t(
1611
- // Strip the basename to match useLocation()
1612
- D({}, p, {
1613
- pathname: T(p.pathname, i) || p.pathname
1614
- }),
1615
- v
1616
- ) : t, d = o == null ? void 0 : o.enableScrollRestoration(ie, () => window.scrollY, c);
1617
- return () => d && d();
1618
- }, [o, i, t]), n.useLayoutEffect(() => {
1619
- if (a !== !1) {
1620
- if (typeof a == "number") {
1621
- window.scrollTo(0, a);
1622
- return;
1623
- }
1624
- if (u.hash) {
1625
- let c = document.getElementById(decodeURIComponent(u.hash.slice(1)));
1626
- if (c) {
1627
- c.scrollIntoView();
1628
- return;
1629
- }
1630
- }
1631
- l !== !0 && window.scrollTo(0, 0);
1632
- }
1633
- }, [u, a, l]));
1634
- }
1635
- function Ir(e, t) {
1636
- let {
1637
- capture: r
1638
- } = t || {};
1639
- n.useEffect(() => {
1640
- let o = r != null ? {
1641
- capture: r
1642
- } : void 0;
1643
- return window.addEventListener("beforeunload", e, o), () => {
1644
- window.removeEventListener("beforeunload", e, o);
1645
- };
1646
- }, [e, r]);
1647
- }
1648
- function Ar(e, t) {
1649
- let {
1650
- capture: r
1651
- } = {};
1652
- n.useEffect(() => {
1653
- let o = r != null ? {
1654
- capture: r
1655
- } : void 0;
1656
- return window.addEventListener("pagehide", e, o), () => {
1657
- window.removeEventListener("pagehide", e, o);
1658
- };
1659
- }, [e, r]);
1660
- }
1661
- function Br(e) {
1662
- let {
1663
- when: t,
1664
- message: r
1665
- } = e, o = Ae(t);
1666
- n.useEffect(() => {
1667
- o.state === "blocked" && (window.confirm(r) ? setTimeout(o.proceed, 0) : o.reset());
1668
- }, [o, r]), n.useEffect(() => {
1669
- o.state === "blocked" && !t && o.reset();
1670
- }, [o, t]);
1671
- }
1672
- function kt(e, t) {
1673
- t === void 0 && (t = {});
1674
- let r = n.useContext(Ee);
1675
- r == null && (process.env.NODE_ENV !== "production" ? m(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : m(!1));
1676
- let {
1677
- basename: o
1678
- } = ge($.useViewTransitionState), a = Y(e, {
1679
- relative: t.relative
1680
- });
1681
- if (!r.isTransitioning)
1682
- return !1;
1683
- let l = T(r.currentLocation.pathname, o) || r.currentLocation.pathname, i = T(r.nextLocation.pathname, o) || r.nextLocation.pathname;
1684
- return X(a.pathname, i) != null || X(a.pathname, l) != null;
1685
- }
1686
- const Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1687
- __proto__: null,
1688
- AbortedDeferredError: Se,
1689
- Await: Ct,
1690
- BrowserRouter: Dr,
1691
- Form: He,
1692
- HashRouter: Or,
1693
- Link: je,
1694
- MemoryRouter: Nt,
1695
- NavLink: Ot,
1696
- Navigate: bt,
1697
- get NavigationType() {
1698
- return de;
1699
- },
1700
- Outlet: Rt,
1701
- Route: Be,
1702
- Router: H,
1703
- RouterProvider: Sr,
1704
- Routes: wt,
1705
- ScrollRestoration: Pt,
1706
- UNSAFE_DataRouterContext: U,
1707
- UNSAFE_DataRouterStateContext: B,
1708
- UNSAFE_ErrorResponseImpl: at,
1709
- UNSAFE_FetchersContext: ye,
1710
- UNSAFE_LocationContext: M,
1711
- UNSAFE_NavigationContext: S,
1712
- UNSAFE_RouteContext: _,
1713
- UNSAFE_ViewTransitionContext: Ee,
1714
- UNSAFE_useRouteId: Fe,
1715
- UNSAFE_useScrollRestoration: Vt,
1716
- createBrowserRouter: Er,
1717
- createHashRouter: yr,
1718
- createMemoryRouter: _t,
1719
- createPath: Q,
1720
- createRoutesFromChildren: W,
1721
- createRoutesFromElements: W,
1722
- createSearchParams: ce,
1723
- defer: Ge,
1724
- generatePath: Xe,
1725
- isRouteErrorResponse: Ce,
1726
- json: Qe,
1727
- matchPath: X,
1728
- matchRoutes: we,
1729
- parsePath: fe,
1730
- redirect: Ze,
1731
- redirectDocument: et,
1732
- renderMatches: St,
1733
- replace: tt,
1734
- resolvePath: rt,
1735
- unstable_HistoryRouter: Dt,
1736
- unstable_usePrompt: Br,
1737
- useActionData: Et,
1738
- useAsyncError: yt,
1739
- useAsyncValue: Ie,
1740
- useBeforeUnload: Ir,
1741
- useBlocker: Ae,
1742
- useFetcher: Vr,
1743
- useFetchers: kr,
1744
- useFormAction: Ut,
1745
- useHref: De,
1746
- useInRouterContext: V,
1747
- useLinkClickHandler: Tt,
1748
- useLoaderData: mt,
1749
- useLocation: L,
1750
- useMatch: lt,
1751
- useMatches: Ve,
1752
- useNavigate: te,
1753
- useNavigation: Ue,
1754
- useNavigationType: it,
1755
- useOutlet: Oe,
1756
- useOutletContext: dt,
1757
- useParams: ft,
1758
- useResolvedPath: Y,
1759
- useRevalidator: ht,
1760
- useRouteError: ke,
1761
- useRouteLoaderData: vt,
1762
- useRoutes: Pe,
1763
- useSearchParams: Tr,
1764
- useSubmit: ze,
1765
- useViewTransitionState: kt
1766
- }, Symbol.toStringTag, { value: "Module" }));
1767
- export {
1768
- je as L,
1769
- bt as N,
1770
- Rt as O,
1771
- Sr as R,
1772
- te as a,
1773
- Tr as b,
1774
- ft as c,
1775
- ke as d,
1776
- jr as e,
1777
- Hr as f,
1778
- Ot as g,
1779
- Ue as h,
1780
- lt as i,
1781
- L as u
1782
- };
1783
- //# sourceMappingURL=index-CRo94sKK.js.map