zudoku 0.3.0-dev.7 → 0.3.0-dev.71

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 (559) hide show
  1. package/dist/app/App.d.ts +1 -2
  2. package/dist/app/App.js +1 -29
  3. package/dist/app/App.js.map +1 -1
  4. package/dist/app/demo.d.ts +2 -0
  5. package/dist/app/demo.js +32 -0
  6. package/dist/app/demo.js.map +1 -0
  7. package/dist/app/entry.client.d.ts +2 -0
  8. package/dist/app/entry.client.js +35 -0
  9. package/dist/app/entry.client.js.map +1 -0
  10. package/dist/app/entry.server.d.ts +14 -0
  11. package/dist/app/entry.server.js +105 -0
  12. package/dist/app/entry.server.js.map +1 -0
  13. package/dist/app/main.d.ts +6 -1
  14. package/dist/app/main.js +68 -12
  15. package/dist/app/main.js.map +1 -1
  16. package/dist/app/standalone.d.ts +2 -0
  17. package/dist/app/standalone.js +37 -0
  18. package/dist/app/standalone.js.map +1 -0
  19. package/dist/app/tailwind.d.ts +1 -1
  20. package/dist/app/tailwind.js +0 -4
  21. package/dist/app/tailwind.js.map +1 -1
  22. package/dist/cli/cmds/dev.js +5 -0
  23. package/dist/cli/cmds/dev.js.map +1 -1
  24. package/dist/cli/dev/handler.d.ts +1 -0
  25. package/dist/cli/dev/handler.js +3 -1
  26. package/dist/cli/dev/handler.js.map +1 -1
  27. package/dist/config/config.d.ts +19 -45
  28. package/dist/config/validators/validate.d.ts +911 -2
  29. package/dist/config/validators/validate.js +151 -1
  30. package/dist/config/validators/validate.js.map +1 -1
  31. package/dist/internal.d.ts +1 -0
  32. package/dist/internal.js +2 -0
  33. package/dist/internal.js.map +1 -0
  34. package/dist/lib/authentication/AuthenticationPlugin.d.ts +13 -0
  35. package/dist/lib/authentication/AuthenticationPlugin.js +31 -0
  36. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -0
  37. package/dist/lib/authentication/Callback.d.ts +1 -1
  38. package/dist/lib/authentication/Callback.js +3 -3
  39. package/dist/lib/authentication/Callback.js.map +1 -1
  40. package/dist/lib/authentication/authentication.d.ts +6 -9
  41. package/dist/lib/authentication/components/SignIn.d.ts +1 -0
  42. package/dist/lib/authentication/components/SignIn.js +10 -0
  43. package/dist/lib/authentication/components/SignIn.js.map +1 -0
  44. package/dist/lib/authentication/components/SignOut.d.ts +1 -0
  45. package/dist/lib/authentication/components/SignOut.js +10 -0
  46. package/dist/lib/authentication/components/SignOut.js.map +1 -0
  47. package/dist/lib/authentication/components/SignUp.d.ts +1 -0
  48. package/dist/lib/authentication/components/SignUp.js +10 -0
  49. package/dist/lib/authentication/components/SignUp.js.map +1 -0
  50. package/dist/lib/authentication/hook.js +2 -2
  51. package/dist/lib/authentication/hook.js.map +1 -1
  52. package/dist/lib/authentication/providers/auth0.js +4 -5
  53. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  54. package/dist/lib/authentication/providers/clerk.js +59 -30
  55. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  56. package/dist/lib/authentication/providers/openid.d.ts +22 -7
  57. package/dist/lib/authentication/providers/openid.js +66 -17
  58. package/dist/lib/authentication/providers/openid.js.map +1 -1
  59. package/dist/lib/components/Bootstrap.d.ts +13 -0
  60. package/dist/lib/components/Bootstrap.js +12 -0
  61. package/dist/lib/components/Bootstrap.js.map +1 -0
  62. package/dist/lib/components/DevPortal.d.ts +5 -19
  63. package/dist/lib/components/DevPortal.js +32 -12
  64. package/dist/lib/components/DevPortal.js.map +1 -1
  65. package/dist/lib/components/DeveloperHint.d.ts +5 -0
  66. package/dist/lib/components/DeveloperHint.js +10 -0
  67. package/dist/lib/components/DeveloperHint.js.map +1 -0
  68. package/dist/lib/components/ErrorPage.d.ts +6 -0
  69. package/dist/lib/components/ErrorPage.js +9 -0
  70. package/dist/lib/components/ErrorPage.js.map +1 -0
  71. package/dist/lib/components/Header.js +17 -3
  72. package/dist/lib/components/Header.js.map +1 -1
  73. package/dist/lib/components/Heading.d.ts +9 -4
  74. package/dist/lib/components/Heading.js +17 -2
  75. package/dist/lib/components/Heading.js.map +1 -1
  76. package/dist/lib/components/InlineCode.d.ts +5 -0
  77. package/dist/lib/components/InlineCode.js +4 -0
  78. package/dist/lib/components/InlineCode.js.map +1 -0
  79. package/dist/lib/components/Layout.js +4 -2
  80. package/dist/lib/components/Layout.js.map +1 -1
  81. package/dist/lib/components/NotFoundPage.d.ts +1 -0
  82. package/dist/lib/components/NotFoundPage.js +12 -0
  83. package/dist/lib/components/NotFoundPage.js.map +1 -0
  84. package/dist/lib/components/SlotletProvider.d.ts +9 -0
  85. package/dist/lib/components/SlotletProvider.js +11 -0
  86. package/dist/lib/components/SlotletProvider.js.map +1 -0
  87. package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
  88. package/dist/lib/components/SyntaxHighlight.js +24 -22
  89. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  90. package/dist/lib/components/TopNavigation.d.ts +1 -1
  91. package/dist/lib/components/TopNavigation.js +5 -1
  92. package/dist/lib/components/TopNavigation.js.map +1 -1
  93. package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
  94. package/dist/lib/components/context/DevPortalProvider.js +20 -3
  95. package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
  96. package/dist/lib/components/index.d.ts +32 -3
  97. package/dist/lib/components/index.js +21 -3
  98. package/dist/lib/components/index.js.map +1 -1
  99. package/dist/lib/components/navigation/SideNavigation.js +3 -2
  100. package/dist/lib/components/navigation/SideNavigation.js.map +1 -1
  101. package/dist/lib/components/navigation/SideNavigationCategory.js +3 -3
  102. package/dist/lib/components/navigation/SideNavigationCategory.js.map +1 -1
  103. package/dist/lib/components/navigation/SideNavigationItem.d.ts +0 -4
  104. package/dist/lib/components/navigation/SideNavigationItem.js +4 -4
  105. package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -1
  106. package/dist/lib/components/navigation/useNavigationCollapsibleState.d.ts +4 -1
  107. package/dist/lib/components/navigation/useNavigationCollapsibleState.js +17 -5
  108. package/dist/lib/components/navigation/useNavigationCollapsibleState.js.map +1 -1
  109. package/dist/lib/core/DevPortalContext.d.ts +48 -12
  110. package/dist/lib/core/DevPortalContext.js +7 -9
  111. package/dist/lib/core/DevPortalContext.js.map +1 -1
  112. package/dist/lib/core/plugins.d.ts +16 -4
  113. package/dist/lib/core/plugins.js +2 -0
  114. package/dist/lib/core/plugins.js.map +1 -1
  115. package/dist/lib/errors/ErrorAlert.d.ts +3 -0
  116. package/dist/lib/errors/ErrorAlert.js +8 -0
  117. package/dist/lib/errors/ErrorAlert.js.map +1 -0
  118. package/dist/lib/errors/RouterError.d.ts +1 -0
  119. package/dist/lib/errors/RouterError.js +12 -0
  120. package/dist/lib/errors/RouterError.js.map +1 -0
  121. package/dist/lib/errors/ServerError.d.ts +3 -0
  122. package/dist/lib/errors/ServerError.js +6 -0
  123. package/dist/lib/errors/ServerError.js.map +1 -0
  124. package/dist/lib/errors/TopLevelError.d.ts +2 -0
  125. package/dist/lib/errors/TopLevelError.js +7 -0
  126. package/dist/lib/errors/TopLevelError.js.map +1 -0
  127. package/dist/lib/oas/graphql/index.js +6 -4
  128. package/dist/lib/oas/graphql/index.js.map +1 -1
  129. package/dist/lib/oas/parser/index.d.ts +1 -1
  130. package/dist/lib/oas/parser/index.js +38 -12
  131. package/dist/lib/oas/parser/index.js.map +1 -1
  132. package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +2 -2
  133. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
  134. package/dist/lib/plugins/api-keys/ProtectedRoute.d.ts +1 -0
  135. package/dist/lib/plugins/api-keys/ProtectedRoute.js +14 -0
  136. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -0
  137. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +40 -0
  138. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
  139. package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +4 -5
  140. package/dist/lib/plugins/{api-key → api-keys}/index.js +12 -20
  141. package/dist/lib/plugins/api-keys/index.js.map +1 -0
  142. package/dist/lib/plugins/custom-page/index.d.ts +8 -0
  143. package/dist/lib/plugins/custom-page/index.js +12 -0
  144. package/dist/lib/plugins/custom-page/index.js.map +1 -0
  145. package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
  146. package/dist/lib/plugins/markdown/MdxPage.js +7 -6
  147. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  148. package/dist/lib/plugins/markdown/Toc.js +17 -9
  149. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  150. package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -3
  151. package/dist/lib/plugins/markdown/generateRoutes.js +4 -4
  152. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  153. package/dist/lib/plugins/markdown/index.d.ts +4 -1
  154. package/dist/lib/plugins/markdown/index.js +3 -7
  155. package/dist/lib/plugins/markdown/index.js.map +1 -1
  156. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +2 -1
  157. package/dist/lib/plugins/openapi/ColorizedParam.js +14 -9
  158. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  159. package/dist/lib/plugins/openapi/OperationList.js +17 -5
  160. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  161. package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
  162. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  163. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  164. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  165. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  166. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  167. package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +1 -1
  168. package/dist/lib/plugins/openapi/{MakeRequest.js → PlaygroundDialogWrapper.js} +4 -16
  169. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
  170. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +1 -9
  171. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  172. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
  173. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  174. package/dist/lib/plugins/openapi/Route.d.ts +6 -0
  175. package/dist/lib/plugins/openapi/Route.js +8 -0
  176. package/dist/lib/plugins/openapi/Route.js.map +1 -0
  177. package/dist/lib/plugins/openapi/SchemaListView.js +6 -27
  178. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
  179. package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
  180. package/dist/lib/plugins/openapi/SchemaListViewItem.js +16 -0
  181. package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
  182. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
  183. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
  184. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
  185. package/dist/lib/plugins/openapi/Sidecar.js +26 -19
  186. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  187. package/dist/lib/plugins/openapi/SidecarBox.d.ts +1 -0
  188. package/dist/lib/plugins/openapi/SidecarBox.js +3 -2
  189. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  190. package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
  191. package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
  192. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
  193. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +8 -0
  194. package/dist/lib/plugins/openapi/StaggeredRender.js +18 -0
  195. package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -0
  196. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
  197. package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
  198. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
  199. package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
  200. package/dist/lib/plugins/openapi/client/createServer.js +30 -0
  201. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
  202. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
  203. package/dist/lib/plugins/openapi/{worker/createSharedWorkerClient.js → client/createWorkerClient.js} +15 -2
  204. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
  205. package/dist/lib/plugins/openapi/client/interfaces.d.ts +4 -0
  206. package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
  207. package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
  208. package/dist/lib/plugins/openapi/{worker → client}/worker.js +2 -2
  209. package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
  210. package/dist/lib/plugins/openapi/context.d.ts +5 -0
  211. package/dist/lib/plugins/openapi/context.js +11 -0
  212. package/dist/lib/plugins/openapi/context.js.map +1 -0
  213. package/dist/lib/plugins/openapi/index.d.ts +4 -18
  214. package/dist/lib/plugins/openapi/index.js +35 -20
  215. package/dist/lib/plugins/openapi/index.js.map +1 -1
  216. package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
  217. package/dist/lib/plugins/openapi/interfaces.js +2 -0
  218. package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
  219. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +2 -2
  220. package/dist/lib/plugins/openapi/playground/PathParams.js +9 -12
  221. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  222. package/dist/lib/plugins/openapi/playground/Playground.d.ts +5 -5
  223. package/dist/lib/plugins/openapi/playground/Playground.js +31 -15
  224. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  225. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -0
  226. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +12 -0
  227. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
  228. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +2 -2
  229. package/dist/lib/plugins/openapi/playground/QueryParams.js +13 -9
  230. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  231. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
  232. package/dist/lib/plugins/openapi/playground/createUrl.js +5 -9
  233. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
  234. package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
  235. package/dist/lib/plugins/openapi/util/prose.js +4 -0
  236. package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
  237. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  238. package/dist/lib/plugins/openapi-worker.js +1 -1
  239. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  240. package/dist/lib/plugins/redirect/index.d.ts +0 -1
  241. package/dist/lib/plugins/redirect/index.js +3 -4
  242. package/dist/lib/plugins/redirect/index.js.map +1 -1
  243. package/dist/lib/ui/Callout.js +2 -2
  244. package/dist/lib/ui/Callout.js.map +1 -1
  245. package/dist/lib/ui/Card.js +1 -1
  246. package/dist/lib/ui/Card.js.map +1 -1
  247. package/dist/lib/ui/DropdownMenu.d.ts +27 -0
  248. package/dist/lib/ui/DropdownMenu.js +36 -0
  249. package/dist/lib/ui/DropdownMenu.js.map +1 -0
  250. package/dist/lib/ui/Input.js.map +1 -0
  251. package/dist/lib/ui/button-variants.d.ts +2 -2
  252. package/dist/lib/ui/button-variants.js +1 -0
  253. package/dist/lib/ui/button-variants.js.map +1 -1
  254. package/dist/lib/util/MdxComponents.d.ts +2 -2
  255. package/dist/lib/util/MdxComponents.js +7 -5
  256. package/dist/lib/util/MdxComponents.js.map +1 -1
  257. package/dist/lib/util/groupBy.d.ts +1 -6
  258. package/dist/lib/util/groupBy.js +10 -8
  259. package/dist/lib/util/groupBy.js.map +1 -1
  260. package/dist/lib/util/invariant.d.ts +6 -0
  261. package/dist/lib/util/invariant.js +21 -0
  262. package/dist/lib/util/invariant.js.map +1 -0
  263. package/dist/lib/util/joinPath.js +2 -1
  264. package/dist/lib/util/joinPath.js.map +1 -1
  265. package/dist/lib/util/logInit.d.ts +1 -0
  266. package/dist/lib/util/logInit.js +9 -0
  267. package/dist/lib/util/logInit.js.map +1 -0
  268. package/dist/lib/util/objectEntries.d.ts +4 -0
  269. package/dist/lib/util/objectEntries.js +2 -0
  270. package/dist/lib/util/objectEntries.js.map +1 -0
  271. package/dist/lib/util/renderIf.d.ts +1 -0
  272. package/dist/lib/util/renderIf.js +2 -0
  273. package/dist/lib/util/renderIf.js.map +1 -0
  274. package/dist/lib/util/requestIdleCallbackPolyfill.d.ts +1 -0
  275. package/dist/lib/util/requestIdleCallbackPolyfill.js +7 -0
  276. package/dist/lib/util/requestIdleCallbackPolyfill.js.map +1 -0
  277. package/dist/vite/build.js +30 -7
  278. package/dist/vite/build.js.map +1 -1
  279. package/dist/vite/config.d.ts +21 -12
  280. package/dist/vite/config.js +107 -55
  281. package/dist/vite/config.js.map +1 -1
  282. package/dist/vite/config.test.js +6 -3
  283. package/dist/vite/config.test.js.map +1 -1
  284. package/dist/vite/dev-server.d.ts +2 -1
  285. package/dist/vite/dev-server.js +44 -15
  286. package/dist/vite/dev-server.js.map +1 -1
  287. package/dist/vite/html.js +18 -5
  288. package/dist/vite/html.js.map +1 -1
  289. package/dist/vite/plugin-api-keys.js +7 -8
  290. package/dist/vite/plugin-api-keys.js.map +1 -1
  291. package/dist/vite/plugin-api.js +9 -20
  292. package/dist/vite/plugin-api.js.map +1 -1
  293. package/dist/vite/plugin-auth.js +5 -6
  294. package/dist/vite/plugin-auth.js.map +1 -1
  295. package/dist/vite/plugin-component.js +5 -2
  296. package/dist/vite/plugin-component.js.map +1 -1
  297. package/dist/vite/plugin-config.d.ts +0 -2
  298. package/dist/vite/plugin-config.js +2 -13
  299. package/dist/vite/plugin-config.js.map +1 -1
  300. package/dist/vite/plugin-custom-css.d.ts +6 -0
  301. package/dist/vite/plugin-custom-css.js +54 -0
  302. package/dist/vite/plugin-custom-css.js.map +1 -0
  303. package/dist/vite/plugin-docs.js +15 -5
  304. package/dist/vite/plugin-docs.js.map +1 -1
  305. package/dist/vite/plugin-mdx.d.ts +3 -1
  306. package/dist/vite/plugin-mdx.js +5 -5
  307. package/dist/vite/plugin-mdx.js.map +1 -1
  308. package/dist/vite/plugin-metadata.js +1 -1
  309. package/dist/vite/plugin-metadata.js.map +1 -1
  310. package/dist/vite/plugin-redirect.js +10 -10
  311. package/dist/vite/plugin-redirect.js.map +1 -1
  312. package/dist/vite/plugin.js +3 -5
  313. package/dist/vite/plugin.js.map +1 -1
  314. package/dist/vite/prerender.d.ts +17 -0
  315. package/dist/vite/prerender.js +79 -0
  316. package/dist/vite/prerender.js.map +1 -0
  317. package/lib/AnchorLink-C_pYhuZi.js +705 -0
  318. package/lib/AnchorLink-C_pYhuZi.js.map +1 -0
  319. package/lib/AuthenticationPlugin-RvXALgvS.js +52 -0
  320. package/lib/AuthenticationPlugin-RvXALgvS.js.map +1 -0
  321. package/lib/CategoryHeading-D5Q-X6lE.js +10 -0
  322. package/lib/CategoryHeading-D5Q-X6lE.js.map +1 -0
  323. package/lib/Combination-Cq0UkOXq.js +2774 -0
  324. package/lib/Combination-Cq0UkOXq.js.map +1 -0
  325. package/lib/DevPortalProvider-BBhQ8kgI.js +1125 -0
  326. package/lib/DevPortalProvider-BBhQ8kgI.js.map +1 -0
  327. package/lib/Input-DdAxw3vC.js +2239 -0
  328. package/lib/Input-DdAxw3vC.js.map +1 -0
  329. package/lib/Markdown-DsCvZnhw.js +15035 -0
  330. package/lib/Markdown-DsCvZnhw.js.map +1 -0
  331. package/lib/MdxPage-B_7x36CA.js +200 -0
  332. package/lib/MdxPage-B_7x36CA.js.map +1 -0
  333. package/lib/OperationList-i6FGZUu4.js +5467 -0
  334. package/lib/OperationList-i6FGZUu4.js.map +1 -0
  335. package/lib/Route-Bsrd0acQ.js +13 -0
  336. package/lib/Route-Bsrd0acQ.js.map +1 -0
  337. package/lib/SlotletProvider-CpNYmq6S.js +102 -0
  338. package/lib/SlotletProvider-CpNYmq6S.js.map +1 -0
  339. package/lib/Spinner-BBPlEab_.js +359 -0
  340. package/lib/Spinner-BBPlEab_.js.map +1 -0
  341. package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
  342. package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
  343. package/lib/assets/index-BPdJm2ty.js +1 -0
  344. package/lib/assets/index-BPdJm2ty.js.map +1 -0
  345. package/lib/assets/{worker-BCcpCNJ7.js → worker-BWwCA-wk.js} +10727 -10300
  346. package/lib/assets/worker-BWwCA-wk.js.map +1 -0
  347. package/lib/context-_fYfJFgk.js +14 -0
  348. package/lib/context-_fYfJFgk.js.map +1 -0
  349. package/lib/index-DT-cf5tv.js +726 -0
  350. package/lib/index-DT-cf5tv.js.map +1 -0
  351. package/lib/index-pI9JkN46.js +4765 -0
  352. package/lib/index-pI9JkN46.js.map +1 -0
  353. package/lib/jsx-runtime-BIr0WBt_.js +1526 -0
  354. package/lib/jsx-runtime-BIr0WBt_.js.map +1 -0
  355. package/lib/prism-bash.min-DadFsM4Z.js +1 -0
  356. package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
  357. package/lib/prism-csharp.min-Yizuc34Y.js +1 -0
  358. package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
  359. package/lib/prism-java.min-d5iT_mOd.js +1 -0
  360. package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
  361. package/lib/prism-json.min-B1GJqK1k.js +1 -0
  362. package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
  363. package/lib/prism-markup-templating-DZrrEs0A.js +1 -0
  364. package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
  365. package/lib/prism-objectivec.min-BXSWqpJJ.js +1 -0
  366. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
  367. package/lib/prism-php.min-o7FpoMP_.js +1 -0
  368. package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
  369. package/lib/prism-ruby.min-C7LwcKyz.js +1 -0
  370. package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
  371. package/lib/router-BiRCp01d.js +2971 -0
  372. package/lib/router-BiRCp01d.js.map +1 -0
  373. package/lib/slugify-CiPVjteN.js +28 -0
  374. package/lib/slugify-CiPVjteN.js.map +1 -0
  375. package/lib/state-DKdaQzvh.js +288 -0
  376. package/lib/state-DKdaQzvh.js.map +1 -0
  377. package/lib/urql-DMlBWUKL.js +1 -0
  378. package/lib/urql-DMlBWUKL.js.map +1 -0
  379. package/lib/zudoku.auth-auth0.js +15 -13
  380. package/lib/zudoku.auth-auth0.js.map +1 -0
  381. package/lib/zudoku.auth-clerk.js +59 -29
  382. package/lib/zudoku.auth-clerk.js.map +1 -0
  383. package/lib/zudoku.auth-openid.js +720 -542
  384. package/lib/zudoku.auth-openid.js.map +1 -0
  385. package/lib/zudoku.components.js +1835 -550
  386. package/lib/zudoku.components.js.map +1 -0
  387. package/lib/zudoku.openapi-worker.js +15035 -146
  388. package/lib/zudoku.openapi-worker.js.map +1 -0
  389. package/lib/zudoku.plugin-api-keys.js +300 -0
  390. package/lib/zudoku.plugin-api-keys.js.map +1 -0
  391. package/lib/zudoku.plugin-custom-page.js +13 -0
  392. package/lib/zudoku.plugin-custom-page.js.map +1 -0
  393. package/lib/zudoku.plugin-markdown.js +48 -0
  394. package/lib/zudoku.plugin-markdown.js.map +1 -0
  395. package/lib/zudoku.plugin-openapi.js +10 -0
  396. package/lib/zudoku.plugin-openapi.js.map +1 -0
  397. package/lib/zudoku.plugin-redirect.js +11 -0
  398. package/lib/zudoku.plugin-redirect.js.map +1 -0
  399. package/package.json +60 -25
  400. package/src/app/App.tsx +0 -41
  401. package/src/app/demo-cdn.html +26 -0
  402. package/src/app/demo.html +18 -0
  403. package/src/app/demo.tsx +45 -0
  404. package/src/app/entry.client.tsx +47 -0
  405. package/src/app/entry.server.tsx +160 -0
  406. package/src/app/main.css +84 -4
  407. package/src/app/main.tsx +87 -15
  408. package/src/app/standalone.html +20 -0
  409. package/src/app/standalone.tsx +51 -0
  410. package/src/app/tailwind.ts +2 -6
  411. package/src/lib/authentication/AuthenticationPlugin.tsx +38 -0
  412. package/src/lib/authentication/Callback.tsx +4 -4
  413. package/src/lib/authentication/authentication.ts +6 -12
  414. package/src/lib/authentication/components/SignIn.tsx +11 -0
  415. package/src/lib/authentication/components/SignOut.tsx +11 -0
  416. package/src/lib/authentication/components/SignUp.tsx +11 -0
  417. package/src/lib/authentication/hook.ts +2 -2
  418. package/src/lib/authentication/providers/auth0.tsx +6 -5
  419. package/src/lib/authentication/providers/clerk.tsx +63 -31
  420. package/src/lib/authentication/providers/openid.tsx +77 -18
  421. package/src/lib/components/Bootstrap.tsx +44 -0
  422. package/src/lib/components/DevPortal.tsx +59 -49
  423. package/src/lib/components/DeveloperHint.tsx +25 -0
  424. package/src/lib/components/ErrorPage.tsx +28 -0
  425. package/src/lib/components/Header.tsx +97 -32
  426. package/src/lib/components/Heading.tsx +26 -7
  427. package/src/lib/components/InlineCode.tsx +19 -0
  428. package/src/lib/components/Layout.tsx +12 -7
  429. package/src/lib/components/NotFoundPage.tsx +33 -0
  430. package/src/lib/components/SlotletProvider.tsx +25 -0
  431. package/src/lib/components/SyntaxHighlight.tsx +53 -44
  432. package/src/lib/components/TopNavigation.tsx +6 -1
  433. package/src/lib/components/context/DevPortalProvider.ts +24 -4
  434. package/src/lib/components/index.ts +25 -3
  435. package/src/lib/components/navigation/SideNavigation.tsx +3 -0
  436. package/src/lib/components/navigation/SideNavigationCategory.tsx +5 -9
  437. package/src/lib/components/navigation/SideNavigationItem.tsx +5 -9
  438. package/src/lib/components/navigation/useNavigationCollapsibleState.ts +21 -6
  439. package/src/lib/core/DevPortalContext.ts +56 -25
  440. package/src/lib/core/plugins.ts +26 -5
  441. package/src/lib/errors/ErrorAlert.tsx +21 -0
  442. package/src/lib/errors/RouterError.tsx +13 -0
  443. package/src/lib/errors/ServerError.tsx +5 -0
  444. package/src/lib/errors/TopLevelError.tsx +8 -0
  445. package/src/lib/oas/graphql/index.ts +9 -5
  446. package/src/lib/oas/parser/index.ts +41 -20
  447. package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +2 -2
  448. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +29 -0
  449. package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +19 -9
  450. package/src/lib/plugins/{api-key → api-keys}/index.tsx +17 -41
  451. package/src/lib/plugins/custom-page/index.tsx +22 -0
  452. package/src/lib/plugins/markdown/MdxPage.tsx +51 -34
  453. package/src/lib/plugins/markdown/Toc.tsx +53 -40
  454. package/src/lib/plugins/markdown/generateRoutes.tsx +16 -6
  455. package/src/lib/plugins/markdown/index.tsx +10 -7
  456. package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -16
  457. package/src/lib/plugins/openapi/OperationList.tsx +46 -10
  458. package/src/lib/plugins/openapi/OperationListItem.tsx +68 -42
  459. package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
  460. package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
  461. package/src/lib/plugins/openapi/{MakeRequest.tsx → PlaygroundDialogWrapper.tsx} +3 -19
  462. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -16
  463. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -2
  464. package/src/lib/plugins/openapi/Route.tsx +21 -0
  465. package/src/lib/plugins/openapi/SchemaListView.tsx +23 -192
  466. package/src/lib/plugins/openapi/SchemaListViewItem.tsx +110 -0
  467. package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
  468. package/src/lib/plugins/openapi/Sidecar.tsx +40 -28
  469. package/src/lib/plugins/openapi/SidecarBox.tsx +13 -2
  470. package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +6 -3
  471. package/src/lib/plugins/openapi/StaggeredRender.tsx +31 -0
  472. package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
  473. package/src/lib/plugins/openapi/client/createServer.ts +33 -0
  474. package/src/lib/plugins/openapi/{worker/createSharedWorkerClient.ts → client/createWorkerClient.ts} +21 -2
  475. package/src/lib/plugins/openapi/client/interfaces.ts +5 -0
  476. package/src/lib/plugins/openapi/{worker → client}/worker.ts +3 -3
  477. package/src/lib/plugins/openapi/context.tsx +16 -0
  478. package/src/lib/plugins/openapi/index.tsx +59 -52
  479. package/src/lib/plugins/openapi/interfaces.ts +9 -0
  480. package/src/lib/plugins/openapi/playground/PathParams.tsx +80 -48
  481. package/src/lib/plugins/openapi/playground/Playground.tsx +200 -210
  482. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +36 -0
  483. package/src/lib/plugins/openapi/playground/QueryParams.tsx +92 -65
  484. package/src/lib/plugins/openapi/playground/createUrl.ts +12 -15
  485. package/src/lib/plugins/openapi/util/prose.ts +7 -0
  486. package/src/lib/plugins/openapi-worker.ts +1 -1
  487. package/src/lib/plugins/redirect/index.tsx +3 -4
  488. package/src/lib/ui/Callout.tsx +4 -4
  489. package/src/lib/ui/Card.tsx +1 -1
  490. package/src/lib/ui/DropdownMenu.tsx +199 -0
  491. package/src/lib/ui/button-variants.ts +1 -0
  492. package/src/lib/util/MdxComponents.tsx +7 -15
  493. package/src/lib/util/groupBy.ts +7 -12
  494. package/src/lib/util/invariant.ts +26 -0
  495. package/src/lib/util/joinPath.tsx +2 -1
  496. package/src/lib/util/logInit.ts +9 -0
  497. package/src/lib/util/objectEntries.ts +5 -0
  498. package/src/lib/util/renderIf.ts +4 -0
  499. package/src/lib/util/requestIdleCallbackPolyfill.ts +6 -0
  500. package/dist/lib/components/Input.js.map +0 -1
  501. package/dist/lib/components/Link.d.ts +0 -1
  502. package/dist/lib/components/Link.js +0 -2
  503. package/dist/lib/components/Link.js.map +0 -1
  504. package/dist/lib/components/Router.d.ts +0 -4
  505. package/dist/lib/components/Router.js +0 -20
  506. package/dist/lib/components/Router.js.map +0 -1
  507. package/dist/lib/core/helmet.d.ts +0 -4
  508. package/dist/lib/core/helmet.js +0 -5
  509. package/dist/lib/core/helmet.js.map +0 -1
  510. package/dist/lib/core/icons.d.ts +0 -1
  511. package/dist/lib/core/icons.js +0 -2
  512. package/dist/lib/core/icons.js.map +0 -1
  513. package/dist/lib/core/router.d.ts +0 -1
  514. package/dist/lib/core/router.js +0 -2
  515. package/dist/lib/core/router.js.map +0 -1
  516. package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
  517. package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -38
  518. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
  519. package/dist/lib/plugins/api-key/index.js.map +0 -1
  520. package/dist/lib/plugins/index.d.ts +0 -4
  521. package/dist/lib/plugins/index.js +0 -5
  522. package/dist/lib/plugins/index.js.map +0 -1
  523. package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
  524. package/dist/lib/plugins/openapi/Select.js +0 -5
  525. package/dist/lib/plugins/openapi/Select.js.map +0 -1
  526. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
  527. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
  528. package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +0 -1
  529. package/dist/lib/plugins/openapi/worker/shared-worker.js +0 -6
  530. package/dist/lib/plugins/openapi/worker/shared-worker.js.map +0 -1
  531. package/dist/lib/plugins/openapi/worker/worker.js.map +0 -1
  532. package/dist/vite/common.d.ts +0 -1
  533. package/dist/vite/common.js +0 -5
  534. package/dist/vite/common.js.map +0 -1
  535. package/dist/vite/plugin-html.d.ts +0 -3
  536. package/dist/vite/plugin-html.js +0 -47
  537. package/dist/vite/plugin-html.js.map +0 -1
  538. package/dist/vite/plugin-openapi-worker.d.ts +0 -4
  539. package/dist/vite/plugin-openapi-worker.js +0 -28
  540. package/dist/vite/plugin-openapi-worker.js.map +0 -1
  541. package/lib/Spinner-BewqqUU-.js +0 -8413
  542. package/lib/clerk-Wslx_mPo.js +0 -19685
  543. package/lib/index-PyGcnQFX.js +0 -3462
  544. package/lib/loglevel-CoH7VSwE.js +0 -152
  545. package/lib/state-2Hu1renZ.js +0 -313
  546. package/lib/zudoku.plugins.js +0 -19902
  547. package/src/lib/components/Link.tsx +0 -1
  548. package/src/lib/components/Router.tsx +0 -28
  549. package/src/lib/core/helmet.ts +0 -5
  550. package/src/lib/core/icons.tsx +0 -1
  551. package/src/lib/core/router.tsx +0 -1
  552. package/src/lib/plugins/index.ts +0 -4
  553. package/src/lib/plugins/openapi/worker/shared-worker.ts +0 -5
  554. /package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.d.ts +0 -0
  555. /package/dist/lib/plugins/{api-key → api-keys}/SettingsApiKeys.d.ts +0 -0
  556. /package/dist/lib/plugins/openapi/{worker → client}/worker.d.ts +0 -0
  557. /package/dist/lib/{components → ui}/Input.d.ts +0 -0
  558. /package/dist/lib/{components → ui}/Input.js +0 -0
  559. /package/src/lib/{components → ui}/Input.tsx +0 -0
@@ -0,0 +1,705 @@
1
+ var re = Object.defineProperty;
2
+ var ne = (e, t, r) => t in e ? re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var T = (e, t, r) => ne(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import d, { Component as L } from "react";
5
+ import { a as F } from "./_commonjsHelpers-BVfed4GL.js";
6
+ import { a as se, j as oe } from "./jsx-runtime-BIr0WBt_.js";
7
+ import { L as ie } from "./Markdown-DsCvZnhw.js";
8
+ const k = {}, X = d.createContext(k);
9
+ function ae(e) {
10
+ const t = d.useContext(X);
11
+ return d.useMemo(
12
+ function() {
13
+ return typeof e == "function" ? e(t) : { ...t, ...e };
14
+ },
15
+ [t, e]
16
+ );
17
+ }
18
+ function Ke(e) {
19
+ let t;
20
+ return e.disableParentContext ? t = typeof e.components == "function" ? e.components(k) : e.components || k : t = ae(e.components), d.createElement(
21
+ X.Provider,
22
+ { value: t },
23
+ e.children
24
+ );
25
+ }
26
+ var le = typeof Element < "u", ce = typeof Map == "function", ue = typeof Set == "function", fe = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
27
+ function x(e, t) {
28
+ if (e === t) return !0;
29
+ if (e && t && typeof e == "object" && typeof t == "object") {
30
+ if (e.constructor !== t.constructor) return !1;
31
+ var r, n, s;
32
+ if (Array.isArray(e)) {
33
+ if (r = e.length, r != t.length) return !1;
34
+ for (n = r; n-- !== 0; )
35
+ if (!x(e[n], t[n])) return !1;
36
+ return !0;
37
+ }
38
+ var o;
39
+ if (ce && e instanceof Map && t instanceof Map) {
40
+ if (e.size !== t.size) return !1;
41
+ for (o = e.entries(); !(n = o.next()).done; )
42
+ if (!t.has(n.value[0])) return !1;
43
+ for (o = e.entries(); !(n = o.next()).done; )
44
+ if (!x(n.value[1], t.get(n.value[0]))) return !1;
45
+ return !0;
46
+ }
47
+ if (ue && e instanceof Set && t instanceof Set) {
48
+ if (e.size !== t.size) return !1;
49
+ for (o = e.entries(); !(n = o.next()).done; )
50
+ if (!t.has(n.value[0])) return !1;
51
+ return !0;
52
+ }
53
+ if (fe && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
54
+ if (r = e.length, r != t.length) return !1;
55
+ for (n = r; n-- !== 0; )
56
+ if (e[n] !== t[n]) return !1;
57
+ return !0;
58
+ }
59
+ if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
60
+ if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function") return e.valueOf() === t.valueOf();
61
+ if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function") return e.toString() === t.toString();
62
+ if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
63
+ for (n = r; n-- !== 0; )
64
+ if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
65
+ if (le && e instanceof Element) return !1;
66
+ for (n = r; n-- !== 0; )
67
+ if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !x(e[s[n]], t[s[n]]))
68
+ return !1;
69
+ return !0;
70
+ }
71
+ return e !== e && t !== t;
72
+ }
73
+ var pe = function(t, r) {
74
+ try {
75
+ return x(t, r);
76
+ } catch (n) {
77
+ if ((n.message || "").match(/stack|recursion/i))
78
+ return console.warn("react-fast-compare cannot handle circular refs"), !1;
79
+ throw n;
80
+ }
81
+ };
82
+ const me = /* @__PURE__ */ F(pe);
83
+ var de = function(e, t, r, n, s, o, c, i) {
84
+ if (process.env.NODE_ENV !== "production" && t === void 0)
85
+ throw new Error("invariant requires an error message argument");
86
+ if (!e) {
87
+ var l;
88
+ if (t === void 0)
89
+ l = new Error(
90
+ "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
91
+ );
92
+ else {
93
+ var a = [r, n, s, o, c, i], u = 0;
94
+ l = new Error(
95
+ t.replace(/%s/g, function() {
96
+ return a[u++];
97
+ })
98
+ ), l.name = "Invariant Violation";
99
+ }
100
+ throw l.framesToPop = 1, l;
101
+ }
102
+ }, he = de;
103
+ const z = /* @__PURE__ */ F(he);
104
+ var ye = function(t, r, n, s) {
105
+ var o = n ? n.call(s, t, r) : void 0;
106
+ if (o !== void 0)
107
+ return !!o;
108
+ if (t === r)
109
+ return !0;
110
+ if (typeof t != "object" || !t || typeof r != "object" || !r)
111
+ return !1;
112
+ var c = Object.keys(t), i = Object.keys(r);
113
+ if (c.length !== i.length)
114
+ return !1;
115
+ for (var l = Object.prototype.hasOwnProperty.bind(r), a = 0; a < c.length; a++) {
116
+ var u = c[a];
117
+ if (!l(u))
118
+ return !1;
119
+ var f = t[u], h = r[u];
120
+ if (o = n ? n.call(s, f, h, u) : void 0, o === !1 || o === void 0 && f !== h)
121
+ return !1;
122
+ }
123
+ return !0;
124
+ };
125
+ const Te = /* @__PURE__ */ F(ye);
126
+ var W = /* @__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))(W || {}), I = {
127
+ link: { rel: ["amphtml", "canonical", "alternate"] },
128
+ script: { type: ["application/ld+json"] },
129
+ meta: {
130
+ charset: "",
131
+ name: ["generator", "robots", "description"],
132
+ property: [
133
+ "og:type",
134
+ "og:title",
135
+ "og:url",
136
+ "og:image",
137
+ "og:image:alt",
138
+ "og:description",
139
+ "twitter:url",
140
+ "twitter:title",
141
+ "twitter:description",
142
+ "twitter:image",
143
+ "twitter:image:alt",
144
+ "twitter:card",
145
+ "twitter:site"
146
+ ]
147
+ }
148
+ }, N = Object.values(W), U = {
149
+ accesskey: "accessKey",
150
+ charset: "charSet",
151
+ class: "className",
152
+ contenteditable: "contentEditable",
153
+ contextmenu: "contextMenu",
154
+ "http-equiv": "httpEquiv",
155
+ itemprop: "itemProp",
156
+ tabindex: "tabIndex"
157
+ }, ge = Object.entries(U).reduce(
158
+ (e, [t, r]) => (e[r] = t, e),
159
+ {}
160
+ ), y = "data-rh", C = {
161
+ DEFAULT_TITLE: "defaultTitle",
162
+ DEFER: "defer",
163
+ ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
164
+ ON_CHANGE_CLIENT_STATE: "onChangeClientState",
165
+ TITLE_TEMPLATE: "titleTemplate",
166
+ PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
167
+ }, E = (e, t) => {
168
+ for (let r = e.length - 1; r >= 0; r -= 1) {
169
+ const n = e[r];
170
+ if (Object.prototype.hasOwnProperty.call(n, t))
171
+ return n[t];
172
+ }
173
+ return null;
174
+ }, ve = (e) => {
175
+ let t = E(
176
+ e,
177
+ "title"
178
+ /* TITLE */
179
+ );
180
+ const r = E(e, C.TITLE_TEMPLATE);
181
+ if (Array.isArray(t) && (t = t.join("")), r && t)
182
+ return r.replace(/%s/g, () => t);
183
+ const n = E(e, C.DEFAULT_TITLE);
184
+ return t || n || void 0;
185
+ }, Ae = (e) => E(e, C.ON_CHANGE_CLIENT_STATE) || (() => {
186
+ }), $ = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), Ce = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
187
+ if (!r.length) {
188
+ const s = Object.keys(n);
189
+ for (let o = 0; o < s.length; o += 1) {
190
+ const i = s[o].toLowerCase();
191
+ if (e.indexOf(i) !== -1 && n[i])
192
+ return r.concat(n);
193
+ }
194
+ }
195
+ return r;
196
+ }, []), Ee = (e) => console && typeof console.warn == "function" && console.warn(e), b = (e, t, r) => {
197
+ const n = {};
198
+ return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && Ee(
199
+ `Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
200
+ ), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
201
+ const c = {};
202
+ o.filter((l) => {
203
+ let a;
204
+ const u = Object.keys(l);
205
+ for (let h = 0; h < u.length; h += 1) {
206
+ const p = u[h], g = p.toLowerCase();
207
+ t.indexOf(g) !== -1 && !(a === "rel" && l[a].toLowerCase() === "canonical") && !(g === "rel" && l[g].toLowerCase() === "stylesheet") && (a = g), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (a = p);
208
+ }
209
+ if (!a || !l[a])
210
+ return !1;
211
+ const f = l[a].toLowerCase();
212
+ return n[a] || (n[a] = {}), c[a] || (c[a] = {}), n[a][f] ? !1 : (c[a][f] = !0, !0);
213
+ }).reverse().forEach((l) => s.push(l));
214
+ const i = Object.keys(c);
215
+ for (let l = 0; l < i.length; l += 1) {
216
+ const a = i[l], u = {
217
+ ...n[a],
218
+ ...c[a]
219
+ };
220
+ n[a] = u;
221
+ }
222
+ return s;
223
+ }, []).reverse();
224
+ }, be = (e, t) => {
225
+ if (Array.isArray(e) && e.length) {
226
+ for (let r = 0; r < e.length; r += 1)
227
+ if (e[r][t])
228
+ return !0;
229
+ }
230
+ return !1;
231
+ }, Oe = (e) => ({
232
+ baseTag: Ce([
233
+ "href"
234
+ /* HREF */
235
+ ], e),
236
+ bodyAttributes: $("bodyAttributes", e),
237
+ defer: E(e, C.DEFER),
238
+ encode: E(e, C.ENCODE_SPECIAL_CHARACTERS),
239
+ htmlAttributes: $("htmlAttributes", e),
240
+ linkTags: b(
241
+ "link",
242
+ [
243
+ "rel",
244
+ "href"
245
+ /* HREF */
246
+ ],
247
+ e
248
+ ),
249
+ metaTags: b(
250
+ "meta",
251
+ [
252
+ "name",
253
+ "charset",
254
+ "http-equiv",
255
+ "property",
256
+ "itemprop"
257
+ /* ITEM_PROP */
258
+ ],
259
+ e
260
+ ),
261
+ noscriptTags: b("noscript", [
262
+ "innerHTML"
263
+ /* INNER_HTML */
264
+ ], e),
265
+ onChangeClientState: Ae(e),
266
+ scriptTags: b(
267
+ "script",
268
+ [
269
+ "src",
270
+ "innerHTML"
271
+ /* INNER_HTML */
272
+ ],
273
+ e
274
+ ),
275
+ styleTags: b("style", [
276
+ "cssText"
277
+ /* CSS_TEXT */
278
+ ], e),
279
+ title: ve(e),
280
+ titleAttributes: $("titleAttributes", e),
281
+ prioritizeSeoTags: be(e, C.PRIORITIZE_SEO_TAGS)
282
+ }), Z = (e) => Array.isArray(e) ? e.join("") : e, Se = (e, t) => {
283
+ const r = Object.keys(e);
284
+ for (let n = 0; n < r.length; n += 1)
285
+ if (t[r[n]] && t[r[n]].includes(e[r[n]]))
286
+ return !0;
287
+ return !1;
288
+ }, D = (e, t) => Array.isArray(e) ? e.reduce(
289
+ (r, n) => (Se(n, t) ? r.priority.push(n) : r.default.push(n), r),
290
+ { priority: [], default: [] }
291
+ ) : { default: e, priority: [] }, V = (e, t) => ({
292
+ ...e,
293
+ [t]: void 0
294
+ }), we = [
295
+ "noscript",
296
+ "script",
297
+ "style"
298
+ /* STYLE */
299
+ ], 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;"), G = (e) => Object.keys(e).reduce((t, r) => {
300
+ const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
301
+ return t ? `${t} ${n}` : n;
302
+ }, ""), xe = (e, t, r, n) => {
303
+ const s = G(r), o = Z(t);
304
+ return s ? `<${e} ${y}="true" ${s}>${H(
305
+ o,
306
+ n
307
+ )}</${e}>` : `<${e} ${y}="true">${H(
308
+ o,
309
+ n
310
+ )}</${e}>`;
311
+ }, Pe = (e, t, r = !0) => t.reduce((n, s) => {
312
+ const o = s, c = Object.keys(o).filter(
313
+ (a) => !(a === "innerHTML" || a === "cssText")
314
+ ).reduce((a, u) => {
315
+ const f = typeof o[u] > "u" ? u : `${u}="${H(o[u], r)}"`;
316
+ return a ? `${a} ${f}` : f;
317
+ }, ""), i = o.innerHTML || o.cssText || "", l = we.indexOf(e) === -1;
318
+ return `${n}<${e} ${y}="true" ${c}${l ? "/>" : `>${i}</${e}>`}`;
319
+ }, ""), J = (e, t = {}) => Object.keys(e).reduce((r, n) => {
320
+ const s = U[n];
321
+ return r[s || n] = e[n], r;
322
+ }, t), Ie = (e, t, r) => {
323
+ const n = {
324
+ key: t,
325
+ [y]: !0
326
+ }, s = J(r, n);
327
+ return [d.createElement("title", s, t)];
328
+ }, P = (e, t) => t.map((r, n) => {
329
+ const s = {
330
+ key: n,
331
+ [y]: !0
332
+ };
333
+ return Object.keys(r).forEach((o) => {
334
+ const i = U[o] || o;
335
+ if (i === "innerHTML" || i === "cssText") {
336
+ const l = r.innerHTML || r.cssText;
337
+ s.dangerouslySetInnerHTML = { __html: l };
338
+ } else
339
+ s[i] = r[o];
340
+ }), d.createElement(e, s);
341
+ }), m = (e, t, r = !0) => {
342
+ switch (e) {
343
+ case "title":
344
+ return {
345
+ toComponent: () => Ie(e, t.title, t.titleAttributes),
346
+ toString: () => xe(e, t.title, t.titleAttributes, r)
347
+ };
348
+ case "bodyAttributes":
349
+ case "htmlAttributes":
350
+ return {
351
+ toComponent: () => J(t),
352
+ toString: () => G(t)
353
+ };
354
+ default:
355
+ return {
356
+ toComponent: () => P(e, t),
357
+ toString: () => Pe(e, t, r)
358
+ };
359
+ }
360
+ }, $e = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
361
+ const s = D(e, I.meta), o = D(t, I.link), c = D(r, I.script);
362
+ return {
363
+ priorityMethods: {
364
+ toComponent: () => [
365
+ ...P("meta", s.priority),
366
+ ...P("link", o.priority),
367
+ ...P("script", c.priority)
368
+ ],
369
+ toString: () => (
370
+ // generate all the tags as strings and concatenate them
371
+ `${m("meta", s.priority, n)} ${m(
372
+ "link",
373
+ o.priority,
374
+ n
375
+ )} ${m("script", c.priority, n)}`
376
+ )
377
+ },
378
+ metaTags: s.default,
379
+ linkTags: o.default,
380
+ scriptTags: c.default
381
+ };
382
+ }, De = (e) => {
383
+ const {
384
+ baseTag: t,
385
+ bodyAttributes: r,
386
+ encode: n = !0,
387
+ htmlAttributes: s,
388
+ noscriptTags: o,
389
+ styleTags: c,
390
+ title: i = "",
391
+ titleAttributes: l,
392
+ prioritizeSeoTags: a
393
+ } = e;
394
+ let { linkTags: u, metaTags: f, scriptTags: h } = e, p = {
395
+ toComponent: () => {
396
+ },
397
+ toString: () => ""
398
+ };
399
+ return a && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: h } = $e(e)), {
400
+ priority: p,
401
+ base: m("base", t, n),
402
+ bodyAttributes: m("bodyAttributes", r, n),
403
+ htmlAttributes: m("htmlAttributes", s, n),
404
+ link: m("link", u, n),
405
+ meta: m("meta", f, n),
406
+ noscript: m("noscript", o, n),
407
+ script: m("script", h, n),
408
+ style: m("style", c, n),
409
+ title: m("title", { title: i, titleAttributes: l }, n)
410
+ };
411
+ }, _ = De, w = [], Q = !!(typeof window < "u" && window.document && window.document.createElement), R = class {
412
+ constructor(e, t) {
413
+ T(this, "instances", []);
414
+ T(this, "canUseDOM", Q);
415
+ T(this, "context");
416
+ T(this, "value", {
417
+ setHelmet: (e) => {
418
+ this.context.helmet = e;
419
+ },
420
+ helmetInstances: {
421
+ get: () => this.canUseDOM ? w : this.instances,
422
+ add: (e) => {
423
+ (this.canUseDOM ? w : this.instances).push(e);
424
+ },
425
+ remove: (e) => {
426
+ const t = (this.canUseDOM ? w : this.instances).indexOf(e);
427
+ (this.canUseDOM ? w : this.instances).splice(t, 1);
428
+ }
429
+ }
430
+ });
431
+ this.context = e, this.canUseDOM = t || !1, t || (e.helmet = _({
432
+ baseTag: [],
433
+ bodyAttributes: {},
434
+ encodeSpecialCharacters: !0,
435
+ htmlAttributes: {},
436
+ linkTags: [],
437
+ metaTags: [],
438
+ noscriptTags: [],
439
+ scriptTags: [],
440
+ styleTags: [],
441
+ title: "",
442
+ titleAttributes: {}
443
+ }));
444
+ }
445
+ }, Me = {}, ee = d.createContext(Me), v, ke = (v = class extends L {
446
+ constructor(r) {
447
+ super(r);
448
+ T(this, "helmetData");
449
+ this.helmetData = new R(this.props.context || {}, v.canUseDOM);
450
+ }
451
+ render() {
452
+ return /* @__PURE__ */ d.createElement(ee.Provider, { value: this.helmetData.value }, this.props.children);
453
+ }
454
+ }, T(v, "canUseDOM", Q), v), A = (e, t) => {
455
+ const r = document.head || document.querySelector(
456
+ "head"
457
+ /* HEAD */
458
+ ), n = r.querySelectorAll(`${e}[${y}]`), s = [].slice.call(n), o = [];
459
+ let c;
460
+ return t && t.length && t.forEach((i) => {
461
+ const l = document.createElement(e);
462
+ for (const a in i)
463
+ if (Object.prototype.hasOwnProperty.call(i, a))
464
+ if (a === "innerHTML")
465
+ l.innerHTML = i.innerHTML;
466
+ else if (a === "cssText")
467
+ l.styleSheet ? l.styleSheet.cssText = i.cssText : l.appendChild(document.createTextNode(i.cssText));
468
+ else {
469
+ const u = a, f = typeof i[u] > "u" ? "" : i[u];
470
+ l.setAttribute(a, f);
471
+ }
472
+ l.setAttribute(y, "true"), s.some((a, u) => (c = u, l.isEqualNode(a))) ? s.splice(c, 1) : o.push(l);
473
+ }), s.forEach((i) => {
474
+ var l;
475
+ return (l = i.parentNode) == null ? void 0 : l.removeChild(i);
476
+ }), o.forEach((i) => r.appendChild(i)), {
477
+ oldTags: s,
478
+ newTags: o
479
+ };
480
+ }, j = (e, t) => {
481
+ const r = document.getElementsByTagName(e)[0];
482
+ if (!r)
483
+ return;
484
+ const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s], c = Object.keys(t);
485
+ for (const i of c) {
486
+ const l = t[i] || "";
487
+ r.getAttribute(i) !== l && r.setAttribute(i, l), s.indexOf(i) === -1 && s.push(i);
488
+ const a = o.indexOf(i);
489
+ a !== -1 && o.splice(a, 1);
490
+ }
491
+ for (let i = o.length - 1; i >= 0; i -= 1)
492
+ r.removeAttribute(o[i]);
493
+ s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !== c.join(",") && r.setAttribute(y, c.join(","));
494
+ }, He = (e, t) => {
495
+ typeof e < "u" && document.title !== e && (document.title = Z(e)), j("title", t);
496
+ }, Y = (e, t) => {
497
+ const {
498
+ baseTag: r,
499
+ bodyAttributes: n,
500
+ htmlAttributes: s,
501
+ linkTags: o,
502
+ metaTags: c,
503
+ noscriptTags: i,
504
+ onChangeClientState: l,
505
+ scriptTags: a,
506
+ styleTags: u,
507
+ title: f,
508
+ titleAttributes: h
509
+ } = e;
510
+ j("body", n), j("html", s), He(f, h);
511
+ const p = {
512
+ baseTag: A("base", r),
513
+ linkTags: A("link", o),
514
+ metaTags: A("meta", c),
515
+ noscriptTags: A("noscript", i),
516
+ scriptTags: A("script", a),
517
+ styleTags: A("style", u)
518
+ }, g = {}, q = {};
519
+ Object.keys(p).forEach((S) => {
520
+ const { newTags: K, oldTags: te } = p[S];
521
+ K.length && (g[S] = K), te.length && (q[S] = p[S].oldTags);
522
+ }), t && t(), l(e, g, q);
523
+ }, O = null, _e = (e) => {
524
+ O && cancelAnimationFrame(O), e.defer ? O = requestAnimationFrame(() => {
525
+ Y(e, () => {
526
+ O = null;
527
+ });
528
+ }) : (Y(e), O = null);
529
+ }, Re = _e, B = class extends L {
530
+ constructor() {
531
+ super(...arguments);
532
+ T(this, "rendered", !1);
533
+ }
534
+ shouldComponentUpdate(t) {
535
+ return !Te(t, this.props);
536
+ }
537
+ componentDidUpdate() {
538
+ this.emitChange();
539
+ }
540
+ componentWillUnmount() {
541
+ const { helmetInstances: t } = this.props.context;
542
+ t.remove(this), this.emitChange();
543
+ }
544
+ emitChange() {
545
+ const { helmetInstances: t, setHelmet: r } = this.props.context;
546
+ let n = null;
547
+ const s = Oe(
548
+ t.get().map((o) => {
549
+ const c = { ...o.props };
550
+ return delete c.context, c;
551
+ })
552
+ );
553
+ ke.canUseDOM ? Re(s) : _ && (n = _(s)), r(n);
554
+ }
555
+ // componentWillMount will be deprecated
556
+ // for SSR, initialize on first render
557
+ // constructor is also unsafe in StrictMode
558
+ init() {
559
+ if (this.rendered)
560
+ return;
561
+ this.rendered = !0;
562
+ const { helmetInstances: t } = this.props.context;
563
+ t.add(this), this.emitChange();
564
+ }
565
+ render() {
566
+ return this.init(), null;
567
+ }
568
+ }, M, ze = (M = class extends L {
569
+ shouldComponentUpdate(e) {
570
+ return !me(V(this.props, "helmetData"), V(e, "helmetData"));
571
+ }
572
+ mapNestedChildrenToProps(e, t) {
573
+ if (!t)
574
+ return null;
575
+ switch (e.type) {
576
+ case "script":
577
+ case "noscript":
578
+ return {
579
+ innerHTML: t
580
+ };
581
+ case "style":
582
+ return {
583
+ cssText: t
584
+ };
585
+ default:
586
+ throw new Error(
587
+ `<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`
588
+ );
589
+ }
590
+ }
591
+ flattenArrayTypeChildren(e, t, r, n) {
592
+ return {
593
+ ...t,
594
+ [e.type]: [
595
+ ...t[e.type] || [],
596
+ {
597
+ ...r,
598
+ ...this.mapNestedChildrenToProps(e, n)
599
+ }
600
+ ]
601
+ };
602
+ }
603
+ mapObjectTypeChildren(e, t, r, n) {
604
+ switch (e.type) {
605
+ case "title":
606
+ return {
607
+ ...t,
608
+ [e.type]: n,
609
+ titleAttributes: { ...r }
610
+ };
611
+ case "body":
612
+ return {
613
+ ...t,
614
+ bodyAttributes: { ...r }
615
+ };
616
+ case "html":
617
+ return {
618
+ ...t,
619
+ htmlAttributes: { ...r }
620
+ };
621
+ default:
622
+ return {
623
+ ...t,
624
+ [e.type]: { ...r }
625
+ };
626
+ }
627
+ }
628
+ mapArrayTypeChildrenToProps(e, t) {
629
+ let r = { ...t };
630
+ return Object.keys(e).forEach((n) => {
631
+ r = {
632
+ ...r,
633
+ [n]: e[n]
634
+ };
635
+ }), r;
636
+ }
637
+ warnOnInvalidChildren(e, t) {
638
+ return z(
639
+ N.some((r) => e.type === r),
640
+ 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 ${N.join(
641
+ ", "
642
+ )} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
643
+ ), z(
644
+ !t || typeof t == "string" || Array.isArray(t) && !t.some((r) => typeof r != "string"),
645
+ `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.`
646
+ ), !0;
647
+ }
648
+ mapChildrenToProps(e, t) {
649
+ let r = {};
650
+ return d.Children.forEach(e, (n) => {
651
+ if (!n || !n.props)
652
+ return;
653
+ const { children: s, ...o } = n.props, c = Object.keys(o).reduce((l, a) => (l[ge[a] || a] = o[a], l), {});
654
+ let { type: i } = n;
655
+ switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(n, s), i) {
656
+ case "Symbol(react.fragment)":
657
+ t = this.mapChildrenToProps(s, t);
658
+ break;
659
+ case "link":
660
+ case "meta":
661
+ case "noscript":
662
+ case "script":
663
+ case "style":
664
+ r = this.flattenArrayTypeChildren(
665
+ n,
666
+ r,
667
+ c,
668
+ s
669
+ );
670
+ break;
671
+ default:
672
+ t = this.mapObjectTypeChildren(n, t, c, s);
673
+ break;
674
+ }
675
+ }), this.mapArrayTypeChildrenToProps(r, t);
676
+ }
677
+ render() {
678
+ const { children: e, ...t } = this.props;
679
+ let r = { ...t }, { helmetData: n } = t;
680
+ if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof R)) {
681
+ const s = n;
682
+ n = new R(s.context, !0), delete r.helmetData;
683
+ }
684
+ return n ? /* @__PURE__ */ d.createElement(B, { ...r, context: n.value }) : /* @__PURE__ */ d.createElement(ee.Consumer, null, (s) => /* @__PURE__ */ d.createElement(B, { ...r, context: s }));
685
+ }
686
+ }, T(M, "defaultProps", {
687
+ defer: !0,
688
+ encodeSpecialCharacters: !0,
689
+ prioritizeSeoTags: !1
690
+ }), M);
691
+ const Ne = (e) => {
692
+ const t = se(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
693
+ var o;
694
+ !(r != null && r.startsWith("#")) || r !== t.hash || (s.preventDefault(), (o = document.getElementById(r.slice(1))) == null || o.scrollIntoView());
695
+ };
696
+ return /* @__PURE__ */ oe.jsx(ie, { onClick: n, ...e });
697
+ };
698
+ export {
699
+ Ne as A,
700
+ ke as H,
701
+ Ke as M,
702
+ ze as a,
703
+ ae as u
704
+ };
705
+ //# sourceMappingURL=AnchorLink-C_pYhuZi.js.map