zudoku 0.0.0-fa903e7 → 0.0.0-fabd0c1

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 (508) hide show
  1. package/client.d.ts +7 -0
  2. package/dist/app/demo.js +1 -1
  3. package/dist/app/demo.js.map +1 -1
  4. package/dist/app/entry.client.d.ts +1 -0
  5. package/dist/app/entry.client.js +14 -15
  6. package/dist/app/entry.client.js.map +1 -1
  7. package/dist/app/entry.server.d.ts +1 -0
  8. package/dist/app/entry.server.js +2 -2
  9. package/dist/app/entry.server.js.map +1 -1
  10. package/dist/app/main.d.ts +1 -1
  11. package/dist/app/main.js +2 -1
  12. package/dist/app/main.js.map +1 -1
  13. package/dist/app/sentry.d.ts +3 -0
  14. package/dist/app/sentry.js +19 -0
  15. package/dist/app/sentry.js.map +1 -0
  16. package/dist/app/standalone.js +1 -1
  17. package/dist/app/standalone.js.map +1 -1
  18. package/dist/app/tailwind.d.ts +2 -1
  19. package/dist/app/tailwind.js +64 -52
  20. package/dist/app/tailwind.js.map +1 -1
  21. package/dist/cli/cli.js +0 -2
  22. package/dist/cli/cli.js.map +1 -1
  23. package/dist/cli/cmds/build.js +1 -0
  24. package/dist/cli/cmds/build.js.map +1 -1
  25. package/dist/cli/common/outdated.js +2 -1
  26. package/dist/cli/common/outdated.js.map +1 -1
  27. package/dist/config/common.d.ts +8 -0
  28. package/dist/config/common.js +2 -0
  29. package/dist/config/common.js.map +1 -0
  30. package/dist/config/config.d.ts +3 -2
  31. package/dist/config/loader.d.ts +20 -0
  32. package/dist/config/loader.js +154 -0
  33. package/dist/config/loader.js.map +1 -0
  34. package/dist/config/validators/InputSidebarSchema.d.ts +14 -13
  35. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  36. package/dist/config/validators/common.d.ts +4945 -0
  37. package/dist/config/validators/common.js +280 -0
  38. package/dist/config/validators/common.js.map +1 -0
  39. package/dist/config/validators/icon-types.d.ts +1 -0
  40. package/dist/config/validators/icon-types.js +2 -0
  41. package/dist/config/validators/icon-types.js.map +1 -0
  42. package/dist/config/validators/validate.d.ts +783 -533
  43. package/dist/config/validators/validate.js +9 -234
  44. package/dist/config/validators/validate.js.map +1 -1
  45. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  46. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  47. package/dist/lib/authentication/components/SignIn.js +1 -1
  48. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  49. package/dist/lib/authentication/components/SignOut.js +1 -1
  50. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  51. package/dist/lib/authentication/providers/openid.d.ts +7 -0
  52. package/dist/lib/authentication/providers/openid.js +8 -2
  53. package/dist/lib/authentication/providers/openid.js.map +1 -1
  54. package/dist/lib/components/AnchorLink.d.ts +1 -1
  55. package/dist/lib/components/AnchorLink.js +1 -1
  56. package/dist/lib/components/AnchorLink.js.map +1 -1
  57. package/dist/lib/components/Bootstrap.d.ts +1 -2
  58. package/dist/lib/components/Bootstrap.js +3 -3
  59. package/dist/lib/components/Bootstrap.js.map +1 -1
  60. package/dist/lib/components/Header.js +2 -2
  61. package/dist/lib/components/Header.js.map +1 -1
  62. package/dist/lib/components/Heading.d.ts +4 -4
  63. package/dist/lib/components/Heading.js +1 -1
  64. package/dist/lib/components/Heading.js.map +1 -1
  65. package/dist/lib/components/Layout.js +4 -3
  66. package/dist/lib/components/Layout.js.map +1 -1
  67. package/dist/lib/components/Markdown.js +1 -1
  68. package/dist/lib/components/Markdown.js.map +1 -1
  69. package/dist/lib/components/MobileTopNavigation.js +1 -1
  70. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  71. package/dist/lib/components/NotFoundPage.js +1 -1
  72. package/dist/lib/components/NotFoundPage.js.map +1 -1
  73. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  74. package/dist/lib/components/ReactMarkdown.js +182 -0
  75. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  76. package/dist/lib/components/Search.d.ts +3 -1
  77. package/dist/lib/components/Search.js +3 -3
  78. package/dist/lib/components/Search.js.map +1 -1
  79. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  80. package/dist/lib/components/SyntaxHighlight.js +0 -4
  81. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  82. package/dist/lib/components/TopNavigation.d.ts +1 -1
  83. package/dist/lib/components/TopNavigation.js +1 -1
  84. package/dist/lib/components/TopNavigation.js.map +1 -1
  85. package/dist/lib/components/Zudoku.js +1 -1
  86. package/dist/lib/components/Zudoku.js.map +1 -1
  87. package/dist/lib/components/context/ZudokuContext.js +1 -1
  88. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  89. package/dist/lib/components/index.d.ts +4 -4
  90. package/dist/lib/components/index.js +1 -1
  91. package/dist/lib/components/index.js.map +1 -1
  92. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  93. package/dist/lib/components/navigation/Sidebar.js +2 -2
  94. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  95. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -9
  96. package/dist/lib/components/navigation/SidebarBadge.js +0 -9
  97. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  98. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  99. package/dist/lib/components/navigation/SidebarCategory.js +4 -5
  100. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  101. package/dist/lib/components/navigation/SidebarItem.d.ts +2 -4
  102. package/dist/lib/components/navigation/SidebarItem.js +6 -11
  103. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  104. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  105. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  106. package/dist/lib/components/navigation/utils.js +1 -1
  107. package/dist/lib/components/navigation/utils.js.map +1 -1
  108. package/dist/lib/core/ZudokuContext.d.ts +1 -1
  109. package/dist/lib/core/plugins.d.ts +3 -5
  110. package/dist/lib/core/plugins.js.map +1 -1
  111. package/dist/lib/errors/RouterError.js +1 -1
  112. package/dist/lib/errors/RouterError.js.map +1 -1
  113. package/dist/lib/oas/graphql/index.js +4 -1
  114. package/dist/lib/oas/graphql/index.js.map +1 -1
  115. package/dist/lib/plugins/api-catalog/Catalog.d.ts +2 -0
  116. package/dist/lib/plugins/api-catalog/Catalog.js +36 -0
  117. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  118. package/dist/lib/plugins/api-catalog/index.d.ts +30 -0
  119. package/dist/lib/plugins/api-catalog/index.js +15 -0
  120. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  121. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  122. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  123. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  124. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  125. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  126. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  127. package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
  128. package/dist/lib/plugins/markdown/MdxPage.js +3 -3
  129. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  130. package/dist/lib/plugins/markdown/index.d.ts +3 -1
  131. package/dist/lib/plugins/markdown/index.js.map +1 -1
  132. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  133. package/dist/lib/plugins/openapi/OperationList.js +24 -3
  134. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  135. package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -1
  136. package/dist/lib/plugins/openapi/OperationListItem.js +14 -4
  137. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  138. package/dist/lib/plugins/openapi/Route.d.ts +4 -2
  139. package/dist/lib/plugins/openapi/Route.js +25 -2
  140. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  141. package/dist/lib/plugins/openapi/Sidecar.js +3 -13
  142. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  143. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  144. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  145. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  146. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  147. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +2 -0
  148. package/dist/lib/plugins/openapi/graphql/graphql.js +1 -0
  149. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  150. package/dist/lib/plugins/openapi/index.js +13 -13
  151. package/dist/lib/plugins/openapi/index.js.map +1 -1
  152. package/dist/lib/plugins/openapi/interfaces.d.ts +19 -0
  153. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
  154. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  155. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  156. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  157. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  158. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  159. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  160. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  161. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  162. package/dist/lib/plugins/redirect/index.js +1 -1
  163. package/dist/lib/plugins/redirect/index.js.map +1 -1
  164. package/dist/lib/plugins/search-inkeep/index.d.ts +22 -3
  165. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  166. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  167. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  168. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  169. package/dist/lib/ui/Button.d.ts +1 -1
  170. package/dist/lib/ui/Command.d.ts +1 -1
  171. package/dist/lib/util/MdxComponents.d.ts +18 -19
  172. package/dist/lib/util/MdxComponents.js +1 -3
  173. package/dist/lib/util/MdxComponents.js.map +1 -1
  174. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  175. package/dist/lib/util/useExposedProps.js +1 -1
  176. package/dist/lib/util/useExposedProps.js.map +1 -1
  177. package/dist/lib/util/useOnScreen.d.ts +1 -1
  178. package/dist/lib/util/useScrollToAnchor.js +1 -1
  179. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  180. package/dist/lib/util/useScrollToTop.js +1 -1
  181. package/dist/lib/util/useScrollToTop.js.map +1 -1
  182. package/dist/vite/build.js +15 -3
  183. package/dist/vite/build.js.map +1 -1
  184. package/dist/vite/config.d.ts +6 -4
  185. package/dist/vite/config.js +59 -24
  186. package/dist/vite/config.js.map +1 -1
  187. package/dist/vite/config.test.js +4 -1
  188. package/dist/vite/config.test.js.map +1 -1
  189. package/dist/vite/css/collect.d.ts +2 -0
  190. package/dist/vite/css/collect.js +27 -0
  191. package/dist/vite/css/collect.js.map +1 -0
  192. package/dist/vite/css/plugin.d.ts +5 -0
  193. package/dist/vite/css/plugin.js +79 -0
  194. package/dist/vite/css/plugin.js.map +1 -0
  195. package/dist/vite/dev-server.js +19 -6
  196. package/dist/vite/dev-server.js.map +1 -1
  197. package/dist/vite/output.d.ts +1 -1
  198. package/dist/vite/output.js +25 -16
  199. package/dist/vite/output.js.map +1 -1
  200. package/dist/vite/plugin-api.js +79 -10
  201. package/dist/vite/plugin-api.js.map +1 -1
  202. package/dist/vite/plugin-component.js +1 -0
  203. package/dist/vite/plugin-component.js.map +1 -1
  204. package/dist/vite/plugin-config-reload.d.ts +1 -2
  205. package/dist/vite/plugin-config-reload.js.map +1 -1
  206. package/dist/vite/plugin-config.js +20 -0
  207. package/dist/vite/plugin-config.js.map +1 -1
  208. package/dist/vite/plugin-mdx.js +50 -1
  209. package/dist/vite/plugin-mdx.js.map +1 -1
  210. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +2 -2
  211. package/dist/vite/{plugin-custom-css.js → plugin-theme-css.js} +10 -3
  212. package/dist/vite/plugin-theme-css.js.map +1 -0
  213. package/dist/vite/plugin.d.ts +1 -2
  214. package/dist/vite/plugin.js +6 -2
  215. package/dist/vite/plugin.js.map +1 -1
  216. package/dist/vite/prerender.d.ts +2 -1
  217. package/dist/vite/prerender.js +2 -2
  218. package/dist/vite/prerender.js.map +1 -1
  219. package/dist/vite/sitemap.d.ts +1 -1
  220. package/dist/zuplo/env.d.ts +6 -0
  221. package/dist/zuplo/env.js +9 -0
  222. package/dist/zuplo/env.js.map +1 -0
  223. package/dist/zuplo/with-zuplo.d.ts +2 -2
  224. package/dist/zuplo/with-zuplo.js.map +1 -1
  225. package/lib/AnchorLink-DFZZbmvr.js +34 -0
  226. package/lib/AnchorLink-DFZZbmvr.js.map +1 -0
  227. package/lib/{AuthenticationPlugin-D0Em0SwR.js → AuthenticationPlugin-fB7viE7A.js} +15 -16
  228. package/lib/AuthenticationPlugin-fB7viE7A.js.map +1 -0
  229. package/lib/{Button-jK0EsymC.js → Button-DeAoTouo.js} +4 -4
  230. package/lib/{Button-jK0EsymC.js.map → Button-DeAoTouo.js.map} +1 -1
  231. package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-CBconmtI.js} +3 -3
  232. package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-CBconmtI.js.map} +1 -1
  233. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  234. package/lib/{Dialog-k70Qfukb.js → Dialog-Bxv1yEIg.js} +3 -3
  235. package/lib/{Dialog-k70Qfukb.js.map → Dialog-Bxv1yEIg.js.map} +1 -1
  236. package/lib/{Markdown-ievDDhFT.js → Markdown-CZDLNOFc.js} +13227 -13217
  237. package/lib/Markdown-CZDLNOFc.js.map +1 -0
  238. package/lib/{MdxPage-B2FpJ9KC.js → MdxPage-CPBw4_lf.js} +82 -77
  239. package/lib/MdxPage-CPBw4_lf.js.map +1 -0
  240. package/lib/OperationList-n4U_BHmO.js +5062 -0
  241. package/lib/OperationList-n4U_BHmO.js.map +1 -0
  242. package/lib/Route-C8nwd9A2.js +37 -0
  243. package/lib/Route-C8nwd9A2.js.map +1 -0
  244. package/lib/{Select-O9ZM3ZgX.js → Select-D3XuKKuH.js} +5 -5
  245. package/lib/{Select-O9ZM3ZgX.js.map → Select-D3XuKKuH.js.map} +1 -1
  246. package/lib/SlotletProvider-pfc9oejW.js +221 -0
  247. package/lib/SlotletProvider-pfc9oejW.js.map +1 -0
  248. package/lib/{Spinner-3cQDBVGr.js → Spinner-DuxJLLNE.js} +2 -2
  249. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-DuxJLLNE.js.map} +1 -1
  250. package/lib/StaggeredRender-DgsamH_G.js +17 -0
  251. package/lib/StaggeredRender-DgsamH_G.js.map +1 -0
  252. package/lib/{SyntaxHighlight-DkLOsjHS.js → SyntaxHighlight-Bz-lOJtH.js} +8 -12
  253. package/lib/{SyntaxHighlight-DkLOsjHS.js.map → SyntaxHighlight-Bz-lOJtH.js.map} +1 -1
  254. package/lib/assets/{index-B_Jk_Yzp.js → index-C7jnHK4b.js} +218 -197
  255. package/lib/assets/index-C7jnHK4b.js.map +1 -0
  256. package/lib/assets/{worker-BHClFO3A.js → worker-D2kRl-cG.js} +5285 -4904
  257. package/lib/assets/worker-D2kRl-cG.js.map +1 -0
  258. package/lib/chunk-D52XG6IA-Dl7HLe6j.js +1823 -0
  259. package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +1 -0
  260. package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
  261. package/lib/cn-qaFjX9_3.js.map +1 -0
  262. package/lib/{context-D1nXWxm7.js → context-h_UkBLvr.js} +2 -2
  263. package/lib/context-h_UkBLvr.js.map +1 -0
  264. package/lib/{createServer-CpJlUPtn.js → createServer-69sLlmQA.js} +4820 -4440
  265. package/lib/createServer-69sLlmQA.js.map +1 -0
  266. package/lib/{hook-hEqe7fPB.js → hook-DgGeo5iL.js} +3 -3
  267. package/lib/{hook-hEqe7fPB.js.map → hook-DgGeo5iL.js.map} +1 -1
  268. package/lib/{index-CkwDvuPt.js → index-CBXSgjaE.js} +259 -238
  269. package/lib/index-CBXSgjaE.js.map +1 -0
  270. package/lib/index-CPNSgwSb.js +36 -0
  271. package/lib/index-CPNSgwSb.js.map +1 -0
  272. package/lib/index-DStSNvP-.js +1284 -0
  273. package/lib/index-DStSNvP-.js.map +1 -0
  274. package/lib/index-LNp6rxyU.js.map +1 -1
  275. package/lib/index.esm-BSV1C092.js +692 -0
  276. package/lib/index.esm-BSV1C092.js.map +1 -0
  277. package/lib/index.esm-BnnBRKJX.js +1214 -0
  278. package/lib/index.esm-BnnBRKJX.js.map +1 -0
  279. package/lib/invariant-Caa8-XvF.js.map +1 -1
  280. package/lib/jsx-runtime-Dx-03ztt.js +446 -0
  281. package/lib/jsx-runtime-Dx-03ztt.js.map +1 -0
  282. package/lib/object_hash-BNWPnMN9.js +787 -0
  283. package/lib/object_hash-BNWPnMN9.js.map +1 -0
  284. package/lib/post-processors/removeExtensions.js.map +1 -1
  285. package/lib/post-processors/removePaths.js.map +1 -1
  286. package/lib/post-processors/traverse.js.map +1 -1
  287. package/lib/prism-csharp.min-DUwvItt4.js +63 -0
  288. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-DUwvItt4.js.map} +1 -1
  289. package/lib/prism-java.min-BtgBR4yd.js +35 -0
  290. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BtgBR4yd.js.map} +1 -1
  291. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  292. package/lib/prism-ruby.min-DeDXCp1r.js +38 -0
  293. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-DeDXCp1r.js.map} +1 -1
  294. package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
  295. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
  296. package/lib/state-CFQsUZUP.js +202 -0
  297. package/lib/state-CFQsUZUP.js.map +1 -0
  298. package/lib/ui/Accordion.js +2 -2
  299. package/lib/ui/Accordion.js.map +1 -1
  300. package/lib/ui/ActionButton.js +4 -4
  301. package/lib/ui/ActionButton.js.map +1 -1
  302. package/lib/ui/Alert.js +3 -3
  303. package/lib/ui/Alert.js.map +1 -1
  304. package/lib/ui/AlertDialog.js +2 -2
  305. package/lib/ui/AlertDialog.js.map +1 -1
  306. package/lib/ui/Badge.js +3 -3
  307. package/lib/ui/Badge.js.map +1 -1
  308. package/lib/ui/Breadcrumb.js +2 -2
  309. package/lib/ui/Breadcrumb.js.map +1 -1
  310. package/lib/ui/Button.js +3 -3
  311. package/lib/ui/Button.js.map +1 -1
  312. package/lib/ui/Callout.js +2 -2
  313. package/lib/ui/Callout.js.map +1 -1
  314. package/lib/ui/Card.js +2 -2
  315. package/lib/ui/Card.js.map +1 -1
  316. package/lib/ui/Carousel.js +407 -401
  317. package/lib/ui/Carousel.js.map +1 -1
  318. package/lib/ui/Checkbox.js +2 -2
  319. package/lib/ui/Checkbox.js.map +1 -1
  320. package/lib/ui/Command.js +111 -108
  321. package/lib/ui/Command.js.map +1 -1
  322. package/lib/ui/Dialog.js +2 -2
  323. package/lib/ui/Dialog.js.map +1 -1
  324. package/lib/ui/Drawer.js +81 -81
  325. package/lib/ui/Drawer.js.map +1 -1
  326. package/lib/ui/DropdownMenu.js +2 -2
  327. package/lib/ui/DropdownMenu.js.map +1 -1
  328. package/lib/ui/Form.js +3 -3
  329. package/lib/ui/Form.js.map +1 -1
  330. package/lib/ui/HoverCard.js +2 -2
  331. package/lib/ui/Input.js +2 -2
  332. package/lib/ui/Input.js.map +1 -1
  333. package/lib/ui/Label.js +3 -3
  334. package/lib/ui/Pagination.js +2 -2
  335. package/lib/ui/Pagination.js.map +1 -1
  336. package/lib/ui/Popover.js +2 -2
  337. package/lib/ui/Popover.js.map +1 -1
  338. package/lib/ui/Progress.js +2 -2
  339. package/lib/ui/Progress.js.map +1 -1
  340. package/lib/ui/RadioGroup.js +2 -2
  341. package/lib/ui/RadioGroup.js.map +1 -1
  342. package/lib/ui/ScrollArea.js +2 -2
  343. package/lib/ui/ScrollArea.js.map +1 -1
  344. package/lib/ui/Select.js +2 -2
  345. package/lib/ui/Select.js.map +1 -1
  346. package/lib/ui/Skeleton.js +2 -2
  347. package/lib/ui/Skeleton.js.map +1 -1
  348. package/lib/ui/Slider.js +2 -2
  349. package/lib/ui/Switch.js +2 -2
  350. package/lib/ui/Switch.js.map +1 -1
  351. package/lib/ui/Tabs.js +2 -2
  352. package/lib/ui/Textarea.js +2 -2
  353. package/lib/ui/Textarea.js.map +1 -1
  354. package/lib/ui/Toggle.js +3 -3
  355. package/lib/ui/Toggle.js.map +1 -1
  356. package/lib/ui/ToggleGroup.js +2 -2
  357. package/lib/ui/ToggleGroup.js.map +1 -1
  358. package/lib/ui/Tooltip.js +2 -2
  359. package/lib/useExposedProps-DE9lR6MF.js +9 -0
  360. package/lib/useExposedProps-DE9lR6MF.js.map +1 -0
  361. package/lib/{utils-DcpDOncX.js → utils-B4O1uet5.js} +35 -36
  362. package/lib/{utils-DcpDOncX.js.map → utils-B4O1uet5.js.map} +1 -1
  363. package/lib/zudoku.auth-auth0.js +1 -1
  364. package/lib/zudoku.auth-auth0.js.map +1 -1
  365. package/lib/zudoku.auth-clerk.js +2 -2
  366. package/lib/zudoku.auth-clerk.js.map +1 -1
  367. package/lib/zudoku.auth-openid.js +382 -374
  368. package/lib/zudoku.auth-openid.js.map +1 -1
  369. package/lib/zudoku.components.js +773 -992
  370. package/lib/zudoku.components.js.map +1 -1
  371. package/lib/zudoku.openapi-worker.js +1 -1
  372. package/lib/zudoku.openapi-worker.js.map +1 -1
  373. package/lib/zudoku.plugin-api-catalog.js +123 -0
  374. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  375. package/lib/zudoku.plugin-api-keys.js +15 -16
  376. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  377. package/lib/zudoku.plugin-custom-pages.js +4 -4
  378. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  379. package/lib/zudoku.plugin-markdown.js +2 -2
  380. package/lib/zudoku.plugin-markdown.js.map +1 -1
  381. package/lib/zudoku.plugin-openapi.js +5 -5
  382. package/lib/zudoku.plugin-redirect.js +1 -1
  383. package/lib/zudoku.plugin-redirect.js.map +1 -1
  384. package/lib/zudoku.plugin-search-inkeep.js +53 -24
  385. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  386. package/package.json +59 -47
  387. package/src/app/demo.tsx +1 -1
  388. package/src/app/entry.client.tsx +16 -15
  389. package/src/app/entry.server.tsx +3 -2
  390. package/src/app/main.tsx +6 -2
  391. package/src/app/sentry.ts +24 -0
  392. package/src/app/standalone.tsx +1 -1
  393. package/src/app/tailwind.ts +67 -52
  394. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  395. package/src/lib/authentication/components/SignIn.tsx +1 -1
  396. package/src/lib/authentication/components/SignOut.tsx +1 -1
  397. package/src/lib/authentication/providers/openid.tsx +12 -5
  398. package/src/lib/components/AnchorLink.tsx +1 -1
  399. package/src/lib/components/Bootstrap.tsx +4 -6
  400. package/src/lib/components/Header.tsx +2 -2
  401. package/src/lib/components/Heading.tsx +13 -13
  402. package/src/lib/components/Layout.tsx +10 -5
  403. package/src/lib/components/Markdown.tsx +1 -1
  404. package/src/lib/components/MobileTopNavigation.tsx +18 -18
  405. package/src/lib/components/NotFoundPage.tsx +1 -1
  406. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  407. package/src/lib/components/ReactMarkdown.tsx +264 -0
  408. package/src/lib/components/Search.tsx +3 -3
  409. package/src/lib/components/SlotletProvider.tsx +1 -1
  410. package/src/lib/components/SyntaxHighlight.tsx +0 -4
  411. package/src/lib/components/TopNavigation.tsx +2 -2
  412. package/src/lib/components/Zudoku.tsx +1 -1
  413. package/src/lib/components/context/ZudokuContext.ts +1 -1
  414. package/src/lib/components/index.ts +1 -1
  415. package/src/lib/components/navigation/Sidebar.tsx +18 -8
  416. package/src/lib/components/navigation/SidebarBadge.tsx +0 -10
  417. package/src/lib/components/navigation/SidebarCategory.tsx +11 -10
  418. package/src/lib/components/navigation/SidebarItem.tsx +11 -14
  419. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  420. package/src/lib/components/navigation/utils.ts +1 -1
  421. package/src/lib/core/ZudokuContext.ts +1 -1
  422. package/src/lib/core/plugins.ts +3 -7
  423. package/src/lib/errors/RouterError.tsx +1 -1
  424. package/src/lib/oas/graphql/index.ts +4 -1
  425. package/src/lib/plugins/api-catalog/Catalog.tsx +123 -0
  426. package/src/lib/plugins/api-catalog/index.tsx +64 -0
  427. package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
  428. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  429. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  430. package/src/lib/plugins/api-keys/index.tsx +1 -1
  431. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  432. package/src/lib/plugins/markdown/MdxPage.tsx +3 -1
  433. package/src/lib/plugins/markdown/index.tsx +4 -2
  434. package/src/lib/plugins/markdown/resolver.ts +2 -4
  435. package/src/lib/plugins/openapi/OperationList.tsx +64 -8
  436. package/src/lib/plugins/openapi/OperationListItem.tsx +31 -2
  437. package/src/lib/plugins/openapi/Route.tsx +45 -9
  438. package/src/lib/plugins/openapi/Sidecar.tsx +3 -17
  439. package/src/lib/plugins/openapi/context.tsx +2 -2
  440. package/src/lib/plugins/openapi/graphql/gql.ts +2 -2
  441. package/src/lib/plugins/openapi/graphql/graphql.ts +3 -0
  442. package/src/lib/plugins/openapi/index.tsx +35 -28
  443. package/src/lib/plugins/openapi/interfaces.ts +22 -1
  444. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -0
  445. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  446. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  447. package/src/lib/plugins/redirect/index.tsx +2 -2
  448. package/src/lib/plugins/search-inkeep/index.tsx +78 -23
  449. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  450. package/src/lib/util/MdxComponents.tsx +3 -8
  451. package/src/lib/util/createVariantComponent.tsx +2 -2
  452. package/src/lib/util/useExposedProps.tsx +1 -1
  453. package/src/lib/util/useScrollToAnchor.ts +1 -1
  454. package/src/lib/util/useScrollToTop.ts +1 -1
  455. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  456. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  457. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  458. package/dist/vite/plugin-custom-css.js.map +0 -1
  459. package/lib/AnchorLink-CDlhr8gL.js +0 -706
  460. package/lib/AnchorLink-CDlhr8gL.js.map +0 -1
  461. package/lib/AuthenticationPlugin-D0Em0SwR.js.map +0 -1
  462. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  463. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  464. package/lib/Markdown-ievDDhFT.js.map +0 -1
  465. package/lib/MdxPage-B2FpJ9KC.js.map +0 -1
  466. package/lib/OperationList-BkNQEsNs.js +0 -4693
  467. package/lib/OperationList-BkNQEsNs.js.map +0 -1
  468. package/lib/Route-DlG_HTMu.js +0 -11
  469. package/lib/Route-DlG_HTMu.js.map +0 -1
  470. package/lib/SidebarBadge-DxFJcJ6V.js +0 -51
  471. package/lib/SidebarBadge-DxFJcJ6V.js.map +0 -1
  472. package/lib/SlotletProvider-DyomlzGx.js +0 -252
  473. package/lib/SlotletProvider-DyomlzGx.js.map +0 -1
  474. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  475. package/lib/assets/worker-BHClFO3A.js.map +0 -1
  476. package/lib/cn-BmFQLtkS.js.map +0 -1
  477. package/lib/context-D1nXWxm7.js.map +0 -1
  478. package/lib/createServer-CpJlUPtn.js.map +0 -1
  479. package/lib/index-BuAyrJe3.js +0 -46
  480. package/lib/index-BuAyrJe3.js.map +0 -1
  481. package/lib/index-C7SaIME0.js +0 -1277
  482. package/lib/index-C7SaIME0.js.map +0 -1
  483. package/lib/index-CkwDvuPt.js.map +0 -1
  484. package/lib/index-Czzd9rjU.js +0 -899
  485. package/lib/index-Czzd9rjU.js.map +0 -1
  486. package/lib/index-Yn8c3UWE.js +0 -921
  487. package/lib/index-Yn8c3UWE.js.map +0 -1
  488. package/lib/index.esm-C5mr_sKO.js +0 -1193
  489. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  490. package/lib/jsx-runtime-B6kdoens.js +0 -635
  491. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  492. package/lib/object_hash-CvlLgU-M.js +0 -785
  493. package/lib/object_hash-CvlLgU-M.js.map +0 -1
  494. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  495. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  496. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  497. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  498. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  499. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  500. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  501. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  502. package/lib/router-lfyopgBI.js +0 -3024
  503. package/lib/router-lfyopgBI.js.map +0 -1
  504. package/lib/state-tsXBLONe.js +0 -203
  505. package/lib/state-tsXBLONe.js.map +0 -1
  506. package/lib/useExposedProps-CTPtylCV.js +0 -10
  507. package/lib/useExposedProps-CTPtylCV.js.map +0 -1
  508. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
package/lib/ui/Drawer.js CHANGED
@@ -1,8 +1,8 @@
1
- import { j as X } from "../jsx-runtime-B6kdoens.js";
1
+ import { j as X } from "../jsx-runtime-Dx-03ztt.js";
2
2
  import * as wt from "react";
3
3
  import r, { useMemo as Se, useLayoutEffect as Re, useEffect as De } from "react";
4
4
  import * as Z from "@radix-ui/react-dialog";
5
- import { c as it } from "../cn-BmFQLtkS.js";
5
+ import { c as it } from "../cn-qaFjX9_3.js";
6
6
  function Te(t) {
7
7
  if (typeof document > "u") return;
8
8
  let n = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
@@ -206,7 +206,7 @@ function Gt(...t) {
206
206
  return wt.useCallback(He(...t), t);
207
207
  }
208
208
  const Jt = /* @__PURE__ */ new WeakMap();
209
- function C(t, n, e = !1) {
209
+ function $(t, n, e = !1) {
210
210
  if (!t || !(t instanceof HTMLElement)) return;
211
211
  let a = {};
212
212
  Object.entries(n).forEach(([i, o]) => {
@@ -222,7 +222,7 @@ function ke(t, n) {
222
222
  let e = Jt.get(t);
223
223
  e && (t.style[n] = e[n]);
224
224
  }
225
- const $ = (t) => {
225
+ const C = (t) => {
226
226
  switch (t) {
227
227
  case "top":
228
228
  case "bottom":
@@ -242,7 +242,7 @@ function bt(t, n) {
242
242
  e.transform || e.webkitTransform || e.mozTransform
243
243
  );
244
244
  let i = a.match(/^matrix3d\((.+)\)$/);
245
- return i ? parseFloat(i[1].split(", ")[$(n) ? 13 : 12]) : (i = a.match(/^matrix\((.+)\)$/), i ? parseFloat(i[1].split(", ")[$(n) ? 5 : 4]) : null);
245
+ return i ? parseFloat(i[1].split(", ")[C(n) ? 13 : 12]) : (i = a.match(/^matrix\((.+)\)$/), i ? parseFloat(i[1].split(", ")[C(n) ? 5 : 4]) : null);
246
246
  }
247
247
  function Le(t) {
248
248
  return 8 * (Math.log(t + 1) - 2);
@@ -350,7 +350,7 @@ function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
350
350
  return (b = e == null ? void 0 : e.map((y) => {
351
351
  const I = typeof y == "string";
352
352
  let M = 0;
353
- if (I && (M = parseInt(y, 10)), $(m)) {
353
+ if (I && (M = parseInt(y, 10)), C(m)) {
354
354
  const l = I ? M : w ? y * u.height : 0;
355
355
  return w ? m === "bottom" ? u.height - l : -u.height + l : l;
356
356
  }
@@ -367,13 +367,13 @@ function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
367
367
  ]), A = r.useCallback((u) => {
368
368
  var b;
369
369
  const y = (b = h == null ? void 0 : h.findIndex((I) => I === u)) != null ? b : null;
370
- f(y), C(a.current, {
370
+ f(y), $(a.current, {
371
371
  transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
372
- transform: $(m) ? `translate3d(0, ${u}px, 0)` : `translate3d(${u}px, 0, 0)`
373
- }), h && y !== h.length - 1 && o !== void 0 && y !== o && y < o ? C(i.current, {
372
+ transform: C(m) ? `translate3d(0, ${u}px, 0)` : `translate3d(${u}px, 0, 0)`
373
+ }), h && y !== h.length - 1 && o !== void 0 && y !== o && y < o ? $(i.current, {
374
374
  transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
375
375
  opacity: "0"
376
- }) : C(i.current, {
376
+ }) : $(i.current, {
377
377
  transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
378
378
  opacity: "1"
379
379
  }), p(e == null ? void 0 : e[Math.max(y, 0)]);
@@ -398,10 +398,10 @@ function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
398
398
  h,
399
399
  A
400
400
  ]);
401
- function d({ draggedDistance: u, closeDrawer: b, velocity: y, dismissible: I }) {
401
+ function c({ draggedDistance: u, closeDrawer: b, velocity: y, dismissible: I }) {
402
402
  if (o === void 0) return;
403
403
  const M = m === "bottom" || m === "right" ? (N ?? 0) - u : (N ?? 0) + u, j = E === o - 1, l = E === 0, U = u > 0;
404
- if (j && C(i.current, {
404
+ if (j && $(i.current, {
405
405
  transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`
406
406
  }), !T && y > 2 && !U) {
407
407
  I ? b() : A(h[0]);
@@ -411,7 +411,7 @@ function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
411
411
  A(h[e.length - 1]);
412
412
  return;
413
413
  }
414
- const _ = h == null ? void 0 : h.reduce((P, K) => typeof P != "number" || typeof K != "number" ? P : Math.abs(K - M) < Math.abs(P - M) ? K : P), W = $(m) ? window.innerHeight : window.innerWidth;
414
+ const _ = h == null ? void 0 : h.reduce((P, K) => typeof P != "number" || typeof K != "number" ? P : Math.abs(K - M) < Math.abs(P - M) ? K : P), W = C(m) ? window.innerHeight : window.innerWidth;
415
415
  if (y > Qt && Math.abs(u) < W * 0.4) {
416
416
  const P = U ? 1 : -1;
417
417
  if (P > 0 && k && e) {
@@ -427,8 +427,8 @@ function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
427
427
  function Y({ draggedDistance: u }) {
428
428
  if (N === null) return;
429
429
  const b = m === "bottom" || m === "right" ? N - u : N + u;
430
- (m === "bottom" || m === "right") && b < h[h.length - 1] || (m === "top" || m === "left") && b > h[h.length - 1] || C(a.current, {
431
- transform: $(m) ? `translate3d(0, ${b}px, 0)` : `translate3d(${b}px, 0, 0)`
430
+ (m === "bottom" || m === "right") && b < h[h.length - 1] || (m === "top" || m === "left") && b > h[h.length - 1] || $(a.current, {
431
+ transform: C(m) ? `translate3d(0, ${b}px, 0)` : `translate3d(${b}px, 0, 0)`
432
432
  });
433
433
  }
434
434
  function tt(u, b) {
@@ -448,7 +448,7 @@ function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
448
448
  getPercentageDragged: tt,
449
449
  setActiveSnapPoint: p,
450
450
  activeSnapPointIndex: E,
451
- onRelease: d,
451
+ onRelease: c,
452
452
  onDrag: Y,
453
453
  snapPointsOffset: h
454
454
  };
@@ -468,7 +468,7 @@ function Ve() {
468
468
  Be(a && !i ? Ct(document.body, {
469
469
  background: "black"
470
470
  }) : ze, Ct(R, {
471
- transformOrigin: $(t) ? "top" : "left",
471
+ transformOrigin: C(t) ? "top" : "left",
472
472
  transitionProperty: "transform, border-radius",
473
473
  transitionDuration: `${x.DURATION}s`,
474
474
  transitionTimingFunction: `cubic-bezier(${x.EASE.join(",")})`
@@ -476,7 +476,7 @@ function Ve() {
476
476
  const T = Ct(R, {
477
477
  borderRadius: `${Zt}px`,
478
478
  overflow: "hidden",
479
- ...$(t) ? {
479
+ ...C(t) ? {
480
480
  transform: `scale(${m()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
481
481
  } : {
482
482
  transform: `scale(${m()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
@@ -563,7 +563,7 @@ function Ye({ isOpen: t, modal: n, nested: e, hasBeenOpened: a, preventScrollRes
563
563
  restorePositionSetting: g
564
564
  };
565
565
  }
566
- function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, snapPoints: o, shouldScaleBackground: f = !1, setBackgroundColorOnScale: m = !0, closeThreshold: R = Fe, scrollLockTimeout: T = Ue, dismissible: g = !0, handleOnly: p = !1, fadeFromIndex: w = o && o.length - 1, activeSnapPoint: B, setActiveSnapPoint: k, fixed: E, modal: F = !0, onClose: h, nested: N, noBodyStyles: A = !1, direction: d = "bottom", defaultOpen: Y = !1, disablePreventScroll: tt = !0, snapToSequentialPoint: u = !1, preventScrollRestoration: b = !1, repositionInputs: y = !0, onAnimationEnd: I, container: M, autoFocus: j = !1 }) {
566
+ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, snapPoints: o, shouldScaleBackground: f = !1, setBackgroundColorOnScale: m = !0, closeThreshold: R = Fe, scrollLockTimeout: T = Ue, dismissible: g = !0, handleOnly: p = !1, fadeFromIndex: w = o && o.length - 1, activeSnapPoint: B, setActiveSnapPoint: k, fixed: E, modal: F = !0, onClose: h, nested: N, noBodyStyles: A = !1, direction: c = "bottom", defaultOpen: Y = !1, disablePreventScroll: tt = !0, snapToSequentialPoint: u = !1, preventScrollRestoration: b = !1, repositionInputs: y = !0, onAnimationEnd: I, container: M, autoFocus: j = !1 }) {
567
567
  var l, U;
568
568
  const [_ = !1, W] = ee({
569
569
  defaultProp: Y,
@@ -575,17 +575,17 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
575
575
  document.body.style.pointerEvents = "auto";
576
576
  }), s || (document.body.style.pointerEvents = "auto");
577
577
  }
578
- }), [P, K] = r.useState(!1), [G, lt] = r.useState(!1), [se, Pt] = r.useState(!1), rt = r.useRef(null), ht = r.useRef(null), St = r.useRef(null), Rt = r.useRef(null), ut = r.useRef(null), ct = r.useRef(!1), Dt = r.useRef(null), Tt = r.useRef(0), at = r.useRef(!1), It = r.useRef(!Y), _t = r.useRef(0), c = r.useRef(null), Ht = r.useRef(((l = c.current) == null ? void 0 : l.getBoundingClientRect().height) || 0), kt = r.useRef(((U = c.current) == null ? void 0 : U.getBoundingClientRect().width) || 0), Et = r.useRef(0), le = r.useCallback((s) => {
578
+ }), [P, K] = r.useState(!1), [G, lt] = r.useState(!1), [se, Pt] = r.useState(!1), rt = r.useRef(null), ht = r.useRef(null), St = r.useRef(null), Rt = r.useRef(null), ut = r.useRef(null), ct = r.useRef(!1), Dt = r.useRef(null), Tt = r.useRef(0), at = r.useRef(!1), It = r.useRef(!Y), _t = r.useRef(0), d = r.useRef(null), Ht = r.useRef(((l = d.current) == null ? void 0 : l.getBoundingClientRect().height) || 0), kt = r.useRef(((U = d.current) == null ? void 0 : U.getBoundingClientRect().width) || 0), Et = r.useRef(0), le = r.useCallback((s) => {
579
579
  o && s === dt.length - 1 && (ht.current = /* @__PURE__ */ new Date());
580
580
  }, []), { activeSnapPoint: ue, activeSnapPointIndex: ot, setActiveSnapPoint: Lt, onRelease: ce, snapPointsOffset: dt, onDrag: de, shouldFade: Bt, getPercentageDragged: fe } = We({
581
581
  snapPoints: o,
582
582
  activeSnapPointProp: B,
583
583
  setActiveSnapPointProp: k,
584
- drawerRef: c,
584
+ drawerRef: d,
585
585
  fadeFromIndex: w,
586
586
  overlayRef: rt,
587
587
  onSnapPointChange: le,
588
- direction: d,
588
+ direction: c,
589
589
  container: M,
590
590
  snapToSequentialPoint: u
591
591
  });
@@ -605,21 +605,21 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
605
605
  }
606
606
  function pe(s) {
607
607
  var S, D;
608
- !g && !o || c.current && !c.current.contains(s.target) || (Ht.current = ((S = c.current) == null ? void 0 : S.getBoundingClientRect().height) || 0, kt.current = ((D = c.current) == null ? void 0 : D.getBoundingClientRect().width) || 0, lt(!0), St.current = /* @__PURE__ */ new Date(), Xt() && window.addEventListener("touchend", () => ct.current = !1, {
608
+ !g && !o || d.current && !d.current.contains(s.target) || (Ht.current = ((S = d.current) == null ? void 0 : S.getBoundingClientRect().height) || 0, kt.current = ((D = d.current) == null ? void 0 : D.getBoundingClientRect().width) || 0, lt(!0), St.current = /* @__PURE__ */ new Date(), Xt() && window.addEventListener("touchend", () => ct.current = !1, {
609
609
  once: !0
610
- }), s.target.setPointerCapture(s.pointerId), Tt.current = $(d) ? s.pageY : s.pageX);
610
+ }), s.target.setPointerCapture(s.pointerId), Tt.current = C(c) ? s.pageY : s.pageX);
611
611
  }
612
612
  function Ft(s, S) {
613
613
  var D;
614
614
  let v = s;
615
- const O = (D = window.getSelection()) == null ? void 0 : D.toString(), L = c.current ? bt(c.current, d) : null, H = /* @__PURE__ */ new Date();
615
+ const O = (D = window.getSelection()) == null ? void 0 : D.toString(), L = d.current ? bt(d.current, c) : null, H = /* @__PURE__ */ new Date();
616
616
  if (v.tagName === "SELECT" || v.hasAttribute("data-vaul-no-drag") || v.closest("[data-vaul-no-drag]"))
617
617
  return !1;
618
- if (d === "right" || d === "left")
618
+ if (c === "right" || c === "left")
619
619
  return !0;
620
620
  if (ht.current && H.getTime() - ht.current.getTime() < 500)
621
621
  return !1;
622
- if (L !== null && (d === "bottom" ? L > 0 : L < 0))
622
+ if (L !== null && (c === "bottom" ? L > 0 : L < 0))
623
623
  return !0;
624
624
  if (O && O.length > 0)
625
625
  return !1;
@@ -637,42 +637,42 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
637
637
  return !0;
638
638
  }
639
639
  function we(s) {
640
- if (c.current && G) {
641
- const S = d === "bottom" || d === "right" ? 1 : -1, D = (Tt.current - ($(d) ? s.pageY : s.pageX)) * S, v = D > 0, O = o && !g && !v;
640
+ if (d.current && G) {
641
+ const S = c === "bottom" || c === "right" ? 1 : -1, D = (Tt.current - (C(c) ? s.pageY : s.pageX)) * S, v = D > 0, O = o && !g && !v;
642
642
  if (O && ot === 0) return;
643
- const L = Math.abs(D), H = document.querySelector("[data-vaul-drawer-wrapper]"), J = d === "bottom" || d === "top" ? Ht.current : kt.current;
643
+ const L = Math.abs(D), H = document.querySelector("[data-vaul-drawer-wrapper]"), J = c === "bottom" || c === "top" ? Ht.current : kt.current;
644
644
  let z = L / J;
645
645
  const et = fe(L, v);
646
646
  if (et !== null && (z = et), O && z >= 1 || !ct.current && !Ft(s.target, v)) return;
647
- if (c.current.classList.add($t), ct.current = !0, C(c.current, {
647
+ if (d.current.classList.add($t), ct.current = !0, $(d.current, {
648
648
  transition: "none"
649
- }), C(rt.current, {
649
+ }), $(rt.current, {
650
650
  transition: "none"
651
651
  }), o && de({
652
652
  draggedDistance: D
653
653
  }), v && !o) {
654
654
  const q = Le(D), vt = Math.min(q * -1, 0) * S;
655
- C(c.current, {
656
- transform: $(d) ? `translate3d(0, ${vt}px, 0)` : `translate3d(${vt}px, 0, 0)`
655
+ $(d.current, {
656
+ transform: C(c) ? `translate3d(0, ${vt}px, 0)` : `translate3d(${vt}px, 0, 0)`
657
657
  });
658
658
  return;
659
659
  }
660
660
  const Q = 1 - z;
661
- if ((Bt || w && ot === w - 1) && (a == null || a(s, z), C(rt.current, {
661
+ if ((Bt || w && ot === w - 1) && (a == null || a(s, z), $(rt.current, {
662
662
  opacity: `${Q}`,
663
663
  transition: "none"
664
664
  }, !0)), H && rt.current && f) {
665
665
  const q = Math.min(gt() + z * (1 - gt()), 1), vt = 8 - z * 8, jt = Math.max(0, 14 - z * 14);
666
- C(H, {
666
+ $(H, {
667
667
  borderRadius: `${vt}px`,
668
- transform: $(d) ? `scale(${q}) translate3d(0, ${jt}px, 0)` : `scale(${q}) translate3d(${jt}px, 0, 0)`,
668
+ transform: C(c) ? `scale(${q}) translate3d(0, ${jt}px, 0)` : `scale(${q}) translate3d(${jt}px, 0, 0)`,
669
669
  transition: "none"
670
670
  }, !0);
671
671
  }
672
672
  if (!o) {
673
673
  const q = L * S;
674
- C(c.current, {
675
- transform: $(d) ? `translate3d(0, ${q}px, 0)` : `translate3d(${q}px, 0, 0)`
674
+ $(d.current, {
675
+ transform: C(c) ? `translate3d(0, ${q}px, 0)` : `translate3d(${q}px, 0, 0)`
676
676
  });
677
677
  }
678
678
  }
@@ -684,25 +684,25 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
684
684
  }, []), r.useEffect(() => {
685
685
  var s;
686
686
  function S() {
687
- if (!c.current || !y) return;
687
+ if (!d.current || !y) return;
688
688
  const D = document.activeElement;
689
689
  if (At(D) || at.current) {
690
690
  var v;
691
691
  const O = ((v = window.visualViewport) == null ? void 0 : v.height) || 0, L = window.innerHeight;
692
692
  let H = L - O;
693
- const J = c.current.getBoundingClientRect().height || 0, z = J > L * 0.8;
693
+ const J = d.current.getBoundingClientRect().height || 0, z = J > L * 0.8;
694
694
  Et.current || (Et.current = J);
695
- const et = c.current.getBoundingClientRect().top;
695
+ const et = d.current.getBoundingClientRect().top;
696
696
  if (Math.abs(_t.current - H) > 60 && (at.current = !at.current), o && o.length > 0 && dt && ot) {
697
697
  const Q = dt[ot] || 0;
698
698
  H += Q;
699
699
  }
700
700
  if (_t.current = H, J > O || at.current) {
701
- const Q = c.current.getBoundingClientRect().height;
701
+ const Q = d.current.getBoundingClientRect().height;
702
702
  let q = Q;
703
- Q > O && (q = O - (z ? et : Nt)), E ? c.current.style.height = `${Q - Math.max(H, 0)}px` : c.current.style.height = `${Math.max(q, O - et)}px`;
704
- } else Ee() || (c.current.style.height = `${Et.current}px`);
705
- o && o.length > 0 && !at.current ? c.current.style.bottom = "0px" : c.current.style.bottom = `${Math.max(H, 0)}px`;
703
+ Q > O && (q = O - (z ? et : Nt)), E ? d.current.style.height = `${Q - Math.max(H, 0)}px` : d.current.style.height = `${Math.max(q, O - et)}px`;
704
+ } else Ee() || (d.current.style.height = `${Et.current}px`);
705
+ o && o.length > 0 && !at.current ? d.current.style.bottom = "0px" : d.current.style.bottom = `${Math.max(H, 0)}px`;
706
706
  }
707
707
  }
708
708
  return (s = window.visualViewport) == null || s.addEventListener("resize", S), () => {
@@ -720,18 +720,18 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
720
720
  }, x.DURATION * 1e3);
721
721
  }
722
722
  function Ut() {
723
- if (!c.current) return;
724
- const s = document.querySelector("[data-vaul-drawer-wrapper]"), S = bt(c.current, d);
725
- C(c.current, {
723
+ if (!d.current) return;
724
+ const s = document.querySelector("[data-vaul-drawer-wrapper]"), S = bt(d.current, c);
725
+ $(d.current, {
726
726
  transform: "translate3d(0, 0, 0)",
727
727
  transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`
728
- }), C(rt.current, {
728
+ }), $(rt.current, {
729
729
  transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
730
730
  opacity: "1"
731
- }), f && S && S > 0 && _ && C(s, {
731
+ }), f && S && S > 0 && _ && $(s, {
732
732
  borderRadius: `${Zt}px`,
733
733
  overflow: "hidden",
734
- ...$(d) ? {
734
+ ...C(c) ? {
735
735
  transform: `scale(${gt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
736
736
  transformOrigin: "top"
737
737
  } : {
@@ -744,26 +744,26 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
744
744
  }, !0);
745
745
  }
746
746
  function he() {
747
- !G || !c.current || (c.current.classList.remove($t), ct.current = !1, lt(!1), Rt.current = /* @__PURE__ */ new Date());
747
+ !G || !d.current || (d.current.classList.remove($t), ct.current = !1, lt(!1), Rt.current = /* @__PURE__ */ new Date());
748
748
  }
749
749
  function ge(s) {
750
- if (!G || !c.current) return;
751
- c.current.classList.remove($t), ct.current = !1, lt(!1), Rt.current = /* @__PURE__ */ new Date();
752
- const S = bt(c.current, d);
750
+ if (!G || !d.current) return;
751
+ d.current.classList.remove($t), ct.current = !1, lt(!1), Rt.current = /* @__PURE__ */ new Date();
752
+ const S = bt(d.current, c);
753
753
  if (!s || !Ft(s.target, !1) || !S || Number.isNaN(S) || St.current === null) return;
754
- const D = Rt.current.getTime() - St.current.getTime(), v = Tt.current - ($(d) ? s.pageY : s.pageX), O = Math.abs(v) / D;
754
+ const D = Rt.current.getTime() - St.current.getTime(), v = Tt.current - (C(c) ? s.pageY : s.pageX), O = Math.abs(v) / D;
755
755
  if (O > 0.05 && (Pt(!0), setTimeout(() => {
756
756
  Pt(!1);
757
757
  }, 200)), o) {
758
758
  ce({
759
- draggedDistance: v * (d === "bottom" || d === "right" ? 1 : -1),
759
+ draggedDistance: v * (c === "bottom" || c === "right" ? 1 : -1),
760
760
  closeDrawer: ft,
761
761
  velocity: O,
762
762
  dismissible: g
763
763
  }), i == null || i(s, !0);
764
764
  return;
765
765
  }
766
- if (d === "bottom" || d === "right" ? v > 0 : v < 0) {
766
+ if (c === "bottom" || c === "right" ? v > 0 : v < 0) {
767
767
  Ut(), i == null || i(s, !0);
768
768
  return;
769
769
  }
@@ -772,16 +772,16 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
772
772
  return;
773
773
  }
774
774
  var L;
775
- const H = Math.min((L = c.current.getBoundingClientRect().height) != null ? L : 0, window.innerHeight);
775
+ const H = Math.min((L = d.current.getBoundingClientRect().height) != null ? L : 0, window.innerHeight);
776
776
  var J;
777
- const z = Math.min((J = c.current.getBoundingClientRect().width) != null ? J : 0, window.innerWidth), et = d === "left" || d === "right";
777
+ const z = Math.min((J = d.current.getBoundingClientRect().width) != null ? J : 0, window.innerWidth), et = c === "left" || c === "right";
778
778
  if (Math.abs(S) >= (et ? z : H) * R) {
779
779
  ft(), i == null || i(s, !1);
780
780
  return;
781
781
  }
782
782
  i == null || i(s, !0), Ut();
783
783
  }
784
- r.useEffect(() => (_ && (C(document.documentElement, {
784
+ r.useEffect(() => (_ && ($(document.documentElement, {
785
785
  scrollBehavior: "auto"
786
786
  }), ht.current = /* @__PURE__ */ new Date()), () => {
787
787
  ke(document.documentElement, "scrollBehavior");
@@ -790,30 +790,30 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
790
790
  ]);
791
791
  function ve(s) {
792
792
  const S = s ? (window.innerWidth - nt) / window.innerWidth : 1, D = s ? -nt : 0;
793
- Dt.current && window.clearTimeout(Dt.current), C(c.current, {
793
+ Dt.current && window.clearTimeout(Dt.current), $(d.current, {
794
794
  transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
795
- transform: `scale(${S}) translate3d(0, ${D}px, 0)`
796
- }), !s && c.current && (Dt.current = setTimeout(() => {
797
- const v = bt(c.current, d);
798
- C(c.current, {
795
+ transform: C(c) ? `scale(${S}) translate3d(0, ${D}px, 0)` : `scale(${S}) translate3d(${D}, 0, 0)`
796
+ }), !s && d.current && (Dt.current = setTimeout(() => {
797
+ const v = bt(d.current, c);
798
+ $(d.current, {
799
799
  transition: "none",
800
- transform: $(d) ? `translate3d(0, ${v}px, 0)` : `translate3d(${v}px, 0, 0)`
800
+ transform: C(c) ? `translate3d(0, ${v}px, 0)` : `translate3d(${v}px, 0, 0)`
801
801
  });
802
802
  }, 500));
803
803
  }
804
804
  function ye(s, S) {
805
805
  if (S < 0) return;
806
806
  const D = (window.innerWidth - nt) / window.innerWidth, v = D + S * (1 - D), O = -nt + S * nt;
807
- C(c.current, {
808
- transform: $(d) ? `scale(${v}) translate3d(0, ${O}px, 0)` : `scale(${v}) translate3d(${O}px, 0, 0)`,
807
+ $(d.current, {
808
+ transform: C(c) ? `scale(${v}) translate3d(0, ${O}px, 0)` : `scale(${v}) translate3d(${O}px, 0, 0)`,
809
809
  transition: "none"
810
810
  });
811
811
  }
812
812
  function be(s, S) {
813
- const D = $(d) ? window.innerHeight : window.innerWidth, v = S ? (D - nt) / D : 1, O = S ? -nt : 0;
814
- S && C(c.current, {
813
+ const D = C(c) ? window.innerHeight : window.innerWidth, v = S ? (D - nt) / D : 1, O = S ? -nt : 0;
814
+ S && $(d.current, {
815
815
  transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
816
- transform: $(d) ? `scale(${v}) translate3d(0, ${O}px, 0)` : `scale(${v}) translate3d(${O}px, 0, 0)`
816
+ transform: C(c) ? `scale(${v}) translate3d(0, ${O}px, 0)` : `scale(${v}) translate3d(${O}px, 0, 0)`
817
817
  });
818
818
  }
819
819
  return r.useEffect(() => {
@@ -833,7 +833,7 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
833
833
  activeSnapPoint: ue,
834
834
  snapPoints: o,
835
835
  setActiveSnapPoint: Lt,
836
- drawerRef: c,
836
+ drawerRef: d,
837
837
  overlayRef: rt,
838
838
  onOpenChange: n,
839
839
  onPress: pe,
@@ -853,7 +853,7 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
853
853
  modal: F,
854
854
  snapPointsOffset: dt,
855
855
  activeSnapPointIndex: ot,
856
- direction: d,
856
+ direction: c,
857
857
  shouldScaleBackground: f,
858
858
  setBackgroundColorOnScale: m,
859
859
  noBodyStyles: A,
@@ -881,7 +881,7 @@ const re = /* @__PURE__ */ r.forwardRef(function({ ...t }, n) {
881
881
  });
882
882
  re.displayName = "Drawer.Overlay";
883
883
  const ae = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, style: n, onOpenAutoFocus: e, ...a }, i) {
884
- const { drawerRef: o, onPress: f, onRelease: m, onDrag: R, keyboardIsOpen: T, snapPointsOffset: g, activeSnapPointIndex: p, modal: w, isOpen: B, direction: k, snapPoints: E, container: F, handleOnly: h, shouldAnimate: N, autoFocus: A } = st(), [d, Y] = r.useState(!1), tt = Gt(i, o), u = r.useRef(null), b = r.useRef(null), y = r.useRef(!1), I = E && E.length > 0;
884
+ const { drawerRef: o, onPress: f, onRelease: m, onDrag: R, keyboardIsOpen: T, snapPointsOffset: g, activeSnapPointIndex: p, modal: w, isOpen: B, direction: k, snapPoints: E, container: F, handleOnly: h, shouldAnimate: N, autoFocus: A } = st(), [c, Y] = r.useState(!1), tt = Gt(i, o), u = r.useRef(null), b = r.useRef(null), y = r.useRef(!1), I = E && E.length > 0;
885
885
  Ve();
886
886
  const M = (l, U, _ = 0) => {
887
887
  if (y.current) return !0;
@@ -907,7 +907,7 @@ const ae = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, styl
907
907
  return /* @__PURE__ */ r.createElement(Z.Content, {
908
908
  "data-vaul-drawer-direction": k,
909
909
  "data-vaul-drawer": "",
910
- "data-vaul-delayed-snap-points": d ? "true" : "false",
910
+ "data-vaul-delayed-snap-points": c ? "true" : "false",
911
911
  "data-vaul-snap-points": B && I ? "true" : "false",
912
912
  "data-vaul-custom-container": F ? "true" : "false",
913
913
  "data-vaul-animate": N != null && N.current ? "true" : "false",
@@ -999,11 +999,11 @@ const qe = 250, Xe = 120, oe = /* @__PURE__ */ r.forwardRef(function({ preventCy
999
999
  return /* @__PURE__ */ r.createElement("div", {
1000
1000
  onClick: F,
1001
1001
  onPointerCancel: A,
1002
- onPointerDown: (d) => {
1003
- g && w(d), N();
1002
+ onPointerDown: (c) => {
1003
+ g && w(c), N();
1004
1004
  },
1005
- onPointerMove: (d) => {
1006
- g && B(d);
1005
+ onPointerMove: (c) => {
1006
+ g && B(c);
1007
1007
  },
1008
1008
  // onPointerUp is already handled by the content component
1009
1009
  ref: a,