zudoku 0.0.0-ee328ec → 0.0.0-efc60ba6

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 (1313) hide show
  1. package/README.md +2 -2
  2. package/cli.js +8 -2
  3. package/dist/app/ZuploBuildConfig.d.ts +11 -121
  4. package/dist/app/ZuploBuildConfig.js +8 -8
  5. package/dist/app/ZuploBuildConfig.js.map +1 -1
  6. package/dist/app/demo.js +21 -5
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +0 -2
  9. package/dist/app/entry.client.js +0 -2
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +0 -2
  12. package/dist/app/entry.server.js +0 -2
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +7 -7
  15. package/dist/app/env.js +8 -0
  16. package/dist/app/env.js.map +1 -1
  17. package/dist/app/main.d.ts +2 -1
  18. package/dist/app/main.js +26 -45
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/standalone.js +7 -6
  21. package/dist/app/standalone.js.map +1 -1
  22. package/dist/cli/build/handler.js +9 -1
  23. package/dist/cli/build/handler.js.map +1 -1
  24. package/dist/config/config.d.ts +14 -2
  25. package/dist/config/file-exists.d.ts +1 -0
  26. package/dist/config/file-exists.js +5 -0
  27. package/dist/config/file-exists.js.map +1 -0
  28. package/dist/config/loader.d.ts +19 -4
  29. package/dist/config/loader.js +91 -15
  30. package/dist/config/loader.js.map +1 -1
  31. package/dist/config/validators/BuildSchema.d.ts +20 -44
  32. package/dist/config/validators/BuildSchema.js +8 -14
  33. package/dist/config/validators/BuildSchema.js.map +1 -1
  34. package/dist/config/validators/InputNavigationSchema.d.ts +7460 -0
  35. package/dist/config/validators/InputNavigationSchema.js +74 -0
  36. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  37. package/dist/config/validators/InputNavigationSchema.test-d.js +145 -0
  38. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  39. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  40. package/dist/config/validators/NavigationSchema.js +98 -0
  41. package/dist/config/validators/NavigationSchema.js.map +1 -0
  42. package/dist/config/validators/ProtectedRoutesSchema.d.ts +12 -0
  43. package/dist/config/validators/ProtectedRoutesSchema.js +19 -0
  44. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  45. package/dist/config/validators/icon-types.d.ts +2 -1
  46. package/dist/config/validators/icon-types.js +1829 -1
  47. package/dist/config/validators/icon-types.js.map +1 -1
  48. package/dist/config/validators/validate.d.ts +596 -2810
  49. package/dist/config/validators/validate.js +438 -16
  50. package/dist/config/validators/validate.js.map +1 -1
  51. package/dist/config/validators/validate.test.d.ts +1 -0
  52. package/dist/config/validators/validate.test.js +141 -0
  53. package/dist/config/validators/validate.test.js.map +1 -0
  54. package/dist/index.d.ts +6 -3
  55. package/dist/index.js +3 -0
  56. package/dist/index.js.map +1 -1
  57. package/dist/lib/auth/issuer.d.ts +2 -0
  58. package/dist/lib/auth/issuer.js +37 -0
  59. package/dist/lib/auth/issuer.js.map +1 -0
  60. package/dist/lib/auth/issuer.test.d.ts +1 -0
  61. package/dist/lib/auth/issuer.test.js +94 -0
  62. package/dist/lib/auth/issuer.test.js.map +1 -0
  63. package/dist/lib/authentication/AuthenticationPlugin.d.ts +2 -2
  64. package/dist/lib/authentication/AuthenticationPlugin.js +1 -1
  65. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  66. package/dist/lib/authentication/authentication.d.ts +4 -4
  67. package/dist/lib/authentication/components/CallbackHandler.js +12 -10
  68. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  69. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  70. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  71. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  72. package/dist/lib/authentication/components/SignIn.js +4 -3
  73. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  74. package/dist/lib/authentication/errors.d.ts +6 -12
  75. package/dist/lib/authentication/errors.js +2 -1
  76. package/dist/lib/authentication/errors.js.map +1 -1
  77. package/dist/lib/authentication/hook.d.ts +7 -0
  78. package/dist/lib/authentication/hook.js.map +1 -1
  79. package/dist/lib/authentication/providers/auth0.js +1 -1
  80. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  81. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  82. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  83. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  84. package/dist/lib/authentication/providers/clerk.js +66 -54
  85. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  86. package/dist/lib/authentication/providers/openid.d.ts +12 -14
  87. package/dist/lib/authentication/providers/openid.js +62 -27
  88. package/dist/lib/authentication/providers/openid.js.map +1 -1
  89. package/dist/lib/authentication/providers/supabase.js +5 -14
  90. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  91. package/dist/lib/authentication/state.d.ts +6 -5
  92. package/dist/lib/authentication/state.js +19 -6
  93. package/dist/lib/authentication/state.js.map +1 -1
  94. package/dist/lib/components/Autocomplete.js +3 -3
  95. package/dist/lib/components/Autocomplete.js.map +1 -1
  96. package/dist/lib/components/Banner.js +2 -2
  97. package/dist/lib/components/Banner.js.map +1 -1
  98. package/dist/lib/components/BuildCheck.d.ts +2 -1
  99. package/dist/lib/components/BuildCheck.js +3 -4
  100. package/dist/lib/components/BuildCheck.js.map +1 -1
  101. package/dist/lib/components/CategoryHeading.js +1 -1
  102. package/dist/lib/components/CategoryHeading.js.map +1 -1
  103. package/dist/lib/components/ErrorPage.js +2 -2
  104. package/dist/lib/components/ErrorPage.js.map +1 -1
  105. package/dist/lib/components/Footer.js +6 -6
  106. package/dist/lib/components/Footer.js.map +1 -1
  107. package/dist/lib/components/Framed.d.ts +7 -0
  108. package/dist/lib/components/Framed.js +26 -0
  109. package/dist/lib/components/Framed.js.map +1 -0
  110. package/dist/lib/components/Header.js +24 -15
  111. package/dist/lib/components/Header.js.map +1 -1
  112. package/dist/lib/components/Heading.d.ts +6 -2
  113. package/dist/lib/components/Heading.js +7 -2
  114. package/dist/lib/components/Heading.js.map +1 -1
  115. package/dist/lib/components/InlineCode.js +1 -1
  116. package/dist/lib/components/InlineCode.js.map +1 -1
  117. package/dist/lib/components/Layout.js +2 -2
  118. package/dist/lib/components/Layout.js.map +1 -1
  119. package/dist/lib/components/Main.js +5 -5
  120. package/dist/lib/components/Main.js.map +1 -1
  121. package/dist/lib/components/Markdown.d.ts +3 -2
  122. package/dist/lib/components/Markdown.js +14 -16
  123. package/dist/lib/components/Markdown.js.map +1 -1
  124. package/dist/lib/components/MobileTopNavigation.js +14 -7
  125. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  126. package/dist/lib/components/NotFoundPage.js +2 -2
  127. package/dist/lib/components/NotFoundPage.js.map +1 -1
  128. package/dist/lib/components/PageProgress.d.ts +1 -0
  129. package/dist/lib/components/PageProgress.js +20 -0
  130. package/dist/lib/components/PageProgress.js.map +1 -0
  131. package/dist/lib/components/Pagination.js +1 -1
  132. package/dist/lib/components/Pagination.js.map +1 -1
  133. package/dist/lib/components/Search.js +1 -1
  134. package/dist/lib/components/Search.js.map +1 -1
  135. package/dist/lib/components/Slot.d.ts +17 -0
  136. package/dist/lib/components/Slot.js +24 -0
  137. package/dist/lib/components/Slot.js.map +1 -0
  138. package/dist/lib/components/Slot.test.d.ts +1 -0
  139. package/dist/lib/components/Slot.test.js +168 -0
  140. package/dist/lib/components/Slot.test.js.map +1 -0
  141. package/dist/lib/components/StatusPage.js +4 -0
  142. package/dist/lib/components/StatusPage.js.map +1 -1
  143. package/dist/lib/components/TopNavigation.d.ts +7 -6
  144. package/dist/lib/components/TopNavigation.js +52 -54
  145. package/dist/lib/components/TopNavigation.js.map +1 -1
  146. package/dist/lib/components/Typography.d.ts +5 -0
  147. package/dist/lib/components/Typography.js +8 -0
  148. package/dist/lib/components/Typography.js.map +1 -0
  149. package/dist/lib/components/Zudoku.js +2 -2
  150. package/dist/lib/components/Zudoku.js.map +1 -1
  151. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  152. package/dist/lib/components/context/SlotProvider.js +83 -0
  153. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  154. package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
  155. package/dist/lib/components/context/ZudokuContext.js +57 -32
  156. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  157. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  158. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  159. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  160. package/dist/lib/components/index.d.ts +43 -25
  161. package/dist/lib/components/index.js +15 -7
  162. package/dist/lib/components/index.js.map +1 -1
  163. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  164. package/dist/lib/components/navigation/Navigation.js +12 -0
  165. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  166. package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
  167. package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +3 -3
  168. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  169. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  170. package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +16 -14
  171. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  172. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  173. package/dist/lib/components/navigation/NavigationItem.js +54 -0
  174. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  175. package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
  176. package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +5 -5
  177. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  178. package/dist/lib/components/navigation/PoweredByZudoku.js +1 -1
  179. package/dist/lib/components/navigation/Toc.js +1 -1
  180. package/dist/lib/components/navigation/Toc.js.map +1 -1
  181. package/dist/lib/components/navigation/utils.d.ts +14 -6
  182. package/dist/lib/components/navigation/utils.js +49 -18
  183. package/dist/lib/components/navigation/utils.js.map +1 -1
  184. package/dist/lib/core/RouteGuard.js +9 -9
  185. package/dist/lib/core/RouteGuard.js.map +1 -1
  186. package/dist/lib/core/ZudokuContext.d.ts +34 -21
  187. package/dist/lib/core/ZudokuContext.js +38 -14
  188. package/dist/lib/core/ZudokuContext.js.map +1 -1
  189. package/dist/lib/core/plugins.d.ts +8 -4
  190. package/dist/lib/core/plugins.js +1 -0
  191. package/dist/lib/core/plugins.js.map +1 -1
  192. package/dist/lib/errors/ErrorAlert.js +2 -3
  193. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  194. package/dist/lib/hooks/index.d.ts +25 -0
  195. package/dist/lib/hooks/index.js +11 -0
  196. package/dist/lib/hooks/index.js.map +1 -1
  197. package/dist/lib/hooks/useEvent.test.js +5 -3
  198. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  199. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  200. package/dist/lib/hooks/useHotkey.js +58 -0
  201. package/dist/lib/hooks/useHotkey.js.map +1 -0
  202. package/dist/lib/oas/graphql/circular.js +23 -18
  203. package/dist/lib/oas/graphql/circular.js.map +1 -1
  204. package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
  205. package/dist/lib/plugins/api-catalog/Catalog.js +1 -1
  206. package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
  207. package/dist/lib/plugins/api-catalog/index.js +10 -10
  208. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  209. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  210. package/dist/lib/plugins/api-keys/CreateApiKey.js +18 -4
  211. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  212. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  213. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +152 -27
  214. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  215. package/dist/lib/plugins/api-keys/index.d.ts +29 -15
  216. package/dist/lib/plugins/api-keys/index.js +63 -33
  217. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  218. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  219. package/dist/lib/plugins/custom-pages/index.js +15 -10
  220. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  221. package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -2
  222. package/dist/lib/plugins/markdown/MdxPage.js +30 -10
  223. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  224. package/dist/lib/plugins/markdown/index.d.ts +11 -3
  225. package/dist/lib/plugins/markdown/index.js +9 -26
  226. package/dist/lib/plugins/markdown/index.js.map +1 -1
  227. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  228. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  229. package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
  230. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  231. package/dist/lib/plugins/openapi/OperationList.js +3 -3
  232. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  233. package/dist/lib/plugins/openapi/OperationListItem.js +3 -4
  234. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  235. package/dist/lib/plugins/openapi/ParamInfos.js +3 -1
  236. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  237. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  238. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  239. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +1 -1
  240. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +5 -1
  241. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  242. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  243. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  244. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  245. package/dist/lib/plugins/openapi/SchemaList.js +7 -7
  246. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  247. package/dist/lib/plugins/openapi/Sidecar.js +11 -91
  248. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  249. package/dist/lib/plugins/openapi/SidecarExamples.js +9 -1
  250. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  251. package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
  252. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
  253. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  254. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  255. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  256. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  257. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  258. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  259. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +4 -3
  260. package/dist/lib/plugins/openapi/graphql/graphql.js +3 -2
  261. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  262. package/dist/lib/plugins/openapi/index.d.ts +3 -3
  263. package/dist/lib/plugins/openapi/index.js +51 -19
  264. package/dist/lib/plugins/openapi/index.js.map +1 -1
  265. package/dist/lib/plugins/openapi/interfaces.d.ts +3 -3
  266. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  267. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  268. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  269. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  270. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  271. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  272. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
  273. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  274. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  275. package/dist/lib/plugins/openapi/playground/Headers.js +54 -32
  276. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  277. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
  278. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
  279. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -4
  280. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
  281. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  282. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  283. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
  284. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  285. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -2
  286. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  287. package/dist/lib/plugins/openapi/playground/Playground.d.ts +3 -8
  288. package/dist/lib/plugins/openapi/playground/Playground.js +115 -93
  289. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  290. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  291. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  292. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +2 -2
  293. package/dist/lib/plugins/openapi/playground/QueryParams.js +38 -23
  294. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  295. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  296. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  297. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  298. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  299. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  300. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  301. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  302. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  303. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  304. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  305. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  306. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  307. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  308. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  309. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  310. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  311. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +69 -0
  312. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  313. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +10 -4
  314. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +33 -31
  315. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  316. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +4 -2
  317. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
  318. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  319. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  320. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  321. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  322. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
  323. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
  324. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +12 -14
  325. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  326. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -1
  327. package/dist/lib/plugins/openapi/schema/SchemaView.js +7 -7
  328. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  329. package/dist/lib/plugins/openapi/schema/utils.d.ts +5 -1
  330. package/dist/lib/plugins/openapi/schema/utils.js +12 -7
  331. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  332. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  333. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  334. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  335. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  336. package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +5 -4
  337. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  338. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  339. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +4 -0
  340. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  341. package/dist/lib/plugins/openapi/util/getRoutes.js +2 -2
  342. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  343. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  344. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  345. package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
  346. package/dist/lib/plugins/search-inkeep/index.js +35 -29
  347. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  348. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
  349. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  350. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  351. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +1 -1
  352. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  353. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
  354. package/dist/lib/plugins/search-pagefind/ResultList.js +12 -5
  355. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  356. package/dist/lib/shiki.d.ts +35 -0
  357. package/dist/lib/shiki.js +103 -0
  358. package/dist/lib/shiki.js.map +1 -0
  359. package/dist/lib/ui/ActionButton.js +1 -1
  360. package/dist/lib/ui/ActionButton.js.map +1 -1
  361. package/dist/lib/ui/Alert.d.ts +6 -5
  362. package/dist/lib/ui/Alert.js +12 -10
  363. package/dist/lib/ui/Alert.js.map +1 -1
  364. package/dist/lib/ui/Badge.d.ts +2 -2
  365. package/dist/lib/ui/Badge.js +1 -1
  366. package/dist/lib/ui/Badge.js.map +1 -1
  367. package/dist/lib/ui/Button.d.ts +2 -2
  368. package/dist/lib/ui/Button.js +8 -6
  369. package/dist/lib/ui/Button.js.map +1 -1
  370. package/dist/lib/ui/Callout.js +1 -1
  371. package/dist/lib/ui/Callout.js.map +1 -1
  372. package/dist/lib/ui/Card.js +1 -1
  373. package/dist/lib/ui/Checkbox.js +1 -1
  374. package/dist/lib/ui/Checkbox.js.map +1 -1
  375. package/dist/lib/ui/CodeBlock.d.ts +15 -0
  376. package/dist/lib/ui/CodeBlock.js +43 -0
  377. package/dist/lib/ui/CodeBlock.js.map +1 -0
  378. package/dist/lib/ui/Command.d.ts +1 -1
  379. package/dist/lib/ui/Command.js +3 -3
  380. package/dist/lib/ui/Command.js.map +1 -1
  381. package/dist/lib/ui/Dialog.d.ts +3 -1
  382. package/dist/lib/ui/Dialog.js +2 -2
  383. package/dist/lib/ui/Dialog.js.map +1 -1
  384. package/dist/lib/ui/DropdownMenu.js +4 -4
  385. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  386. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  387. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  388. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  389. package/dist/lib/ui/HoverCard.js +1 -1
  390. package/dist/lib/ui/HoverCard.js.map +1 -1
  391. package/dist/lib/ui/Input.js +1 -1
  392. package/dist/lib/ui/Input.js.map +1 -1
  393. package/dist/lib/ui/Popover.js +1 -1
  394. package/dist/lib/ui/Popover.js.map +1 -1
  395. package/dist/lib/ui/RadioGroup.js +1 -1
  396. package/dist/lib/ui/RadioGroup.js.map +1 -1
  397. package/dist/lib/ui/Select.js +2 -2
  398. package/dist/lib/ui/Select.js.map +1 -1
  399. package/dist/lib/ui/Slider.js +1 -1
  400. package/dist/lib/ui/Slider.js.map +1 -1
  401. package/dist/lib/ui/Switch.js +1 -1
  402. package/dist/lib/ui/Switch.js.map +1 -1
  403. package/dist/lib/ui/SyntaxHighlight.d.ts +12 -15
  404. package/dist/lib/ui/SyntaxHighlight.js +13 -60
  405. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  406. package/dist/lib/ui/Tabs.js +2 -2
  407. package/dist/lib/ui/Tabs.js.map +1 -1
  408. package/dist/lib/ui/Textarea.js +1 -1
  409. package/dist/lib/ui/Textarea.js.map +1 -1
  410. package/dist/lib/ui/Toggle.js +1 -1
  411. package/dist/lib/ui/Toggle.js.map +1 -1
  412. package/dist/lib/ui/Tooltip.d.ts +2 -1
  413. package/dist/lib/ui/Tooltip.js +2 -1
  414. package/dist/lib/ui/Tooltip.js.map +1 -1
  415. package/dist/lib/util/MdxComponents.d.ts +17 -3
  416. package/dist/lib/util/MdxComponents.js +13 -12
  417. package/dist/lib/util/MdxComponents.js.map +1 -1
  418. package/dist/lib/util/humanFileSize.d.ts +6 -0
  419. package/dist/lib/util/humanFileSize.js +14 -0
  420. package/dist/lib/util/humanFileSize.js.map +1 -0
  421. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  422. package/dist/lib/util/humanFileSize.test.js +22 -0
  423. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  424. package/dist/lib/util/invariant.d.ts +6 -5
  425. package/dist/lib/util/invariant.js +1 -1
  426. package/dist/lib/util/invariant.js.map +1 -1
  427. package/dist/lib/util/os.d.ts +2 -0
  428. package/dist/lib/util/os.js +21 -0
  429. package/dist/lib/util/os.js.map +1 -0
  430. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  431. package/dist/lib/util/useCopyToClipboard.js +11 -0
  432. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  433. package/dist/lib/util/useExposedProps.d.ts +8 -1
  434. package/dist/lib/util/useExposedProps.js.map +1 -1
  435. package/dist/lib/util/useScrollToAnchor.js +3 -3
  436. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  437. package/dist/vite/api/SchemaManager.d.ts +4 -4
  438. package/dist/vite/api/SchemaManager.js +41 -22
  439. package/dist/vite/api/SchemaManager.js.map +1 -1
  440. package/dist/vite/api/SchemaManager.test.js +4 -4
  441. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  442. package/dist/vite/api/schema-codegen.js +42 -11
  443. package/dist/vite/api/schema-codegen.js.map +1 -1
  444. package/dist/vite/api/schema-codegen.test.js +82 -0
  445. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  446. package/dist/vite/build.js +21 -7
  447. package/dist/vite/build.js.map +1 -1
  448. package/dist/vite/config.d.ts +2 -9
  449. package/dist/vite/config.js +58 -98
  450. package/dist/vite/config.js.map +1 -1
  451. package/dist/vite/config.test.js +1 -1
  452. package/dist/vite/config.test.js.map +1 -1
  453. package/dist/vite/css/plugin.d.ts +1 -2
  454. package/dist/vite/css/plugin.js +14 -2
  455. package/dist/vite/css/plugin.js.map +1 -1
  456. package/dist/vite/dev-server.d.ts +0 -1
  457. package/dist/vite/dev-server.js +19 -13
  458. package/dist/vite/dev-server.js.map +1 -1
  459. package/dist/vite/html.d.ts +2 -2
  460. package/dist/vite/html.js +5 -2
  461. package/dist/vite/html.js.map +1 -1
  462. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  463. package/dist/vite/mdx/remark-last-modified.js +29 -0
  464. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  465. package/dist/vite/mdx/utils.d.ts +2 -0
  466. package/dist/vite/mdx/utils.js +31 -0
  467. package/dist/vite/mdx/utils.js.map +1 -0
  468. package/dist/vite/plugin-api-keys.d.ts +1 -2
  469. package/dist/vite/plugin-api-keys.js +9 -3
  470. package/dist/vite/plugin-api-keys.js.map +1 -1
  471. package/dist/vite/plugin-api.d.ts +1 -2
  472. package/dist/vite/plugin-api.js +13 -12
  473. package/dist/vite/plugin-api.js.map +1 -1
  474. package/dist/vite/plugin-auth.d.ts +1 -2
  475. package/dist/vite/plugin-auth.js +3 -2
  476. package/dist/vite/plugin-auth.js.map +1 -1
  477. package/dist/vite/plugin-component.d.ts +1 -2
  478. package/dist/vite/plugin-component.js +3 -2
  479. package/dist/vite/plugin-component.js.map +1 -1
  480. package/dist/vite/plugin-config-reload.d.ts +1 -2
  481. package/dist/vite/plugin-config-reload.js +23 -22
  482. package/dist/vite/plugin-config-reload.js.map +1 -1
  483. package/dist/vite/plugin-config.d.ts +2 -3
  484. package/dist/vite/plugin-config.js +6 -4
  485. package/dist/vite/plugin-config.js.map +1 -1
  486. package/dist/vite/plugin-custom-pages.d.ts +1 -2
  487. package/dist/vite/plugin-custom-pages.js +5 -4
  488. package/dist/vite/plugin-custom-pages.js.map +1 -1
  489. package/dist/vite/plugin-docs.d.ts +1 -2
  490. package/dist/vite/plugin-docs.js +69 -61
  491. package/dist/vite/plugin-docs.js.map +1 -1
  492. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  493. package/dist/vite/plugin-frontmatter.js +9 -4
  494. package/dist/vite/plugin-frontmatter.js.map +1 -1
  495. package/dist/vite/plugin-mdx.d.ts +1 -2
  496. package/dist/vite/plugin-mdx.js +24 -51
  497. package/dist/vite/plugin-mdx.js.map +1 -1
  498. package/dist/vite/{plugin-sidebar.d.ts → plugin-navigation.d.ts} +1 -2
  499. package/dist/vite/{plugin-sidebar.js → plugin-navigation.js} +22 -20
  500. package/dist/vite/plugin-navigation.js.map +1 -0
  501. package/dist/vite/plugin-redirect.d.ts +1 -2
  502. package/dist/vite/plugin-redirect.js +3 -2
  503. package/dist/vite/plugin-redirect.js.map +1 -1
  504. package/dist/vite/plugin-search.d.ts +1 -2
  505. package/dist/vite/plugin-search.js +3 -2
  506. package/dist/vite/plugin-search.js.map +1 -1
  507. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  508. package/dist/vite/plugin-shiki-register.js +39 -0
  509. package/dist/vite/plugin-shiki-register.js.map +1 -0
  510. package/dist/vite/plugin-theme.d.ts +8 -0
  511. package/dist/vite/plugin-theme.js +274 -0
  512. package/dist/vite/plugin-theme.js.map +1 -0
  513. package/dist/vite/plugin-theme.test.d.ts +1 -0
  514. package/dist/vite/plugin-theme.test.js +312 -0
  515. package/dist/vite/plugin-theme.test.js.map +1 -0
  516. package/dist/vite/plugin.d.ts +1 -2
  517. package/dist/vite/plugin.js +23 -22
  518. package/dist/vite/plugin.js.map +1 -1
  519. package/dist/vite/prerender/worker.js +5 -1
  520. package/dist/vite/prerender/worker.js.map +1 -1
  521. package/dist/vite/shadcn-registry.d.ts +45 -0
  522. package/dist/vite/shadcn-registry.js +29 -0
  523. package/dist/vite/shadcn-registry.js.map +1 -0
  524. package/dist/vite/sitemap.d.ts +1 -1
  525. package/dist/zuplo/with-zuplo.d.ts +2 -2
  526. package/dist/zuplo/with-zuplo.js.map +1 -1
  527. package/lib/Button-B3o-2Xdf.js +51 -0
  528. package/lib/Button-B3o-2Xdf.js.map +1 -0
  529. package/lib/{Card-BtheiD7j.js → Card-CMDQUPM4.js} +3 -3
  530. package/lib/{Card-BtheiD7j.js.map → Card-CMDQUPM4.js.map} +1 -1
  531. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  532. package/lib/CodeBlock-NFCmSWOK.js +98 -0
  533. package/lib/CodeBlock-NFCmSWOK.js.map +1 -0
  534. package/lib/Command-BYukybsa.js +140 -0
  535. package/lib/Command-BYukybsa.js.map +1 -0
  536. package/lib/{Dialog-ByYz4ABw.js → Dialog-u9Uz9sTt.js} +26 -25
  537. package/lib/Dialog-u9Uz9sTt.js.map +1 -0
  538. package/lib/{Drawer-CEwbkLDb.js → Drawer-DJ05s2pH.js} +105 -105
  539. package/lib/{Drawer-CEwbkLDb.js.map → Drawer-DJ05s2pH.js.map} +1 -1
  540. package/lib/MdxPage-CdxPkV7p.js +110 -0
  541. package/lib/MdxPage-CdxPkV7p.js.map +1 -0
  542. package/lib/OAuthErrorPage-CNbVseNs.js +150 -0
  543. package/lib/OAuthErrorPage-CNbVseNs.js.map +1 -0
  544. package/lib/OasProvider-dNGQw-A8.js +35 -0
  545. package/lib/OasProvider-dNGQw-A8.js.map +1 -0
  546. package/lib/OperationList-ckGHyNMV.js +5168 -0
  547. package/lib/OperationList-ckGHyNMV.js.map +1 -0
  548. package/lib/Pagination-Chy4IAeH.js +37 -0
  549. package/lib/Pagination-Chy4IAeH.js.map +1 -0
  550. package/lib/{RouteGuard-D2gX29iI.js → RouteGuard-D17dUEM_.js} +277 -283
  551. package/lib/RouteGuard-D17dUEM_.js.map +1 -0
  552. package/lib/{SchemaList-DGOmVkot.js → SchemaList-BVirSc9P.js} +59 -57
  553. package/lib/SchemaList-BVirSc9P.js.map +1 -0
  554. package/lib/SchemaView-DhJktH3K.js +366 -0
  555. package/lib/SchemaView-DhJktH3K.js.map +1 -0
  556. package/lib/Select-CHg-8SQA.js +273 -0
  557. package/lib/Select-CHg-8SQA.js.map +1 -0
  558. package/lib/SignUp-xrEyHGja.js +56 -0
  559. package/lib/SignUp-xrEyHGja.js.map +1 -0
  560. package/lib/{Markdown-DvdVn1O7.js → Slot-DwKHufbT.js} +14307 -15696
  561. package/lib/Slot-DwKHufbT.js.map +1 -0
  562. package/lib/Spinner-mNLZ6awP.js.map +1 -1
  563. package/lib/SyntaxHighlight-DQ64ObSH.js +10308 -0
  564. package/lib/SyntaxHighlight-DQ64ObSH.js.map +1 -0
  565. package/lib/{Toc-BnN4zBb3.js → Toc-IyR_0dSg.js} +5 -5
  566. package/lib/Toc-IyR_0dSg.js.map +1 -0
  567. package/lib/ZudokuContext-Coxa0DfE.js +1278 -0
  568. package/lib/ZudokuContext-Coxa0DfE.js.map +1 -0
  569. package/lib/chunk-QMGIS6GS-CdEm9pzB.js +1839 -0
  570. package/lib/chunk-QMGIS6GS-CdEm9pzB.js.map +1 -0
  571. package/lib/{circular-WY7p7GWq.js → circular-3tGytcdj.js} +1568 -1560
  572. package/lib/circular-3tGytcdj.js.map +1 -0
  573. package/lib/clsx-OuTLNxxd.js +17 -0
  574. package/lib/clsx-OuTLNxxd.js.map +1 -0
  575. package/lib/{cn-qaFjX9_3.js → cn-dYga0KKN.js} +1015 -563
  576. package/lib/cn-dYga0KKN.js.map +1 -0
  577. package/lib/{createServer-D3RtEIGE.js → createServer-C1PpesMb.js} +3985 -4127
  578. package/lib/createServer-C1PpesMb.js.map +1 -0
  579. package/lib/errors-DekB3aZw.js +45 -0
  580. package/lib/errors-DekB3aZw.js.map +1 -0
  581. package/lib/hook-DEPqwjke.js +247 -0
  582. package/lib/hook-DEPqwjke.js.map +1 -0
  583. package/lib/index-B2tq8ySG.js +4082 -0
  584. package/lib/index-B2tq8ySG.js.map +1 -0
  585. package/lib/{index-LNp6rxyU.js → index-BWWkmg0b.js} +3 -3
  586. package/lib/{index-LNp6rxyU.js.map → index-BWWkmg0b.js.map} +1 -1
  587. package/lib/{index-CuBIgTKC.js → index-CrcNWbel.js} +9 -9
  588. package/lib/{index-CuBIgTKC.js.map → index-CrcNWbel.js.map} +1 -1
  589. package/lib/index-D7-DP8pf.js +3391 -0
  590. package/lib/index-D7-DP8pf.js.map +1 -0
  591. package/lib/{index-CPNSgwSb.js → index-DI5SPFK9.js} +5 -5
  592. package/lib/{index-CPNSgwSb.js.map → index-DI5SPFK9.js.map} +1 -1
  593. package/lib/{index-DcHeSvkE.js → index-DmNq2fbN.js} +773 -796
  594. package/lib/index-DmNq2fbN.js.map +1 -0
  595. package/lib/index.esm-CdzlRw50.js +1254 -0
  596. package/lib/index.esm-CdzlRw50.js.map +1 -0
  597. package/lib/invariant-Bm-FVUQE.js +44 -0
  598. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  599. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -1
  600. package/lib/processors/removeExtensions.js.map +1 -1
  601. package/lib/processors/removeParameters.js +27 -28
  602. package/lib/processors/removeParameters.js.map +1 -1
  603. package/lib/processors/removePaths.js +17 -17
  604. package/lib/processors/removePaths.js.map +1 -1
  605. package/lib/processors/traverse.js.map +1 -1
  606. package/lib/ui/Accordion.js +1 -1
  607. package/lib/ui/Accordion.js.map +1 -1
  608. package/lib/ui/ActionButton.js +10 -10
  609. package/lib/ui/ActionButton.js.map +1 -1
  610. package/lib/ui/Alert.js +54 -38
  611. package/lib/ui/Alert.js.map +1 -1
  612. package/lib/ui/AlertDialog.js +1 -1
  613. package/lib/ui/AlertDialog.js.map +1 -1
  614. package/lib/ui/Badge.js +3 -3
  615. package/lib/ui/Badge.js.map +1 -1
  616. package/lib/ui/Breadcrumb.js +1 -1
  617. package/lib/ui/Breadcrumb.js.map +1 -1
  618. package/lib/ui/Button.js +20 -18
  619. package/lib/ui/Button.js.map +1 -1
  620. package/lib/ui/Callout.js +11 -10
  621. package/lib/ui/Callout.js.map +1 -1
  622. package/lib/ui/Card.js +8 -8
  623. package/lib/ui/Card.js.map +1 -1
  624. package/lib/ui/Carousel.js +175 -175
  625. package/lib/ui/Carousel.js.map +1 -1
  626. package/lib/ui/Checkbox.js +7 -7
  627. package/lib/ui/Checkbox.js.map +1 -1
  628. package/lib/ui/CodeBlock.js +9 -0
  629. package/lib/ui/CodeBlock.js.map +1 -0
  630. package/lib/ui/Command.js +57 -57
  631. package/lib/ui/Command.js.map +1 -1
  632. package/lib/ui/Dialog.js +40 -40
  633. package/lib/ui/Dialog.js.map +1 -1
  634. package/lib/ui/Drawer.js +2 -2
  635. package/lib/ui/DropdownMenu.js +34 -34
  636. package/lib/ui/DropdownMenu.js.map +1 -1
  637. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  638. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  639. package/lib/ui/Form.js +2 -2
  640. package/lib/ui/Form.js.map +1 -1
  641. package/lib/ui/HoverCard.js +5 -5
  642. package/lib/ui/HoverCard.js.map +1 -1
  643. package/lib/ui/Input.js +2 -2
  644. package/lib/ui/Input.js.map +1 -1
  645. package/lib/ui/Label.js +2 -2
  646. package/lib/ui/Label.js.map +1 -1
  647. package/lib/ui/Pagination.js +1 -1
  648. package/lib/ui/Pagination.js.map +1 -1
  649. package/lib/ui/Popover.js +2 -2
  650. package/lib/ui/Popover.js.map +1 -1
  651. package/lib/ui/Progress.js +1 -1
  652. package/lib/ui/Progress.js.map +1 -1
  653. package/lib/ui/RadioGroup.js +10 -10
  654. package/lib/ui/RadioGroup.js.map +1 -1
  655. package/lib/ui/ScrollArea.js +1 -1
  656. package/lib/ui/ScrollArea.js.map +1 -1
  657. package/lib/ui/Select.js +31 -31
  658. package/lib/ui/Select.js.map +1 -1
  659. package/lib/ui/Skeleton.js +1 -1
  660. package/lib/ui/Skeleton.js.map +1 -1
  661. package/lib/ui/Slider.js +5 -5
  662. package/lib/ui/Slider.js.map +1 -1
  663. package/lib/ui/Stepper.js.map +1 -1
  664. package/lib/ui/Switch.js +5 -5
  665. package/lib/ui/Switch.js.map +1 -1
  666. package/lib/ui/SyntaxHighlight.js +5 -5
  667. package/lib/ui/Tabs.js +16 -16
  668. package/lib/ui/Tabs.js.map +1 -1
  669. package/lib/ui/Textarea.js +5 -5
  670. package/lib/ui/Textarea.js.map +1 -1
  671. package/lib/ui/Toggle.js +7 -7
  672. package/lib/ui/Toggle.js.map +1 -1
  673. package/lib/ui/ToggleGroup.js +1 -1
  674. package/lib/ui/ToggleGroup.js.map +1 -1
  675. package/lib/ui/Tooltip.js +15 -8
  676. package/lib/ui/Tooltip.js.map +1 -1
  677. package/lib/ui/util.js +1 -1
  678. package/lib/useExposedProps-DUoV7MCU.js +113 -0
  679. package/lib/useExposedProps-DUoV7MCU.js.map +1 -0
  680. package/lib/zudoku.auth-auth0.js +29 -32
  681. package/lib/zudoku.auth-auth0.js.map +1 -1
  682. package/lib/zudoku.auth-azureb2c.js +137 -0
  683. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  684. package/lib/zudoku.auth-clerk.js +104 -99
  685. package/lib/zudoku.auth-clerk.js.map +1 -1
  686. package/lib/zudoku.auth-openid.js +452 -447
  687. package/lib/zudoku.auth-openid.js.map +1 -1
  688. package/lib/zudoku.auth-supabase.js +97 -0
  689. package/lib/zudoku.auth-supabase.js.map +1 -0
  690. package/lib/zudoku.components.js +21 -20
  691. package/lib/zudoku.hooks.js +21 -13
  692. package/lib/zudoku.hooks.js.map +1 -1
  693. package/lib/zudoku.icons.js.map +1 -1
  694. package/lib/zudoku.plugin-api-catalog.js +64 -63
  695. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  696. package/lib/zudoku.plugin-api-keys.js +654 -191
  697. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  698. package/lib/zudoku.plugin-custom-pages.js +12 -18
  699. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  700. package/lib/zudoku.plugin-markdown.js +20 -73
  701. package/lib/zudoku.plugin-markdown.js.map +1 -1
  702. package/lib/zudoku.plugin-openapi.js +5 -4
  703. package/lib/zudoku.plugin-openapi.js.map +1 -1
  704. package/lib/zudoku.plugin-redirect.js +1 -1
  705. package/lib/zudoku.plugin-redirect.js.map +1 -1
  706. package/lib/zudoku.plugin-search-inkeep.js +55 -59
  707. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  708. package/lib/zudoku.plugin-search-pagefind.js +216 -124
  709. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  710. package/lib/zudoku.plugins.js +7 -6
  711. package/lib/zudoku.plugins.js.map +1 -1
  712. package/package.json +112 -81
  713. package/src/app/ZuploBuildConfig.ts +8 -8
  714. package/src/app/defaultTheme.css +73 -0
  715. package/src/app/demo.tsx +24 -6
  716. package/src/app/entry.client.tsx +0 -2
  717. package/src/app/entry.server.tsx +0 -2
  718. package/src/app/env.ts +8 -0
  719. package/src/app/font.geist.css +73 -0
  720. package/src/app/main.css +131 -150
  721. package/src/app/main.tsx +32 -57
  722. package/src/app/standalone.tsx +7 -6
  723. package/src/lib/auth/issuer.test.ts +120 -0
  724. package/src/lib/auth/issuer.ts +41 -0
  725. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
  726. package/src/lib/authentication/authentication.ts +4 -7
  727. package/src/lib/authentication/components/CallbackHandler.tsx +23 -16
  728. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  729. package/src/lib/authentication/components/SignIn.tsx +5 -12
  730. package/src/lib/authentication/errors.ts +27 -13
  731. package/src/lib/authentication/hook.ts +2 -0
  732. package/src/lib/authentication/providers/auth0.tsx +9 -3
  733. package/src/lib/authentication/providers/azureb2c.tsx +201 -0
  734. package/src/lib/authentication/providers/clerk.tsx +76 -58
  735. package/src/lib/authentication/providers/openid.tsx +101 -30
  736. package/src/lib/authentication/providers/supabase.tsx +9 -16
  737. package/src/lib/authentication/state.ts +37 -7
  738. package/src/lib/components/Autocomplete.tsx +3 -2
  739. package/src/lib/components/Banner.tsx +2 -3
  740. package/src/lib/components/BuildCheck.tsx +4 -4
  741. package/src/lib/components/CategoryHeading.tsx +4 -1
  742. package/src/lib/components/ErrorPage.tsx +3 -3
  743. package/src/lib/components/Footer.tsx +8 -11
  744. package/src/lib/components/Framed.tsx +51 -0
  745. package/src/lib/components/Header.tsx +43 -40
  746. package/src/lib/components/Heading.tsx +16 -8
  747. package/src/lib/components/InlineCode.tsx +1 -1
  748. package/src/lib/components/Layout.tsx +3 -3
  749. package/src/lib/components/Main.tsx +13 -13
  750. package/src/lib/components/Markdown.tsx +40 -27
  751. package/src/lib/components/MobileTopNavigation.tsx +74 -16
  752. package/src/lib/components/NotFoundPage.tsx +6 -5
  753. package/src/lib/components/PageProgress.tsx +28 -0
  754. package/src/lib/components/Pagination.tsx +5 -10
  755. package/src/lib/components/Search.tsx +1 -1
  756. package/src/lib/components/Slot.test.tsx +465 -0
  757. package/src/lib/components/Slot.tsx +64 -0
  758. package/src/lib/components/StatusPage.tsx +5 -0
  759. package/src/lib/components/TopNavigation.tsx +80 -85
  760. package/src/lib/components/Typography.tsx +14 -0
  761. package/src/lib/components/Zudoku.tsx +9 -9
  762. package/src/lib/components/context/SlotProvider.tsx +149 -0
  763. package/src/lib/components/context/ZudokuContext.ts +67 -43
  764. package/src/lib/components/context/ZudokuProvider.tsx +3 -2
  765. package/src/lib/components/index.ts +16 -10
  766. package/src/lib/components/navigation/Navigation.tsx +50 -0
  767. package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +2 -2
  768. package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +19 -17
  769. package/src/lib/components/navigation/NavigationItem.tsx +159 -0
  770. package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +8 -5
  771. package/src/lib/components/navigation/PoweredByZudoku.tsx +1 -1
  772. package/src/lib/components/navigation/Toc.tsx +2 -2
  773. package/src/lib/components/navigation/utils.ts +69 -28
  774. package/src/lib/core/RouteGuard.tsx +13 -13
  775. package/src/lib/core/ZudokuContext.ts +77 -31
  776. package/src/lib/core/plugins.ts +13 -4
  777. package/src/lib/errors/ErrorAlert.tsx +8 -16
  778. package/src/lib/hooks/index.ts +11 -0
  779. package/src/lib/hooks/useEvent.test.tsx +7 -5
  780. package/src/lib/hooks/useHotkey.ts +70 -0
  781. package/src/lib/oas/graphql/circular.ts +27 -19
  782. package/src/lib/plugins/api-catalog/Catalog.tsx +2 -2
  783. package/src/lib/plugins/api-catalog/index.tsx +19 -19
  784. package/src/lib/plugins/api-keys/CreateApiKey.tsx +70 -44
  785. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +484 -118
  786. package/src/lib/plugins/api-keys/index.tsx +140 -62
  787. package/src/lib/plugins/custom-pages/index.tsx +21 -16
  788. package/src/lib/plugins/markdown/MdxPage.tsx +77 -22
  789. package/src/lib/plugins/markdown/index.tsx +29 -42
  790. package/src/lib/plugins/openapi/CollapsibleCode.tsx +6 -3
  791. package/src/lib/plugins/openapi/ColorizedParam.tsx +2 -2
  792. package/src/lib/plugins/openapi/OperationList.tsx +13 -21
  793. package/src/lib/plugins/openapi/OperationListItem.tsx +9 -37
  794. package/src/lib/plugins/openapi/ParamInfos.tsx +3 -1
  795. package/src/lib/plugins/openapi/ParameterListItem.tsx +6 -0
  796. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -2
  797. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  798. package/src/lib/plugins/openapi/SchemaList.tsx +24 -18
  799. package/src/lib/plugins/openapi/Sidecar.tsx +14 -99
  800. package/src/lib/plugins/openapi/SidecarExamples.tsx +9 -2
  801. package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
  802. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  803. package/src/lib/plugins/openapi/graphql/gql.ts +5 -5
  804. package/src/lib/plugins/openapi/graphql/graphql.ts +8 -6
  805. package/src/lib/plugins/openapi/index.tsx +77 -27
  806. package/src/lib/plugins/openapi/interfaces.ts +3 -3
  807. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  808. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  809. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +8 -1
  810. package/src/lib/plugins/openapi/playground/Headers.tsx +217 -115
  811. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +3 -2
  812. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +19 -35
  813. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  814. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
  815. package/src/lib/plugins/openapi/playground/PathParams.tsx +5 -6
  816. package/src/lib/plugins/openapi/playground/Playground.tsx +267 -290
  817. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -2
  818. package/src/lib/plugins/openapi/playground/QueryParams.tsx +104 -58
  819. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  820. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  821. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  822. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  823. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  824. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +115 -0
  825. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +149 -108
  826. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +68 -89
  827. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  828. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +5 -5
  829. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +25 -20
  830. package/src/lib/plugins/openapi/schema/SchemaView.tsx +13 -14
  831. package/src/lib/plugins/openapi/schema/utils.ts +21 -8
  832. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  833. package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +6 -5
  834. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +6 -1
  835. package/src/lib/plugins/openapi/util/getRoutes.tsx +2 -2
  836. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  837. package/src/lib/plugins/redirect/index.tsx +1 -1
  838. package/src/lib/plugins/search-inkeep/index.tsx +54 -58
  839. package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
  840. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +1 -0
  841. package/src/lib/plugins/search-pagefind/ResultList.tsx +13 -4
  842. package/src/lib/shiki.ts +134 -0
  843. package/src/lib/ui/ActionButton.tsx +3 -1
  844. package/src/lib/ui/Alert.tsx +45 -39
  845. package/src/lib/ui/Badge.tsx +2 -2
  846. package/src/lib/ui/Button.tsx +9 -6
  847. package/src/lib/ui/Callout.tsx +2 -1
  848. package/src/lib/ui/Card.tsx +1 -1
  849. package/src/lib/ui/Checkbox.tsx +1 -1
  850. package/src/lib/ui/CodeBlock.tsx +113 -0
  851. package/src/lib/ui/Command.tsx +5 -5
  852. package/src/lib/ui/Dialog.tsx +11 -7
  853. package/src/lib/ui/DropdownMenu.tsx +4 -4
  854. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  855. package/src/lib/ui/HoverCard.tsx +1 -1
  856. package/src/lib/ui/Input.tsx +1 -1
  857. package/src/lib/ui/Popover.tsx +1 -1
  858. package/src/lib/ui/RadioGroup.tsx +1 -1
  859. package/src/lib/ui/Select.tsx +3 -3
  860. package/src/lib/ui/Slider.tsx +1 -1
  861. package/src/lib/ui/Switch.tsx +1 -1
  862. package/src/lib/ui/SyntaxHighlight.tsx +28 -179
  863. package/src/lib/ui/Tabs.tsx +2 -2
  864. package/src/lib/ui/Textarea.tsx +1 -1
  865. package/src/lib/ui/Toggle.tsx +1 -1
  866. package/src/lib/ui/Tooltip.tsx +16 -1
  867. package/src/lib/util/MdxComponents.tsx +40 -16
  868. package/src/lib/util/humanFileSize.test.ts +24 -0
  869. package/src/lib/util/humanFileSize.ts +16 -0
  870. package/src/lib/util/invariant.ts +7 -5
  871. package/src/lib/util/os.ts +18 -0
  872. package/src/lib/util/useCopyToClipboard.ts +17 -0
  873. package/src/lib/util/useExposedProps.tsx +12 -1
  874. package/src/lib/util/useScrollToAnchor.ts +3 -3
  875. package/src/shiki/langs/abap.js +1 -0
  876. package/src/shiki/langs/actionscript-3.js +1 -0
  877. package/src/shiki/langs/ada.js +1 -0
  878. package/src/shiki/langs/angular-expression.js +1 -0
  879. package/src/shiki/langs/angular-html.js +1 -0
  880. package/src/shiki/langs/angular-inline-style.js +1 -0
  881. package/src/shiki/langs/angular-inline-template.js +1 -0
  882. package/src/shiki/langs/angular-let-declaration.js +1 -0
  883. package/src/shiki/langs/angular-template-blocks.js +1 -0
  884. package/src/shiki/langs/angular-template.js +1 -0
  885. package/src/shiki/langs/angular-ts.js +1 -0
  886. package/src/shiki/langs/apache.js +1 -0
  887. package/src/shiki/langs/apex.js +1 -0
  888. package/src/shiki/langs/apl.js +1 -0
  889. package/src/shiki/langs/applescript.js +1 -0
  890. package/src/shiki/langs/ara.js +1 -0
  891. package/src/shiki/langs/asciidoc.js +1 -0
  892. package/src/shiki/langs/asm.js +1 -0
  893. package/src/shiki/langs/astro.js +1 -0
  894. package/src/shiki/langs/awk.js +1 -0
  895. package/src/shiki/langs/ballerina.js +1 -0
  896. package/src/shiki/langs/bat.js +1 -0
  897. package/src/shiki/langs/beancount.js +1 -0
  898. package/src/shiki/langs/berry.js +1 -0
  899. package/src/shiki/langs/bibtex.js +1 -0
  900. package/src/shiki/langs/bicep.js +1 -0
  901. package/src/shiki/langs/blade.js +1 -0
  902. package/src/shiki/langs/bsl.js +1 -0
  903. package/src/shiki/langs/c.js +1 -0
  904. package/src/shiki/langs/cadence.js +1 -0
  905. package/src/shiki/langs/cairo.js +1 -0
  906. package/src/shiki/langs/clarity.js +1 -0
  907. package/src/shiki/langs/clojure.js +1 -0
  908. package/src/shiki/langs/cmake.js +1 -0
  909. package/src/shiki/langs/cobol.js +1 -0
  910. package/src/shiki/langs/codeowners.js +1 -0
  911. package/src/shiki/langs/codeql.js +1 -0
  912. package/src/shiki/langs/coffee.js +1 -0
  913. package/src/shiki/langs/common-lisp.js +1 -0
  914. package/src/shiki/langs/coq.js +1 -0
  915. package/src/shiki/langs/cpp-macro.js +1 -0
  916. package/src/shiki/langs/cpp.js +1 -0
  917. package/src/shiki/langs/crystal.js +1 -0
  918. package/src/shiki/langs/csharp.js +1 -0
  919. package/src/shiki/langs/css.js +1 -0
  920. package/src/shiki/langs/csv.js +1 -0
  921. package/src/shiki/langs/cue.js +1 -0
  922. package/src/shiki/langs/cypher.js +1 -0
  923. package/src/shiki/langs/d.js +1 -0
  924. package/src/shiki/langs/dart.js +1 -0
  925. package/src/shiki/langs/dax.js +1 -0
  926. package/src/shiki/langs/desktop.js +1 -0
  927. package/src/shiki/langs/diff.js +1 -0
  928. package/src/shiki/langs/docker.js +1 -0
  929. package/src/shiki/langs/dotenv.js +1 -0
  930. package/src/shiki/langs/dream-maker.js +1 -0
  931. package/src/shiki/langs/edge.js +1 -0
  932. package/src/shiki/langs/elixir.js +1 -0
  933. package/src/shiki/langs/elm.js +1 -0
  934. package/src/shiki/langs/emacs-lisp.js +1 -0
  935. package/src/shiki/langs/erb.js +1 -0
  936. package/src/shiki/langs/erlang.js +1 -0
  937. package/src/shiki/langs/es-tag-css.js +1 -0
  938. package/src/shiki/langs/es-tag-glsl.js +1 -0
  939. package/src/shiki/langs/es-tag-html.js +1 -0
  940. package/src/shiki/langs/es-tag-sql.js +1 -0
  941. package/src/shiki/langs/es-tag-xml.js +1 -0
  942. package/src/shiki/langs/fennel.js +1 -0
  943. package/src/shiki/langs/fish.js +1 -0
  944. package/src/shiki/langs/fluent.js +1 -0
  945. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  946. package/src/shiki/langs/fortran-free-form.js +1 -0
  947. package/src/shiki/langs/fsharp.js +1 -0
  948. package/src/shiki/langs/gdresource.js +1 -0
  949. package/src/shiki/langs/gdscript.js +1 -0
  950. package/src/shiki/langs/gdshader.js +1 -0
  951. package/src/shiki/langs/genie.js +1 -0
  952. package/src/shiki/langs/gherkin.js +1 -0
  953. package/src/shiki/langs/git-commit.js +1 -0
  954. package/src/shiki/langs/git-rebase.js +1 -0
  955. package/src/shiki/langs/gleam.js +1 -0
  956. package/src/shiki/langs/glimmer-js.js +1 -0
  957. package/src/shiki/langs/glimmer-ts.js +1 -0
  958. package/src/shiki/langs/glsl.js +1 -0
  959. package/src/shiki/langs/gnuplot.js +1 -0
  960. package/src/shiki/langs/go.js +1 -0
  961. package/src/shiki/langs/graphql.js +1 -0
  962. package/src/shiki/langs/groovy.js +1 -0
  963. package/src/shiki/langs/hack.js +1 -0
  964. package/src/shiki/langs/haml.js +1 -0
  965. package/src/shiki/langs/handlebars.js +1 -0
  966. package/src/shiki/langs/haskell.js +1 -0
  967. package/src/shiki/langs/haxe.js +1 -0
  968. package/src/shiki/langs/hcl.js +1 -0
  969. package/src/shiki/langs/hjson.js +1 -0
  970. package/src/shiki/langs/hlsl.js +1 -0
  971. package/src/shiki/langs/html-derivative.js +1 -0
  972. package/src/shiki/langs/html.js +1 -0
  973. package/src/shiki/langs/http.js +1 -0
  974. package/src/shiki/langs/hxml.js +1 -0
  975. package/src/shiki/langs/hy.js +1 -0
  976. package/src/shiki/langs/imba.js +1 -0
  977. package/src/shiki/langs/ini.js +1 -0
  978. package/src/shiki/langs/java.js +1 -0
  979. package/src/shiki/langs/javascript.js +1 -0
  980. package/src/shiki/langs/jinja-html.js +1 -0
  981. package/src/shiki/langs/jinja.js +1 -0
  982. package/src/shiki/langs/jison.js +1 -0
  983. package/src/shiki/langs/json.js +1 -0
  984. package/src/shiki/langs/json5.js +1 -0
  985. package/src/shiki/langs/jsonc.js +1 -0
  986. package/src/shiki/langs/jsonl.js +1 -0
  987. package/src/shiki/langs/jsonnet.js +1 -0
  988. package/src/shiki/langs/jssm.js +1 -0
  989. package/src/shiki/langs/jsx.js +1 -0
  990. package/src/shiki/langs/julia.js +1 -0
  991. package/src/shiki/langs/kotlin.js +1 -0
  992. package/src/shiki/langs/kusto.js +1 -0
  993. package/src/shiki/langs/latex.js +1 -0
  994. package/src/shiki/langs/lean.js +1 -0
  995. package/src/shiki/langs/less.js +1 -0
  996. package/src/shiki/langs/liquid.js +1 -0
  997. package/src/shiki/langs/llvm.js +1 -0
  998. package/src/shiki/langs/log.js +1 -0
  999. package/src/shiki/langs/logo.js +1 -0
  1000. package/src/shiki/langs/lua.js +1 -0
  1001. package/src/shiki/langs/luau.js +1 -0
  1002. package/src/shiki/langs/make.js +1 -0
  1003. package/src/shiki/langs/markdown-vue.js +1 -0
  1004. package/src/shiki/langs/markdown.js +1 -0
  1005. package/src/shiki/langs/marko.js +1 -0
  1006. package/src/shiki/langs/matlab.js +1 -0
  1007. package/src/shiki/langs/mdc.js +1 -0
  1008. package/src/shiki/langs/mdx.js +1 -0
  1009. package/src/shiki/langs/mermaid.js +1 -0
  1010. package/src/shiki/langs/mipsasm.js +1 -0
  1011. package/src/shiki/langs/mojo.js +1 -0
  1012. package/src/shiki/langs/move.js +1 -0
  1013. package/src/shiki/langs/narrat.js +1 -0
  1014. package/src/shiki/langs/nextflow.js +1 -0
  1015. package/src/shiki/langs/nginx.js +1 -0
  1016. package/src/shiki/langs/nim.js +1 -0
  1017. package/src/shiki/langs/nix.js +1 -0
  1018. package/src/shiki/langs/nushell.js +1 -0
  1019. package/src/shiki/langs/objective-c.js +1 -0
  1020. package/src/shiki/langs/objective-cpp.js +1 -0
  1021. package/src/shiki/langs/ocaml.js +1 -0
  1022. package/src/shiki/langs/pascal.js +1 -0
  1023. package/src/shiki/langs/perl.js +1 -0
  1024. package/src/shiki/langs/php.js +1 -0
  1025. package/src/shiki/langs/plsql.js +1 -0
  1026. package/src/shiki/langs/po.js +1 -0
  1027. package/src/shiki/langs/polar.js +1 -0
  1028. package/src/shiki/langs/postcss.js +1 -0
  1029. package/src/shiki/langs/powerquery.js +1 -0
  1030. package/src/shiki/langs/powershell.js +1 -0
  1031. package/src/shiki/langs/prisma.js +1 -0
  1032. package/src/shiki/langs/prolog.js +1 -0
  1033. package/src/shiki/langs/proto.js +1 -0
  1034. package/src/shiki/langs/pug.js +1 -0
  1035. package/src/shiki/langs/puppet.js +1 -0
  1036. package/src/shiki/langs/purescript.js +1 -0
  1037. package/src/shiki/langs/python.js +1 -0
  1038. package/src/shiki/langs/qml.js +1 -0
  1039. package/src/shiki/langs/qmldir.js +1 -0
  1040. package/src/shiki/langs/qss.js +1 -0
  1041. package/src/shiki/langs/r.js +1 -0
  1042. package/src/shiki/langs/racket.js +1 -0
  1043. package/src/shiki/langs/raku.js +1 -0
  1044. package/src/shiki/langs/razor.js +1 -0
  1045. package/src/shiki/langs/reg.js +1 -0
  1046. package/src/shiki/langs/regexp.js +1 -0
  1047. package/src/shiki/langs/rel.js +1 -0
  1048. package/src/shiki/langs/riscv.js +1 -0
  1049. package/src/shiki/langs/rst.js +1 -0
  1050. package/src/shiki/langs/ruby.js +1 -0
  1051. package/src/shiki/langs/rust.js +1 -0
  1052. package/src/shiki/langs/sas.js +1 -0
  1053. package/src/shiki/langs/sass.js +1 -0
  1054. package/src/shiki/langs/scala.js +1 -0
  1055. package/src/shiki/langs/scheme.js +1 -0
  1056. package/src/shiki/langs/scss.js +1 -0
  1057. package/src/shiki/langs/sdbl.js +1 -0
  1058. package/src/shiki/langs/shaderlab.js +1 -0
  1059. package/src/shiki/langs/shellscript.js +1 -0
  1060. package/src/shiki/langs/shellsession.js +1 -0
  1061. package/src/shiki/langs/smalltalk.js +1 -0
  1062. package/src/shiki/langs/solidity.js +1 -0
  1063. package/src/shiki/langs/soy.js +1 -0
  1064. package/src/shiki/langs/sparql.js +1 -0
  1065. package/src/shiki/langs/splunk.js +1 -0
  1066. package/src/shiki/langs/sql.js +1 -0
  1067. package/src/shiki/langs/ssh-config.js +1 -0
  1068. package/src/shiki/langs/stata.js +1 -0
  1069. package/src/shiki/langs/stylus.js +1 -0
  1070. package/src/shiki/langs/svelte.js +1 -0
  1071. package/src/shiki/langs/swift.js +1 -0
  1072. package/src/shiki/langs/system-verilog.js +1 -0
  1073. package/src/shiki/langs/systemd.js +1 -0
  1074. package/src/shiki/langs/talonscript.js +1 -0
  1075. package/src/shiki/langs/tasl.js +1 -0
  1076. package/src/shiki/langs/tcl.js +1 -0
  1077. package/src/shiki/langs/templ.js +1 -0
  1078. package/src/shiki/langs/terraform.js +1 -0
  1079. package/src/shiki/langs/tex.js +1 -0
  1080. package/src/shiki/langs/toml.js +1 -0
  1081. package/src/shiki/langs/ts-tags.js +1 -0
  1082. package/src/shiki/langs/tsv.js +1 -0
  1083. package/src/shiki/langs/tsx.js +1 -0
  1084. package/src/shiki/langs/turtle.js +1 -0
  1085. package/src/shiki/langs/twig.js +1 -0
  1086. package/src/shiki/langs/typescript.js +1 -0
  1087. package/src/shiki/langs/typespec.js +1 -0
  1088. package/src/shiki/langs/typst.js +1 -0
  1089. package/src/shiki/langs/v.js +1 -0
  1090. package/src/shiki/langs/vala.js +1 -0
  1091. package/src/shiki/langs/vb.js +1 -0
  1092. package/src/shiki/langs/verilog.js +1 -0
  1093. package/src/shiki/langs/vhdl.js +1 -0
  1094. package/src/shiki/langs/viml.js +1 -0
  1095. package/src/shiki/langs/vue-directives.js +1 -0
  1096. package/src/shiki/langs/vue-html.js +1 -0
  1097. package/src/shiki/langs/vue-interpolations.js +1 -0
  1098. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1099. package/src/shiki/langs/vue.js +1 -0
  1100. package/src/shiki/langs/vyper.js +1 -0
  1101. package/src/shiki/langs/wasm.js +1 -0
  1102. package/src/shiki/langs/wenyan.js +1 -0
  1103. package/src/shiki/langs/wgsl.js +1 -0
  1104. package/src/shiki/langs/wikitext.js +1 -0
  1105. package/src/shiki/langs/wit.js +1 -0
  1106. package/src/shiki/langs/wolfram.js +1 -0
  1107. package/src/shiki/langs/xml.js +1 -0
  1108. package/src/shiki/langs/xsl.js +1 -0
  1109. package/src/shiki/langs/yaml.js +1 -0
  1110. package/src/shiki/langs/zenscript.js +1 -0
  1111. package/src/shiki/langs/zig.js +1 -0
  1112. package/src/shiki/themes/andromeeda.js +1 -0
  1113. package/src/shiki/themes/aurora-x.js +1 -0
  1114. package/src/shiki/themes/ayu-dark.js +1 -0
  1115. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1116. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1117. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1118. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1119. package/src/shiki/themes/dark-plus.js +1 -0
  1120. package/src/shiki/themes/dracula-soft.js +1 -0
  1121. package/src/shiki/themes/dracula.js +1 -0
  1122. package/src/shiki/themes/everforest-dark.js +1 -0
  1123. package/src/shiki/themes/everforest-light.js +1 -0
  1124. package/src/shiki/themes/github-dark-default.js +1 -0
  1125. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1126. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1127. package/src/shiki/themes/github-dark.js +1 -0
  1128. package/src/shiki/themes/github-light-default.js +1 -0
  1129. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1130. package/src/shiki/themes/github-light.js +1 -0
  1131. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1132. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1133. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1134. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1135. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1136. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1137. package/src/shiki/themes/houston.js +1 -0
  1138. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1139. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1140. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1141. package/src/shiki/themes/laserwave.js +1 -0
  1142. package/src/shiki/themes/light-plus.js +1 -0
  1143. package/src/shiki/themes/material-theme-darker.js +1 -0
  1144. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1145. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1146. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1147. package/src/shiki/themes/material-theme.js +1 -0
  1148. package/src/shiki/themes/min-dark.js +1 -0
  1149. package/src/shiki/themes/min-light.js +1 -0
  1150. package/src/shiki/themes/monokai.js +1 -0
  1151. package/src/shiki/themes/night-owl.js +1 -0
  1152. package/src/shiki/themes/nord.js +1 -0
  1153. package/src/shiki/themes/one-dark-pro.js +1 -0
  1154. package/src/shiki/themes/one-light.js +1 -0
  1155. package/src/shiki/themes/plastic.js +1 -0
  1156. package/src/shiki/themes/poimandres.js +1 -0
  1157. package/src/shiki/themes/red.js +1 -0
  1158. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1159. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1160. package/src/shiki/themes/rose-pine.js +1 -0
  1161. package/src/shiki/themes/slack-dark.js +1 -0
  1162. package/src/shiki/themes/slack-ochin.js +1 -0
  1163. package/src/shiki/themes/snazzy-light.js +1 -0
  1164. package/src/shiki/themes/solarized-dark.js +1 -0
  1165. package/src/shiki/themes/solarized-light.js +1 -0
  1166. package/src/shiki/themes/synthwave-84.js +1 -0
  1167. package/src/shiki/themes/tokyo-night.js +1 -0
  1168. package/src/shiki/themes/vesper.js +1 -0
  1169. package/src/shiki/themes/vitesse-black.js +1 -0
  1170. package/src/shiki/themes/vitesse-dark.js +1 -0
  1171. package/src/shiki/themes/vitesse-light.js +1 -0
  1172. package/dist/app/tailwind.d.ts +0 -4
  1173. package/dist/app/tailwind.js +0 -97
  1174. package/dist/app/tailwind.js.map +0 -1
  1175. package/dist/config/common.d.ts +0 -10
  1176. package/dist/config/common.js +0 -2
  1177. package/dist/config/common.js.map +0 -1
  1178. package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
  1179. package/dist/config/validators/InputSidebarSchema.js +0 -62
  1180. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1181. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  1182. package/dist/config/validators/SidebarSchema.js +0 -118
  1183. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1184. package/dist/config/validators/common.d.ts +0 -7869
  1185. package/dist/config/validators/common.js +0 -404
  1186. package/dist/config/validators/common.js.map +0 -1
  1187. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1188. package/dist/lib/components/SlotletProvider.js +0 -18
  1189. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1190. package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
  1191. package/dist/lib/components/navigation/Sidebar.js +0 -10
  1192. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1193. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1194. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1195. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1196. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -11
  1197. package/dist/lib/components/navigation/SidebarItem.js +0 -49
  1198. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1199. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1200. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  1201. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  1202. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  1203. package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
  1204. package/dist/lib/plugins/markdown/resolver.js +0 -46
  1205. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1206. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
  1207. package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -22
  1208. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
  1209. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1210. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1211. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1212. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
  1213. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
  1214. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
  1215. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
  1216. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
  1217. package/dist/vite/plugin-docs.test.js +0 -22
  1218. package/dist/vite/plugin-docs.test.js.map +0 -1
  1219. package/dist/vite/plugin-sidebar.js.map +0 -1
  1220. package/dist/vite/plugin-theme-css.d.ts +0 -6
  1221. package/dist/vite/plugin-theme-css.js +0 -117
  1222. package/dist/vite/plugin-theme-css.js.map +0 -1
  1223. package/lib/AuthenticationPlugin-Bqlq5kRN.js +0 -99
  1224. package/lib/AuthenticationPlugin-Bqlq5kRN.js.map +0 -1
  1225. package/lib/Button-BBNrKpQd.js +0 -49
  1226. package/lib/Button-BBNrKpQd.js.map +0 -1
  1227. package/lib/Callout-D3Ja4OPX.js +0 -230
  1228. package/lib/Callout-D3Ja4OPX.js.map +0 -1
  1229. package/lib/CategoryHeading-D06WK_Wo.js +0 -10
  1230. package/lib/CategoryHeading-D06WK_Wo.js.map +0 -1
  1231. package/lib/Dialog-ByYz4ABw.js.map +0 -1
  1232. package/lib/Markdown-DvdVn1O7.js.map +0 -1
  1233. package/lib/MdxPage-_8H25sEU.js +0 -85
  1234. package/lib/MdxPage-_8H25sEU.js.map +0 -1
  1235. package/lib/OasProvider-hBA9fTDC.js +0 -33
  1236. package/lib/OasProvider-hBA9fTDC.js.map +0 -1
  1237. package/lib/OperationList-0n_9nYIg.js +0 -5147
  1238. package/lib/OperationList-0n_9nYIg.js.map +0 -1
  1239. package/lib/Pagination-B4iXKAzG.js +0 -48
  1240. package/lib/Pagination-B4iXKAzG.js.map +0 -1
  1241. package/lib/RouteGuard-D2gX29iI.js.map +0 -1
  1242. package/lib/SchemaList-DGOmVkot.js.map +0 -1
  1243. package/lib/SchemaView-DBar2RLi.js +0 -365
  1244. package/lib/SchemaView-DBar2RLi.js.map +0 -1
  1245. package/lib/Select-CYaEBIYK.js +0 -223
  1246. package/lib/Select-CYaEBIYK.js.map +0 -1
  1247. package/lib/SlotletProvider-wWbHYqWf.js +0 -340
  1248. package/lib/SlotletProvider-wWbHYqWf.js.map +0 -1
  1249. package/lib/SyntaxHighlight-o7q0acut.js +0 -2890
  1250. package/lib/SyntaxHighlight-o7q0acut.js.map +0 -1
  1251. package/lib/Toc-BnN4zBb3.js.map +0 -1
  1252. package/lib/_commonjsHelpers-B4e78b8K.js +0 -29
  1253. package/lib/_commonjsHelpers-B4e78b8K.js.map +0 -1
  1254. package/lib/chunk-BAXFHI7N-BLTsN6tl.js +0 -1846
  1255. package/lib/chunk-BAXFHI7N-BLTsN6tl.js.map +0 -1
  1256. package/lib/circular-WY7p7GWq.js.map +0 -1
  1257. package/lib/cn-qaFjX9_3.js.map +0 -1
  1258. package/lib/createServer-D3RtEIGE.js.map +0 -1
  1259. package/lib/hook-8GM2HXNM.js +0 -1478
  1260. package/lib/hook-8GM2HXNM.js.map +0 -1
  1261. package/lib/index-B1CQk2lf.js +0 -3208
  1262. package/lib/index-B1CQk2lf.js.map +0 -1
  1263. package/lib/index-Bn6Lc9tq.js +0 -9
  1264. package/lib/index-Bn6Lc9tq.js.map +0 -1
  1265. package/lib/index-DcHeSvkE.js.map +0 -1
  1266. package/lib/index-Dh-bWAb8.js +0 -5039
  1267. package/lib/index-Dh-bWAb8.js.map +0 -1
  1268. package/lib/index-DwT-v3zK.js +0 -86
  1269. package/lib/index-DwT-v3zK.js.map +0 -1
  1270. package/lib/index.esm-D2ZUREQN.js +0 -1216
  1271. package/lib/index.esm-D2ZUREQN.js.map +0 -1
  1272. package/lib/invariant-Caa8-XvF.js +0 -26
  1273. package/lib/invariant-Caa8-XvF.js.map +0 -1
  1274. package/lib/mutation-Bq5bn7Hf.js +0 -211
  1275. package/lib/mutation-Bq5bn7Hf.js.map +0 -1
  1276. package/lib/objectEntries-yMIkr2mI.js +0 -5
  1277. package/lib/objectEntries-yMIkr2mI.js.map +0 -1
  1278. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  1279. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  1280. package/lib/prism-csharp.min-C43x1RY2.js +0 -63
  1281. package/lib/prism-csharp.min-C43x1RY2.js.map +0 -1
  1282. package/lib/prism-java.min-CQzr40NQ.js +0 -35
  1283. package/lib/prism-java.min-CQzr40NQ.js.map +0 -1
  1284. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1285. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1286. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1287. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1288. package/lib/prism-jsstacktrace.min-BfobCF2F.js +0 -2
  1289. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +0 -1
  1290. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  1291. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  1292. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1293. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1294. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1295. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1296. package/lib/prism-ruby.min-L9OdQ6tU.js +0 -38
  1297. package/lib/prism-ruby.min-L9OdQ6tU.js.map +0 -1
  1298. package/lib/prism-typescript.min-qTySPvCh.js +0 -34
  1299. package/lib/prism-typescript.min-qTySPvCh.js.map +0 -1
  1300. package/lib/useExposedProps-DmTJxEXG.js +0 -9
  1301. package/lib/useExposedProps-DmTJxEXG.js.map +0 -1
  1302. package/lib/useLatest-hmRS46UF.js +0 -11
  1303. package/lib/useLatest-hmRS46UF.js.map +0 -1
  1304. package/src/app/tailwind.ts +0 -103
  1305. package/src/lib/components/SlotletProvider.tsx +0 -55
  1306. package/src/lib/components/navigation/Sidebar.tsx +0 -48
  1307. package/src/lib/components/navigation/SidebarItem.tsx +0 -117
  1308. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  1309. package/src/lib/plugins/markdown/resolver.ts +0 -57
  1310. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -75
  1311. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  1312. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
  1313. /package/dist/{vite/plugin-docs.test.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
@@ -1,1216 +0,0 @@
1
- import v from "react";
2
- var ge = (e) => e.type === "checkbox", ue = (e) => e instanceof Date, j = (e) => e == null;
3
- const ft = (e) => typeof e == "object";
4
- var U = (e) => !j(e) && !Array.isArray(e) && ft(e) && !ue(e), yt = (e) => U(e) && e.target ? ge(e.target) ? e.target.checked : e.target.value : e, Mt = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, _t = (e, s) => e.has(Mt(s)), Nt = (e) => {
5
- const s = e.constructor && e.constructor.prototype;
6
- return U(s) && s.hasOwnProperty("isPrototypeOf");
7
- }, We = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
8
- function T(e) {
9
- let s;
10
- const t = Array.isArray(e), i = typeof FileList < "u" ? e instanceof FileList : !1;
11
- if (e instanceof Date)
12
- s = new Date(e);
13
- else if (e instanceof Set)
14
- s = new Set(e);
15
- else if (!(We && (e instanceof Blob || i)) && (t || U(e)))
16
- if (s = t ? [] : {}, !t && !Nt(e))
17
- s = e;
18
- else
19
- for (const n in e)
20
- e.hasOwnProperty(n) && (s[n] = T(e[n]));
21
- else
22
- return e;
23
- return s;
24
- }
25
- var he = (e) => Array.isArray(e) ? e.filter(Boolean) : [], O = (e) => e === void 0, c = (e, s, t) => {
26
- if (!s || !U(e))
27
- return t;
28
- const i = he(s.split(/[,[\].]+?/)).reduce((n, u) => j(n) ? n : n[u], e);
29
- return O(i) || i === e ? O(e[s]) ? t : e[s] : i;
30
- }, Q = (e) => typeof e == "boolean", qe = (e) => /^\w*$/.test(e), gt = (e) => he(e.replace(/["|']|\]/g, "").split(/\.|\[/)), C = (e, s, t) => {
31
- let i = -1;
32
- const n = qe(s) ? [s] : gt(s), u = n.length, f = u - 1;
33
- for (; ++i < u; ) {
34
- const y = n[i];
35
- let F = t;
36
- if (i !== f) {
37
- const x = e[y];
38
- F = U(x) || Array.isArray(x) ? x : isNaN(+n[i + 1]) ? {} : [];
39
- }
40
- if (y === "__proto__" || y === "constructor" || y === "prototype")
41
- return;
42
- e[y] = F, e = e[y];
43
- }
44
- };
45
- const me = {
46
- BLUR: "blur",
47
- FOCUS_OUT: "focusout",
48
- CHANGE: "change"
49
- }, ee = {
50
- onBlur: "onBlur",
51
- onChange: "onChange",
52
- onSubmit: "onSubmit",
53
- onTouched: "onTouched",
54
- all: "all"
55
- }, ie = {
56
- max: "max",
57
- min: "min",
58
- maxLength: "maxLength",
59
- minLength: "minLength",
60
- pattern: "pattern",
61
- required: "required",
62
- validate: "validate"
63
- }, ht = v.createContext(null), xe = () => v.useContext(ht), sr = (e) => {
64
- const { children: s, ...t } = e;
65
- return v.createElement(ht.Provider, { value: t }, s);
66
- };
67
- var vt = (e, s, t, i = !0) => {
68
- const n = {
69
- defaultValues: s._defaultValues
70
- };
71
- for (const u in e)
72
- Object.defineProperty(n, u, {
73
- get: () => {
74
- const f = u;
75
- return s._proxyFormState[f] !== ee.all && (s._proxyFormState[f] = !i || ee.all), t && (t[f] = !0), e[f];
76
- }
77
- });
78
- return n;
79
- };
80
- function Bt(e) {
81
- const s = xe(), { control: t = s.control, disabled: i, name: n, exact: u } = e || {}, [f, y] = v.useState(t._formState), F = v.useRef({
82
- isDirty: !1,
83
- isLoading: !1,
84
- dirtyFields: !1,
85
- touchedFields: !1,
86
- validatingFields: !1,
87
- isValidating: !1,
88
- isValid: !1,
89
- errors: !1
90
- }), x = v.useRef(n);
91
- return x.current = n, v.useEffect(() => t._subscribe({
92
- name: x.current,
93
- formState: F.current,
94
- exact: u,
95
- callback: (w) => {
96
- !i && y({
97
- ...t._formState,
98
- ...w
99
- });
100
- }
101
- }), [t, i, u]), v.useEffect(() => {
102
- F.current.isValid && t._setValid(!0);
103
- }, [t]), v.useMemo(() => vt(f, t, F.current, !1), [f, t]);
104
- }
105
- var se = (e) => typeof e == "string", bt = (e, s, t, i, n) => se(e) ? (i && s.watch.add(e), c(t, e, n)) : Array.isArray(e) ? e.map((u) => (i && s.watch.add(u), c(t, u))) : (i && (s.watchAll = !0), t);
106
- function It(e) {
107
- const s = xe(), { control: t = s.control, name: i, defaultValue: n, disabled: u, exact: f } = e || {}, y = v.useRef(i), F = v.useRef(n);
108
- y.current = i, v.useEffect(() => t._subscribe({
109
- name: y.current,
110
- formState: {
111
- values: !0
112
- },
113
- exact: f,
114
- callback: (p) => !u && w(bt(y.current, t._names, p.values || t._formValues, !1, F.current))
115
- }), [t, u, f]);
116
- const [x, w] = v.useState(t._getWatch(i, n));
117
- return v.useEffect(() => t._removeUnmounted()), x;
118
- }
119
- function Pt(e) {
120
- const s = xe(), { name: t, disabled: i, control: n = s.control, shouldUnregister: u } = e, f = _t(n._names.array, t), y = It({
121
- control: n,
122
- name: t,
123
- defaultValue: c(n._formValues, t, c(n._defaultValues, t, e.defaultValue)),
124
- exact: !0
125
- }), F = Bt({
126
- control: n,
127
- name: t,
128
- exact: !0
129
- }), x = v.useRef(e), w = v.useRef(n.register(t, {
130
- ...e.rules,
131
- value: y,
132
- ...Q(e.disabled) ? { disabled: e.disabled } : {}
133
- })), p = v.useMemo(() => Object.defineProperties({}, {
134
- invalid: {
135
- enumerable: !0,
136
- get: () => !!c(F.errors, t)
137
- },
138
- isDirty: {
139
- enumerable: !0,
140
- get: () => !!c(F.dirtyFields, t)
141
- },
142
- isTouched: {
143
- enumerable: !0,
144
- get: () => !!c(F.touchedFields, t)
145
- },
146
- isValidating: {
147
- enumerable: !0,
148
- get: () => !!c(F.validatingFields, t)
149
- },
150
- error: {
151
- enumerable: !0,
152
- get: () => c(F.errors, t)
153
- }
154
- }), [F, t]), A = v.useCallback((P) => w.current.onChange({
155
- target: {
156
- value: yt(P),
157
- name: t
158
- },
159
- type: me.CHANGE
160
- }), [t]), R = v.useCallback(() => w.current.onBlur({
161
- target: {
162
- value: c(n._formValues, t),
163
- name: t
164
- },
165
- type: me.BLUR
166
- }), [t, n._formValues]), G = v.useCallback((P) => {
167
- const W = c(n._fields, t);
168
- W && P && (W._f.ref = {
169
- focus: () => P.focus(),
170
- select: () => P.select(),
171
- setCustomValidity: (m) => P.setCustomValidity(m),
172
- reportValidity: () => P.reportValidity()
173
- });
174
- }, [n._fields, t]), I = v.useMemo(() => ({
175
- name: t,
176
- value: y,
177
- ...Q(i) || F.disabled ? { disabled: F.disabled || i } : {},
178
- onChange: A,
179
- onBlur: R,
180
- ref: G
181
- }), [t, i, F.disabled, A, R, G, y]);
182
- return v.useEffect(() => {
183
- const P = n._options.shouldUnregister || u;
184
- n.register(t, {
185
- ...x.current.rules,
186
- ...Q(x.current.disabled) ? { disabled: x.current.disabled } : {}
187
- });
188
- const W = (m, Y) => {
189
- const $ = c(n._fields, m);
190
- $ && $._f && ($._f.mount = Y);
191
- };
192
- if (W(t, !0), P) {
193
- const m = T(c(n._options.defaultValues, t));
194
- C(n._defaultValues, t, m), O(c(n._formValues, t)) && C(n._formValues, t, m);
195
- }
196
- return !f && n.register(t), () => {
197
- (f ? P && !n._state.action : P) ? n.unregister(t) : W(t, !1);
198
- };
199
- }, [t, n, f, u]), v.useEffect(() => {
200
- n._setDisabledField({
201
- disabled: i,
202
- name: t
203
- });
204
- }, [i, t, n]), v.useMemo(() => ({
205
- field: I,
206
- formState: F,
207
- fieldState: p
208
- }), [I, F, p]);
209
- }
210
- const ir = (e) => e.render(Pt(e));
211
- var Wt = (e, s, t, i, n) => s ? {
212
- ...t[e],
213
- types: {
214
- ...t[e] && t[e].types ? t[e].types : {},
215
- [i]: n || !0
216
- }
217
- } : {}, z = (e) => Array.isArray(e) ? e : [e], st = () => {
218
- let e = [];
219
- return {
220
- get observers() {
221
- return e;
222
- },
223
- next: (n) => {
224
- for (const u of e)
225
- u.next && u.next(n);
226
- },
227
- subscribe: (n) => (e.push(n), {
228
- unsubscribe: () => {
229
- e = e.filter((u) => u !== n);
230
- }
231
- }),
232
- unsubscribe: () => {
233
- e = [];
234
- }
235
- };
236
- }, Be = (e) => j(e) || !ft(e);
237
- function le(e, s) {
238
- if (Be(e) || Be(s))
239
- return e === s;
240
- if (ue(e) && ue(s))
241
- return e.getTime() === s.getTime();
242
- const t = Object.keys(e), i = Object.keys(s);
243
- if (t.length !== i.length)
244
- return !1;
245
- for (const n of t) {
246
- const u = e[n];
247
- if (!i.includes(n))
248
- return !1;
249
- if (n !== "ref") {
250
- const f = s[n];
251
- if (ue(u) && ue(f) || U(u) && U(f) || Array.isArray(u) && Array.isArray(f) ? !le(u, f) : u !== f)
252
- return !1;
253
- }
254
- }
255
- return !0;
256
- }
257
- var H = (e) => U(e) && !Object.keys(e).length, He = (e) => e.type === "file", te = (e) => typeof e == "function", Fe = (e) => {
258
- if (!We)
259
- return !1;
260
- const s = e ? e.ownerDocument : 0;
261
- return e instanceof (s && s.defaultView ? s.defaultView.HTMLElement : HTMLElement);
262
- }, mt = (e) => e.type === "select-multiple", $e = (e) => e.type === "radio", qt = (e) => $e(e) || ge(e), pe = (e) => Fe(e) && e.isConnected;
263
- function Ht(e, s) {
264
- const t = s.slice(0, -1).length;
265
- let i = 0;
266
- for (; i < t; )
267
- e = O(e) ? i++ : e[s[i++]];
268
- return e;
269
- }
270
- function $t(e) {
271
- for (const s in e)
272
- if (e.hasOwnProperty(s) && !O(e[s]))
273
- return !1;
274
- return !0;
275
- }
276
- function B(e, s) {
277
- const t = Array.isArray(s) ? s : qe(s) ? [s] : gt(s), i = t.length === 1 ? e : Ht(e, t), n = t.length - 1, u = t[n];
278
- return i && delete i[u], n !== 0 && (U(i) && H(i) || Array.isArray(i) && $t(i)) && B(e, t.slice(0, -1)), e;
279
- }
280
- var Ft = (e) => {
281
- for (const s in e)
282
- if (te(e[s]))
283
- return !0;
284
- return !1;
285
- };
286
- function Ae(e, s = {}) {
287
- const t = Array.isArray(e);
288
- if (U(e) || t)
289
- for (const i in e)
290
- Array.isArray(e[i]) || U(e[i]) && !Ft(e[i]) ? (s[i] = Array.isArray(e[i]) ? [] : {}, Ae(e[i], s[i])) : j(e[i]) || (s[i] = !0);
291
- return s;
292
- }
293
- function At(e, s, t) {
294
- const i = Array.isArray(e);
295
- if (U(e) || i)
296
- for (const n in e)
297
- Array.isArray(e[n]) || U(e[n]) && !Ft(e[n]) ? O(s) || Be(t[n]) ? t[n] = Array.isArray(e[n]) ? Ae(e[n], []) : { ...Ae(e[n]) } : At(e[n], j(s) ? {} : s[n], t[n]) : t[n] = !le(e[n], s[n]);
298
- return t;
299
- }
300
- var ye = (e, s) => At(e, s, Ae(s));
301
- const it = {
302
- value: !1,
303
- isValid: !1
304
- }, at = { value: !0, isValid: !0 };
305
- var Vt = (e) => {
306
- if (Array.isArray(e)) {
307
- if (e.length > 1) {
308
- const s = e.filter((t) => t && t.checked && !t.disabled).map((t) => t.value);
309
- return { value: s, isValid: !!s.length };
310
- }
311
- return e[0].checked && !e[0].disabled ? (
312
- // @ts-expect-error expected to work in the browser
313
- e[0].attributes && !O(e[0].attributes.value) ? O(e[0].value) || e[0].value === "" ? at : { value: e[0].value, isValid: !0 } : at
314
- ) : it;
315
- }
316
- return it;
317
- }, xt = (e, { valueAsNumber: s, valueAsDate: t, setValueAs: i }) => O(e) ? e : s ? e === "" ? NaN : e && +e : t && se(e) ? new Date(e) : i ? i(e) : e;
318
- const nt = {
319
- isValid: !1,
320
- value: null
321
- };
322
- var St = (e) => Array.isArray(e) ? e.reduce((s, t) => t && t.checked && !t.disabled ? {
323
- isValid: !0,
324
- value: t.value
325
- } : s, nt) : nt;
326
- function lt(e) {
327
- const s = e.ref;
328
- return He(s) ? s.files : $e(s) ? St(e.refs).value : mt(s) ? [...s.selectedOptions].map(({ value: t }) => t) : ge(s) ? Vt(e.refs).value : xt(O(s.value) ? e.ref.value : s.value, e);
329
- }
330
- var jt = (e, s, t, i) => {
331
- const n = {};
332
- for (const u of e) {
333
- const f = c(s, u);
334
- f && C(n, u, f._f);
335
- }
336
- return {
337
- criteriaMode: t,
338
- names: [...e],
339
- fields: n,
340
- shouldUseNativeValidation: i
341
- };
342
- }, Ve = (e) => e instanceof RegExp, _e = (e) => O(e) ? e : Ve(e) ? e.source : U(e) ? Ve(e.value) ? e.value.source : e.value : e, ce = (e) => ({
343
- isOnSubmit: !e || e === ee.onSubmit,
344
- isOnBlur: e === ee.onBlur,
345
- isOnChange: e === ee.onChange,
346
- isOnAll: e === ee.all,
347
- isOnTouch: e === ee.onTouched
348
- });
349
- const ut = "AsyncFunction";
350
- var Kt = (e) => !!e && !!e.validate && !!(te(e.validate) && e.validate.constructor.name === ut || U(e.validate) && Object.values(e.validate).find((s) => s.constructor.name === ut)), zt = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Ie = (e, s, t) => !t && (s.watchAll || s.watch.has(e) || [...s.watch].some((i) => e.startsWith(i) && /^\.\w+/.test(e.slice(i.length))));
351
- const de = (e, s, t, i) => {
352
- for (const n of t || Object.keys(e)) {
353
- const u = c(e, n);
354
- if (u) {
355
- const { _f: f, ...y } = u;
356
- if (f) {
357
- if (f.refs && f.refs[0] && s(f.refs[0], n) && !i)
358
- return !0;
359
- if (f.ref && s(f.ref, f.name) && !i)
360
- return !0;
361
- if (de(y, s))
362
- break;
363
- } else if (U(y) && de(y, s))
364
- break;
365
- }
366
- }
367
- };
368
- function ot(e, s, t) {
369
- const i = c(e, t);
370
- if (i || qe(t))
371
- return {
372
- error: i,
373
- name: t
374
- };
375
- const n = t.split(".");
376
- for (; n.length; ) {
377
- const u = n.join("."), f = c(s, u), y = c(e, u);
378
- if (f && !Array.isArray(f) && t !== u)
379
- return { name: t };
380
- if (y && y.type)
381
- return {
382
- name: u,
383
- error: y
384
- };
385
- n.pop();
386
- }
387
- return {
388
- name: t
389
- };
390
- }
391
- var Gt = (e, s, t, i) => {
392
- t(e);
393
- const { name: n, ...u } = e;
394
- return H(u) || Object.keys(u).length >= Object.keys(s).length || Object.keys(u).find((f) => s[f] === (!i || ee.all));
395
- }, Yt = (e, s, t) => !e || !s || e === s || z(e).some((i) => i && (t ? i === s : i.startsWith(s) || s.startsWith(i))), Jt = (e, s, t, i, n) => n.isOnAll ? !1 : !t && n.isOnTouch ? !(s || e) : (t ? i.isOnBlur : n.isOnBlur) ? !e : (t ? i.isOnChange : n.isOnChange) ? e : !0, Qt = (e, s) => !he(c(e, s)).length && B(e, s), wt = (e, s, t) => {
396
- const i = z(c(e, t));
397
- return C(i, "root", s[t]), C(e, t, i), e;
398
- }, be = (e) => se(e);
399
- function ct(e, s, t = "validate") {
400
- if (be(e) || Array.isArray(e) && e.every(be) || Q(e) && !e)
401
- return {
402
- type: t,
403
- message: be(e) ? e : "",
404
- ref: s
405
- };
406
- }
407
- var oe = (e) => U(e) && !Ve(e) ? e : {
408
- value: e,
409
- message: ""
410
- }, Pe = async (e, s, t, i, n, u) => {
411
- const { ref: f, refs: y, required: F, maxLength: x, minLength: w, min: p, max: A, pattern: R, validate: G, name: I, valueAsNumber: P, mount: W } = e._f, m = c(t, I);
412
- if (!W || s.has(I))
413
- return {};
414
- const Y = y ? y[0] : f, $ = (E) => {
415
- n && Y.reportValidity && (Y.setCustomValidity(Q(E) ? "" : E || ""), Y.reportValidity());
416
- }, M = {}, b = $e(f), h = ge(f), V = b || h, D = (P || He(f)) && O(f.value) && O(m) || Fe(f) && f.value === "" || m === "" || Array.isArray(m) && !m.length, J = Wt.bind(null, I, i, M), X = (E, S, L, K = ie.maxLength, Z = ie.minLength) => {
417
- const re = E ? S : L;
418
- M[I] = {
419
- type: E ? K : Z,
420
- message: re,
421
- ref: f,
422
- ...J(E ? K : Z, re)
423
- };
424
- };
425
- if (u ? !Array.isArray(m) || !m.length : F && (!V && (D || j(m)) || Q(m) && !m || h && !Vt(y).isValid || b && !St(y).isValid)) {
426
- const { value: E, message: S } = be(F) ? { value: !!F, message: F } : oe(F);
427
- if (E && (M[I] = {
428
- type: ie.required,
429
- message: S,
430
- ref: Y,
431
- ...J(ie.required, S)
432
- }, !i))
433
- return $(S), M;
434
- }
435
- if (!D && (!j(p) || !j(A))) {
436
- let E, S;
437
- const L = oe(A), K = oe(p);
438
- if (!j(m) && !isNaN(m)) {
439
- const Z = f.valueAsNumber || m && +m;
440
- j(L.value) || (E = Z > L.value), j(K.value) || (S = Z < K.value);
441
- } else {
442
- const Z = f.valueAsDate || new Date(m), re = (ve) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + ve), ae = f.type == "time", fe = f.type == "week";
443
- se(L.value) && m && (E = ae ? re(m) > re(L.value) : fe ? m > L.value : Z > new Date(L.value)), se(K.value) && m && (S = ae ? re(m) < re(K.value) : fe ? m < K.value : Z < new Date(K.value));
444
- }
445
- if ((E || S) && (X(!!E, L.message, K.message, ie.max, ie.min), !i))
446
- return $(M[I].message), M;
447
- }
448
- if ((x || w) && !D && (se(m) || u && Array.isArray(m))) {
449
- const E = oe(x), S = oe(w), L = !j(E.value) && m.length > +E.value, K = !j(S.value) && m.length < +S.value;
450
- if ((L || K) && (X(L, E.message, S.message), !i))
451
- return $(M[I].message), M;
452
- }
453
- if (R && !D && se(m)) {
454
- const { value: E, message: S } = oe(R);
455
- if (Ve(E) && !m.match(E) && (M[I] = {
456
- type: ie.pattern,
457
- message: S,
458
- ref: f,
459
- ...J(ie.pattern, S)
460
- }, !i))
461
- return $(S), M;
462
- }
463
- if (G) {
464
- if (te(G)) {
465
- const E = await G(m, t), S = ct(E, Y);
466
- if (S && (M[I] = {
467
- ...S,
468
- ...J(ie.validate, S.message)
469
- }, !i))
470
- return $(S.message), M;
471
- } else if (U(G)) {
472
- let E = {};
473
- for (const S in G) {
474
- if (!H(E) && !i)
475
- break;
476
- const L = ct(await G[S](m, t), Y, S);
477
- L && (E = {
478
- ...L,
479
- ...J(S, L.message)
480
- }, $(L.message), i && (M[I] = E));
481
- }
482
- if (!H(E) && (M[I] = {
483
- ref: Y,
484
- ...E
485
- }, !i))
486
- return M;
487
- }
488
- }
489
- return $(!0), M;
490
- };
491
- const Xt = {
492
- mode: ee.onSubmit,
493
- reValidateMode: ee.onChange,
494
- shouldFocusError: !0
495
- };
496
- function Zt(e = {}) {
497
- let s = {
498
- ...Xt,
499
- ...e
500
- }, t = {
501
- submitCount: 0,
502
- isDirty: !1,
503
- isLoading: te(s.defaultValues),
504
- isValidating: !1,
505
- isSubmitted: !1,
506
- isSubmitting: !1,
507
- isSubmitSuccessful: !1,
508
- isValid: !1,
509
- touchedFields: {},
510
- dirtyFields: {},
511
- validatingFields: {},
512
- errors: s.errors || {},
513
- disabled: s.disabled || !1
514
- };
515
- const i = {};
516
- let n = U(s.defaultValues) || U(s.values) ? T(s.values || s.defaultValues) || {} : {}, u = s.shouldUnregister ? {} : T(n), f = {
517
- action: !1,
518
- mount: !1,
519
- watch: !1
520
- }, y = {
521
- mount: /* @__PURE__ */ new Set(),
522
- disabled: /* @__PURE__ */ new Set(),
523
- unMount: /* @__PURE__ */ new Set(),
524
- array: /* @__PURE__ */ new Set(),
525
- watch: /* @__PURE__ */ new Set()
526
- }, F, x = 0;
527
- const w = {
528
- isDirty: !1,
529
- dirtyFields: !1,
530
- validatingFields: !1,
531
- touchedFields: !1,
532
- isValidating: !1,
533
- isValid: !1,
534
- errors: !1
535
- };
536
- let p = {
537
- ...w
538
- };
539
- const A = {
540
- array: st(),
541
- state: st()
542
- }, R = ce(s.mode), G = ce(s.reValidateMode), I = s.criteriaMode === ee.all, P = (r) => (a) => {
543
- clearTimeout(x), x = setTimeout(r, a);
544
- }, W = async (r) => {
545
- if (!s.disabled && (w.isValid || p.isValid || r)) {
546
- const a = s.resolver ? H((await D()).errors) : await X(i, !0);
547
- a !== t.isValid && A.state.next({
548
- isValid: a
549
- });
550
- }
551
- }, m = (r, a) => {
552
- !s.disabled && (w.isValidating || w.validatingFields || p.isValidating || p.validatingFields) && ((r || Array.from(y.mount)).forEach((l) => {
553
- l && (a ? C(t.validatingFields, l, a) : B(t.validatingFields, l));
554
- }), A.state.next({
555
- validatingFields: t.validatingFields,
556
- isValidating: !H(t.validatingFields)
557
- }));
558
- }, Y = (r, a = [], l, _, d = !0, o = !0) => {
559
- if (_ && l && !s.disabled) {
560
- if (f.action = !0, o && Array.isArray(c(i, r))) {
561
- const g = l(c(i, r), _.argA, _.argB);
562
- d && C(i, r, g);
563
- }
564
- if (o && Array.isArray(c(t.errors, r))) {
565
- const g = l(c(t.errors, r), _.argA, _.argB);
566
- d && C(t.errors, r, g), Qt(t.errors, r);
567
- }
568
- if ((w.touchedFields || p.touchedFields) && o && Array.isArray(c(t.touchedFields, r))) {
569
- const g = l(c(t.touchedFields, r), _.argA, _.argB);
570
- d && C(t.touchedFields, r, g);
571
- }
572
- (w.dirtyFields || p.dirtyFields) && (t.dirtyFields = ye(n, u)), A.state.next({
573
- name: r,
574
- isDirty: S(r, a),
575
- dirtyFields: t.dirtyFields,
576
- errors: t.errors,
577
- isValid: t.isValid
578
- });
579
- } else
580
- C(u, r, a);
581
- }, $ = (r, a) => {
582
- C(t.errors, r, a), A.state.next({
583
- errors: t.errors
584
- });
585
- }, M = (r) => {
586
- t.errors = r, A.state.next({
587
- errors: t.errors,
588
- isValid: !1
589
- });
590
- }, b = (r, a, l, _) => {
591
- const d = c(i, r);
592
- if (d) {
593
- const o = c(u, r, O(l) ? c(n, r) : l);
594
- O(o) || _ && _.defaultChecked || a ? C(u, r, a ? o : lt(d._f)) : Z(r, o), f.mount && W();
595
- }
596
- }, h = (r, a, l, _, d) => {
597
- let o = !1, g = !1;
598
- const k = {
599
- name: r
600
- };
601
- if (!s.disabled) {
602
- if (!l || _) {
603
- (w.isDirty || p.isDirty) && (g = t.isDirty, t.isDirty = k.isDirty = S(), o = g !== k.isDirty);
604
- const N = le(c(n, r), a);
605
- g = !!c(t.dirtyFields, r), N ? B(t.dirtyFields, r) : C(t.dirtyFields, r, !0), k.dirtyFields = t.dirtyFields, o = o || (w.dirtyFields || p.dirtyFields) && g !== !N;
606
- }
607
- if (l) {
608
- const N = c(t.touchedFields, r);
609
- N || (C(t.touchedFields, r, l), k.touchedFields = t.touchedFields, o = o || (w.touchedFields || p.touchedFields) && N !== l);
610
- }
611
- o && d && A.state.next(k);
612
- }
613
- return o ? k : {};
614
- }, V = (r, a, l, _) => {
615
- const d = c(t.errors, r), o = (w.isValid || p.isValid) && Q(a) && t.isValid !== a;
616
- if (s.delayError && l ? (F = P(() => $(r, l)), F(s.delayError)) : (clearTimeout(x), F = null, l ? C(t.errors, r, l) : B(t.errors, r)), (l ? !le(d, l) : d) || !H(_) || o) {
617
- const g = {
618
- ..._,
619
- ...o && Q(a) ? { isValid: a } : {},
620
- errors: t.errors,
621
- name: r
622
- };
623
- t = {
624
- ...t,
625
- ...g
626
- }, A.state.next(g);
627
- }
628
- }, D = async (r) => {
629
- m(r, !0);
630
- const a = await s.resolver(u, s.context, jt(r || y.mount, i, s.criteriaMode, s.shouldUseNativeValidation));
631
- return m(r), a;
632
- }, J = async (r) => {
633
- const { errors: a } = await D(r);
634
- if (r)
635
- for (const l of r) {
636
- const _ = c(a, l);
637
- _ ? C(t.errors, l, _) : B(t.errors, l);
638
- }
639
- else
640
- t.errors = a;
641
- return a;
642
- }, X = async (r, a, l = {
643
- valid: !0
644
- }) => {
645
- for (const _ in r) {
646
- const d = r[_];
647
- if (d) {
648
- const { _f: o, ...g } = d;
649
- if (o) {
650
- const k = y.array.has(o.name), N = d._f && Kt(d._f);
651
- N && w.validatingFields && m([_], !0);
652
- const q = await Pe(d, y.disabled, u, I, s.shouldUseNativeValidation && !a, k);
653
- if (N && w.validatingFields && m([_]), q[o.name] && (l.valid = !1, a))
654
- break;
655
- !a && (c(q, o.name) ? k ? wt(t.errors, q, o.name) : C(t.errors, o.name, q[o.name]) : B(t.errors, o.name));
656
- }
657
- !H(g) && await X(g, a, l);
658
- }
659
- }
660
- return l.valid;
661
- }, E = () => {
662
- for (const r of y.unMount) {
663
- const a = c(i, r);
664
- a && (a._f.refs ? a._f.refs.every((l) => !pe(l)) : !pe(a._f.ref)) && we(r);
665
- }
666
- y.unMount = /* @__PURE__ */ new Set();
667
- }, S = (r, a) => !s.disabled && (r && a && C(u, r, a), !le(je(), n)), L = (r, a, l) => bt(r, y, {
668
- ...f.mount ? u : O(a) ? n : se(r) ? { [r]: a } : a
669
- }, l, a), K = (r) => he(c(f.mount ? u : n, r, s.shouldUnregister ? c(n, r, []) : [])), Z = (r, a, l = {}) => {
670
- const _ = c(i, r);
671
- let d = a;
672
- if (_) {
673
- const o = _._f;
674
- o && (!o.disabled && C(u, r, xt(a, o)), d = Fe(o.ref) && j(a) ? "" : a, mt(o.ref) ? [...o.ref.options].forEach((g) => g.selected = d.includes(g.value)) : o.refs ? ge(o.ref) ? o.refs.length > 1 ? o.refs.forEach((g) => (!g.defaultChecked || !g.disabled) && (g.checked = Array.isArray(d) ? !!d.find((k) => k === g.value) : d === g.value)) : o.refs[0] && (o.refs[0].checked = !!d) : o.refs.forEach((g) => g.checked = g.value === d) : He(o.ref) ? o.ref.value = "" : (o.ref.value = d, o.ref.type || A.state.next({
675
- name: r,
676
- values: T(u)
677
- })));
678
- }
679
- (l.shouldDirty || l.shouldTouch) && h(r, d, l.shouldTouch, l.shouldDirty, !0), l.shouldValidate && Se(r);
680
- }, re = (r, a, l) => {
681
- for (const _ in a) {
682
- const d = a[_], o = `${r}.${_}`, g = c(i, o);
683
- (y.array.has(r) || U(d) || g && !g._f) && !ue(d) ? re(o, d, l) : Z(o, d, l);
684
- }
685
- }, ae = (r, a, l = {}) => {
686
- const _ = c(i, r), d = y.array.has(r), o = T(a);
687
- C(u, r, o), d ? (A.array.next({
688
- name: r,
689
- values: T(u)
690
- }), (w.isDirty || w.dirtyFields || p.isDirty || p.dirtyFields) && l.shouldDirty && A.state.next({
691
- name: r,
692
- dirtyFields: ye(n, u),
693
- isDirty: S(r, o)
694
- })) : _ && !_._f && !j(o) ? re(r, o, l) : Z(r, o, l), Ie(r, y) && A.state.next({ ...t }), A.state.next({
695
- name: f.mount ? r : void 0,
696
- values: T(u)
697
- });
698
- }, fe = async (r) => {
699
- f.mount = !0;
700
- const a = r.target;
701
- let l = a.name, _ = !0;
702
- const d = c(i, l), o = (g) => {
703
- _ = Number.isNaN(g) || ue(g) && isNaN(g.getTime()) || le(g, c(u, l, g));
704
- };
705
- if (d) {
706
- let g, k;
707
- const N = a.type ? lt(d._f) : yt(r), q = r.type === me.BLUR || r.type === me.FOCUS_OUT, Tt = !zt(d._f) && !s.resolver && !c(t.errors, l) && !d._f.deps || Jt(q, c(t.touchedFields, l), t.isSubmitted, G, R), De = Ie(l, y, q);
708
- C(u, l, N), q ? (d._f.onBlur && d._f.onBlur(r), F && F(0)) : d._f.onChange && d._f.onChange(r);
709
- const Ee = h(l, N, q), Lt = !H(Ee) || De;
710
- if (!q && A.state.next({
711
- name: l,
712
- type: r.type,
713
- values: T(u)
714
- }), Tt)
715
- return (w.isValid || p.isValid) && (s.mode === "onBlur" ? q && W() : q || W()), Lt && A.state.next({ name: l, ...De ? {} : Ee });
716
- if (!q && De && A.state.next({ ...t }), s.resolver) {
717
- const { errors: tt } = await D([l]);
718
- if (o(N), _) {
719
- const Ut = ot(t.errors, i, l), rt = ot(tt, i, Ut.name || l);
720
- g = rt.error, l = rt.name, k = H(tt);
721
- }
722
- } else
723
- m([l], !0), g = (await Pe(d, y.disabled, u, I, s.shouldUseNativeValidation))[l], m([l]), o(N), _ && (g ? k = !1 : (w.isValid || p.isValid) && (k = await X(i, !0)));
724
- _ && (d._f.deps && Se(d._f.deps), V(l, k, g, Ee));
725
- }
726
- }, ve = (r, a) => {
727
- if (c(t.errors, a) && r.focus)
728
- return r.focus(), 1;
729
- }, Se = async (r, a = {}) => {
730
- let l, _;
731
- const d = z(r);
732
- if (s.resolver) {
733
- const o = await J(O(r) ? r : d);
734
- l = H(o), _ = r ? !d.some((g) => c(o, g)) : l;
735
- } else r ? (_ = (await Promise.all(d.map(async (o) => {
736
- const g = c(i, o);
737
- return await X(g && g._f ? { [o]: g } : g);
738
- }))).every(Boolean), !(!_ && !t.isValid) && W()) : _ = l = await X(i);
739
- return A.state.next({
740
- ...!se(r) || (w.isValid || p.isValid) && l !== t.isValid ? {} : { name: r },
741
- ...s.resolver || !r ? { isValid: l } : {},
742
- errors: t.errors
743
- }), a.shouldFocus && !_ && de(i, ve, r ? d : y.mount), _;
744
- }, je = (r) => {
745
- const a = {
746
- ...f.mount ? u : n
747
- };
748
- return O(r) ? a : se(r) ? c(a, r) : r.map((l) => c(a, l));
749
- }, Ke = (r, a) => ({
750
- invalid: !!c((a || t).errors, r),
751
- isDirty: !!c((a || t).dirtyFields, r),
752
- error: c((a || t).errors, r),
753
- isValidating: !!c(t.validatingFields, r),
754
- isTouched: !!c((a || t).touchedFields, r)
755
- }), kt = (r) => {
756
- r && z(r).forEach((a) => B(t.errors, a)), A.state.next({
757
- errors: r ? t.errors : {}
758
- });
759
- }, ze = (r, a, l) => {
760
- const _ = (c(i, r, { _f: {} })._f || {}).ref, d = c(t.errors, r) || {}, { ref: o, message: g, type: k, ...N } = d;
761
- C(t.errors, r, {
762
- ...N,
763
- ...a,
764
- ref: _
765
- }), A.state.next({
766
- name: r,
767
- errors: t.errors,
768
- isValid: !1
769
- }), l && l.shouldFocus && _ && _.focus && _.focus();
770
- }, Dt = (r, a) => te(r) ? A.state.subscribe({
771
- next: (l) => r(L(void 0, a), l)
772
- }) : L(r, a, !0), Ge = (r) => A.state.subscribe({
773
- next: (a) => {
774
- Yt(r.name, a.name, r.exact) && Gt(a, r.formState || w, Rt, r.reRenderRoot) && r.callback({
775
- values: { ...u },
776
- ...t,
777
- ...a
778
- });
779
- }
780
- }).unsubscribe, Et = (r) => (f.mount = !0, p = {
781
- ...p,
782
- ...r.formState
783
- }, Ge({
784
- ...r,
785
- formState: p
786
- })), we = (r, a = {}) => {
787
- for (const l of r ? z(r) : y.mount)
788
- y.mount.delete(l), y.array.delete(l), a.keepValue || (B(i, l), B(u, l)), !a.keepError && B(t.errors, l), !a.keepDirty && B(t.dirtyFields, l), !a.keepTouched && B(t.touchedFields, l), !a.keepIsValidating && B(t.validatingFields, l), !s.shouldUnregister && !a.keepDefaultValue && B(n, l);
789
- A.state.next({
790
- values: T(u)
791
- }), A.state.next({
792
- ...t,
793
- ...a.keepDirty ? { isDirty: S() } : {}
794
- }), !a.keepIsValid && W();
795
- }, Ye = ({ disabled: r, name: a }) => {
796
- (Q(r) && f.mount || r || y.disabled.has(a)) && (r ? y.disabled.add(a) : y.disabled.delete(a));
797
- }, ke = (r, a = {}) => {
798
- let l = c(i, r);
799
- const _ = Q(a.disabled) || Q(s.disabled);
800
- return C(i, r, {
801
- ...l || {},
802
- _f: {
803
- ...l && l._f ? l._f : { ref: { name: r } },
804
- name: r,
805
- mount: !0,
806
- ...a
807
- }
808
- }), y.mount.add(r), l ? Ye({
809
- disabled: Q(a.disabled) ? a.disabled : s.disabled,
810
- name: r
811
- }) : b(r, !0, a.value), {
812
- ..._ ? { disabled: a.disabled || s.disabled } : {},
813
- ...s.progressive ? {
814
- required: !!a.required,
815
- min: _e(a.min),
816
- max: _e(a.max),
817
- minLength: _e(a.minLength),
818
- maxLength: _e(a.maxLength),
819
- pattern: _e(a.pattern)
820
- } : {},
821
- name: r,
822
- onChange: fe,
823
- onBlur: fe,
824
- ref: (d) => {
825
- if (d) {
826
- ke(r, a), l = c(i, r);
827
- const o = O(d.value) && d.querySelectorAll && d.querySelectorAll("input,select,textarea")[0] || d, g = qt(o), k = l._f.refs || [];
828
- if (g ? k.find((N) => N === o) : o === l._f.ref)
829
- return;
830
- C(i, r, {
831
- _f: {
832
- ...l._f,
833
- ...g ? {
834
- refs: [
835
- ...k.filter(pe),
836
- o,
837
- ...Array.isArray(c(n, r)) ? [{}] : []
838
- ],
839
- ref: { type: o.type, name: r }
840
- } : { ref: o }
841
- }
842
- }), b(r, !1, void 0, o);
843
- } else
844
- l = c(i, r, {}), l._f && (l._f.mount = !1), (s.shouldUnregister || a.shouldUnregister) && !(_t(y.array, r) && f.action) && y.unMount.add(r);
845
- }
846
- };
847
- }, Je = () => s.shouldFocusError && de(i, ve, y.mount), pt = (r) => {
848
- Q(r) && (A.state.next({ disabled: r }), de(i, (a, l) => {
849
- const _ = c(i, l);
850
- _ && (a.disabled = _._f.disabled || r, Array.isArray(_._f.refs) && _._f.refs.forEach((d) => {
851
- d.disabled = _._f.disabled || r;
852
- }));
853
- }, 0, !1));
854
- }, Qe = (r, a) => async (l) => {
855
- let _;
856
- l && (l.preventDefault && l.preventDefault(), l.persist && l.persist());
857
- let d = T(u);
858
- if (A.state.next({
859
- isSubmitting: !0
860
- }), s.resolver) {
861
- const { errors: o, values: g } = await D();
862
- t.errors = o, d = g;
863
- } else
864
- await X(i);
865
- if (y.disabled.size)
866
- for (const o of y.disabled)
867
- C(d, o, void 0);
868
- if (B(t.errors, "root"), H(t.errors)) {
869
- A.state.next({
870
- errors: {}
871
- });
872
- try {
873
- await r(d, l);
874
- } catch (o) {
875
- _ = o;
876
- }
877
- } else
878
- a && await a({ ...t.errors }, l), Je(), setTimeout(Je);
879
- if (A.state.next({
880
- isSubmitted: !0,
881
- isSubmitting: !1,
882
- isSubmitSuccessful: H(t.errors) && !_,
883
- submitCount: t.submitCount + 1,
884
- errors: t.errors
885
- }), _)
886
- throw _;
887
- }, Ct = (r, a = {}) => {
888
- c(i, r) && (O(a.defaultValue) ? ae(r, T(c(n, r))) : (ae(r, a.defaultValue), C(n, r, T(a.defaultValue))), a.keepTouched || B(t.touchedFields, r), a.keepDirty || (B(t.dirtyFields, r), t.isDirty = a.defaultValue ? S(r, T(c(n, r))) : S()), a.keepError || (B(t.errors, r), w.isValid && W()), A.state.next({ ...t }));
889
- }, Xe = (r, a = {}) => {
890
- const l = r ? T(r) : n, _ = T(l), d = H(r), o = d ? n : _;
891
- if (a.keepDefaultValues || (n = l), !a.keepValues) {
892
- if (a.keepDirtyValues) {
893
- const g = /* @__PURE__ */ new Set([
894
- ...y.mount,
895
- ...Object.keys(ye(n, u))
896
- ]);
897
- for (const k of Array.from(g))
898
- c(t.dirtyFields, k) ? C(o, k, c(u, k)) : ae(k, c(o, k));
899
- } else {
900
- if (We && O(r))
901
- for (const g of y.mount) {
902
- const k = c(i, g);
903
- if (k && k._f) {
904
- const N = Array.isArray(k._f.refs) ? k._f.refs[0] : k._f.ref;
905
- if (Fe(N)) {
906
- const q = N.closest("form");
907
- if (q) {
908
- q.reset();
909
- break;
910
- }
911
- }
912
- }
913
- }
914
- for (const g of y.mount)
915
- ae(g, c(o, g));
916
- }
917
- u = T(o), A.array.next({
918
- values: { ...o }
919
- }), A.state.next({
920
- values: { ...o }
921
- });
922
- }
923
- y = {
924
- mount: a.keepDirtyValues ? y.mount : /* @__PURE__ */ new Set(),
925
- unMount: /* @__PURE__ */ new Set(),
926
- array: /* @__PURE__ */ new Set(),
927
- disabled: /* @__PURE__ */ new Set(),
928
- watch: /* @__PURE__ */ new Set(),
929
- watchAll: !1,
930
- focus: ""
931
- }, f.mount = !w.isValid || !!a.keepIsValid || !!a.keepDirtyValues, f.watch = !!s.shouldUnregister, A.state.next({
932
- submitCount: a.keepSubmitCount ? t.submitCount : 0,
933
- isDirty: d ? !1 : a.keepDirty ? t.isDirty : !!(a.keepDefaultValues && !le(r, n)),
934
- isSubmitted: a.keepIsSubmitted ? t.isSubmitted : !1,
935
- dirtyFields: d ? {} : a.keepDirtyValues ? a.keepDefaultValues && u ? ye(n, u) : t.dirtyFields : a.keepDefaultValues && r ? ye(n, r) : a.keepDirty ? t.dirtyFields : {},
936
- touchedFields: a.keepTouched ? t.touchedFields : {},
937
- errors: a.keepErrors ? t.errors : {},
938
- isSubmitSuccessful: a.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
939
- isSubmitting: !1
940
- });
941
- }, Ze = (r, a) => Xe(te(r) ? r(u) : r, a), Ot = (r, a = {}) => {
942
- const l = c(i, r), _ = l && l._f;
943
- if (_) {
944
- const d = _.refs ? _.refs[0] : _.ref;
945
- d.focus && (d.focus(), a.shouldSelect && te(d.select) && d.select());
946
- }
947
- }, Rt = (r) => {
948
- t = {
949
- ...t,
950
- ...r
951
- };
952
- }, et = {
953
- control: {
954
- register: ke,
955
- unregister: we,
956
- getFieldState: Ke,
957
- handleSubmit: Qe,
958
- setError: ze,
959
- _subscribe: Ge,
960
- _runSchema: D,
961
- _getWatch: L,
962
- _getDirty: S,
963
- _setValid: W,
964
- _setFieldArray: Y,
965
- _setDisabledField: Ye,
966
- _setErrors: M,
967
- _getFieldArray: K,
968
- _reset: Xe,
969
- _resetDefaultValues: () => te(s.defaultValues) && s.defaultValues().then((r) => {
970
- Ze(r, s.resetOptions), A.state.next({
971
- isLoading: !1
972
- });
973
- }),
974
- _removeUnmounted: E,
975
- _disableForm: pt,
976
- _subjects: A,
977
- _proxyFormState: w,
978
- get _fields() {
979
- return i;
980
- },
981
- get _formValues() {
982
- return u;
983
- },
984
- get _state() {
985
- return f;
986
- },
987
- set _state(r) {
988
- f = r;
989
- },
990
- get _defaultValues() {
991
- return n;
992
- },
993
- get _names() {
994
- return y;
995
- },
996
- set _names(r) {
997
- y = r;
998
- },
999
- get _formState() {
1000
- return t;
1001
- },
1002
- get _options() {
1003
- return s;
1004
- },
1005
- set _options(r) {
1006
- s = {
1007
- ...s,
1008
- ...r
1009
- };
1010
- }
1011
- },
1012
- subscribe: Et,
1013
- trigger: Se,
1014
- register: ke,
1015
- handleSubmit: Qe,
1016
- watch: Dt,
1017
- setValue: ae,
1018
- getValues: je,
1019
- reset: Ze,
1020
- resetField: Ct,
1021
- clearErrors: kt,
1022
- unregister: we,
1023
- setError: ze,
1024
- setFocus: Ot,
1025
- getFieldState: Ke
1026
- };
1027
- return {
1028
- ...et,
1029
- formControl: et
1030
- };
1031
- }
1032
- var ne = () => {
1033
- const e = typeof performance > "u" ? Date.now() : performance.now() * 1e3;
1034
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (s) => {
1035
- const t = (Math.random() * 16 + e) % 16 | 0;
1036
- return (s == "x" ? t : t & 3 | 8).toString(16);
1037
- });
1038
- }, Ce = (e, s, t = {}) => t.shouldFocus || O(t.shouldFocus) ? t.focusName || `${e}.${O(t.focusIndex) ? s : t.focusIndex}.` : "", Oe = (e, s) => [
1039
- ...e,
1040
- ...z(s)
1041
- ], Re = (e) => Array.isArray(e) ? e.map(() => {
1042
- }) : void 0;
1043
- function Te(e, s, t) {
1044
- return [
1045
- ...e.slice(0, s),
1046
- ...z(t),
1047
- ...e.slice(s)
1048
- ];
1049
- }
1050
- var Le = (e, s, t) => Array.isArray(e) ? (O(e[t]) && (e[t] = void 0), e.splice(t, 0, e.splice(s, 1)[0]), e) : [], Ue = (e, s) => [
1051
- ...z(s),
1052
- ...z(e)
1053
- ];
1054
- function er(e, s) {
1055
- let t = 0;
1056
- const i = [...e];
1057
- for (const n of s)
1058
- i.splice(n - t, 1), t++;
1059
- return he(i).length ? i : [];
1060
- }
1061
- var Me = (e, s) => O(s) ? [] : er(e, z(s).sort((t, i) => t - i)), Ne = (e, s, t) => {
1062
- [e[s], e[t]] = [e[t], e[s]];
1063
- }, dt = (e, s, t) => (e[s] = t, e);
1064
- function ar(e) {
1065
- const s = xe(), { control: t = s.control, name: i, keyName: n = "id", shouldUnregister: u, rules: f } = e, [y, F] = v.useState(t._getFieldArray(i)), x = v.useRef(t._getFieldArray(i).map(ne)), w = v.useRef(y), p = v.useRef(i), A = v.useRef(!1);
1066
- p.current = i, w.current = y, t._names.array.add(i), f && t.register(i, f), v.useEffect(() => t._subjects.array.subscribe({
1067
- next: ({ values: b, name: h }) => {
1068
- if (h === p.current || !h) {
1069
- const V = c(b, p.current);
1070
- Array.isArray(V) && (F(V), x.current = V.map(ne));
1071
- }
1072
- }
1073
- }).unsubscribe, [t]);
1074
- const R = v.useCallback((b) => {
1075
- A.current = !0, t._setFieldArray(i, b);
1076
- }, [t, i]), G = (b, h) => {
1077
- const V = z(T(b)), D = Oe(t._getFieldArray(i), V);
1078
- t._names.focus = Ce(i, D.length - 1, h), x.current = Oe(x.current, V.map(ne)), R(D), F(D), t._setFieldArray(i, D, Oe, {
1079
- argA: Re(b)
1080
- });
1081
- }, I = (b, h) => {
1082
- const V = z(T(b)), D = Ue(t._getFieldArray(i), V);
1083
- t._names.focus = Ce(i, 0, h), x.current = Ue(x.current, V.map(ne)), R(D), F(D), t._setFieldArray(i, D, Ue, {
1084
- argA: Re(b)
1085
- });
1086
- }, P = (b) => {
1087
- const h = Me(t._getFieldArray(i), b);
1088
- x.current = Me(x.current, b), R(h), F(h), !Array.isArray(c(t._fields, i)) && C(t._fields, i, void 0), t._setFieldArray(i, h, Me, {
1089
- argA: b
1090
- });
1091
- }, W = (b, h, V) => {
1092
- const D = z(T(h)), J = Te(t._getFieldArray(i), b, D);
1093
- t._names.focus = Ce(i, b, V), x.current = Te(x.current, b, D.map(ne)), R(J), F(J), t._setFieldArray(i, J, Te, {
1094
- argA: b,
1095
- argB: Re(h)
1096
- });
1097
- }, m = (b, h) => {
1098
- const V = t._getFieldArray(i);
1099
- Ne(V, b, h), Ne(x.current, b, h), R(V), F(V), t._setFieldArray(i, V, Ne, {
1100
- argA: b,
1101
- argB: h
1102
- }, !1);
1103
- }, Y = (b, h) => {
1104
- const V = t._getFieldArray(i);
1105
- Le(V, b, h), Le(x.current, b, h), R(V), F(V), t._setFieldArray(i, V, Le, {
1106
- argA: b,
1107
- argB: h
1108
- }, !1);
1109
- }, $ = (b, h) => {
1110
- const V = T(h), D = dt(t._getFieldArray(i), b, V);
1111
- x.current = [...D].map((J, X) => !J || X === b ? ne() : x.current[X]), R(D), F([...D]), t._setFieldArray(i, D, dt, {
1112
- argA: b,
1113
- argB: V
1114
- }, !0, !1);
1115
- }, M = (b) => {
1116
- const h = z(T(b));
1117
- x.current = h.map(ne), R([...h]), F([...h]), t._setFieldArray(i, [...h], (V) => V, {}, !0, !1);
1118
- };
1119
- return v.useEffect(() => {
1120
- if (t._state.action = !1, Ie(i, t._names) && t._subjects.state.next({
1121
- ...t._formState
1122
- }), A.current && (!ce(t._options.mode).isOnSubmit || t._formState.isSubmitted) && !ce(t._options.reValidateMode).isOnSubmit)
1123
- if (t._options.resolver)
1124
- t._runSchema([i]).then((b) => {
1125
- const h = c(b.errors, i), V = c(t._formState.errors, i);
1126
- (V ? !h && V.type || h && (V.type !== h.type || V.message !== h.message) : h && h.type) && (h ? C(t._formState.errors, i, h) : B(t._formState.errors, i), t._subjects.state.next({
1127
- errors: t._formState.errors
1128
- }));
1129
- });
1130
- else {
1131
- const b = c(t._fields, i);
1132
- b && b._f && !(ce(t._options.reValidateMode).isOnSubmit && ce(t._options.mode).isOnSubmit) && Pe(b, t._names.disabled, t._formValues, t._options.criteriaMode === ee.all, t._options.shouldUseNativeValidation, !0).then((h) => !H(h) && t._subjects.state.next({
1133
- errors: wt(t._formState.errors, h, i)
1134
- }));
1135
- }
1136
- t._subjects.state.next({
1137
- name: i,
1138
- values: T(t._formValues)
1139
- }), t._names.focus && de(t._fields, (b, h) => {
1140
- if (t._names.focus && h.startsWith(t._names.focus) && b.focus)
1141
- return b.focus(), 1;
1142
- }), t._names.focus = "", t._setValid(), A.current = !1;
1143
- }, [y, i, t]), v.useEffect(() => (!c(t._formValues, i) && t._setFieldArray(i), () => {
1144
- const b = (h, V) => {
1145
- const D = c(t._fields, h);
1146
- D && D._f && (D._f.mount = V);
1147
- };
1148
- t._options.shouldUnregister || u ? t.unregister(i) : b(i, !1);
1149
- }), [i, t, n, u]), {
1150
- swap: v.useCallback(m, [R, i, t]),
1151
- move: v.useCallback(Y, [R, i, t]),
1152
- prepend: v.useCallback(I, [R, i, t]),
1153
- append: v.useCallback(G, [R, i, t]),
1154
- remove: v.useCallback(P, [R, i, t]),
1155
- insert: v.useCallback(W, [R, i, t]),
1156
- update: v.useCallback($, [R, i, t]),
1157
- replace: v.useCallback(M, [R, i, t]),
1158
- fields: v.useMemo(() => y.map((b, h) => ({
1159
- ...b,
1160
- [n]: x.current[h] || ne()
1161
- })), [y, n])
1162
- };
1163
- }
1164
- function nr(e = {}) {
1165
- const s = v.useRef(void 0), t = v.useRef(void 0), [i, n] = v.useState({
1166
- isDirty: !1,
1167
- isValidating: !1,
1168
- isLoading: te(e.defaultValues),
1169
- isSubmitted: !1,
1170
- isSubmitting: !1,
1171
- isSubmitSuccessful: !1,
1172
- isValid: !1,
1173
- submitCount: 0,
1174
- dirtyFields: {},
1175
- touchedFields: {},
1176
- validatingFields: {},
1177
- errors: e.errors || {},
1178
- disabled: e.disabled || !1,
1179
- defaultValues: te(e.defaultValues) ? void 0 : e.defaultValues
1180
- });
1181
- s.current || (s.current = {
1182
- ...e.formControl ? e.formControl : Zt(e),
1183
- formState: i
1184
- }, e.formControl && e.defaultValues && !te(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions));
1185
- const u = s.current.control;
1186
- return u._options = e, v.useLayoutEffect(() => u._subscribe({
1187
- formState: u._proxyFormState,
1188
- callback: () => n({ ...u._formState }),
1189
- reRenderRoot: !0
1190
- }), [u]), v.useEffect(() => u._disableForm(e.disabled), [u, e.disabled]), v.useEffect(() => {
1191
- if (u._proxyFormState.isDirty) {
1192
- const f = u._getDirty();
1193
- f !== i.isDirty && u._subjects.state.next({
1194
- isDirty: f
1195
- });
1196
- }
1197
- }, [u, i.isDirty]), v.useEffect(() => {
1198
- e.values && !le(e.values, t.current) ? (u._reset(e.values, u._options.resetOptions), t.current = e.values, n((f) => ({ ...f }))) : u._resetDefaultValues();
1199
- }, [e.values, u]), v.useEffect(() => {
1200
- e.errors && !H(e.errors) && u._setErrors(e.errors);
1201
- }, [e.errors, u]), v.useEffect(() => {
1202
- u._state.mount || (u._setValid(), u._state.mount = !0), u._state.watch && (u._state.watch = !1, u._subjects.state.next({ ...u._formState })), u._removeUnmounted();
1203
- }), v.useEffect(() => {
1204
- e.shouldUnregister && u._subjects.state.next({
1205
- values: u._getWatch()
1206
- });
1207
- }, [e.shouldUnregister, u]), s.current.formState = vt(i, u), s.current;
1208
- }
1209
- export {
1210
- ir as C,
1211
- sr as F,
1212
- nr as a,
1213
- ar as b,
1214
- xe as u
1215
- };
1216
- //# sourceMappingURL=index.esm-D2ZUREQN.js.map