zudoku 0.0.0-e88b02e → 0.0.0-e8a949d

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 (435) hide show
  1. package/dist/app/demo.js +1 -1
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/entry.client.js +1 -15
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.js +1 -2
  6. package/dist/app/entry.server.js.map +1 -1
  7. package/dist/app/main.d.ts +1 -1
  8. package/dist/app/sentry.js +1 -1
  9. package/dist/app/sentry.js.map +1 -1
  10. package/dist/app/standalone.js +1 -1
  11. package/dist/app/standalone.js.map +1 -1
  12. package/dist/cli/cli.js +0 -2
  13. package/dist/cli/cli.js.map +1 -1
  14. package/dist/cli/cmds/build.js +1 -0
  15. package/dist/cli/cmds/build.js.map +1 -1
  16. package/dist/cli/cmds/dev.js +5 -0
  17. package/dist/cli/cmds/dev.js.map +1 -1
  18. package/dist/cli/dev/handler.d.ts +1 -0
  19. package/dist/cli/dev/handler.js +1 -1
  20. package/dist/cli/dev/handler.js.map +1 -1
  21. package/dist/config/loader.d.ts +9 -1
  22. package/dist/config/loader.js +44 -7
  23. package/dist/config/loader.js.map +1 -1
  24. package/dist/config/validators/common.d.ts +186 -152
  25. package/dist/config/validators/common.js +6 -2
  26. package/dist/config/validators/common.js.map +1 -1
  27. package/dist/config/validators/icon-types.d.ts +1 -1
  28. package/dist/config/validators/validate.d.ts +123 -109
  29. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  30. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  31. package/dist/lib/authentication/components/SignIn.js +1 -1
  32. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  33. package/dist/lib/authentication/components/SignOut.js +1 -1
  34. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  35. package/dist/lib/authentication/providers/openid.d.ts +7 -0
  36. package/dist/lib/authentication/providers/openid.js +1 -0
  37. package/dist/lib/authentication/providers/openid.js.map +1 -1
  38. package/dist/lib/components/AnchorLink.d.ts +1 -1
  39. package/dist/lib/components/AnchorLink.js +1 -1
  40. package/dist/lib/components/AnchorLink.js.map +1 -1
  41. package/dist/lib/components/Bootstrap.d.ts +1 -2
  42. package/dist/lib/components/Bootstrap.js +3 -3
  43. package/dist/lib/components/Bootstrap.js.map +1 -1
  44. package/dist/lib/components/Header.js +2 -2
  45. package/dist/lib/components/Header.js.map +1 -1
  46. package/dist/lib/components/Layout.js +2 -2
  47. package/dist/lib/components/Layout.js.map +1 -1
  48. package/dist/lib/components/Markdown.js +1 -1
  49. package/dist/lib/components/Markdown.js.map +1 -1
  50. package/dist/lib/components/MobileTopNavigation.js +1 -1
  51. package/dist/lib/components/NotFoundPage.js +1 -1
  52. package/dist/lib/components/NotFoundPage.js.map +1 -1
  53. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  54. package/dist/lib/components/ReactMarkdown.js +182 -0
  55. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  56. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  57. package/dist/lib/components/TopNavigation.js +1 -1
  58. package/dist/lib/components/TopNavigation.js.map +1 -1
  59. package/dist/lib/components/Zudoku.js +1 -1
  60. package/dist/lib/components/Zudoku.js.map +1 -1
  61. package/dist/lib/components/context/ZudokuContext.js +1 -1
  62. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  63. package/dist/lib/components/index.d.ts +20 -16
  64. package/dist/lib/components/index.js +7 -3
  65. package/dist/lib/components/index.js.map +1 -1
  66. package/dist/lib/components/navigation/Sidebar.js +1 -1
  67. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -9
  68. package/dist/lib/components/navigation/SidebarBadge.js +0 -9
  69. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  70. package/dist/lib/components/navigation/SidebarCategory.js +1 -1
  71. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  72. package/dist/lib/components/navigation/SidebarItem.js +1 -1
  73. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  74. package/dist/lib/components/navigation/utils.js +1 -1
  75. package/dist/lib/components/navigation/utils.js.map +1 -1
  76. package/dist/lib/core/plugins.d.ts +3 -5
  77. package/dist/lib/core/plugins.js.map +1 -1
  78. package/dist/lib/errors/RouterError.js +1 -1
  79. package/dist/lib/errors/RouterError.js.map +1 -1
  80. package/dist/lib/oas/parser/dereference/index.d.ts +1 -0
  81. package/dist/lib/oas/parser/dereference/index.js +6 -3
  82. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  83. package/dist/lib/plugins/api-catalog/Catalog.d.ts +2 -6
  84. package/dist/lib/plugins/api-catalog/Catalog.js +22 -15
  85. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  86. package/dist/lib/plugins/api-catalog/index.d.ts +8 -1
  87. package/dist/lib/plugins/api-catalog/index.js +2 -2
  88. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  89. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  90. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  91. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  92. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  93. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  94. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  95. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  96. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  97. package/dist/lib/plugins/markdown/index.d.ts +1 -0
  98. package/dist/lib/plugins/markdown/index.js.map +1 -1
  99. package/dist/lib/plugins/openapi/OperationList.js +10 -34
  100. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  101. package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -1
  102. package/dist/lib/plugins/openapi/OperationListItem.js +14 -4
  103. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  104. package/dist/lib/plugins/openapi/Route.d.ts +4 -2
  105. package/dist/lib/plugins/openapi/Route.js +22 -2
  106. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  107. package/dist/lib/plugins/openapi/Sidecar.js +3 -13
  108. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  109. package/dist/lib/plugins/openapi/client/useCreateQuery.js +10 -1
  110. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  111. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  112. package/dist/lib/plugins/openapi/index.js +18 -17
  113. package/dist/lib/plugins/openapi/index.js.map +1 -1
  114. package/dist/lib/plugins/openapi/interfaces.d.ts +19 -0
  115. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +7 -1
  116. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -1
  117. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  118. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  119. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  120. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  121. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  122. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  123. package/dist/lib/plugins/redirect/index.js +1 -1
  124. package/dist/lib/plugins/redirect/index.js.map +1 -1
  125. package/dist/lib/plugins/search-inkeep/index.d.ts +22 -3
  126. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  127. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  128. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  129. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  130. package/dist/lib/util/MdxComponents.d.ts +16 -16
  131. package/dist/lib/util/MdxComponents.js +1 -3
  132. package/dist/lib/util/MdxComponents.js.map +1 -1
  133. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  134. package/dist/lib/util/useExposedProps.js +1 -1
  135. package/dist/lib/util/useExposedProps.js.map +1 -1
  136. package/dist/lib/util/useOnScreen.d.ts +1 -1
  137. package/dist/lib/util/useScrollToAnchor.js +1 -1
  138. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  139. package/dist/lib/util/useScrollToTop.js +1 -1
  140. package/dist/lib/util/useScrollToTop.js.map +1 -1
  141. package/dist/vite/build.js +4 -1
  142. package/dist/vite/build.js.map +1 -1
  143. package/dist/vite/config.d.ts +5 -1
  144. package/dist/vite/config.js +50 -25
  145. package/dist/vite/config.js.map +1 -1
  146. package/dist/vite/config.test.js +4 -1
  147. package/dist/vite/config.test.js.map +1 -1
  148. package/dist/vite/css/collect.d.ts +2 -0
  149. package/dist/vite/css/collect.js +27 -0
  150. package/dist/vite/css/collect.js.map +1 -0
  151. package/dist/vite/css/plugin.d.ts +5 -0
  152. package/dist/vite/css/plugin.js +79 -0
  153. package/dist/vite/css/plugin.js.map +1 -0
  154. package/dist/vite/dev-server.d.ts +1 -0
  155. package/dist/vite/dev-server.js +16 -6
  156. package/dist/vite/dev-server.js.map +1 -1
  157. package/dist/vite/plugin-api.js +52 -19
  158. package/dist/vite/plugin-api.js.map +1 -1
  159. package/dist/vite/plugin-mdx.js +2 -0
  160. package/dist/vite/plugin-mdx.js.map +1 -1
  161. package/dist/vite/plugin-theme-css.js +53 -1
  162. package/dist/vite/plugin-theme-css.js.map +1 -1
  163. package/dist/vite/plugin.js +4 -0
  164. package/dist/vite/plugin.js.map +1 -1
  165. package/lib/{AnchorLink-BR0MvI7n.js → AnchorLink-DFZZbmvr.js} +13 -14
  166. package/lib/AnchorLink-DFZZbmvr.js.map +1 -0
  167. package/lib/{AuthenticationPlugin-D0Em0SwR.js → AuthenticationPlugin-DVLEc6cm.js} +15 -16
  168. package/lib/AuthenticationPlugin-DVLEc6cm.js.map +1 -0
  169. package/lib/{Button-jK0EsymC.js → Button-DeAoTouo.js} +4 -4
  170. package/lib/{Button-jK0EsymC.js.map → Button-DeAoTouo.js.map} +1 -1
  171. package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-CBconmtI.js} +3 -3
  172. package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-CBconmtI.js.map} +1 -1
  173. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  174. package/lib/{Dialog-k70Qfukb.js → Dialog-Bxv1yEIg.js} +3 -3
  175. package/lib/{Dialog-k70Qfukb.js.map → Dialog-Bxv1yEIg.js.map} +1 -1
  176. package/lib/{Markdown-CdkU5HcM.js → Markdown-CZDLNOFc.js} +13235 -13225
  177. package/lib/Markdown-CZDLNOFc.js.map +1 -0
  178. package/lib/{MdxPage-ChziqNPp.js → MdxPage-DKMbBROv.js} +25 -25
  179. package/lib/MdxPage-DKMbBROv.js.map +1 -0
  180. package/lib/OperationList-CqLL5P5l.js +5068 -0
  181. package/lib/OperationList-CqLL5P5l.js.map +1 -0
  182. package/lib/Route-DYwKZ_c_.js +35 -0
  183. package/lib/Route-DYwKZ_c_.js.map +1 -0
  184. package/lib/{Select-O9ZM3ZgX.js → Select-B_IxRUUC.js} +5 -5
  185. package/lib/{Select-O9ZM3ZgX.js.map → Select-B_IxRUUC.js.map} +1 -1
  186. package/lib/SlotletProvider-pfc9oejW.js +221 -0
  187. package/lib/SlotletProvider-pfc9oejW.js.map +1 -0
  188. package/lib/{Spinner-3cQDBVGr.js → Spinner-DuxJLLNE.js} +2 -2
  189. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-DuxJLLNE.js.map} +1 -1
  190. package/lib/StaggeredRender-DgsamH_G.js +17 -0
  191. package/lib/StaggeredRender-DgsamH_G.js.map +1 -0
  192. package/lib/{SyntaxHighlight-C31iouiO.js → SyntaxHighlight-Bz-lOJtH.js} +8 -10
  193. package/lib/{SyntaxHighlight-C31iouiO.js.map → SyntaxHighlight-Bz-lOJtH.js.map} +1 -1
  194. package/lib/{utils-DcpDOncX.js → ZudokuContext-hmLMUdf2.js} +54 -55
  195. package/lib/ZudokuContext-hmLMUdf2.js.map +1 -0
  196. package/lib/assets/{index-B_Jk_Yzp.js → index-C7jnHK4b.js} +218 -197
  197. package/lib/assets/index-C7jnHK4b.js.map +1 -0
  198. package/lib/assets/{worker-C_2va8B8.js → worker-DV9Ecqy9.js} +5267 -4887
  199. package/lib/assets/worker-DV9Ecqy9.js.map +1 -0
  200. package/lib/chunk-D52XG6IA-Dl7HLe6j.js +1823 -0
  201. package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +1 -0
  202. package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
  203. package/lib/cn-qaFjX9_3.js.map +1 -0
  204. package/lib/{context-D1nXWxm7.js → context-h_UkBLvr.js} +2 -2
  205. package/lib/context-h_UkBLvr.js.map +1 -0
  206. package/lib/{createServer-BCAHdrpE.js → createServer-C4C0OO0m.js} +4804 -4462
  207. package/lib/createServer-C4C0OO0m.js.map +1 -0
  208. package/lib/{hook-hEqe7fPB.js → hook-CHq7pFyz.js} +3 -3
  209. package/lib/{hook-hEqe7fPB.js.map → hook-CHq7pFyz.js.map} +1 -1
  210. package/lib/{index-CkwDvuPt.js → index-CBXSgjaE.js} +259 -238
  211. package/lib/index-CBXSgjaE.js.map +1 -0
  212. package/lib/index-CPNSgwSb.js +36 -0
  213. package/lib/index-CPNSgwSb.js.map +1 -0
  214. package/lib/index-DyBL--Kz.js +826 -0
  215. package/lib/index-DyBL--Kz.js.map +1 -0
  216. package/lib/{index-DjB6H4GT.js → index-DzRORsY1.js} +444 -441
  217. package/lib/index-DzRORsY1.js.map +1 -0
  218. package/lib/index-LNp6rxyU.js.map +1 -1
  219. package/lib/index.esm-BSV1C092.js +692 -0
  220. package/lib/{index.esm-Bm8pj-bc.js.map → index.esm-BSV1C092.js.map} +1 -1
  221. package/lib/index.esm-BnnBRKJX.js +1214 -0
  222. package/lib/index.esm-BnnBRKJX.js.map +1 -0
  223. package/lib/invariant-Caa8-XvF.js.map +1 -1
  224. package/lib/jsx-runtime-Dx-03ztt.js +446 -0
  225. package/lib/jsx-runtime-Dx-03ztt.js.map +1 -0
  226. package/lib/post-processors/removeExtensions.js.map +1 -1
  227. package/lib/post-processors/removePaths.js.map +1 -1
  228. package/lib/post-processors/traverse.js.map +1 -1
  229. package/lib/prism-csharp.min-DUwvItt4.js +63 -0
  230. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-DUwvItt4.js.map} +1 -1
  231. package/lib/prism-java.min-BtgBR4yd.js +35 -0
  232. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BtgBR4yd.js.map} +1 -1
  233. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  234. package/lib/prism-ruby.min-DeDXCp1r.js +38 -0
  235. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-DeDXCp1r.js.map} +1 -1
  236. package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
  237. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
  238. package/lib/state-CFQsUZUP.js +202 -0
  239. package/lib/state-CFQsUZUP.js.map +1 -0
  240. package/lib/ui/Accordion.js +2 -2
  241. package/lib/ui/Accordion.js.map +1 -1
  242. package/lib/ui/ActionButton.js +4 -4
  243. package/lib/ui/ActionButton.js.map +1 -1
  244. package/lib/ui/Alert.js +3 -3
  245. package/lib/ui/Alert.js.map +1 -1
  246. package/lib/ui/AlertDialog.js +2 -2
  247. package/lib/ui/AlertDialog.js.map +1 -1
  248. package/lib/ui/Badge.js +3 -3
  249. package/lib/ui/Badge.js.map +1 -1
  250. package/lib/ui/Breadcrumb.js +2 -2
  251. package/lib/ui/Breadcrumb.js.map +1 -1
  252. package/lib/ui/Button.js +3 -3
  253. package/lib/ui/Button.js.map +1 -1
  254. package/lib/ui/Callout.js +2 -2
  255. package/lib/ui/Callout.js.map +1 -1
  256. package/lib/ui/Card.js +2 -2
  257. package/lib/ui/Card.js.map +1 -1
  258. package/lib/ui/Carousel.js +407 -401
  259. package/lib/ui/Carousel.js.map +1 -1
  260. package/lib/ui/Checkbox.js +2 -2
  261. package/lib/ui/Checkbox.js.map +1 -1
  262. package/lib/ui/Command.js +111 -108
  263. package/lib/ui/Command.js.map +1 -1
  264. package/lib/ui/Dialog.js +2 -2
  265. package/lib/ui/Dialog.js.map +1 -1
  266. package/lib/ui/Drawer.js +2 -2
  267. package/lib/ui/Drawer.js.map +1 -1
  268. package/lib/ui/DropdownMenu.js +2 -2
  269. package/lib/ui/DropdownMenu.js.map +1 -1
  270. package/lib/ui/Form.js +3 -3
  271. package/lib/ui/Form.js.map +1 -1
  272. package/lib/ui/HoverCard.js +2 -2
  273. package/lib/ui/Input.js +2 -2
  274. package/lib/ui/Input.js.map +1 -1
  275. package/lib/ui/Label.js +3 -3
  276. package/lib/ui/Pagination.js +2 -2
  277. package/lib/ui/Pagination.js.map +1 -1
  278. package/lib/ui/Popover.js +2 -2
  279. package/lib/ui/Popover.js.map +1 -1
  280. package/lib/ui/Progress.js +2 -2
  281. package/lib/ui/Progress.js.map +1 -1
  282. package/lib/ui/RadioGroup.js +2 -2
  283. package/lib/ui/RadioGroup.js.map +1 -1
  284. package/lib/ui/ScrollArea.js +2 -2
  285. package/lib/ui/ScrollArea.js.map +1 -1
  286. package/lib/ui/Select.js +2 -2
  287. package/lib/ui/Select.js.map +1 -1
  288. package/lib/ui/Skeleton.js +2 -2
  289. package/lib/ui/Skeleton.js.map +1 -1
  290. package/lib/ui/Slider.js +2 -2
  291. package/lib/ui/Switch.js +2 -2
  292. package/lib/ui/Switch.js.map +1 -1
  293. package/lib/ui/Tabs.js +2 -2
  294. package/lib/ui/Textarea.js +2 -2
  295. package/lib/ui/Textarea.js.map +1 -1
  296. package/lib/ui/Toggle.js +3 -3
  297. package/lib/ui/Toggle.js.map +1 -1
  298. package/lib/ui/ToggleGroup.js +2 -2
  299. package/lib/ui/ToggleGroup.js.map +1 -1
  300. package/lib/ui/Tooltip.js +2 -2
  301. package/lib/useExposedProps-DE9lR6MF.js +9 -0
  302. package/lib/useExposedProps-DE9lR6MF.js.map +1 -0
  303. package/lib/zudoku.auth-auth0.js +1 -1
  304. package/lib/zudoku.auth-auth0.js.map +1 -1
  305. package/lib/zudoku.auth-clerk.js +2 -2
  306. package/lib/zudoku.auth-clerk.js.map +1 -1
  307. package/lib/zudoku.auth-openid.js +369 -366
  308. package/lib/zudoku.auth-openid.js.map +1 -1
  309. package/lib/zudoku.components.js +722 -959
  310. package/lib/zudoku.components.js.map +1 -1
  311. package/lib/zudoku.openapi-worker.js +1 -1
  312. package/lib/zudoku.openapi-worker.js.map +1 -1
  313. package/lib/zudoku.plugin-api-catalog.js +81 -79
  314. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  315. package/lib/zudoku.plugin-api-keys.js +15 -16
  316. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  317. package/lib/zudoku.plugin-custom-pages.js +4 -4
  318. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  319. package/lib/zudoku.plugin-markdown.js +2 -2
  320. package/lib/zudoku.plugin-markdown.js.map +1 -1
  321. package/lib/zudoku.plugin-openapi.js +5 -5
  322. package/lib/zudoku.plugin-redirect.js +1 -1
  323. package/lib/zudoku.plugin-redirect.js.map +1 -1
  324. package/lib/zudoku.plugin-search-inkeep.js +53 -24
  325. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  326. package/package.json +52 -47
  327. package/src/app/demo.tsx +1 -1
  328. package/src/app/entry.client.tsx +1 -15
  329. package/src/app/entry.server.tsx +2 -2
  330. package/src/app/main.tsx +1 -1
  331. package/src/app/sentry.ts +1 -1
  332. package/src/app/standalone.tsx +1 -1
  333. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  334. package/src/lib/authentication/components/SignIn.tsx +1 -1
  335. package/src/lib/authentication/components/SignOut.tsx +1 -1
  336. package/src/lib/authentication/providers/openid.tsx +5 -3
  337. package/src/lib/components/AnchorLink.tsx +1 -1
  338. package/src/lib/components/Bootstrap.tsx +4 -6
  339. package/src/lib/components/Header.tsx +2 -2
  340. package/src/lib/components/Layout.tsx +2 -2
  341. package/src/lib/components/Markdown.tsx +1 -1
  342. package/src/lib/components/MobileTopNavigation.tsx +1 -1
  343. package/src/lib/components/NotFoundPage.tsx +1 -1
  344. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  345. package/src/lib/components/ReactMarkdown.tsx +264 -0
  346. package/src/lib/components/SlotletProvider.tsx +1 -1
  347. package/src/lib/components/TopNavigation.tsx +1 -1
  348. package/src/lib/components/Zudoku.tsx +1 -1
  349. package/src/lib/components/context/ZudokuContext.ts +1 -1
  350. package/src/lib/components/index.ts +8 -4
  351. package/src/lib/components/navigation/Sidebar.tsx +1 -1
  352. package/src/lib/components/navigation/SidebarBadge.tsx +0 -10
  353. package/src/lib/components/navigation/SidebarCategory.tsx +1 -1
  354. package/src/lib/components/navigation/SidebarItem.tsx +1 -1
  355. package/src/lib/components/navigation/utils.ts +1 -1
  356. package/src/lib/core/plugins.ts +3 -7
  357. package/src/lib/errors/RouterError.tsx +1 -1
  358. package/src/lib/oas/parser/dereference/index.ts +9 -4
  359. package/src/lib/plugins/api-catalog/Catalog.tsx +59 -60
  360. package/src/lib/plugins/api-catalog/index.tsx +14 -0
  361. package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
  362. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  363. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  364. package/src/lib/plugins/api-keys/index.tsx +1 -1
  365. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  366. package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
  367. package/src/lib/plugins/markdown/index.tsx +2 -1
  368. package/src/lib/plugins/openapi/OperationList.tsx +45 -50
  369. package/src/lib/plugins/openapi/OperationListItem.tsx +31 -2
  370. package/src/lib/plugins/openapi/Route.tsx +41 -9
  371. package/src/lib/plugins/openapi/Sidecar.tsx +3 -17
  372. package/src/lib/plugins/openapi/client/useCreateQuery.ts +13 -1
  373. package/src/lib/plugins/openapi/context.tsx +2 -2
  374. package/src/lib/plugins/openapi/index.tsx +37 -28
  375. package/src/lib/plugins/openapi/interfaces.ts +22 -1
  376. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +25 -1
  377. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  378. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  379. package/src/lib/plugins/redirect/index.tsx +1 -1
  380. package/src/lib/plugins/search-inkeep/index.tsx +78 -23
  381. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  382. package/src/lib/util/MdxComponents.tsx +1 -3
  383. package/src/lib/util/createVariantComponent.tsx +2 -2
  384. package/src/lib/util/useExposedProps.tsx +1 -1
  385. package/src/lib/util/useScrollToAnchor.ts +1 -1
  386. package/src/lib/util/useScrollToTop.ts +1 -1
  387. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  388. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  389. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  390. package/lib/AnchorLink-BR0MvI7n.js.map +0 -1
  391. package/lib/AuthenticationPlugin-D0Em0SwR.js.map +0 -1
  392. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  393. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  394. package/lib/Markdown-CdkU5HcM.js.map +0 -1
  395. package/lib/MdxPage-ChziqNPp.js.map +0 -1
  396. package/lib/OperationList-CQKkyrZH.js +0 -4706
  397. package/lib/OperationList-CQKkyrZH.js.map +0 -1
  398. package/lib/Route-DlG_HTMu.js +0 -11
  399. package/lib/Route-DlG_HTMu.js.map +0 -1
  400. package/lib/SidebarBadge-DxFJcJ6V.js +0 -51
  401. package/lib/SidebarBadge-DxFJcJ6V.js.map +0 -1
  402. package/lib/SlotletProvider-D77pO-fA.js +0 -252
  403. package/lib/SlotletProvider-D77pO-fA.js.map +0 -1
  404. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  405. package/lib/assets/worker-C_2va8B8.js.map +0 -1
  406. package/lib/cn-BmFQLtkS.js.map +0 -1
  407. package/lib/context-D1nXWxm7.js.map +0 -1
  408. package/lib/createServer-BCAHdrpE.js.map +0 -1
  409. package/lib/index-BuAyrJe3.js +0 -46
  410. package/lib/index-BuAyrJe3.js.map +0 -1
  411. package/lib/index-CkwDvuPt.js.map +0 -1
  412. package/lib/index-Czzd9rjU.js +0 -899
  413. package/lib/index-Czzd9rjU.js.map +0 -1
  414. package/lib/index-DjB6H4GT.js.map +0 -1
  415. package/lib/index-Yn8c3UWE.js +0 -921
  416. package/lib/index-Yn8c3UWE.js.map +0 -1
  417. package/lib/index.esm-Bm8pj-bc.js +0 -675
  418. package/lib/index.esm-C5mr_sKO.js +0 -1193
  419. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  420. package/lib/jsx-runtime-B6kdoens.js +0 -635
  421. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  422. package/lib/object_hash-CvlLgU-M.js +0 -785
  423. package/lib/object_hash-CvlLgU-M.js.map +0 -1
  424. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  425. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  426. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  427. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  428. package/lib/router-lfyopgBI.js +0 -3024
  429. package/lib/router-lfyopgBI.js.map +0 -1
  430. package/lib/state-tsXBLONe.js +0 -203
  431. package/lib/state-tsXBLONe.js.map +0 -1
  432. package/lib/useExposedProps-CTPtylCV.js +0 -10
  433. package/lib/useExposedProps-CTPtylCV.js.map +0 -1
  434. package/lib/utils-DcpDOncX.js.map +0 -1
  435. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
@@ -1,7 +1,7 @@
1
- import { j as n } from "./jsx-runtime-B6kdoens.js";
2
- import { lazy as a } from "react";
3
- import { C as i } from "./ClientOnly-E7hGysn1.js";
4
- const o = {
1
+ import { j as i } from "./jsx-runtime-Dx-03ztt.js";
2
+ import { useRef as l, useState as f, useMemo as m, useEffect as u } from "react";
3
+ import { C as g } from "./ClientOnly-E7hGysn1.js";
4
+ const h = {
5
5
  theme: {
6
6
  components: {
7
7
  AIChatPageWrapper: {
@@ -19,29 +19,58 @@ const o = {
19
19
  }
20
20
  }
21
21
  }
22
- }, p = {}, c = a(() => import("./InkeepCustomTrigger-CE5-K5ex.js")), l = ({
23
- prefilledQuery: e,
24
- isOpen: r,
25
- onClose: t,
26
- settings: s
27
- }) => /* @__PURE__ */ n.jsx(
28
- c,
29
- {
30
- isOpen: r,
31
- onClose: t,
32
- baseSettings: { ...o, ...s },
33
- aiChatSettings: p,
34
- searchSettings: {
35
- prefilledQuery: e || void 0
22
+ }, k = {}, I = ({
23
+ prefilledQuery: r,
24
+ isOpen: e,
25
+ onClose: n,
26
+ settings: p
27
+ }) => {
28
+ const o = l(null), c = l(null), [s, d] = f(
29
+ typeof Inkeep < "u"
30
+ ), a = m(
31
+ () => ({
32
+ componentType: "CustomTrigger",
33
+ targetElement: o.current,
34
+ properties: {
35
+ isOpen: e,
36
+ onClose: n,
37
+ onOpen: void 0,
38
+ baseSettings: { ...h, ...p },
39
+ searchSettings: {
40
+ prefilledQuery: r || void 0
41
+ },
42
+ aiChatSettings: k
43
+ }
44
+ }),
45
+ [e, n, r, p, o]
46
+ );
47
+ return u(() => {
48
+ if (s) return;
49
+ const t = setInterval(() => {
50
+ typeof Inkeep < "u" && (d(!0), clearInterval(t));
51
+ }, 100);
52
+ return () => clearInterval(t);
53
+ }, [s]), u(() => {
54
+ !s || c.current || (c.current = Inkeep().embed(a));
55
+ }, [a, s]), u(() => {
56
+ var t;
57
+ (t = c.current) == null || t.render({ ...a, isOpen: e });
58
+ }, [a, e]), /* @__PURE__ */ i.jsx("div", { ref: o });
59
+ }, x = (r) => ({
60
+ getHead: () => /* @__PURE__ */ i.jsx(
61
+ "script",
62
+ {
63
+ type: "module",
64
+ src: "https://unpkg.com/@inkeep/uikit-js@0.3.19/dist/embed.js",
65
+ defer: !0
36
66
  }
37
- }
38
- ), d = (e) => ({
67
+ ),
39
68
  renderSearch: ({
40
- isOpen: r,
41
- onClose: t
42
- }) => /* @__PURE__ */ n.jsx(i, { children: /* @__PURE__ */ n.jsx(l, { isOpen: r, onClose: t, settings: e }) })
69
+ isOpen: e,
70
+ onClose: n
71
+ }) => /* @__PURE__ */ i.jsx(g, { children: /* @__PURE__ */ i.jsx(I, { isOpen: e, onClose: n, settings: r }) })
43
72
  });
44
73
  export {
45
- d as inkeepSearchPlugin
74
+ x as inkeepSearchPlugin
46
75
  };
47
76
  //# sourceMappingURL=zudoku.plugin-search-inkeep.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"zudoku.plugin-search-inkeep.js","sources":["../src/lib/plugins/search-inkeep/inkeep.ts","../src/lib/plugins/search-inkeep/index.tsx"],"sourcesContent":["import {\n InkeepAIChatSettings,\n InkeepModalSettings,\n InkeepSearchSettings,\n} from \"@inkeep/widgets\";\n\nconst baseSettings = {\n theme: {\n components: {\n AIChatPageWrapper: {\n defaultProps: {\n size: \"shrink-vertically\",\n variant: \"no-shadow\",\n },\n },\n SearchBarTrigger: {\n defaultProps: {\n size: \"expand\",\n variant: \"subtle\", // Choose from 'emphasized' or 'subtle'\n },\n },\n },\n },\n} as const;\n\nconst modalSettings: InkeepModalSettings = {};\n\nconst searchSettings: InkeepSearchSettings = {};\n\nconst aiChatSettings: InkeepAIChatSettings = {};\n\nexport { aiChatSettings, baseSettings, modalSettings, searchSettings };\n","import type { InkeepWidgetBaseSettings } from \"@inkeep/widgets\";\nimport { lazy } from \"react\";\nimport { ClientOnly } from \"../../components/ClientOnly.js\";\nimport type { ZudokuPlugin } from \"../../core/plugins.js\";\nimport { aiChatSettings, baseSettings } from \"./inkeep.js\";\n\ntype PickedPluginInkeepBaseSettings =\n | \"apiKey\"\n | \"integrationId\"\n | \"organizationId\"\n | \"primaryBrandColor\"\n | \"organizationDisplayName\";\n\ntype PluginInkeepBaseSettings = Pick<\n InkeepWidgetBaseSettings,\n PickedPluginInkeepBaseSettings\n>;\n\nconst Inkeep = lazy(() => import(\"./InkeepCustomTrigger.js\"));\n\nconst InkeepSearch = ({\n prefilledQuery,\n isOpen,\n onClose,\n settings,\n}: {\n isOpen: boolean;\n onClose: () => void;\n prefilledQuery?: string | null;\n settings: PluginInkeepBaseSettings;\n}) => {\n return (\n <Inkeep\n isOpen={isOpen}\n onClose={onClose}\n baseSettings={{ ...baseSettings, ...settings }}\n aiChatSettings={aiChatSettings}\n searchSettings={{\n prefilledQuery: prefilledQuery || undefined,\n }}\n />\n );\n};\n\nexport const inkeepSearchPlugin = (\n settings: PluginInkeepBaseSettings,\n): ZudokuPlugin => {\n return {\n renderSearch: ({\n isOpen,\n onClose,\n }: {\n isOpen: boolean;\n onClose: () => void;\n }) => {\n return (\n <ClientOnly>\n <InkeepSearch isOpen={isOpen} onClose={onClose} settings={settings} />\n </ClientOnly>\n );\n },\n };\n};\n"],"names":["baseSettings","aiChatSettings","Inkeep","lazy","InkeepSearch","prefilledQuery","isOpen","onClose","settings","jsx","inkeepSearchPlugin","ClientOnly"],"mappings":";;;AAMA,MAAMA,IAAe;AAAA,EACnB,OAAO;AAAA,IACL,YAAY;AAAA,MACV,mBAAmB;AAAA,QACjB,cAAc;AAAA,UACZ,MAAM;AAAA,UACN,SAAS;AAAA,QACX;AAAA,MACF;AAAA,MACA,kBAAkB;AAAA,QAChB,cAAc;AAAA,UACZ,MAAM;AAAA,UACN,SAAS;AAAA;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF,GAMMC,IAAuC,CAAC,GCXxCC,IAASC,EAAK,MAAM,OAAO,mCAA0B,CAAC,GAEtDC,IAAe,CAAC;AAAA,EACpB,gBAAAC;AAAA,EACA,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AACF,MAOIC,gBAAAA,EAAA;AAAA,EAACP;AAAA,EAAA;AAAA,IACC,QAAAI;AAAA,IACA,SAAAC;AAAA,IACA,cAAc,EAAE,GAAGP,GAAc,GAAGQ,EAAS;AAAA,IAC7C,gBAAAP;AAAA,IACA,gBAAgB;AAAA,MACd,gBAAgBI,KAAkB;AAAA,IACpC;AAAA,EAAA;AAAA,GAKOK,IAAqB,CAChCF,OAEO;AAAA,EACL,cAAc,CAAC;AAAA,IACb,QAAAF;AAAA,IACA,SAAAC;AAAA,EAAA,4BAMGI,GACC,EAAA,UAAAF,gBAAAA,EAAAA,IAACL,KAAa,QAAAE,GAAgB,SAAAC,GAAkB,UAAAC,EAAoB,CAAA,EACtE,CAAA;AAEJ;"}
1
+ {"version":3,"file":"zudoku.plugin-search-inkeep.js","sources":["../src/lib/plugins/search-inkeep/inkeep.ts","../src/lib/plugins/search-inkeep/index.tsx"],"sourcesContent":["const baseSettings = {\n theme: {\n components: {\n AIChatPageWrapper: {\n defaultProps: {\n size: \"shrink-vertically\",\n variant: \"no-shadow\",\n },\n },\n SearchBarTrigger: {\n defaultProps: {\n size: \"expand\",\n variant: \"subtle\", // Choose from 'emphasized' or 'subtle'\n },\n },\n },\n },\n} as const;\n\nconst modalSettings = {};\n\nconst searchSettings = {};\n\nconst aiChatSettings = {};\n\nexport { aiChatSettings, baseSettings, modalSettings, searchSettings };\n","import { useEffect, useMemo, useRef, useState } from \"react\";\nimport { ClientOnly } from \"../../components/ClientOnly.js\";\nimport type { ZudokuPlugin } from \"../../core/plugins.js\";\nimport { aiChatSettings, baseSettings } from \"./inkeep.js\";\n\ninterface PluginInkeepBaseSettings {\n apiKey?: string;\n integrationId: string;\n organizationId: string;\n organizationDisplayName?: string;\n primaryBrandColor: string;\n}\n\ninterface InkeepEmbedConfig {\n componentType: string;\n targetElement: HTMLElement;\n properties: unknown;\n}\n\ninterface InkeepWidget {\n render: (config: InkeepEmbedConfig & { isOpen: boolean }) => void;\n}\n\ndeclare global {\n let Inkeep: () => {\n embed: (config: InkeepEmbedConfig) => InkeepWidget;\n };\n}\n\nconst InkeepSearch = ({\n prefilledQuery,\n isOpen,\n onClose,\n settings,\n}: {\n isOpen: boolean;\n onClose: () => void;\n prefilledQuery?: string | null;\n settings: PluginInkeepBaseSettings;\n}) => {\n const ref = useRef<HTMLDivElement>(null);\n const widgetRef = useRef<InkeepWidget | null>(null);\n const [isInkeepAvailable, setIsInkeepAvailable] = useState(\n typeof Inkeep !== \"undefined\",\n );\n\n const config: InkeepEmbedConfig = useMemo(\n () => ({\n componentType: \"CustomTrigger\",\n targetElement: ref.current!,\n properties: {\n isOpen,\n onClose,\n onOpen: undefined,\n baseSettings: { ...baseSettings, ...settings },\n searchSettings: {\n prefilledQuery: prefilledQuery || undefined,\n },\n aiChatSettings,\n },\n }),\n [isOpen, onClose, prefilledQuery, settings, ref],\n );\n\n useEffect(() => {\n if (isInkeepAvailable) return;\n\n const checkInkeep = setInterval(() => {\n if (typeof Inkeep !== \"undefined\") {\n setIsInkeepAvailable(true);\n clearInterval(checkInkeep);\n }\n }, 100);\n\n return () => clearInterval(checkInkeep);\n }, [isInkeepAvailable]);\n\n useEffect(() => {\n if (!isInkeepAvailable || widgetRef.current) return;\n\n widgetRef.current = Inkeep().embed(config);\n }, [config, isInkeepAvailable]);\n\n useEffect(() => {\n widgetRef.current?.render({ ...config, isOpen });\n }, [config, isOpen]);\n\n return <div ref={ref} />;\n};\n\nexport const inkeepSearchPlugin = (\n settings: PluginInkeepBaseSettings,\n): ZudokuPlugin => {\n return {\n getHead: () => {\n return (\n <script\n type=\"module\"\n src=\"https://unpkg.com/@inkeep/uikit-js@0.3.19/dist/embed.js\"\n defer\n />\n );\n },\n renderSearch: ({\n isOpen,\n onClose,\n }: {\n isOpen: boolean;\n onClose: () => void;\n }) => {\n return (\n <ClientOnly>\n <InkeepSearch isOpen={isOpen} onClose={onClose} settings={settings} />\n </ClientOnly>\n );\n },\n };\n};\n"],"names":["baseSettings","aiChatSettings","InkeepSearch","prefilledQuery","isOpen","onClose","settings","ref","useRef","widgetRef","isInkeepAvailable","setIsInkeepAvailable","useState","config","useMemo","useEffect","checkInkeep","_a","jsx","inkeepSearchPlugin","ClientOnly"],"mappings":";;;AAAA,MAAMA,IAAe;AAAA,EACnB,OAAO;AAAA,IACL,YAAY;AAAA,MACV,mBAAmB;AAAA,QACjB,cAAc;AAAA,UACZ,MAAM;AAAA,UACN,SAAS;AAAA,QAAA;AAAA,MAEb;AAAA,MACA,kBAAkB;AAAA,QAChB,cAAc;AAAA,UACZ,MAAM;AAAA,UACN,SAAS;AAAA;AAAA,QAAA;AAAA,MACX;AAAA,IACF;AAAA,EACF;AAEJ,GAMMC,IAAiB,CAAC,GCMlBC,IAAe,CAAC;AAAA,EACpB,gBAAAC;AAAA,EACA,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AACF,MAKM;AACE,QAAAC,IAAMC,EAAuB,IAAI,GACjCC,IAAYD,EAA4B,IAAI,GAC5C,CAACE,GAAmBC,CAAoB,IAAIC;AAAA,IAChD,OAAO,SAAW;AAAA,EACpB,GAEMC,IAA4BC;AAAA,IAChC,OAAO;AAAA,MACL,eAAe;AAAA,MACf,eAAeP,EAAI;AAAA,MACnB,YAAY;AAAA,QACV,QAAAH;AAAA,QACA,SAAAC;AAAA,QACA,QAAQ;AAAA,QACR,cAAc,EAAE,GAAGL,GAAc,GAAGM,EAAS;AAAA,QAC7C,gBAAgB;AAAA,UACd,gBAAgBH,KAAkB;AAAA,QACpC;AAAA,QACA,gBAAAF;AAAA,MAAA;AAAA,IACF;AAAA,IAEF,CAACG,GAAQC,GAASF,GAAgBG,GAAUC,CAAG;AAAA,EACjD;AAEA,SAAAQ,EAAU,MAAM;AACd,QAAIL,EAAmB;AAEjB,UAAAM,IAAc,YAAY,MAAM;AAChC,MAAA,OAAO,SAAW,QACpBL,EAAqB,EAAI,GACzB,cAAcK,CAAW;AAAA,OAE1B,GAAG;AAEC,WAAA,MAAM,cAAcA,CAAW;AAAA,EAAA,GACrC,CAACN,CAAiB,CAAC,GAEtBK,EAAU,MAAM;AACV,IAAA,CAACL,KAAqBD,EAAU,YAEpCA,EAAU,UAAU,SAAS,MAAMI,CAAM;AAAA,EAAA,GACxC,CAACA,GAAQH,CAAiB,CAAC,GAE9BK,EAAU,MAAM;;AACd,KAAAE,IAAAR,EAAU,YAAV,QAAAQ,EAAmB,OAAO,EAAE,GAAGJ,GAAQ,QAAAT;EAAQ,GAC9C,CAACS,GAAQT,CAAM,CAAC,GAEZc,gBAAAA,MAAC,SAAI,KAAAX,GAAU;AACxB,GAEaY,IAAqB,CAChCb,OAEO;AAAA,EACL,SAAS,MAELY,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,KAAI;AAAA,MACJ,OAAK;AAAA,IAAA;AAAA,EACP;AAAA,EAGJ,cAAc,CAAC;AAAA,IACb,QAAAd;AAAA,IACA,SAAAC;AAAA,EAAA,4BAMGe,GACC,EAAA,UAAAF,gBAAAA,EAAA,IAAChB,KAAa,QAAAE,GAAgB,SAAAC,GAAkB,UAAAC,GAAoB,EACtE,CAAA;AAGN;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zudoku",
3
- "version": "0.0.0-e88b02e",
3
+ "version": "0.0.0-e8a949d",
4
4
  "type": "module",
5
5
  "homepage": "https://zudoku.dev",
6
6
  "repository": {
@@ -117,15 +117,14 @@
117
117
  "dependencies": {
118
118
  "@envelop/core": "5.0.2",
119
119
  "@graphql-typed-document-node/core": "3.2.0",
120
- "@hiogawa/vite-plugin-ssr-css": "0.0.1",
121
120
  "@hookform/resolvers": "3.9.1",
122
121
  "@lekoarts/rehype-meta-as-attributes": "3.0.1",
123
- "@mdx-js/react": "3.0.1",
124
- "@mdx-js/rollup": "3.0.1",
122
+ "@mdx-js/react": "3.1.0",
123
+ "@mdx-js/rollup": "3.1.0",
125
124
  "@pothos/core": "3.41.0",
126
- "@radix-ui/react-accordion": "1.2.1",
127
- "@radix-ui/react-alert-dialog": "1.1.2",
128
- "@radix-ui/react-aspect-ratio": "1.1.0",
125
+ "@radix-ui/react-accordion": "1.2.2",
126
+ "@radix-ui/react-alert-dialog": "1.1.4",
127
+ "@radix-ui/react-aspect-ratio": "1.1.1",
129
128
  "@radix-ui/react-checkbox": "1.1.2",
130
129
  "@radix-ui/react-collapsible": "1.1.1",
131
130
  "@radix-ui/react-dialog": "1.1.2",
@@ -142,52 +141,54 @@
142
141
  "@radix-ui/react-switch": "1.1.1",
143
142
  "@radix-ui/react-tabs": "1.1.1",
144
143
  "@radix-ui/react-toggle": "1.1.0",
145
- "@radix-ui/react-toggle-group": "1.1.0",
146
- "@radix-ui/react-tooltip": "1.1.3",
144
+ "@radix-ui/react-toggle-group": "1.1.1",
145
+ "@radix-ui/react-tooltip": "1.1.4",
147
146
  "@radix-ui/react-visually-hidden": "1",
148
- "@sentry/node": "8.34.0",
147
+ "@sentry/node": "8.42.0",
149
148
  "@sindresorhus/slugify": "2.2.1",
150
149
  "@stefanprobst/rehype-extract-toc": "2.2.0",
151
150
  "@tailwindcss/typography": "0.5.15",
152
- "@tanstack/react-query": "5.61.0",
153
- "@types/react": "18.3.11",
154
- "@types/react-dom": "18.3.1",
151
+ "@tanstack/react-query": "5.62.3",
152
+ "@types/react": "19.0.1",
153
+ "@types/react-dom": "19.0.1",
155
154
  "@vitejs/plugin-react": "4.3.4",
156
155
  "@zudoku/httpsnippet": "10.0.9",
157
- "@zudoku/react-helmet-async": "2.0.4",
156
+ "@zudoku/react-helmet-async": "2.0.5",
158
157
  "autoprefixer": "10.4.20",
159
158
  "chokidar": "3.6.0",
160
- "class-variance-authority": "0.7.0",
159
+ "class-variance-authority": "0.7.1",
161
160
  "clsx": "2.1.1",
162
161
  "cmdk": "1.0.4",
163
- "dotenv": "16.4.5",
164
- "embla-carousel-react": "8.3.1",
162
+ "devlop": "^1.1.0",
163
+ "dotenv": "16.4.7",
164
+ "embla-carousel-react": "8.5.1",
165
165
  "estree-util-value-to-estree": "3.2.1",
166
- "express": "4.21.1",
166
+ "express": "4.21.2",
167
167
  "glob": "11.0.0",
168
- "graphql": "16.9.0",
168
+ "graphql": "16.10.0",
169
169
  "graphql-type-json": "0.3.2",
170
- "graphql-yoga": "5.7.0",
170
+ "graphql-yoga": "5.10.4",
171
171
  "gray-matter": "4.0.3",
172
+ "hast-util-to-jsx-runtime": "^2.3.2",
172
173
  "hast-util-to-string": "3.0.1",
174
+ "html-url-attributes": "^3.0.1",
173
175
  "http-terminator": "3.2.0",
174
176
  "loglevel": "1.9.2",
175
- "lru-cache": "11.0.1",
176
- "lucide-react": "0.452.0",
177
- "next-themes": "0.4.3",
177
+ "lru-cache": "11.0.2",
178
+ "lucide-react": "0.468.0",
179
+ "next-themes": "0.4.4",
178
180
  "oauth4webapi": "2.17.0",
179
181
  "object-hash": "3.0.0",
180
182
  "openapi-types": "12.1.3",
181
- "picocolors": "1.1.0",
182
- "postcss": "8.4.47",
183
- "posthog-node": "4.2.1",
183
+ "picocolors": "1.1.1",
184
+ "postcss": "8.4.49",
185
+ "posthog-node": "4.3.1",
184
186
  "prism-react-renderer": "2.4.0",
185
187
  "prismjs": "1.29.0",
186
188
  "react-error-boundary": "4.1.2",
187
- "react-hook-form": "7.53.0",
188
- "react-is": "18.3.1",
189
- "react-markdown": "9.0.1",
190
- "react-router-dom": "6.27.0",
189
+ "react-hook-form": "7.54.0",
190
+ "react-is": "19.0.0",
191
+ "react-router": "7.0.2",
191
192
  "rehype-raw": "7.0.0",
192
193
  "rehype-slug": "6.0.0",
193
194
  "remark-comment": "1.0.0",
@@ -196,56 +197,60 @@
196
197
  "remark-frontmatter": "5.0.0",
197
198
  "remark-gfm": "4.0.0",
198
199
  "remark-mdx-frontmatter": "5.0.0",
199
- "rollup": "4.24.0",
200
+ "remark-parse": "^11.0.0",
201
+ "remark-rehype": "^11.1.1",
202
+ "rollup": "4.28.1",
200
203
  "semver": "7.6.3",
201
204
  "sitemap": "8.0.0",
202
205
  "spin-delay": "2.0.1",
203
206
  "strip-ansi": "7.1.0",
204
- "tailwind-merge": "2.5.4",
205
- "tailwindcss": "3.4.13",
207
+ "tailwind-merge": "2.6.0",
208
+ "tailwindcss": "3.4.16",
206
209
  "tsx": "^4.19.2",
207
210
  "ulidx": "2.4.1",
211
+ "unified": "^11.0.5",
208
212
  "unist-util-visit": "5.0.0",
209
- "urql": "4.1.0",
213
+ "urql": "4.2.1",
210
214
  "vaul": "1.1.1",
211
215
  "vfile": "6.0.3",
212
- "vite": "5.4.9",
213
- "yaml": "2.6.0",
216
+ "vite": "6.0.3",
217
+ "yaml": "2.6.1",
214
218
  "yargs": "17.7.2",
215
219
  "zod": "3.23.8",
216
220
  "zod-validation-error": "3.4.0",
217
- "zustand": "5.0.0"
221
+ "zustand": "5.0.2"
218
222
  },
219
223
  "devDependencies": {
220
224
  "@graphql-codegen/cli": "5.0.3",
221
- "@graphql-codegen/client-preset": "4.5.0",
225
+ "@graphql-codegen/client-preset": "4.5.1",
222
226
  "@types/estree": "1.0.6",
223
227
  "@types/express": "5.0.0",
224
- "@types/har-format": "1.2.15",
228
+ "@types/har-format": "1.2.16",
229
+ "@types/hast": "^3.0.4",
225
230
  "@types/json-schema": "7.0.15",
226
231
  "@types/mdast": "4.0.4",
227
232
  "@types/mdx": "2.0.13",
228
233
  "@types/node": "20.16.11",
229
234
  "@types/object-hash": "3.0.6",
230
- "@types/react-is": "18.3.0",
235
+ "@types/react-is": "19.0.0",
231
236
  "@types/semver": "7.5.8",
237
+ "@types/unist": "^3.0.3",
232
238
  "@types/yargs": "17.0.33",
233
239
  "@vitest/coverage-v8": "2.1.8",
234
240
  "mdast-util-mdx": "3.0.0",
235
- "react": "18.3.1",
236
- "react-dom": "18.3.1",
241
+ "react": "19.0.0",
242
+ "react-dom": "19.0.0",
237
243
  "rollup-plugin-visualizer": "5.12.0",
238
244
  "typescript": "5.7.2",
239
245
  "vitest": "2.1.8"
240
246
  },
241
247
  "peerDependencies": {
242
- "react": ">=18",
243
- "react-dom": ">=18"
248
+ "react": ">=19",
249
+ "react-dom": ">=19"
244
250
  },
245
251
  "optionalDependencies": {
246
- "@clerk/clerk-js": "5.11.0",
247
- "@inkeep/widgets": "^0.2.289",
248
- "@sentry/react": "^8.45.1"
252
+ "@clerk/clerk-js": "^5.43.4",
253
+ "@sentry/react": "^8.48.0"
249
254
  },
250
255
  "scripts": {
251
256
  "build": "tsc --project tsconfig.json",
package/src/app/demo.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import logger from "loglevel";
2
2
  import { createRoot } from "react-dom/client";
3
- import { createBrowserRouter } from "react-router-dom";
3
+ import { createBrowserRouter } from "react-router";
4
4
  import { Bootstrap } from "zudoku/components";
5
5
  import type { ZudokuConfig } from "../config/validators/validate.js";
6
6
  import DemoAnnouncement from "../lib/demo/DemoAnnouncement.js";
@@ -3,7 +3,7 @@ import {
3
3
  createBrowserRouter,
4
4
  matchRoutes,
5
5
  type RouteObject,
6
- } from "react-router-dom";
6
+ } from "react-router";
7
7
  import config from "virtual:zudoku-config";
8
8
  import "virtual:zudoku-theme.css";
9
9
  import "vite/modulepreload-polyfill";
@@ -45,13 +45,6 @@ async function hydrateLazyRoutes(routes: RouteObject[]) {
45
45
  function render(routes: RouteObject[]) {
46
46
  const router = createBrowserRouter(routes, {
47
47
  basename: config.basePath,
48
- future: {
49
- v7_relativeSplatPath: true,
50
- v7_fetcherPersist: true,
51
- v7_partialHydration: true,
52
- v7_skipActionErrorRevalidation: true,
53
- v7_normalizeFormMethod: true,
54
- },
55
48
  });
56
49
  createRoot(root).render(<Bootstrap router={router} />);
57
50
  }
@@ -60,13 +53,6 @@ async function hydrate(routes: RouteObject[]) {
60
53
  await hydrateLazyRoutes(routes);
61
54
  const router = createBrowserRouter(routes, {
62
55
  basename: config.basePath,
63
- future: {
64
- v7_relativeSplatPath: true,
65
- v7_fetcherPersist: true,
66
- v7_partialHydration: true,
67
- v7_skipActionErrorRevalidation: true,
68
- v7_normalizeFormMethod: true,
69
- },
70
56
  });
71
57
 
72
58
  hydrateRoot(root, <Bootstrap hydrate router={router} />);
@@ -4,11 +4,11 @@ import type express from "express";
4
4
  import logger from "loglevel";
5
5
  import { Transform } from "node:stream";
6
6
  import { renderToPipeableStream, renderToStaticMarkup } from "react-dom/server";
7
- import { isRouteErrorResponse } from "react-router-dom";
8
7
  import {
9
8
  createStaticHandler,
10
9
  createStaticRouter,
11
- } from "react-router-dom/server.js";
10
+ isRouteErrorResponse,
11
+ } from "react-router";
12
12
  import "virtual:zudoku-theme.css";
13
13
  import "vite/modulepreload-polyfill";
14
14
  import { BootstrapStatic, ServerError } from "zudoku/components";
package/src/app/main.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import { type RouteObject } from "react-router-dom";
1
+ import { type RouteObject } from "react-router";
2
2
  import { configuredApiKeysPlugin } from "virtual:zudoku-api-keys-plugin";
3
3
  import {
4
4
  configuredApiCatalogPlugins,
package/src/app/sentry.ts CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  matchRoutes,
6
6
  useLocation,
7
7
  useNavigationType,
8
- } from "react-router-dom";
8
+ } from "react-router";
9
9
 
10
10
  export const initSentry = ({ dsn }: { dsn: string }) => {
11
11
  Sentry.init({
@@ -1,5 +1,5 @@
1
1
  import { createRoot } from "react-dom/client";
2
- import { createBrowserRouter } from "react-router-dom";
2
+ import { createBrowserRouter } from "react-router";
3
3
  import { Bootstrap } from "zudoku/components";
4
4
  import type { ZudokuConfig } from "../config/validators/validate.js";
5
5
  import { openApiPlugin } from "../lib/plugins/openapi/index.js";
@@ -1,5 +1,5 @@
1
1
  import { useSuspenseQuery } from "@tanstack/react-query";
2
- import { Navigate } from "react-router-dom";
2
+ import { Navigate } from "react-router";
3
3
  import { ZudokuError } from "../../util/invariant.js";
4
4
 
5
5
  export function CallbackHandler({
@@ -1,5 +1,5 @@
1
1
  import { useEffect } from "react";
2
- import { useSearchParams } from "react-router-dom";
2
+ import { useSearchParams } from "react-router";
3
3
  import { useZudoku } from "../../components/context/ZudokuContext.js";
4
4
 
5
5
  export const SignIn = () => {
@@ -1,5 +1,5 @@
1
1
  import { useEffect } from "react";
2
- import { useNavigate } from "react-router-dom";
2
+ import { useNavigate } from "react-router";
3
3
  import { useZudoku } from "../../components/context/ZudokuContext.js";
4
4
 
5
5
  export const SignOut = () => {
@@ -12,8 +12,9 @@ import { useAuthState, UserProfile } from "../state.js";
12
12
 
13
13
  const CODE_VERIFIER_KEY = "code-verifier";
14
14
 
15
- interface TokenState {
15
+ export interface OpenIdProviderData {
16
16
  accessToken: string;
17
+ idToken?: string;
17
18
  refreshToken?: string;
18
19
  expiresOn: Date;
19
20
  tokenType: string;
@@ -101,9 +102,10 @@ export class OpenIDAuthenticationProvider implements AuthenticationProvider {
101
102
  throw new AuthorizationError("No expires_in in response");
102
103
  }
103
104
 
104
- const tokens: TokenState = {
105
+ const tokens: OpenIdProviderData = {
105
106
  accessToken: response.access_token,
106
107
  refreshToken: response.refresh_token,
108
+ idToken: response.id_token,
107
109
  expiresOn: new Date(Date.now() + response.expires_in * 1000),
108
110
  tokenType: response.token_type,
109
111
  };
@@ -201,7 +203,7 @@ export class OpenIDAuthenticationProvider implements AuthenticationProvider {
201
203
  if (!providerData) {
202
204
  throw new AuthorizationError("User is not authenticated");
203
205
  }
204
- const tokenState = providerData as TokenState;
206
+ const tokenState = providerData as OpenIdProviderData;
205
207
 
206
208
  if (new Date(tokenState.expiresOn) < new Date()) {
207
209
  if (!tokenState.refreshToken) {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Link, type LinkProps, useLocation } from "react-router-dom";
2
+ import { Link, type LinkProps, useLocation } from "react-router";
3
3
 
4
4
  /**
5
5
  * Link that scrolls to anchor even if the hash is already set in the URL.
@@ -5,12 +5,13 @@ import {
5
5
  } from "@tanstack/react-query";
6
6
  import { type HelmetData, HelmetProvider } from "@zudoku/react-helmet-async";
7
7
  import { StrictMode } from "react";
8
- import { type createBrowserRouter, RouterProvider } from "react-router-dom";
9
8
  import {
9
+ type createBrowserRouter,
10
10
  type createStaticRouter,
11
11
  type StaticHandlerContext,
12
12
  StaticRouterProvider,
13
- } from "react-router-dom/server.js";
13
+ } from "react-router";
14
+ import { RouterProvider } from "react-router/dom";
14
15
  import { StaggeredRenderContext } from "../plugins/openapi/StaggeredRender.js";
15
16
 
16
17
  const queryClient = new QueryClient({
@@ -33,10 +34,7 @@ const Bootstrap = ({
33
34
  <HydrationBoundary state={hydrate ? (window as any).DATA : undefined}>
34
35
  <HelmetProvider>
35
36
  <StaggeredRenderContext.Provider value={{ stagger: !hydrate }}>
36
- <RouterProvider
37
- router={router}
38
- future={{ v7_startTransition: true }}
39
- />
37
+ <RouterProvider router={router} />
40
38
  </StaggeredRenderContext.Provider>
41
39
  </HelmetProvider>
42
40
  </HydrationBoundary>
@@ -1,5 +1,5 @@
1
1
  import { memo } from "react";
2
- import { Link } from "react-router-dom";
2
+ import { Link } from "react-router";
3
3
  import { Button } from "zudoku/ui/Button.js";
4
4
  import { Skeleton } from "zudoku/ui/Skeleton.js";
5
5
  import { useAuth } from "../authentication/hook.js";
@@ -66,7 +66,7 @@ export const Header = memo(function HeaderInner() {
66
66
  <header className="sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full">
67
67
  <Banner />
68
68
  <div className="max-w-screen-2xl mx-auto">
69
- <div className="grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]">
69
+ <div className="grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-4 lg:px-12 h-[--top-header-height]">
70
70
  <div className="flex">
71
71
  <Link to="/">
72
72
  <div className="flex items-center gap-3.5">
@@ -1,7 +1,7 @@
1
1
  import { Helmet } from "@zudoku/react-helmet-async";
2
2
  import { PanelLeftIcon } from "lucide-react";
3
3
  import { Suspense, useEffect, useRef, useState, type ReactNode } from "react";
4
- import { Outlet, useLocation, useNavigation } from "react-router-dom";
4
+ import { Outlet, useLocation, useNavigation } from "react-router";
5
5
  import { useSpinDelay } from "spin-delay";
6
6
  import { Drawer, DrawerTrigger } from "../ui/Drawer.js";
7
7
  import { cn } from "../util/cn.js";
@@ -66,7 +66,7 @@ export const Layout = ({ children }: { children?: ReactNode }) => {
66
66
  <Header />
67
67
  <Slotlet name="layout-after-head" />
68
68
 
69
- <div className="w-full max-w-screen-2xl mx-auto px-10 lg:px-12">
69
+ <div className="w-full max-w-screen-2xl mx-auto px-4 lg:px-12">
70
70
  {showSpinner ? (
71
71
  <LoadingFallback />
72
72
  ) : (
@@ -1,8 +1,8 @@
1
- import ReactMarkdown from "react-markdown";
2
1
  import rehypeRaw from "rehype-raw";
3
2
  import remarkGfm from "remark-gfm";
4
3
  import { visit } from "unist-util-visit";
5
4
  import { MdxComponents } from "../util/MdxComponents.js";
5
+ import { ReactMarkdown } from "./ReactMarkdown.js";
6
6
 
7
7
  // same as in packages/dev-portal/framework/vite.ts
8
8
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -33,7 +33,7 @@ export const MobileTopNavigation = () => {
33
33
  className="lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none"
34
34
  aria-describedby={undefined}
35
35
  >
36
- <div className="p-6 overflow-y-auto overscroll-none">
36
+ <div className="p-4 overflow-y-auto overscroll-none">
37
37
  <VisuallyHidden>
38
38
  <DrawerTitle>Navigation</DrawerTitle>
39
39
  </VisuallyHidden>
@@ -1,5 +1,5 @@
1
1
  import { UnlinkIcon } from "lucide-react";
2
- import { Link, useParams } from "react-router-dom";
2
+ import { Link, useParams } from "react-router";
3
3
  import { CategoryHeading } from "./CategoryHeading.js";
4
4
  import { DeveloperHint } from "./DeveloperHint.js";
5
5
  import { Heading } from "./Heading.js";
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Espen Hovlandsdal
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.