zudoku 0.0.0-f0602bf → 0.0.0-f0b4321

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 (732) hide show
  1. package/README.md +2 -2
  2. package/dist/app/ZuploBuildConfig.d.ts +11 -121
  3. package/dist/app/ZuploBuildConfig.js +8 -8
  4. package/dist/app/ZuploBuildConfig.js.map +1 -1
  5. package/dist/app/demo.js +21 -5
  6. package/dist/app/demo.js.map +1 -1
  7. package/dist/app/entry.client.d.ts +0 -2
  8. package/dist/app/entry.client.js +0 -2
  9. package/dist/app/entry.client.js.map +1 -1
  10. package/dist/app/entry.server.d.ts +0 -2
  11. package/dist/app/entry.server.js +0 -2
  12. package/dist/app/entry.server.js.map +1 -1
  13. package/dist/app/env.d.ts +7 -7
  14. package/dist/app/env.js +8 -0
  15. package/dist/app/env.js.map +1 -1
  16. package/dist/app/main.d.ts +1 -0
  17. package/dist/app/main.js +15 -20
  18. package/dist/app/main.js.map +1 -1
  19. package/dist/app/standalone.js +7 -6
  20. package/dist/app/standalone.js.map +1 -1
  21. package/dist/cli/build/handler.js +9 -1
  22. package/dist/cli/build/handler.js.map +1 -1
  23. package/dist/config/config.d.ts +11 -0
  24. package/dist/config/loader.js +4 -8
  25. package/dist/config/loader.js.map +1 -1
  26. package/dist/config/validators/BuildSchema.d.ts +20 -44
  27. package/dist/config/validators/BuildSchema.js +8 -14
  28. package/dist/config/validators/BuildSchema.js.map +1 -1
  29. package/dist/config/validators/InputNavigationSchema.d.ts +7364 -0
  30. package/dist/config/validators/InputNavigationSchema.js +71 -0
  31. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  32. package/dist/config/validators/InputNavigationSchema.test-d.d.ts +1 -0
  33. package/dist/config/validators/InputNavigationSchema.test-d.js +145 -0
  34. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  35. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  36. package/dist/config/validators/NavigationSchema.js +95 -0
  37. package/dist/config/validators/NavigationSchema.js.map +1 -0
  38. package/dist/config/validators/icon-types.d.ts +2 -1
  39. package/dist/config/validators/icon-types.js +1813 -1
  40. package/dist/config/validators/icon-types.js.map +1 -1
  41. package/dist/config/validators/validate.d.ts +474 -5556
  42. package/dist/config/validators/validate.js +106 -73
  43. package/dist/config/validators/validate.js.map +1 -1
  44. package/dist/config/validators/validate.test.d.ts +1 -0
  45. package/dist/config/validators/validate.test.js +141 -0
  46. package/dist/config/validators/validate.test.js.map +1 -0
  47. package/dist/index.d.ts +2 -1
  48. package/dist/index.js +1 -0
  49. package/dist/index.js.map +1 -1
  50. package/dist/lib/auth/issuer.d.ts +2 -0
  51. package/dist/lib/auth/issuer.js +37 -0
  52. package/dist/lib/auth/issuer.js.map +1 -0
  53. package/dist/lib/auth/issuer.test.d.ts +1 -0
  54. package/dist/lib/auth/issuer.test.js +94 -0
  55. package/dist/lib/auth/issuer.test.js.map +1 -0
  56. package/dist/lib/authentication/AuthenticationPlugin.d.ts +0 -5
  57. package/dist/lib/authentication/AuthenticationPlugin.js +0 -12
  58. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  59. package/dist/lib/authentication/authentication.d.ts +2 -0
  60. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  61. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  62. package/dist/lib/authentication/components/SignIn.js +4 -3
  63. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  64. package/dist/lib/authentication/hook.d.ts +6 -0
  65. package/dist/lib/authentication/providers/auth0.js +1 -1
  66. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  67. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  68. package/dist/lib/authentication/providers/azureb2c.js +145 -0
  69. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  70. package/dist/lib/authentication/providers/clerk.js +3 -12
  71. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  72. package/dist/lib/authentication/providers/openid.d.ts +5 -2
  73. package/dist/lib/authentication/providers/openid.js +49 -5
  74. package/dist/lib/authentication/providers/openid.js.map +1 -1
  75. package/dist/lib/authentication/providers/supabase.js +2 -9
  76. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  77. package/dist/lib/authentication/state.d.ts +6 -5
  78. package/dist/lib/authentication/state.js +19 -6
  79. package/dist/lib/authentication/state.js.map +1 -1
  80. package/dist/lib/components/Autocomplete.js +2 -2
  81. package/dist/lib/components/Autocomplete.js.map +1 -1
  82. package/dist/lib/components/Banner.js +2 -2
  83. package/dist/lib/components/Banner.js.map +1 -1
  84. package/dist/lib/components/BuildCheck.js +1 -1
  85. package/dist/lib/components/BuildCheck.js.map +1 -1
  86. package/dist/lib/components/CategoryHeading.js +1 -1
  87. package/dist/lib/components/CategoryHeading.js.map +1 -1
  88. package/dist/lib/components/ErrorPage.js +2 -2
  89. package/dist/lib/components/ErrorPage.js.map +1 -1
  90. package/dist/lib/components/Footer.js +1 -1
  91. package/dist/lib/components/Footer.js.map +1 -1
  92. package/dist/lib/components/Framed.d.ts +7 -0
  93. package/dist/lib/components/Framed.js +26 -0
  94. package/dist/lib/components/Framed.js.map +1 -0
  95. package/dist/lib/components/Header.js +19 -18
  96. package/dist/lib/components/Header.js.map +1 -1
  97. package/dist/lib/components/Heading.d.ts +6 -2
  98. package/dist/lib/components/Heading.js +7 -2
  99. package/dist/lib/components/Heading.js.map +1 -1
  100. package/dist/lib/components/Main.js +4 -4
  101. package/dist/lib/components/Main.js.map +1 -1
  102. package/dist/lib/components/Markdown.d.ts +0 -1
  103. package/dist/lib/components/Markdown.js +9 -5
  104. package/dist/lib/components/Markdown.js.map +1 -1
  105. package/dist/lib/components/MobileTopNavigation.js +11 -7
  106. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  107. package/dist/lib/components/NotFoundPage.js +2 -2
  108. package/dist/lib/components/NotFoundPage.js.map +1 -1
  109. package/dist/lib/components/PageProgress.d.ts +1 -0
  110. package/dist/lib/components/PageProgress.js +20 -0
  111. package/dist/lib/components/PageProgress.js.map +1 -0
  112. package/dist/lib/components/Pagination.js +1 -1
  113. package/dist/lib/components/Pagination.js.map +1 -1
  114. package/dist/lib/components/StatusPage.js +4 -0
  115. package/dist/lib/components/StatusPage.js.map +1 -1
  116. package/dist/lib/components/TopNavigation.d.ts +7 -3
  117. package/dist/lib/components/TopNavigation.js +49 -44
  118. package/dist/lib/components/TopNavigation.js.map +1 -1
  119. package/dist/lib/components/Typography.d.ts +5 -0
  120. package/dist/lib/components/Typography.js +8 -0
  121. package/dist/lib/components/Typography.js.map +1 -0
  122. package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
  123. package/dist/lib/components/context/ZudokuContext.js +44 -26
  124. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  125. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  126. package/dist/lib/components/index.d.ts +39 -23
  127. package/dist/lib/components/index.js +15 -7
  128. package/dist/lib/components/index.js.map +1 -1
  129. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  130. package/dist/lib/components/navigation/Navigation.js +12 -0
  131. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  132. package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
  133. package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +2 -2
  134. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  135. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  136. package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +15 -13
  137. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  138. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  139. package/dist/lib/components/navigation/NavigationItem.js +47 -0
  140. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  141. package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
  142. package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +5 -5
  143. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  144. package/dist/lib/components/navigation/utils.d.ts +12 -9
  145. package/dist/lib/components/navigation/utils.js +38 -18
  146. package/dist/lib/components/navigation/utils.js.map +1 -1
  147. package/dist/lib/core/ZudokuContext.d.ts +13 -13
  148. package/dist/lib/core/ZudokuContext.js +21 -10
  149. package/dist/lib/core/ZudokuContext.js.map +1 -1
  150. package/dist/lib/core/plugins.d.ts +2 -2
  151. package/dist/lib/errors/ErrorAlert.js +2 -3
  152. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  153. package/dist/lib/hooks/index.d.ts +25 -0
  154. package/dist/lib/hooks/index.js +11 -0
  155. package/dist/lib/hooks/index.js.map +1 -1
  156. package/dist/lib/hooks/useEvent.test.js +5 -3
  157. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  158. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  159. package/dist/lib/hooks/useHotkey.js +58 -0
  160. package/dist/lib/hooks/useHotkey.js.map +1 -0
  161. package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
  162. package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
  163. package/dist/lib/plugins/api-catalog/index.js +10 -10
  164. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  165. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +115 -23
  166. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  167. package/dist/lib/plugins/api-keys/index.d.ts +3 -3
  168. package/dist/lib/plugins/api-keys/index.js +37 -18
  169. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  170. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  171. package/dist/lib/plugins/custom-pages/index.js +15 -10
  172. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  173. package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -2
  174. package/dist/lib/plugins/markdown/MdxPage.js +30 -10
  175. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  176. package/dist/lib/plugins/markdown/index.d.ts +10 -2
  177. package/dist/lib/plugins/markdown/index.js +9 -26
  178. package/dist/lib/plugins/markdown/index.js.map +1 -1
  179. package/dist/lib/plugins/openapi/OperationList.js +3 -3
  180. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  181. package/dist/lib/plugins/openapi/OperationListItem.js +2 -2
  182. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  183. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  184. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  185. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +1 -1
  186. package/dist/lib/plugins/openapi/SchemaList.js +2 -3
  187. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  188. package/dist/lib/plugins/openapi/Sidecar.js +11 -91
  189. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  190. package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
  191. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  192. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  193. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  194. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  195. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +3 -3
  196. package/dist/lib/plugins/openapi/graphql/graphql.js +2 -2
  197. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  198. package/dist/lib/plugins/openapi/index.d.ts +3 -3
  199. package/dist/lib/plugins/openapi/index.js +10 -10
  200. package/dist/lib/plugins/openapi/index.js.map +1 -1
  201. package/dist/lib/plugins/openapi/interfaces.d.ts +3 -3
  202. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  203. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  204. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  205. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  206. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  207. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  208. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
  209. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  210. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  211. package/dist/lib/plugins/openapi/playground/Headers.js +54 -32
  212. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  213. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
  214. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
  215. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -2
  216. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
  217. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  218. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  219. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
  220. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  221. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -2
  222. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  223. package/dist/lib/plugins/openapi/playground/Playground.d.ts +3 -8
  224. package/dist/lib/plugins/openapi/playground/Playground.js +110 -92
  225. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  226. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  227. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  228. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +2 -2
  229. package/dist/lib/plugins/openapi/playground/QueryParams.js +38 -23
  230. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  231. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  232. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  233. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  234. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  235. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  236. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  237. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  238. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  239. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  240. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  241. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  242. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  243. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  244. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  245. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  246. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  247. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +69 -0
  248. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  249. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +10 -4
  250. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +33 -31
  251. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  252. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +4 -2
  253. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
  254. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  255. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  256. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  257. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  258. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
  259. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
  260. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +2 -3
  261. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  262. package/dist/lib/plugins/openapi/schema/SchemaView.js +5 -5
  263. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  264. package/dist/lib/plugins/openapi/schema/utils.js +3 -2
  265. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  266. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  267. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  268. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  269. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  270. package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +5 -4
  271. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  272. package/dist/lib/plugins/openapi/util/getRoutes.js +2 -2
  273. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  274. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  275. package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
  276. package/dist/lib/plugins/search-inkeep/index.js +35 -29
  277. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  278. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
  279. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  280. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  281. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +1 -1
  282. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  283. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
  284. package/dist/lib/plugins/search-pagefind/ResultList.js +12 -5
  285. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  286. package/dist/lib/shiki.d.ts +8 -12
  287. package/dist/lib/shiki.js +11 -13
  288. package/dist/lib/shiki.js.map +1 -1
  289. package/dist/lib/ui/Alert.d.ts +6 -5
  290. package/dist/lib/ui/Alert.js +12 -10
  291. package/dist/lib/ui/Alert.js.map +1 -1
  292. package/dist/lib/ui/Callout.js +1 -1
  293. package/dist/lib/ui/Callout.js.map +1 -1
  294. package/dist/lib/ui/CodeBlock.d.ts +1 -2
  295. package/dist/lib/ui/CodeBlock.js +10 -11
  296. package/dist/lib/ui/CodeBlock.js.map +1 -1
  297. package/dist/lib/ui/Dialog.d.ts +3 -1
  298. package/dist/lib/ui/Dialog.js +2 -2
  299. package/dist/lib/ui/Dialog.js.map +1 -1
  300. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  301. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  302. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  303. package/dist/lib/ui/Select.js +1 -1
  304. package/dist/lib/ui/SyntaxHighlight.d.ts +3 -1
  305. package/dist/lib/ui/SyntaxHighlight.js +3 -2
  306. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  307. package/dist/lib/ui/Tooltip.d.ts +2 -1
  308. package/dist/lib/ui/Tooltip.js +2 -1
  309. package/dist/lib/ui/Tooltip.js.map +1 -1
  310. package/dist/lib/util/MdxComponents.d.ts +9 -1
  311. package/dist/lib/util/MdxComponents.js +4 -2
  312. package/dist/lib/util/MdxComponents.js.map +1 -1
  313. package/dist/lib/util/humanFileSize.d.ts +6 -0
  314. package/dist/lib/util/humanFileSize.js +14 -0
  315. package/dist/lib/util/humanFileSize.js.map +1 -0
  316. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  317. package/dist/lib/util/humanFileSize.test.js +22 -0
  318. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  319. package/dist/lib/util/os.d.ts +2 -0
  320. package/dist/lib/util/os.js +21 -0
  321. package/dist/lib/util/os.js.map +1 -0
  322. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  323. package/dist/lib/util/useCopyToClipboard.js +11 -0
  324. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  325. package/dist/lib/util/useScrollToAnchor.js +3 -3
  326. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  327. package/dist/vite/api/SchemaManager.d.ts +4 -4
  328. package/dist/vite/api/SchemaManager.js +25 -21
  329. package/dist/vite/api/SchemaManager.js.map +1 -1
  330. package/dist/vite/api/SchemaManager.test.js +4 -4
  331. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  332. package/dist/vite/api/schema-codegen.js +42 -11
  333. package/dist/vite/api/schema-codegen.js.map +1 -1
  334. package/dist/vite/api/schema-codegen.test.js +82 -0
  335. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  336. package/dist/vite/build.js +10 -34
  337. package/dist/vite/build.js.map +1 -1
  338. package/dist/vite/config.js +12 -2
  339. package/dist/vite/config.js.map +1 -1
  340. package/dist/vite/css/plugin.js +11 -0
  341. package/dist/vite/css/plugin.js.map +1 -1
  342. package/dist/vite/dev-server.js +1 -1
  343. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  344. package/dist/vite/mdx/remark-last-modified.js +29 -0
  345. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  346. package/dist/vite/mdx/utils.d.ts +2 -0
  347. package/dist/vite/mdx/utils.js +31 -0
  348. package/dist/vite/mdx/utils.js.map +1 -0
  349. package/dist/vite/plugin-api.js +8 -8
  350. package/dist/vite/plugin-api.js.map +1 -1
  351. package/dist/vite/plugin-config-reload.js +2 -0
  352. package/dist/vite/plugin-config-reload.js.map +1 -1
  353. package/dist/vite/plugin-custom-pages.js +2 -2
  354. package/dist/vite/plugin-custom-pages.js.map +1 -1
  355. package/dist/vite/plugin-docs.js +61 -59
  356. package/dist/vite/plugin-docs.js.map +1 -1
  357. package/dist/vite/plugin-frontmatter.js +6 -2
  358. package/dist/vite/plugin-frontmatter.js.map +1 -1
  359. package/dist/vite/plugin-mdx.js +17 -38
  360. package/dist/vite/plugin-mdx.js.map +1 -1
  361. package/dist/vite/{plugin-sidebar.d.ts → plugin-navigation.d.ts} +1 -1
  362. package/dist/vite/{plugin-sidebar.js → plugin-navigation.js} +20 -19
  363. package/dist/vite/plugin-navigation.js.map +1 -0
  364. package/dist/vite/plugin-theme.d.ts +8 -0
  365. package/dist/vite/plugin-theme.js +234 -0
  366. package/dist/vite/plugin-theme.js.map +1 -0
  367. package/dist/vite/plugin-theme.test.d.ts +1 -0
  368. package/dist/vite/plugin-theme.test.js +312 -0
  369. package/dist/vite/plugin-theme.test.js.map +1 -0
  370. package/dist/vite/plugin.js +4 -6
  371. package/dist/vite/plugin.js.map +1 -1
  372. package/dist/vite/shadcn-registry.d.ts +45 -0
  373. package/dist/vite/shadcn-registry.js +29 -0
  374. package/dist/vite/shadcn-registry.js.map +1 -0
  375. package/lib/Alert-Cig_8hW6.js +161 -0
  376. package/lib/Alert-Cig_8hW6.js.map +1 -0
  377. package/lib/{Button-u7M2QYds.js → Button-B3o-2Xdf.js} +3 -3
  378. package/lib/{Button-u7M2QYds.js.map → Button-B3o-2Xdf.js.map} +1 -1
  379. package/lib/{Card-DkH-AU1V.js → Card-CMDQUPM4.js} +2 -2
  380. package/lib/{Card-DkH-AU1V.js.map → Card-CMDQUPM4.js.map} +1 -1
  381. package/lib/CodeBlock-BaBgX9Wy.js +85 -0
  382. package/lib/CodeBlock-BaBgX9Wy.js.map +1 -0
  383. package/lib/Command-C9AC5cf-.js +140 -0
  384. package/lib/Command-C9AC5cf-.js.map +1 -0
  385. package/lib/{Dialog-irKZWXGg.js → Dialog-DMWw1doX.js} +26 -26
  386. package/lib/Dialog-DMWw1doX.js.map +1 -0
  387. package/lib/{Drawer-DZ214i5V.js → Drawer-DXGPOKPx.js} +2 -2
  388. package/lib/{Drawer-DZ214i5V.js.map → Drawer-DXGPOKPx.js.map} +1 -1
  389. package/lib/MdxPage-D8Med7IR.js +110 -0
  390. package/lib/MdxPage-D8Med7IR.js.map +1 -0
  391. package/lib/OasProvider-YexVRErA.js +35 -0
  392. package/lib/OasProvider-YexVRErA.js.map +1 -0
  393. package/lib/{OperationList-CkKcRPvk.js → OperationList-CL_tp7DC.js} +1749 -1728
  394. package/lib/OperationList-CL_tp7DC.js.map +1 -0
  395. package/lib/Pagination-Bcjbdo_g.js +37 -0
  396. package/lib/Pagination-Bcjbdo_g.js.map +1 -0
  397. package/lib/RouteGuard-Vnlz_t51.js +737 -0
  398. package/lib/RouteGuard-Vnlz_t51.js.map +1 -0
  399. package/lib/{SchemaList-BUiEgmw6.js → SchemaList-BNDTWO1B.js} +32 -43
  400. package/lib/SchemaList-BNDTWO1B.js.map +1 -0
  401. package/lib/{SchemaView-DSgzGi1L.js → SchemaView-DdKqED8D.js} +95 -104
  402. package/lib/SchemaView-DdKqED8D.js.map +1 -0
  403. package/lib/SignUp-BkAQMKsK.js +56 -0
  404. package/lib/SignUp-BkAQMKsK.js.map +1 -0
  405. package/lib/Slot-CrCBhP3G.js +15743 -0
  406. package/lib/Slot-CrCBhP3G.js.map +1 -0
  407. package/lib/{SyntaxHighlight-DTgNHbGp.js → SyntaxHighlight-CVe58ZSY.js} +4683 -3484
  408. package/lib/SyntaxHighlight-CVe58ZSY.js.map +1 -0
  409. package/lib/{Toc-Ccycwd-T.js → Toc-CpsFSXeD.js} +3 -3
  410. package/lib/{Toc-Ccycwd-T.js.map → Toc-CpsFSXeD.js.map} +1 -1
  411. package/lib/{chunk-BAXFHI7N-C9WnHsLV.js → chunk-DQRVZFIR-DHK7_Ilc.js} +701 -701
  412. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js.map +1 -0
  413. package/lib/{circular-D1Bwr5bf.js → circular-BJUzZQ5q.js} +1812 -1807
  414. package/lib/circular-BJUzZQ5q.js.map +1 -0
  415. package/lib/clerk-BDZ31hjU.js +25190 -0
  416. package/lib/clerk-BDZ31hjU.js.map +1 -0
  417. package/lib/clsx-OuTLNxxd.js +17 -0
  418. package/lib/clsx-OuTLNxxd.js.map +1 -0
  419. package/lib/{cn-BOFVZgHd.js → cn-dYga0KKN.js} +237 -250
  420. package/lib/cn-dYga0KKN.js.map +1 -0
  421. package/lib/{createServer-BZp1gEBL.js → createServer-C8-YhyiB.js} +2459 -2448
  422. package/lib/createServer-C8-YhyiB.js.map +1 -0
  423. package/lib/errors-CKo4K1aM.js +78 -0
  424. package/lib/errors-CKo4K1aM.js.map +1 -0
  425. package/lib/hook-CZjW2buS.js +1510 -0
  426. package/lib/hook-CZjW2buS.js.map +1 -0
  427. package/lib/{index-BvvmIczU.js → index-4XtG1tlD.js} +2 -2
  428. package/lib/{index-BvvmIczU.js.map → index-4XtG1tlD.js.map} +1 -1
  429. package/lib/index-B3xhxwZH.js +3469 -0
  430. package/lib/index-B3xhxwZH.js.map +1 -0
  431. package/lib/index-B4yKFxne.js +3980 -0
  432. package/lib/index-B4yKFxne.js.map +1 -0
  433. package/lib/index-Bm35Tkgf.js +107 -0
  434. package/lib/index-Bm35Tkgf.js.map +1 -0
  435. package/lib/index-CrcNWbel.js.map +1 -1
  436. package/lib/{index-C1S4w-gl.js → index-DI5SPFK9.js} +2 -2
  437. package/lib/{index-C1S4w-gl.js.map → index-DI5SPFK9.js.map} +1 -1
  438. package/lib/{index-zddirpDj.js → index-DmNq2fbN.js} +226 -221
  439. package/lib/index-DmNq2fbN.js.map +1 -0
  440. package/lib/index.esm-Cp4wkyud.js +1236 -0
  441. package/lib/index.esm-Cp4wkyud.js.map +1 -0
  442. package/lib/ui/Accordion.js +1 -1
  443. package/lib/ui/ActionButton.js +2 -2
  444. package/lib/ui/Alert.js +54 -38
  445. package/lib/ui/Alert.js.map +1 -1
  446. package/lib/ui/AlertDialog.js +1 -1
  447. package/lib/ui/Badge.js +2 -2
  448. package/lib/ui/Breadcrumb.js +1 -1
  449. package/lib/ui/Button.js +2 -2
  450. package/lib/ui/Callout.js +6 -5
  451. package/lib/ui/Callout.js.map +1 -1
  452. package/lib/ui/Card.js +1 -1
  453. package/lib/ui/Carousel.js +1 -1
  454. package/lib/ui/Checkbox.js +1 -1
  455. package/lib/ui/CodeBlock.js +6 -80
  456. package/lib/ui/CodeBlock.js.map +1 -1
  457. package/lib/ui/Command.js +2 -2
  458. package/lib/ui/Dialog.js +40 -40
  459. package/lib/ui/Dialog.js.map +1 -1
  460. package/lib/ui/Drawer.js +2 -2
  461. package/lib/ui/DropdownMenu.js +1 -1
  462. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  463. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  464. package/lib/ui/Form.js +2 -2
  465. package/lib/ui/HoverCard.js +1 -1
  466. package/lib/ui/Input.js +1 -1
  467. package/lib/ui/Label.js +2 -2
  468. package/lib/ui/Pagination.js +1 -1
  469. package/lib/ui/Popover.js +1 -1
  470. package/lib/ui/Progress.js +1 -1
  471. package/lib/ui/RadioGroup.js +1 -1
  472. package/lib/ui/ScrollArea.js +1 -1
  473. package/lib/ui/Select.js +2 -2
  474. package/lib/ui/Select.js.map +1 -1
  475. package/lib/ui/Skeleton.js +1 -1
  476. package/lib/ui/Slider.js +1 -1
  477. package/lib/ui/Switch.js +1 -1
  478. package/lib/ui/SyntaxHighlight.js +5 -4
  479. package/lib/ui/SyntaxHighlight.js.map +1 -1
  480. package/lib/ui/Tabs.js +1 -1
  481. package/lib/ui/Textarea.js +1 -1
  482. package/lib/ui/Toggle.js +2 -2
  483. package/lib/ui/ToggleGroup.js +1 -1
  484. package/lib/ui/Tooltip.js +15 -8
  485. package/lib/ui/Tooltip.js.map +1 -1
  486. package/lib/ui/util.js +1 -1
  487. package/lib/{useExposedProps-DG8J6ewJ.js → useExposedProps-BIYjecPD.js} +2 -2
  488. package/lib/{useExposedProps-DG8J6ewJ.js.map → useExposedProps-BIYjecPD.js.map} +1 -1
  489. package/lib/zudoku.auth-auth0.js +2 -2
  490. package/lib/zudoku.auth-auth0.js.map +1 -1
  491. package/lib/zudoku.auth-azureb2c.js +9971 -0
  492. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  493. package/lib/zudoku.auth-clerk.js +39 -48
  494. package/lib/zudoku.auth-clerk.js.map +1 -1
  495. package/lib/zudoku.auth-openid.js +381 -406
  496. package/lib/zudoku.auth-openid.js.map +1 -1
  497. package/lib/zudoku.components.js +29 -30
  498. package/lib/zudoku.components.js.map +1 -1
  499. package/lib/zudoku.hooks.js +21 -13
  500. package/lib/zudoku.hooks.js.map +1 -1
  501. package/lib/zudoku.plugin-api-catalog.js +45 -45
  502. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  503. package/lib/zudoku.plugin-api-keys.js +512 -4971
  504. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  505. package/lib/zudoku.plugin-custom-pages.js +12 -18
  506. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  507. package/lib/zudoku.plugin-markdown.js +19 -69
  508. package/lib/zudoku.plugin-markdown.js.map +1 -1
  509. package/lib/zudoku.plugin-openapi.js +6 -6
  510. package/lib/zudoku.plugin-redirect.js +1 -1
  511. package/lib/zudoku.plugin-search-inkeep.js +54 -57
  512. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  513. package/lib/zudoku.plugin-search-pagefind.js +211 -117
  514. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  515. package/lib/zudoku.plugins.js.map +1 -1
  516. package/package.json +91 -70
  517. package/src/app/ZuploBuildConfig.ts +8 -8
  518. package/src/app/defaultTheme.css +68 -49
  519. package/src/app/demo.tsx +24 -6
  520. package/src/app/entry.client.tsx +0 -2
  521. package/src/app/entry.server.tsx +0 -2
  522. package/src/app/env.ts +8 -0
  523. package/src/app/main.css +15 -57
  524. package/src/app/main.tsx +18 -24
  525. package/src/app/standalone.tsx +7 -6
  526. package/src/lib/auth/issuer.test.ts +120 -0
  527. package/src/lib/auth/issuer.ts +41 -0
  528. package/src/lib/authentication/AuthenticationPlugin.tsx +0 -14
  529. package/src/lib/authentication/authentication.ts +2 -2
  530. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  531. package/src/lib/authentication/components/SignIn.tsx +5 -12
  532. package/src/lib/authentication/providers/auth0.tsx +1 -1
  533. package/src/lib/authentication/providers/azureb2c.tsx +196 -0
  534. package/src/lib/authentication/providers/clerk.tsx +3 -12
  535. package/src/lib/authentication/providers/openid.tsx +76 -4
  536. package/src/lib/authentication/providers/supabase.tsx +2 -9
  537. package/src/lib/authentication/state.ts +37 -7
  538. package/src/lib/components/Autocomplete.tsx +2 -1
  539. package/src/lib/components/Banner.tsx +1 -2
  540. package/src/lib/components/BuildCheck.tsx +1 -1
  541. package/src/lib/components/CategoryHeading.tsx +4 -1
  542. package/src/lib/components/ErrorPage.tsx +3 -3
  543. package/src/lib/components/Footer.tsx +1 -1
  544. package/src/lib/components/Framed.tsx +51 -0
  545. package/src/lib/components/Header.tsx +25 -22
  546. package/src/lib/components/Heading.tsx +16 -8
  547. package/src/lib/components/Main.tsx +9 -9
  548. package/src/lib/components/Markdown.tsx +17 -9
  549. package/src/lib/components/MobileTopNavigation.tsx +69 -15
  550. package/src/lib/components/NotFoundPage.tsx +3 -3
  551. package/src/lib/components/PageProgress.tsx +28 -0
  552. package/src/lib/components/Pagination.tsx +5 -4
  553. package/src/lib/components/StatusPage.tsx +5 -0
  554. package/src/lib/components/TopNavigation.tsx +75 -68
  555. package/src/lib/components/Typography.tsx +14 -0
  556. package/src/lib/components/context/ZudokuContext.ts +50 -32
  557. package/src/lib/components/context/ZudokuProvider.tsx +1 -1
  558. package/src/lib/components/index.ts +16 -10
  559. package/src/lib/components/navigation/{Sidebar.tsx → Navigation.tsx} +18 -16
  560. package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +1 -1
  561. package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +17 -15
  562. package/src/lib/components/navigation/NavigationItem.tsx +151 -0
  563. package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +7 -4
  564. package/src/lib/components/navigation/utils.ts +52 -29
  565. package/src/lib/core/ZudokuContext.ts +36 -20
  566. package/src/lib/core/plugins.ts +2 -2
  567. package/src/lib/errors/ErrorAlert.tsx +3 -9
  568. package/src/lib/hooks/index.ts +11 -0
  569. package/src/lib/hooks/useEvent.test.tsx +7 -5
  570. package/src/lib/hooks/useHotkey.ts +70 -0
  571. package/src/lib/plugins/api-catalog/Catalog.tsx +1 -1
  572. package/src/lib/plugins/api-catalog/index.tsx +19 -19
  573. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +238 -70
  574. package/src/lib/plugins/api-keys/index.tsx +50 -23
  575. package/src/lib/plugins/custom-pages/index.tsx +21 -16
  576. package/src/lib/plugins/markdown/MdxPage.tsx +76 -21
  577. package/src/lib/plugins/markdown/index.tsx +28 -41
  578. package/src/lib/plugins/openapi/OperationList.tsx +12 -20
  579. package/src/lib/plugins/openapi/OperationListItem.tsx +3 -3
  580. package/src/lib/plugins/openapi/ParameterListItem.tsx +6 -0
  581. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +1 -1
  582. package/src/lib/plugins/openapi/SchemaList.tsx +5 -11
  583. package/src/lib/plugins/openapi/Sidecar.tsx +12 -97
  584. package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -0
  585. package/src/lib/plugins/openapi/graphql/gql.ts +5 -5
  586. package/src/lib/plugins/openapi/graphql/graphql.ts +6 -6
  587. package/src/lib/plugins/openapi/index.tsx +12 -12
  588. package/src/lib/plugins/openapi/interfaces.ts +3 -3
  589. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  590. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  591. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +8 -1
  592. package/src/lib/plugins/openapi/playground/Headers.tsx +217 -115
  593. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +3 -2
  594. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +13 -16
  595. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  596. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
  597. package/src/lib/plugins/openapi/playground/PathParams.tsx +4 -5
  598. package/src/lib/plugins/openapi/playground/Playground.tsx +253 -288
  599. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +2 -1
  600. package/src/lib/plugins/openapi/playground/QueryParams.tsx +104 -58
  601. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  602. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  603. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  604. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  605. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  606. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +115 -0
  607. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +149 -108
  608. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +68 -89
  609. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  610. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +3 -3
  611. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +2 -3
  612. package/src/lib/plugins/openapi/schema/SchemaView.tsx +6 -11
  613. package/src/lib/plugins/openapi/schema/utils.ts +3 -2
  614. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  615. package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +6 -5
  616. package/src/lib/plugins/openapi/util/getRoutes.tsx +2 -2
  617. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  618. package/src/lib/plugins/search-inkeep/index.tsx +54 -58
  619. package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
  620. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +1 -0
  621. package/src/lib/plugins/search-pagefind/ResultList.tsx +13 -4
  622. package/src/lib/shiki.ts +21 -22
  623. package/src/lib/ui/Alert.tsx +45 -39
  624. package/src/lib/ui/Callout.tsx +1 -0
  625. package/src/lib/ui/CodeBlock.tsx +40 -54
  626. package/src/lib/ui/Dialog.tsx +11 -7
  627. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  628. package/src/lib/ui/Select.tsx +1 -1
  629. package/src/lib/ui/SyntaxHighlight.tsx +11 -3
  630. package/src/lib/ui/Tooltip.tsx +16 -1
  631. package/src/lib/util/MdxComponents.tsx +13 -2
  632. package/src/lib/util/humanFileSize.test.ts +24 -0
  633. package/src/lib/util/humanFileSize.ts +16 -0
  634. package/src/lib/util/os.ts +18 -0
  635. package/src/lib/util/useCopyToClipboard.ts +17 -0
  636. package/src/lib/util/useScrollToAnchor.ts +3 -3
  637. package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
  638. package/dist/config/validators/InputSidebarSchema.js +0 -62
  639. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  640. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  641. package/dist/config/validators/SidebarSchema.js +0 -118
  642. package/dist/config/validators/SidebarSchema.js.map +0 -1
  643. package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
  644. package/dist/lib/components/navigation/Sidebar.js +0 -10
  645. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  646. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  647. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  648. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  649. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -11
  650. package/dist/lib/components/navigation/SidebarItem.js +0 -49
  651. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  652. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  653. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  654. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  655. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  656. package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
  657. package/dist/lib/plugins/markdown/resolver.js +0 -46
  658. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  659. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
  660. package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -19
  661. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
  662. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  663. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  664. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  665. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
  666. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
  667. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
  668. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
  669. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
  670. package/dist/vite/plugin-configure-tailwind.d.ts +0 -2
  671. package/dist/vite/plugin-configure-tailwind.js +0 -38
  672. package/dist/vite/plugin-configure-tailwind.js.map +0 -1
  673. package/dist/vite/plugin-sidebar.js.map +0 -1
  674. package/dist/vite/plugin-theme-css.d.ts +0 -5
  675. package/dist/vite/plugin-theme-css.js +0 -77
  676. package/dist/vite/plugin-theme-css.js.map +0 -1
  677. package/lib/Callout-CtCQJ6Cc.js +0 -230
  678. package/lib/Callout-CtCQJ6Cc.js.map +0 -1
  679. package/lib/CategoryHeading-BA7lKNWz.js +0 -10
  680. package/lib/CategoryHeading-BA7lKNWz.js.map +0 -1
  681. package/lib/Dialog-irKZWXGg.js.map +0 -1
  682. package/lib/Markdown-BNG8bTDA.js +0 -7691
  683. package/lib/Markdown-BNG8bTDA.js.map +0 -1
  684. package/lib/MdxPage-D74eGiYZ.js +0 -84
  685. package/lib/MdxPage-D74eGiYZ.js.map +0 -1
  686. package/lib/OasProvider-D61BSWef.js +0 -33
  687. package/lib/OasProvider-D61BSWef.js.map +0 -1
  688. package/lib/OperationList-CkKcRPvk.js.map +0 -1
  689. package/lib/Pagination-CeFxTDan.js +0 -36
  690. package/lib/Pagination-CeFxTDan.js.map +0 -1
  691. package/lib/RouteGuard-CIyGFkFD.js +0 -55
  692. package/lib/RouteGuard-CIyGFkFD.js.map +0 -1
  693. package/lib/SchemaList-BUiEgmw6.js.map +0 -1
  694. package/lib/SchemaView-DSgzGi1L.js.map +0 -1
  695. package/lib/SignUp-DCgoDR--.js +0 -63
  696. package/lib/SignUp-DCgoDR--.js.map +0 -1
  697. package/lib/Slot-Dw-g06lX.js +0 -160
  698. package/lib/Slot-Dw-g06lX.js.map +0 -1
  699. package/lib/SyntaxHighlight-DTgNHbGp.js.map +0 -1
  700. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +0 -1
  701. package/lib/circular-D1Bwr5bf.js.map +0 -1
  702. package/lib/cn-BOFVZgHd.js.map +0 -1
  703. package/lib/createServer-BZp1gEBL.js.map +0 -1
  704. package/lib/hook-BpiAQVtd.js +0 -1446
  705. package/lib/hook-BpiAQVtd.js.map +0 -1
  706. package/lib/index--oeBayMa.js +0 -86
  707. package/lib/index--oeBayMa.js.map +0 -1
  708. package/lib/index-Bn6Lc9tq.js +0 -9
  709. package/lib/index-Bn6Lc9tq.js.map +0 -1
  710. package/lib/index-DEr_Ta6s.js +0 -4977
  711. package/lib/index-DEr_Ta6s.js.map +0 -1
  712. package/lib/index-E90CTqBl.js +0 -3268
  713. package/lib/index-E90CTqBl.js.map +0 -1
  714. package/lib/index-zddirpDj.js.map +0 -1
  715. package/lib/index.esm-BFcSKCe-.js +0 -683
  716. package/lib/index.esm-BFcSKCe-.js.map +0 -1
  717. package/lib/index.esm-DSfX_eMP.js +0 -1216
  718. package/lib/index.esm-DSfX_eMP.js.map +0 -1
  719. package/lib/mutation-CJrIFMgY.js +0 -196
  720. package/lib/mutation-CJrIFMgY.js.map +0 -1
  721. package/lib/objectEntries-yMIkr2mI.js +0 -5
  722. package/lib/objectEntries-yMIkr2mI.js.map +0 -1
  723. package/lib/useLatest-hmRS46UF.js +0 -11
  724. package/lib/useLatest-hmRS46UF.js.map +0 -1
  725. package/lib/useMutation-B2LNwShM.js +0 -97
  726. package/lib/useMutation-B2LNwShM.js.map +0 -1
  727. package/src/lib/components/navigation/SidebarItem.tsx +0 -117
  728. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  729. package/src/lib/plugins/markdown/resolver.ts +0 -59
  730. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -70
  731. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  732. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
@@ -0,0 +1,737 @@
1
+ import { j as y } from "./jsx-runtime-C5mzlN2N.js";
2
+ import { e as se, d as ae, l as ie } from "./hook-CZjW2buS.js";
3
+ import T, { Component as M, createContext as oe, useRef as le, useEffect as ce, use as ue } from "react";
4
+ import { g as L, Z as fe } from "./invariant-DAFpPywt.js";
5
+ import { a as pe, u as de, m as me, O as he } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
6
+ import { D as ye, a as Te, c as ge, b as ve, d as Ae } from "./Dialog-DMWw1doX.js";
7
+ var x, K;
8
+ function Ee() {
9
+ if (K) return x;
10
+ K = 1;
11
+ var e = typeof Element < "u", t = typeof Map == "function", r = typeof Set == "function", n = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
12
+ function o(s, l) {
13
+ if (s === l) return !0;
14
+ if (s && l && typeof s == "object" && typeof l == "object") {
15
+ if (s.constructor !== l.constructor) return !1;
16
+ var i, a, c;
17
+ if (Array.isArray(s)) {
18
+ if (i = s.length, i != l.length) return !1;
19
+ for (a = i; a-- !== 0; )
20
+ if (!o(s[a], l[a])) return !1;
21
+ return !0;
22
+ }
23
+ var u;
24
+ if (t && s instanceof Map && l instanceof Map) {
25
+ if (s.size !== l.size) return !1;
26
+ for (u = s.entries(); !(a = u.next()).done; )
27
+ if (!l.has(a.value[0])) return !1;
28
+ for (u = s.entries(); !(a = u.next()).done; )
29
+ if (!o(a.value[1], l.get(a.value[0]))) return !1;
30
+ return !0;
31
+ }
32
+ if (r && s instanceof Set && l instanceof Set) {
33
+ if (s.size !== l.size) return !1;
34
+ for (u = s.entries(); !(a = u.next()).done; )
35
+ if (!l.has(a.value[0])) return !1;
36
+ return !0;
37
+ }
38
+ if (n && ArrayBuffer.isView(s) && ArrayBuffer.isView(l)) {
39
+ if (i = s.length, i != l.length) return !1;
40
+ for (a = i; a-- !== 0; )
41
+ if (s[a] !== l[a]) return !1;
42
+ return !0;
43
+ }
44
+ if (s.constructor === RegExp) return s.source === l.source && s.flags === l.flags;
45
+ if (s.valueOf !== Object.prototype.valueOf && typeof s.valueOf == "function" && typeof l.valueOf == "function") return s.valueOf() === l.valueOf();
46
+ if (s.toString !== Object.prototype.toString && typeof s.toString == "function" && typeof l.toString == "function") return s.toString() === l.toString();
47
+ if (c = Object.keys(s), i = c.length, i !== Object.keys(l).length) return !1;
48
+ for (a = i; a-- !== 0; )
49
+ if (!Object.prototype.hasOwnProperty.call(l, c[a])) return !1;
50
+ if (e && s instanceof Element) return !1;
51
+ for (a = i; a-- !== 0; )
52
+ if (!((c[a] === "_owner" || c[a] === "__v" || c[a] === "__o") && s.$$typeof) && !o(s[c[a]], l[c[a]]))
53
+ return !1;
54
+ return !0;
55
+ }
56
+ return s !== s && l !== l;
57
+ }
58
+ return x = function(l, i) {
59
+ try {
60
+ return o(l, i);
61
+ } catch (a) {
62
+ if ((a.message || "").match(/stack|recursion/i))
63
+ return console.warn("react-fast-compare cannot handle circular refs"), !1;
64
+ throw a;
65
+ }
66
+ }, x;
67
+ }
68
+ var be = Ee();
69
+ const Ce = /* @__PURE__ */ L(be);
70
+ var P, z;
71
+ function Oe() {
72
+ if (z) return P;
73
+ z = 1;
74
+ var e = function(t, r, n, o, s, l, i, a) {
75
+ if (process.env.NODE_ENV !== "production" && r === void 0)
76
+ throw new Error("invariant requires an error message argument");
77
+ if (!t) {
78
+ var c;
79
+ if (r === void 0)
80
+ c = new Error(
81
+ "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
82
+ );
83
+ else {
84
+ var u = [n, o, s, l, i, a], f = 0;
85
+ c = new Error(
86
+ r.replace(/%s/g, function() {
87
+ return u[f++];
88
+ })
89
+ ), c.name = "Invariant Violation";
90
+ }
91
+ throw c.framesToPop = 1, c;
92
+ }
93
+ };
94
+ return P = e, P;
95
+ }
96
+ var we = Oe();
97
+ const N = /* @__PURE__ */ L(we);
98
+ var R, B;
99
+ function Se() {
100
+ return B || (B = 1, R = function(t, r, n, o) {
101
+ var s = n ? n.call(o, t, r) : void 0;
102
+ if (s !== void 0)
103
+ return !!s;
104
+ if (t === r)
105
+ return !0;
106
+ if (typeof t != "object" || !t || typeof r != "object" || !r)
107
+ return !1;
108
+ var l = Object.keys(t), i = Object.keys(r);
109
+ if (l.length !== i.length)
110
+ return !1;
111
+ for (var a = Object.prototype.hasOwnProperty.bind(r), c = 0; c < l.length; c++) {
112
+ var u = l[c];
113
+ if (!a(u))
114
+ return !1;
115
+ var f = t[u], m = r[u];
116
+ if (s = n ? n.call(o, f, m, u) : void 0, s === !1 || s === void 0 && f !== m)
117
+ return !1;
118
+ }
119
+ return !0;
120
+ }), R;
121
+ }
122
+ var xe = Se();
123
+ const Pe = /* @__PURE__ */ L(xe);
124
+ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(Q || {}), D = {
125
+ link: { rel: ["amphtml", "canonical", "alternate"] },
126
+ script: { type: ["application/ld+json"] },
127
+ meta: {
128
+ charset: "",
129
+ name: ["generator", "robots", "description"],
130
+ property: [
131
+ "og:type",
132
+ "og:title",
133
+ "og:url",
134
+ "og:image",
135
+ "og:image:alt",
136
+ "og:description",
137
+ "twitter:url",
138
+ "twitter:title",
139
+ "twitter:description",
140
+ "twitter:image",
141
+ "twitter:image:alt",
142
+ "twitter:card",
143
+ "twitter:site"
144
+ ]
145
+ }
146
+ }, V = Object.values(Q), q = {
147
+ accesskey: "accessKey",
148
+ charset: "charSet",
149
+ class: "className",
150
+ contenteditable: "contentEditable",
151
+ contextmenu: "contextMenu",
152
+ "http-equiv": "httpEquiv",
153
+ itemprop: "itemProp",
154
+ tabindex: "tabIndex"
155
+ }, Re = Object.entries(q).reduce(
156
+ (e, [t, r]) => (e[r] = t, e),
157
+ {}
158
+ ), h = "data-rh", A = {
159
+ DEFAULT_TITLE: "defaultTitle",
160
+ DEFER: "defer",
161
+ ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
162
+ ON_CHANGE_CLIENT_STATE: "onChangeClientState",
163
+ TITLE_TEMPLATE: "titleTemplate",
164
+ PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
165
+ }, E = (e, t) => {
166
+ for (let r = e.length - 1; r >= 0; r -= 1) {
167
+ const n = e[r];
168
+ if (Object.prototype.hasOwnProperty.call(n, t))
169
+ return n[t];
170
+ }
171
+ return null;
172
+ }, De = (e) => {
173
+ let t = E(
174
+ e,
175
+ "title"
176
+ /* TITLE */
177
+ );
178
+ const r = E(e, A.TITLE_TEMPLATE);
179
+ if (Array.isArray(t) && (t = t.join("")), r && t)
180
+ return r.replace(/%s/g, () => t);
181
+ const n = E(e, A.DEFAULT_TITLE);
182
+ return t || n || void 0;
183
+ }, Ie = (e) => E(e, A.ON_CHANGE_CLIENT_STATE) || (() => {
184
+ }), I = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), $e = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
185
+ if (!r.length) {
186
+ const o = Object.keys(n);
187
+ for (let s = 0; s < o.length; s += 1) {
188
+ const i = o[s].toLowerCase();
189
+ if (e.indexOf(i) !== -1 && n[i])
190
+ return r.concat(n);
191
+ }
192
+ }
193
+ return r;
194
+ }, []), He = (e) => console && typeof console.warn == "function" && console.warn(e), b = (e, t, r) => {
195
+ const n = {};
196
+ return r.filter((o) => Array.isArray(o[e]) ? !0 : (typeof o[e] < "u" && He(
197
+ `Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`
198
+ ), !1)).map((o) => o[e]).reverse().reduce((o, s) => {
199
+ const l = {};
200
+ s.filter((a) => {
201
+ let c;
202
+ const u = Object.keys(a);
203
+ for (let m = 0; m < u.length; m += 1) {
204
+ const p = u[m], g = p.toLowerCase();
205
+ t.indexOf(g) !== -1 && !(c === "rel" && a[c].toLowerCase() === "canonical") && !(g === "rel" && a[g].toLowerCase() === "stylesheet") && (c = g), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (c = p);
206
+ }
207
+ if (!c || !a[c])
208
+ return !1;
209
+ const f = a[c].toLowerCase();
210
+ return n[c] || (n[c] = {}), l[c] || (l[c] = {}), n[c][f] ? !1 : (l[c][f] = !0, !0);
211
+ }).reverse().forEach((a) => o.push(a));
212
+ const i = Object.keys(l);
213
+ for (let a = 0; a < i.length; a += 1) {
214
+ const c = i[a], u = {
215
+ ...n[c],
216
+ ...l[c]
217
+ };
218
+ n[c] = u;
219
+ }
220
+ return o;
221
+ }, []).reverse();
222
+ }, _e = (e, t) => {
223
+ if (Array.isArray(e) && e.length) {
224
+ for (let r = 0; r < e.length; r += 1)
225
+ if (e[r][t])
226
+ return !0;
227
+ }
228
+ return !1;
229
+ }, je = (e) => ({
230
+ baseTag: $e([
231
+ "href"
232
+ /* HREF */
233
+ ], e),
234
+ bodyAttributes: I("bodyAttributes", e),
235
+ defer: E(e, A.DEFER),
236
+ encode: E(e, A.ENCODE_SPECIAL_CHARACTERS),
237
+ htmlAttributes: I("htmlAttributes", e),
238
+ linkTags: b(
239
+ "link",
240
+ [
241
+ "rel",
242
+ "href"
243
+ /* HREF */
244
+ ],
245
+ e
246
+ ),
247
+ metaTags: b(
248
+ "meta",
249
+ [
250
+ "name",
251
+ "charset",
252
+ "http-equiv",
253
+ "property",
254
+ "itemprop"
255
+ /* ITEM_PROP */
256
+ ],
257
+ e
258
+ ),
259
+ noscriptTags: b("noscript", [
260
+ "innerHTML"
261
+ /* INNER_HTML */
262
+ ], e),
263
+ onChangeClientState: Ie(e),
264
+ scriptTags: b(
265
+ "script",
266
+ [
267
+ "src",
268
+ "innerHTML"
269
+ /* INNER_HTML */
270
+ ],
271
+ e
272
+ ),
273
+ styleTags: b("style", [
274
+ "cssText"
275
+ /* CSS_TEXT */
276
+ ], e),
277
+ title: De(e),
278
+ titleAttributes: I("titleAttributes", e),
279
+ prioritizeSeoTags: _e(e, A.PRIORITIZE_SEO_TAGS)
280
+ }), W = (e) => Array.isArray(e) ? e.join("") : e, ke = (e, t) => {
281
+ const r = Object.keys(e);
282
+ for (let n = 0; n < r.length; n += 1)
283
+ if (t[r[n]] && t[r[n]].includes(e[r[n]]))
284
+ return !0;
285
+ return !1;
286
+ }, $ = (e, t) => Array.isArray(e) ? e.reduce(
287
+ (r, n) => (ke(n, t) ? r.priority.push(n) : r.default.push(n), r),
288
+ { priority: [], default: [] }
289
+ ) : { default: e, priority: [] }, Z = (e, t) => ({
290
+ ...e,
291
+ [t]: void 0
292
+ }), Me = [
293
+ "noscript",
294
+ "script",
295
+ "style"
296
+ /* STYLE */
297
+ ], H = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), J = (e) => Object.keys(e).reduce((t, r) => {
298
+ const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
299
+ return t ? `${t} ${n}` : n;
300
+ }, ""), Le = (e, t, r, n) => {
301
+ const o = J(r), s = W(t);
302
+ return o ? `<${e} ${h}="true" ${o}>${H(
303
+ s,
304
+ n
305
+ )}</${e}>` : `<${e} ${h}="true">${H(
306
+ s,
307
+ n
308
+ )}</${e}>`;
309
+ }, qe = (e, t, r = !0) => t.reduce((n, o) => {
310
+ const s = o, l = Object.keys(s).filter(
311
+ (c) => !(c === "innerHTML" || c === "cssText")
312
+ ).reduce((c, u) => {
313
+ const f = typeof s[u] > "u" ? u : `${u}="${H(s[u], r)}"`;
314
+ return c ? `${c} ${f}` : f;
315
+ }, ""), i = s.innerHTML || s.cssText || "", a = Me.indexOf(e) === -1;
316
+ return `${n}<${e} ${h}="true" ${l}${a ? "/>" : `>${i}</${e}>`}`;
317
+ }, ""), X = (e, t = {}) => Object.keys(e).reduce((r, n) => {
318
+ const o = q[n];
319
+ return r[o || n] = e[n], r;
320
+ }, t), Fe = (e, t, r) => {
321
+ const n = {
322
+ key: t,
323
+ [h]: !0
324
+ }, o = X(r, n);
325
+ return [T.createElement("title", o, t)];
326
+ }, S = (e, t) => t.map((r, n) => {
327
+ const o = {
328
+ key: n,
329
+ [h]: !0
330
+ };
331
+ return Object.keys(r).forEach((s) => {
332
+ const i = q[s] || s;
333
+ if (i === "innerHTML" || i === "cssText") {
334
+ const a = r.innerHTML || r.cssText;
335
+ o.dangerouslySetInnerHTML = { __html: a };
336
+ } else
337
+ o[i] = r[s];
338
+ }), T.createElement(e, o);
339
+ }), d = (e, t, r = !0) => {
340
+ switch (e) {
341
+ case "title":
342
+ return {
343
+ toComponent: () => Fe(e, t.title, t.titleAttributes),
344
+ toString: () => Le(e, t.title, t.titleAttributes, r)
345
+ };
346
+ case "bodyAttributes":
347
+ case "htmlAttributes":
348
+ return {
349
+ toComponent: () => X(t),
350
+ toString: () => J(t)
351
+ };
352
+ default:
353
+ return {
354
+ toComponent: () => S(e, t),
355
+ toString: () => qe(e, t, r)
356
+ };
357
+ }
358
+ }, Ue = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
359
+ const o = $(e, D.meta), s = $(t, D.link), l = $(r, D.script);
360
+ return {
361
+ priorityMethods: {
362
+ toComponent: () => [
363
+ ...S("meta", o.priority),
364
+ ...S("link", s.priority),
365
+ ...S("script", l.priority)
366
+ ],
367
+ toString: () => (
368
+ // generate all the tags as strings and concatenate them
369
+ `${d("meta", o.priority, n)} ${d(
370
+ "link",
371
+ s.priority,
372
+ n
373
+ )} ${d("script", l.priority, n)}`
374
+ )
375
+ },
376
+ metaTags: o.default,
377
+ linkTags: s.default,
378
+ scriptTags: l.default
379
+ };
380
+ }, Ke = (e) => {
381
+ const {
382
+ baseTag: t,
383
+ bodyAttributes: r,
384
+ encode: n = !0,
385
+ htmlAttributes: o,
386
+ noscriptTags: s,
387
+ styleTags: l,
388
+ title: i = "",
389
+ titleAttributes: a,
390
+ prioritizeSeoTags: c
391
+ } = e;
392
+ let { linkTags: u, metaTags: f, scriptTags: m } = e, p = {
393
+ toComponent: () => {
394
+ },
395
+ toString: () => ""
396
+ };
397
+ return c && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: m } = Ue(e)), {
398
+ priority: p,
399
+ base: d("base", t, n),
400
+ bodyAttributes: d("bodyAttributes", r, n),
401
+ htmlAttributes: d("htmlAttributes", o, n),
402
+ link: d("link", u, n),
403
+ meta: d("meta", f, n),
404
+ noscript: d("noscript", s, n),
405
+ script: d("script", m, n),
406
+ style: d("style", l, n),
407
+ title: d("title", { title: i, titleAttributes: a }, n)
408
+ };
409
+ }, _ = Ke, w = [], ee = !!(typeof window < "u" && window.document && window.document.createElement), j = class {
410
+ instances = [];
411
+ canUseDOM = ee;
412
+ context;
413
+ value = {
414
+ setHelmet: (e) => {
415
+ this.context.helmet = e;
416
+ },
417
+ helmetInstances: {
418
+ get: () => this.canUseDOM ? w : this.instances,
419
+ add: (e) => {
420
+ (this.canUseDOM ? w : this.instances).push(e);
421
+ },
422
+ remove: (e) => {
423
+ const t = (this.canUseDOM ? w : this.instances).indexOf(e);
424
+ (this.canUseDOM ? w : this.instances).splice(t, 1);
425
+ }
426
+ }
427
+ };
428
+ constructor(e, t) {
429
+ this.context = e, this.canUseDOM = t || !1, t || (e.helmet = _({
430
+ baseTag: [],
431
+ bodyAttributes: {},
432
+ htmlAttributes: {},
433
+ linkTags: [],
434
+ metaTags: [],
435
+ noscriptTags: [],
436
+ scriptTags: [],
437
+ styleTags: [],
438
+ title: "",
439
+ titleAttributes: {}
440
+ }));
441
+ }
442
+ }, ze = {}, te = T.createContext(ze), Ne = class re extends M {
443
+ static canUseDOM = ee;
444
+ helmetData;
445
+ constructor(t) {
446
+ super(t), this.helmetData = new j(this.props.context || {}, re.canUseDOM);
447
+ }
448
+ render() {
449
+ return /* @__PURE__ */ T.createElement(te.Provider, { value: this.helmetData.value }, this.props.children);
450
+ }
451
+ }, v = (e, t) => {
452
+ const r = document.head || document.querySelector(
453
+ "head"
454
+ /* HEAD */
455
+ ), n = r.querySelectorAll(`${e}[${h}]`), o = [].slice.call(n), s = [];
456
+ let l;
457
+ return t && t.length && t.forEach((i) => {
458
+ const a = document.createElement(e);
459
+ for (const c in i)
460
+ if (Object.prototype.hasOwnProperty.call(i, c))
461
+ if (c === "innerHTML")
462
+ a.innerHTML = i.innerHTML;
463
+ else if (c === "cssText")
464
+ a.styleSheet ? a.styleSheet.cssText = i.cssText : a.appendChild(document.createTextNode(i.cssText));
465
+ else {
466
+ const u = c, f = typeof i[u] > "u" ? "" : i[u];
467
+ a.setAttribute(c, f);
468
+ }
469
+ a.setAttribute(h, "true"), o.some((c, u) => (l = u, a.isEqualNode(c))) ? o.splice(l, 1) : s.push(a);
470
+ }), o.forEach((i) => i.parentNode?.removeChild(i)), s.forEach((i) => r.appendChild(i)), {
471
+ oldTags: o,
472
+ newTags: s
473
+ };
474
+ }, k = (e, t) => {
475
+ const r = document.getElementsByTagName(e)[0];
476
+ if (!r)
477
+ return;
478
+ const n = r.getAttribute(h), o = n ? n.split(",") : [], s = [...o], l = Object.keys(t);
479
+ for (const i of l) {
480
+ const a = t[i] || "";
481
+ r.getAttribute(i) !== a && r.setAttribute(i, a), o.indexOf(i) === -1 && o.push(i);
482
+ const c = s.indexOf(i);
483
+ c !== -1 && s.splice(c, 1);
484
+ }
485
+ for (let i = s.length - 1; i >= 0; i -= 1)
486
+ r.removeAttribute(s[i]);
487
+ o.length === s.length ? r.removeAttribute(h) : r.getAttribute(h) !== l.join(",") && r.setAttribute(h, l.join(","));
488
+ }, Be = (e, t) => {
489
+ typeof e < "u" && document.title !== e && (document.title = W(e)), k("title", t);
490
+ }, Y = (e, t) => {
491
+ const {
492
+ baseTag: r,
493
+ bodyAttributes: n,
494
+ htmlAttributes: o,
495
+ linkTags: s,
496
+ metaTags: l,
497
+ noscriptTags: i,
498
+ onChangeClientState: a,
499
+ scriptTags: c,
500
+ styleTags: u,
501
+ title: f,
502
+ titleAttributes: m
503
+ } = e;
504
+ k("body", n), k("html", o), Be(f, m);
505
+ const p = {
506
+ baseTag: v("base", r),
507
+ linkTags: v("link", s),
508
+ metaTags: v("meta", l),
509
+ noscriptTags: v("noscript", i),
510
+ scriptTags: v("script", c),
511
+ styleTags: v("style", u)
512
+ }, g = {}, F = {};
513
+ Object.keys(p).forEach((O) => {
514
+ const { newTags: U, oldTags: ne } = p[O];
515
+ U.length && (g[O] = U), ne.length && (F[O] = p[O].oldTags);
516
+ }), t && t(), a(e, g, F);
517
+ }, C = null, Ve = (e) => {
518
+ C && cancelAnimationFrame(C), e.defer ? C = requestAnimationFrame(() => {
519
+ Y(e, () => {
520
+ C = null;
521
+ });
522
+ }) : (Y(e), C = null);
523
+ }, Ze = Ve, G = class extends M {
524
+ rendered = !1;
525
+ shouldComponentUpdate(e) {
526
+ return !Pe(e, this.props);
527
+ }
528
+ componentDidUpdate() {
529
+ this.emitChange();
530
+ }
531
+ componentWillUnmount() {
532
+ const { helmetInstances: e } = this.props.context;
533
+ e.remove(this), this.emitChange();
534
+ }
535
+ emitChange() {
536
+ const { helmetInstances: e, setHelmet: t } = this.props.context;
537
+ let r = null;
538
+ const n = je(
539
+ e.get().map((o) => {
540
+ const s = { ...o.props };
541
+ return delete s.context, s;
542
+ })
543
+ );
544
+ Ne.canUseDOM ? Ze(n) : _ && (r = _(n)), t(r);
545
+ }
546
+ // componentWillMount will be deprecated
547
+ // for SSR, initialize on first render
548
+ // constructor is also unsafe in StrictMode
549
+ init() {
550
+ if (this.rendered)
551
+ return;
552
+ this.rendered = !0;
553
+ const { helmetInstances: e } = this.props.context;
554
+ e.add(this), this.emitChange();
555
+ }
556
+ render() {
557
+ return this.init(), null;
558
+ }
559
+ }, Ye = class extends M {
560
+ static defaultProps = {
561
+ defer: !0,
562
+ encodeSpecialCharacters: !0,
563
+ prioritizeSeoTags: !1
564
+ };
565
+ shouldComponentUpdate(e) {
566
+ return !Ce(Z(this.props, "helmetData"), Z(e, "helmetData"));
567
+ }
568
+ mapNestedChildrenToProps(e, t) {
569
+ if (!t)
570
+ return null;
571
+ switch (e.type) {
572
+ case "script":
573
+ case "noscript":
574
+ return {
575
+ innerHTML: t
576
+ };
577
+ case "style":
578
+ return {
579
+ cssText: t
580
+ };
581
+ default:
582
+ throw new Error(
583
+ `<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`
584
+ );
585
+ }
586
+ }
587
+ flattenArrayTypeChildren(e, t, r, n) {
588
+ return {
589
+ ...t,
590
+ [e.type]: [
591
+ ...t[e.type] || [],
592
+ {
593
+ ...r,
594
+ ...this.mapNestedChildrenToProps(e, n)
595
+ }
596
+ ]
597
+ };
598
+ }
599
+ mapObjectTypeChildren(e, t, r, n) {
600
+ switch (e.type) {
601
+ case "title":
602
+ return {
603
+ ...t,
604
+ [e.type]: n,
605
+ titleAttributes: { ...r }
606
+ };
607
+ case "body":
608
+ return {
609
+ ...t,
610
+ bodyAttributes: { ...r }
611
+ };
612
+ case "html":
613
+ return {
614
+ ...t,
615
+ htmlAttributes: { ...r }
616
+ };
617
+ default:
618
+ return {
619
+ ...t,
620
+ [e.type]: { ...r }
621
+ };
622
+ }
623
+ }
624
+ mapArrayTypeChildrenToProps(e, t) {
625
+ let r = { ...t };
626
+ return Object.keys(e).forEach((n) => {
627
+ r = {
628
+ ...r,
629
+ [n]: e[n]
630
+ };
631
+ }), r;
632
+ }
633
+ warnOnInvalidChildren(e, t) {
634
+ return N(
635
+ V.some((r) => e.type === r),
636
+ typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${V.join(
637
+ ", "
638
+ )} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
639
+ ), N(
640
+ !t || typeof t == "string" || Array.isArray(t) && !t.some((r) => typeof r != "string"),
641
+ `Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`
642
+ ), !0;
643
+ }
644
+ mapChildrenToProps(e, t) {
645
+ let r = {};
646
+ return T.Children.forEach(e, (n) => {
647
+ if (!n || !n.props)
648
+ return;
649
+ const { children: o, ...s } = n.props, l = Object.keys(s).reduce((a, c) => (a[Re[c] || c] = s[c], a), {});
650
+ let { type: i } = n;
651
+ switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(n, o), i) {
652
+ case "Symbol(react.fragment)":
653
+ t = this.mapChildrenToProps(o, t);
654
+ break;
655
+ case "link":
656
+ case "meta":
657
+ case "noscript":
658
+ case "script":
659
+ case "style":
660
+ r = this.flattenArrayTypeChildren(
661
+ n,
662
+ r,
663
+ l,
664
+ o
665
+ );
666
+ break;
667
+ default:
668
+ t = this.mapObjectTypeChildren(n, t, l, o);
669
+ break;
670
+ }
671
+ }), this.mapArrayTypeChildrenToProps(r, t);
672
+ }
673
+ render() {
674
+ const { children: e, ...t } = this.props;
675
+ let r = { ...t }, { helmetData: n } = t;
676
+ if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof j)) {
677
+ const o = n;
678
+ n = new j(o.context, !0), delete r.helmetData;
679
+ }
680
+ return n ? /* @__PURE__ */ T.createElement(G, { ...r, context: n.value }) : /* @__PURE__ */ T.createElement(te.Consumer, null, (o) => /* @__PURE__ */ T.createElement(G, { ...r, context: o }));
681
+ }
682
+ };
683
+ const Ge = oe(!1), Qe = (e) => {
684
+ const t = le(e);
685
+ return t.current = e, ce(() => {
686
+ t.current = e;
687
+ }, [e]), t;
688
+ }, We = "protected", st = () => {
689
+ const e = se(), t = ae(), r = pe(), n = de(), o = Qe(n.pathname), s = ue(Ge), { protectedRoutes: l = [] } = t.options, i = !s && l.some(
690
+ (a) => me({ path: a, end: !0 }, n.pathname)
691
+ );
692
+ if (ie({
693
+ queryKey: ["login-redirect"],
694
+ queryFn: async () => (await new Promise((a) => setTimeout(a, 1200)), await t.authentication?.signIn({
695
+ redirectTo: o.current
696
+ }), !0),
697
+ enabled: typeof window < "u" && i && !e.isPending && !e.isAuthenticated
698
+ }), i && !e.isAuthenticated)
699
+ return /* @__PURE__ */ y.jsx(
700
+ ye,
701
+ {
702
+ open: !0,
703
+ onOpenChange: (a) => {
704
+ a || r(-1);
705
+ },
706
+ children: /* @__PURE__ */ y.jsxs(Te, { children: [
707
+ /* @__PURE__ */ y.jsx(ge, { children: /* @__PURE__ */ y.jsx(ve, { children: "Logging you in..." }) }),
708
+ /* @__PURE__ */ y.jsx(Ae, { children: "Please wait while we log you in." })
709
+ ] })
710
+ }
711
+ );
712
+ if (i && !e.isAuthEnabled)
713
+ throw new fe("Authentication is not enabled", {
714
+ title: "Authentication is not enabled",
715
+ developerHint: "To use protectedRoutes you need authentication to be enabled"
716
+ });
717
+ return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
718
+ s && /* @__PURE__ */ y.jsx(Ye, { children: /* @__PURE__ */ y.jsx(
719
+ "meta",
720
+ {
721
+ name: "pagefind",
722
+ "data-pagefind-filter": `section:${We}`,
723
+ content: "true"
724
+ }
725
+ ) }),
726
+ /* @__PURE__ */ y.jsx(he, {})
727
+ ] });
728
+ };
729
+ export {
730
+ Ge as B,
731
+ Ye as H,
732
+ st as R,
733
+ We as S,
734
+ Ne as a,
735
+ Qe as u
736
+ };
737
+ //# sourceMappingURL=RouteGuard-Vnlz_t51.js.map