keycloakify 10.0.0-rc.7 → 10.0.0-rc.71

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 (814) hide show
  1. package/PUBLIC_URL.d.ts +1 -1
  2. package/PUBLIC_URL.js +3 -3
  3. package/PUBLIC_URL.js.map +1 -1
  4. package/account/DefaultPage.d.ts +5 -0
  5. package/account/{Fallback.js → DefaultPage.js} +3 -3
  6. package/account/DefaultPage.js.map +1 -0
  7. package/account/{kcContext → KcContext}/KcContext.d.ts +13 -0
  8. package/account/KcContext/KcContext.js.map +1 -0
  9. package/account/KcContext/getKcContextMock.d.ts +24 -0
  10. package/account/KcContext/getKcContextMock.js +28 -0
  11. package/account/KcContext/getKcContextMock.js.map +1 -0
  12. package/account/KcContext/index.d.ts +2 -0
  13. package/account/KcContext/index.js +2 -0
  14. package/account/KcContext/index.js.map +1 -0
  15. package/account/{kcContext → KcContext}/kcContextMocks.d.ts +1 -1
  16. package/account/KcContext/kcContextMocks.js +143 -0
  17. package/account/KcContext/kcContextMocks.js.map +1 -0
  18. package/account/Template.d.ts +2 -2
  19. package/account/Template.js +11 -11
  20. package/account/Template.js.map +1 -1
  21. package/account/TemplateProps.d.ts +3 -5
  22. package/account/i18n/baseMessages/ar.d.ts +2 -0
  23. package/account/i18n/baseMessages/ar.js +3 -1
  24. package/account/i18n/baseMessages/ar.js.map +1 -1
  25. package/account/i18n/baseMessages/ca.d.ts +2 -0
  26. package/account/i18n/baseMessages/ca.js +3 -1
  27. package/account/i18n/baseMessages/ca.js.map +1 -1
  28. package/account/i18n/baseMessages/cs.d.ts +2 -0
  29. package/account/i18n/baseMessages/cs.js +3 -1
  30. package/account/i18n/baseMessages/cs.js.map +1 -1
  31. package/account/i18n/baseMessages/da.d.ts +2 -0
  32. package/account/i18n/baseMessages/da.js +3 -1
  33. package/account/i18n/baseMessages/da.js.map +1 -1
  34. package/account/i18n/baseMessages/de.d.ts +2 -0
  35. package/account/i18n/baseMessages/de.js +3 -1
  36. package/account/i18n/baseMessages/de.js.map +1 -1
  37. package/account/i18n/baseMessages/el.d.ts +2 -0
  38. package/account/i18n/baseMessages/el.js +3 -1
  39. package/account/i18n/baseMessages/el.js.map +1 -1
  40. package/account/i18n/baseMessages/en.d.ts +2 -0
  41. package/account/i18n/baseMessages/en.js +3 -1
  42. package/account/i18n/baseMessages/en.js.map +1 -1
  43. package/account/i18n/baseMessages/es.d.ts +2 -0
  44. package/account/i18n/baseMessages/es.js +3 -1
  45. package/account/i18n/baseMessages/es.js.map +1 -1
  46. package/account/i18n/baseMessages/fa.d.ts +2 -0
  47. package/account/i18n/baseMessages/fa.js +3 -1
  48. package/account/i18n/baseMessages/fa.js.map +1 -1
  49. package/account/i18n/baseMessages/fi.d.ts +2 -0
  50. package/account/i18n/baseMessages/fi.js +3 -1
  51. package/account/i18n/baseMessages/fi.js.map +1 -1
  52. package/account/i18n/baseMessages/fr.d.ts +2 -0
  53. package/account/i18n/baseMessages/fr.js +3 -1
  54. package/account/i18n/baseMessages/fr.js.map +1 -1
  55. package/account/i18n/baseMessages/hu.d.ts +2 -0
  56. package/account/i18n/baseMessages/hu.js +3 -1
  57. package/account/i18n/baseMessages/hu.js.map +1 -1
  58. package/account/i18n/baseMessages/index.d.ts +18 -0
  59. package/account/i18n/baseMessages/index.js.map +1 -1
  60. package/account/i18n/baseMessages/it.d.ts +2 -0
  61. package/account/i18n/baseMessages/it.js +3 -1
  62. package/account/i18n/baseMessages/it.js.map +1 -1
  63. package/account/i18n/baseMessages/ja.d.ts +2 -0
  64. package/account/i18n/baseMessages/ja.js +3 -1
  65. package/account/i18n/baseMessages/ja.js.map +1 -1
  66. package/account/i18n/baseMessages/lt.d.ts +2 -0
  67. package/account/i18n/baseMessages/lt.js +3 -1
  68. package/account/i18n/baseMessages/lt.js.map +1 -1
  69. package/account/i18n/baseMessages/lv.d.ts +2 -0
  70. package/account/i18n/baseMessages/lv.js +3 -1
  71. package/account/i18n/baseMessages/lv.js.map +1 -1
  72. package/account/i18n/baseMessages/nl.d.ts +2 -0
  73. package/account/i18n/baseMessages/nl.js +3 -1
  74. package/account/i18n/baseMessages/nl.js.map +1 -1
  75. package/account/i18n/baseMessages/no.d.ts +2 -0
  76. package/account/i18n/baseMessages/no.js +3 -1
  77. package/account/i18n/baseMessages/no.js.map +1 -1
  78. package/account/i18n/baseMessages/pl.d.ts +2 -0
  79. package/account/i18n/baseMessages/pl.js +3 -1
  80. package/account/i18n/baseMessages/pl.js.map +1 -1
  81. package/account/i18n/baseMessages/pt-BR.d.ts +2 -0
  82. package/account/i18n/baseMessages/pt-BR.js +3 -1
  83. package/account/i18n/baseMessages/pt-BR.js.map +1 -1
  84. package/account/i18n/baseMessages/ru.d.ts +2 -0
  85. package/account/i18n/baseMessages/ru.js +3 -1
  86. package/account/i18n/baseMessages/ru.js.map +1 -1
  87. package/account/i18n/baseMessages/sk.d.ts +2 -0
  88. package/account/i18n/baseMessages/sk.js +3 -1
  89. package/account/i18n/baseMessages/sk.js.map +1 -1
  90. package/account/i18n/baseMessages/sv.d.ts +2 -0
  91. package/account/i18n/baseMessages/sv.js +3 -1
  92. package/account/i18n/baseMessages/sv.js.map +1 -1
  93. package/account/i18n/baseMessages/th.d.ts +2 -0
  94. package/account/i18n/baseMessages/th.js +3 -1
  95. package/account/i18n/baseMessages/th.js.map +1 -1
  96. package/account/i18n/baseMessages/tr.d.ts +2 -0
  97. package/account/i18n/baseMessages/tr.js +3 -1
  98. package/account/i18n/baseMessages/tr.js.map +1 -1
  99. package/account/i18n/baseMessages/uk.d.ts +2 -0
  100. package/account/i18n/baseMessages/uk.js +3 -1
  101. package/account/i18n/baseMessages/uk.js.map +1 -1
  102. package/account/i18n/baseMessages/zh-CN.d.ts +2 -0
  103. package/account/i18n/baseMessages/zh-CN.js +3 -1
  104. package/account/i18n/baseMessages/zh-CN.js.map +1 -1
  105. package/account/i18n/i18n.d.ts +31 -32
  106. package/account/i18n/i18n.js +135 -94
  107. package/account/i18n/i18n.js.map +1 -1
  108. package/account/i18n/index.d.ts +5 -1
  109. package/account/i18n/index.js +2 -1
  110. package/account/i18n/index.js.map +1 -1
  111. package/account/index.d.ts +3 -7
  112. package/account/index.js +1 -5
  113. package/account/index.js.map +1 -1
  114. package/account/lib/kcClsx.d.ts +9 -0
  115. package/account/lib/kcClsx.js +19 -0
  116. package/account/lib/kcClsx.js.map +1 -0
  117. package/account/pages/Account.d.ts +1 -1
  118. package/account/pages/Account.js +7 -6
  119. package/account/pages/Account.js.map +1 -1
  120. package/account/pages/Applications.d.ts +1 -1
  121. package/account/pages/Applications.js +7 -8
  122. package/account/pages/Applications.js.map +1 -1
  123. package/account/pages/FederatedIdentity.d.ts +3 -3
  124. package/account/pages/FederatedIdentity.js +1 -1
  125. package/account/pages/FederatedIdentity.js.map +1 -1
  126. package/account/pages/Log.d.ts +1 -1
  127. package/account/pages/Log.js +3 -3
  128. package/account/pages/Log.js.map +1 -1
  129. package/account/pages/PageProps.d.ts +4 -6
  130. package/account/pages/Password.d.ts +1 -1
  131. package/account/pages/Password.js +16 -13
  132. package/account/pages/Password.js.map +1 -1
  133. package/account/pages/Sessions.d.ts +1 -1
  134. package/account/pages/Sessions.js +3 -4
  135. package/account/pages/Sessions.js.map +1 -1
  136. package/account/pages/Totp.d.ts +1 -1
  137. package/account/pages/Totp.js +5 -10
  138. package/account/pages/Totp.js.map +1 -1
  139. package/bin/180.index.js +4664 -0
  140. package/bin/193.index.js +160 -0
  141. package/bin/246.index.js +466 -0
  142. package/bin/36.index.js +9980 -0
  143. package/bin/363.index.js +1502 -0
  144. package/bin/420.index.js +508 -0
  145. package/bin/430.index.js +1349 -0
  146. package/bin/453.index.js +768 -0
  147. package/bin/456.index.js +6200 -0
  148. package/bin/490.index.js +75195 -0
  149. package/bin/509.index.js +438 -0
  150. package/bin/525.index.js +41826 -0
  151. package/bin/526.index.js +973 -0
  152. package/bin/538.index.js +108 -0
  153. package/bin/751.index.js +734 -0
  154. package/bin/772.index.js +1524 -0
  155. package/bin/837.index.js +787 -0
  156. package/bin/932.index.js +269 -0
  157. package/bin/97.index.js +676 -0
  158. package/bin/main.js +7553 -146379
  159. package/bin/shared/KeycloakVersionRange.d.ts +5 -0
  160. package/bin/shared/KeycloakVersionRange.js +2 -0
  161. package/bin/shared/KeycloakVersionRange.js.map +1 -0
  162. package/bin/shared/buildContext.d.ts +67 -0
  163. package/bin/shared/buildContext.js +488 -0
  164. package/bin/shared/buildContext.js.map +1 -0
  165. package/bin/shared/constants.d.ts +18 -0
  166. package/bin/shared/constants.js +59 -0
  167. package/bin/shared/constants.js.map +1 -0
  168. package/bin/shared/copyKeycloakResourcesToPublic.d.ts +8 -0
  169. package/bin/shared/copyKeycloakResourcesToPublic.js +61 -0
  170. package/bin/shared/copyKeycloakResourcesToPublic.js.map +1 -0
  171. package/bin/shared/downloadKeycloakDefaultTheme.d.ts +10 -0
  172. package/bin/shared/downloadKeycloakDefaultTheme.js +123 -0
  173. package/bin/shared/downloadKeycloakDefaultTheme.js.map +1 -0
  174. package/bin/shared/downloadKeycloakStaticResources.d.ts +9 -0
  175. package/bin/shared/downloadKeycloakStaticResources.js +34 -0
  176. package/bin/shared/downloadKeycloakStaticResources.js.map +1 -0
  177. package/bin/shared/generateKcGenTs.d.ts +12 -0
  178. package/bin/shared/generateKcGenTs.js +41 -0
  179. package/bin/shared/generateKcGenTs.js.map +1 -0
  180. package/bin/shared/metaInfKeycloakThemes.d.ts +13 -0
  181. package/bin/shared/metaInfKeycloakThemes.js +20 -0
  182. package/bin/shared/metaInfKeycloakThemes.js.map +1 -0
  183. package/bin/shared/promptKeycloakVersion.d.ts +7 -0
  184. package/bin/shared/promptKeycloakVersion.js +76 -0
  185. package/bin/shared/promptKeycloakVersion.js.map +1 -0
  186. package/lib/BASE_URL.js.map +1 -1
  187. package/lib/getKcClsx.d.ts +11 -0
  188. package/lib/getKcClsx.js +55 -0
  189. package/lib/getKcClsx.js.map +1 -0
  190. package/login/{Fallback.d.ts → DefaultPage.d.ts} +7 -6
  191. package/login/{Fallback.js → DefaultPage.js} +2 -2
  192. package/login/DefaultPage.js.map +1 -0
  193. package/login/{kcContext → KcContext}/KcContext.d.ts +32 -17
  194. package/login/{kcContext → KcContext}/KcContext.js +1 -0
  195. package/login/KcContext/KcContext.js.map +1 -0
  196. package/login/KcContext/getKcContextMock.d.ts +24 -0
  197. package/login/KcContext/getKcContextMock.js +28 -0
  198. package/login/KcContext/getKcContextMock.js.map +1 -0
  199. package/login/KcContext/index.d.ts +2 -0
  200. package/login/KcContext/index.js +2 -0
  201. package/login/KcContext/index.js.map +1 -0
  202. package/login/{kcContext → KcContext}/kcContextMocks.d.ts +1 -1
  203. package/login/KcContext/kcContextMocks.js +331 -0
  204. package/login/KcContext/kcContextMocks.js.map +1 -0
  205. package/login/Template.d.ts +2 -2
  206. package/login/Template.js +22 -22
  207. package/login/Template.js.map +1 -1
  208. package/login/TemplateProps.d.ts +3 -5
  209. package/login/UserProfileFormFields.d.ts +3 -20
  210. package/login/UserProfileFormFields.js +78 -122
  211. package/login/UserProfileFormFields.js.map +1 -1
  212. package/login/UserProfileFormFieldsProps.d.ts +24 -0
  213. package/login/UserProfileFormFieldsProps.js +2 -0
  214. package/login/UserProfileFormFieldsProps.js.map +1 -0
  215. package/login/i18n/baseMessages/ar.d.ts +9 -0
  216. package/login/i18n/baseMessages/ar.js +10 -1
  217. package/login/i18n/baseMessages/ar.js.map +1 -1
  218. package/login/i18n/baseMessages/ca.d.ts +10 -1
  219. package/login/i18n/baseMessages/ca.js +11 -2
  220. package/login/i18n/baseMessages/ca.js.map +1 -1
  221. package/login/i18n/baseMessages/cs.d.ts +9 -0
  222. package/login/i18n/baseMessages/cs.js +10 -1
  223. package/login/i18n/baseMessages/cs.js.map +1 -1
  224. package/login/i18n/baseMessages/da.d.ts +9 -0
  225. package/login/i18n/baseMessages/da.js +10 -1
  226. package/login/i18n/baseMessages/da.js.map +1 -1
  227. package/login/i18n/baseMessages/de.d.ts +9 -0
  228. package/login/i18n/baseMessages/de.js +10 -1
  229. package/login/i18n/baseMessages/de.js.map +1 -1
  230. package/login/i18n/baseMessages/el.d.ts +9 -1
  231. package/login/i18n/baseMessages/el.js +10 -2
  232. package/login/i18n/baseMessages/el.js.map +1 -1
  233. package/login/i18n/baseMessages/en.d.ts +10 -1
  234. package/login/i18n/baseMessages/en.js +11 -2
  235. package/login/i18n/baseMessages/en.js.map +1 -1
  236. package/login/i18n/baseMessages/es.d.ts +10 -1
  237. package/login/i18n/baseMessages/es.js +11 -2
  238. package/login/i18n/baseMessages/es.js.map +1 -1
  239. package/login/i18n/baseMessages/fa.d.ts +9 -1
  240. package/login/i18n/baseMessages/fa.js +10 -2
  241. package/login/i18n/baseMessages/fa.js.map +1 -1
  242. package/login/i18n/baseMessages/fi.d.ts +9 -0
  243. package/login/i18n/baseMessages/fi.js +10 -1
  244. package/login/i18n/baseMessages/fi.js.map +1 -1
  245. package/login/i18n/baseMessages/fr.d.ts +9 -0
  246. package/login/i18n/baseMessages/fr.js +10 -1
  247. package/login/i18n/baseMessages/fr.js.map +1 -1
  248. package/login/i18n/baseMessages/hu.d.ts +10 -1
  249. package/login/i18n/baseMessages/hu.js +11 -2
  250. package/login/i18n/baseMessages/hu.js.map +1 -1
  251. package/login/i18n/baseMessages/index.d.ts +109 -2
  252. package/login/i18n/baseMessages/index.js.map +1 -1
  253. package/login/i18n/baseMessages/it.d.ts +9 -0
  254. package/login/i18n/baseMessages/it.js +10 -1
  255. package/login/i18n/baseMessages/it.js.map +1 -1
  256. package/login/i18n/baseMessages/ja.d.ts +9 -0
  257. package/login/i18n/baseMessages/ja.js +10 -1
  258. package/login/i18n/baseMessages/ja.js.map +1 -1
  259. package/login/i18n/baseMessages/lt.d.ts +9 -0
  260. package/login/i18n/baseMessages/lt.js +10 -1
  261. package/login/i18n/baseMessages/lt.js.map +1 -1
  262. package/login/i18n/baseMessages/lv.d.ts +9 -0
  263. package/login/i18n/baseMessages/lv.js +10 -1
  264. package/login/i18n/baseMessages/lv.js.map +1 -1
  265. package/login/i18n/baseMessages/nl.d.ts +9 -0
  266. package/login/i18n/baseMessages/nl.js +10 -1
  267. package/login/i18n/baseMessages/nl.js.map +1 -1
  268. package/login/i18n/baseMessages/no.d.ts +9 -0
  269. package/login/i18n/baseMessages/no.js +10 -1
  270. package/login/i18n/baseMessages/no.js.map +1 -1
  271. package/login/i18n/baseMessages/pl.d.ts +9 -0
  272. package/login/i18n/baseMessages/pl.js +10 -1
  273. package/login/i18n/baseMessages/pl.js.map +1 -1
  274. package/login/i18n/baseMessages/pt-BR.d.ts +9 -0
  275. package/login/i18n/baseMessages/pt-BR.js +10 -1
  276. package/login/i18n/baseMessages/pt-BR.js.map +1 -1
  277. package/login/i18n/baseMessages/ru.d.ts +9 -0
  278. package/login/i18n/baseMessages/ru.js +10 -1
  279. package/login/i18n/baseMessages/ru.js.map +1 -1
  280. package/login/i18n/baseMessages/sk.d.ts +9 -0
  281. package/login/i18n/baseMessages/sk.js +10 -1
  282. package/login/i18n/baseMessages/sk.js.map +1 -1
  283. package/login/i18n/baseMessages/sv.d.ts +9 -0
  284. package/login/i18n/baseMessages/sv.js +10 -1
  285. package/login/i18n/baseMessages/sv.js.map +1 -1
  286. package/login/i18n/baseMessages/th.d.ts +9 -0
  287. package/login/i18n/baseMessages/th.js +10 -1
  288. package/login/i18n/baseMessages/th.js.map +1 -1
  289. package/login/i18n/baseMessages/tr.d.ts +9 -0
  290. package/login/i18n/baseMessages/tr.js +10 -1
  291. package/login/i18n/baseMessages/tr.js.map +1 -1
  292. package/login/i18n/baseMessages/uk.d.ts +9 -0
  293. package/login/i18n/baseMessages/uk.js +10 -1
  294. package/login/i18n/baseMessages/uk.js.map +1 -1
  295. package/login/i18n/baseMessages/zh-CN.d.ts +10 -1
  296. package/login/i18n/baseMessages/zh-CN.js +11 -2
  297. package/login/i18n/baseMessages/zh-CN.js.map +1 -1
  298. package/login/i18n/i18n.d.ts +32 -34
  299. package/login/i18n/i18n.js +144 -96
  300. package/login/i18n/i18n.js.map +1 -1
  301. package/login/i18n/index.d.ts +5 -1
  302. package/login/i18n/index.js +2 -1
  303. package/login/i18n/index.js.map +1 -1
  304. package/login/index.d.ts +3 -7
  305. package/login/index.js +1 -5
  306. package/login/index.js.map +1 -1
  307. package/login/lib/kcClsx.d.ts +9 -0
  308. package/login/lib/kcClsx.js +130 -0
  309. package/login/lib/kcClsx.js.map +1 -0
  310. package/login/lib/useDownloadTerms.d.ts +12 -3
  311. package/login/lib/useDownloadTerms.js +16 -21
  312. package/login/lib/useDownloadTerms.js.map +1 -1
  313. package/login/lib/useUserProfileForm.d.ts +20 -8
  314. package/login/lib/useUserProfileForm.js +402 -295
  315. package/login/lib/useUserProfileForm.js.map +1 -1
  316. package/login/pages/Code.d.ts +1 -1
  317. package/login/pages/Code.js +3 -3
  318. package/login/pages/Code.js.map +1 -1
  319. package/login/pages/DeleteAccountConfirm.d.ts +1 -1
  320. package/login/pages/DeleteAccountConfirm.js +7 -4
  321. package/login/pages/DeleteAccountConfirm.js.map +1 -1
  322. package/login/pages/DeleteCredential.d.ts +1 -1
  323. package/login/pages/DeleteCredential.js +3 -4
  324. package/login/pages/DeleteCredential.js.map +1 -1
  325. package/login/pages/Error.d.ts +1 -1
  326. package/login/pages/Error.js +1 -1
  327. package/login/pages/Error.js.map +1 -1
  328. package/login/pages/FrontchannelLogout.d.ts +1 -1
  329. package/login/pages/FrontchannelLogout.js +1 -1
  330. package/login/pages/FrontchannelLogout.js.map +1 -1
  331. package/login/pages/IdpReviewUserProfile.d.ts +4 -3
  332. package/login/pages/IdpReviewUserProfile.js +4 -5
  333. package/login/pages/IdpReviewUserProfile.js.map +1 -1
  334. package/login/pages/Info.d.ts +1 -1
  335. package/login/pages/Info.js +5 -7
  336. package/login/pages/Info.js.map +1 -1
  337. package/login/pages/Login.d.ts +1 -1
  338. package/login/pages/Login.js +7 -7
  339. package/login/pages/Login.js.map +1 -1
  340. package/login/pages/LoginConfigTotp.d.ts +1 -1
  341. package/login/pages/LoginConfigTotp.js +6 -7
  342. package/login/pages/LoginConfigTotp.js.map +1 -1
  343. package/login/pages/LoginIdpLinkConfirm.d.ts +1 -1
  344. package/login/pages/LoginIdpLinkConfirm.js +3 -4
  345. package/login/pages/LoginIdpLinkConfirm.js.map +1 -1
  346. package/login/pages/LoginIdpLinkEmail.d.ts +2 -2
  347. package/login/pages/LoginIdpLinkEmail.js +1 -1
  348. package/login/pages/LoginIdpLinkEmail.js.map +1 -1
  349. package/login/pages/LoginOauth2DeviceVerifyUserCode.d.ts +3 -3
  350. package/login/pages/LoginOauth2DeviceVerifyUserCode.js +3 -4
  351. package/login/pages/LoginOauth2DeviceVerifyUserCode.js.map +1 -1
  352. package/login/pages/LoginOauthGrant.d.ts +3 -3
  353. package/login/pages/LoginOauthGrant.js +4 -5
  354. package/login/pages/LoginOauthGrant.js.map +1 -1
  355. package/login/pages/LoginOtp.d.ts +1 -1
  356. package/login/pages/LoginOtp.js +3 -4
  357. package/login/pages/LoginOtp.js.map +1 -1
  358. package/login/pages/LoginPageExpired.d.ts +1 -1
  359. package/login/pages/LoginPageExpired.js +1 -1
  360. package/login/pages/LoginPageExpired.js.map +1 -1
  361. package/login/pages/LoginPassword.d.ts +1 -1
  362. package/login/pages/LoginPassword.js +6 -6
  363. package/login/pages/LoginPassword.js.map +1 -1
  364. package/login/pages/LoginRecoveryAuthnCodeConfig.d.ts +1 -1
  365. package/login/pages/LoginRecoveryAuthnCodeConfig.js +16 -16
  366. package/login/pages/LoginRecoveryAuthnCodeConfig.js.map +1 -1
  367. package/login/pages/LoginRecoveryAuthnCodeInput.d.ts +1 -1
  368. package/login/pages/LoginRecoveryAuthnCodeInput.js +3 -4
  369. package/login/pages/LoginRecoveryAuthnCodeInput.js.map +1 -1
  370. package/login/pages/LoginResetOtp.d.ts +1 -1
  371. package/login/pages/LoginResetOtp.js +3 -4
  372. package/login/pages/LoginResetOtp.js.map +1 -1
  373. package/login/pages/LoginResetPassword.d.ts +1 -1
  374. package/login/pages/LoginResetPassword.js +4 -5
  375. package/login/pages/LoginResetPassword.js.map +1 -1
  376. package/login/pages/LoginUpdatePassword.d.ts +1 -1
  377. package/login/pages/LoginUpdatePassword.js +7 -8
  378. package/login/pages/LoginUpdatePassword.js.map +1 -1
  379. package/login/pages/LoginUpdateProfile.d.ts +4 -3
  380. package/login/pages/LoginUpdateProfile.js +5 -9
  381. package/login/pages/LoginUpdateProfile.js.map +1 -1
  382. package/login/pages/LoginUsername.d.ts +1 -1
  383. package/login/pages/LoginUsername.js +5 -5
  384. package/login/pages/LoginUsername.js.map +1 -1
  385. package/login/pages/LoginVerifyEmail.d.ts +1 -1
  386. package/login/pages/LoginVerifyEmail.js +1 -1
  387. package/login/pages/LoginVerifyEmail.js.map +1 -1
  388. package/login/pages/LoginX509Info.d.ts +1 -1
  389. package/login/pages/LoginX509Info.js +3 -4
  390. package/login/pages/LoginX509Info.js.map +1 -1
  391. package/login/pages/LogoutConfirm.d.ts +1 -1
  392. package/login/pages/LogoutConfirm.js +3 -4
  393. package/login/pages/LogoutConfirm.js.map +1 -1
  394. package/login/pages/PageProps.d.ts +3 -5
  395. package/login/pages/Register.d.ts +4 -3
  396. package/login/pages/Register.js +7 -13
  397. package/login/pages/Register.js.map +1 -1
  398. package/login/pages/SamlPostForm.d.ts +1 -1
  399. package/login/pages/SamlPostForm.js +1 -1
  400. package/login/pages/SamlPostForm.js.map +1 -1
  401. package/login/pages/SelectAuthenticator.d.ts +2 -2
  402. package/login/pages/SelectAuthenticator.js +3 -7
  403. package/login/pages/SelectAuthenticator.js.map +1 -1
  404. package/login/pages/Terms.d.ts +1 -1
  405. package/login/pages/Terms.js +6 -7
  406. package/login/pages/Terms.js.map +1 -1
  407. package/login/pages/UpdateEmail.d.ts +3 -2
  408. package/login/pages/UpdateEmail.js +6 -10
  409. package/login/pages/UpdateEmail.js.map +1 -1
  410. package/login/pages/WebauthnAuthenticate.d.ts +1 -1
  411. package/login/pages/WebauthnAuthenticate.js +25 -22
  412. package/login/pages/WebauthnAuthenticate.js.map +1 -1
  413. package/login/pages/WebauthnError.d.ts +1 -1
  414. package/login/pages/WebauthnError.js +4 -5
  415. package/login/pages/WebauthnError.js.map +1 -1
  416. package/login/pages/WebauthnRegister.d.ts +1 -1
  417. package/login/pages/WebauthnRegister.js +15 -16
  418. package/login/pages/WebauthnRegister.js.map +1 -1
  419. package/package.json +429 -313
  420. package/src/PUBLIC_URL.ts +3 -3
  421. package/src/account/{Fallback.tsx → DefaultPage.tsx} +5 -5
  422. package/src/account/{kcContext → KcContext}/KcContext.ts +24 -2
  423. package/src/account/KcContext/getKcContextMock.ts +69 -0
  424. package/src/account/KcContext/index.ts +2 -0
  425. package/src/account/KcContext/kcContextMocks.ts +190 -0
  426. package/src/account/Template.tsx +12 -14
  427. package/src/account/TemplateProps.ts +4 -5
  428. package/src/account/i18n/baseMessages/ar.ts +3 -1
  429. package/src/account/i18n/baseMessages/ca.ts +3 -1
  430. package/src/account/i18n/baseMessages/cs.ts +3 -1
  431. package/src/account/i18n/baseMessages/da.ts +3 -1
  432. package/src/account/i18n/baseMessages/de.ts +3 -1
  433. package/src/account/i18n/baseMessages/el.ts +3 -1
  434. package/src/account/i18n/baseMessages/en.ts +3 -1
  435. package/src/account/i18n/baseMessages/es.ts +3 -1
  436. package/src/account/i18n/baseMessages/fa.ts +3 -1
  437. package/src/account/i18n/baseMessages/fi.ts +3 -1
  438. package/src/account/i18n/baseMessages/fr.ts +3 -1
  439. package/src/account/i18n/baseMessages/hu.ts +3 -1
  440. package/src/account/i18n/baseMessages/it.ts +3 -1
  441. package/src/account/i18n/baseMessages/ja.ts +3 -1
  442. package/src/account/i18n/baseMessages/lt.ts +3 -1
  443. package/src/account/i18n/baseMessages/lv.ts +3 -1
  444. package/src/account/i18n/baseMessages/nl.ts +3 -1
  445. package/src/account/i18n/baseMessages/no.ts +3 -1
  446. package/src/account/i18n/baseMessages/pl.ts +3 -1
  447. package/src/account/i18n/baseMessages/pt-BR.ts +3 -1
  448. package/src/account/i18n/baseMessages/ru.ts +3 -1
  449. package/src/account/i18n/baseMessages/sk.ts +3 -1
  450. package/src/account/i18n/baseMessages/sv.ts +3 -1
  451. package/src/account/i18n/baseMessages/th.ts +3 -1
  452. package/src/account/i18n/baseMessages/tr.ts +3 -1
  453. package/src/account/i18n/baseMessages/uk.ts +3 -1
  454. package/src/account/i18n/baseMessages/zh-CN.ts +3 -1
  455. package/src/account/i18n/i18n.tsx +230 -137
  456. package/src/account/i18n/index.ts +5 -1
  457. package/src/account/index.ts +3 -10
  458. package/src/account/lib/kcClsx.ts +25 -0
  459. package/src/account/pages/Account.tsx +12 -18
  460. package/src/account/pages/Applications.tsx +8 -9
  461. package/src/account/pages/FederatedIdentity.tsx +3 -3
  462. package/src/account/pages/Log.tsx +5 -5
  463. package/src/account/pages/PageProps.ts +4 -6
  464. package/src/account/pages/Password.tsx +17 -19
  465. package/src/account/pages/Sessions.tsx +5 -6
  466. package/src/account/pages/Totp.tsx +18 -38
  467. package/src/bin/add-story.ts +104 -0
  468. package/src/bin/copy-keycloak-resources-to-public.ts +3 -6
  469. package/src/bin/eject-page.ts +257 -0
  470. package/src/bin/initialize-email-theme.ts +30 -26
  471. package/src/bin/keycloakify/buildJars/buildJar.ts +138 -77
  472. package/src/bin/keycloakify/buildJars/buildJars.ts +35 -31
  473. package/src/bin/keycloakify/buildJars/extensionVersions.ts +3 -2
  474. package/src/bin/keycloakify/buildJars/generatePom.ts +19 -11
  475. package/src/bin/keycloakify/buildJars/getKeycloakVersionRangeForJar.ts +42 -10
  476. package/src/bin/keycloakify/generateFtl/generateFtl.ts +68 -24
  477. package/src/bin/keycloakify/generateFtl/{ftl_object_to_js_code_declaring_an_object.ftl → kcContextDeclarationTemplate.ftl} +225 -193
  478. package/src/bin/keycloakify/generateResources/bringInAccountV1.ts +89 -0
  479. package/src/bin/keycloakify/{generateSrcMainResources → generateResources}/generateMessageProperties.ts +31 -43
  480. package/src/bin/keycloakify/generateResources/generateResources.ts +42 -0
  481. package/src/bin/keycloakify/generateResources/generateResourcesForMainTheme.ts +304 -0
  482. package/src/bin/keycloakify/generateResources/generateResourcesForThemeVariant.ts +70 -0
  483. package/src/bin/keycloakify/generateResources/index.ts +1 -0
  484. package/src/bin/keycloakify/{generateSrcMainResources → generateResources}/readExtraPageNames.ts +21 -7
  485. package/src/bin/keycloakify/{generateSrcMainResources → generateResources}/readFieldNameUsage.ts +34 -7
  486. package/src/bin/keycloakify/keycloakify.ts +54 -20
  487. package/src/bin/keycloakify/replacers/replaceImportsInCssCode.ts +28 -9
  488. package/src/bin/keycloakify/replacers/replaceImportsInInlineCssCode.ts +12 -8
  489. package/src/bin/keycloakify/replacers/replaceImportsInJsCode/replaceImportsInJsCode.ts +14 -11
  490. package/src/bin/keycloakify/replacers/replaceImportsInJsCode/vite.ts +31 -16
  491. package/src/bin/keycloakify/replacers/replaceImportsInJsCode/webpack.ts +53 -18
  492. package/src/bin/main.ts +96 -44
  493. package/src/bin/shared/KeycloakVersionRange.ts +4 -2
  494. package/src/bin/shared/buildContext.ts +768 -0
  495. package/src/bin/shared/constants.ts +10 -4
  496. package/src/bin/shared/copyKeycloakResourcesToPublic.ts +35 -21
  497. package/src/bin/shared/downloadKeycloakDefaultTheme.ts +234 -0
  498. package/src/bin/shared/downloadKeycloakStaticResources.ts +30 -26
  499. package/src/bin/shared/generateKcGenTs.ts +68 -0
  500. package/src/bin/shared/metaInfKeycloakThemes.ts +25 -19
  501. package/src/bin/shared/promptKeycloakVersion.ts +39 -15
  502. package/src/bin/start-keycloak/appBuild.ts +129 -0
  503. package/src/bin/start-keycloak/index.ts +1 -0
  504. package/src/bin/start-keycloak/keycloakifyBuild.ts +42 -0
  505. package/src/bin/start-keycloak/myrealm-realm-18.json +2155 -0
  506. package/src/bin/start-keycloak/myrealm-realm-19.json +2186 -0
  507. package/src/bin/start-keycloak/myrealm-realm-20.json +2197 -0
  508. package/src/bin/start-keycloak/myrealm-realm-21.json +2201 -0
  509. package/src/bin/start-keycloak/myrealm-realm-23.json +2150 -0
  510. package/src/bin/start-keycloak/myrealm-realm-24.json +2318 -0
  511. package/src/bin/start-keycloak/myrealm-realm-25.json +2400 -0
  512. package/src/bin/start-keycloak/start-keycloak.ts +451 -0
  513. package/src/bin/tools/SemVer.ts +32 -13
  514. package/src/bin/tools/String.prototype.replaceAll.ts +9 -2
  515. package/src/bin/tools/crawl.ts +4 -1
  516. package/src/bin/tools/crc32.ts +42 -24
  517. package/src/bin/tools/downloadAndExtractArchive/downloadAndExtractArchive.ts +262 -0
  518. package/src/bin/tools/{fetchProxyOptions.ts → downloadAndExtractArchive/fetchProxyOptions.ts} +39 -8
  519. package/src/bin/tools/downloadAndExtractArchive/index.ts +1 -0
  520. package/src/bin/tools/escapeStringForPropertiesFile.ts +64 -0
  521. package/src/bin/tools/extractArchive.ts +140 -0
  522. package/src/bin/tools/getAbsoluteAndInOsFormatPath.ts +10 -2
  523. package/src/bin/tools/getNpmWorkspaceRootDirPath.ts +52 -6
  524. package/src/bin/tools/octokit-addons/getLatestsSemVersionedTag.ts +8 -2
  525. package/src/bin/tools/octokit-addons/listTags.ts +15 -4
  526. package/src/bin/tools/partitionPromiseSettledResults.ts +12 -3
  527. package/src/bin/tools/readThisNpmPackageVersion.ts +5 -1
  528. package/src/bin/tools/transformCodebase.ts +29 -10
  529. package/src/bin/tools/trimIndent.ts +4 -1
  530. package/src/bin/tsconfig.json +4 -3
  531. package/src/bin/update-kc-gen.ts +13 -0
  532. package/src/lib/getKcClsx.ts +89 -0
  533. package/src/login/{Fallback.tsx → DefaultPage.tsx} +7 -6
  534. package/src/login/{kcContext → KcContext}/KcContext.ts +67 -31
  535. package/src/login/KcContext/getKcContextMock.ts +69 -0
  536. package/src/login/KcContext/index.ts +8 -0
  537. package/src/login/KcContext/kcContextMocks.ts +580 -0
  538. package/src/login/Template.tsx +52 -55
  539. package/src/login/TemplateProps.ts +3 -6
  540. package/src/login/UserProfileFormFields.tsx +125 -210
  541. package/src/login/UserProfileFormFieldsProps.tsx +22 -0
  542. package/src/login/i18n/baseMessages/ar.ts +10 -1
  543. package/src/login/i18n/baseMessages/ca.ts +11 -2
  544. package/src/login/i18n/baseMessages/cs.ts +10 -1
  545. package/src/login/i18n/baseMessages/da.ts +10 -1
  546. package/src/login/i18n/baseMessages/de.ts +10 -1
  547. package/src/login/i18n/baseMessages/el.ts +10 -2
  548. package/src/login/i18n/baseMessages/en.ts +11 -2
  549. package/src/login/i18n/baseMessages/es.ts +11 -2
  550. package/src/login/i18n/baseMessages/fa.ts +10 -2
  551. package/src/login/i18n/baseMessages/fi.ts +10 -1
  552. package/src/login/i18n/baseMessages/fr.ts +10 -1
  553. package/src/login/i18n/baseMessages/hu.ts +11 -2
  554. package/src/login/i18n/baseMessages/it.ts +10 -1
  555. package/src/login/i18n/baseMessages/ja.ts +10 -1
  556. package/src/login/i18n/baseMessages/lt.ts +10 -1
  557. package/src/login/i18n/baseMessages/lv.ts +10 -1
  558. package/src/login/i18n/baseMessages/nl.ts +10 -1
  559. package/src/login/i18n/baseMessages/no.ts +10 -1
  560. package/src/login/i18n/baseMessages/pl.ts +10 -1
  561. package/src/login/i18n/baseMessages/pt-BR.ts +10 -1
  562. package/src/login/i18n/baseMessages/ru.ts +10 -1
  563. package/src/login/i18n/baseMessages/sk.ts +10 -1
  564. package/src/login/i18n/baseMessages/sv.ts +10 -1
  565. package/src/login/i18n/baseMessages/th.ts +10 -1
  566. package/src/login/i18n/baseMessages/tr.ts +10 -1
  567. package/src/login/i18n/baseMessages/uk.ts +10 -1
  568. package/src/login/i18n/baseMessages/zh-CN.ts +11 -2
  569. package/src/login/i18n/i18n.tsx +248 -139
  570. package/src/login/i18n/index.ts +5 -1
  571. package/src/login/index.ts +3 -10
  572. package/src/login/lib/kcClsx.ts +143 -0
  573. package/src/login/lib/useDownloadTerms.ts +32 -32
  574. package/src/login/lib/useUserProfileForm.tsx +480 -351
  575. package/src/login/pages/Code.tsx +8 -5
  576. package/src/login/pages/DeleteAccountConfirm.tsx +15 -10
  577. package/src/login/pages/DeleteCredential.tsx +9 -7
  578. package/src/login/pages/Error.tsx +9 -2
  579. package/src/login/pages/FrontchannelLogout.tsx +6 -3
  580. package/src/login/pages/IdpReviewUserProfile.tsx +20 -21
  581. package/src/login/pages/Info.tsx +5 -8
  582. package/src/login/pages/Login.tsx +34 -53
  583. package/src/login/pages/LoginConfigTotp.tsx +35 -39
  584. package/src/login/pages/LoginIdpLinkConfirm.tsx +7 -18
  585. package/src/login/pages/LoginIdpLinkEmail.tsx +9 -3
  586. package/src/login/pages/LoginOauth2DeviceVerifyUserCode.tsx +24 -23
  587. package/src/login/pages/LoginOauthGrant.tsx +14 -20
  588. package/src/login/pages/LoginOtp.tsx +27 -30
  589. package/src/login/pages/LoginPageExpired.tsx +2 -2
  590. package/src/login/pages/LoginPassword.tsx +21 -31
  591. package/src/login/pages/LoginRecoveryAuthnCodeConfig.tsx +34 -34
  592. package/src/login/pages/LoginRecoveryAuthnCodeInput.tsx +19 -22
  593. package/src/login/pages/LoginResetOtp.tsx +19 -22
  594. package/src/login/pages/LoginResetPassword.tsx +21 -24
  595. package/src/login/pages/LoginUpdatePassword.tsx +40 -50
  596. package/src/login/pages/LoginUpdateProfile.tsx +32 -30
  597. package/src/login/pages/LoginUsername.tsx +23 -34
  598. package/src/login/pages/LoginVerifyEmail.tsx +5 -2
  599. package/src/login/pages/LoginX509Info.tsx +24 -33
  600. package/src/login/pages/LogoutConfirm.tsx +8 -14
  601. package/src/login/pages/PageProps.ts +3 -5
  602. package/src/login/pages/Register.tsx +37 -48
  603. package/src/login/pages/SamlPostForm.tsx +2 -2
  604. package/src/login/pages/SelectAuthenticator.tsx +23 -24
  605. package/src/login/pages/Terms.tsx +18 -18
  606. package/src/login/pages/UpdateEmail.tsx +30 -33
  607. package/src/login/pages/WebauthnAuthenticate.tsx +40 -44
  608. package/src/login/pages/WebauthnError.tsx +15 -19
  609. package/src/login/pages/WebauthnRegister.tsx +28 -37
  610. package/src/tools/Array.prototype.every.ts +4 -1
  611. package/src/tools/ExtractAfterStartingWith.ts +4 -0
  612. package/src/tools/LazyOrNot.ts +3 -1
  613. package/src/tools/Object.fromEntries.ts +23 -0
  614. package/src/tools/StatefulObservable/README.md +16 -0
  615. package/src/tools/StatefulObservable/StatefulObservable.ts +58 -0
  616. package/src/tools/StatefulObservable/hooks/index.ts +2 -0
  617. package/src/tools/StatefulObservable/hooks/useObservable.ts +25 -0
  618. package/src/tools/StatefulObservable/hooks/useRerenderOnChange.ts +19 -0
  619. package/src/tools/StatefulObservable/index.ts +2 -0
  620. package/src/tools/ValueOf.ts +2 -0
  621. package/src/tools/clsx.ts +6 -42
  622. package/src/tools/clsx_withTransform.ts +55 -0
  623. package/src/tools/deepAssign.ts +57 -19
  624. package/src/tools/formatNumber.ts +7 -3
  625. package/src/tools/structuredCloneButFunctions.ts +24 -0
  626. package/src/tools/useConstCallback.ts +3 -1
  627. package/src/tools/useInsertLinkTags.ts +78 -74
  628. package/src/tools/useInsertScriptTags.ts +69 -73
  629. package/src/tools/useOnFirstMount.ts +18 -0
  630. package/src/tools/useSetClassName.ts +4 -1
  631. package/src/vite-plugin/vite-plugin.ts +73 -37
  632. package/stories/account/pages/Account.stories.tsx +18 -0
  633. package/stories/account/pages/FederatedIdentity.stories.tsx +38 -0
  634. package/stories/account/pages/Log.stories.tsx +356 -0
  635. package/stories/account/pages/Password.stories.tsx +28 -0
  636. package/stories/account/pages/Sessions.stories.tsx +59 -0
  637. package/stories/account/pages/Totp.stories.tsx +182 -0
  638. package/stories/login/pages/Code.stories.tsx +18 -0
  639. package/stories/login/pages/DeleteAccountConfirm.stories.tsx +18 -0
  640. package/stories/login/pages/DeleteCredential.stories.tsx +18 -0
  641. package/stories/login/pages/Error.stories.tsx +28 -0
  642. package/stories/login/pages/FrontchannelLogout.stories.tsx +18 -0
  643. package/stories/login/pages/IdpReviewUserProfile.stories.tsx +18 -0
  644. package/stories/login/pages/Info.stories.tsx +52 -0
  645. package/stories/login/pages/Login.stories.tsx +221 -0
  646. package/stories/login/pages/LoginConfigTotp.stories.tsx +43 -0
  647. package/stories/login/pages/LoginDeviceVerifyUserCode.stories.tsx +18 -0
  648. package/stories/login/pages/LoginIdpLinkConfirm.stories.tsx +18 -0
  649. package/stories/login/pages/LoginIdpLinkEmail.stories.tsx +18 -0
  650. package/stories/login/pages/LoginOauth2DeviceVerifyUserCode.stories.tsx +18 -0
  651. package/stories/login/pages/LoginOauthGrant.stories.tsx +18 -0
  652. package/stories/login/pages/LoginOtp.stories.tsx +18 -0
  653. package/stories/login/pages/LoginPageExpired.stories.tsx +18 -0
  654. package/stories/login/pages/LoginPassword.stories.tsx +18 -0
  655. package/stories/login/pages/LoginRecoveryAuthnCodeConfig.stories.tsx +18 -0
  656. package/stories/login/pages/LoginRecoveryAuthnCodeInput.stories.tsx +18 -0
  657. package/stories/login/pages/LoginResetOtp.stories.tsx +18 -0
  658. package/stories/login/pages/LoginResetPassword.stories.tsx +31 -0
  659. package/stories/login/pages/LoginUpdatePassword.stories.tsx +18 -0
  660. package/stories/login/pages/LoginUpdateProfile.stories.tsx +18 -0
  661. package/stories/login/pages/LoginUsername.stories.tsx +31 -0
  662. package/stories/login/pages/LoginVerifyEmail.stories.tsx +30 -0
  663. package/stories/login/pages/LoginX509Info.stories.tsx +18 -0
  664. package/stories/login/pages/LogoutConfirm.stories.tsx +18 -0
  665. package/stories/login/pages/Register.stories.tsx +135 -0
  666. package/stories/login/pages/SamlPostForm.stories.tsx +18 -0
  667. package/stories/login/pages/SelectAuthenticator.stories.tsx +43 -0
  668. package/stories/login/pages/Terms.stories.tsx +42 -0
  669. package/stories/login/pages/UpdateEmail.stories.tsx +18 -0
  670. package/stories/login/pages/WebauthnAuthenticate.stories.tsx +18 -0
  671. package/stories/login/pages/WebauthnError.stories.tsx +18 -0
  672. package/stories/login/pages/WebauthnRegister.stories.tsx +18 -0
  673. package/tools/Array.prototype.every.js +2 -1
  674. package/tools/Array.prototype.every.js.map +1 -1
  675. package/tools/ExtractAfterStartingWith.d.ts +1 -0
  676. package/tools/ExtractAfterStartingWith.js +2 -0
  677. package/tools/ExtractAfterStartingWith.js.map +1 -0
  678. package/tools/HTMLElement.prototype.prepend.js.map +1 -1
  679. package/tools/Object.fromEntries.d.ts +1 -0
  680. package/tools/Object.fromEntries.js +17 -0
  681. package/tools/Object.fromEntries.js.map +1 -0
  682. package/tools/StatefulObservable/StatefulObservable.d.ts +8 -0
  683. package/tools/StatefulObservable/StatefulObservable.js +36 -0
  684. package/tools/StatefulObservable/StatefulObservable.js.map +1 -0
  685. package/tools/StatefulObservable/hooks/index.d.ts +2 -0
  686. package/tools/StatefulObservable/hooks/index.js +3 -0
  687. package/tools/StatefulObservable/hooks/index.js.map +1 -0
  688. package/tools/StatefulObservable/hooks/useObservable.d.ts +8 -0
  689. package/tools/StatefulObservable/hooks/useObservable.js +17 -0
  690. package/tools/StatefulObservable/hooks/useObservable.js.map +1 -0
  691. package/tools/StatefulObservable/hooks/useRerenderOnChange.d.ts +5 -0
  692. package/tools/StatefulObservable/hooks/useRerenderOnChange.js +14 -0
  693. package/tools/StatefulObservable/hooks/useRerenderOnChange.js.map +1 -0
  694. package/tools/StatefulObservable/index.d.ts +2 -0
  695. package/tools/StatefulObservable/index.js +3 -0
  696. package/tools/StatefulObservable/index.js.map +1 -0
  697. package/tools/ValueOf.d.ts +2 -0
  698. package/tools/ValueOf.js +2 -0
  699. package/tools/ValueOf.js.map +1 -0
  700. package/tools/clsx.d.ts +3 -2
  701. package/tools/clsx.js +5 -41
  702. package/tools/clsx.js.map +1 -1
  703. package/tools/clsx_withTransform.d.ts +5 -0
  704. package/tools/clsx_withTransform.js +43 -0
  705. package/tools/clsx_withTransform.js.map +1 -0
  706. package/tools/deepAssign.d.ts +1 -0
  707. package/tools/deepAssign.js +41 -16
  708. package/tools/deepAssign.js.map +1 -1
  709. package/tools/formatNumber.js +2 -1
  710. package/tools/formatNumber.js.map +1 -1
  711. package/tools/structuredCloneButFunctions.d.ts +7 -0
  712. package/tools/structuredCloneButFunctions.js +19 -0
  713. package/tools/structuredCloneButFunctions.js.map +1 -0
  714. package/tools/useConstCallback.js.map +1 -1
  715. package/tools/useInsertLinkTags.d.ts +11 -6
  716. package/tools/useInsertLinkTags.js +53 -52
  717. package/tools/useInsertLinkTags.js.map +1 -1
  718. package/tools/useInsertScriptTags.d.ts +15 -6
  719. package/tools/useInsertScriptTags.js +56 -61
  720. package/tools/useInsertScriptTags.js.map +1 -1
  721. package/tools/useOnFirstMount.d.ts +2 -0
  722. package/tools/useOnFirstMount.js +15 -0
  723. package/tools/useOnFirstMount.js.map +1 -0
  724. package/tools/useSetClassName.js.map +1 -1
  725. package/vite-plugin/index.d.ts +1 -0
  726. package/vite-plugin/index.js +53389 -0
  727. package/vite-plugin/vite-plugin.d.ts +5 -0
  728. package/account/Fallback.d.ts +0 -5
  729. package/account/Fallback.js.map +0 -1
  730. package/account/kcContext/KcContext.js.map +0 -1
  731. package/account/kcContext/createGetKcContext.d.ts +0 -19
  732. package/account/kcContext/createGetKcContext.js +0 -73
  733. package/account/kcContext/createGetKcContext.js.map +0 -1
  734. package/account/kcContext/getKcContext.d.ts +0 -13
  735. package/account/kcContext/getKcContext.js +0 -13
  736. package/account/kcContext/getKcContext.js.map +0 -1
  737. package/account/kcContext/getKcContextFromWindow.d.ts +0 -8
  738. package/account/kcContext/getKcContextFromWindow.js +0 -5
  739. package/account/kcContext/getKcContextFromWindow.js.map +0 -1
  740. package/account/kcContext/index.d.ts +0 -1
  741. package/account/kcContext/index.js +0 -2
  742. package/account/kcContext/index.js.map +0 -1
  743. package/account/kcContext/kcContextMocks.js +0 -215
  744. package/account/kcContext/kcContextMocks.js.map +0 -1
  745. package/account/lib/useGetClassName.d.ts +0 -7
  746. package/account/lib/useGetClassName.js +0 -19
  747. package/account/lib/useGetClassName.js.map +0 -1
  748. package/lib/isStorybook.d.ts +0 -1
  749. package/lib/isStorybook.js +0 -2
  750. package/lib/isStorybook.js.map +0 -1
  751. package/lib/useGetClassName.d.ts +0 -10
  752. package/lib/useGetClassName.js +0 -14
  753. package/lib/useGetClassName.js.map +0 -1
  754. package/login/Fallback.js.map +0 -1
  755. package/login/kcContext/KcContext.js.map +0 -1
  756. package/login/kcContext/createGetKcContext.d.ts +0 -19
  757. package/login/kcContext/createGetKcContext.js +0 -109
  758. package/login/kcContext/createGetKcContext.js.map +0 -1
  759. package/login/kcContext/getKcContext.d.ts +0 -13
  760. package/login/kcContext/getKcContext.js +0 -13
  761. package/login/kcContext/getKcContext.js.map +0 -1
  762. package/login/kcContext/getKcContextFromWindow.d.ts +0 -8
  763. package/login/kcContext/getKcContextFromWindow.js +0 -5
  764. package/login/kcContext/getKcContextFromWindow.js.map +0 -1
  765. package/login/kcContext/index.d.ts +0 -1
  766. package/login/kcContext/index.js +0 -2
  767. package/login/kcContext/index.js.map +0 -1
  768. package/login/kcContext/kcContextMocks.js +0 -390
  769. package/login/kcContext/kcContextMocks.js.map +0 -1
  770. package/login/lib/useGetClassName.d.ts +0 -7
  771. package/login/lib/useGetClassName.js +0 -130
  772. package/login/lib/useGetClassName.js.map +0 -1
  773. package/src/account/kcContext/createGetKcContext.ts +0 -108
  774. package/src/account/kcContext/getKcContext.ts +0 -21
  775. package/src/account/kcContext/getKcContextFromWindow.ts +0 -11
  776. package/src/account/kcContext/index.ts +0 -1
  777. package/src/account/kcContext/kcContextMocks.ts +0 -260
  778. package/src/account/lib/useGetClassName.ts +0 -20
  779. package/src/bin/download-builtin-keycloak-theme.ts +0 -30
  780. package/src/bin/eject-keycloak-page.ts +0 -126
  781. package/src/bin/keycloakify/generateSrcMainResources/bringInAccountV1.ts +0 -79
  782. package/src/bin/keycloakify/generateSrcMainResources/generateSrcMainResources.ts +0 -32
  783. package/src/bin/keycloakify/generateSrcMainResources/generateSrcMainResourcesForMainTheme.ts +0 -261
  784. package/src/bin/keycloakify/generateSrcMainResources/generateSrcMainResourcesForThemeVariant.ts +0 -56
  785. package/src/bin/keycloakify/generateSrcMainResources/index.ts +0 -1
  786. package/src/bin/keycloakify/generateStartKeycloakTestingContainer.ts +0 -60
  787. package/src/bin/shared/buildOptions.ts +0 -277
  788. package/src/bin/shared/downloadAndUnzip.ts +0 -203
  789. package/src/bin/shared/downloadBuiltinKeycloakTheme.ts +0 -264
  790. package/src/bin/shared/getJarFileBasename.ts +0 -9
  791. package/src/bin/shared/getThemeSrcDirPath.ts +0 -47
  792. package/src/bin/start-keycloak.ts +0 -236
  793. package/src/bin/tools/unzip.ts +0 -141
  794. package/src/lib/isStorybook.ts +0 -1
  795. package/src/lib/useGetClassName.ts +0 -18
  796. package/src/login/kcContext/createGetKcContext.ts +0 -159
  797. package/src/login/kcContext/getKcContext.ts +0 -21
  798. package/src/login/kcContext/getKcContextFromWindow.ts +0 -11
  799. package/src/login/kcContext/index.ts +0 -1
  800. package/src/login/kcContext/kcContextMocks.ts +0 -630
  801. package/src/login/lib/useGetClassName.ts +0 -132
  802. package/src/tools/AndByDiscriminatingKey.ts +0 -25
  803. package/src/tools/deepClone.ts +0 -17
  804. package/src/tools/memoize.ts +0 -55
  805. package/tools/AndByDiscriminatingKey.d.ts +0 -5
  806. package/tools/AndByDiscriminatingKey.js +0 -2
  807. package/tools/AndByDiscriminatingKey.js.map +0 -1
  808. package/tools/deepClone.d.ts +0 -2
  809. package/tools/deepClone.js +0 -14
  810. package/tools/deepClone.js.map +0 -1
  811. package/tools/memoize.d.ts +0 -7
  812. package/tools/memoize.js +0 -38
  813. package/tools/memoize.js.map +0 -1
  814. /package/account/{kcContext → KcContext}/KcContext.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/login/i18n/i18n.tsx"],"names":[],"mappings":";AAAA,OAAO,sCAAsC,CAAC;AAC9C,kIAAkI;AAClI,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,gBAAgB,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAA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EAAE,GAAG,IAAI,EAAE,EAAE,CAC1B,kBAAkB,CAAC;gBACf,GAAG;gBACH,IAAI;gBACJ,cAAc,EAAE,IAAI;aACvB,CAAgB;YACrB,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,EAAE,CAC7B,kBAAkB,CAAC;gBACf,GAAG;gBACH,IAAI;gBACJ,cAAc,EAAE,KAAK;aACxB,CAAW;SACnB,CAAC;IACN,CAAC;IAED,OAAO,EAAE,8BAA8B,EAAE,CAAC;AAC9C,CAAC"}
@@ -1 +1,5 @@
1
- export type { I18n } from "./i18n";
1
+ import type { GenericI18n, MessageKey, KcContextLike } from "./i18n";
2
+ export type { MessageKey, KcContextLike };
3
+ export type I18n = GenericI18n<MessageKey>;
4
+ export { createUseI18n } from "./i18n";
5
+ export { fallbackLanguageTag } from "./i18n";
@@ -1,2 +1,3 @@
1
- export {};
1
+ export { createUseI18n } from "./i18n";
2
+ export { fallbackLanguageTag } from "./i18n";
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/login/i18n/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/login/i18n/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC"}
package/login/index.d.ts CHANGED
@@ -1,8 +1,4 @@
1
- import Fallback from "../login/Fallback";
2
- export default Fallback;
1
+ export type { ExtendKcContext, Attribute } from "../login/KcContext";
2
+ export type { ClassKey } from "../login/TemplateProps";
3
3
  export { useDownloadTerms } from "../login/lib/useDownloadTerms";
4
- export { getKcContext } from "../login/kcContext/getKcContext";
5
- export { createGetKcContext } from "../login/kcContext/createGetKcContext";
6
- export type { LoginThemePageId as PageId } from "../bin/shared/constants";
7
- export { createUseI18n } from "../login/i18n/i18n";
8
- export type { PageProps } from "../login/pages/PageProps";
4
+ export { createUseI18n } from "../login/i18n";
package/login/index.js CHANGED
@@ -1,7 +1,3 @@
1
- import Fallback from "../login/Fallback";
2
- export default Fallback;
3
1
  export { useDownloadTerms } from "../login/lib/useDownloadTerms";
4
- export { getKcContext } from "../login/kcContext/getKcContext";
5
- export { createGetKcContext } from "../login/kcContext/createGetKcContext";
6
- export { createUseI18n } from "../login/i18n/i18n";
2
+ export { createUseI18n } from "../login/i18n";
7
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/login/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAElD,eAAe,QAAQ,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/login/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ClassKey } from "../../login/TemplateProps";
2
+ export declare const getKcClsx: (params: {
3
+ doUseDefaultCss: boolean;
4
+ classes: Partial<Record<ClassKey, string>> | undefined;
5
+ }) => {
6
+ kcClsx: (...args: import("../../tools/clsx_withTransform").CxArg<ClassKey>[]) => string;
7
+ };
8
+ export type { ClassKey };
9
+ export type KcClsx = ReturnType<typeof getKcClsx>["kcClsx"];
@@ -0,0 +1,130 @@
1
+ import { createGetKcClsx } from "../../lib/getKcClsx";
2
+ export const { getKcClsx } = createGetKcClsx({
3
+ defaultClasses: {
4
+ kcHtmlClass: "login-pf",
5
+ kcBodyClass: undefined,
6
+ kcHeaderWrapperClass: undefined,
7
+ kcLocaleWrapperClass: undefined,
8
+ kcInfoAreaWrapperClass: undefined,
9
+ kcFormButtonsWrapperClass: undefined,
10
+ kcFormOptionsWrapperClass: undefined,
11
+ kcLocaleDropDownClass: undefined,
12
+ kcLocaleListItemClass: undefined,
13
+ kcContentWrapperClass: undefined,
14
+ kcCheckboxInputClass: undefined,
15
+ "kcLogoIdP-facebook": "fa fa-facebook",
16
+ kcAuthenticatorOTPClass: "fa fa-mobile list-view-pf-icon-lg",
17
+ "kcLogoIdP-bitbucket": "fa fa-bitbucket",
18
+ kcAuthenticatorWebAuthnClass: "fa fa-key list-view-pf-icon-lg",
19
+ kcWebAuthnDefaultIcon: "pficon pficon-key",
20
+ "kcLogoIdP-stackoverflow": "fa fa-stack-overflow",
21
+ kcSelectAuthListItemClass: "pf-l-stack__item select-auth-box-parent pf-l-split",
22
+ "kcLogoIdP-microsoft": "fa fa-windows",
23
+ kcLoginOTPListItemHeaderClass: "pf-c-tile__header",
24
+ kcLocaleItemClass: "pf-c-dropdown__menu-item",
25
+ kcLoginOTPListItemIconBodyClass: "pf-c-tile__icon",
26
+ kcInputHelperTextAfterClass: "pf-c-form__helper-text pf-c-form__helper-text-after",
27
+ kcFormClass: "form-horizontal",
28
+ kcSelectAuthListClass: "pf-l-stack select-auth-container",
29
+ kcInputClassRadioCheckboxLabelDisabled: "pf-m-disabled",
30
+ kcSelectAuthListItemIconClass: "pf-l-split__item select-auth-box-icon",
31
+ kcRecoveryCodesWarning: "kc-recovery-codes-warning",
32
+ kcFormSettingClass: "login-pf-settings",
33
+ kcWebAuthnBLE: "fa fa-bluetooth-b",
34
+ kcInputWrapperClass: "col-xs-12 col-sm-12 col-md-12 col-lg-12",
35
+ kcSelectAuthListItemArrowIconClass: "fa fa-angle-right fa-lg",
36
+ kcFeedbackAreaClass: "col-md-12",
37
+ kcFormPasswordVisibilityButtonClass: "pf-c-button pf-m-control",
38
+ "kcLogoIdP-google": "fa fa-google",
39
+ kcCheckLabelClass: "pf-c-check__label",
40
+ kcSelectAuthListItemFillClass: "pf-l-split__item pf-m-fill",
41
+ kcAuthenticatorDefaultClass: "fa fa-list list-view-pf-icon-lg",
42
+ "kcLogoIdP-gitlab": "fa fa-gitlab",
43
+ kcFormAreaClass: "col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-8 col-lg-offset-2",
44
+ kcFormButtonsClass: "col-xs-12 col-sm-12 col-md-12 col-lg-12",
45
+ kcInputClassRadioLabel: "pf-c-radio__label",
46
+ kcAuthenticatorWebAuthnPasswordlessClass: "fa fa-key list-view-pf-icon-lg",
47
+ kcSelectAuthListItemHeadingClass: "pf-l-stack__item select-auth-box-headline pf-c-title",
48
+ kcInfoAreaClass: "col-xs-12 col-sm-4 col-md-4 col-lg-5 details",
49
+ kcLogoLink: "http://www.keycloak.org",
50
+ kcContainerClass: "container-fluid",
51
+ kcSelectAuthListItemTitle: "select-auth-box-paragraph",
52
+ kcLoginOTPListItemTitleClass: "pf-c-tile__title",
53
+ "kcLogoIdP-openshift-v4": "pf-icon pf-icon-openshift",
54
+ kcWebAuthnUnknownIcon: "pficon pficon-key unknown-transport-class",
55
+ kcFormSocialAccountNameClass: "kc-social-provider-name",
56
+ "kcLogoIdP-openshift-v3": "pf-icon pf-icon-openshift",
57
+ kcLoginOTPListInputClass: "pf-c-tile__input",
58
+ kcWebAuthnUSB: "fa fa-usb",
59
+ kcInputClassRadio: "pf-c-radio",
60
+ kcWebAuthnKeyIcon: "pficon pficon-key",
61
+ kcFeedbackInfoIcon: "fa fa-fw fa-info-circle",
62
+ kcCommonLogoIdP: "kc-social-provider-logo kc-social-gray",
63
+ kcRecoveryCodesActions: "kc-recovery-codes-actions",
64
+ kcFormGroupHeader: "pf-c-form__group",
65
+ kcFormSocialAccountSectionClass: "kc-social-section kc-social-gray",
66
+ "kcLogoIdP-instagram": "fa fa-instagram",
67
+ kcAlertClass: "pf-c-alert pf-m-inline",
68
+ kcHeaderClass: "login-pf-page-header",
69
+ kcLabelWrapperClass: "col-xs-12 col-sm-12 col-md-12 col-lg-12",
70
+ kcFormPasswordVisibilityIconShow: "fa fa-eye",
71
+ kcFormSocialAccountLinkClass: "pf-c-login__main-footer-links-item-link",
72
+ kcLocaleMainClass: "pf-c-dropdown",
73
+ kcInputGroup: "pf-c-input-group",
74
+ kcTextareaClass: "form-control",
75
+ kcButtonBlockClass: "pf-m-block",
76
+ kcButtonClass: "pf-c-button",
77
+ kcWebAuthnNFC: "fa fa-wifi",
78
+ kcLocaleClass: "col-xs-12 col-sm-1",
79
+ kcInputClassCheckboxInput: "pf-c-check__input",
80
+ kcFeedbackErrorIcon: "fa fa-fw fa-exclamation-circle",
81
+ kcInputLargeClass: "input-lg",
82
+ kcInputErrorMessageClass: "pf-c-form__helper-text pf-m-error required kc-feedback-text",
83
+ kcRecoveryCodesList: "kc-recovery-codes-list",
84
+ kcFormSocialAccountListClass: "pf-c-login__main-footer-links kc-social-links",
85
+ kcAlertTitleClass: "pf-c-alert__title kc-feedback-text",
86
+ kcAuthenticatorPasswordClass: "fa fa-unlock list-view-pf-icon-lg",
87
+ kcCheckInputClass: "pf-c-check__input",
88
+ "kcLogoIdP-linkedin": "fa fa-linkedin",
89
+ "kcLogoIdP-twitter": "fa fa-twitter",
90
+ kcFeedbackWarningIcon: "fa fa-fw fa-exclamation-triangle",
91
+ kcResetFlowIcon: "pficon pficon-arrow fa",
92
+ kcSelectAuthListItemIconPropertyClass: "fa-2x select-auth-box-icon-properties",
93
+ kcFeedbackSuccessIcon: "fa fa-fw fa-check-circle",
94
+ kcLoginOTPListClass: "pf-c-tile",
95
+ kcSrOnlyClass: "sr-only",
96
+ kcFormSocialAccountListGridClass: "pf-l-grid kc-social-grid",
97
+ kcButtonDefaultClass: "btn-default",
98
+ kcFormGroupErrorClass: "has-error",
99
+ kcSelectAuthListItemDescriptionClass: "pf-l-stack__item select-auth-box-desc",
100
+ kcSelectAuthListItemBodyClass: "pf-l-split__item pf-l-stack",
101
+ kcWebAuthnInternal: "pficon pficon-key",
102
+ kcSelectAuthListItemArrowClass: "pf-l-split__item select-auth-box-arrow",
103
+ kcCheckClass: "pf-c-check",
104
+ kcContentClass: "col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-6 col-lg-offset-3",
105
+ kcLogoClass: "login-pf-brand",
106
+ kcLoginOTPListItemIconClass: "fa fa-mobile",
107
+ kcLoginClass: "login-pf-page",
108
+ kcSignUpClass: "login-pf-signup",
109
+ kcButtonLargeClass: "btn-lg",
110
+ kcFormCardClass: "card-pf",
111
+ kcLocaleListClass: "pf-c-dropdown__menu pf-m-align-right",
112
+ kcInputClass: "pf-c-form-control",
113
+ kcFormGroupClass: "form-group",
114
+ "kcLogoIdP-paypal": "fa fa-paypal",
115
+ kcInputClassCheckbox: "pf-c-check",
116
+ kcRecoveryCodesConfirmation: "kc-recovery-codes-confirmation",
117
+ kcFormPasswordVisibilityIconHide: "fa fa-eye-slash",
118
+ kcInputClassRadioInput: "pf-c-radio__input",
119
+ kcFormSocialAccountListButtonClass: "pf-c-button pf-m-control pf-m-block kc-social-item kc-social-gray",
120
+ kcInputClassCheckboxLabel: "pf-c-check__label",
121
+ kcFormOptionsClass: "col-xs-12 col-sm-12 col-md-12 col-lg-12",
122
+ kcFormHeaderClass: "login-pf-header",
123
+ kcFormSocialAccountGridItem: "pf-l-grid__item",
124
+ kcButtonPrimaryClass: "pf-m-primary",
125
+ kcInputHelperTextBeforeClass: "pf-c-form__helper-text pf-c-form__helper-text-before",
126
+ "kcLogoIdP-github": "fa fa-github",
127
+ kcLabelClass: "pf-c-form__label pf-c-form__label-text"
128
+ }
129
+ });
130
+ //# sourceMappingURL=kcClsx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kcClsx.js","sourceRoot":"","sources":["../../src/login/lib/kcClsx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG5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AgB;QACtC,mBAAmB,EAAE,eAAe;QACpC,qBAAqB,EAAE,kCAAkC;QACzD,eAAe,EAAE,wBAAwB;QACzC,qCAAqC,EAAE,uCAAuC;QAC9E,qBAAqB,EAAE,0BAA0B;QACjD,mBAAmB,EAAE,WAAW;QAChC,aAAa,EAAE,SAAS;QACxB,gCAAgC,EAAE,0BAA0B;QAC5D,oBAAoB,EAAE,aAAa;QACnC,qBAAqB,EAAE,WAAW;QAClC,oCAAoC,EAAE,uCAAuC;QAC7E,6BAA6B,EAAE,6BAA6B;QAC5D,kBAAkB,EAAE,mBAAmB;QACvC,8BAA8B,EAAE,wCAAwC;QACxE,YAAY,EAAE,YAAY;QAC1B,cAAc,EACV,4EAA4E;QAChF,WAAW,EAAE,gBAAgB;QAC7B,2BAA2B,EAAE,cAAc;QAC3C,YAAY,EAAE,eAAe;QAC7B,aAAa,EAAE,iBAAiB;QAChC,kBAAkB,EAAE,QAAQ;QAC5B,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,sCAAsC;QACzD,YAAY,EAAE,mBAAmB;QACjC,gBAAgB,EAAE,YAAY;QAC9B,kBAAkB,EAAE,cAAc;QAClC,oBAAoB,EAAE,YAAY;QAClC,2BAA2B,EAAE,gCAAgC;QAC7D,gCAAgC,EAAE,iBAAiB;QACnD,sBAAsB,EAAE,mBAAmB;QAC3C,kCAAkC,EAC9B,mEAAmE;QACvE,yBAAyB,EAAE,mBAAmB;QAC9C,kBAAkB,EAAE,yCAAyC;QAC7D,iBAAiB,EAAE,iBAAiB;QACpC,2BAA2B,EAAE,iBAAiB;QAC9C,oBAAoB,EAAE,cAAc;QACpC,4BAA4B,EACxB,sDAAsD;QAC1D,kBAAkB,EAAE,cAAc;QAClC,YAAY,EAAE,wCAAwC;KACzD;CACJ,CAAC,CAAC"}
@@ -8,10 +8,19 @@ export type KcContextLike = {
8
8
  /** Allow to avoid bundling the terms and download it on demand*/
9
9
  export declare function useDownloadTerms(params: {
10
10
  kcContext: KcContextLike;
11
- downloadTermMarkdown: (params: {
11
+ downloadTermsMarkdown: (params: {
12
12
  currentLanguageTag: string;
13
- }) => Promise<string>;
13
+ }) => Promise<{
14
+ termsMarkdown: string;
15
+ termsLanguageTag: string | undefined;
16
+ }>;
14
17
  }): void;
15
18
  export declare function useTermsMarkdown(): {
16
- termsMarkdown: string | undefined;
19
+ isDownloadComplete: false;
20
+ termsMarkdown?: undefined;
21
+ termsLanguageTag?: undefined;
22
+ } | {
23
+ isDownloadComplete: boolean;
24
+ termsMarkdown: string;
25
+ termsLanguageTag: string | undefined;
17
26
  };
@@ -1,32 +1,27 @@
1
- import { useEffect } from "react";
2
- import { memoize } from "../../tools/memoize";
3
- import { fallbackLanguageTag } from "../../login/i18n/i18n";
4
- import { useConst } from "../../tools/useConst";
5
- import { useConstCallback } from "../../tools/useConstCallback";
1
+ import { fallbackLanguageTag } from "../../login/i18n";
6
2
  import { assert } from "tsafe/assert";
7
- import { Evt } from "evt";
8
- import { useRerenderOnStateChange } from "evt/hooks/useRerenderOnStateChange";
9
- const evtTermsMarkdown = Evt.create(undefined);
3
+ import { createStatefulObservable, useRerenderOnChange } from "../../tools/StatefulObservable";
4
+ import { useOnFistMount } from "../../tools/useOnFirstMount";
5
+ const obs = createStatefulObservable(() => undefined);
10
6
  assert();
11
7
  /** Allow to avoid bundling the terms and download it on demand*/
12
8
  export function useDownloadTerms(params) {
13
- const { kcContext } = params;
14
- const { downloadTermMarkdownMemoized } = (function useClosure() {
15
- const { downloadTermMarkdown } = params;
16
- const downloadTermMarkdownConst = useConstCallback(downloadTermMarkdown);
17
- const downloadTermMarkdownMemoized = useConst(() => memoize((currentLanguageTag) => downloadTermMarkdownConst({ currentLanguageTag })));
18
- return { downloadTermMarkdownMemoized };
19
- })();
20
- useEffect(() => {
9
+ const { kcContext, downloadTermsMarkdown } = params;
10
+ useOnFistMount(async () => {
21
11
  var _a, _b;
22
12
  if (kcContext.pageId === "terms.ftl" || kcContext.termsAcceptanceRequired) {
23
- downloadTermMarkdownMemoized((_b = (_a = kcContext.locale) === null || _a === void 0 ? void 0 : _a.currentLanguageTag) !== null && _b !== void 0 ? _b : fallbackLanguageTag).then(thermMarkdown => (evtTermsMarkdown.state = thermMarkdown));
13
+ obs.current = await downloadTermsMarkdown({
14
+ currentLanguageTag: (_b = (_a = kcContext.locale) === null || _a === void 0 ? void 0 : _a.currentLanguageTag) !== null && _b !== void 0 ? _b : fallbackLanguageTag
15
+ });
24
16
  }
25
- }, []);
17
+ });
26
18
  }
27
19
  export function useTermsMarkdown() {
28
- useRerenderOnStateChange(evtTermsMarkdown);
29
- const termsMarkdown = evtTermsMarkdown.state;
30
- return { termsMarkdown };
20
+ useRerenderOnChange(obs);
21
+ if (obs.current === undefined) {
22
+ return { isDownloadComplete: false };
23
+ }
24
+ const { termsMarkdown, termsLanguageTag } = obs.current;
25
+ return { isDownloadComplete: true, termsMarkdown, termsLanguageTag };
31
26
  }
32
27
  //# sourceMappingURL=useDownloadTerms.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDownloadTerms.js","sourceRoot":"","sources":["../../src/login/lib/useDownloadTerms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAG9E,MAAM,gBAAgB,GAAG,GAAG,CAAC,MAAM,CAAqB,SAAS,CAAC,CAAC;AAUnE,MAAM,EAAkD,CAAC;AAEzD,iEAAiE;AACjE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,mBAAmB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAGnE,MAAM,GAAG,GAAG,wBAAwB,CAMlC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;AAUnB,MAAM,EAAkD,CAAC;AAEzD,iEAAiE;AACjE,MAAM,UAAU,gBAAgB,CAAC,MAKhC;IACG,MAAM,EAAE,SAAS,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;IAEpD,cAAc,CAAC,KAAK,IAAI,EAAE;;QACtB,IAAI,SAAS,CAAC,MAAM,KAAK,WAAW,IAAI,SAAS,CAAC,uBAAuB,EAAE;YACvE,GAAG,CAAC,OAAO,GAAG,MAAM,qBAAqB,CAAC;gBACtC,kBAAkB,EACd,MAAA,MAAA,SAAS,CAAC,MAAM,0CAAE,kBAAkB,mCAAI,mBAAmB;aAClE,CAAC,CAAC;SACN;IACL,CAAC,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC5B,mBAAmB,CAAC,GAAG,CAAC,CAAC;IAEzB,IAAI,GAAG,CAAC,OAAO,KAAK,SAAS,EAAE;QAC3B,OAAO,EAAE,kBAAkB,EAAE,KAAc,EAAE,CAAC;KACjD;IAED,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC;IAExD,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC;AACzE,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import "../../tools/Array.prototype.every";
2
2
  import { type Dispatch } from "react";
3
- import type { Attribute, Validators } from "../../login/kcContext/KcContext";
4
- import type { KcContext, PasswordPolicies } from "../../login/kcContext/KcContext";
3
+ import type { PasswordPolicies, Attribute, Validators } from "../../login/KcContext";
4
+ import type { KcContext } from "../KcContext";
5
+ import { KcContextLike as KcContextLike_i18n } from "../../login/i18n";
5
6
  import type { I18n } from "../i18n";
6
7
  export type FormFieldError = {
7
8
  errorMessage: JSX.Element;
@@ -47,22 +48,20 @@ export type FormAction = {
47
48
  name: string;
48
49
  fieldIndex: number | undefined;
49
50
  };
50
- export type KcContextLike = {
51
- messagesPerField: Pick<KcContext.Common["messagesPerField"], "existsError" | "get">;
51
+ export type KcContextLike = KcContextLike_i18n & KcContextLike_useGetErrors & {
52
52
  profile: {
53
- attributes: Attribute[];
53
+ attributesByName: Record<string, Attribute>;
54
54
  html5DataAnnotations?: Record<string, string>;
55
55
  };
56
56
  passwordRequired?: boolean;
57
57
  realm: {
58
58
  registrationEmailAsUsername: boolean;
59
59
  };
60
- passwordPolicies?: PasswordPolicies;
61
60
  url: {
62
61
  resourcesPath: string;
63
62
  };
64
63
  };
65
- export type ParamsOfUseUserProfileForm = {
64
+ export type UseUserProfileFormParams = {
66
65
  kcContext: KcContextLike;
67
66
  i18n: I18n;
68
67
  doMakeUserConfirmPassword: boolean;
@@ -71,4 +70,17 @@ export type ReturnTypeOfUseUserProfileForm = {
71
70
  formState: FormState;
72
71
  dispatchFormAction: Dispatch<FormAction>;
73
72
  };
74
- export declare function useUserProfileForm(params: ParamsOfUseUserProfileForm): ReturnTypeOfUseUserProfileForm;
73
+ export declare function useUserProfileForm(params: UseUserProfileFormParams): ReturnTypeOfUseUserProfileForm;
74
+ type KcContextLike_useGetErrors = KcContextLike_i18n & {
75
+ messagesPerField: Pick<KcContext["messagesPerField"], "existsError" | "get">;
76
+ passwordPolicies?: PasswordPolicies;
77
+ };
78
+ export declare function getButtonToDisplayForMultivaluedAttributeField(params: {
79
+ attribute: Attribute;
80
+ values: string[];
81
+ fieldIndex: number;
82
+ }): {
83
+ hasRemove: boolean;
84
+ hasAdd: boolean;
85
+ };
86
+ export {};