zudoku 0.0.0-reset-hash-value.ac516c6d → 0.0.0-z179c4f85

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 (818) hide show
  1. package/client.d.ts +8 -0
  2. package/dist/app/entry.server.js +14 -1
  3. package/dist/app/entry.server.js.map +1 -1
  4. package/dist/app/main.d.ts +91 -1
  5. package/dist/app/main.js +5 -1
  6. package/dist/app/main.js.map +1 -1
  7. package/dist/app/sentry.js +1 -1
  8. package/dist/cli/common/version-check.js +12 -3
  9. package/dist/cli/common/version-check.js.map +1 -1
  10. package/dist/config/config.d.ts +15 -44
  11. package/dist/config/validators/BuildSchema.d.ts +5 -4
  12. package/dist/config/validators/BuildSchema.js +23 -5
  13. package/dist/config/validators/BuildSchema.js.map +1 -1
  14. package/dist/config/validators/InputNavigationSchema.d.ts +83 -81
  15. package/dist/config/validators/InputNavigationSchema.js +1 -0
  16. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  17. package/dist/config/validators/NavigationSchema.js +8 -5
  18. package/dist/config/validators/NavigationSchema.js.map +1 -1
  19. package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
  20. package/dist/config/validators/validate.d.ts +243 -20
  21. package/dist/config/validators/validate.js +52 -10
  22. package/dist/config/validators/validate.js.map +1 -1
  23. package/dist/config/validators/validate.test.js +43 -0
  24. package/dist/config/validators/validate.test.js.map +1 -1
  25. package/dist/flat-config.d.ts +39 -4
  26. package/dist/index.d.ts +2 -1
  27. package/dist/index.js +2 -1
  28. package/dist/index.js.map +1 -1
  29. package/dist/lib/auth/issuer.js +3 -0
  30. package/dist/lib/auth/issuer.js.map +1 -1
  31. package/dist/lib/authentication/authentication.d.ts +19 -10
  32. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  33. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  34. package/dist/lib/authentication/components/OAuthErrorPage.js +1 -1
  35. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -1
  36. package/dist/lib/authentication/components/SignIn.js +8 -5
  37. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  38. package/dist/lib/authentication/components/SignOut.js +6 -6
  39. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  40. package/dist/lib/authentication/components/SignUp.js +7 -5
  41. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  42. package/dist/lib/authentication/hook.d.ts +5 -2
  43. package/dist/lib/authentication/hook.js +22 -8
  44. package/dist/lib/authentication/hook.js.map +1 -1
  45. package/dist/lib/authentication/providers/auth0.js +18 -9
  46. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  47. package/dist/lib/authentication/providers/azureb2c.d.ts +4 -4
  48. package/dist/lib/authentication/providers/azureb2c.js +3 -3
  49. package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
  50. package/dist/lib/authentication/providers/clerk.js +2 -24
  51. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  52. package/dist/lib/authentication/providers/firebase.d.ts +4 -0
  53. package/dist/lib/authentication/providers/firebase.js +273 -0
  54. package/dist/lib/authentication/providers/firebase.js.map +1 -0
  55. package/dist/lib/authentication/providers/openid.d.ts +7 -7
  56. package/dist/lib/authentication/providers/openid.js +3 -3
  57. package/dist/lib/authentication/providers/openid.js.map +1 -1
  58. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
  59. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
  60. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
  61. package/dist/lib/authentication/providers/supabase.js +36 -46
  62. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  63. package/dist/lib/authentication/state.d.ts +1 -5
  64. package/dist/lib/authentication/state.js +2 -14
  65. package/dist/lib/authentication/state.js.map +1 -1
  66. package/dist/lib/authentication/ui/EmailVerificationUi.d.ts +4 -0
  67. package/dist/lib/authentication/ui/EmailVerificationUi.js +34 -0
  68. package/dist/lib/authentication/ui/EmailVerificationUi.js.map +1 -0
  69. package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +29 -0
  70. package/dist/lib/authentication/ui/ZudokuAuthUi.js +160 -0
  71. package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -0
  72. package/dist/lib/authentication/ui/icons/Apple.d.ts +3 -0
  73. package/dist/lib/authentication/ui/icons/Apple.js +4 -0
  74. package/dist/lib/authentication/ui/icons/Apple.js.map +1 -0
  75. package/dist/lib/authentication/ui/icons/Facebook.d.ts +3 -0
  76. package/dist/lib/authentication/ui/icons/Facebook.js +4 -0
  77. package/dist/lib/authentication/ui/icons/Facebook.js.map +1 -0
  78. package/dist/lib/authentication/ui/icons/Github.d.ts +3 -0
  79. package/dist/lib/authentication/ui/icons/Github.js +4 -0
  80. package/dist/lib/authentication/ui/icons/Github.js.map +1 -0
  81. package/dist/lib/authentication/ui/icons/Google.d.ts +3 -0
  82. package/dist/lib/authentication/ui/icons/Google.js +4 -0
  83. package/dist/lib/authentication/ui/icons/Google.js.map +1 -0
  84. package/dist/lib/authentication/ui/icons/Microsoft.d.ts +3 -0
  85. package/dist/lib/authentication/ui/icons/Microsoft.js +4 -0
  86. package/dist/lib/authentication/ui/icons/Microsoft.js.map +1 -0
  87. package/dist/lib/authentication/ui/icons/X.d.ts +3 -0
  88. package/dist/lib/authentication/ui/icons/X.js +4 -0
  89. package/dist/lib/authentication/ui/icons/X.js.map +1 -0
  90. package/dist/lib/authentication/utils/relativeRedirectUrl.d.ts +1 -0
  91. package/dist/lib/authentication/utils/relativeRedirectUrl.js +8 -0
  92. package/dist/lib/authentication/utils/relativeRedirectUrl.js.map +1 -0
  93. package/dist/lib/components/Autocomplete.d.ts +3 -1
  94. package/dist/lib/components/Autocomplete.js +6 -2
  95. package/dist/lib/components/Autocomplete.js.map +1 -1
  96. package/dist/lib/components/Heading.d.ts +1 -1
  97. package/dist/lib/components/Layout.js +3 -2
  98. package/dist/lib/components/Layout.js.map +1 -1
  99. package/dist/lib/components/Mermaid.d.ts +7 -0
  100. package/dist/lib/components/Mermaid.js +42 -0
  101. package/dist/lib/components/Mermaid.js.map +1 -0
  102. package/dist/lib/components/PagefindSearchMeta.d.ts +8 -0
  103. package/dist/lib/components/PagefindSearchMeta.js +7 -0
  104. package/dist/lib/components/PagefindSearchMeta.js.map +1 -0
  105. package/dist/lib/components/Pagination.js +2 -2
  106. package/dist/lib/components/Pagination.js.map +1 -1
  107. package/dist/lib/components/Zudoku.js +5 -8
  108. package/dist/lib/components/Zudoku.js.map +1 -1
  109. package/dist/lib/components/index.d.ts +7 -2
  110. package/dist/lib/components/index.js +4 -0
  111. package/dist/lib/components/index.js.map +1 -1
  112. package/dist/lib/components/navigation/NavigationItem.js +4 -4
  113. package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
  114. package/dist/lib/components/navigation/Toc.js +1 -1
  115. package/dist/lib/components/navigation/Toc.js.map +1 -1
  116. package/dist/lib/core/RouteGuard.d.ts +1 -1
  117. package/dist/lib/core/RouteGuard.js +22 -25
  118. package/dist/lib/core/RouteGuard.js.map +1 -1
  119. package/dist/lib/core/ZudokuContext.d.ts +1 -0
  120. package/dist/lib/core/ZudokuContext.js +2 -0
  121. package/dist/lib/core/ZudokuContext.js.map +1 -1
  122. package/dist/lib/core/__internal.d.ts +1 -1
  123. package/dist/lib/core/plugins.d.ts +3 -3
  124. package/dist/lib/core/react-query.d.ts +1 -0
  125. package/dist/lib/core/react-query.js +2 -0
  126. package/dist/lib/core/react-query.js.map +1 -0
  127. package/dist/lib/errors/ErrorAlert.js +1 -1
  128. package/dist/lib/errors/ErrorMessage.d.ts +3 -0
  129. package/dist/lib/errors/ErrorMessage.js +16 -0
  130. package/dist/lib/errors/ErrorMessage.js.map +1 -0
  131. package/dist/lib/errors/RouterError.d.ts +3 -1
  132. package/dist/lib/errors/RouterError.js +3 -2
  133. package/dist/lib/errors/RouterError.js.map +1 -1
  134. package/dist/lib/hooks/index.d.ts +4 -2
  135. package/dist/lib/oas/graphql/circular.d.ts +2 -0
  136. package/dist/lib/oas/graphql/circular.js +32 -10
  137. package/dist/lib/oas/graphql/circular.js.map +1 -1
  138. package/dist/lib/oas/graphql/circular.test.d.ts +1 -0
  139. package/dist/lib/oas/graphql/circular.test.js +152 -0
  140. package/dist/lib/oas/graphql/circular.test.js.map +1 -0
  141. package/dist/lib/oas/graphql/index.js +7 -3
  142. package/dist/lib/oas/graphql/index.js.map +1 -1
  143. package/dist/lib/oas/parser/index.d.ts +1 -0
  144. package/dist/lib/oas/parser/index.js +7 -3
  145. package/dist/lib/oas/parser/index.js.map +1 -1
  146. package/dist/lib/plugins/api-keys/ProtectedRoute.js +4 -1
  147. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  148. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +9 -172
  149. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  150. package/dist/lib/plugins/api-keys/index.d.ts +11 -4
  151. package/dist/lib/plugins/api-keys/index.js +36 -22
  152. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  153. package/dist/lib/plugins/api-keys/settings/ApiKeyItem.d.ts +12 -0
  154. package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js +133 -0
  155. package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js.map +1 -0
  156. package/dist/lib/plugins/api-keys/settings/ApiKeyList.d.ts +4 -0
  157. package/dist/lib/plugins/api-keys/settings/ApiKeyList.js +33 -0
  158. package/dist/lib/plugins/api-keys/settings/ApiKeyList.js.map +1 -0
  159. package/dist/lib/plugins/api-keys/settings/RevealApiKey.d.ts +6 -0
  160. package/dist/lib/plugins/api-keys/settings/RevealApiKey.js +39 -0
  161. package/dist/lib/plugins/api-keys/settings/RevealApiKey.js.map +1 -0
  162. package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -1
  163. package/dist/lib/plugins/markdown/MdxPage.js +3 -2
  164. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  165. package/dist/lib/plugins/markdown/index.d.ts +1 -0
  166. package/dist/lib/plugins/markdown/index.js +1 -1
  167. package/dist/lib/plugins/markdown/index.js.map +1 -1
  168. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +1 -0
  169. package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
  170. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  171. package/dist/lib/plugins/openapi/DownloadSchemaButton.d.ts +3 -0
  172. package/dist/lib/plugins/openapi/DownloadSchemaButton.js +47 -0
  173. package/dist/lib/plugins/openapi/DownloadSchemaButton.js.map +1 -0
  174. package/dist/lib/plugins/openapi/Endpoint.js +3 -6
  175. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  176. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.d.ts +5 -0
  177. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +10 -0
  178. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js.map +1 -0
  179. package/dist/lib/plugins/openapi/OasProvider.js +22 -13
  180. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  181. package/dist/lib/plugins/openapi/OperationList.js +20 -6
  182. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  183. package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -1
  184. package/dist/lib/plugins/openapi/OperationListItem.js +4 -3
  185. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  186. package/dist/lib/plugins/openapi/ParamInfos.js +1 -0
  187. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  188. package/dist/lib/plugins/openapi/ParameterList.js +7 -4
  189. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  190. package/dist/lib/plugins/openapi/ParameterListItem.js +17 -6
  191. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  192. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +9 -2
  193. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -2
  194. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  195. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +4 -2
  196. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +26 -4
  197. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  198. package/dist/lib/plugins/openapi/SchemaList.js +2 -1
  199. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  200. package/dist/lib/plugins/openapi/Sidecar.d.ts +2 -2
  201. package/dist/lib/plugins/openapi/Sidecar.js +64 -28
  202. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  203. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  204. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  205. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -2
  206. package/dist/lib/plugins/openapi/SidecarExamples.js +24 -43
  207. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  208. package/dist/lib/plugins/openapi/components/ConstValue.js +1 -1
  209. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -1
  210. package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
  211. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
  212. package/dist/lib/plugins/openapi/components/NonHighlightedCode.d.ts +4 -0
  213. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js +5 -0
  214. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js.map +1 -0
  215. package/dist/lib/plugins/openapi/components/ResponseContent.js +5 -6
  216. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -1
  217. package/dist/lib/plugins/openapi/index.js +15 -14
  218. package/dist/lib/plugins/openapi/index.js.map +1 -1
  219. package/dist/lib/plugins/openapi/interfaces.d.ts +29 -13
  220. package/dist/lib/plugins/openapi/playground/BodyPanel.js +67 -15
  221. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
  222. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +2 -2
  223. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -1
  224. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -1
  225. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  226. package/dist/lib/plugins/openapi/playground/Headers.js +23 -83
  227. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  228. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +10 -2
  229. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +8 -1
  230. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  231. package/dist/lib/plugins/openapi/playground/PathParams.js +2 -3
  232. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  233. package/dist/lib/plugins/openapi/playground/Playground.d.ts +7 -0
  234. package/dist/lib/plugins/openapi/playground/Playground.js +70 -28
  235. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  236. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -2
  237. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  238. package/dist/lib/plugins/openapi/playground/QueryParams.js +16 -40
  239. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  240. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +2 -1
  241. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +10 -2
  242. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -1
  243. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.d.ts +8 -0
  244. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js +19 -0
  245. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js.map +1 -0
  246. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +1 -1
  247. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -1
  248. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.d.ts +1 -0
  249. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js +540 -0
  250. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js.map +1 -0
  251. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.d.ts +40 -0
  252. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js +205 -0
  253. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js.map +1 -0
  254. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +1 -1
  255. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +1 -1
  256. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -1
  257. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +23 -21
  258. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  259. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +1 -1
  260. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  261. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +2 -0
  262. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -1
  263. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +1 -1
  264. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
  265. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +17 -8
  266. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  267. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -1
  268. package/dist/lib/plugins/openapi/schema/SchemaView.js +31 -16
  269. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  270. package/dist/lib/plugins/openapi/schema/UnionView.js +2 -5
  271. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -1
  272. package/dist/lib/plugins/openapi/schema/union-helpers.js +0 -1
  273. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -1
  274. package/dist/lib/plugins/openapi/schema/utils.d.ts +2 -2
  275. package/dist/lib/plugins/openapi/schema/utils.js +11 -3
  276. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  277. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +24 -1
  278. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
  279. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +9 -11
  280. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  281. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +6 -1
  282. package/dist/lib/plugins/openapi/util/getRoutes.js +29 -2
  283. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  284. package/dist/lib/plugins/search-pagefind/IndexingDialog.d.ts +3 -0
  285. package/dist/lib/plugins/search-pagefind/IndexingDialog.js +64 -0
  286. package/dist/lib/plugins/search-pagefind/IndexingDialog.js.map +1 -0
  287. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +22 -5
  288. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  289. package/dist/lib/plugins/search-pagefind/ResultList.js +5 -4
  290. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  291. package/dist/lib/shiki.d.ts +2 -2
  292. package/dist/lib/shiki.js +31 -14
  293. package/dist/lib/shiki.js.map +1 -1
  294. package/dist/lib/ui/Badge.d.ts +3 -3
  295. package/dist/lib/ui/Badge.js +9 -7
  296. package/dist/lib/ui/Badge.js.map +1 -1
  297. package/dist/lib/ui/Button.d.ts +2 -2
  298. package/dist/lib/ui/Button.js +10 -8
  299. package/dist/lib/ui/Button.js.map +1 -1
  300. package/dist/lib/ui/ButtonGroup.d.ts +11 -0
  301. package/dist/lib/ui/ButtonGroup.js +28 -0
  302. package/dist/lib/ui/ButtonGroup.js.map +1 -0
  303. package/dist/lib/ui/Callout.d.ts +5 -5
  304. package/dist/lib/ui/Callout.js +5 -5
  305. package/dist/lib/ui/Callout.js.map +1 -1
  306. package/dist/lib/ui/Checkbox.d.ts +2 -2
  307. package/dist/lib/ui/Checkbox.js +4 -4
  308. package/dist/lib/ui/Checkbox.js.map +1 -1
  309. package/dist/lib/ui/CodeBlock.d.ts +0 -1
  310. package/dist/lib/ui/CodeBlock.js +1 -1
  311. package/dist/lib/ui/CodeBlock.js.map +1 -1
  312. package/dist/lib/ui/Collapsible.d.ts +4 -4
  313. package/dist/lib/ui/Collapsible.js +11 -4
  314. package/dist/lib/ui/Collapsible.js.map +1 -1
  315. package/dist/lib/ui/Command.d.ts +3 -3
  316. package/dist/lib/ui/Command.js +2 -2
  317. package/dist/lib/ui/Command.js.map +1 -1
  318. package/dist/lib/ui/Dialog.d.ts +12 -18
  319. package/dist/lib/ui/Dialog.js +30 -17
  320. package/dist/lib/ui/Dialog.js.map +1 -1
  321. package/dist/lib/ui/DropdownMenu.d.ts +21 -23
  322. package/dist/lib/ui/DropdownMenu.js +47 -32
  323. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  324. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +3 -2
  325. package/dist/lib/ui/EmbeddedCodeBlock.js +4 -3
  326. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  327. package/dist/lib/ui/Frame.d.ts +8 -0
  328. package/dist/lib/ui/Frame.js +22 -0
  329. package/dist/lib/ui/Frame.js.map +1 -0
  330. package/dist/lib/ui/Item.d.ts +23 -0
  331. package/dist/lib/ui/Item.js +67 -0
  332. package/dist/lib/ui/Item.js.map +1 -0
  333. package/dist/lib/ui/Kbd.d.ts +3 -0
  334. package/dist/lib/ui/Kbd.js +10 -0
  335. package/dist/lib/ui/Kbd.js.map +1 -0
  336. package/dist/lib/ui/NativeSelect.d.ts +5 -0
  337. package/dist/lib/ui/NativeSelect.js +14 -0
  338. package/dist/lib/ui/NativeSelect.js.map +1 -0
  339. package/dist/lib/ui/ReactComponentDoc.d.ts +1 -1
  340. package/dist/lib/ui/ReactComponentDoc.js +2 -2
  341. package/dist/lib/ui/ReactComponentDoc.js.map +1 -1
  342. package/dist/lib/ui/Select.d.ts +13 -11
  343. package/dist/lib/ui/Select.js +34 -23
  344. package/dist/lib/ui/Select.js.map +1 -1
  345. package/dist/lib/ui/Separator.d.ts +4 -0
  346. package/dist/lib/ui/Separator.js +8 -0
  347. package/dist/lib/ui/Separator.js.map +1 -0
  348. package/dist/lib/ui/SyntaxHighlight.d.ts +1 -0
  349. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  350. package/dist/lib/ui/Tooltip.d.ts +7 -7
  351. package/dist/lib/ui/Tooltip.js +16 -10
  352. package/dist/lib/ui/Tooltip.js.map +1 -1
  353. package/dist/lib/util/MdxComponents.d.ts +3 -1
  354. package/dist/lib/util/MdxComponents.js +5 -2
  355. package/dist/lib/util/MdxComponents.js.map +1 -1
  356. package/dist/lib/util/createVariantComponent.d.ts +5 -2
  357. package/dist/lib/util/createVariantComponent.js +5 -2
  358. package/dist/lib/util/createVariantComponent.js.map +1 -1
  359. package/dist/lib/util/flattenAllOf.d.ts +4 -0
  360. package/dist/lib/util/flattenAllOf.js +88 -0
  361. package/dist/lib/util/flattenAllOf.js.map +1 -0
  362. package/dist/lib/util/flattenAllOf.test.d.ts +1 -0
  363. package/dist/lib/util/flattenAllOf.test.js +587 -0
  364. package/dist/lib/util/flattenAllOf.test.js.map +1 -0
  365. package/dist/lib/util/invariant.d.ts +1 -1
  366. package/dist/lib/util/invariant.js +2 -2
  367. package/dist/lib/util/invariant.js.map +1 -1
  368. package/dist/lib/util/readFrontmatter.d.ts +6 -0
  369. package/dist/lib/util/readFrontmatter.js +12 -0
  370. package/dist/lib/util/readFrontmatter.js.map +1 -0
  371. package/dist/lib/util/syncZustandState.d.ts +5 -0
  372. package/dist/lib/util/syncZustandState.js +14 -0
  373. package/dist/lib/util/syncZustandState.js.map +1 -0
  374. package/dist/vite/api/SchemaManager.d.ts +9 -1
  375. package/dist/vite/api/SchemaManager.js +58 -21
  376. package/dist/vite/api/SchemaManager.js.map +1 -1
  377. package/dist/vite/api/SchemaManager.test.js +69 -2
  378. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  379. package/dist/vite/config.js +13 -1
  380. package/dist/vite/config.js.map +1 -1
  381. package/dist/vite/dev-server.js +25 -0
  382. package/dist/vite/dev-server.js.map +1 -1
  383. package/dist/vite/error-handler.js +1 -5
  384. package/dist/vite/error-handler.js.map +1 -1
  385. package/dist/vite/mdx/remark-last-modified.js +57 -3
  386. package/dist/vite/mdx/remark-last-modified.js.map +1 -1
  387. package/dist/vite/mdx/remark-link-rewrite.js +1 -1
  388. package/dist/vite/pagefind-dev-index.d.ts +16 -0
  389. package/dist/vite/pagefind-dev-index.js +68 -0
  390. package/dist/vite/pagefind-dev-index.js.map +1 -0
  391. package/dist/vite/plugin-api-keys.js +5 -1
  392. package/dist/vite/plugin-api-keys.js.map +1 -1
  393. package/dist/vite/plugin-api.js +55 -8
  394. package/dist/vite/plugin-api.js.map +1 -1
  395. package/dist/vite/plugin-docs.js +1 -1
  396. package/dist/vite/plugin-docs.js.map +1 -1
  397. package/dist/vite/plugin-frontmatter.js +3 -5
  398. package/dist/vite/plugin-frontmatter.js.map +1 -1
  399. package/dist/vite/plugin-markdown-export.js +8 -7
  400. package/dist/vite/plugin-markdown-export.js.map +1 -1
  401. package/dist/vite/plugin-mdx.js +36 -30
  402. package/dist/vite/plugin-mdx.js.map +1 -1
  403. package/dist/vite/plugin-theme.js +10 -1
  404. package/dist/vite/plugin-theme.js.map +1 -1
  405. package/dist/vite/prerender/prerender.js +1 -19
  406. package/dist/vite/prerender/prerender.js.map +1 -1
  407. package/dist/vite/prerender/utils.d.ts +2 -0
  408. package/dist/vite/prerender/utils.js +30 -0
  409. package/dist/vite/prerender/utils.js.map +1 -0
  410. package/dist/vite/prerender/worker.js +3 -0
  411. package/dist/vite/prerender/worker.js.map +1 -1
  412. package/dist/vite/zuplo.d.ts +13 -0
  413. package/dist/vite/zuplo.js +15 -0
  414. package/dist/vite/zuplo.js.map +1 -0
  415. package/lib/ActionButton-B0CXL1Lq.js +25 -0
  416. package/lib/ActionButton-B0CXL1Lq.js.map +1 -0
  417. package/lib/Button-GUVe7pmt.js +54 -0
  418. package/lib/Button-GUVe7pmt.js.map +1 -0
  419. package/lib/{Card-KFniaZn5.js → Card-DCdq37aA.js} +2 -2
  420. package/lib/{Card-KFniaZn5.js.map → Card-DCdq37aA.js.map} +1 -1
  421. package/lib/ClaudeLogo-DHxJUhN_.js +69 -0
  422. package/lib/ClaudeLogo-DHxJUhN_.js.map +1 -0
  423. package/lib/{Command-CJY6q3PF.js → Command-N6VujV30.js} +26 -26
  424. package/lib/Command-N6VujV30.js.map +1 -0
  425. package/lib/Dialog-hlvmmQ_c.js +144 -0
  426. package/lib/Dialog-hlvmmQ_c.js.map +1 -0
  427. package/lib/{Drawer-Ci7XwhqT.js → Drawer-Ch7927PF.js} +7 -7
  428. package/lib/{Drawer-Ci7XwhqT.js.map → Drawer-Ch7927PF.js.map} +1 -1
  429. package/lib/DropdownMenu-DN0jNrjj.js +104 -0
  430. package/lib/DropdownMenu-DN0jNrjj.js.map +1 -0
  431. package/lib/Frame-DKlOmSkU.js +205 -0
  432. package/lib/Frame-DKlOmSkU.js.map +1 -0
  433. package/lib/HydrationBoundary-CNF2ZV3E.js +601 -0
  434. package/lib/HydrationBoundary-CNF2ZV3E.js.map +1 -0
  435. package/lib/IndexingDialog-D0YdGfbn.js +100 -0
  436. package/lib/IndexingDialog-D0YdGfbn.js.map +1 -0
  437. package/lib/Input-Cx-GeKoF.js +22 -0
  438. package/lib/Input-Cx-GeKoF.js.map +1 -0
  439. package/lib/MdxPage-CD36PJ17.js +210 -0
  440. package/lib/MdxPage-CD36PJ17.js.map +1 -0
  441. package/lib/Mermaid-Koc3z8mU.js +102 -0
  442. package/lib/Mermaid-Koc3z8mU.js.map +1 -0
  443. package/lib/{OAuthErrorPage-DJUOdr6Q.js → OAuthErrorPage-4mN5DA86.js} +16 -16
  444. package/lib/OAuthErrorPage-4mN5DA86.js.map +1 -0
  445. package/lib/OasProvider-DSe-hk5Y.js +40 -0
  446. package/lib/OasProvider-DSe-hk5Y.js.map +1 -0
  447. package/lib/OperationList-CaknPbvq.js +5823 -0
  448. package/lib/OperationList-CaknPbvq.js.map +1 -0
  449. package/lib/RouteGuard--A04ESy8.js +77 -0
  450. package/lib/RouteGuard--A04ESy8.js.map +1 -0
  451. package/lib/{SchemaList-1eLKXqn8.js → SchemaList-Dw3-CJPb.js} +28 -27
  452. package/lib/SchemaList-Dw3-CJPb.js.map +1 -0
  453. package/lib/SchemaView-DyJkiQkD.js +438 -0
  454. package/lib/SchemaView-DyJkiQkD.js.map +1 -0
  455. package/lib/Secret-BDBqq4p3.js +243 -0
  456. package/lib/Secret-BDBqq4p3.js.map +1 -0
  457. package/lib/Separator-BXt1LYnm.js +27 -0
  458. package/lib/Separator-BXt1LYnm.js.map +1 -0
  459. package/lib/SignUp-DRvN-8cq.js +50 -0
  460. package/lib/SignUp-DRvN-8cq.js.map +1 -0
  461. package/lib/{SyntaxHighlight-B0laqAqK.js → SyntaxHighlight-klTH8c6-.js} +1781 -1697
  462. package/lib/SyntaxHighlight-klTH8c6-.js.map +1 -0
  463. package/lib/{Toc-KzXCRqrX.js → Toc-PbuF-u9x.js} +6 -6
  464. package/lib/Toc-PbuF-u9x.js.map +1 -0
  465. package/lib/ZudokuContext-BZB1TWdT.js +387 -0
  466. package/lib/ZudokuContext-BZB1TWdT.js.map +1 -0
  467. package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js +9 -0
  468. package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +1 -0
  469. package/lib/chunk-EPOLDU6W-C6C8jAwd.js +8558 -0
  470. package/lib/chunk-EPOLDU6W-C6C8jAwd.js.map +1 -0
  471. package/lib/{circular-D6wbrxuf.js → circular-DFquXeY2.js} +6459 -6030
  472. package/lib/circular-DFquXeY2.js.map +1 -0
  473. package/lib/{cn-dYga0KKN.js → cn-5-Gd1Dss.js} +531 -498
  474. package/lib/cn-5-Gd1Dss.js.map +1 -0
  475. package/lib/createServer-BXZ0CAUn.js +16693 -0
  476. package/lib/createServer-BXZ0CAUn.js.map +1 -0
  477. package/lib/createVariantComponent-Dc0vtOvr.js +18 -0
  478. package/lib/createVariantComponent-Dc0vtOvr.js.map +1 -0
  479. package/lib/{errors-XqO6MsfU.js → errors-rWHkzVTd.js} +3 -3
  480. package/lib/{errors-XqO6MsfU.js.map → errors-rWHkzVTd.js.map} +1 -1
  481. package/lib/firebase-BmGU1FuD.js +7614 -0
  482. package/lib/firebase-BmGU1FuD.js.map +1 -0
  483. package/lib/hook-BGlHBdET.js +52 -0
  484. package/lib/hook-BGlHBdET.js.map +1 -0
  485. package/lib/{ErrorAlert-VBJ8aHH7.js → index-BDsEwofZ.js} +5503 -4505
  486. package/lib/index-BDsEwofZ.js.map +1 -0
  487. package/lib/index-BQB9hb6n.js +3677 -0
  488. package/lib/index-BQB9hb6n.js.map +1 -0
  489. package/lib/index-CrcNWbel.js.map +1 -1
  490. package/lib/index-DBjOT2H1.js +133 -0
  491. package/lib/index-DBjOT2H1.js.map +1 -0
  492. package/lib/{index-C5L4favO.js → index-DRBOFufT.js} +2 -2
  493. package/lib/{index-C5L4favO.js.map → index-DRBOFufT.js.map} +1 -1
  494. package/lib/index.esm-BYObtETB.js.map +1 -1
  495. package/lib/{index.esm-BnYHxCYC.js → index.esm-B_0dvNjB.js} +20 -20
  496. package/lib/{index.esm-BnYHxCYC.js.map → index.esm-B_0dvNjB.js.map} +1 -1
  497. package/lib/index.esm-Cx8B1YJQ.js +34 -0
  498. package/lib/index.esm-Cx8B1YJQ.js.map +1 -0
  499. package/lib/{invariant-Bm-FVUQE.js → invariant-BJAl77rw.js} +6 -6
  500. package/lib/invariant-BJAl77rw.js.map +1 -0
  501. package/lib/jsx-runtime-BzflLqGi.js.map +1 -1
  502. package/lib/{mutation-CdGPxHNX.js → mutation-BISOc7OM.js} +70 -44
  503. package/lib/mutation-BISOc7OM.js.map +1 -0
  504. package/lib/ui/Accordion.js +1 -1
  505. package/lib/ui/ActionButton.js +2 -2
  506. package/lib/ui/Alert.js +1 -1
  507. package/lib/ui/AlertDialog.js +1 -1
  508. package/lib/ui/Badge.js +27 -13
  509. package/lib/ui/Badge.js.map +1 -1
  510. package/lib/ui/Breadcrumb.js +1 -1
  511. package/lib/ui/Button.js +28 -25
  512. package/lib/ui/Button.js.map +1 -1
  513. package/lib/ui/ButtonGroup.js +77 -0
  514. package/lib/ui/ButtonGroup.js.map +1 -0
  515. package/lib/ui/Callout.js +19 -19
  516. package/lib/ui/Callout.js.map +1 -1
  517. package/lib/ui/Card.js +1 -1
  518. package/lib/ui/Carousel.js +1 -1
  519. package/lib/ui/Carousel.js.map +1 -1
  520. package/lib/ui/Checkbox.js +29 -26
  521. package/lib/ui/Checkbox.js.map +1 -1
  522. package/lib/ui/CodeBlock.js +217 -7
  523. package/lib/ui/CodeBlock.js.map +1 -1
  524. package/lib/ui/Collapsible.js +32 -5
  525. package/lib/ui/Collapsible.js.map +1 -1
  526. package/lib/ui/Command.js +5 -5
  527. package/lib/ui/Command.js.map +1 -1
  528. package/lib/ui/Dialog.js +136 -106
  529. package/lib/ui/Dialog.js.map +1 -1
  530. package/lib/ui/Drawer.js +3 -3
  531. package/lib/ui/DropdownMenu.js +227 -140
  532. package/lib/ui/DropdownMenu.js.map +1 -1
  533. package/lib/ui/EmbeddedCodeBlock.js +36 -32
  534. package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  535. package/lib/ui/Form.js +1 -1
  536. package/lib/ui/Frame.js +81 -0
  537. package/lib/ui/Frame.js.map +1 -0
  538. package/lib/ui/HoverCard.js +1 -1
  539. package/lib/ui/Input.js +1 -1
  540. package/lib/ui/Item.js +188 -0
  541. package/lib/ui/Item.js.map +1 -0
  542. package/lib/ui/Kbd.js +32 -0
  543. package/lib/ui/Kbd.js.map +1 -0
  544. package/lib/ui/Label.js +1 -1
  545. package/lib/ui/NativeSelect.js +57 -0
  546. package/lib/ui/NativeSelect.js.map +1 -0
  547. package/lib/ui/Pagination.js +1 -1
  548. package/lib/ui/Popover.js +1 -1
  549. package/lib/ui/Progress.js +1 -1
  550. package/lib/ui/RadioGroup.js +1 -1
  551. package/lib/ui/ReactComponentDoc.js +13 -13
  552. package/lib/ui/ReactComponentDoc.js.map +1 -1
  553. package/lib/ui/ScrollArea.js +1 -1
  554. package/lib/ui/Secret.js +1 -1
  555. package/lib/ui/Select.js +166 -116
  556. package/lib/ui/Select.js.map +1 -1
  557. package/lib/ui/Separator.js +27 -0
  558. package/lib/ui/Separator.js.map +1 -0
  559. package/lib/ui/Skeleton.js +1 -1
  560. package/lib/ui/Slider.js +1 -1
  561. package/lib/ui/Switch.js +1 -1
  562. package/lib/ui/SyntaxHighlight.js +4 -4
  563. package/lib/ui/Tabs.js +11 -11
  564. package/lib/ui/Textarea.js +1 -1
  565. package/lib/ui/Toggle.js +1 -1
  566. package/lib/ui/ToggleGroup.js +1 -1
  567. package/lib/ui/Tooltip.js +55 -28
  568. package/lib/ui/Tooltip.js.map +1 -1
  569. package/lib/ui/Value.js +1 -1
  570. package/lib/ui/util.js +1 -1
  571. package/lib/useMutation-CFMGlAMW.js +119 -0
  572. package/lib/useMutation-CFMGlAMW.js.map +1 -0
  573. package/lib/useSuspenseQuery-CSB_rVek.js +1226 -0
  574. package/lib/useSuspenseQuery-CSB_rVek.js.map +1 -0
  575. package/lib/zudoku.__internal.js +826 -1325
  576. package/lib/zudoku.__internal.js.map +1 -1
  577. package/lib/zudoku.auth-auth0.js +19 -19
  578. package/lib/zudoku.auth-auth0.js.map +1 -1
  579. package/lib/zudoku.auth-azureb2c.js +28 -28
  580. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  581. package/lib/zudoku.auth-clerk.js +41 -64
  582. package/lib/zudoku.auth-clerk.js.map +1 -1
  583. package/lib/zudoku.auth-firebase.js +10 -0
  584. package/lib/zudoku.auth-firebase.js.map +1 -0
  585. package/lib/zudoku.auth-openid.js +52 -55
  586. package/lib/zudoku.auth-openid.js.map +1 -1
  587. package/lib/zudoku.auth-supabase.js +107 -60
  588. package/lib/zudoku.auth-supabase.js.map +1 -1
  589. package/lib/zudoku.components.js +23 -21
  590. package/lib/zudoku.hooks.js +11 -24
  591. package/lib/zudoku.hooks.js.map +1 -1
  592. package/lib/zudoku.mermaid.js +10 -0
  593. package/lib/zudoku.mermaid.js.map +1 -0
  594. package/lib/zudoku.plugin-api-catalog.js +8 -8
  595. package/lib/zudoku.plugin-api-keys.js +607 -543
  596. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  597. package/lib/zudoku.plugin-custom-pages.js +1 -1
  598. package/lib/zudoku.plugin-markdown.js +10 -9
  599. package/lib/zudoku.plugin-markdown.js.map +1 -1
  600. package/lib/zudoku.plugin-openapi.js +6 -7
  601. package/lib/zudoku.plugin-openapi.js.map +1 -1
  602. package/lib/zudoku.plugin-redirect.js +1 -1
  603. package/lib/zudoku.plugin-search-pagefind.js +185 -226
  604. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  605. package/lib/zudoku.plugins.js.map +1 -1
  606. package/lib/zudoku.react-query.js +440 -0
  607. package/lib/zudoku.react-query.js.map +1 -0
  608. package/lib/zudoku.router.js +1130 -1404
  609. package/lib/zudoku.router.js.map +1 -1
  610. package/package.json +76 -45
  611. package/src/app/entry.server.tsx +16 -6
  612. package/src/app/main.css +61 -9
  613. package/src/app/main.tsx +5 -1
  614. package/src/app/sentry.ts +1 -1
  615. package/src/lib/auth/issuer.ts +3 -0
  616. package/src/lib/authentication/authentication.ts +29 -5
  617. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  618. package/src/lib/authentication/components/OAuthErrorPage.tsx +1 -1
  619. package/src/lib/authentication/components/SignIn.tsx +10 -5
  620. package/src/lib/authentication/components/SignOut.tsx +7 -6
  621. package/src/lib/authentication/components/SignUp.tsx +8 -8
  622. package/src/lib/authentication/hook.ts +37 -10
  623. package/src/lib/authentication/providers/auth0.tsx +23 -11
  624. package/src/lib/authentication/providers/azureb2c.tsx +10 -3
  625. package/src/lib/authentication/providers/clerk.tsx +9 -28
  626. package/src/lib/authentication/providers/firebase.tsx +376 -0
  627. package/src/lib/authentication/providers/openid.tsx +18 -15
  628. package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
  629. package/src/lib/authentication/providers/supabase.tsx +61 -59
  630. package/src/lib/authentication/state.ts +3 -23
  631. package/src/lib/authentication/ui/EmailVerificationUi.tsx +129 -0
  632. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +477 -0
  633. package/src/lib/authentication/ui/icons/Apple.tsx +10 -0
  634. package/src/lib/authentication/ui/icons/Facebook.tsx +15 -0
  635. package/src/lib/authentication/ui/icons/Github.tsx +16 -0
  636. package/src/lib/authentication/ui/icons/Google.tsx +16 -0
  637. package/src/lib/authentication/ui/icons/Microsoft.tsx +12 -0
  638. package/src/lib/authentication/ui/icons/X.tsx +10 -0
  639. package/src/lib/authentication/utils/relativeRedirectUrl.ts +12 -0
  640. package/src/lib/components/Autocomplete.tsx +11 -2
  641. package/src/lib/components/Layout.tsx +3 -2
  642. package/src/lib/components/Mermaid.tsx +68 -0
  643. package/src/lib/components/PagefindSearchMeta.tsx +14 -0
  644. package/src/lib/components/Pagination.tsx +4 -5
  645. package/src/lib/components/Zudoku.tsx +7 -10
  646. package/src/lib/components/index.ts +4 -0
  647. package/src/lib/components/navigation/NavigationItem.tsx +16 -23
  648. package/src/lib/components/navigation/Toc.tsx +3 -3
  649. package/src/lib/core/RouteGuard.tsx +69 -43
  650. package/src/lib/core/ZudokuContext.ts +3 -0
  651. package/src/lib/core/plugins.ts +2 -2
  652. package/src/lib/core/react-query.ts +1 -0
  653. package/src/lib/errors/ErrorAlert.tsx +1 -1
  654. package/src/lib/errors/ErrorMessage.tsx +38 -0
  655. package/src/lib/errors/RouterError.tsx +7 -2
  656. package/src/lib/oas/graphql/circular.test.ts +186 -0
  657. package/src/lib/oas/graphql/circular.ts +49 -10
  658. package/src/lib/oas/graphql/index.ts +7 -3
  659. package/src/lib/oas/parser/index.ts +10 -3
  660. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +11 -7
  661. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +36 -476
  662. package/src/lib/plugins/api-keys/index.tsx +76 -32
  663. package/src/lib/plugins/api-keys/settings/ApiKeyItem.tsx +342 -0
  664. package/src/lib/plugins/api-keys/settings/ApiKeyList.tsx +67 -0
  665. package/src/lib/plugins/api-keys/settings/RevealApiKey.tsx +124 -0
  666. package/src/lib/plugins/markdown/MdxPage.tsx +4 -1
  667. package/src/lib/plugins/markdown/index.tsx +2 -0
  668. package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -3
  669. package/src/lib/plugins/openapi/DownloadSchemaButton.tsx +115 -0
  670. package/src/lib/plugins/openapi/Endpoint.tsx +20 -27
  671. package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -0
  672. package/src/lib/plugins/openapi/OasProvider.tsx +30 -17
  673. package/src/lib/plugins/openapi/OperationList.tsx +51 -21
  674. package/src/lib/plugins/openapi/OperationListItem.tsx +15 -12
  675. package/src/lib/plugins/openapi/ParamInfos.tsx +1 -0
  676. package/src/lib/plugins/openapi/ParameterList.tsx +37 -23
  677. package/src/lib/plugins/openapi/ParameterListItem.tsx +105 -54
  678. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +48 -7
  679. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +101 -33
  680. package/src/lib/plugins/openapi/SchemaList.tsx +4 -0
  681. package/src/lib/plugins/openapi/Sidecar.tsx +148 -67
  682. package/src/lib/plugins/openapi/SidecarBox.tsx +26 -4
  683. package/src/lib/plugins/openapi/SidecarExamples.tsx +91 -79
  684. package/src/lib/plugins/openapi/components/ConstValue.tsx +1 -1
  685. package/src/lib/plugins/openapi/components/EnumValues.tsx +2 -2
  686. package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
  687. package/src/lib/plugins/openapi/components/ResponseContent.tsx +63 -53
  688. package/src/lib/plugins/openapi/index.tsx +25 -36
  689. package/src/lib/plugins/openapi/interfaces.ts +28 -7
  690. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +246 -30
  691. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +10 -6
  692. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +3 -2
  693. package/src/lib/plugins/openapi/playground/Headers.tsx +103 -219
  694. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +33 -1
  695. package/src/lib/plugins/openapi/playground/PathParams.tsx +26 -34
  696. package/src/lib/plugins/openapi/playground/Playground.tsx +88 -35
  697. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +10 -31
  698. package/src/lib/plugins/openapi/playground/QueryParams.tsx +82 -136
  699. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
  700. package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -0
  701. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +1 -1
  702. package/src/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.tsx +872 -0
  703. package/src/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.ts +349 -0
  704. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +2 -2
  705. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +102 -62
  706. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +1 -1
  707. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +3 -0
  708. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +1 -1
  709. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +89 -55
  710. package/src/lib/plugins/openapi/schema/SchemaView.tsx +100 -60
  711. package/src/lib/plugins/openapi/schema/UnionView.tsx +6 -17
  712. package/src/lib/plugins/openapi/schema/union-helpers.ts +0 -1
  713. package/src/lib/plugins/openapi/schema/utils.ts +20 -6
  714. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +29 -1
  715. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +11 -11
  716. package/src/lib/plugins/openapi/util/getRoutes.tsx +35 -3
  717. package/src/lib/plugins/search-pagefind/IndexingDialog.tsx +163 -0
  718. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +61 -22
  719. package/src/lib/plugins/search-pagefind/ResultList.tsx +8 -3
  720. package/src/lib/shiki.ts +37 -14
  721. package/src/lib/ui/Badge.tsx +21 -12
  722. package/src/lib/ui/Button.tsx +11 -9
  723. package/src/lib/ui/ButtonGroup.tsx +82 -0
  724. package/src/lib/ui/Callout.tsx +10 -5
  725. package/src/lib/ui/Checkbox.tsx +23 -24
  726. package/src/lib/ui/CodeBlock.tsx +3 -4
  727. package/src/lib/ui/Collapsible.tsx +26 -4
  728. package/src/lib/ui/Command.tsx +3 -3
  729. package/src/lib/ui/Dialog.tsx +112 -106
  730. package/src/lib/ui/DropdownMenu.tsx +226 -170
  731. package/src/lib/ui/EmbeddedCodeBlock.tsx +24 -19
  732. package/src/lib/ui/Frame.tsx +81 -0
  733. package/src/lib/ui/Item.tsx +192 -0
  734. package/src/lib/ui/Kbd.tsx +28 -0
  735. package/src/lib/ui/NativeSelect.tsx +47 -0
  736. package/src/lib/ui/ReactComponentDoc.tsx +17 -17
  737. package/src/lib/ui/Select.tsx +153 -126
  738. package/src/lib/ui/Separator.tsx +25 -0
  739. package/src/lib/ui/SyntaxHighlight.tsx +6 -1
  740. package/src/lib/ui/Tooltip.tsx +54 -32
  741. package/src/lib/util/MdxComponents.tsx +5 -5
  742. package/src/lib/util/createVariantComponent.tsx +31 -5
  743. package/src/lib/util/flattenAllOf.test.ts +689 -0
  744. package/src/lib/util/flattenAllOf.ts +122 -0
  745. package/src/lib/util/invariant.ts +2 -1
  746. package/src/lib/util/readFrontmatter.ts +13 -0
  747. package/src/lib/util/syncZustandState.ts +22 -0
  748. package/src/shiki/langs/markdown-nix.js +1 -0
  749. package/src/shiki/langs/openscad.js +1 -0
  750. package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +0 -4
  751. package/dist/lib/plugins/openapi/playground/InlineInput.js +0 -3
  752. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +0 -1
  753. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.d.ts +0 -5
  754. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js +0 -7
  755. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js.map +0 -1
  756. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.d.ts +0 -4
  757. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js +0 -10
  758. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js.map +0 -1
  759. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.d.ts +0 -5
  760. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +0 -16
  761. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +0 -1
  762. package/dist/vite/create-pagefind-index.d.ts +0 -4
  763. package/dist/vite/create-pagefind-index.js +0 -12
  764. package/dist/vite/create-pagefind-index.js.map +0 -1
  765. package/lib/Button-DmS4u8Lj.js +0 -51
  766. package/lib/Button-DmS4u8Lj.js.map +0 -1
  767. package/lib/CodeBlock-CanTUJLl.js +0 -221
  768. package/lib/CodeBlock-CanTUJLl.js.map +0 -1
  769. package/lib/Command-CJY6q3PF.js.map +0 -1
  770. package/lib/Dialog-BOl0QB3n.js +0 -114
  771. package/lib/Dialog-BOl0QB3n.js.map +0 -1
  772. package/lib/DropdownMenu-BZ2NKQ3K.js +0 -126
  773. package/lib/DropdownMenu-BZ2NKQ3K.js.map +0 -1
  774. package/lib/ErrorAlert-VBJ8aHH7.js.map +0 -1
  775. package/lib/MdxPage-DFRNwSsc.js +0 -239
  776. package/lib/MdxPage-DFRNwSsc.js.map +0 -1
  777. package/lib/OAuthErrorPage-DJUOdr6Q.js.map +0 -1
  778. package/lib/OasProvider-BMUgPYQU.js +0 -36
  779. package/lib/OasProvider-BMUgPYQU.js.map +0 -1
  780. package/lib/OperationList-DVig5I94.js +0 -5446
  781. package/lib/OperationList-DVig5I94.js.map +0 -1
  782. package/lib/Pagination-CT4VUR6u.js +0 -37
  783. package/lib/Pagination-CT4VUR6u.js.map +0 -1
  784. package/lib/RouteGuard-BPWQlxy5.js +0 -56
  785. package/lib/RouteGuard-BPWQlxy5.js.map +0 -1
  786. package/lib/RouterError-fm21cqlj.js +0 -41
  787. package/lib/RouterError-fm21cqlj.js.map +0 -1
  788. package/lib/SchemaList-1eLKXqn8.js.map +0 -1
  789. package/lib/SchemaView-fq3uKfOA.js +0 -458
  790. package/lib/SchemaView-fq3uKfOA.js.map +0 -1
  791. package/lib/Select-CPoGZU_V.js +0 -372
  792. package/lib/Select-CPoGZU_V.js.map +0 -1
  793. package/lib/SignUp-BraHuRN_.js +0 -56
  794. package/lib/SignUp-BraHuRN_.js.map +0 -1
  795. package/lib/SyntaxHighlight-B0laqAqK.js.map +0 -1
  796. package/lib/Toc-KzXCRqrX.js.map +0 -1
  797. package/lib/ZudokuContext-BXTZApgy.js +0 -1506
  798. package/lib/ZudokuContext-BXTZApgy.js.map +0 -1
  799. package/lib/chunk-PVWAREVJ-BO6B-RAk.js +0 -7965
  800. package/lib/chunk-PVWAREVJ-BO6B-RAk.js.map +0 -1
  801. package/lib/circular-D6wbrxuf.js.map +0 -1
  802. package/lib/cn-dYga0KKN.js.map +0 -1
  803. package/lib/createServer-C5aY10Bc.js +0 -12559
  804. package/lib/createServer-C5aY10Bc.js.map +0 -1
  805. package/lib/hook-CAebs2rv.js +0 -31
  806. package/lib/hook-CAebs2rv.js.map +0 -1
  807. package/lib/index-BPSpOxTK.js +0 -1058
  808. package/lib/index-BPSpOxTK.js.map +0 -1
  809. package/lib/index-Bb9AsFlk.js +0 -3318
  810. package/lib/index-Bb9AsFlk.js.map +0 -1
  811. package/lib/invariant-Bm-FVUQE.js.map +0 -1
  812. package/lib/mutation-CdGPxHNX.js.map +0 -1
  813. package/lib/useExposedProps-Cd7Yg_uG.js +0 -113
  814. package/lib/useExposedProps-Cd7Yg_uG.js.map +0 -1
  815. package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
  816. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.tsx +0 -36
  817. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.tsx +0 -25
  818. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.tsx +0 -42
@@ -1,1058 +0,0 @@
1
- import { H as be } from "./index.esm-BnYHxCYC.js";
2
- import { z as je, M as rt, J as nt, a as ot } from "./useExposedProps-Cd7Yg_uG.js";
3
- import { b2 as Ee, ac as st, L as re, c as Se, O as at } from "./chunk-PVWAREVJ-BO6B-RAk.js";
4
- import { u as q } from "./hook-CAebs2rv.js";
5
- import { Button as it } from "./ui/Button.js";
6
- import { Callout as ct } from "./ui/Callout.js";
7
- import { C as F } from "./ClientOnly-E7hGysn1.js";
8
- import { u as lt, j as z, a as O, o as we, p as ut, q as dt, b as ft, N as mt, Z as ht, i as pt, d as gt, C as vt } from "./ZudokuContext-BXTZApgy.js";
9
- import { E as xt, a as R, d as yt, b as bt, c as jt, V as Et, M as St, T as wt } from "./ErrorAlert-VBJ8aHH7.js";
10
- import { S as Ct } from "./Spinner-CI6bRyZw.js";
11
- import { j as r } from "./jsx-runtime-BzflLqGi.js";
12
- import { Component as Pt, createElement as ie, createContext as ne, useState as L, useRef as D, useCallback as M, useEffect as $, Suspense as Ce, memo as Pe, useMemo as W, useContext as Nt } from "react";
13
- import { isNavigationPlugin as ce, isAuthenticationPlugin as Tt, isEventConsumerPlugin as _t, needsInitialization as Mt, isApiIdentityPlugin as At, isProfileMenuPlugin as Ne, isSearchPlugin as Rt, isMdxProviderPlugin as kt, hasHead as Ot } from "./zudoku.plugins.js";
14
- import { B as J } from "./Button-DmS4u8Lj.js";
15
- import { c as k } from "./cn-dYga0KKN.js";
16
- import { DropdownMenu as $t, DropdownMenuTrigger as It, DropdownMenuContent as Dt, DropdownMenuLabel as Ft, DropdownMenuSeparator as X, DropdownMenuSub as Lt, DropdownMenuSubTrigger as qt, DropdownMenuPortal as zt, DropdownMenuSubContent as Bt, DropdownMenuItem as Yt } from "./ui/DropdownMenu.js";
17
- import { CircleXIcon as Zt, ChevronRightIcon as Ht, SearchIcon as Kt, SunIcon as Ut, MoonIcon as Vt, MenuIcon as Wt } from "lucide-react";
18
- import { VisuallyHidden as Xt } from "@radix-ui/react-visually-hidden";
19
- import { D as Gt, a as Qt, b as Jt, c as er } from "./Drawer-Ci7XwhqT.js";
20
- import { a as tr } from "./index-DI5SPFK9.js";
21
- const rr = ne(null), G = {
22
- didCatch: !1,
23
- error: null
24
- };
25
- class nr extends Pt {
26
- constructor(t) {
27
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = G;
28
- }
29
- static getDerivedStateFromError(t) {
30
- return {
31
- didCatch: !0,
32
- error: t
33
- };
34
- }
35
- resetErrorBoundary() {
36
- const {
37
- error: t
38
- } = this.state;
39
- if (t !== null) {
40
- for (var n, o, i = arguments.length, c = new Array(i), s = 0; s < i; s++)
41
- c[s] = arguments[s];
42
- (n = (o = this.props).onReset) === null || n === void 0 || n.call(o, {
43
- args: c,
44
- reason: "imperative-api"
45
- }), this.setState(G);
46
- }
47
- }
48
- componentDidCatch(t, n) {
49
- var o, i;
50
- (o = (i = this.props).onError) === null || o === void 0 || o.call(i, t, n);
51
- }
52
- componentDidUpdate(t, n) {
53
- const {
54
- didCatch: o
55
- } = this.state, {
56
- resetKeys: i
57
- } = this.props;
58
- if (o && n.error !== null && or(t.resetKeys, i)) {
59
- var c, s;
60
- (c = (s = this.props).onReset) === null || c === void 0 || c.call(s, {
61
- next: i,
62
- prev: t.resetKeys,
63
- reason: "keys"
64
- }), this.setState(G);
65
- }
66
- }
67
- render() {
68
- const {
69
- children: t,
70
- fallbackRender: n,
71
- FallbackComponent: o,
72
- fallback: i
73
- } = this.props, {
74
- didCatch: c,
75
- error: s
76
- } = this.state;
77
- let d = t;
78
- if (c) {
79
- const v = {
80
- error: s,
81
- resetErrorBoundary: this.resetErrorBoundary
82
- };
83
- if (typeof n == "function")
84
- d = n(v);
85
- else if (o)
86
- d = ie(o, v);
87
- else if (i !== void 0)
88
- d = i;
89
- else
90
- throw s;
91
- }
92
- return ie(rr.Provider, {
93
- value: {
94
- didCatch: c,
95
- error: s,
96
- resetErrorBoundary: this.resetErrorBoundary
97
- }
98
- }, d);
99
- }
100
- }
101
- function or() {
102
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
103
- return e.length !== t.length || e.some((n, o) => !Object.is(n, t[o]));
104
- }
105
- let sr = () => ({
106
- emit(e, ...t) {
107
- for (let n = this.events[e] || [], o = 0, i = n.length; o < i; o++)
108
- n[o](...t);
109
- },
110
- events: {},
111
- on(e, t) {
112
- return (this.events[e] ||= []).push(t), () => {
113
- this.events[e] = this.events[e]?.filter((n) => t !== n);
114
- };
115
- }
116
- });
117
- const ar = (e) => Object.entries(e), le = (e) => {
118
- if (e)
119
- return Array.isArray(e) ? Object.fromEntries(
120
- e.map((t) => [
121
- t,
122
- (n) => n.auth.isAuthenticated
123
- ])
124
- ) : e;
125
- };
126
- class ir {
127
- plugins;
128
- navigation;
129
- meta;
130
- site;
131
- authentication;
132
- queryClient;
133
- options;
134
- navigationPlugins;
135
- emitter = sr();
136
- constructor(t, n) {
137
- const i = {
138
- ...Object.fromEntries(
139
- (t.plugins ?? []).flatMap((c) => {
140
- if (!ce(c)) return [];
141
- const s = c.getProtectedRoutes?.();
142
- return s ? Object.entries(le(s) ?? {}) : [];
143
- })
144
- ),
145
- ...le(t.protectedRoutes)
146
- };
147
- this.queryClient = n, this.options = { ...t, protectedRoutes: i }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(ce), this.authentication = this.plugins.find(Tt), this.meta = t.metadata, this.site = t.site, this.plugins.forEach((c) => {
148
- _t(c) && ar(c.events).forEach(([s, d]) => {
149
- this.emitter.on(s, d);
150
- });
151
- }), lt.subscribe((c, s) => {
152
- this.emitEvent("auth", {
153
- prev: s,
154
- next: c
155
- });
156
- });
157
- }
158
- initialize = async () => {
159
- await Promise.all(
160
- this.plugins.filter(Mt).map((t) => t.initialize?.(this))
161
- );
162
- };
163
- getApiIdentities = async () => (await Promise.all(
164
- this.plugins.filter(At).map((n) => n.getIdentities(this))
165
- )).flat();
166
- addEventListener(t, n) {
167
- return this.emitter.on(t, n);
168
- }
169
- emitEvent = (t, ...n) => this.emitter.emit(t, ...n);
170
- getPluginNavigation = async (t) => (await Promise.all(
171
- this.navigationPlugins.map(
172
- (o) => o.getNavigation?.(z(t), this)
173
- )
174
- )).flatMap((o) => o ?? []);
175
- getProfileMenuItems = () => this.plugins.filter((n) => Ne(n)).flatMap((n) => n.getProfileMenuItems(this)).sort(cr(["top", "middle", "bottom"])).sort((n) => n.weight ?? 0);
176
- signRequest = async (t) => {
177
- if (!this.authentication)
178
- throw new Error("No authentication provider configured");
179
- return await this.authentication.signRequest(t);
180
- };
181
- }
182
- const cr = (e) => (t, n) => {
183
- const o = e.indexOf(t.category ?? "middle"), i = e.indexOf(n.category ?? "middle");
184
- return o - i;
185
- };
186
- function lr({ error: e }) {
187
- return /* @__PURE__ */ r.jsx(xt, { error: e });
188
- }
189
- const ue = ne({ stagger: !1 }), Y = globalThis;
190
- (!Y.requestIdleCallback || !Y.cancelIdleCallback) && (Y.requestIdleCallback = (e) => setTimeout(e, 1), Y.cancelIdleCallback = clearTimeout);
191
- function ee({
192
- className: e,
193
- ...t
194
- }) {
195
- return /* @__PURE__ */ r.jsx(
196
- "div",
197
- {
198
- className: k("animate-pulse rounded-md bg-muted", e),
199
- ...t
200
- }
201
- );
202
- }
203
- const de = {
204
- info: "bg-blue-500",
205
- note: "bg-gray-500",
206
- tip: "bg-green-600",
207
- caution: "bg-orange-500",
208
- danger: "bg-rose-500"
209
- }, ur = () => {
210
- const { site: e } = O(), [t, n] = L(!0);
211
- if (!e?.banner || !t)
212
- return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
213
- const o = e.banner.color && e.banner.color in de ? de[e.banner.color] : e.banner.color ? void 0 : "bg-primary", i = o ? {} : { backgroundColor: e.banner.color };
214
- return /* @__PURE__ */ r.jsxs(
215
- "div",
216
- {
217
- className: k(
218
- "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center lg:h-(--banner-height)",
219
- o
220
- ),
221
- style: i,
222
- children: [
223
- /* @__PURE__ */ r.jsx("div", { className: "w-full", children: e.banner.message }),
224
- e.banner.dismissible && /* @__PURE__ */ r.jsx(
225
- "button",
226
- {
227
- type: "button",
228
- className: "md:absolute md:end-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
229
- onClick: () => n(!1),
230
- children: /* @__PURE__ */ r.jsx(Zt, { size: 16 })
231
- }
232
- )
233
- ]
234
- }
235
- );
236
- }, Te = (e) => /* @__PURE__ */ r.jsxs(
237
- "svg",
238
- {
239
- xmlns: "http://www.w3.org/2000/svg",
240
- viewBox: "0 0 132 100",
241
- fill: "none",
242
- ...e,
243
- children: [
244
- /* @__PURE__ */ r.jsx(
245
- "path",
246
- {
247
- fill: "currentColor",
248
- fillRule: "evenodd",
249
- d: "M80.092 2.963A4.66 4.66 0 0 1 84.449 0h34.049c6.325 0 10.835 6.135 8.948 12.172L116.653 46.71a4.688 4.688 0 0 1-4.474 3.29H75c-5.178 0-7.813 4.687-9.375 9.374-1.288 3.864-11.07 28.963-14.467 37.662A4.66 4.66 0 0 1 46.801 100H12.75c-6.324 0-10.834-6.134-8.947-12.171l10.793-34.54A4.688 4.688 0 0 1 19.071 50H56.25c5.178 0 7.813-4.687 9.375-9.375 1.288-3.864 11.07-28.962 14.467-37.662Z",
250
- clipRule: "evenodd"
251
- }
252
- ),
253
- /* @__PURE__ */ r.jsx(
254
- "path",
255
- {
256
- fill: "currentColor",
257
- d: "M83.54 57.813a7.813 7.813 0 0 0-7.316 5.07L63.888 95.777c-.766 2.043.744 4.222 2.926 4.222h36.828c5.211 0 9.875-3.232 11.704-8.11l8.821-23.522c1.915-5.107-1.861-10.555-7.315-10.555H83.539ZM29.17 0a12.5 12.5 0 0 0-11.704 8.111l-8.82 23.521c-1.915 5.107 1.86 10.556 7.315 10.556h33.312a7.813 7.813 0 0 0 7.316-5.07L68.924 4.223C69.691 2.18 68.18 0 65.998 0H29.17Z"
258
- }
259
- )
260
- ]
261
- }
262
- );
263
- Te.displayName = "ZudokuLogo";
264
- const dr = ({ className: e }) => /* @__PURE__ */ r.jsxs(
265
- "a",
266
- {
267
- href: "https://zudoku.dev",
268
- target: "_blank",
269
- rel: "noopener noreferrer",
270
- className: k(
271
- "flex justify-between items-center w-full border border-transparent hover:border-border rounded-full hover:shadow-xs h-7 px-3 text-nowrap hover:bg-muted/80 transition-all",
272
- e
273
- ),
274
- children: [
275
- /* @__PURE__ */ r.jsxs("div", { className: "opacity-70 hover:opacity-100 transition-opacity gap-1.5 text-[11px] font-medium rounded-full h-7 flex items-center text-nowrap", children: [
276
- /* @__PURE__ */ r.jsx(Te, { className: "w-3.5 h-3.5 dark:fill-white" }),
277
- "powered by ",
278
- "Zudoku"
279
- ] }),
280
- /* @__PURE__ */ r.jsx("div", { className: "text-xs font-medium opacity-70 hover:text-foreground transition-colors cursor-pointer", children: /* @__PURE__ */ r.jsx(
281
- Ht,
282
- {
283
- size: 12,
284
- absoluteStrokeWidth: !0,
285
- strokeWidth: 1.5,
286
- className: "rtl:rotate-180"
287
- }
288
- ) })
289
- ]
290
- }
291
- );
292
- function K() {
293
- return K = Object.assign ? Object.assign.bind() : function(e) {
294
- for (var t = 1; t < arguments.length; t++) {
295
- var n = arguments[t];
296
- for (var o in n) ({}).hasOwnProperty.call(n, o) && (e[o] = n[o]);
297
- }
298
- return e;
299
- }, K.apply(null, arguments);
300
- }
301
- var Z = { exports: {} }, h = {};
302
- /** @license React v16.13.1
303
- * react-is.production.min.js
304
- *
305
- * Copyright (c) Facebook, Inc. and its affiliates.
306
- *
307
- * This source code is licensed under the MIT license found in the
308
- * LICENSE file in the root directory of this source tree.
309
- */
310
- var fe;
311
- function fr() {
312
- if (fe) return h;
313
- fe = 1;
314
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
315
- function j(a) {
316
- if (typeof a == "object" && a !== null) {
317
- var x = a.$$typeof;
318
- switch (x) {
319
- case t:
320
- switch (a = a.type, a) {
321
- case v:
322
- case f:
323
- case o:
324
- case c:
325
- case i:
326
- case y:
327
- return a;
328
- default:
329
- switch (a = a && a.$$typeof, a) {
330
- case d:
331
- case b:
332
- case g:
333
- case l:
334
- case s:
335
- return a;
336
- default:
337
- return x;
338
- }
339
- }
340
- case n:
341
- return x;
342
- }
343
- }
344
- }
345
- function E(a) {
346
- return j(a) === f;
347
- }
348
- return h.AsyncMode = v, h.ConcurrentMode = f, h.ContextConsumer = d, h.ContextProvider = s, h.Element = t, h.ForwardRef = b, h.Fragment = o, h.Lazy = g, h.Memo = l, h.Portal = n, h.Profiler = c, h.StrictMode = i, h.Suspense = y, h.isAsyncMode = function(a) {
349
- return E(a) || j(a) === v;
350
- }, h.isConcurrentMode = E, h.isContextConsumer = function(a) {
351
- return j(a) === d;
352
- }, h.isContextProvider = function(a) {
353
- return j(a) === s;
354
- }, h.isElement = function(a) {
355
- return typeof a == "object" && a !== null && a.$$typeof === t;
356
- }, h.isForwardRef = function(a) {
357
- return j(a) === b;
358
- }, h.isFragment = function(a) {
359
- return j(a) === o;
360
- }, h.isLazy = function(a) {
361
- return j(a) === g;
362
- }, h.isMemo = function(a) {
363
- return j(a) === l;
364
- }, h.isPortal = function(a) {
365
- return j(a) === n;
366
- }, h.isProfiler = function(a) {
367
- return j(a) === c;
368
- }, h.isStrictMode = function(a) {
369
- return j(a) === i;
370
- }, h.isSuspense = function(a) {
371
- return j(a) === y;
372
- }, h.isValidElementType = function(a) {
373
- return typeof a == "string" || typeof a == "function" || a === o || a === f || a === c || a === i || a === y || a === m || typeof a == "object" && a !== null && (a.$$typeof === g || a.$$typeof === l || a.$$typeof === s || a.$$typeof === d || a.$$typeof === b || a.$$typeof === w || a.$$typeof === C || a.$$typeof === P || a.$$typeof === S);
374
- }, h.typeOf = j, h;
375
- }
376
- var p = {};
377
- /** @license React v16.13.1
378
- * react-is.development.js
379
- *
380
- * Copyright (c) Facebook, Inc. and its affiliates.
381
- *
382
- * This source code is licensed under the MIT license found in the
383
- * LICENSE file in the root directory of this source tree.
384
- */
385
- var me;
386
- function mr() {
387
- return me || (me = 1, process.env.NODE_ENV !== "production" && (function() {
388
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
389
- function j(u) {
390
- return typeof u == "string" || typeof u == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
391
- u === o || u === f || u === c || u === i || u === y || u === m || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === l || u.$$typeof === s || u.$$typeof === d || u.$$typeof === b || u.$$typeof === w || u.$$typeof === C || u.$$typeof === P || u.$$typeof === S);
392
- }
393
- function E(u) {
394
- if (typeof u == "object" && u !== null) {
395
- var V = u.$$typeof;
396
- switch (V) {
397
- case t:
398
- var B = u.type;
399
- switch (B) {
400
- case v:
401
- case f:
402
- case o:
403
- case c:
404
- case i:
405
- case y:
406
- return B;
407
- default:
408
- var ae = B && B.$$typeof;
409
- switch (ae) {
410
- case d:
411
- case b:
412
- case g:
413
- case l:
414
- case s:
415
- return ae;
416
- default:
417
- return V;
418
- }
419
- }
420
- case n:
421
- return V;
422
- }
423
- }
424
- }
425
- var a = v, x = f, N = d, T = s, I = t, _ = b, U = o, A = g, Le = l, qe = n, ze = c, Be = i, Ye = y, oe = !1;
426
- function Ze(u) {
427
- return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), se(u) || E(u) === v;
428
- }
429
- function se(u) {
430
- return E(u) === f;
431
- }
432
- function He(u) {
433
- return E(u) === d;
434
- }
435
- function Ke(u) {
436
- return E(u) === s;
437
- }
438
- function Ue(u) {
439
- return typeof u == "object" && u !== null && u.$$typeof === t;
440
- }
441
- function Ve(u) {
442
- return E(u) === b;
443
- }
444
- function We(u) {
445
- return E(u) === o;
446
- }
447
- function Xe(u) {
448
- return E(u) === g;
449
- }
450
- function Ge(u) {
451
- return E(u) === l;
452
- }
453
- function Qe(u) {
454
- return E(u) === n;
455
- }
456
- function Je(u) {
457
- return E(u) === c;
458
- }
459
- function et(u) {
460
- return E(u) === i;
461
- }
462
- function tt(u) {
463
- return E(u) === y;
464
- }
465
- p.AsyncMode = a, p.ConcurrentMode = x, p.ContextConsumer = N, p.ContextProvider = T, p.Element = I, p.ForwardRef = _, p.Fragment = U, p.Lazy = A, p.Memo = Le, p.Portal = qe, p.Profiler = ze, p.StrictMode = Be, p.Suspense = Ye, p.isAsyncMode = Ze, p.isConcurrentMode = se, p.isContextConsumer = He, p.isContextProvider = Ke, p.isElement = Ue, p.isForwardRef = Ve, p.isFragment = We, p.isLazy = Xe, p.isMemo = Ge, p.isPortal = Qe, p.isProfiler = Je, p.isStrictMode = et, p.isSuspense = tt, p.isValidElementType = j, p.typeOf = E;
466
- })()), p;
467
- }
468
- var he;
469
- function hr() {
470
- return he || (he = 1, process.env.NODE_ENV === "production" ? Z.exports = fr() : Z.exports = mr()), Z.exports;
471
- }
472
- var Q, pe;
473
- function pr() {
474
- if (pe) return Q;
475
- pe = 1;
476
- var e = hr(), t = {
477
- childContextTypes: !0,
478
- contextType: !0,
479
- contextTypes: !0,
480
- defaultProps: !0,
481
- displayName: !0,
482
- getDefaultProps: !0,
483
- getDerivedStateFromError: !0,
484
- getDerivedStateFromProps: !0,
485
- mixins: !0,
486
- propTypes: !0,
487
- type: !0
488
- }, n = {
489
- name: !0,
490
- length: !0,
491
- prototype: !0,
492
- caller: !0,
493
- callee: !0,
494
- arguments: !0,
495
- arity: !0
496
- }, o = {
497
- $$typeof: !0,
498
- render: !0,
499
- defaultProps: !0,
500
- displayName: !0,
501
- propTypes: !0
502
- }, i = {
503
- $$typeof: !0,
504
- compare: !0,
505
- defaultProps: !0,
506
- displayName: !0,
507
- propTypes: !0,
508
- type: !0
509
- }, c = {};
510
- c[e.ForwardRef] = o, c[e.Memo] = i;
511
- function s(g) {
512
- return e.isMemo(g) ? i : c[g.$$typeof] || t;
513
- }
514
- var d = Object.defineProperty, v = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, b = Object.getOwnPropertyDescriptor, y = Object.getPrototypeOf, m = Object.prototype;
515
- function l(g, S, w) {
516
- if (typeof S != "string") {
517
- if (m) {
518
- var C = y(S);
519
- C && C !== m && l(g, C, w);
520
- }
521
- var P = v(S);
522
- f && (P = P.concat(f(S)));
523
- for (var j = s(g), E = s(S), a = 0; a < P.length; ++a) {
524
- var x = P[a];
525
- if (!n[x] && !(w && w[x]) && !(E && E[x]) && !(j && j[x])) {
526
- var N = b(S, x);
527
- try {
528
- d(g, x, N);
529
- } catch {
530
- }
531
- }
532
- }
533
- }
534
- return g;
535
- }
536
- return Q = l, Q;
537
- }
538
- pr();
539
- var _e = function(t, n, o) {
540
- return t = t <= o ? t : o, t = t >= n ? t : n, t;
541
- }, gr = function() {
542
- var t = !1, n = [], o = function() {
543
- t = !0;
544
- var d = n.shift();
545
- if (d)
546
- return d(o);
547
- t = !1;
548
- }, i = function() {
549
- t = !1, n = [];
550
- }, c = function(d) {
551
- n.push(d), !t && n.length === 1 && o();
552
- };
553
- return {
554
- clear: i,
555
- enqueue: c
556
- };
557
- }, vr = function() {
558
- var t, n = function() {
559
- t && window.cancelAnimationFrame(t);
560
- }, o = function(c, s) {
561
- var d, v, f = function(y) {
562
- if (v = v || y, d = y - v, d > s) {
563
- c();
564
- return;
565
- }
566
- t = window.requestAnimationFrame(f);
567
- };
568
- t = window.requestAnimationFrame(f);
569
- };
570
- return {
571
- cancel: n,
572
- schedule: o
573
- };
574
- }, xr = function(t) {
575
- var n = 0;
576
- return t >= 0 && t < 0.2 ? n = 0.1 : t >= 0.2 && t < 0.5 ? n = 0.04 : t >= 0.5 && t < 0.8 ? n = 0.02 : t >= 0.8 && t < 0.99 && (n = 5e-3), _e(t + n, 0, 0.994);
577
- }, ge = function(t) {
578
- $(t, []);
579
- }, yr = function(t) {
580
- return ++t % 1e6;
581
- }, br = function() {
582
- var t = L(0), n = t[1];
583
- return M(function() {
584
- return n(yr);
585
- }, []);
586
- }, jr = function(t) {
587
- t === void 0 && (t = {});
588
- var n = br(), o = D(K({}, t)), i = M(function() {
589
- return o.current;
590
- }, []), c = M(function(s) {
591
- s && (Object.assign(o.current, s), n());
592
- }, []);
593
- return [i, c];
594
- }, Er = function() {
595
- var t = D(!0);
596
- return t.current ? (t.current = !1, !0) : t.current;
597
- }, ve = function(t, n) {
598
- var o = Er();
599
- $(function() {
600
- if (!o)
601
- return t();
602
- }, n);
603
- }, Me = function() {
604
- }, xe = {
605
- isFinished: !0,
606
- progress: 0,
607
- sideEffect: Me
608
- }, Sr = function(t) {
609
- var n = t === void 0 ? {} : t, o = n.animationDuration, i = o === void 0 ? 200 : o, c = n.incrementDuration, s = c === void 0 ? 800 : c, d = n.isAnimating, v = d === void 0 ? !1 : d, f = n.minimum, b = f === void 0 ? 0.08 : f, y = jr(xe), m = y[0], l = y[1], g = D(null), S = D(null);
610
- ge(function() {
611
- g.current = gr(), S.current = vr();
612
- });
613
- var w = M(function() {
614
- var x, N;
615
- (x = S.current) == null || x.cancel(), (N = g.current) == null || N.clear();
616
- }, []), C = M(function(x) {
617
- var N;
618
- if (x = _e(x, b, 1), x === 1) {
619
- var T, I;
620
- w(), (T = g.current) == null || T.enqueue(function(_) {
621
- l({
622
- progress: x,
623
- sideEffect: function() {
624
- var A;
625
- return (A = S.current) == null ? void 0 : A.schedule(_, i);
626
- }
627
- });
628
- }), (I = g.current) == null || I.enqueue(function() {
629
- l({
630
- isFinished: !0,
631
- sideEffect: w
632
- });
633
- });
634
- return;
635
- }
636
- (N = g.current) == null || N.enqueue(function(_) {
637
- l({
638
- isFinished: !1,
639
- progress: x,
640
- sideEffect: function() {
641
- var A;
642
- return (A = S.current) == null ? void 0 : A.schedule(_, i);
643
- }
644
- });
645
- });
646
- }, [i, w, b, g, l, S]), P = M(function() {
647
- C(xr(m().progress));
648
- }, [m, C]), j = M(function() {
649
- var x = function() {
650
- var T;
651
- P(), (T = g.current) == null || T.enqueue(function(I) {
652
- var _;
653
- (_ = S.current) == null || _.schedule(function() {
654
- x(), I();
655
- }, s);
656
- });
657
- };
658
- x();
659
- }, [s, g, S, P]), E = D(Me), a = m().sideEffect;
660
- return $(function() {
661
- E.current = P;
662
- }), ge(function() {
663
- return v && j(), w;
664
- }), ve(function() {
665
- m().sideEffect();
666
- }, [m, a]), ve(function() {
667
- v ? l(K({}, xe, {
668
- sideEffect: j
669
- })) : C(1);
670
- }, [v, C, l, j]), {
671
- animationDuration: i,
672
- isFinished: m().isFinished,
673
- progress: m().progress
674
- };
675
- };
676
- const Ae = () => {
677
- const t = Ee().state === "loading", [n, o] = L(!1);
678
- $(() => {
679
- const s = setTimeout(() => o(t), 200);
680
- return () => clearTimeout(s);
681
- }, [t]);
682
- const { isFinished: i, progress: c } = Sr({ isAnimating: n });
683
- return /* @__PURE__ */ r.jsx(
684
- "div",
685
- {
686
- className: "absolute w-0 left-0 right-0 bottom-[-1px] h-[2px] bg-primary transition-all duration-300 ease-in-out",
687
- style: {
688
- opacity: i ? 0 : 1,
689
- width: i ? 0 : `${c * 100}%`
690
- }
691
- }
692
- );
693
- };
694
- function wr() {
695
- const e = navigator.userAgent.toLowerCase();
696
- if (e.includes("win")) return "Windows";
697
- if (e.includes("mac")) return "macOS";
698
- if (e.includes("linux")) return "Linux";
699
- }
700
- const Re = ({ className: e }) => {
701
- const t = O(), [n, o] = L(!1), i = M(() => o(!1), []);
702
- $(() => {
703
- if (n)
704
- return;
705
- function s(d) {
706
- d.key === "k" && (d.metaKey || d.ctrlKey) && (d.preventDefault(), o(!0));
707
- }
708
- return window.addEventListener("keydown", s), () => {
709
- window.removeEventListener("keydown", s);
710
- };
711
- }, [n]);
712
- const c = t.plugins.find(Rt);
713
- return c ? /* @__PURE__ */ r.jsxs("div", { className: e, children: [
714
- /* @__PURE__ */ r.jsxs(
715
- "button",
716
- {
717
- type: "button",
718
- onClick: () => o(!0),
719
- className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
720
- children: [
721
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 grow", children: [
722
- /* @__PURE__ */ r.jsx(Kt, { size: 14 }),
723
- "Search"
724
- ] }),
725
- /* @__PURE__ */ r.jsx(F, { children: /* @__PURE__ */ r.jsx(Cr, {}) })
726
- ]
727
- }
728
- ),
729
- /* @__PURE__ */ r.jsx(Ce, { fallback: null, children: c.renderSearch({
730
- isOpen: n,
731
- onClose: i
732
- }) })
733
- ] }) : null;
734
- }, Cr = () => {
735
- const e = wr();
736
- return /* @__PURE__ */ r.jsxs("kbd", { className: "absolute end-1.5 hidden h-5 select-none items-center gap-1 rounded-sm border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: [
737
- e === "macOS" ? "⌘" : "Ctrl",
738
- "+K"
739
- ] });
740
- }, ke = () => {
741
- const { resolvedTheme: e, setTheme: t } = je();
742
- return /* @__PURE__ */ r.jsx(F, { fallback: /* @__PURE__ */ r.jsx(J, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ r.jsxs(
743
- "button",
744
- {
745
- type: "button",
746
- className: "flex rounded-full border p-0.5 gap-0.5 group",
747
- onClick: () => t(e === "dark" ? "light" : "dark"),
748
- "aria-label": e === "dark" ? "Switch to light mode" : "Switch to dark mode",
749
- children: [
750
- /* @__PURE__ */ r.jsx(
751
- "div",
752
- {
753
- className: k(
754
- "border border-transparent rounded-full p-0.5 [&>svg>circle]:transition-colors [&>svg>path]:transition-transform transition-all [&>svg>path]:duration-200 [&>svg>circle]:duration-500 [&>svg>circle]:fill-transparent",
755
- e === "light" && "border-border bg-muted",
756
- e === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
757
- ),
758
- children: /* @__PURE__ */ r.jsx(Ut, { size: 16 })
759
- }
760
- ),
761
- /* @__PURE__ */ r.jsx(
762
- "div",
763
- {
764
- className: k(
765
- "border border-transparent rounded-full p-0.5 transition-transform transform-gpu duration-500",
766
- e === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
767
- e === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
768
- ),
769
- children: /* @__PURE__ */ r.jsx(Vt, { size: 16 })
770
- }
771
- )
772
- ]
773
- }
774
- ) });
775
- }, Pr = () => {
776
- const e = O(), { navigation: t } = e, n = q(), o = t.filter(we(n, e));
777
- return o.length === 0 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(Ce, { children: /* @__PURE__ */ r.jsxs("div", { className: "items-center justify-between px-8 h-(--top-nav-height) hidden lg:flex text-sm relative", children: [
778
- /* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: o.map((i) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx($e, { ...i }) }, i.label + i.type)) }) }),
779
- /* @__PURE__ */ r.jsx(R.Target, { name: "top-navigation-side" })
780
- ] }) });
781
- }, Oe = (e) => {
782
- switch (e.type) {
783
- case "doc":
784
- return z(e.path);
785
- case "link":
786
- return e.to;
787
- case "category":
788
- return e.link?.path ? z(e.link.path) : dt(e, (t) => {
789
- if (t.type !== "category")
790
- return Oe(t);
791
- }) ?? "";
792
- case "custom-page":
793
- return e.path;
794
- }
795
- }, te = ({
796
- isActive: e,
797
- children: t,
798
- ...n
799
- }) => /* @__PURE__ */ r.jsx(
800
- st,
801
- {
802
- viewTransition: !0,
803
- className: ({ isActive: o, isPending: i }) => {
804
- const c = o || e;
805
- return tr(
806
- "flex items-center gap-2 lg:py-3.5 font-medium -mb-px transition duration-150 delay-75 relative",
807
- c || i ? [
808
- "text-foreground",
809
- // underline with view transition animation
810
- "after:content-[''] after:absolute after:bottom-0 after:left-0 after:right-0",
811
- "after:h-0.5 after:bg-primary",
812
- c && "after:[view-transition-name:top-nav-underline]",
813
- i && "after:bg-primary/25"
814
- ] : "text-foreground/75 hover:text-foreground"
815
- );
816
- },
817
- ...n,
818
- children: t
819
- }
820
- ), $e = (e) => {
821
- const t = ut(), n = yt(t.topNavItem, e), o = Oe(e);
822
- return (
823
- // We don't use isActive here because it has to be inside the navigation,
824
- // the top nav id doesn't necessarily start with the navigation id
825
- /* @__PURE__ */ r.jsxs(te, { to: o, isActive: n, children: [
826
- e.icon && /* @__PURE__ */ r.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
827
- e.label
828
- ] })
829
- );
830
- }, Nr = () => {
831
- const e = O(), t = q(), { navigation: n, options: o, getProfileMenuItems: i } = e, { isAuthenticated: c, profile: s, isAuthEnabled: d } = t, [v, f] = L(!1), b = i(), y = n.filter(we(t, e));
832
- return /* @__PURE__ */ r.jsxs(
833
- Gt,
834
- {
835
- direction: o.site?.dir === "rtl" ? "left" : "right",
836
- open: v,
837
- onOpenChange: (m) => f(m),
838
- children: [
839
- /* @__PURE__ */ r.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
840
- /* @__PURE__ */ r.jsx(Qt, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Wt, { size: 22 }) }),
841
- /* @__PURE__ */ r.jsx(Ae, {})
842
- ] }),
843
- /* @__PURE__ */ r.jsx(
844
- Jt,
845
- {
846
- className: "lg:hidden h-[100dvh] end-0 start-auto w-[320px] rounded-none",
847
- "aria-describedby": void 0,
848
- children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
849
- /* @__PURE__ */ r.jsxs("div", { children: [
850
- /* @__PURE__ */ r.jsx(Xt, { children: /* @__PURE__ */ r.jsx(er, { children: "Navigation" }) }),
851
- /* @__PURE__ */ r.jsx(Re, { className: "flex p-4" }),
852
- /* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
853
- /* @__PURE__ */ r.jsx("li", { className: "empty:hidden", children: /* @__PURE__ */ r.jsx(R.Target, { name: "top-navigation-side" }) }),
854
- d && /* @__PURE__ */ r.jsx(
855
- F,
856
- {
857
- fallback: /* @__PURE__ */ r.jsx(ee, { className: "rounded-sm h-5 w-24 mr-4" }),
858
- children: c ? Object.values(i()).length > 0 && /* @__PURE__ */ r.jsxs("li", { children: [
859
- s?.name ? `${s.name}` : "My Account",
860
- s?.email && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: s.email })
861
- ] }) : /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
862
- te,
863
- {
864
- to: "/signin",
865
- onClick: () => f(!1),
866
- children: "Login"
867
- }
868
- ) })
869
- }
870
- ),
871
- y.map((m) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { type: "button", onClick: () => f(!1), children: /* @__PURE__ */ r.jsx($e, { ...m }) }) }, m.label)),
872
- d && c && b.length > 0 && /* @__PURE__ */ r.jsx(
873
- F,
874
- {
875
- fallback: /* @__PURE__ */ r.jsx(ee, { className: "rounded-sm h-5 w-24 mr-4" }),
876
- children: b.map((m) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
877
- te,
878
- {
879
- to: m.path ?? "",
880
- onClick: () => f(!1),
881
- children: m.label
882
- }
883
- ) }, m.label))
884
- }
885
- ),
886
- /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(ke, {}) })
887
- ] })
888
- ] }),
889
- o.site?.showPoweredBy !== !1 && /* @__PURE__ */ r.jsx(dr, { className: "grow-0 justify-center gap-1" })
890
- ] })
891
- }
892
- )
893
- ]
894
- }
895
- );
896
- }, H = ({ item: e }) => e.children ? /* @__PURE__ */ r.jsxs(Lt, { children: [
897
- /* @__PURE__ */ r.jsx(qt, { children: e.label }),
898
- /* @__PURE__ */ r.jsx(zt, { children: /* @__PURE__ */ r.jsx(Bt, { children: e.children.map((t) => /* @__PURE__ */ r.jsx(H, { item: t }, t.label)) }) })
899
- ] }, e.label) : /* @__PURE__ */ r.jsx(re, { to: e.path ?? "", children: /* @__PURE__ */ r.jsxs(Yt, { className: "flex gap-2", children: [
900
- e.icon && /* @__PURE__ */ r.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
901
- e.label
902
- ] }, e.label) }), Tr = Pe(function() {
903
- const t = q(), { isAuthenticated: n, profile: o, isAuthEnabled: i } = q(), c = O(), { site: s, plugins: d, options: v } = c, f = d.filter((l) => Ne(l)).flatMap((l) => l.getProfileMenuItems(c)).sort((l) => l.weight ?? 0), b = s?.logo ? /https?:\/\//.test(s.logo.src.light) ? s.logo.src.light : z(v.basePath, s.logo.src.light) : void 0, y = s?.logo ? /https?:\/\//.test(s.logo.src.dark) ? s.logo.src.dark : z(v.basePath, s.logo.src.dark) : void 0, m = "inset-shadow-[0_-1px_0_0_var(--border)]";
904
- return /* @__PURE__ */ r.jsxs(
905
- "header",
906
- {
907
- className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full",
908
- "data-pagefind-ignore": "all",
909
- children: [
910
- /* @__PURE__ */ r.jsx(ur, {}),
911
- /* @__PURE__ */ r.jsxs("div", { className: k(m, "relative"), children: [
912
- /* @__PURE__ */ r.jsx(Ae, {}),
913
- /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto flex items-center justify-between h-(--top-header-height) px-4 lg:px-8 border-transparent", children: [
914
- /* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(re, { to: s?.logo?.href ?? "/", children: /* @__PURE__ */ r.jsx("div", { className: "flex items-center gap-3.5", children: s?.logo ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
915
- /* @__PURE__ */ r.jsx(
916
- "img",
917
- {
918
- src: b,
919
- alt: s.logo.alt ?? s.title,
920
- style: { width: s.logo.width },
921
- className: "max-h-(--top-header-height) dark:hidden",
922
- loading: "lazy"
923
- }
924
- ),
925
- /* @__PURE__ */ r.jsx(
926
- "img",
927
- {
928
- src: y,
929
- alt: s.logo.alt ?? s.title,
930
- style: { width: s.logo.width },
931
- className: "max-h-(--top-header-height) hidden dark:block",
932
- loading: "lazy"
933
- }
934
- )
935
- ] }) : /* @__PURE__ */ r.jsx("span", { className: "font-semibold text-2xl", children: s?.title }) }) }) }),
936
- /* @__PURE__ */ r.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ r.jsx(Re, { className: "pointer-events-auto" }) }),
937
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-8", children: [
938
- /* @__PURE__ */ r.jsx(Nr, {}),
939
- /* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
940
- /* @__PURE__ */ r.jsx(R.Target, { name: "head-navigation-start" }),
941
- i && /* @__PURE__ */ r.jsx(
942
- F,
943
- {
944
- fallback: /* @__PURE__ */ r.jsx(ee, { className: "rounded-sm h-5 w-24 mr-4" }),
945
- children: n ? Object.values(f).length > 0 && /* @__PURE__ */ r.jsxs($t, { modal: !1, children: [
946
- /* @__PURE__ */ r.jsx(It, { asChild: !0, children: /* @__PURE__ */ r.jsx(J, { variant: "ghost", children: o?.name ?? "My Account" }) }),
947
- /* @__PURE__ */ r.jsxs(Dt, { className: "w-56", children: [
948
- /* @__PURE__ */ r.jsxs(Ft, { children: [
949
- o?.name ? `${o.name}` : "My Account",
950
- o?.email && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: o.email })
951
- ] }),
952
- f.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ r.jsx(X, {}),
953
- f.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ r.jsx(H, { item: l }, l.label)),
954
- f.filter(
955
- (l) => !l.category || l.category === "middle"
956
- ).length > 0 && /* @__PURE__ */ r.jsx(X, {}),
957
- f.filter(
958
- (l) => !l.category || l.category === "middle"
959
- ).map((l) => /* @__PURE__ */ r.jsx(H, { item: l }, l.label)),
960
- f.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(X, {}),
961
- f.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ r.jsx(H, { item: l }, l.label))
962
- ] })
963
- ] }) : /* @__PURE__ */ r.jsx(J, { variant: "ghost", onClick: () => t.login(), children: "Login" })
964
- }
965
- ),
966
- /* @__PURE__ */ r.jsx(R.Target, { name: "head-navigation-end" }),
967
- /* @__PURE__ */ r.jsx(ke, {})
968
- ] })
969
- ] })
970
- ] })
971
- ] }),
972
- /* @__PURE__ */ r.jsx("div", { className: k("hidden lg:block", m), children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto border-transparent relative", children: [
973
- /* @__PURE__ */ r.jsx(R.Target, { name: "top-navigation-before" }),
974
- /* @__PURE__ */ r.jsx(Pr, {}),
975
- /* @__PURE__ */ r.jsx(R.Target, { name: "top-navigation-after" })
976
- ] }) })
977
- ]
978
- }
979
- );
980
- }), Ie = {
981
- Header: Tr
982
- }, _r = ne(Ie), Mr = _r.Provider, Ar = () => {
983
- const e = Se(), t = O(), n = D(void 0);
984
- return $(() => {
985
- t.emitEvent("location", {
986
- from: n.current,
987
- to: e
988
- }), n.current = e;
989
- }, [t, e]), null;
990
- }, Rr = ({
991
- children: e,
992
- context: t
993
- }) => (ft({
994
- queryFn: async () => (await t.initialize(), !0),
995
- queryKey: ["zudoku-initialize", mt]
996
- }), /* @__PURE__ */ r.jsx(ht.Provider, { value: t, children: e }));
997
- let ye;
998
- const De = Pe(
999
- ({ children: e, ...t }) => {
1000
- const n = W(
1001
- () => ({ ...Ie, ...t.overrides }),
1002
- [t.overrides]
1003
- ), o = Se(), i = W(() => ({
1004
- ...(t.plugins ?? []).filter(kt).flatMap(
1005
- (l) => l.getMdxComponents ? [l.getMdxComponents()] : []
1006
- ).reduce(
1007
- (l, g) => ({ ...l, ...g }),
1008
- {}
1009
- ),
1010
- ...bt,
1011
- ...t.mdx?.components
1012
- }), [t.mdx?.components, t.plugins]), { stagger: c } = Nt(ue), [s, d] = L(!1), v = W(
1013
- () => s ? { stagger: !0 } : { stagger: c },
1014
- [c, s]
1015
- ), f = Ee(), b = pt();
1016
- $(() => {
1017
- s || !f.location || d(!0);
1018
- }, [s, f.location]), ye ??= new ir(t, b);
1019
- const y = t.plugins?.flatMap(
1020
- (m) => Ot(m) ? m.getHead?.({ location: o }) ?? [] : []
1021
- ).map((m, l) => /* @__PURE__ */ r.jsx(be, { children: m }, l));
1022
- return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1023
- y,
1024
- /* @__PURE__ */ r.jsx(ue.Provider, { value: v, children: /* @__PURE__ */ r.jsxs(Rr, { context: ye, children: [
1025
- /* @__PURE__ */ r.jsx(Ar, {}),
1026
- /* @__PURE__ */ r.jsx(jt, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ r.jsx(rt, { components: i, children: /* @__PURE__ */ r.jsx(nt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(Mr, { value: n, children: /* @__PURE__ */ r.jsx(Et, { children: e ?? /* @__PURE__ */ r.jsx(at, {}) }) }) }) }) })
1027
- ] }) })
1028
- ] });
1029
- }
1030
- );
1031
- De.displayName = "ZudokoInner";
1032
- const Fe = (e) => /* @__PURE__ */ r.jsx(nr, { FallbackComponent: lr, children: /* @__PURE__ */ r.jsx(De, { ...e }) });
1033
- Fe.displayName = "Zudoku";
1034
- const Jr = be, en = ct, tn = St, rn = Ct, nn = F, on = it, sn = re, an = Fe, cn = wt, ln = R, un = ot, dn = O, fn = q, mn = gt, hn = vt, pn = je;
1035
- export {
1036
- on as B,
1037
- en as C,
1038
- nr as E,
1039
- Tr as H,
1040
- sn as L,
1041
- tn as M,
1042
- dr as P,
1043
- rn as S,
1044
- cn as T,
1045
- an as Z,
1046
- ue as a,
1047
- Sr as b,
1048
- Jr as c,
1049
- nn as d,
1050
- ln as e,
1051
- un as f,
1052
- fn as g,
1053
- mn as h,
1054
- hn as i,
1055
- pn as j,
1056
- dn as u
1057
- };
1058
- //# sourceMappingURL=index-BPSpOxTK.js.map