@keycloakify/login-ui 250004.0.33

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 (387) hide show
  1. package/KcContext/getKcContextMock.d.ts +1 -0
  2. package/KcContext/getKcContextMock.js +1 -0
  3. package/KcContext/index.d.ts +2 -0
  4. package/KcContext/index.js +2 -0
  5. package/KcContext/useKcContext.d.ts +10 -0
  6. package/KcContext/useKcContext.js +17 -0
  7. package/README.md +12 -0
  8. package/core/KcContext/KcContext.d.ts +605 -0
  9. package/core/KcContext/KcContext.js +43 -0
  10. package/core/KcContext/getKcContextMock.d.ts +23 -0
  11. package/core/KcContext/getKcContextMock.js +27 -0
  12. package/core/KcContext/kcContextMocks.d.ts +4 -0
  13. package/core/KcContext/kcContextMocks.js +345 -0
  14. package/core/getKcClsx.d.ts +11 -0
  15. package/core/getKcClsx.js +54 -0
  16. package/core/i18n/GenericI18n.d.ts +63 -0
  17. package/core/i18n/GenericI18n.js +1 -0
  18. package/core/i18n/getI18n.d.ts +45 -0
  19. package/core/i18n/getI18n.js +246 -0
  20. package/core/i18n/i18nBuilder.d.ts +18 -0
  21. package/core/i18n/i18nBuilder.js +26 -0
  22. package/core/i18n/messages_defaultSet/ar.d.ts +447 -0
  23. package/core/i18n/messages_defaultSet/ar.js +451 -0
  24. package/core/i18n/messages_defaultSet/ca.d.ts +443 -0
  25. package/core/i18n/messages_defaultSet/ca.js +447 -0
  26. package/core/i18n/messages_defaultSet/cs.d.ts +445 -0
  27. package/core/i18n/messages_defaultSet/cs.js +449 -0
  28. package/core/i18n/messages_defaultSet/da.d.ts +317 -0
  29. package/core/i18n/messages_defaultSet/da.js +321 -0
  30. package/core/i18n/messages_defaultSet/de.d.ts +459 -0
  31. package/core/i18n/messages_defaultSet/de.js +463 -0
  32. package/core/i18n/messages_defaultSet/el.d.ts +438 -0
  33. package/core/i18n/messages_defaultSet/el.js +442 -0
  34. package/core/i18n/messages_defaultSet/en.d.ts +470 -0
  35. package/core/i18n/messages_defaultSet/en.js +474 -0
  36. package/core/i18n/messages_defaultSet/es.d.ts +452 -0
  37. package/core/i18n/messages_defaultSet/es.js +456 -0
  38. package/core/i18n/messages_defaultSet/fa.d.ts +438 -0
  39. package/core/i18n/messages_defaultSet/fa.js +442 -0
  40. package/core/i18n/messages_defaultSet/fi.d.ts +377 -0
  41. package/core/i18n/messages_defaultSet/fi.js +381 -0
  42. package/core/i18n/messages_defaultSet/fr.d.ts +393 -0
  43. package/core/i18n/messages_defaultSet/fr.js +397 -0
  44. package/core/i18n/messages_defaultSet/hu.d.ts +443 -0
  45. package/core/i18n/messages_defaultSet/hu.js +447 -0
  46. package/core/i18n/messages_defaultSet/index.d.ts +3086 -0
  47. package/core/i18n/messages_defaultSet/index.js +72 -0
  48. package/core/i18n/messages_defaultSet/it.d.ts +318 -0
  49. package/core/i18n/messages_defaultSet/it.js +322 -0
  50. package/core/i18n/messages_defaultSet/ja.d.ts +323 -0
  51. package/core/i18n/messages_defaultSet/ja.js +327 -0
  52. package/core/i18n/messages_defaultSet/ka.d.ts +468 -0
  53. package/core/i18n/messages_defaultSet/ka.js +472 -0
  54. package/core/i18n/messages_defaultSet/lt.d.ts +203 -0
  55. package/core/i18n/messages_defaultSet/lt.js +207 -0
  56. package/core/i18n/messages_defaultSet/lv.d.ts +214 -0
  57. package/core/i18n/messages_defaultSet/lv.js +218 -0
  58. package/core/i18n/messages_defaultSet/nl.d.ts +285 -0
  59. package/core/i18n/messages_defaultSet/nl.js +289 -0
  60. package/core/i18n/messages_defaultSet/no.d.ts +202 -0
  61. package/core/i18n/messages_defaultSet/no.js +206 -0
  62. package/core/i18n/messages_defaultSet/pl.d.ts +292 -0
  63. package/core/i18n/messages_defaultSet/pl.js +296 -0
  64. package/core/i18n/messages_defaultSet/pt-BR.d.ts +347 -0
  65. package/core/i18n/messages_defaultSet/pt-BR.js +351 -0
  66. package/core/i18n/messages_defaultSet/pt.d.ts +448 -0
  67. package/core/i18n/messages_defaultSet/pt.js +452 -0
  68. package/core/i18n/messages_defaultSet/ru.d.ts +220 -0
  69. package/core/i18n/messages_defaultSet/ru.js +224 -0
  70. package/core/i18n/messages_defaultSet/sk.d.ts +448 -0
  71. package/core/i18n/messages_defaultSet/sk.js +452 -0
  72. package/core/i18n/messages_defaultSet/sv.d.ts +201 -0
  73. package/core/i18n/messages_defaultSet/sv.js +205 -0
  74. package/core/i18n/messages_defaultSet/th.d.ts +443 -0
  75. package/core/i18n/messages_defaultSet/th.js +447 -0
  76. package/core/i18n/messages_defaultSet/tr.d.ts +270 -0
  77. package/core/i18n/messages_defaultSet/tr.js +274 -0
  78. package/core/i18n/messages_defaultSet/types.d.ts +3 -0
  79. package/core/i18n/messages_defaultSet/types.js +32 -0
  80. package/core/i18n/messages_defaultSet/uk.d.ts +442 -0
  81. package/core/i18n/messages_defaultSet/uk.js +446 -0
  82. package/core/i18n/messages_defaultSet/zh-CN.d.ts +447 -0
  83. package/core/i18n/messages_defaultSet/zh-CN.js +451 -0
  84. package/core/i18n/messages_defaultSet/zh-TW.d.ts +453 -0
  85. package/core/i18n/messages_defaultSet/zh-TW.js +457 -0
  86. package/core/kcClsx.d.ts +8 -0
  87. package/core/kcClsx.js +128 -0
  88. package/core/kcSanitize/HtmlPolicyBuilder.d.ts +27 -0
  89. package/core/kcSanitize/HtmlPolicyBuilder.js +207 -0
  90. package/core/kcSanitize/KcSanitizer.d.ts +11 -0
  91. package/core/kcSanitize/KcSanitizer.js +45 -0
  92. package/core/kcSanitize/KcSanitizerPolicy.d.ts +23 -0
  93. package/core/kcSanitize/KcSanitizerPolicy.js +148 -0
  94. package/core/kcSanitize/index.d.ts +1 -0
  95. package/core/kcSanitize/index.js +4 -0
  96. package/core/userProfileApi/index.d.ts +1 -0
  97. package/core/userProfileApi/index.js +1 -0
  98. package/core/userProfileApi/kcNumberUnFormat.d.ts +2 -0
  99. package/core/userProfileApi/kcNumberUnFormat.js +83 -0
  100. package/core/userProfileApi/userProfileApi.d.ts +83 -0
  101. package/core/userProfileApi/userProfileApi.js +1119 -0
  102. package/i18n/GenericI18n.d.ts +72 -0
  103. package/i18n/GenericI18n.js +4 -0
  104. package/i18n/i18nBuilder.d.ts +18 -0
  105. package/i18n/i18nBuilder.js +26 -0
  106. package/i18n/index.d.ts +3 -0
  107. package/i18n/index.js +1 -0
  108. package/i18n/useI18n.d.ts +28 -0
  109. package/i18n/useI18n.js +86 -0
  110. package/import.meta.env.BASE_URL.d.ts +5 -0
  111. package/import.meta.env.BASE_URL.js +41 -0
  112. package/kcSanitize.d.ts +1 -0
  113. package/kcSanitize.js +1 -0
  114. package/keycloak-theme/login/KcContext.ts +15 -0
  115. package/keycloak-theme/login/KcPage.tsx +47 -0
  116. package/keycloak-theme/login/components/LogoutOtherSessions.tsx +27 -0
  117. package/keycloak-theme/login/components/PasswordWrapper.tsx +38 -0
  118. package/keycloak-theme/login/components/Template/Template.tsx +235 -0
  119. package/keycloak-theme/login/components/Template/index.ts +1 -0
  120. package/keycloak-theme/login/components/Template/useInitializeTemplate.ts +60 -0
  121. package/keycloak-theme/login/components/UserProfileFormFields/AddRemoveButtonsMultiValuedAttribute.tsx +65 -0
  122. package/keycloak-theme/login/components/UserProfileFormFields/DO_MAKE_USER_CONFIRM_PASSWORD.ts +2 -0
  123. package/keycloak-theme/login/components/UserProfileFormFields/FieldErrors.tsx +37 -0
  124. package/keycloak-theme/login/components/UserProfileFormFields/GroupLabel.tsx +78 -0
  125. package/keycloak-theme/login/components/UserProfileFormFields/InputFieldByType.tsx +52 -0
  126. package/keycloak-theme/login/components/UserProfileFormFields/InputLabel.tsx +19 -0
  127. package/keycloak-theme/login/components/UserProfileFormFields/InputTag.tsx +130 -0
  128. package/keycloak-theme/login/components/UserProfileFormFields/InputTagSelects.tsx +118 -0
  129. package/keycloak-theme/login/components/UserProfileFormFields/SelectTag.tsx +86 -0
  130. package/keycloak-theme/login/components/UserProfileFormFields/TextareaTag.tsx +53 -0
  131. package/keycloak-theme/login/components/UserProfileFormFields/UserProfileFormFields.tsx +132 -0
  132. package/keycloak-theme/login/components/UserProfileFormFields/index.ts +1 -0
  133. package/keycloak-theme/login/i18n.ts +7 -0
  134. package/keycloak-theme/login/mocks/getKcContextMock.ts +18 -0
  135. package/keycloak-theme/login/pages/PageIndex.tsx +133 -0
  136. package/keycloak-theme/login/pages/code/Page.tsx +47 -0
  137. package/keycloak-theme/login/pages/code/index.ts +3 -0
  138. package/keycloak-theme/login/pages/delete-account-confirm/Page.tsx +59 -0
  139. package/keycloak-theme/login/pages/delete-account-confirm/index.ts +3 -0
  140. package/keycloak-theme/login/pages/delete-credential/Page.tsx +40 -0
  141. package/keycloak-theme/login/pages/delete-credential/index.ts +3 -0
  142. package/keycloak-theme/login/pages/error/Page.tsx +32 -0
  143. package/keycloak-theme/login/pages/error/index.ts +3 -0
  144. package/keycloak-theme/login/pages/frontchannel-logout/Page.tsx +40 -0
  145. package/keycloak-theme/login/pages/frontchannel-logout/index.ts +3 -0
  146. package/keycloak-theme/login/pages/idp-review-user-profile/Page.tsx +53 -0
  147. package/keycloak-theme/login/pages/idp-review-user-profile/index.ts +3 -0
  148. package/keycloak-theme/login/pages/info/Page.tsx +80 -0
  149. package/keycloak-theme/login/pages/info/index.ts +3 -0
  150. package/keycloak-theme/login/pages/login/Form.tsx +164 -0
  151. package/keycloak-theme/login/pages/login/Info.tsx +25 -0
  152. package/keycloak-theme/login/pages/login/Page.tsx +32 -0
  153. package/keycloak-theme/login/pages/login/SocialProviders.tsx +64 -0
  154. package/keycloak-theme/login/pages/login/index.ts +3 -0
  155. package/keycloak-theme/login/pages/login-config-totp/Page.tsx +219 -0
  156. package/keycloak-theme/login/pages/login-config-totp/index.ts +3 -0
  157. package/keycloak-theme/login/pages/login-idp-link-confirm/Page.tsx +51 -0
  158. package/keycloak-theme/login/pages/login-idp-link-confirm/index.ts +3 -0
  159. package/keycloak-theme/login/pages/login-idp-link-confirm-override/Page.tsx +41 -0
  160. package/keycloak-theme/login/pages/login-idp-link-confirm-override/index.ts +3 -0
  161. package/keycloak-theme/login/pages/login-idp-link-email/Page.tsx +32 -0
  162. package/keycloak-theme/login/pages/login-idp-link-email/index.ts +3 -0
  163. package/keycloak-theme/login/pages/login-oauth-grant/Page.tsx +120 -0
  164. package/keycloak-theme/login/pages/login-oauth-grant/index.ts +3 -0
  165. package/keycloak-theme/login/pages/login-oauth2-device-verify-user-code/Page.tsx +64 -0
  166. package/keycloak-theme/login/pages/login-oauth2-device-verify-user-code/index.ts +3 -0
  167. package/keycloak-theme/login/pages/login-otp/Page.tsx +125 -0
  168. package/keycloak-theme/login/pages/login-otp/index.ts +3 -0
  169. package/keycloak-theme/login/pages/login-page-expired/Page.tsx +28 -0
  170. package/keycloak-theme/login/pages/login-page-expired/index.ts +3 -0
  171. package/keycloak-theme/login/pages/login-passkeys-conditional-authenticate/Page.tsx +233 -0
  172. package/keycloak-theme/login/pages/login-passkeys-conditional-authenticate/index.ts +3 -0
  173. package/keycloak-theme/login/pages/login-passkeys-conditional-authenticate/useScript.tsx +64 -0
  174. package/keycloak-theme/login/pages/login-password/Page.tsx +103 -0
  175. package/keycloak-theme/login/pages/login-password/index.ts +3 -0
  176. package/keycloak-theme/login/pages/login-recovery-authn-code-config/Page.tsx +167 -0
  177. package/keycloak-theme/login/pages/login-recovery-authn-code-config/index.ts +3 -0
  178. package/keycloak-theme/login/pages/login-recovery-authn-code-config/useScript.tsx +145 -0
  179. package/keycloak-theme/login/pages/login-recovery-authn-code-input/Page.tsx +84 -0
  180. package/keycloak-theme/login/pages/login-recovery-authn-code-input/index.ts +3 -0
  181. package/keycloak-theme/login/pages/login-reset-otp/Page.tsx +82 -0
  182. package/keycloak-theme/login/pages/login-reset-otp/index.ts +3 -0
  183. package/keycloak-theme/login/pages/login-reset-password/Form.tsx +78 -0
  184. package/keycloak-theme/login/pages/login-reset-password/Page.tsx +27 -0
  185. package/keycloak-theme/login/pages/login-reset-password/index.ts +3 -0
  186. package/keycloak-theme/login/pages/login-update-password/Page.tsx +132 -0
  187. package/keycloak-theme/login/pages/login-update-password/index.ts +3 -0
  188. package/keycloak-theme/login/pages/login-update-profile/Page.tsx +70 -0
  189. package/keycloak-theme/login/pages/login-update-profile/index.ts +3 -0
  190. package/keycloak-theme/login/pages/login-username/Page.tsx +176 -0
  191. package/keycloak-theme/login/pages/login-username/index.ts +3 -0
  192. package/keycloak-theme/login/pages/login-verify-email/Page.tsx +31 -0
  193. package/keycloak-theme/login/pages/login-verify-email/index.ts +3 -0
  194. package/keycloak-theme/login/pages/login-x509-info/Page.tsx +97 -0
  195. package/keycloak-theme/login/pages/login-x509-info/index.ts +3 -0
  196. package/keycloak-theme/login/pages/logout-confirm/Page.tsx +54 -0
  197. package/keycloak-theme/login/pages/logout-confirm/index.ts +3 -0
  198. package/keycloak-theme/login/pages/register/Form.tsx +102 -0
  199. package/keycloak-theme/login/pages/register/Page.tsx +26 -0
  200. package/keycloak-theme/login/pages/register/TermsAcceptance.tsx +54 -0
  201. package/keycloak-theme/login/pages/register/index.ts +3 -0
  202. package/keycloak-theme/login/pages/saml-post-form/Page.tsx +50 -0
  203. package/keycloak-theme/login/pages/saml-post-form/index.ts +3 -0
  204. package/keycloak-theme/login/pages/select-authenticator/Page.tsx +59 -0
  205. package/keycloak-theme/login/pages/select-authenticator/index.ts +3 -0
  206. package/keycloak-theme/login/pages/terms/Page.tsx +45 -0
  207. package/keycloak-theme/login/pages/terms/index.ts +3 -0
  208. package/keycloak-theme/login/pages/update-email/Page.tsx +74 -0
  209. package/keycloak-theme/login/pages/update-email/index.ts +3 -0
  210. package/keycloak-theme/login/pages/webauthn-authenticate/Page.tsx +190 -0
  211. package/keycloak-theme/login/pages/webauthn-authenticate/index.ts +3 -0
  212. package/keycloak-theme/login/pages/webauthn-authenticate/useScript.tsx +56 -0
  213. package/keycloak-theme/login/pages/webauthn-error/Page.tsx +74 -0
  214. package/keycloak-theme/login/pages/webauthn-error/index.ts +3 -0
  215. package/keycloak-theme/login/pages/webauthn-register/Page.tsx +83 -0
  216. package/keycloak-theme/login/pages/webauthn-register/index.ts +3 -0
  217. package/keycloak-theme/login/pages/webauthn-register/useScript.tsx +64 -0
  218. package/keycloak-theme/login/styleLevelCustomization.tsx +17 -0
  219. package/keycloak-theme/public/login/css/login.css +629 -0
  220. package/keycloak-theme/public/login/img/feedback-error-arrow-down.png +0 -0
  221. package/keycloak-theme/public/login/img/feedback-error-sign.png +0 -0
  222. package/keycloak-theme/public/login/img/feedback-success-arrow-down.png +0 -0
  223. package/keycloak-theme/public/login/img/feedback-success-sign.png +0 -0
  224. package/keycloak-theme/public/login/img/feedback-warning-arrow-down.png +0 -0
  225. package/keycloak-theme/public/login/img/feedback-warning-sign.png +0 -0
  226. package/keycloak-theme/public/login/img/keycloak-bg.png +0 -0
  227. package/keycloak-theme/public/login/img/keycloak-logo-text.png +0 -0
  228. package/keycloak-theme/public/login/img/keycloak-logo.png +0 -0
  229. package/keycloak-theme/public/login/js/authChecker.js +49 -0
  230. package/keycloak-theme/public/login/js/common.js +48 -0
  231. package/keycloak-theme/public/login/js/kcMultivalued.js +106 -0
  232. package/keycloak-theme/public/login/js/kcNumberFormat.js +21 -0
  233. package/keycloak-theme/public/login/js/kcNumberUnFormat.js +19 -0
  234. package/keycloak-theme/public/login/js/menu-button-links.js +315 -0
  235. package/keycloak-theme/public/login/js/passkeysConditionalAuth.js +79 -0
  236. package/keycloak-theme/public/login/js/passwordVisibility.js +15 -0
  237. package/keycloak-theme/public/login/js/userProfile.js +71 -0
  238. package/keycloak-theme/public/login/js/webauthnAuthenticate.js +82 -0
  239. package/keycloak-theme/public/login/js/webauthnRegister.js +140 -0
  240. package/keycloak-theme/public/login/resources-common/img/favicon.ico +0 -0
  241. package/keycloak-theme/public/login/resources-common/lib/pficon/pficon.css +22 -0
  242. package/keycloak-theme/public/login/resources-common/lib/pficon/pficon.woff2 +0 -0
  243. package/keycloak-theme/public/login/resources-common/node_modules/@patternfly/patternfly/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff +0 -0
  244. package/keycloak-theme/public/login/resources-common/node_modules/@patternfly/patternfly/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff2 +0 -0
  245. package/keycloak-theme/public/login/resources-common/node_modules/@patternfly/patternfly/assets/fonts/overpass-webfont/overpass-bold.woff +0 -0
  246. package/keycloak-theme/public/login/resources-common/node_modules/@patternfly/patternfly/assets/fonts/overpass-webfont/overpass-bold.woff2 +0 -0
  247. package/keycloak-theme/public/login/resources-common/node_modules/@patternfly/patternfly/patternfly.min.css +2 -0
  248. package/keycloak-theme/public/login/resources-common/node_modules/jquery/dist/jquery.min.js +2 -0
  249. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/css/patternfly-additions.min.css +5 -0
  250. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/css/patternfly.min.css +8 -0
  251. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.ttf +0 -0
  252. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.woff +0 -0
  253. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.woff2 +0 -0
  254. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.woff2 +0 -0
  255. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.woff2 +0 -0
  256. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.woff2 +0 -0
  257. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  258. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  259. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.woff2 +0 -0
  260. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/PatternFlyIcons-webfont.ttf +0 -0
  261. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/PatternFlyIcons-webfont.woff +0 -0
  262. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/fontawesome-webfont.woff2 +0 -0
  263. package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/img/bg-login.jpg +0 -0
  264. package/keycloak-theme/public/login/resources-common/node_modules/rfc4648/lib/rfc4648.js +178 -0
  265. package/package.json +19 -0
  266. package/src/KcContext/getKcContextMock.ts +1 -0
  267. package/src/KcContext/index.ts +10 -0
  268. package/src/KcContext/useKcContext.tsx +23 -0
  269. package/src/core/KcContext/KcContext.ts +819 -0
  270. package/src/core/KcContext/getKcContextMock.ts +63 -0
  271. package/src/core/KcContext/kcContextMocks.ts +623 -0
  272. package/src/core/getKcClsx.ts +87 -0
  273. package/src/core/i18n/GenericI18n.ts +64 -0
  274. package/src/core/i18n/getI18n.tsx +427 -0
  275. package/src/core/i18n/i18nBuilder.ts +101 -0
  276. package/src/core/i18n/messages_defaultSet/ar.ts +485 -0
  277. package/src/core/i18n/messages_defaultSet/ca.ts +517 -0
  278. package/src/core/i18n/messages_defaultSet/cs.ts +494 -0
  279. package/src/core/i18n/messages_defaultSet/da.ts +356 -0
  280. package/src/core/i18n/messages_defaultSet/de.ts +543 -0
  281. package/src/core/i18n/messages_defaultSet/el.ts +512 -0
  282. package/src/core/i18n/messages_defaultSet/en.ts +528 -0
  283. package/src/core/i18n/messages_defaultSet/es.ts +525 -0
  284. package/src/core/i18n/messages_defaultSet/fa.ts +480 -0
  285. package/src/core/i18n/messages_defaultSet/fi.ts +426 -0
  286. package/src/core/i18n/messages_defaultSet/fr.ts +458 -0
  287. package/src/core/i18n/messages_defaultSet/hu.ts +512 -0
  288. package/src/core/i18n/messages_defaultSet/index.ts +73 -0
  289. package/src/core/i18n/messages_defaultSet/it.ts +366 -0
  290. package/src/core/i18n/messages_defaultSet/ja.ts +369 -0
  291. package/src/core/i18n/messages_defaultSet/ka.ts +537 -0
  292. package/src/core/i18n/messages_defaultSet/lt.ts +233 -0
  293. package/src/core/i18n/messages_defaultSet/lv.ts +229 -0
  294. package/src/core/i18n/messages_defaultSet/nl.ts +324 -0
  295. package/src/core/i18n/messages_defaultSet/no.ts +228 -0
  296. package/src/core/i18n/messages_defaultSet/pl.ts +328 -0
  297. package/src/core/i18n/messages_defaultSet/pt-BR.ts +398 -0
  298. package/src/core/i18n/messages_defaultSet/pt.ts +519 -0
  299. package/src/core/i18n/messages_defaultSet/ru.ts +259 -0
  300. package/src/core/i18n/messages_defaultSet/sk.ts +503 -0
  301. package/src/core/i18n/messages_defaultSet/sv.ts +229 -0
  302. package/src/core/i18n/messages_defaultSet/th.ts +491 -0
  303. package/src/core/i18n/messages_defaultSet/tr.ts +306 -0
  304. package/src/core/i18n/messages_defaultSet/types.ts +36 -0
  305. package/src/core/i18n/messages_defaultSet/uk.ts +517 -0
  306. package/src/core/i18n/messages_defaultSet/zh-CN.ts +462 -0
  307. package/src/core/i18n/messages_defaultSet/zh-TW.ts +471 -0
  308. package/src/core/kcClsx.ts +258 -0
  309. package/src/core/kcSanitize/HtmlPolicyBuilder.ts +242 -0
  310. package/src/core/kcSanitize/KcSanitizer.ts +60 -0
  311. package/src/core/kcSanitize/KcSanitizerPolicy.ts +274 -0
  312. package/src/core/kcSanitize/index.ts +5 -0
  313. package/src/core/userProfileApi/index.ts +1 -0
  314. package/src/core/userProfileApi/kcNumberUnFormat.ts +109 -0
  315. package/src/core/userProfileApi/userProfileApi.ts +1564 -0
  316. package/src/i18n/GenericI18n.tsx +82 -0
  317. package/src/i18n/i18nBuilder.ts +101 -0
  318. package/src/i18n/index.ts +3 -0
  319. package/src/i18n/useI18n.tsx +179 -0
  320. package/src/import.meta.env.BASE_URL.ts +52 -0
  321. package/src/kcSanitize.ts +1 -0
  322. package/src/tools/Array.prototype.every.ts +68 -0
  323. package/src/tools/DeepPartial.ts +3 -0
  324. package/src/tools/JSX.ts +5 -0
  325. package/src/tools/Object.fromEntries.ts +21 -0
  326. package/src/tools/ValueOf.ts +2 -0
  327. package/src/tools/clsx.ts +8 -0
  328. package/src/tools/clsx_withTransform.ts +55 -0
  329. package/src/tools/deepAssign.ts +74 -0
  330. package/src/tools/emailRegExp.ts +2 -0
  331. package/src/tools/extractLastParenthesisContent.ts +43 -0
  332. package/src/tools/structuredCloneButFunctions.ts +24 -0
  333. package/src/tools/useConst.ts +10 -0
  334. package/src/tools/useExclusiveAppInstanceEffect.ts +50 -0
  335. package/src/tools/useInsertLinkTags.ts +55 -0
  336. package/src/tools/useInsertScriptTags.ts +89 -0
  337. package/src/tools/useIsPasswordRevealed.ts +45 -0
  338. package/src/tools/useOnFirstMount.ts +26 -0
  339. package/src/tools/useSetClassname.ts +24 -0
  340. package/src/tools/vendor/dompurify.ts +3 -0
  341. package/src/tools/waitForElementMountedOnDom.ts +28 -0
  342. package/src/useKcClsx.tsx +33 -0
  343. package/src/useUserProfileForm.tsx +171 -0
  344. package/tools/Array.prototype.every.d.ts +0 -0
  345. package/tools/Array.prototype.every.js +59 -0
  346. package/tools/DeepPartial.d.ts +3 -0
  347. package/tools/DeepPartial.js +1 -0
  348. package/tools/JSX.d.ts +5 -0
  349. package/tools/JSX.js +1 -0
  350. package/tools/Object.fromEntries.d.ts +1 -0
  351. package/tools/Object.fromEntries.js +16 -0
  352. package/tools/ValueOf.d.ts +2 -0
  353. package/tools/ValueOf.js +1 -0
  354. package/tools/clsx.d.ts +3 -0
  355. package/tools/clsx.js +5 -0
  356. package/tools/clsx_withTransform.d.ts +5 -0
  357. package/tools/clsx_withTransform.js +42 -0
  358. package/tools/deepAssign.d.ts +5 -0
  359. package/tools/deepAssign.js +56 -0
  360. package/tools/emailRegExp.d.ts +1 -0
  361. package/tools/emailRegExp.js +1 -0
  362. package/tools/extractLastParenthesisContent.d.ts +6 -0
  363. package/tools/extractLastParenthesisContent.js +35 -0
  364. package/tools/structuredCloneButFunctions.d.ts +7 -0
  365. package/tools/structuredCloneButFunctions.js +18 -0
  366. package/tools/useConst.d.ts +5 -0
  367. package/tools/useConst.js +9 -0
  368. package/tools/useExclusiveAppInstanceEffect.d.ts +14 -0
  369. package/tools/useExclusiveAppInstanceEffect.js +29 -0
  370. package/tools/useInsertLinkTags.d.ts +12 -0
  371. package/tools/useInsertLinkTags.js +37 -0
  372. package/tools/useInsertScriptTags.d.ts +19 -0
  373. package/tools/useInsertScriptTags.js +60 -0
  374. package/tools/useIsPasswordRevealed.d.ts +10 -0
  375. package/tools/useIsPasswordRevealed.js +32 -0
  376. package/tools/useOnFirstMount.d.ts +5 -0
  377. package/tools/useOnFirstMount.js +19 -0
  378. package/tools/useSetClassname.d.ts +4 -0
  379. package/tools/useSetClassname.js +15 -0
  380. package/tools/vendor/dompurify.d.ts +2 -0
  381. package/tools/vendor/dompurify.js +2 -0
  382. package/tools/waitForElementMountedOnDom.d.ts +3 -0
  383. package/tools/waitForElementMountedOnDom.js +20 -0
  384. package/useKcClsx.d.ts +12 -0
  385. package/useKcClsx.js +20 -0
  386. package/useUserProfileForm.d.ts +65 -0
  387. package/useUserProfileForm.js +55 -0
@@ -0,0 +1 @@
1
+ export * from "../core/KcContext/getKcContextMock";
@@ -0,0 +1 @@
1
+ export * from "../core/KcContext/getKcContextMock";
@@ -0,0 +1,2 @@
1
+ export { type ExtendKcContext, type Attribute, type PasswordPolicies, type UserProfile, type Validators, type PageId, pageIds } from "../core/KcContext/KcContext";
2
+ export { createUseKcContext } from "./useKcContext";
@@ -0,0 +1,2 @@
1
+ export { pageIds } from "../core/KcContext/KcContext";
2
+ export { createUseKcContext } from "./useKcContext";
@@ -0,0 +1,10 @@
1
+ import { type ReactNode } from "react";
2
+ export declare function createUseKcContext<KcContext extends {}>(): {
3
+ useKcContext: () => {
4
+ kcContext: KcContext;
5
+ };
6
+ KcContextProvider: (props: {
7
+ kcContext: KcContext;
8
+ children: ReactNode;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ };
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { createContext, useContext } from "react";
3
+ export function createUseKcContext() {
4
+ const context = createContext(undefined);
5
+ function useKcContext() {
6
+ const kcContext = useContext(context);
7
+ if (kcContext === undefined) {
8
+ throw new Error("useKcContext must be used within a KcContextProvider");
9
+ }
10
+ return { kcContext };
11
+ }
12
+ function KcContextProvider(props) {
13
+ const { kcContext, children } = props;
14
+ return _jsx(context.Provider, { value: kcContext, children: children });
15
+ }
16
+ return { useKcContext, KcContextProvider };
17
+ }
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # Keycloakify login UI for React
2
+
3
+ > WARNING: Do not use yet, a public announcement will be made when it is ready.
4
+
5
+ This is a React port of Keycloak's default login UI (aka "the keycloak login theme").
6
+ It is meant to be used within a Keycloakify project.
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install @keycloakify/login-ui
12
+ ```
@@ -0,0 +1,605 @@
1
+ import type { ValueOf } from "../../tools/ValueOf";
2
+ import type { ClassKey } from "../kcClsx";
3
+ export type ExtendKcContext<KcContextExtension extends {
4
+ properties?: Record<string, string | undefined>;
5
+ }, KcContextExtensionPerPage extends Record<string, Record<string, unknown>>> = ValueOf<{
6
+ [PageId in keyof KcContextExtensionPerPage | KcContext["pageId"]]: Extract<KcContext, {
7
+ pageId: PageId;
8
+ }> extends never ? KcContext.Common & KcContextExtension & {
9
+ pageId: PageId;
10
+ } & KcContextExtensionPerPage[PageId] : Extract<KcContext, {
11
+ pageId: PageId;
12
+ }> & KcContextExtension & KcContextExtensionPerPage[PageId];
13
+ }>;
14
+ /** Take theses type definition with a grain of salt.
15
+ * Some values might be undefined on some pages.
16
+ * (ex: url.loginAction is undefined on error.ftl)
17
+ */
18
+ export type KcContext = KcContext.Login | KcContext.Register | KcContext.Info | KcContext.Error | KcContext.LoginResetPassword | KcContext.LoginVerifyEmail | KcContext.Terms | KcContext.LoginOauth2DeviceVerifyUserCode | KcContext.LoginOauthGrant | KcContext.LoginOtp | KcContext.LoginUsername | KcContext.WebauthnAuthenticate | KcContext.WebauthnRegister | KcContext.LoginPassword | KcContext.LoginUpdatePassword | KcContext.LoginUpdateProfile | KcContext.LoginIdpLinkConfirm | KcContext.LoginIdpLinkEmail | KcContext.LoginPageExpired | KcContext.LoginConfigTotp | KcContext.LogoutConfirm | KcContext.IdpReviewUserProfile | KcContext.UpdateEmail | KcContext.SelectAuthenticator | KcContext.SamlPostForm | KcContext.DeleteCredential | KcContext.Code | KcContext.DeleteAccountConfirm | KcContext.FrontchannelLogout | KcContext.LoginRecoveryAuthnCodeConfig | KcContext.LoginRecoveryAuthnCodeInput | KcContext.LoginResetOtp | KcContext.LoginX509Info | KcContext.WebauthnError | KcContext.LoginPasskeysConditionalAuthenticate | KcContext.LoginIdpLinkConfirmOverride;
19
+ export declare namespace KcContext {
20
+ type Common = {
21
+ themeVersion: string;
22
+ keycloakifyVersion: string;
23
+ themeType: "login";
24
+ themeName: string;
25
+ url: {
26
+ loginAction: string;
27
+ loginRestartFlowUrl: string;
28
+ loginUrl: string;
29
+ ssoLoginInOtherTabsUrl: string;
30
+ };
31
+ realm: {
32
+ name: string;
33
+ displayName: string;
34
+ displayNameHtml: string;
35
+ internationalizationEnabled: boolean;
36
+ registrationEmailAsUsername: boolean;
37
+ };
38
+ /** Undefined if !realm.internationalizationEnabled */
39
+ locale?: {
40
+ supported: {
41
+ url: string;
42
+ label: string;
43
+ languageTag: string;
44
+ }[];
45
+ currentLanguageTag: string;
46
+ rtl?: boolean;
47
+ };
48
+ auth?: {
49
+ showUsername?: boolean;
50
+ showResetCredentials?: boolean;
51
+ showTryAnotherWayLink?: boolean;
52
+ attemptedUsername?: string;
53
+ };
54
+ scripts?: string[];
55
+ message?: {
56
+ type: "success" | "warning" | "error" | "info";
57
+ summary: string;
58
+ };
59
+ client: {
60
+ clientId: string;
61
+ name?: string;
62
+ description?: string;
63
+ attributes: Record<string, string>;
64
+ };
65
+ isAppInitiatedAction?: boolean;
66
+ messagesPerField: {
67
+ /**
68
+ * Return text if message for given field exists. Useful eg. to add css styles for fields with message.
69
+ *
70
+ * @param fieldName to check for
71
+ * @param text to return
72
+ * @return text if message exists for given field, else undefined
73
+ */
74
+ printIfExists: <T extends string>(fieldName: string, text: T) => T | undefined;
75
+ /**
76
+ * Check if exists error message for given fields
77
+ *
78
+ * @param fields
79
+ * @return boolean
80
+ */
81
+ existsError: (fieldName: string, ...otherFiledNames: string[]) => boolean;
82
+ /**
83
+ * Get message for given field.
84
+ *
85
+ * @param fieldName
86
+ * @return message text or empty string
87
+ */
88
+ get: (fieldName: string) => string;
89
+ /**
90
+ * Check if message for given field exists
91
+ *
92
+ * @param field
93
+ * @return boolean
94
+ */
95
+ exists: (fieldName: string) => boolean;
96
+ getFirstError: (...fieldNames: string[]) => string;
97
+ };
98
+ properties: {};
99
+ "x-keycloakify": {
100
+ messages: Record<string, string>;
101
+ };
102
+ };
103
+ type SamlPostForm = Common & {
104
+ pageId: "saml-post-form.ftl";
105
+ samlPost: {
106
+ url: string;
107
+ SAMLRequest?: string;
108
+ SAMLResponse?: string;
109
+ relayState?: string;
110
+ };
111
+ };
112
+ type Login = Common & {
113
+ pageId: "login.ftl";
114
+ url: {
115
+ loginResetCredentialsUrl: string;
116
+ registrationUrl: string;
117
+ };
118
+ realm: {
119
+ loginWithEmailAllowed: boolean;
120
+ rememberMe: boolean;
121
+ password: boolean;
122
+ resetPasswordAllowed: boolean;
123
+ registrationAllowed: boolean;
124
+ };
125
+ auth: {
126
+ selectedCredential?: string;
127
+ };
128
+ registrationDisabled: boolean;
129
+ login: {
130
+ username?: string;
131
+ rememberMe?: string;
132
+ password?: string;
133
+ };
134
+ usernameHidden?: boolean;
135
+ social?: {
136
+ displayInfo: boolean;
137
+ providers?: {
138
+ loginUrl: string;
139
+ alias: string;
140
+ providerId: string;
141
+ displayName: string;
142
+ iconClasses?: string;
143
+ }[];
144
+ };
145
+ };
146
+ type Register = Common & {
147
+ pageId: "register.ftl";
148
+ profile: UserProfile;
149
+ passwordPolicies?: PasswordPolicies;
150
+ url: {
151
+ registrationAction: string;
152
+ };
153
+ passwordRequired: boolean;
154
+ recaptchaRequired?: boolean;
155
+ recaptchaVisible?: boolean;
156
+ recaptchaSiteKey?: string;
157
+ recaptchaAction?: string;
158
+ termsAcceptanceRequired?: boolean;
159
+ messageHeader?: string;
160
+ social?: Login["social"];
161
+ };
162
+ type Info = Common & {
163
+ pageId: "info.ftl";
164
+ messageHeader?: string;
165
+ requiredActions?: string[];
166
+ skipLink: boolean;
167
+ pageRedirectUri?: string;
168
+ actionUri?: string;
169
+ client: {
170
+ baseUrl?: string;
171
+ };
172
+ message: NonNullable<Common["message"]>;
173
+ };
174
+ type Error = Common & {
175
+ pageId: "error.ftl";
176
+ client?: {
177
+ baseUrl?: string;
178
+ };
179
+ message: NonNullable<Common["message"]>;
180
+ skipLink?: boolean;
181
+ };
182
+ type LoginResetPassword = Common & {
183
+ pageId: "login-reset-password.ftl";
184
+ realm: {
185
+ loginWithEmailAllowed: boolean;
186
+ duplicateEmailsAllowed: boolean;
187
+ };
188
+ url: {
189
+ loginResetCredentialsUrl: string;
190
+ };
191
+ auth: {
192
+ attemptedUsername?: string;
193
+ };
194
+ };
195
+ type LoginVerifyEmail = Common & {
196
+ pageId: "login-verify-email.ftl";
197
+ user?: {
198
+ email: string;
199
+ };
200
+ };
201
+ type Terms = Common & {
202
+ pageId: "terms.ftl";
203
+ user?: {
204
+ id: string;
205
+ username: string;
206
+ attributes: Record<string, string[]>;
207
+ email: string;
208
+ emailVerified: boolean;
209
+ firstName?: string;
210
+ lastName?: string;
211
+ markedForEviction?: boolean;
212
+ };
213
+ __localizationRealmOverridesTermsText?: string;
214
+ };
215
+ type LoginOauth2DeviceVerifyUserCode = Common & {
216
+ pageId: "login-oauth2-device-verify-user-code.ftl";
217
+ url: {
218
+ oauth2DeviceVerificationAction: string;
219
+ };
220
+ };
221
+ type LoginOauthGrant = Common & {
222
+ pageId: "login-oauth-grant.ftl";
223
+ oauth: {
224
+ code: string;
225
+ client: string;
226
+ clientScopesRequested: {
227
+ consentScreenText: string;
228
+ dynamicScopeParameter?: string;
229
+ }[];
230
+ };
231
+ url: {
232
+ oauthAction: string;
233
+ };
234
+ };
235
+ type LoginOtp = Common & {
236
+ pageId: "login-otp.ftl";
237
+ otpLogin: {
238
+ userOtpCredentials: {
239
+ id: string;
240
+ userLabel: string;
241
+ }[];
242
+ selectedCredentialId?: string;
243
+ };
244
+ };
245
+ type LoginUsername = Common & {
246
+ pageId: "login-username.ftl";
247
+ url: {
248
+ loginResetCredentialsUrl: string;
249
+ registrationUrl: string;
250
+ };
251
+ realm: {
252
+ loginWithEmailAllowed: boolean;
253
+ rememberMe: boolean;
254
+ password: boolean;
255
+ resetPasswordAllowed: boolean;
256
+ registrationAllowed: boolean;
257
+ };
258
+ registrationDisabled: boolean;
259
+ login: {
260
+ username?: string;
261
+ rememberMe?: string;
262
+ };
263
+ usernameHidden?: boolean;
264
+ social?: Login["social"];
265
+ };
266
+ type LoginPassword = Common & {
267
+ pageId: "login-password.ftl";
268
+ url: {
269
+ loginResetCredentialsUrl: string;
270
+ registrationUrl: string;
271
+ };
272
+ realm: {
273
+ resetPasswordAllowed: boolean;
274
+ };
275
+ auth?: {
276
+ showUsername?: boolean;
277
+ showResetCredentials?: boolean;
278
+ showTryAnotherWayLink?: boolean;
279
+ attemptedUsername?: string;
280
+ };
281
+ };
282
+ type WebauthnAuthenticate = Common & {
283
+ pageId: "webauthn-authenticate.ftl";
284
+ authenticators: {
285
+ authenticators: WebauthnAuthenticate.WebauthnAuthenticator[];
286
+ };
287
+ challenge: string;
288
+ userVerification: UserVerificationRequirement | "not specified";
289
+ rpId: string;
290
+ createTimeout: string | number;
291
+ isUserIdentified: "true" | "false";
292
+ shouldDisplayAuthenticators: boolean;
293
+ realm: {
294
+ password: boolean;
295
+ registrationAllowed: boolean;
296
+ };
297
+ registrationDisabled?: boolean;
298
+ url: {
299
+ registrationUrl?: string;
300
+ };
301
+ };
302
+ namespace WebauthnAuthenticate {
303
+ type WebauthnAuthenticator = {
304
+ credentialId: string;
305
+ transports: {
306
+ iconClass: string;
307
+ displayNameProperties?: string[];
308
+ };
309
+ label: string;
310
+ createdAt: string;
311
+ };
312
+ }
313
+ type WebauthnRegister = Common & {
314
+ pageId: "webauthn-register.ftl";
315
+ challenge: string;
316
+ userid: string;
317
+ username: string;
318
+ signatureAlgorithms: string[];
319
+ rpEntityName: string;
320
+ rpId: string;
321
+ attestationConveyancePreference: string;
322
+ authenticatorAttachment: string;
323
+ requireResidentKey: string;
324
+ userVerificationRequirement: string;
325
+ createTimeout: number | string;
326
+ excludeCredentialIds: string;
327
+ isSetRetry?: boolean;
328
+ isAppInitiatedAction?: boolean;
329
+ };
330
+ type LoginUpdatePassword = Common & {
331
+ pageId: "login-update-password.ftl";
332
+ };
333
+ type LoginIdpLinkConfirm = Common & {
334
+ pageId: "login-idp-link-confirm.ftl";
335
+ idpAlias: string;
336
+ };
337
+ type LoginIdpLinkEmail = Common & {
338
+ pageId: "login-idp-link-email.ftl";
339
+ brokerContext: {
340
+ username: string;
341
+ };
342
+ idpAlias: string;
343
+ };
344
+ type LoginPageExpired = Common & {
345
+ pageId: "login-page-expired.ftl";
346
+ };
347
+ type LoginConfigTotp = Common & {
348
+ pageId: "login-config-totp.ftl";
349
+ mode?: "qr" | "manual" | undefined | null;
350
+ totp: {
351
+ totpSecretEncoded: string;
352
+ qrUrl: string;
353
+ policy: {
354
+ algorithm: "HmacSHA1" | "HmacSHA256" | "HmacSHA512";
355
+ digits: number;
356
+ lookAheadWindow: number;
357
+ getAlgorithmKey: () => string;
358
+ } & ({
359
+ type: "totp";
360
+ period: number;
361
+ } | {
362
+ type: "hotp";
363
+ initialCounter: number;
364
+ });
365
+ supportedApplications: string[];
366
+ totpSecretQrCode: string;
367
+ manualUrl: string;
368
+ totpSecret: string;
369
+ otpCredentials: {
370
+ id: string;
371
+ userLabel: string;
372
+ }[];
373
+ };
374
+ };
375
+ type LogoutConfirm = Common & {
376
+ pageId: "logout-confirm.ftl";
377
+ url: {
378
+ logoutConfirmAction: string;
379
+ };
380
+ client: {
381
+ baseUrl?: string;
382
+ };
383
+ logoutConfirm: {
384
+ code: string;
385
+ skipLink?: boolean;
386
+ };
387
+ };
388
+ type LoginUpdateProfile = Common & {
389
+ pageId: "login-update-profile.ftl";
390
+ profile: UserProfile;
391
+ passwordPolicies?: PasswordPolicies;
392
+ };
393
+ type IdpReviewUserProfile = Common & {
394
+ pageId: "idp-review-user-profile.ftl";
395
+ profile: UserProfile;
396
+ passwordPolicies?: PasswordPolicies;
397
+ };
398
+ type UpdateEmail = Common & {
399
+ pageId: "update-email.ftl";
400
+ profile: UserProfile;
401
+ passwordPolicies?: PasswordPolicies;
402
+ };
403
+ type SelectAuthenticator = Common & {
404
+ pageId: "select-authenticator.ftl";
405
+ auth: {
406
+ authenticationSelections: SelectAuthenticator.AuthenticationSelection[];
407
+ };
408
+ };
409
+ namespace SelectAuthenticator {
410
+ type AuthenticationSelection = {
411
+ authExecId: string;
412
+ displayName: string;
413
+ helpText: string;
414
+ iconCssClass?: ClassKey;
415
+ };
416
+ }
417
+ type DeleteCredential = Common & {
418
+ pageId: "delete-credential.ftl";
419
+ credentialLabel: string;
420
+ };
421
+ type Code = Common & {
422
+ pageId: "code.ftl";
423
+ code: {
424
+ success: boolean;
425
+ code?: string;
426
+ error?: string;
427
+ };
428
+ };
429
+ type DeleteAccountConfirm = Common & {
430
+ pageId: "delete-account-confirm.ftl";
431
+ triggered_from_aia: boolean;
432
+ };
433
+ type FrontchannelLogout = Common & {
434
+ pageId: "frontchannel-logout.ftl";
435
+ logout: {
436
+ clients: {
437
+ name: string;
438
+ frontChannelLogoutUrl: string;
439
+ }[];
440
+ logoutRedirectUri?: string;
441
+ };
442
+ };
443
+ type LoginRecoveryAuthnCodeConfig = Common & {
444
+ pageId: "login-recovery-authn-code-config.ftl";
445
+ recoveryAuthnCodesConfigBean: {
446
+ generatedRecoveryAuthnCodesList: string[];
447
+ generatedRecoveryAuthnCodesAsString: string;
448
+ generatedAt: number;
449
+ };
450
+ };
451
+ type LoginRecoveryAuthnCodeInput = Common & {
452
+ pageId: "login-recovery-authn-code-input.ftl";
453
+ recoveryAuthnCodesInputBean: {
454
+ codeNumber: number;
455
+ };
456
+ };
457
+ type LoginResetOtp = Common & {
458
+ pageId: "login-reset-otp.ftl";
459
+ configuredOtpCredentials: {
460
+ userOtpCredentials: {
461
+ id: string;
462
+ userLabel: string;
463
+ }[];
464
+ selectedCredentialId: string;
465
+ };
466
+ };
467
+ type LoginX509Info = Common & {
468
+ pageId: "login-x509-info.ftl";
469
+ x509: {
470
+ formData: {
471
+ subjectDN?: string;
472
+ isUserEnabled?: boolean;
473
+ username?: string;
474
+ };
475
+ };
476
+ };
477
+ type WebauthnError = Common & {
478
+ pageId: "webauthn-error.ftl";
479
+ isAppInitiatedAction?: boolean;
480
+ };
481
+ type LoginPasskeysConditionalAuthenticate = Common & {
482
+ pageId: "login-passkeys-conditional-authenticate.ftl";
483
+ realm: {
484
+ registrationAllowed: boolean;
485
+ password: boolean;
486
+ };
487
+ url: {
488
+ registrationUrl: string;
489
+ };
490
+ registrationDisabled?: boolean;
491
+ isUserIdentified: boolean | "true" | "false";
492
+ challenge: string;
493
+ userVerification: string;
494
+ rpId: string;
495
+ createTimeout: number | string;
496
+ authenticators?: {
497
+ authenticators: WebauthnAuthenticate.WebauthnAuthenticator[];
498
+ };
499
+ shouldDisplayAuthenticators?: boolean;
500
+ usernameHidden?: boolean;
501
+ login: {
502
+ username?: string;
503
+ };
504
+ };
505
+ type LoginIdpLinkConfirmOverride = Common & {
506
+ pageId: "login-idp-link-confirm-override.ftl";
507
+ url: {
508
+ loginRestartFlowUrl: string;
509
+ };
510
+ idpDisplayName: string;
511
+ };
512
+ }
513
+ export type PageId = KcContext["pageId"];
514
+ export declare const pageIds: readonly ["login.ftl", "register.ftl", "info.ftl", "error.ftl", "login-reset-password.ftl", "login-verify-email.ftl", "terms.ftl", "login-oauth2-device-verify-user-code.ftl", "webauthn-error.ftl", "login-passkeys-conditional-authenticate.ftl", "login-idp-link-confirm-override.ftl", "saml-post-form.ftl", "login-oauth-grant.ftl", "login-otp.ftl", "login-username.ftl", "login-password.ftl", "webauthn-authenticate.ftl", "webauthn-register.ftl", "login-update-password.ftl", "login-x509-info.ftl", "login-idp-link-confirm.ftl", "login-idp-link-email.ftl", "login-page-expired.ftl", "login-config-totp.ftl", "logout-confirm.ftl", "login-update-profile.ftl", "idp-review-user-profile.ftl", "update-email.ftl", "select-authenticator.ftl", "delete-credential.ftl", "code.ftl", "delete-account-confirm.ftl", "frontchannel-logout.ftl", "login-recovery-authn-code-config.ftl", "login-recovery-authn-code-input.ftl", "login-reset-otp.ftl"];
515
+ export type UserProfile = {
516
+ attributesByName: Record<string, Attribute>;
517
+ html5DataAnnotations?: Record<string, string>;
518
+ };
519
+ export type Attribute = {
520
+ name: string;
521
+ displayName?: string;
522
+ required: boolean;
523
+ value?: string;
524
+ values?: string[];
525
+ group?: {
526
+ annotations: Record<string, string>;
527
+ html5DataAnnotations: Record<string, string>;
528
+ displayHeader?: string;
529
+ name: string;
530
+ displayDescription?: string;
531
+ };
532
+ html5DataAnnotations?: {
533
+ kcNumberFormat?: string;
534
+ kcNumberUnFormat?: string;
535
+ };
536
+ readOnly: boolean;
537
+ validators: Validators;
538
+ annotations: {
539
+ inputType?: string;
540
+ inputTypeSize?: `${number}` | number;
541
+ inputOptionsFromValidation?: string;
542
+ inputOptionLabels?: Record<string, string | undefined>;
543
+ inputOptionLabelsI18nPrefix?: string;
544
+ inputTypeCols?: `${number}` | number;
545
+ inputTypeRows?: `${number}` | number;
546
+ inputTypeMaxlength?: `${number}` | number;
547
+ inputHelperTextBefore?: string;
548
+ inputHelperTextAfter?: string;
549
+ inputTypePlaceholder?: string;
550
+ inputTypePattern?: string;
551
+ inputTypeMinlength?: `${number}` | number;
552
+ inputTypeMax?: string;
553
+ inputTypeMin?: string;
554
+ inputTypeStep?: string;
555
+ };
556
+ multivalued?: boolean;
557
+ autocomplete?: "on" | "off" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo";
558
+ };
559
+ export type Validators = {
560
+ length?: Validators.DoIgnoreEmpty & Validators.Range;
561
+ integer?: Validators.DoIgnoreEmpty & Validators.Range;
562
+ email?: Validators.DoIgnoreEmpty;
563
+ pattern?: Validators.DoIgnoreEmpty & Validators.ErrorMessage & {
564
+ pattern: string;
565
+ };
566
+ options?: Validators.Options;
567
+ multivalued?: Validators.DoIgnoreEmpty & Validators.Range;
568
+ };
569
+ export declare namespace Validators {
570
+ type DoIgnoreEmpty = {
571
+ "ignore.empty.value"?: boolean;
572
+ };
573
+ type ErrorMessage = {
574
+ "error-message"?: string;
575
+ };
576
+ type Range = {
577
+ min?: `${number}` | number;
578
+ max?: `${number}` | number;
579
+ };
580
+ type Options = {
581
+ options: string[];
582
+ };
583
+ }
584
+ /**
585
+ * Theses values are added by: https://github.com/jcputney/keycloak-theme-additional-info-extension
586
+ * A Keycloak Java extension used as dependency in Keycloakify.
587
+ */
588
+ export type PasswordPolicies = {
589
+ /** The minimum length of the password */
590
+ length?: number;
591
+ /** The maximum length of the password */
592
+ maxLength?: number;
593
+ /** The minimum number of digits required in the password */
594
+ digits?: number;
595
+ /** The minimum number of lowercase characters required in the password */
596
+ lowerCase?: number;
597
+ /** The minimum number of uppercase characters required in the password */
598
+ upperCase?: number;
599
+ /** The minimum number of special characters required in the password */
600
+ specialChars?: number;
601
+ /** Whether the password can be the username */
602
+ notUsername?: boolean;
603
+ /** Whether the password can be the email address */
604
+ notEmail?: boolean;
605
+ };