@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,78 @@
1
+ import { kcSanitize } from "@keycloakify/login-ui/kcSanitize";
2
+ import { assert } from "tsafe/assert";
3
+ import { useKcContext } from "../../KcContext";
4
+ import { useI18n } from "../../i18n";
5
+ import { useKcClsx } from "@keycloakify/login-ui/useKcClsx";
6
+
7
+ export function Form() {
8
+ const { kcContext } = useKcContext();
9
+ assert(kcContext.pageId === "login-reset-password.ftl");
10
+
11
+ const { kcClsx } = useKcClsx();
12
+
13
+ const { msg, msgStr } = useI18n();
14
+
15
+ return (
16
+ <form
17
+ id="kc-reset-password-form"
18
+ className={kcClsx("kcFormClass")}
19
+ action={kcContext.url.loginAction}
20
+ method="post"
21
+ >
22
+ <div className={kcClsx("kcFormGroupClass")}>
23
+ <div className={kcClsx("kcLabelWrapperClass")}>
24
+ <label htmlFor="username" className={kcClsx("kcLabelClass")}>
25
+ {!kcContext.realm.loginWithEmailAllowed
26
+ ? msg("username")
27
+ : !kcContext.realm.registrationEmailAsUsername
28
+ ? msg("usernameOrEmail")
29
+ : msg("email")}
30
+ </label>
31
+ </div>
32
+ <div className={kcClsx("kcInputWrapperClass")}>
33
+ <input
34
+ type="text"
35
+ id="username"
36
+ name="username"
37
+ className={kcClsx("kcInputClass")}
38
+ autoFocus
39
+ defaultValue={kcContext.auth.attemptedUsername ?? ""}
40
+ aria-invalid={kcContext.messagesPerField.existsError("username")}
41
+ />
42
+ {kcContext.messagesPerField.existsError("username") && (
43
+ <span
44
+ id="input-error-username"
45
+ className={kcClsx("kcInputErrorMessageClass")}
46
+ aria-live="polite"
47
+ dangerouslySetInnerHTML={{
48
+ __html: kcSanitize(kcContext.messagesPerField.get("username"))
49
+ }}
50
+ />
51
+ )}
52
+ </div>
53
+ </div>
54
+ <div className={kcClsx("kcFormGroupClass", "kcFormSettingClass")}>
55
+ <div id="kc-form-options" className={kcClsx("kcFormOptionsClass")}>
56
+ <div className={kcClsx("kcFormOptionsWrapperClass")}>
57
+ <span>
58
+ <a href={kcContext.url.loginUrl}>{msg("backToLogin")}</a>
59
+ </span>
60
+ </div>
61
+ </div>
62
+
63
+ <div id="kc-form-buttons" className={kcClsx("kcFormButtonsClass")}>
64
+ <input
65
+ className={kcClsx(
66
+ "kcButtonClass",
67
+ "kcButtonPrimaryClass",
68
+ "kcButtonBlockClass",
69
+ "kcButtonLargeClass"
70
+ )}
71
+ type="submit"
72
+ value={msgStr("doSubmit")}
73
+ />
74
+ </div>
75
+ </div>
76
+ </form>
77
+ );
78
+ }
@@ -0,0 +1,27 @@
1
+ import { assert } from "tsafe/assert";
2
+ import { useKcContext } from "../../KcContext";
3
+ import { useI18n } from "../../i18n";
4
+ import { Template } from "../../components/Template";
5
+ import { Form } from "./Form";
6
+
7
+ export function Page() {
8
+ const { kcContext } = useKcContext();
9
+ assert(kcContext.pageId === "login-reset-password.ftl");
10
+
11
+ const { msg } = useI18n();
12
+
13
+ return (
14
+ <Template
15
+ displayInfo
16
+ displayMessage={!kcContext.messagesPerField.existsError("username")}
17
+ infoNode={
18
+ kcContext.realm.duplicateEmailsAllowed
19
+ ? msg("emailInstructionUsername")
20
+ : msg("emailInstruction")
21
+ }
22
+ headerNode={msg("emailForgotTitle")}
23
+ >
24
+ <Form />
25
+ </Template>
26
+ );
27
+ }
@@ -0,0 +1,3 @@
1
+ import { Page } from "./Page";
2
+
3
+ export default Page;
@@ -0,0 +1,132 @@
1
+ import { assert } from "tsafe/assert";
2
+ import { kcSanitize } from "@keycloakify/login-ui/kcSanitize";
3
+ import { useKcClsx } from "@keycloakify/login-ui/useKcClsx";
4
+ import { useKcContext } from "../../KcContext";
5
+ import { useI18n } from "../../i18n";
6
+ import { Template } from "../../components/Template";
7
+ import { PasswordWrapper } from "../../components/PasswordWrapper";
8
+ import { LogoutOtherSessions } from "../../components/LogoutOtherSessions";
9
+
10
+ export function Page() {
11
+ const { kcContext } = useKcContext();
12
+ assert(kcContext.pageId === "login-update-password.ftl");
13
+
14
+ const { kcClsx } = useKcClsx();
15
+
16
+ const { msg, msgStr } = useI18n();
17
+
18
+ const { url, messagesPerField, isAppInitiatedAction } = kcContext;
19
+
20
+ return (
21
+ <Template
22
+ displayMessage={!messagesPerField.existsError("password", "password-confirm")}
23
+ headerNode={msg("updatePasswordTitle")}
24
+ >
25
+ <form
26
+ id="kc-passwd-update-form"
27
+ className={kcClsx("kcFormClass")}
28
+ action={url.loginAction}
29
+ method="post"
30
+ >
31
+ <div className={kcClsx("kcFormGroupClass")}>
32
+ <div className={kcClsx("kcLabelWrapperClass")}>
33
+ <label htmlFor="password-new" className={kcClsx("kcLabelClass")}>
34
+ {msg("passwordNew")}
35
+ </label>
36
+ </div>
37
+ <div className={kcClsx("kcInputWrapperClass")}>
38
+ <PasswordWrapper passwordInputId="password-new">
39
+ <input
40
+ type="password"
41
+ id="password-new"
42
+ name="password-new"
43
+ className={kcClsx("kcInputClass")}
44
+ autoFocus
45
+ autoComplete="new-password"
46
+ aria-invalid={messagesPerField.existsError(
47
+ "password",
48
+ "password-confirm"
49
+ )}
50
+ />
51
+ </PasswordWrapper>
52
+
53
+ {messagesPerField.existsError("password") && (
54
+ <span
55
+ id="input-error-password"
56
+ className={kcClsx("kcInputErrorMessageClass")}
57
+ aria-live="polite"
58
+ dangerouslySetInnerHTML={{
59
+ __html: kcSanitize(messagesPerField.get("password"))
60
+ }}
61
+ />
62
+ )}
63
+ </div>
64
+ </div>
65
+
66
+ <div className={kcClsx("kcFormGroupClass")}>
67
+ <div className={kcClsx("kcLabelWrapperClass")}>
68
+ <label htmlFor="password-confirm" className={kcClsx("kcLabelClass")}>
69
+ {msg("passwordConfirm")}
70
+ </label>
71
+ </div>
72
+ <div className={kcClsx("kcInputWrapperClass")}>
73
+ <PasswordWrapper passwordInputId="password-confirm">
74
+ <input
75
+ type="password"
76
+ id="password-confirm"
77
+ name="password-confirm"
78
+ className={kcClsx("kcInputClass")}
79
+ autoFocus
80
+ autoComplete="new-password"
81
+ aria-invalid={messagesPerField.existsError(
82
+ "password",
83
+ "password-confirm"
84
+ )}
85
+ />
86
+ </PasswordWrapper>
87
+
88
+ {messagesPerField.existsError("password-confirm") && (
89
+ <span
90
+ id="input-error-password-confirm"
91
+ className={kcClsx("kcInputErrorMessageClass")}
92
+ aria-live="polite"
93
+ dangerouslySetInnerHTML={{
94
+ __html: kcSanitize(messagesPerField.get("password-confirm"))
95
+ }}
96
+ />
97
+ )}
98
+ </div>
99
+ </div>
100
+ <div className={kcClsx("kcFormGroupClass")}>
101
+ <LogoutOtherSessions />
102
+ <div id="kc-form-buttons" className={kcClsx("kcFormButtonsClass")}>
103
+ <input
104
+ className={kcClsx(
105
+ "kcButtonClass",
106
+ "kcButtonPrimaryClass",
107
+ !isAppInitiatedAction && "kcButtonBlockClass",
108
+ "kcButtonLargeClass"
109
+ )}
110
+ type="submit"
111
+ value={msgStr("doSubmit")}
112
+ />
113
+ {isAppInitiatedAction && (
114
+ <button
115
+ className={kcClsx(
116
+ "kcButtonClass",
117
+ "kcButtonDefaultClass",
118
+ "kcButtonLargeClass"
119
+ )}
120
+ type="submit"
121
+ name="cancel-aia"
122
+ value="true"
123
+ >
124
+ {msg("doCancel")}
125
+ </button>
126
+ )}
127
+ </div>
128
+ </div>
129
+ </form>
130
+ </Template>
131
+ );
132
+ }
@@ -0,0 +1,3 @@
1
+ import { Page } from "./Page";
2
+
3
+ export default Page;
@@ -0,0 +1,70 @@
1
+ import { assert } from "tsafe/assert";
2
+ import { useState } from "react";
3
+ import { useKcClsx } from "@keycloakify/login-ui/useKcClsx";
4
+ import { useKcContext } from "../../KcContext";
5
+ import { useI18n } from "../../i18n";
6
+ import { Template } from "../../components/Template";
7
+ import { UserProfileFormFields } from "../../components/UserProfileFormFields";
8
+
9
+ export function Page() {
10
+ const { kcContext } = useKcContext();
11
+ assert(kcContext.pageId === "login-update-profile.ftl");
12
+
13
+ const { kcClsx } = useKcClsx();
14
+
15
+ const { messagesPerField, url, isAppInitiatedAction } = kcContext;
16
+
17
+ const { msg, msgStr } = useI18n();
18
+
19
+ const [isFormSubmittable, setIsFormSubmittable] = useState(false);
20
+
21
+ return (
22
+ <Template
23
+ displayRequiredFields
24
+ headerNode={msg("loginProfileTitle")}
25
+ displayMessage={messagesPerField.exists("global")}
26
+ >
27
+ <form
28
+ id="kc-update-profile-form"
29
+ className={kcClsx("kcFormClass")}
30
+ action={url.loginAction}
31
+ method="post"
32
+ >
33
+ <UserProfileFormFields onIsFormSubmittableValueChange={setIsFormSubmittable} />
34
+ <div className={kcClsx("kcFormGroupClass")}>
35
+ <div id="kc-form-options" className={kcClsx("kcFormOptionsClass")}>
36
+ <div className={kcClsx("kcFormOptionsWrapperClass")} />
37
+ </div>
38
+ <div id="kc-form-buttons" className={kcClsx("kcFormButtonsClass")}>
39
+ <input
40
+ disabled={!isFormSubmittable}
41
+ className={kcClsx(
42
+ "kcButtonClass",
43
+ "kcButtonPrimaryClass",
44
+ !isAppInitiatedAction && "kcButtonBlockClass",
45
+ "kcButtonLargeClass"
46
+ )}
47
+ type="submit"
48
+ value={msgStr("doSubmit")}
49
+ />
50
+ {isAppInitiatedAction && (
51
+ <button
52
+ className={kcClsx(
53
+ "kcButtonClass",
54
+ "kcButtonDefaultClass",
55
+ "kcButtonLargeClass"
56
+ )}
57
+ type="submit"
58
+ name="cancel-aia"
59
+ value="true"
60
+ formNoValidate
61
+ >
62
+ {msg("doCancel")}
63
+ </button>
64
+ )}
65
+ </div>
66
+ </div>
67
+ </form>
68
+ </Template>
69
+ );
70
+ }
@@ -0,0 +1,3 @@
1
+ import { Page } from "./Page";
2
+
3
+ export default Page;
@@ -0,0 +1,176 @@
1
+ import { assert } from "tsafe/assert";
2
+ import { useState } from "react";
3
+ import { clsx } from "@keycloakify/login-ui/tools/clsx";
4
+ import { useKcClsx } from "@keycloakify/login-ui/useKcClsx";
5
+ import { useKcContext } from "../../KcContext";
6
+ import { useI18n } from "../../i18n";
7
+ import { Template } from "../../components/Template";
8
+
9
+ export function Page() {
10
+ const { kcContext } = useKcContext();
11
+ assert(kcContext.pageId === "login-username.ftl");
12
+
13
+ const { kcClsx } = useKcClsx();
14
+
15
+ const { social, realm, url, usernameHidden, login, registrationDisabled, messagesPerField } =
16
+ kcContext;
17
+
18
+ const { msg, msgStr } = useI18n();
19
+
20
+ const [isLoginButtonDisabled, setIsLoginButtonDisabled] = useState(false);
21
+
22
+ return (
23
+ <Template
24
+ displayMessage={!messagesPerField.existsError("username")}
25
+ displayInfo={realm.password && realm.registrationAllowed && !registrationDisabled}
26
+ infoNode={
27
+ <div id="kc-registration">
28
+ <span>
29
+ {msg("noAccount")}
30
+ <a tabIndex={6} href={url.registrationUrl}>
31
+ {msg("doRegister")}
32
+ </a>
33
+ </span>
34
+ </div>
35
+ }
36
+ headerNode={msg("doLogIn")}
37
+ socialProvidersNode={
38
+ <>
39
+ {realm.password &&
40
+ social?.providers !== undefined &&
41
+ social.providers.length !== 0 && (
42
+ <div
43
+ id="kc-social-providers"
44
+ className={kcClsx("kcFormSocialAccountSectionClass")}
45
+ >
46
+ <hr />
47
+ <h2>{msg("identity-provider-login-label")}</h2>
48
+ <ul
49
+ className={kcClsx(
50
+ "kcFormSocialAccountListClass",
51
+ social.providers.length > 3 && "kcFormSocialAccountListGridClass"
52
+ )}
53
+ >
54
+ {social.providers.map((...[p, , providers]) => (
55
+ <li key={p.alias}>
56
+ <a
57
+ id={`social-${p.alias}`}
58
+ className={kcClsx(
59
+ "kcFormSocialAccountListButtonClass",
60
+ providers.length > 3 && "kcFormSocialAccountGridItem"
61
+ )}
62
+ type="button"
63
+ href={p.loginUrl}
64
+ >
65
+ {p.iconClasses && (
66
+ <i
67
+ className={clsx(
68
+ kcClsx("kcCommonLogoIdP"),
69
+ p.iconClasses
70
+ )}
71
+ aria-hidden="true"
72
+ ></i>
73
+ )}
74
+ <span
75
+ className={clsx(
76
+ kcClsx("kcFormSocialAccountNameClass"),
77
+ p.iconClasses && "kc-social-icon-text"
78
+ )}
79
+ >
80
+ {p.displayName}
81
+ </span>
82
+ </a>
83
+ </li>
84
+ ))}
85
+ </ul>
86
+ </div>
87
+ )}
88
+ </>
89
+ }
90
+ >
91
+ <div id="kc-form">
92
+ <div id="kc-form-wrapper">
93
+ {realm.password && (
94
+ <form
95
+ id="kc-form-login"
96
+ onSubmit={() => {
97
+ setIsLoginButtonDisabled(true);
98
+ return true;
99
+ }}
100
+ action={url.loginAction}
101
+ method="post"
102
+ >
103
+ {!usernameHidden && (
104
+ <div className={kcClsx("kcFormGroupClass")}>
105
+ <label htmlFor="username" className={kcClsx("kcLabelClass")}>
106
+ {!realm.loginWithEmailAllowed
107
+ ? msg("username")
108
+ : !realm.registrationEmailAsUsername
109
+ ? msg("usernameOrEmail")
110
+ : msg("email")}
111
+ </label>
112
+ <input
113
+ tabIndex={2}
114
+ id="username"
115
+ className={kcClsx("kcInputClass")}
116
+ name="username"
117
+ defaultValue={login.username ?? ""}
118
+ type="text"
119
+ autoFocus
120
+ autoComplete="username"
121
+ aria-invalid={messagesPerField.existsError("username")}
122
+ />
123
+ {messagesPerField.existsError("username") && (
124
+ <span
125
+ id="input-error"
126
+ className={kcClsx("kcInputErrorMessageClass")}
127
+ aria-live="polite"
128
+ >
129
+ {messagesPerField.getFirstError("username")}
130
+ </span>
131
+ )}
132
+ </div>
133
+ )}
134
+
135
+ <div className={kcClsx("kcFormGroupClass", "kcFormSettingClass")}>
136
+ <div id="kc-form-options">
137
+ {realm.rememberMe && !usernameHidden && (
138
+ <div className="checkbox">
139
+ <label>
140
+ <input
141
+ tabIndex={3}
142
+ id="rememberMe"
143
+ name="rememberMe"
144
+ type="checkbox"
145
+ defaultChecked={!!login.rememberMe}
146
+ />{" "}
147
+ {msg("rememberMe")}
148
+ </label>
149
+ </div>
150
+ )}
151
+ </div>
152
+ </div>
153
+
154
+ <div id="kc-form-buttons" className={kcClsx("kcFormGroupClass")}>
155
+ <input
156
+ tabIndex={4}
157
+ disabled={isLoginButtonDisabled}
158
+ className={kcClsx(
159
+ "kcButtonClass",
160
+ "kcButtonPrimaryClass",
161
+ "kcButtonBlockClass",
162
+ "kcButtonLargeClass"
163
+ )}
164
+ name="login"
165
+ id="kc-login"
166
+ type="submit"
167
+ value={msgStr("doLogIn")}
168
+ />
169
+ </div>
170
+ </form>
171
+ )}
172
+ </div>
173
+ </div>
174
+ </Template>
175
+ );
176
+ }
@@ -0,0 +1,3 @@
1
+ import { Page } from "./Page";
2
+
3
+ export default Page;
@@ -0,0 +1,31 @@
1
+ import { assert } from "tsafe/assert";
2
+ import { useKcContext } from "../../KcContext";
3
+ import { useI18n } from "../../i18n";
4
+ import { Template } from "../../components/Template";
5
+
6
+ export function Page() {
7
+ const { kcContext } = useKcContext();
8
+ assert(kcContext.pageId === "login-verify-email.ftl");
9
+
10
+ const { msg } = useI18n();
11
+
12
+ const { url, user } = kcContext;
13
+
14
+ return (
15
+ <Template
16
+ displayInfo
17
+ headerNode={msg("emailVerifyTitle")}
18
+ infoNode={
19
+ <p className="instruction">
20
+ {msg("emailVerifyInstruction2")}
21
+ <br />
22
+ <a href={url.loginAction}>{msg("doClickHere")}</a>
23
+ &nbsp;
24
+ {msg("emailVerifyInstruction3")}
25
+ </p>
26
+ }
27
+ >
28
+ <p className="instruction">{msg("emailVerifyInstruction1", user?.email ?? "")}</p>
29
+ </Template>
30
+ );
31
+ }
@@ -0,0 +1,3 @@
1
+ import { Page } from "./Page";
2
+
3
+ export default Page;
@@ -0,0 +1,97 @@
1
+ import { assert } from "tsafe/assert";
2
+ import { useKcClsx } from "@keycloakify/login-ui/useKcClsx";
3
+ import { useKcContext } from "../../KcContext";
4
+ import { useI18n } from "../../i18n";
5
+ import { Template } from "../../components/Template";
6
+
7
+ export function Page() {
8
+ const { kcContext } = useKcContext();
9
+ assert(kcContext.pageId === "login-x509-info.ftl");
10
+
11
+ const { kcClsx } = useKcClsx();
12
+
13
+ const { url, x509 } = kcContext;
14
+
15
+ const { msg, msgStr } = useI18n();
16
+
17
+ return (
18
+ <Template headerNode={msg("doLogIn")}>
19
+ <form
20
+ id="kc-x509-login-info"
21
+ className={kcClsx("kcFormClass")}
22
+ action={url.loginAction}
23
+ method="post"
24
+ >
25
+ <div className={kcClsx("kcFormGroupClass")}>
26
+ <div className={kcClsx("kcLabelWrapperClass")}>
27
+ <label htmlFor="certificate_subjectDN" className={kcClsx("kcLabelClass")}>
28
+ {msg("clientCertificate")}
29
+ </label>
30
+ </div>
31
+ {x509.formData.subjectDN ? (
32
+ <div className={kcClsx("kcLabelWrapperClass")}>
33
+ <label id="certificate_subjectDN" className={kcClsx("kcLabelClass")}>
34
+ {x509.formData.subjectDN}
35
+ </label>
36
+ </div>
37
+ ) : (
38
+ <div className={kcClsx("kcLabelWrapperClass")}>
39
+ <label id="certificate_subjectDN" className={kcClsx("kcLabelClass")}>
40
+ {msg("noCertificate")}
41
+ </label>
42
+ </div>
43
+ )}
44
+ </div>
45
+ <div className={kcClsx("kcFormGroupClass")}>
46
+ {x509.formData.isUserEnabled && (
47
+ <>
48
+ <div className={kcClsx("kcLabelWrapperClass")}>
49
+ <label htmlFor="username" className={kcClsx("kcLabelClass")}>
50
+ {msg("doX509Login")}
51
+ </label>
52
+ </div>
53
+ <div className={kcClsx("kcLabelWrapperClass")}>
54
+ <label id="username" className={kcClsx("kcLabelClass")}>
55
+ {x509.formData.username}
56
+ </label>
57
+ </div>
58
+ </>
59
+ )}
60
+ </div>
61
+ <div className={kcClsx("kcFormGroupClass")}>
62
+ <div id="kc-form-options" className={kcClsx("kcFormOptionsClass")}>
63
+ <div className={kcClsx("kcFormOptionsWrapperClass")} />
64
+ </div>
65
+ <div id="kc-form-buttons" className={kcClsx("kcFormButtonsClass")}>
66
+ <div className={kcClsx("kcFormButtonsWrapperClass")}>
67
+ <input
68
+ className={kcClsx(
69
+ "kcButtonClass",
70
+ "kcButtonPrimaryClass",
71
+ "kcButtonLargeClass"
72
+ )}
73
+ name="login"
74
+ id="kc-login"
75
+ type="submit"
76
+ value={msgStr("doContinue")}
77
+ />
78
+ {x509.formData.isUserEnabled && (
79
+ <input
80
+ className={kcClsx(
81
+ "kcButtonClass",
82
+ "kcButtonDefaultClass",
83
+ "kcButtonLargeClass"
84
+ )}
85
+ name="cancel"
86
+ id="kc-cancel"
87
+ type="submit"
88
+ value={msgStr("doIgnore")}
89
+ />
90
+ )}
91
+ </div>
92
+ </div>
93
+ </div>
94
+ </form>
95
+ </Template>
96
+ );
97
+ }
@@ -0,0 +1,3 @@
1
+ import { Page } from "./Page";
2
+
3
+ export default Page;