zudoku 0.0.0-e4d0ea8 → 0.0.0-e5be921

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 (802) hide show
  1. package/README.md +121 -0
  2. package/client.d.ts +7 -0
  3. package/dist/app/demo.js +0 -2
  4. package/dist/app/demo.js.map +1 -1
  5. package/dist/app/entry.client.d.ts +1 -0
  6. package/dist/app/entry.client.js +27 -0
  7. package/dist/app/entry.client.js.map +1 -1
  8. package/dist/app/entry.server.d.ts +1 -0
  9. package/dist/app/entry.server.js +7 -6
  10. package/dist/app/entry.server.js.map +1 -1
  11. package/dist/app/main.d.ts +1 -1
  12. package/dist/app/main.js +7 -8
  13. package/dist/app/main.js.map +1 -1
  14. package/dist/app/sentry.d.ts +3 -0
  15. package/dist/app/sentry.js +19 -0
  16. package/dist/app/sentry.js.map +1 -0
  17. package/dist/app/standalone.js +0 -2
  18. package/dist/app/standalone.js.map +1 -1
  19. package/dist/app/tailwind.d.ts +2 -1
  20. package/dist/app/tailwind.js +64 -52
  21. package/dist/app/tailwind.js.map +1 -1
  22. package/dist/cli/cli.js +1 -4
  23. package/dist/cli/cli.js.map +1 -1
  24. package/dist/cli/common/logger.js +9 -0
  25. package/dist/cli/common/logger.js.map +1 -1
  26. package/dist/cli/common/outdated.js +2 -1
  27. package/dist/cli/common/outdated.js.map +1 -1
  28. package/dist/codegen.d.ts +3 -0
  29. package/dist/codegen.js +45 -0
  30. package/dist/codegen.js.map +1 -0
  31. package/dist/config/common.d.ts +8 -0
  32. package/dist/config/common.js +2 -0
  33. package/dist/config/common.js.map +1 -0
  34. package/dist/config/config.d.ts +3 -2
  35. package/dist/config/loader.d.ts +20 -0
  36. package/dist/config/loader.js +154 -0
  37. package/dist/config/loader.js.map +1 -0
  38. package/dist/config/validators/InputSidebarSchema.d.ts +33 -17
  39. package/dist/config/validators/InputSidebarSchema.js +7 -28
  40. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  41. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  42. package/dist/config/validators/SidebarSchema.js +77 -37
  43. package/dist/config/validators/SidebarSchema.js.map +1 -1
  44. package/dist/config/validators/common.d.ts +4911 -0
  45. package/dist/config/validators/common.js +276 -0
  46. package/dist/config/validators/common.js.map +1 -0
  47. package/dist/config/validators/icon-types.d.ts +1 -0
  48. package/dist/config/validators/icon-types.js +2 -0
  49. package/dist/config/validators/icon-types.js.map +1 -0
  50. package/dist/config/validators/validate.d.ts +769 -415
  51. package/dist/config/validators/validate.js +12 -214
  52. package/dist/config/validators/validate.js.map +1 -1
  53. package/dist/index.d.ts +3 -3
  54. package/dist/index.js +1 -1
  55. package/dist/index.js.map +1 -1
  56. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  57. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  58. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  59. package/dist/lib/authentication/authentication.d.ts +3 -3
  60. package/dist/lib/authentication/components/CallbackHandler.js +21 -31
  61. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  62. package/dist/lib/authentication/hook.d.ts +5 -4
  63. package/dist/lib/authentication/hook.js +1 -3
  64. package/dist/lib/authentication/hook.js.map +1 -1
  65. package/dist/lib/authentication/providers/auth0.js +12 -11
  66. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  67. package/dist/lib/authentication/providers/openid.d.ts +0 -1
  68. package/dist/lib/authentication/providers/openid.js +17 -27
  69. package/dist/lib/authentication/providers/openid.js.map +1 -1
  70. package/dist/lib/authentication/state.d.ts +25 -4
  71. package/dist/lib/authentication/state.js +28 -3
  72. package/dist/lib/authentication/state.js.map +1 -1
  73. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  74. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  75. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  76. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  77. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  78. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  79. package/dist/lib/components/Bootstrap.d.ts +3 -1
  80. package/dist/lib/components/Bootstrap.js +10 -4
  81. package/dist/lib/components/Bootstrap.js.map +1 -1
  82. package/dist/lib/components/ClientOnly.d.ts +4 -2
  83. package/dist/lib/components/ClientOnly.js +1 -1
  84. package/dist/lib/components/ClientOnly.js.map +1 -1
  85. package/dist/lib/components/DeveloperHint.js +2 -1
  86. package/dist/lib/components/DeveloperHint.js.map +1 -1
  87. package/dist/lib/components/Header.js +17 -10
  88. package/dist/lib/components/Header.js.map +1 -1
  89. package/dist/lib/components/Heading.d.ts +4 -4
  90. package/dist/lib/components/Heading.js +1 -1
  91. package/dist/lib/components/Heading.js.map +1 -1
  92. package/dist/lib/components/Layout.js +14 -5
  93. package/dist/lib/components/Layout.js.map +1 -1
  94. package/dist/lib/components/Markdown.js +1 -1
  95. package/dist/lib/components/Markdown.js.map +1 -1
  96. package/dist/lib/components/MobileTopNavigation.js +8 -6
  97. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  98. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  99. package/dist/lib/components/ReactMarkdown.js +182 -0
  100. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  101. package/dist/lib/components/Search.d.ts +3 -1
  102. package/dist/lib/components/Search.js +3 -3
  103. package/dist/lib/components/Search.js.map +1 -1
  104. package/dist/lib/components/SlotletProvider.d.ts +7 -2
  105. package/dist/lib/components/SlotletProvider.js +3 -5
  106. package/dist/lib/components/SlotletProvider.js.map +1 -1
  107. package/dist/lib/components/SyntaxHighlight.js +19 -16
  108. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  109. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  110. package/dist/lib/components/ThemeSwitch.js +13 -0
  111. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  112. package/dist/lib/components/TopNavigation.d.ts +5 -0
  113. package/dist/lib/components/TopNavigation.js +22 -8
  114. package/dist/lib/components/TopNavigation.js.map +1 -1
  115. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  116. package/dist/lib/components/{DevPortal.js → Zudoku.js} +13 -14
  117. package/dist/lib/components/Zudoku.js.map +1 -0
  118. package/dist/lib/components/context/ZudokuContext.d.ts +7 -6
  119. package/dist/lib/components/context/ZudokuContext.js +8 -13
  120. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  121. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  122. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  123. package/dist/lib/components/index.d.ts +30 -13
  124. package/dist/lib/components/index.js +11 -5
  125. package/dist/lib/components/index.js.map +1 -1
  126. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  127. package/dist/lib/components/navigation/Sidebar.js +2 -2
  128. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  129. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  130. package/dist/lib/components/navigation/SidebarCategory.js +18 -8
  131. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  132. package/dist/lib/components/navigation/SidebarItem.d.ts +2 -4
  133. package/dist/lib/components/navigation/SidebarItem.js +11 -9
  134. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  135. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  136. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  137. package/dist/lib/components/navigation/utils.js +2 -2
  138. package/dist/lib/components/navigation/utils.js.map +1 -1
  139. package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +4 -8
  140. package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -7
  141. package/dist/lib/core/ZudokuContext.js.map +1 -0
  142. package/dist/lib/core/plugins.d.ts +18 -12
  143. package/dist/lib/core/plugins.js.map +1 -1
  144. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  145. package/dist/lib/errors/ErrorAlert.js +8 -3
  146. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  147. package/dist/lib/oas/graphql/index.js +8 -5
  148. package/dist/lib/oas/graphql/index.js.map +1 -1
  149. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  150. package/dist/lib/oas/parser/upgrade/index.js +2 -17
  151. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  152. package/dist/lib/plugins/api-catalog/Catalog.d.ts +6 -0
  153. package/dist/lib/plugins/api-catalog/Catalog.js +29 -0
  154. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  155. package/dist/lib/plugins/api-catalog/index.d.ts +23 -0
  156. package/dist/lib/plugins/api-catalog/index.js +15 -0
  157. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  158. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  159. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  160. package/dist/lib/plugins/api-keys/index.d.ts +9 -9
  161. package/dist/lib/plugins/api-keys/index.js +3 -0
  162. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  163. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
  164. package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
  165. package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
  166. package/dist/lib/plugins/custom-pages/index.d.ts +9 -7
  167. package/dist/lib/plugins/custom-pages/index.js +3 -4
  168. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  169. package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
  170. package/dist/lib/plugins/markdown/MdxPage.js +15 -2
  171. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  172. package/dist/lib/plugins/markdown/index.d.ts +4 -3
  173. package/dist/lib/plugins/markdown/index.js +1 -1
  174. package/dist/lib/plugins/markdown/index.js.map +1 -1
  175. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  176. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  177. package/dist/lib/plugins/openapi/CollapsibleCode.js +24 -0
  178. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  179. package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
  180. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  181. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  182. package/dist/lib/plugins/openapi/Endpoint.js +5 -9
  183. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  184. package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
  185. package/dist/lib/plugins/openapi/OperationList.js +67 -23
  186. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  187. package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
  188. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  189. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +7 -3
  190. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  191. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +9 -2
  192. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  193. package/dist/lib/plugins/openapi/Route.d.ts +4 -4
  194. package/dist/lib/plugins/openapi/Route.js +2 -4
  195. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  196. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  197. package/dist/lib/plugins/openapi/Sidecar.js +35 -33
  198. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  199. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  200. package/dist/lib/plugins/openapi/client/GraphQLClient.js +114 -0
  201. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  202. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  203. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  204. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  205. package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
  206. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
  207. package/dist/lib/plugins/openapi/client/useCreateQuery.js +15 -0
  208. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  209. package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
  210. package/dist/lib/plugins/openapi/client/worker.js +23 -14
  211. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  212. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  213. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  214. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  215. package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -51
  216. package/dist/lib/plugins/openapi/graphql/gql.js +5 -3
  217. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  218. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +34 -8
  219. package/dist/lib/plugins/openapi/graphql/graphql.js +195 -662
  220. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  221. package/dist/lib/plugins/openapi/index.d.ts +2 -2
  222. package/dist/lib/plugins/openapi/index.js +40 -53
  223. package/dist/lib/plugins/openapi/index.js.map +1 -1
  224. package/dist/lib/plugins/openapi/interfaces.d.ts +1 -1
  225. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
  226. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  227. package/dist/lib/plugins/openapi/playground/Playground.js +2 -1
  228. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  229. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  230. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  231. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +6 -0
  232. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +14 -0
  233. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
  234. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
  235. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +125 -0
  236. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
  237. package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
  238. package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
  239. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
  240. package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
  241. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
  242. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
  243. package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
  244. package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
  245. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
  246. package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
  247. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  248. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
  249. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +25 -36
  250. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  251. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  252. package/dist/lib/plugins/openapi-worker.js +7 -1
  253. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  254. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  255. package/dist/lib/plugins/redirect/index.js +1 -1
  256. package/dist/lib/plugins/redirect/index.js.map +1 -1
  257. package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
  258. package/dist/lib/plugins/search-inkeep/index.js +27 -5
  259. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  260. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  261. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  262. package/dist/lib/ui/Accordion.d.ts +7 -0
  263. package/dist/lib/ui/Accordion.js +14 -0
  264. package/dist/lib/ui/Accordion.js.map +1 -0
  265. package/dist/lib/ui/ActionButton.d.ts +4 -0
  266. package/dist/lib/ui/ActionButton.js +10 -0
  267. package/dist/lib/ui/ActionButton.js.map +1 -0
  268. package/dist/lib/ui/Alert.d.ts +8 -0
  269. package/dist/lib/ui/Alert.js +23 -0
  270. package/dist/lib/ui/Alert.js.map +1 -0
  271. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  272. package/dist/lib/ui/AlertDialog.js +27 -0
  273. package/dist/lib/ui/AlertDialog.js.map +1 -0
  274. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  275. package/dist/lib/ui/AspectRatio.js +4 -0
  276. package/dist/lib/ui/AspectRatio.js.map +1 -0
  277. package/dist/lib/ui/Badge.d.ts +9 -0
  278. package/dist/lib/ui/Badge.js +21 -0
  279. package/dist/lib/ui/Badge.js.map +1 -0
  280. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  281. package/dist/lib/ui/Breadcrumb.js +24 -0
  282. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  283. package/dist/lib/ui/Button.d.ts +2 -3
  284. package/dist/lib/ui/Button.js +1 -1
  285. package/dist/lib/ui/Button.js.map +1 -1
  286. package/dist/lib/ui/Carousel.d.ts +18 -0
  287. package/dist/lib/ui/Carousel.js +99 -0
  288. package/dist/lib/ui/Carousel.js.map +1 -0
  289. package/dist/lib/ui/Checkbox.d.ts +4 -0
  290. package/dist/lib/ui/Checkbox.js +9 -0
  291. package/dist/lib/ui/Checkbox.js.map +1 -0
  292. package/dist/lib/ui/Collapsible.d.ts +5 -0
  293. package/dist/lib/ui/Collapsible.js +6 -0
  294. package/dist/lib/ui/Collapsible.js.map +1 -0
  295. package/dist/lib/ui/Command.d.ts +80 -0
  296. package/dist/lib/ui/Command.js +31 -0
  297. package/dist/lib/ui/Command.js.map +1 -0
  298. package/dist/lib/{components → ui}/Dialog.js +2 -2
  299. package/dist/lib/ui/Dialog.js.map +1 -0
  300. package/dist/lib/ui/Form.d.ts +23 -0
  301. package/dist/lib/ui/Form.js +63 -0
  302. package/dist/lib/ui/Form.js.map +1 -0
  303. package/dist/lib/ui/HoverCard.d.ts +6 -0
  304. package/dist/lib/ui/HoverCard.js +10 -0
  305. package/dist/lib/ui/HoverCard.js.map +1 -0
  306. package/dist/lib/ui/Label.d.ts +5 -0
  307. package/dist/lib/ui/Label.js +10 -0
  308. package/dist/lib/ui/Label.js.map +1 -0
  309. package/dist/lib/ui/Pagination.d.ts +28 -0
  310. package/dist/lib/ui/Pagination.js +24 -0
  311. package/dist/lib/ui/Pagination.js.map +1 -0
  312. package/dist/lib/ui/Popover.d.ts +6 -0
  313. package/dist/lib/ui/Popover.js +10 -0
  314. package/dist/lib/ui/Popover.js.map +1 -0
  315. package/dist/lib/ui/Progress.d.ts +4 -0
  316. package/dist/lib/ui/Progress.js +8 -0
  317. package/dist/lib/ui/Progress.js.map +1 -0
  318. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  319. package/dist/lib/ui/RadioGroup.js +15 -0
  320. package/dist/lib/ui/RadioGroup.js.map +1 -0
  321. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  322. package/dist/lib/ui/ScrollArea.js +12 -0
  323. package/dist/lib/ui/ScrollArea.js.map +1 -0
  324. package/dist/lib/ui/Select.js.map +1 -0
  325. package/dist/lib/ui/Skeleton.d.ts +2 -0
  326. package/dist/lib/ui/Skeleton.js +7 -0
  327. package/dist/lib/ui/Skeleton.js.map +1 -0
  328. package/dist/lib/ui/Slider.d.ts +4 -0
  329. package/dist/lib/ui/Slider.js +8 -0
  330. package/dist/lib/ui/Slider.js.map +1 -0
  331. package/dist/lib/ui/Switch.d.ts +4 -0
  332. package/dist/lib/ui/Switch.js +8 -0
  333. package/dist/lib/ui/Switch.js.map +1 -0
  334. package/dist/lib/ui/Textarea.d.ts +4 -0
  335. package/dist/lib/ui/Textarea.js +9 -0
  336. package/dist/lib/ui/Textarea.js.map +1 -0
  337. package/dist/lib/ui/Toggle.d.ts +12 -0
  338. package/dist/lib/ui/Toggle.js +26 -0
  339. package/dist/lib/ui/Toggle.js.map +1 -0
  340. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  341. package/dist/lib/ui/ToggleGroup.js +21 -0
  342. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  343. package/dist/lib/ui/Tooltip.d.ts +7 -0
  344. package/dist/lib/ui/Tooltip.js +11 -0
  345. package/dist/lib/ui/Tooltip.js.map +1 -0
  346. package/dist/lib/util/MdxComponents.d.ts +3 -4
  347. package/dist/lib/util/MdxComponents.js.map +1 -1
  348. package/dist/lib/util/invariant.d.ts +9 -0
  349. package/dist/lib/util/invariant.js +7 -3
  350. package/dist/lib/util/invariant.js.map +1 -1
  351. package/dist/lib/util/traverse.d.ts +2 -0
  352. package/dist/lib/util/traverse.js +18 -0
  353. package/dist/lib/util/traverse.js.map +1 -0
  354. package/dist/lib/util/useExposedProps.d.ts +2 -0
  355. package/dist/lib/util/useExposedProps.js +9 -0
  356. package/dist/lib/util/useExposedProps.js.map +1 -0
  357. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  358. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  359. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  360. package/dist/lib/util/useOnScreen.d.ts +4 -0
  361. package/dist/lib/util/useOnScreen.js +19 -0
  362. package/dist/lib/util/useOnScreen.js.map +1 -0
  363. package/dist/vite/build.js +19 -3
  364. package/dist/vite/build.js.map +1 -1
  365. package/dist/vite/config.d.ts +6 -10
  366. package/dist/vite/config.js +71 -68
  367. package/dist/vite/config.js.map +1 -1
  368. package/dist/vite/config.test.js +7 -5
  369. package/dist/vite/config.test.js.map +1 -1
  370. package/dist/vite/dev-server.js +13 -4
  371. package/dist/vite/dev-server.js.map +1 -1
  372. package/dist/vite/html.js +0 -2
  373. package/dist/vite/html.js.map +1 -1
  374. package/dist/vite/output.d.ts +101 -0
  375. package/dist/vite/output.js +62 -0
  376. package/dist/vite/output.js.map +1 -0
  377. package/dist/vite/plugin-api.js +67 -20
  378. package/dist/vite/plugin-api.js.map +1 -1
  379. package/dist/vite/plugin-component.js +17 -11
  380. package/dist/vite/plugin-component.js.map +1 -1
  381. package/dist/vite/plugin-config-reload.d.ts +1 -2
  382. package/dist/vite/plugin-config-reload.js +0 -2
  383. package/dist/vite/plugin-config-reload.js.map +1 -1
  384. package/dist/vite/plugin-config.d.ts +2 -3
  385. package/dist/vite/plugin-config.js +22 -3
  386. package/dist/vite/plugin-config.js.map +1 -1
  387. package/dist/vite/plugin-docs.js +27 -21
  388. package/dist/vite/plugin-docs.js.map +1 -1
  389. package/dist/vite/plugin-docs.test.js +15 -23
  390. package/dist/vite/plugin-docs.test.js.map +1 -1
  391. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  392. package/dist/vite/plugin-frontmatter.js +27 -24
  393. package/dist/vite/plugin-frontmatter.js.map +1 -1
  394. package/dist/vite/plugin-mdx.d.ts +0 -6
  395. package/dist/vite/plugin-mdx.js +78 -6
  396. package/dist/vite/plugin-mdx.js.map +1 -1
  397. package/dist/vite/plugin-search.d.ts +3 -0
  398. package/dist/vite/plugin-search.js +26 -0
  399. package/dist/vite/plugin-search.js.map +1 -0
  400. package/dist/vite/plugin-sidebar.js +4 -6
  401. package/dist/vite/plugin-sidebar.js.map +1 -1
  402. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +2 -2
  403. package/dist/vite/{plugin-custom-css.js → plugin-theme-css.js} +10 -3
  404. package/dist/vite/plugin-theme-css.js.map +1 -0
  405. package/dist/vite/plugin.d.ts +1 -2
  406. package/dist/vite/plugin.js +6 -6
  407. package/dist/vite/plugin.js.map +1 -1
  408. package/dist/vite/prerender.d.ts +2 -1
  409. package/dist/vite/prerender.js +4 -3
  410. package/dist/vite/prerender.js.map +1 -1
  411. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  412. package/dist/vite/remarkStaticGeneration.js +125 -0
  413. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  414. package/dist/vite/sitemap.d.ts +1 -1
  415. package/dist/zuplo/env.d.ts +6 -0
  416. package/dist/zuplo/env.js +9 -0
  417. package/dist/zuplo/env.js.map +1 -0
  418. package/dist/zuplo/with-zuplo.d.ts +3 -0
  419. package/dist/zuplo/with-zuplo.js +28 -0
  420. package/dist/zuplo/with-zuplo.js.map +1 -0
  421. package/lib/AnchorLink-BR0MvI7n.js +35 -0
  422. package/lib/AnchorLink-BR0MvI7n.js.map +1 -0
  423. package/lib/AuthenticationPlugin-D0Em0SwR.js +59 -0
  424. package/lib/{AuthenticationPlugin-Cnqy9csQ.js.map → AuthenticationPlugin-D0Em0SwR.js.map} +1 -1
  425. package/lib/Button-jK0EsymC.js +48 -0
  426. package/lib/Button-jK0EsymC.js.map +1 -0
  427. package/lib/{CategoryHeading-C7VfgpFZ.js → CategoryHeading-Bb9dqxD3.js} +4 -4
  428. package/lib/{CategoryHeading-C7VfgpFZ.js.map → CategoryHeading-Bb9dqxD3.js.map} +1 -1
  429. package/lib/ClientOnly-E7hGysn1.js +11 -0
  430. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  431. package/lib/Dialog-k70Qfukb.js +67 -0
  432. package/lib/Dialog-k70Qfukb.js.map +1 -0
  433. package/lib/Markdown-CRsmPPfY.js +15180 -0
  434. package/lib/Markdown-CRsmPPfY.js.map +1 -0
  435. package/lib/MdxPage-Wp8QU0-q.js +188 -0
  436. package/lib/MdxPage-Wp8QU0-q.js.map +1 -0
  437. package/lib/OperationList-u8xHU9-b.js +4706 -0
  438. package/lib/OperationList-u8xHU9-b.js.map +1 -0
  439. package/lib/Route-DlG_HTMu.js +11 -0
  440. package/lib/Route-DlG_HTMu.js.map +1 -0
  441. package/lib/Select-O9ZM3ZgX.js +223 -0
  442. package/lib/Select-O9ZM3ZgX.js.map +1 -0
  443. package/lib/SidebarBadge-DxFJcJ6V.js +51 -0
  444. package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
  445. package/lib/SlotletProvider-BgvYIPQe.js +252 -0
  446. package/lib/SlotletProvider-BgvYIPQe.js.map +1 -0
  447. package/lib/SyntaxHighlight-C31iouiO.js +2981 -0
  448. package/lib/SyntaxHighlight-C31iouiO.js.map +1 -0
  449. package/lib/_commonjsHelpers-BkfeUUK-.js +29 -0
  450. package/lib/_commonjsHelpers-BkfeUUK-.js.map +1 -0
  451. package/lib/assets/{worker-DaFlmuyf.js → worker-C_2va8B8.js} +2591 -2502
  452. package/lib/assets/worker-C_2va8B8.js.map +1 -0
  453. package/lib/cn-BmFQLtkS.js +2279 -0
  454. package/lib/cn-BmFQLtkS.js.map +1 -0
  455. package/lib/context-D1nXWxm7.js +22 -0
  456. package/lib/context-D1nXWxm7.js.map +1 -0
  457. package/lib/createServer-BCAHdrpE.js +15302 -0
  458. package/lib/createServer-BCAHdrpE.js.map +1 -0
  459. package/lib/hook-hEqe7fPB.js +227 -0
  460. package/lib/hook-hEqe7fPB.js.map +1 -0
  461. package/lib/index-Bn6Lc9tq.js +9 -0
  462. package/lib/{index-DJqnphbT.js.map → index-Bn6Lc9tq.js.map} +1 -1
  463. package/lib/index-BuAyrJe3.js +46 -0
  464. package/lib/index-BuAyrJe3.js.map +1 -0
  465. package/lib/index-CmdLGbbk.js +1279 -0
  466. package/lib/index-CmdLGbbk.js.map +1 -0
  467. package/lib/index-Czzd9rjU.js +899 -0
  468. package/lib/index-Czzd9rjU.js.map +1 -0
  469. package/lib/{index-D06ATMgg.js → index-LNp6rxyU.js} +2 -2
  470. package/lib/{index-D06ATMgg.js.map → index-LNp6rxyU.js.map} +1 -1
  471. package/lib/index-Yn8c3UWE.js +921 -0
  472. package/lib/index-Yn8c3UWE.js.map +1 -0
  473. package/lib/{AnchorLink-DovtSBJk.js → index.esm-Bm8pj-bc.js} +223 -253
  474. package/lib/index.esm-Bm8pj-bc.js.map +1 -0
  475. package/lib/index.esm-C5mr_sKO.js +1193 -0
  476. package/lib/index.esm-C5mr_sKO.js.map +1 -0
  477. package/lib/invariant-Caa8-XvF.js +26 -0
  478. package/lib/invariant-Caa8-XvF.js.map +1 -0
  479. package/lib/object_hash-CvlLgU-M.js +785 -0
  480. package/lib/object_hash-CvlLgU-M.js.map +1 -0
  481. package/lib/post-processors/removeExtensions.js +11 -0
  482. package/lib/post-processors/removeExtensions.js.map +1 -0
  483. package/lib/post-processors/removePaths.js +28 -0
  484. package/lib/post-processors/removePaths.js.map +1 -0
  485. package/lib/post-processors/traverse.js +12 -0
  486. package/lib/post-processors/traverse.js.map +1 -0
  487. package/lib/{router-Oe6YmY6B.js → router-lfyopgBI.js} +23 -23
  488. package/lib/{router-Oe6YmY6B.js.map → router-lfyopgBI.js.map} +1 -1
  489. package/lib/state-tsXBLONe.js +203 -0
  490. package/lib/{state-CsuHT8ZO.js.map → state-tsXBLONe.js.map} +1 -1
  491. package/lib/ui/Accordion.js +47 -0
  492. package/lib/ui/Accordion.js.map +1 -0
  493. package/lib/ui/ActionButton.js +25 -0
  494. package/lib/ui/ActionButton.js.map +1 -0
  495. package/lib/ui/Alert.js +51 -0
  496. package/lib/ui/Alert.js.map +1 -0
  497. package/lib/ui/AlertDialog.js +114 -0
  498. package/lib/ui/AlertDialog.js.map +1 -0
  499. package/lib/ui/AspectRatio.js +6 -0
  500. package/lib/ui/AspectRatio.js.map +1 -0
  501. package/lib/ui/Badge.js +27 -0
  502. package/lib/ui/Badge.js.map +1 -0
  503. package/lib/ui/Breadcrumb.js +94 -0
  504. package/lib/ui/Breadcrumb.js.map +1 -0
  505. package/lib/ui/Button.js +49 -0
  506. package/lib/ui/Button.js.map +1 -0
  507. package/lib/ui/Callout.js +77 -0
  508. package/lib/ui/Callout.js.map +1 -0
  509. package/lib/ui/Card.js +62 -0
  510. package/lib/ui/Card.js.map +1 -0
  511. package/lib/ui/Carousel.js +1410 -0
  512. package/lib/ui/Carousel.js.map +1 -0
  513. package/lib/ui/Checkbox.js +28 -0
  514. package/lib/ui/Checkbox.js.map +1 -0
  515. package/lib/ui/Collapsible.js +8 -0
  516. package/lib/ui/Collapsible.js.map +1 -0
  517. package/lib/ui/Command.js +550 -0
  518. package/lib/ui/Command.js.map +1 -0
  519. package/lib/ui/Dialog.js +101 -0
  520. package/lib/ui/Dialog.js.map +1 -0
  521. package/lib/ui/Drawer.js +1153 -0
  522. package/lib/ui/Drawer.js.map +1 -0
  523. package/lib/ui/DropdownMenu.js +145 -0
  524. package/lib/ui/DropdownMenu.js.map +1 -0
  525. package/lib/ui/Form.js +95 -0
  526. package/lib/ui/Form.js.map +1 -0
  527. package/lib/ui/HoverCard.js +24 -0
  528. package/lib/ui/HoverCard.js.map +1 -0
  529. package/lib/ui/Input.js +22 -0
  530. package/lib/ui/Input.js.map +1 -0
  531. package/lib/ui/Label.js +20 -0
  532. package/lib/ui/Label.js.map +1 -0
  533. package/lib/ui/Pagination.js +106 -0
  534. package/lib/ui/Pagination.js.map +1 -0
  535. package/lib/ui/Popover.js +24 -0
  536. package/lib/ui/Popover.js.map +1 -0
  537. package/lib/ui/Progress.js +27 -0
  538. package/lib/ui/Progress.js.map +1 -0
  539. package/lib/ui/RadioGroup.js +32 -0
  540. package/lib/ui/RadioGroup.js.map +1 -0
  541. package/lib/ui/ScrollArea.js +39 -0
  542. package/lib/ui/ScrollArea.js.map +1 -0
  543. package/lib/ui/Select.js +122 -0
  544. package/lib/ui/Select.js.map +1 -0
  545. package/lib/ui/Skeleton.js +18 -0
  546. package/lib/ui/Skeleton.js.map +1 -0
  547. package/lib/ui/Slider.js +24 -0
  548. package/lib/ui/Slider.js.map +1 -0
  549. package/lib/ui/Switch.js +28 -0
  550. package/lib/ui/Switch.js.map +1 -0
  551. package/lib/ui/Tabs.js +47 -0
  552. package/lib/ui/Tabs.js.map +1 -0
  553. package/lib/ui/Textarea.js +21 -0
  554. package/lib/ui/Textarea.js.map +1 -0
  555. package/lib/ui/Toggle.js +38 -0
  556. package/lib/ui/Toggle.js.map +1 -0
  557. package/lib/ui/ToggleGroup.js +42 -0
  558. package/lib/ui/ToggleGroup.js.map +1 -0
  559. package/lib/ui/Tooltip.js +24 -0
  560. package/lib/ui/Tooltip.js.map +1 -0
  561. package/lib/useExposedProps-CTPtylCV.js +10 -0
  562. package/lib/useExposedProps-CTPtylCV.js.map +1 -0
  563. package/lib/{ZudokuContext-DSipF8sq.js → utils-DcpDOncX.js} +244 -248
  564. package/lib/utils-DcpDOncX.js.map +1 -0
  565. package/lib/zudoku.auth-auth0.js +24 -18
  566. package/lib/zudoku.auth-auth0.js.map +1 -1
  567. package/lib/zudoku.auth-clerk.js +2 -2
  568. package/lib/zudoku.auth-openid.js +506 -521
  569. package/lib/zudoku.auth-openid.js.map +1 -1
  570. package/lib/zudoku.components.js +1214 -3002
  571. package/lib/zudoku.components.js.map +1 -1
  572. package/lib/zudoku.openapi-worker.js +10 -16250
  573. package/lib/zudoku.openapi-worker.js.map +1 -1
  574. package/lib/zudoku.plugin-api-catalog.js +121 -0
  575. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  576. package/lib/zudoku.plugin-api-keys.js +72 -77
  577. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  578. package/lib/zudoku.plugin-custom-pages.js +17 -8
  579. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  580. package/lib/zudoku.plugin-markdown.js +15 -14
  581. package/lib/zudoku.plugin-markdown.js.map +1 -1
  582. package/lib/zudoku.plugin-openapi.js +6 -10
  583. package/lib/zudoku.plugin-openapi.js.map +1 -1
  584. package/lib/zudoku.plugin-redirect.js +2 -2
  585. package/lib/zudoku.plugin-redirect.js.map +1 -1
  586. package/lib/zudoku.plugin-search-inkeep.js +44 -27
  587. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  588. package/package.json +72 -17
  589. package/src/app/demo.tsx +0 -3
  590. package/src/app/entry.client.tsx +29 -0
  591. package/src/app/entry.server.tsx +60 -53
  592. package/src/app/main.css +1 -2
  593. package/src/app/main.tsx +12 -10
  594. package/src/app/sentry.ts +24 -0
  595. package/src/app/standalone.tsx +0 -3
  596. package/src/app/tailwind.ts +67 -52
  597. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  598. package/src/lib/authentication/authentication.ts +3 -3
  599. package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
  600. package/src/lib/authentication/hook.ts +1 -3
  601. package/src/lib/authentication/providers/auth0.tsx +17 -11
  602. package/src/lib/authentication/providers/openid.tsx +18 -31
  603. package/src/lib/authentication/state.ts +50 -9
  604. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  605. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  606. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  607. package/src/lib/components/Bootstrap.tsx +36 -14
  608. package/src/lib/components/ClientOnly.tsx +6 -3
  609. package/src/lib/components/DeveloperHint.tsx +6 -1
  610. package/src/lib/components/Header.tsx +79 -44
  611. package/src/lib/components/Heading.tsx +13 -13
  612. package/src/lib/components/Layout.tsx +54 -37
  613. package/src/lib/components/Markdown.tsx +1 -1
  614. package/src/lib/components/MobileTopNavigation.tsx +30 -27
  615. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  616. package/src/lib/components/ReactMarkdown.tsx +264 -0
  617. package/src/lib/components/Search.tsx +4 -4
  618. package/src/lib/components/SlotletProvider.tsx +16 -7
  619. package/src/lib/components/SyntaxHighlight.tsx +85 -50
  620. package/src/lib/components/ThemeSwitch.tsx +26 -0
  621. package/src/lib/components/TopNavigation.tsx +40 -19
  622. package/src/lib/components/Zudoku.tsx +108 -0
  623. package/src/lib/components/context/ZudokuContext.ts +11 -16
  624. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  625. package/src/lib/components/index.ts +14 -6
  626. package/src/lib/components/navigation/Sidebar.tsx +20 -10
  627. package/src/lib/components/navigation/SidebarCategory.tsx +38 -29
  628. package/src/lib/components/navigation/SidebarItem.tsx +22 -26
  629. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  630. package/src/lib/components/navigation/utils.ts +2 -2
  631. package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +4 -12
  632. package/src/lib/core/plugins.ts +20 -16
  633. package/src/lib/errors/ErrorAlert.tsx +20 -6
  634. package/src/lib/oas/graphql/index.ts +8 -5
  635. package/src/lib/oas/parser/upgrade/index.ts +3 -24
  636. package/src/lib/plugins/api-catalog/Catalog.tsx +124 -0
  637. package/src/lib/plugins/api-catalog/index.tsx +50 -0
  638. package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
  639. package/src/lib/plugins/api-keys/index.tsx +12 -9
  640. package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
  641. package/src/lib/plugins/custom-pages/index.tsx +13 -11
  642. package/src/lib/plugins/markdown/MdxPage.tsx +37 -9
  643. package/src/lib/plugins/markdown/index.tsx +5 -3
  644. package/src/lib/plugins/markdown/resolver.ts +2 -4
  645. package/src/lib/plugins/openapi/CollapsibleCode.tsx +80 -0
  646. package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
  647. package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
  648. package/src/lib/plugins/openapi/OperationList.tsx +78 -37
  649. package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
  650. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +18 -13
  651. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +17 -12
  652. package/src/lib/plugins/openapi/Route.tsx +11 -12
  653. package/src/lib/plugins/openapi/Sidecar.tsx +73 -59
  654. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +157 -0
  655. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  656. package/src/lib/plugins/openapi/client/createServer.ts +2 -0
  657. package/src/lib/plugins/openapi/client/useCreateQuery.ts +21 -0
  658. package/src/lib/plugins/openapi/client/worker.ts +38 -24
  659. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  660. package/src/lib/plugins/openapi/graphql/gql.ts +12 -29
  661. package/src/lib/plugins/openapi/graphql/graphql.ts +236 -665
  662. package/src/lib/plugins/openapi/index.tsx +42 -67
  663. package/src/lib/plugins/openapi/interfaces.ts +1 -1
  664. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -0
  665. package/src/lib/plugins/openapi/playground/Playground.tsx +4 -3
  666. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  667. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +144 -0
  668. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +24 -0
  669. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
  670. package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
  671. package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
  672. package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -2
  673. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +28 -42
  674. package/src/lib/plugins/openapi-worker.ts +11 -1
  675. package/src/lib/plugins/redirect/index.tsx +5 -9
  676. package/src/lib/plugins/search-inkeep/index.tsx +61 -25
  677. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  678. package/src/lib/ui/Accordion.tsx +56 -0
  679. package/src/lib/ui/ActionButton.tsx +28 -0
  680. package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
  681. package/src/lib/ui/AlertDialog.tsx +139 -0
  682. package/src/lib/ui/AspectRatio.tsx +5 -0
  683. package/src/lib/ui/Badge.tsx +36 -0
  684. package/src/lib/ui/Breadcrumb.tsx +115 -0
  685. package/src/lib/ui/Button.tsx +1 -1
  686. package/src/lib/ui/Carousel.tsx +260 -0
  687. package/src/lib/ui/Checkbox.tsx +28 -0
  688. package/src/lib/ui/Collapsible.tsx +9 -0
  689. package/src/lib/ui/Command.tsx +151 -0
  690. package/src/lib/{components → ui}/Dialog.tsx +4 -3
  691. package/src/lib/ui/Form.tsx +177 -0
  692. package/src/lib/ui/HoverCard.tsx +27 -0
  693. package/src/lib/ui/Label.tsx +24 -0
  694. package/src/lib/ui/Pagination.tsx +117 -0
  695. package/src/lib/ui/Popover.tsx +29 -0
  696. package/src/lib/ui/Progress.tsx +26 -0
  697. package/src/lib/ui/RadioGroup.tsx +42 -0
  698. package/src/lib/ui/ScrollArea.tsx +46 -0
  699. package/src/lib/ui/Skeleton.tsx +15 -0
  700. package/src/lib/ui/Slider.tsx +26 -0
  701. package/src/lib/ui/Switch.tsx +27 -0
  702. package/src/lib/ui/Textarea.tsx +23 -0
  703. package/src/lib/ui/Toggle.tsx +43 -0
  704. package/src/lib/ui/ToggleGroup.tsx +59 -0
  705. package/src/lib/ui/Tooltip.tsx +28 -0
  706. package/src/lib/util/MdxComponents.tsx +2 -6
  707. package/src/lib/util/invariant.ts +15 -3
  708. package/src/lib/util/traverse.ts +25 -0
  709. package/src/lib/util/useExposedProps.tsx +16 -0
  710. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  711. package/src/lib/util/useOnScreen.ts +32 -0
  712. package/dist/internal.d.ts +0 -1
  713. package/dist/internal.js +0 -2
  714. package/dist/internal.js.map +0 -1
  715. package/dist/lib/components/DevPortal.js.map +0 -1
  716. package/dist/lib/components/Dialog.js.map +0 -1
  717. package/dist/lib/components/Select.js.map +0 -1
  718. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  719. package/dist/lib/components/context/ThemeContext.js +0 -7
  720. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  721. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  722. package/dist/lib/components/context/ThemeProvider.js +0 -23
  723. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  724. package/dist/lib/core/DevPortalContext.js.map +0 -1
  725. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  726. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  727. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  728. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  729. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  730. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  731. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  732. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  733. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  734. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  735. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  736. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  737. package/dist/lib/themeToggle.d.ts +0 -1
  738. package/dist/lib/themeToggle.js +0 -7
  739. package/dist/lib/themeToggle.js.map +0 -1
  740. package/dist/lib/ui/Note.d.ts +0 -8
  741. package/dist/lib/ui/Note.js +0 -23
  742. package/dist/lib/ui/Note.js.map +0 -1
  743. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  744. package/dist/lib/util/createWaitForNotify.js +0 -15
  745. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  746. package/dist/vite/plugin-custom-css.js.map +0 -1
  747. package/dist/vite/plugin-html-transform.d.ts +0 -2
  748. package/dist/vite/plugin-html-transform.js +0 -15
  749. package/dist/vite/plugin-html-transform.js.map +0 -1
  750. package/lib/AnchorLink-DovtSBJk.js.map +0 -1
  751. package/lib/AuthenticationPlugin-Cnqy9csQ.js +0 -55
  752. package/lib/DeveloperHint-CNyuFROc.js +0 -16
  753. package/lib/DeveloperHint-CNyuFROc.js.map +0 -1
  754. package/lib/ErrorPage-CUz-Zzmx.js +0 -16
  755. package/lib/ErrorPage-CUz-Zzmx.js.map +0 -1
  756. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  757. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  758. package/lib/Input-x-t53FyR.js +0 -2229
  759. package/lib/Input-x-t53FyR.js.map +0 -1
  760. package/lib/Markdown-C-0TaxoY.js +0 -20441
  761. package/lib/Markdown-C-0TaxoY.js.map +0 -1
  762. package/lib/MdxPage-C5I9c7R1.js +0 -173
  763. package/lib/MdxPage-C5I9c7R1.js.map +0 -1
  764. package/lib/OperationList-qsBOguHS.js +0 -601
  765. package/lib/OperationList-qsBOguHS.js.map +0 -1
  766. package/lib/Route-DlKvXPAO.js +0 -13
  767. package/lib/Route-DlKvXPAO.js.map +0 -1
  768. package/lib/SidebarBadge-DaA0-bFW.js +0 -503
  769. package/lib/SidebarBadge-DaA0-bFW.js.map +0 -1
  770. package/lib/SlotletProvider-BGEs7yyu.js +0 -240
  771. package/lib/SlotletProvider-BGEs7yyu.js.map +0 -1
  772. package/lib/ZudokuContext-DSipF8sq.js.map +0 -1
  773. package/lib/assets/worker-DaFlmuyf.js.map +0 -1
  774. package/lib/index-BIl-R3aH.js +0 -5952
  775. package/lib/index-BIl-R3aH.js.map +0 -1
  776. package/lib/index-CKmSo0py.js +0 -124
  777. package/lib/index-CKmSo0py.js.map +0 -1
  778. package/lib/index-DJqnphbT.js +0 -35
  779. package/lib/index-Dssw7Gff.js +0 -2867
  780. package/lib/index-Dssw7Gff.js.map +0 -1
  781. package/lib/index-SrtqdZ3j.js +0 -1781
  782. package/lib/index-SrtqdZ3j.js.map +0 -1
  783. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  784. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  785. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  786. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  787. package/lib/state-CsuHT8ZO.js +0 -183
  788. package/lib/urql-core-KJnLL26g.js +0 -1455
  789. package/lib/urql-core-KJnLL26g.js.map +0 -1
  790. package/src/lib/components/DevPortal.tsx +0 -111
  791. package/src/lib/components/context/ThemeContext.tsx +0 -8
  792. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  793. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  794. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  795. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  796. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  797. package/src/lib/themeToggle.ts +0 -7
  798. package/src/lib/util/createWaitForNotify.ts +0 -18
  799. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  800. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
  801. /package/dist/lib/{components → ui}/Select.js +0 -0
  802. /package/src/lib/{components → ui}/Select.tsx +0 -0
@@ -0,0 +1,550 @@
1
+ import { j as A } from "../jsx-runtime-B6kdoens.js";
2
+ import * as Q from "@radix-ui/react-dialog";
3
+ import * as a from "react";
4
+ import we from "react";
5
+ import { Primitive as j } from "@radix-ui/react-primitive";
6
+ import { useId as F } from "@radix-ui/react-id";
7
+ import { Search as Le } from "lucide-react";
8
+ import { D as De, a as je } from "../Dialog-k70Qfukb.js";
9
+ import { c as U } from "../cn-BmFQLtkS.js";
10
+ var Se = 1, Me = 0.9, Ve = 0.8, $e = 0.17, ne = 0.1, ae = 0.999, Te = 0.9999, Ke = 0.99, Ue = /[\\\/_+.#"@\[\(\{&]/, Ge = /[\\\/_+.#"@\[\(\{&]/g, qe = /[\s-]/, _e = /[\s-]/g;
11
+ function ie(e, n, t, f, l, i, s) {
12
+ if (i === n.length) return l === e.length ? Se : Ke;
13
+ var v = `${l},${i}`;
14
+ if (s[v] !== void 0) return s[v];
15
+ for (var g = f.charAt(i), m = t.indexOf(g, l), c = 0, u, S, E, R; m >= 0; ) u = ie(e, n, t, f, m + 1, i + 1, s), u > c && (m === l ? u *= Se : Ue.test(e.charAt(m - 1)) ? (u *= Ve, E = e.slice(l, m - 1).match(Ge), E && l > 0 && (u *= Math.pow(ae, E.length))) : qe.test(e.charAt(m - 1)) ? (u *= Me, R = e.slice(l, m - 1).match(_e), R && l > 0 && (u *= Math.pow(ae, R.length))) : (u *= $e, l > 0 && (u *= Math.pow(ae, m - l))), e.charAt(m) !== n.charAt(i) && (u *= Te)), (u < ne && t.charAt(m - 1) === f.charAt(i + 1) || f.charAt(i + 1) === f.charAt(i) && t.charAt(m - 1) !== f.charAt(i)) && (S = ie(e, n, t, f, m + 1, i + 2, s), S * ne > u && (u = S * ne)), u > c && (c = u), m = t.indexOf(g, m + 1);
16
+ return s[v] = c, c;
17
+ }
18
+ function ye(e) {
19
+ return e.toLowerCase().replace(_e, " ");
20
+ }
21
+ function Fe(e, n, t) {
22
+ return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, ie(e, n, ye(e), ye(n), 0, 0, {});
23
+ }
24
+ var ce = { exports: {} }, le = {};
25
+ /**
26
+ * @license React
27
+ * use-sync-external-store-shim.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */
34
+ var Ee;
35
+ function Pe() {
36
+ if (Ee) return le;
37
+ Ee = 1;
38
+ var e = we;
39
+ function n(u, S) {
40
+ return u === S && (u !== 0 || 1 / u === 1 / S) || u !== u && S !== S;
41
+ }
42
+ var t = typeof Object.is == "function" ? Object.is : n, f = e.useState, l = e.useEffect, i = e.useLayoutEffect, s = e.useDebugValue;
43
+ function v(u, S) {
44
+ var E = S(), R = f({ inst: { value: E, getSnapshot: S } }), C = R[0].inst, I = R[1];
45
+ return i(function() {
46
+ C.value = E, C.getSnapshot = S, g(C) && I({ inst: C });
47
+ }, [u, E, S]), l(function() {
48
+ return g(C) && I({ inst: C }), u(function() {
49
+ g(C) && I({ inst: C });
50
+ });
51
+ }, [u]), s(E), E;
52
+ }
53
+ function g(u) {
54
+ var S = u.getSnapshot;
55
+ u = u.value;
56
+ try {
57
+ var E = S();
58
+ return !t(u, E);
59
+ } catch {
60
+ return !0;
61
+ }
62
+ }
63
+ function m(u, S) {
64
+ return S();
65
+ }
66
+ var c = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? m : v;
67
+ return le.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : c, le;
68
+ }
69
+ var oe = {};
70
+ /**
71
+ * @license React
72
+ * use-sync-external-store-shim.development.js
73
+ *
74
+ * Copyright (c) Facebook, Inc. and its affiliates.
75
+ *
76
+ * This source code is licensed under the MIT license found in the
77
+ * LICENSE file in the root directory of this source tree.
78
+ */
79
+ var xe;
80
+ function Be() {
81
+ return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
82
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
83
+ var e = we, n = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
84
+ function t(w) {
85
+ {
86
+ for (var x = arguments.length, k = new Array(x > 1 ? x - 1 : 0), p = 1; p < x; p++)
87
+ k[p - 1] = arguments[p];
88
+ f("error", w, k);
89
+ }
90
+ }
91
+ function f(w, x, k) {
92
+ {
93
+ var p = n.ReactDebugCurrentFrame, _ = p.getStackAddendum();
94
+ _ !== "" && (x += "%s", k = k.concat([_]));
95
+ var D = k.map(function(N) {
96
+ return String(N);
97
+ });
98
+ D.unshift("Warning: " + x), Function.prototype.apply.call(console[w], console, D);
99
+ }
100
+ }
101
+ function l(w, x) {
102
+ return w === x && (w !== 0 || 1 / w === 1 / x) || w !== w && x !== x;
103
+ }
104
+ var i = typeof Object.is == "function" ? Object.is : l, s = e.useState, v = e.useEffect, g = e.useLayoutEffect, m = e.useDebugValue, c = !1, u = !1;
105
+ function S(w, x, k) {
106
+ c || e.startTransition !== void 0 && (c = !0, t("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
107
+ var p = x();
108
+ if (!u) {
109
+ var _ = x();
110
+ i(p, _) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), u = !0);
111
+ }
112
+ var D = s({
113
+ inst: {
114
+ value: p,
115
+ getSnapshot: x
116
+ }
117
+ }), N = D[0].inst, M = D[1];
118
+ return g(function() {
119
+ N.value = p, N.getSnapshot = x, E(N) && M({
120
+ inst: N
121
+ });
122
+ }, [w, p, x]), v(function() {
123
+ E(N) && M({
124
+ inst: N
125
+ });
126
+ var P = function() {
127
+ E(N) && M({
128
+ inst: N
129
+ });
130
+ };
131
+ return w(P);
132
+ }, [w]), m(p), p;
133
+ }
134
+ function E(w) {
135
+ var x = w.getSnapshot, k = w.value;
136
+ try {
137
+ var p = x();
138
+ return !i(k, p);
139
+ } catch {
140
+ return !0;
141
+ }
142
+ }
143
+ function R(w, x, k) {
144
+ return x();
145
+ }
146
+ var C = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", I = !C, G = I ? R : S, J = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : G;
147
+ oe.useSyncExternalStore = J, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
148
+ }()), oe;
149
+ }
150
+ process.env.NODE_ENV === "production" ? ce.exports = Pe() : ce.exports = Be();
151
+ var He = ce.exports, W = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', We = '[cmdk-group-heading=""]', se = '[cmdk-item=""]', be = `${se}:not([aria-disabled="true"])`, de = "cmdk-item-select", $ = "data-value", ze = (e, n, t) => Fe(e, n, t), ke = a.createContext(void 0), Y = () => a.useContext(ke), Re = a.createContext(void 0), fe = () => a.useContext(Re), Ce = a.createContext(void 0), Oe = a.forwardRef((e, n) => {
152
+ let t = q(() => {
153
+ var r, d;
154
+ return { search: "", value: (d = (r = e.value) != null ? r : e.defaultValue) != null ? d : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
155
+ }), f = q(() => /* @__PURE__ */ new Set()), l = q(() => /* @__PURE__ */ new Map()), i = q(() => /* @__PURE__ */ new Map()), s = q(() => /* @__PURE__ */ new Set()), v = Ie(e), { label: g, children: m, value: c, onValueChange: u, filter: S, shouldFilter: E, loop: R, disablePointerSelection: C = !1, vimBindings: I = !0, ...G } = e, J = F(), w = F(), x = F(), k = a.useRef(null), p = lt();
156
+ T(() => {
157
+ if (c !== void 0) {
158
+ let r = c.trim();
159
+ t.current.value = r, _.emit();
160
+ }
161
+ }, [c]), T(() => {
162
+ p(6, me);
163
+ }, []);
164
+ let _ = a.useMemo(() => ({ subscribe: (r) => (s.current.add(r), () => s.current.delete(r)), snapshot: () => t.current, setState: (r, d, h) => {
165
+ var o, y, b;
166
+ if (!Object.is(t.current[r], d)) {
167
+ if (t.current[r] = d, r === "search") ee(), M(), p(1, P);
168
+ else if (r === "value" && (h || p(5, me), ((o = v.current) == null ? void 0 : o.value) !== void 0)) {
169
+ let L = d ?? "";
170
+ (b = (y = v.current).onValueChange) == null || b.call(y, L);
171
+ return;
172
+ }
173
+ _.emit();
174
+ }
175
+ }, emit: () => {
176
+ s.current.forEach((r) => r());
177
+ } }), []), D = a.useMemo(() => ({ value: (r, d, h) => {
178
+ var o;
179
+ d !== ((o = i.current.get(r)) == null ? void 0 : o.value) && (i.current.set(r, { value: d, keywords: h }), t.current.filtered.items.set(r, N(d, h)), p(2, () => {
180
+ M(), _.emit();
181
+ }));
182
+ }, item: (r, d) => (f.current.add(r), d && (l.current.has(d) ? l.current.get(d).add(r) : l.current.set(d, /* @__PURE__ */ new Set([r]))), p(3, () => {
183
+ ee(), M(), t.current.value || P(), _.emit();
184
+ }), () => {
185
+ i.current.delete(r), f.current.delete(r), t.current.filtered.items.delete(r);
186
+ let h = B();
187
+ p(4, () => {
188
+ ee(), (h == null ? void 0 : h.getAttribute("id")) === r && P(), _.emit();
189
+ });
190
+ }), group: (r) => (l.current.has(r) || l.current.set(r, /* @__PURE__ */ new Set()), () => {
191
+ i.current.delete(r), l.current.delete(r);
192
+ }), filter: () => v.current.shouldFilter, label: g || e["aria-label"], getDisablePointerSelection: () => v.current.disablePointerSelection, listId: J, inputId: x, labelId: w, listInnerRef: k }), []);
193
+ function N(r, d) {
194
+ var h, o;
195
+ let y = (o = (h = v.current) == null ? void 0 : h.filter) != null ? o : ze;
196
+ return r ? y(r, t.current.search, d) : 0;
197
+ }
198
+ function M() {
199
+ if (!t.current.search || v.current.shouldFilter === !1) return;
200
+ let r = t.current.filtered.items, d = [];
201
+ t.current.filtered.groups.forEach((o) => {
202
+ let y = l.current.get(o), b = 0;
203
+ y.forEach((L) => {
204
+ let V = r.get(L);
205
+ b = Math.max(V, b);
206
+ }), d.push([o, b]);
207
+ });
208
+ let h = k.current;
209
+ H().sort((o, y) => {
210
+ var b, L;
211
+ let V = o.getAttribute("id"), X = y.getAttribute("id");
212
+ return ((b = r.get(X)) != null ? b : 0) - ((L = r.get(V)) != null ? L : 0);
213
+ }).forEach((o) => {
214
+ let y = o.closest(ue);
215
+ y ? y.appendChild(o.parentElement === y ? o : o.closest(`${ue} > *`)) : h.appendChild(o.parentElement === h ? o : o.closest(`${ue} > *`));
216
+ }), d.sort((o, y) => y[1] - o[1]).forEach((o) => {
217
+ var y;
218
+ let b = (y = k.current) == null ? void 0 : y.querySelector(`${W}[${$}="${encodeURIComponent(o[0])}"]`);
219
+ b == null || b.parentElement.appendChild(b);
220
+ });
221
+ }
222
+ function P() {
223
+ let r = H().find((h) => h.getAttribute("aria-disabled") !== "true"), d = r == null ? void 0 : r.getAttribute($);
224
+ _.setState("value", d || void 0);
225
+ }
226
+ function ee() {
227
+ var r, d, h, o;
228
+ if (!t.current.search || v.current.shouldFilter === !1) {
229
+ t.current.filtered.count = f.current.size;
230
+ return;
231
+ }
232
+ t.current.filtered.groups = /* @__PURE__ */ new Set();
233
+ let y = 0;
234
+ for (let b of f.current) {
235
+ let L = (d = (r = i.current.get(b)) == null ? void 0 : r.value) != null ? d : "", V = (o = (h = i.current.get(b)) == null ? void 0 : h.keywords) != null ? o : [], X = N(L, V);
236
+ t.current.filtered.items.set(b, X), X > 0 && y++;
237
+ }
238
+ for (let [b, L] of l.current) for (let V of L) if (t.current.filtered.items.get(V) > 0) {
239
+ t.current.filtered.groups.add(b);
240
+ break;
241
+ }
242
+ t.current.filtered.count = y;
243
+ }
244
+ function me() {
245
+ var r, d, h;
246
+ let o = B();
247
+ o && (((r = o.parentElement) == null ? void 0 : r.firstChild) === o && ((h = (d = o.closest(W)) == null ? void 0 : d.querySelector(We)) == null || h.scrollIntoView({ block: "nearest" })), o.scrollIntoView({ block: "nearest" }));
248
+ }
249
+ function B() {
250
+ var r;
251
+ return (r = k.current) == null ? void 0 : r.querySelector(`${se}[aria-selected="true"]`);
252
+ }
253
+ function H() {
254
+ var r;
255
+ return Array.from(((r = k.current) == null ? void 0 : r.querySelectorAll(be)) || []);
256
+ }
257
+ function te(r) {
258
+ let d = H()[r];
259
+ d && _.setState("value", d.getAttribute($));
260
+ }
261
+ function re(r) {
262
+ var d;
263
+ let h = B(), o = H(), y = o.findIndex((L) => L === h), b = o[y + r];
264
+ (d = v.current) != null && d.loop && (b = y + r < 0 ? o[o.length - 1] : y + r === o.length ? o[0] : o[y + r]), b && _.setState("value", b.getAttribute($));
265
+ }
266
+ function pe(r) {
267
+ let d = B(), h = d == null ? void 0 : d.closest(W), o;
268
+ for (; h && !o; ) h = r > 0 ? nt(h, W) : at(h, W), o = h == null ? void 0 : h.querySelector(be);
269
+ o ? _.setState("value", o.getAttribute($)) : re(r);
270
+ }
271
+ let ve = () => te(H().length - 1), he = (r) => {
272
+ r.preventDefault(), r.metaKey ? ve() : r.altKey ? pe(1) : re(1);
273
+ }, ge = (r) => {
274
+ r.preventDefault(), r.metaKey ? te(0) : r.altKey ? pe(-1) : re(-1);
275
+ };
276
+ return a.createElement(j.div, { ref: n, tabIndex: -1, ...G, "cmdk-root": "", onKeyDown: (r) => {
277
+ var d;
278
+ if ((d = G.onKeyDown) == null || d.call(G, r), !r.defaultPrevented) switch (r.key) {
279
+ case "n":
280
+ case "j": {
281
+ I && r.ctrlKey && he(r);
282
+ break;
283
+ }
284
+ case "ArrowDown": {
285
+ he(r);
286
+ break;
287
+ }
288
+ case "p":
289
+ case "k": {
290
+ I && r.ctrlKey && ge(r);
291
+ break;
292
+ }
293
+ case "ArrowUp": {
294
+ ge(r);
295
+ break;
296
+ }
297
+ case "Home": {
298
+ r.preventDefault(), te(0);
299
+ break;
300
+ }
301
+ case "End": {
302
+ r.preventDefault(), ve();
303
+ break;
304
+ }
305
+ case "Enter":
306
+ if (!r.nativeEvent.isComposing && r.keyCode !== 229) {
307
+ r.preventDefault();
308
+ let h = B();
309
+ if (h) {
310
+ let o = new Event(de);
311
+ h.dispatchEvent(o);
312
+ }
313
+ }
314
+ }
315
+ } }, a.createElement("label", { "cmdk-label": "", htmlFor: D.inputId, id: D.labelId, style: ut }, g), Z(e, (r) => a.createElement(Re.Provider, { value: _ }, a.createElement(ke.Provider, { value: D }, r))));
316
+ }), Ye = a.forwardRef((e, n) => {
317
+ var t, f;
318
+ let l = F(), i = a.useRef(null), s = a.useContext(Ce), v = Y(), g = Ie(e), m = (f = (t = g.current) == null ? void 0 : t.forceMount) != null ? f : s == null ? void 0 : s.forceMount;
319
+ T(() => {
320
+ if (!m) return v.item(l, s == null ? void 0 : s.id);
321
+ }, [m]);
322
+ let c = Ne(l, i, [e.value, e.children, i], e.keywords), u = fe(), S = K((p) => p.value && p.value === c.current), E = K((p) => m || v.filter() === !1 ? !0 : p.search ? p.filtered.items.get(l) > 0 : !0);
323
+ a.useEffect(() => {
324
+ let p = i.current;
325
+ if (!(!p || e.disabled)) return p.addEventListener(de, R), () => p.removeEventListener(de, R);
326
+ }, [E, e.onSelect, e.disabled]);
327
+ function R() {
328
+ var p, _;
329
+ C(), (_ = (p = g.current).onSelect) == null || _.call(p, c.current);
330
+ }
331
+ function C() {
332
+ u.setState("value", c.current, !0);
333
+ }
334
+ if (!E) return null;
335
+ let { disabled: I, value: G, onSelect: J, forceMount: w, keywords: x, ...k } = e;
336
+ return a.createElement(j.div, { ref: z([i, n]), ...k, id: l, "cmdk-item": "", role: "option", "aria-disabled": !!I, "aria-selected": !!S, "data-disabled": !!I, "data-selected": !!S, onPointerMove: I || v.getDisablePointerSelection() ? void 0 : C, onClick: I ? void 0 : R }, e.children);
337
+ }), Je = a.forwardRef((e, n) => {
338
+ let { heading: t, children: f, forceMount: l, ...i } = e, s = F(), v = a.useRef(null), g = a.useRef(null), m = F(), c = Y(), u = K((E) => l || c.filter() === !1 ? !0 : E.search ? E.filtered.groups.has(s) : !0);
339
+ T(() => c.group(s), []), Ne(s, v, [e.value, e.heading, g]);
340
+ let S = a.useMemo(() => ({ id: s, forceMount: l }), [l]);
341
+ return a.createElement(j.div, { ref: z([v, n]), ...i, "cmdk-group": "", role: "presentation", hidden: u ? void 0 : !0 }, t && a.createElement("div", { ref: g, "cmdk-group-heading": "", "aria-hidden": !0, id: m }, t), Z(e, (E) => a.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? m : void 0 }, a.createElement(Ce.Provider, { value: S }, E))));
342
+ }), Xe = a.forwardRef((e, n) => {
343
+ let { alwaysRender: t, ...f } = e, l = a.useRef(null), i = K((s) => !s.search);
344
+ return !t && !i ? null : a.createElement(j.div, { ref: z([l, n]), ...f, "cmdk-separator": "", role: "separator" });
345
+ }), Qe = a.forwardRef((e, n) => {
346
+ let { onValueChange: t, ...f } = e, l = e.value != null, i = fe(), s = K((c) => c.search), v = K((c) => c.value), g = Y(), m = a.useMemo(() => {
347
+ var c;
348
+ let u = (c = g.listInnerRef.current) == null ? void 0 : c.querySelector(`${se}[${$}="${encodeURIComponent(v)}"]`);
349
+ return u == null ? void 0 : u.getAttribute("id");
350
+ }, []);
351
+ return a.useEffect(() => {
352
+ e.value != null && i.setState("search", e.value);
353
+ }, [e.value]), a.createElement(j.input, { ref: n, ...f, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": g.listId, "aria-labelledby": g.labelId, "aria-activedescendant": m, id: g.inputId, type: "text", value: l ? e.value : s, onChange: (c) => {
354
+ l || i.setState("search", c.target.value), t == null || t(c.target.value);
355
+ } });
356
+ }), Ze = a.forwardRef((e, n) => {
357
+ let { children: t, label: f = "Suggestions", ...l } = e, i = a.useRef(null), s = a.useRef(null), v = Y();
358
+ return a.useEffect(() => {
359
+ if (s.current && i.current) {
360
+ let g = s.current, m = i.current, c, u = new ResizeObserver(() => {
361
+ c = requestAnimationFrame(() => {
362
+ let S = g.offsetHeight;
363
+ m.style.setProperty("--cmdk-list-height", S.toFixed(1) + "px");
364
+ });
365
+ });
366
+ return u.observe(g), () => {
367
+ cancelAnimationFrame(c), u.unobserve(g);
368
+ };
369
+ }
370
+ }, []), a.createElement(j.div, { ref: z([i, n]), ...l, "cmdk-list": "", role: "listbox", "aria-label": f, id: v.listId }, Z(e, (g) => a.createElement("div", { ref: z([s, v.listInnerRef]), "cmdk-list-sizer": "" }, g)));
371
+ }), et = a.forwardRef((e, n) => {
372
+ let { open: t, onOpenChange: f, overlayClassName: l, contentClassName: i, container: s, ...v } = e;
373
+ return a.createElement(Q.Root, { open: t, onOpenChange: f }, a.createElement(Q.Portal, { container: s }, a.createElement(Q.Overlay, { "cmdk-overlay": "", className: l }), a.createElement(Q.Content, { "aria-label": e.label, "cmdk-dialog": "", className: i }, a.createElement(Oe, { ref: n, ...v }))));
374
+ }), tt = a.forwardRef((e, n) => K((t) => t.filtered.count === 0) ? a.createElement(j.div, { ref: n, ...e, "cmdk-empty": "", role: "presentation" }) : null), rt = a.forwardRef((e, n) => {
375
+ let { progress: t, children: f, label: l = "Loading...", ...i } = e;
376
+ return a.createElement(j.div, { ref: n, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": l }, Z(e, (s) => a.createElement("div", { "aria-hidden": !0 }, s)));
377
+ }), O = Object.assign(Oe, { List: Ze, Item: Ye, Input: Qe, Group: Je, Separator: Xe, Dialog: et, Empty: tt, Loading: rt });
378
+ function nt(e, n) {
379
+ let t = e.nextElementSibling;
380
+ for (; t; ) {
381
+ if (t.matches(n)) return t;
382
+ t = t.nextElementSibling;
383
+ }
384
+ }
385
+ function at(e, n) {
386
+ let t = e.previousElementSibling;
387
+ for (; t; ) {
388
+ if (t.matches(n)) return t;
389
+ t = t.previousElementSibling;
390
+ }
391
+ }
392
+ function Ie(e) {
393
+ let n = a.useRef(e);
394
+ return T(() => {
395
+ n.current = e;
396
+ }), n;
397
+ }
398
+ var T = typeof window > "u" ? a.useEffect : a.useLayoutEffect;
399
+ function q(e) {
400
+ let n = a.useRef();
401
+ return n.current === void 0 && (n.current = e()), n;
402
+ }
403
+ function z(e) {
404
+ return (n) => {
405
+ e.forEach((t) => {
406
+ typeof t == "function" ? t(n) : t != null && (t.current = n);
407
+ });
408
+ };
409
+ }
410
+ function K(e) {
411
+ let n = fe(), t = () => e(n.snapshot());
412
+ return He.useSyncExternalStore(n.subscribe, t, t);
413
+ }
414
+ function Ne(e, n, t, f = []) {
415
+ let l = a.useRef(), i = Y();
416
+ return T(() => {
417
+ var s;
418
+ let v = (() => {
419
+ var m;
420
+ for (let c of t) {
421
+ if (typeof c == "string") return c.trim();
422
+ if (typeof c == "object" && "current" in c) return c.current ? (m = c.current.textContent) == null ? void 0 : m.trim() : l.current;
423
+ }
424
+ })(), g = f.map((m) => m.trim());
425
+ i.value(e, v, g), (s = n.current) == null || s.setAttribute($, v), l.current = v;
426
+ }), l;
427
+ }
428
+ var lt = () => {
429
+ let [e, n] = a.useState(), t = q(() => /* @__PURE__ */ new Map());
430
+ return T(() => {
431
+ t.current.forEach((f) => f()), t.current = /* @__PURE__ */ new Map();
432
+ }, [e]), (f, l) => {
433
+ t.current.set(f, l), n({});
434
+ };
435
+ };
436
+ function ot(e) {
437
+ let n = e.type;
438
+ return typeof n == "function" ? n(e.props) : "render" in n ? n.render(e.props) : e;
439
+ }
440
+ function Z({ asChild: e, children: n }, t) {
441
+ return e && a.isValidElement(n) ? a.cloneElement(ot(n), { ref: n.ref }, t(n.props.children)) : t(n);
442
+ }
443
+ var ut = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
444
+ const Ae = a.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ A.jsx(
445
+ O,
446
+ {
447
+ ref: t,
448
+ className: U(
449
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
450
+ e
451
+ ),
452
+ ...n
453
+ }
454
+ ));
455
+ Ae.displayName = O.displayName;
456
+ const bt = ({ children: e, ...n }) => /* @__PURE__ */ A.jsx(De, { ...n, children: /* @__PURE__ */ A.jsx(je, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ A.jsx(Ae, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), it = a.forwardRef(({ className: e, ...n }, t) => (
457
+ // eslint-disable-next-line react/no-unknown-property
458
+ /* @__PURE__ */ A.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
459
+ /* @__PURE__ */ A.jsx(Le, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
460
+ /* @__PURE__ */ A.jsx(
461
+ O.Input,
462
+ {
463
+ ref: t,
464
+ className: U(
465
+ "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
466
+ e
467
+ ),
468
+ ...n
469
+ }
470
+ )
471
+ ] })
472
+ ));
473
+ it.displayName = O.Input.displayName;
474
+ const ct = a.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ A.jsx(
475
+ O.List,
476
+ {
477
+ ref: t,
478
+ className: U("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
479
+ ...n
480
+ }
481
+ ));
482
+ ct.displayName = O.List.displayName;
483
+ const dt = a.forwardRef((e, n) => /* @__PURE__ */ A.jsx(
484
+ O.Empty,
485
+ {
486
+ ref: n,
487
+ className: "py-6 text-center text-sm",
488
+ ...e
489
+ }
490
+ ));
491
+ dt.displayName = O.Empty.displayName;
492
+ const st = a.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ A.jsx(
493
+ O.Group,
494
+ {
495
+ ref: t,
496
+ className: U(
497
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
498
+ e
499
+ ),
500
+ ...n
501
+ }
502
+ ));
503
+ st.displayName = O.Group.displayName;
504
+ const ft = a.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ A.jsx(
505
+ O.Separator,
506
+ {
507
+ ref: t,
508
+ className: U("-mx-1 h-px bg-border", e),
509
+ ...n
510
+ }
511
+ ));
512
+ ft.displayName = O.Separator.displayName;
513
+ const mt = a.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ A.jsx(
514
+ O.Item,
515
+ {
516
+ ref: t,
517
+ className: U(
518
+ "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
519
+ e
520
+ ),
521
+ ...n
522
+ }
523
+ ));
524
+ mt.displayName = O.Item.displayName;
525
+ const pt = ({
526
+ className: e,
527
+ ...n
528
+ }) => /* @__PURE__ */ A.jsx(
529
+ "span",
530
+ {
531
+ className: U(
532
+ "ml-auto text-xs tracking-widest text-muted-foreground",
533
+ e
534
+ ),
535
+ ...n
536
+ }
537
+ );
538
+ pt.displayName = "CommandShortcut";
539
+ export {
540
+ Ae as Command,
541
+ bt as CommandDialog,
542
+ dt as CommandEmpty,
543
+ st as CommandGroup,
544
+ it as CommandInput,
545
+ mt as CommandItem,
546
+ ct as CommandList,
547
+ ft as CommandSeparator,
548
+ pt as CommandShortcut
549
+ };
550
+ //# sourceMappingURL=Command.js.map