keycloakify 10.0.0-rc.77 → 10.0.0-rc.78

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 (62) hide show
  1. package/account/i18n/i18n.d.ts +4 -4
  2. package/account/i18n/i18n.js +12 -34
  3. package/account/i18n/i18n.js.map +1 -1
  4. package/account/i18n/index.d.ts +1 -1
  5. package/account/i18n/index.js +1 -1
  6. package/account/i18n/index.js.map +1 -1
  7. package/account/i18n/useI18n.d.ts +13 -0
  8. package/account/i18n/useI18n.js +26 -0
  9. package/account/i18n/useI18n.js.map +1 -0
  10. package/bin/440.index.js +15 -19
  11. package/bin/751.index.js +0 -2
  12. package/bin/shared/constants.d.ts +0 -1
  13. package/bin/shared/constants.js +0 -1
  14. package/bin/shared/constants.js.map +1 -1
  15. package/login/KcContext/KcContext.d.ts +5 -1
  16. package/login/KcContext/KcContext.js +0 -1
  17. package/login/KcContext/KcContext.js.map +1 -1
  18. package/login/KcContext/kcContextMocks.js +4 -1
  19. package/login/KcContext/kcContextMocks.js.map +1 -1
  20. package/login/i18n/i18n.d.ts +7 -4
  21. package/login/i18n/i18n.js +23 -38
  22. package/login/i18n/i18n.js.map +1 -1
  23. package/login/i18n/index.d.ts +1 -1
  24. package/login/i18n/index.js +1 -1
  25. package/login/i18n/index.js.map +1 -1
  26. package/login/i18n/useI18n.d.ts +13 -0
  27. package/login/i18n/useI18n.js +26 -0
  28. package/login/i18n/useI18n.js.map +1 -0
  29. package/login/lib/useDownloadTerms.d.ts +5 -4
  30. package/login/lib/useDownloadTerms.js +26 -5
  31. package/login/lib/useDownloadTerms.js.map +1 -1
  32. package/login/pages/Register.js +7 -6
  33. package/login/pages/Register.js.map +1 -1
  34. package/login/pages/Terms.d.ts +1 -1
  35. package/login/pages/Terms.js +6 -4
  36. package/login/pages/Terms.js.map +1 -1
  37. package/package.json +15 -7
  38. package/src/account/i18n/i18n.tsx +19 -53
  39. package/src/account/i18n/index.ts +1 -1
  40. package/src/account/i18n/useI18n.ts +44 -0
  41. package/src/bin/keycloakify/generateFtl/generateFtl.ts +1 -6
  42. package/src/bin/keycloakify/generateFtl/kcContextDeclarationTemplate.ftl +8 -1
  43. package/src/bin/keycloakify/generateResources/generateMessageProperties.ts +23 -17
  44. package/src/bin/shared/constants.ts +0 -2
  45. package/src/login/KcContext/KcContext.ts +6 -14
  46. package/src/login/KcContext/kcContextMocks.ts +4 -1
  47. package/src/login/i18n/i18n.tsx +37 -58
  48. package/src/login/i18n/index.ts +1 -1
  49. package/src/login/i18n/useI18n.ts +44 -0
  50. package/src/login/lib/useDownloadTerms.tsx +88 -0
  51. package/src/login/pages/Register.tsx +12 -12
  52. package/src/login/pages/Terms.tsx +12 -11
  53. package/src/tools/react-markdown.ts +3 -0
  54. package/tools/react-markdown.d.ts +3 -0
  55. package/tools/react-markdown.js +4 -0
  56. package/tools/react-markdown.js.map +1 -0
  57. package/vite-plugin/index.js +0 -2
  58. package/src/login/lib/useDownloadTerms.ts +0 -57
  59. package/src/tools/Markdown.ts +0 -3
  60. package/tools/Markdown.d.ts +0 -2
  61. package/tools/Markdown.js +0 -3
  62. package/tools/Markdown.js.map +0 -1
@@ -80,15 +80,15 @@ export type GenericI18n<MessageKey extends string> = {
80
80
  */
81
81
  isFetchingTranslations: boolean;
82
82
  };
83
- export declare function createUseI18n<ExtraMessageKey extends string = never>(extraMessages: {
83
+ export declare function createGetI18n<ExtraMessageKey extends string = never>(messageBundle: {
84
84
  [languageTag: string]: {
85
85
  [key in ExtraMessageKey]: string;
86
86
  };
87
87
  }): {
88
- useI18n: (params: {
88
+ getI18n: (params: {
89
89
  kcContext: KcContextLike;
90
90
  }) => {
91
- i18n: GenericI18n<"region" | "icon" | "address" | "details" | "action" | "name" | "application" | "group" | "log" | "email" | "resource" | "date" | "user" | "password" | "account" | "sessions" | "totpAppFreeOTPName" | "totpAppMicrosoftAuthenticatorName" | "totpAppGoogleName" | "federatedIdentity" | "applications" | "people" | "doSave" | "doCancel" | "doLogOutAllSessions" | "doRemove" | "doAdd" | "doSignOut" | "doLogIn" | "doLink" | "noAccessMessage" | "personalInfoSidebarTitle" | "accountSecuritySidebarTitle" | "signingInSidebarTitle" | "deviceActivitySidebarTitle" | "linkedAccountsSidebarTitle" | "editAccountHtmlTitle" | "personalInfoHtmlTitle" | "federatedIdentitiesHtmlTitle" | "accountLogHtmlTitle" | "changePasswordHtmlTitle" | "deviceActivityHtmlTitle" | "sessionsHtmlTitle" | "accountManagementTitle" | "authenticatorTitle" | "applicationsHtmlTitle" | "linkedAccountsHtmlTitle" | "accountManagementWelcomeMessage" | "accountManagementBaseThemeCannotBeUsedDirectly" | "personalInfoIntroMessage" | "accountSecurityTitle" | "accountSecurityIntroMessage" | "applicationsIntroMessage" | "resourceIntroMessage" | "passwordLastUpdateMessage" | "updatePasswordTitle" | "updatePasswordMessageTitle" | "updatePasswordMessage" | "personalSubTitle" | "personalSubMessage" | "authenticatorCode" | "firstName" | "givenName" | "fullName" | "lastName" | "familyName" | "currentPassword" | "passwordConfirm" | "passwordNew" | "username" | "street" | "locality" | "postal_code" | "country" | "emailVerified" | "website" | "phoneNumber" | "phoneNumberVerified" | "gender" | "birthday" | "zoneinfo" | "gssDelegationCredential" | "profileScopeConsentText" | "emailScopeConsentText" | "addressScopeConsentText" | "phoneScopeConsentText" | "offlineAccessScopeConsentText" | "samlRoleListScopeConsentText" | "rolesScopeConsentText" | "role_admin" | "role_realm-admin" | "role_create-realm" | "role_view-realm" | "role_view-users" | "role_view-applications" | "role_view-groups" | "role_view-clients" | "role_view-events" | "role_view-identity-providers" | "role_view-consent" | "role_manage-realm" | "role_manage-users" | "role_manage-applications" | "role_manage-identity-providers" | "role_manage-clients" | "role_manage-events" | "role_view-profile" | "role_manage-account" | "role_manage-account-links" | "role_manage-consent" | "role_read-token" | "role_offline-access" | "role_uma_authorization" | "client_account" | "client_account-console" | "client_security-admin-console" | "client_admin-cli" | "client_realm-management" | "client_broker" | "requiredFields" | "allFieldsRequired" | "backToApplication" | "backTo" | "event" | "ip" | "client" | "clients" | "started" | "lastAccess" | "expires" | "authenticator" | "device-activity" | "availableRoles" | "grantedPermissions" | "grantedPersonalInfo" | "additionalGrants" | "inResource" | "fullAccess" | "offlineToken" | "revoke" | "configureAuthenticators" | "mobile" | "totpStep1" | "totpStep2" | "totpStep3" | "totpStep3DeviceName" | "totpManualStep2" | "totpManualStep3" | "totpUnableToScan" | "totpScanBarcode" | "totp.totp" | "totp.hotp" | "totpType" | "totpAlgorithm" | "totpDigits" | "totpInterval" | "totpCounter" | "totpDeviceName" | "irreversibleAction" | "deletingImplies" | "errasingData" | "loggingOutImmediately" | "accountUnusable" | "missingUsernameMessage" | "missingFirstNameMessage" | "invalidEmailMessage" | "missingLastNameMessage" | "missingEmailMessage" | "missingPasswordMessage" | "notMatchPasswordMessage" | "invalidUserMessage" | "updateReadOnlyAttributesRejectedMessage" | "missingTotpMessage" | "missingTotpDeviceNameMessage" | "invalidPasswordExistingMessage" | "invalidPasswordConfirmMessage" | "invalidTotpMessage" | "usernameExistsMessage" | "emailExistsMessage" | "readOnlyUserMessage" | "readOnlyUsernameMessage" | "readOnlyPasswordMessage" | "successTotpMessage" | "successTotpRemovedMessage" | "successGrantRevokedMessage" | "accountUpdatedMessage" | "accountPasswordUpdatedMessage" | "missingIdentityProviderMessage" | "invalidFederatedIdentityActionMessage" | "identityProviderNotFoundMessage" | "federatedIdentityLinkNotActiveMessage" | "federatedIdentityRemovingLastProviderMessage" | "identityProviderRedirectErrorMessage" | "identityProviderRemovedMessage" | "identityProviderAlreadyLinkedMessage" | "staleCodeAccountMessage" | "consentDenied" | "access-denied-when-idp-auth" | "accountDisabledMessage" | "accountTemporarilyDisabledMessage" | "invalidPasswordMinLengthMessage" | "invalidPasswordMaxLengthMessage" | "invalidPasswordMinLowerCaseCharsMessage" | "invalidPasswordMinDigitsMessage" | "invalidPasswordMinUpperCaseCharsMessage" | "invalidPasswordMinSpecialCharsMessage" | "invalidPasswordNotUsernameMessage" | "invalidPasswordNotEmailMessage" | "invalidPasswordRegexPatternMessage" | "invalidPasswordHistoryMessage" | "invalidPasswordBlacklistedMessage" | "invalidPasswordGenericMessage" | "myResources" | "myResourcesSub" | "doDeny" | "doRevoke" | "doApprove" | "doRemoveSharing" | "doRemoveRequest" | "peopleAccessResource" | "resourceManagedPolicies" | "resourceNoPermissionsGrantingAccess" | "anyAction" | "description" | "scopes" | "peopleSharingThisResource" | "shareWithOthers" | "needMyApproval" | "requestsWaitingApproval" | "requestor" | "owner" | "resourcesSharedWithMe" | "permissionRequestion" | "permission" | "shares" | "notBeingShared" | "notHaveAnyResource" | "noResourcesSharedWithYou" | "havePermissionRequestsWaitingForApproval" | "clickHereForDetails" | "resourceIsNotBeingShared" | "locale_ar" | "locale_ca" | "locale_cs" | "locale_de" | "locale_en" | "locale_es" | "locale_fr" | "locale_hu" | "locale_fa" | "locale_it" | "locale_ja" | "locale_lt" | "locale_nl" | "locale_no" | "locale_pl" | "locale_pt-BR" | "locale_ru" | "locale_sk" | "locale_sv" | "locale_th" | "locale_tr" | "locale_uk" | "locale_zh-CN" | "locale_fi" | "applicationName" | "applicationType" | "applicationInUse" | "clearAllFilter" | "activeFilters" | "filterByName" | "allApps" | "internalApps" | "thirdpartyApps" | "appResults" | "clientNotFoundMessage" | "authorizedProvider" | "authorizedProviderMessage" | "identityProvider" | "identityProviderMessage" | "socialLogin" | "userDefined" | "removeAccess" | "removeAccessMessage" | "authenticatorStatusMessage" | "authenticatorFinishSetUpTitle" | "authenticatorFinishSetUpMessage" | "authenticatorSubTitle" | "authenticatorSubMessage" | "authenticatorMobileTitle" | "authenticatorMobileMessage" | "authenticatorMobileFinishSetUpMessage" | "authenticatorActionSetup" | "authenticatorSMSTitle" | "authenticatorSMSMessage" | "authenticatorSMSFinishSetUpMessage" | "authenticatorDefaultStatus" | "authenticatorChangePhone" | "authenticatorMobileSetupTitle" | "smscodeIntroMessage" | "mobileSetupStep1" | "mobileSetupStep2" | "mobileSetupStep3" | "scanBarCode" | "enterBarCode" | "doCopy" | "doFinish" | "authenticatorSMSCodeSetupTitle" | "chooseYourCountry" | "enterYourPhoneNumber" | "sendVerficationCode" | "enterYourVerficationCode" | "authenticatorBackupCodesSetupTitle" | "realmName" | "doDownload" | "doPrint" | "generateNewBackupCodes" | "backtoAuthenticatorPage" | "resources" | "sharedwithMe" | "share" | "sharedwith" | "accessPermissions" | "permissionRequests" | "approve" | "approveAll" | "perPage" | "currentPage" | "sharetheResource" | "selectPermission" | "addPeople" | "addTeam" | "myPermissions" | "waitingforApproval" | "anyPermission" | "openshift.scope.user_info" | "openshift.scope.user_check-access" | "openshift.scope.user_full" | "openshift.scope.list-projects" | "error-invalid-value" | "error-invalid-blank" | "error-empty" | "error-invalid-length" | "error-invalid-length-too-short" | "error-invalid-length-too-long" | "error-invalid-email" | "error-invalid-number" | "error-number-out-of-range" | "error-number-out-of-range-too-small" | "error-number-out-of-range-too-big" | "error-pattern-no-match" | "error-invalid-uri" | "error-invalid-uri-scheme" | "error-invalid-uri-fragment" | "error-user-attribute-required" | "error-invalid-date" | "error-user-attribute-read-only" | "error-username-invalid-character" | "error-person-name-invalid-character" | "newPasswordSameAsOld" | "passwordConfirmNotMatch" | ExtraMessageKey>;
91
+ i18n: GenericI18n<"region" | "icon" | "address" | "details" | "action" | "name" | "application" | "group" | "log" | "email" | "resource" | "date" | "user" | "password" | "account" | "sessions" | "totpAppFreeOTPName" | "totpAppMicrosoftAuthenticatorName" | "totpAppGoogleName" | "federatedIdentity" | "applications" | "people" | ExtraMessageKey | "doSave" | "doCancel" | "doLogOutAllSessions" | "doRemove" | "doAdd" | "doSignOut" | "doLogIn" | "doLink" | "noAccessMessage" | "personalInfoSidebarTitle" | "accountSecuritySidebarTitle" | "signingInSidebarTitle" | "deviceActivitySidebarTitle" | "linkedAccountsSidebarTitle" | "editAccountHtmlTitle" | "personalInfoHtmlTitle" | "federatedIdentitiesHtmlTitle" | "accountLogHtmlTitle" | "changePasswordHtmlTitle" | "deviceActivityHtmlTitle" | "sessionsHtmlTitle" | "accountManagementTitle" | "authenticatorTitle" | "applicationsHtmlTitle" | "linkedAccountsHtmlTitle" | "accountManagementWelcomeMessage" | "accountManagementBaseThemeCannotBeUsedDirectly" | "personalInfoIntroMessage" | "accountSecurityTitle" | "accountSecurityIntroMessage" | "applicationsIntroMessage" | "resourceIntroMessage" | "passwordLastUpdateMessage" | "updatePasswordTitle" | "updatePasswordMessageTitle" | "updatePasswordMessage" | "personalSubTitle" | "personalSubMessage" | "authenticatorCode" | "firstName" | "givenName" | "fullName" | "lastName" | "familyName" | "currentPassword" | "passwordConfirm" | "passwordNew" | "username" | "street" | "locality" | "postal_code" | "country" | "emailVerified" | "website" | "phoneNumber" | "phoneNumberVerified" | "gender" | "birthday" | "zoneinfo" | "gssDelegationCredential" | "profileScopeConsentText" | "emailScopeConsentText" | "addressScopeConsentText" | "phoneScopeConsentText" | "offlineAccessScopeConsentText" | "samlRoleListScopeConsentText" | "rolesScopeConsentText" | "role_admin" | "role_realm-admin" | "role_create-realm" | "role_view-realm" | "role_view-users" | "role_view-applications" | "role_view-groups" | "role_view-clients" | "role_view-events" | "role_view-identity-providers" | "role_view-consent" | "role_manage-realm" | "role_manage-users" | "role_manage-applications" | "role_manage-identity-providers" | "role_manage-clients" | "role_manage-events" | "role_view-profile" | "role_manage-account" | "role_manage-account-links" | "role_manage-consent" | "role_read-token" | "role_offline-access" | "role_uma_authorization" | "client_account" | "client_account-console" | "client_security-admin-console" | "client_admin-cli" | "client_realm-management" | "client_broker" | "requiredFields" | "allFieldsRequired" | "backToApplication" | "backTo" | "event" | "ip" | "client" | "clients" | "started" | "lastAccess" | "expires" | "authenticator" | "device-activity" | "availableRoles" | "grantedPermissions" | "grantedPersonalInfo" | "additionalGrants" | "inResource" | "fullAccess" | "offlineToken" | "revoke" | "configureAuthenticators" | "mobile" | "totpStep1" | "totpStep2" | "totpStep3" | "totpStep3DeviceName" | "totpManualStep2" | "totpManualStep3" | "totpUnableToScan" | "totpScanBarcode" | "totp.totp" | "totp.hotp" | "totpType" | "totpAlgorithm" | "totpDigits" | "totpInterval" | "totpCounter" | "totpDeviceName" | "irreversibleAction" | "deletingImplies" | "errasingData" | "loggingOutImmediately" | "accountUnusable" | "missingUsernameMessage" | "missingFirstNameMessage" | "invalidEmailMessage" | "missingLastNameMessage" | "missingEmailMessage" | "missingPasswordMessage" | "notMatchPasswordMessage" | "invalidUserMessage" | "updateReadOnlyAttributesRejectedMessage" | "missingTotpMessage" | "missingTotpDeviceNameMessage" | "invalidPasswordExistingMessage" | "invalidPasswordConfirmMessage" | "invalidTotpMessage" | "usernameExistsMessage" | "emailExistsMessage" | "readOnlyUserMessage" | "readOnlyUsernameMessage" | "readOnlyPasswordMessage" | "successTotpMessage" | "successTotpRemovedMessage" | "successGrantRevokedMessage" | "accountUpdatedMessage" | "accountPasswordUpdatedMessage" | "missingIdentityProviderMessage" | "invalidFederatedIdentityActionMessage" | "identityProviderNotFoundMessage" | "federatedIdentityLinkNotActiveMessage" | "federatedIdentityRemovingLastProviderMessage" | "identityProviderRedirectErrorMessage" | "identityProviderRemovedMessage" | "identityProviderAlreadyLinkedMessage" | "staleCodeAccountMessage" | "consentDenied" | "access-denied-when-idp-auth" | "accountDisabledMessage" | "accountTemporarilyDisabledMessage" | "invalidPasswordMinLengthMessage" | "invalidPasswordMaxLengthMessage" | "invalidPasswordMinLowerCaseCharsMessage" | "invalidPasswordMinDigitsMessage" | "invalidPasswordMinUpperCaseCharsMessage" | "invalidPasswordMinSpecialCharsMessage" | "invalidPasswordNotUsernameMessage" | "invalidPasswordNotEmailMessage" | "invalidPasswordRegexPatternMessage" | "invalidPasswordHistoryMessage" | "invalidPasswordBlacklistedMessage" | "invalidPasswordGenericMessage" | "myResources" | "myResourcesSub" | "doDeny" | "doRevoke" | "doApprove" | "doRemoveSharing" | "doRemoveRequest" | "peopleAccessResource" | "resourceManagedPolicies" | "resourceNoPermissionsGrantingAccess" | "anyAction" | "description" | "scopes" | "peopleSharingThisResource" | "shareWithOthers" | "needMyApproval" | "requestsWaitingApproval" | "requestor" | "owner" | "resourcesSharedWithMe" | "permissionRequestion" | "permission" | "shares" | "notBeingShared" | "notHaveAnyResource" | "noResourcesSharedWithYou" | "havePermissionRequestsWaitingForApproval" | "clickHereForDetails" | "resourceIsNotBeingShared" | "locale_ar" | "locale_ca" | "locale_cs" | "locale_de" | "locale_en" | "locale_es" | "locale_fr" | "locale_hu" | "locale_fa" | "locale_it" | "locale_ja" | "locale_lt" | "locale_nl" | "locale_no" | "locale_pl" | "locale_pt-BR" | "locale_ru" | "locale_sk" | "locale_sv" | "locale_th" | "locale_tr" | "locale_uk" | "locale_zh-CN" | "locale_fi" | "applicationName" | "applicationType" | "applicationInUse" | "clearAllFilter" | "activeFilters" | "filterByName" | "allApps" | "internalApps" | "thirdpartyApps" | "appResults" | "clientNotFoundMessage" | "authorizedProvider" | "authorizedProviderMessage" | "identityProvider" | "identityProviderMessage" | "socialLogin" | "userDefined" | "removeAccess" | "removeAccessMessage" | "authenticatorStatusMessage" | "authenticatorFinishSetUpTitle" | "authenticatorFinishSetUpMessage" | "authenticatorSubTitle" | "authenticatorSubMessage" | "authenticatorMobileTitle" | "authenticatorMobileMessage" | "authenticatorMobileFinishSetUpMessage" | "authenticatorActionSetup" | "authenticatorSMSTitle" | "authenticatorSMSMessage" | "authenticatorSMSFinishSetUpMessage" | "authenticatorDefaultStatus" | "authenticatorChangePhone" | "authenticatorMobileSetupTitle" | "smscodeIntroMessage" | "mobileSetupStep1" | "mobileSetupStep2" | "mobileSetupStep3" | "scanBarCode" | "enterBarCode" | "doCopy" | "doFinish" | "authenticatorSMSCodeSetupTitle" | "chooseYourCountry" | "enterYourPhoneNumber" | "sendVerficationCode" | "enterYourVerficationCode" | "authenticatorBackupCodesSetupTitle" | "realmName" | "doDownload" | "doPrint" | "generateNewBackupCodes" | "backtoAuthenticatorPage" | "resources" | "sharedwithMe" | "share" | "sharedwith" | "accessPermissions" | "permissionRequests" | "approve" | "approveAll" | "perPage" | "currentPage" | "sharetheResource" | "selectPermission" | "addPeople" | "addTeam" | "myPermissions" | "waitingforApproval" | "anyPermission" | "openshift.scope.user_info" | "openshift.scope.user_check-access" | "openshift.scope.user_full" | "openshift.scope.list-projects" | "error-invalid-value" | "error-invalid-blank" | "error-empty" | "error-invalid-length" | "error-invalid-length-too-short" | "error-invalid-length-too-long" | "error-invalid-email" | "error-invalid-number" | "error-number-out-of-range" | "error-number-out-of-range-too-small" | "error-number-out-of-range-too-big" | "error-pattern-no-match" | "error-invalid-uri" | "error-invalid-uri-scheme" | "error-invalid-uri-fragment" | "error-user-attribute-required" | "error-invalid-date" | "error-user-attribute-read-only" | "error-username-invalid-character" | "error-person-name-invalid-character" | "newPasswordSameAsOld" | "passwordConfirmNotMatch">;
92
+ prI18n_currentLanguage: Promise<GenericI18n<"region" | "icon" | "address" | "details" | "action" | "name" | "application" | "group" | "log" | "email" | "resource" | "date" | "user" | "password" | "account" | "sessions" | "totpAppFreeOTPName" | "totpAppMicrosoftAuthenticatorName" | "totpAppGoogleName" | "federatedIdentity" | "applications" | "people" | ExtraMessageKey | "doSave" | "doCancel" | "doLogOutAllSessions" | "doRemove" | "doAdd" | "doSignOut" | "doLogIn" | "doLink" | "noAccessMessage" | "personalInfoSidebarTitle" | "accountSecuritySidebarTitle" | "signingInSidebarTitle" | "deviceActivitySidebarTitle" | "linkedAccountsSidebarTitle" | "editAccountHtmlTitle" | "personalInfoHtmlTitle" | "federatedIdentitiesHtmlTitle" | "accountLogHtmlTitle" | "changePasswordHtmlTitle" | "deviceActivityHtmlTitle" | "sessionsHtmlTitle" | "accountManagementTitle" | "authenticatorTitle" | "applicationsHtmlTitle" | "linkedAccountsHtmlTitle" | "accountManagementWelcomeMessage" | "accountManagementBaseThemeCannotBeUsedDirectly" | "personalInfoIntroMessage" | "accountSecurityTitle" | "accountSecurityIntroMessage" | "applicationsIntroMessage" | "resourceIntroMessage" | "passwordLastUpdateMessage" | "updatePasswordTitle" | "updatePasswordMessageTitle" | "updatePasswordMessage" | "personalSubTitle" | "personalSubMessage" | "authenticatorCode" | "firstName" | "givenName" | "fullName" | "lastName" | "familyName" | "currentPassword" | "passwordConfirm" | "passwordNew" | "username" | "street" | "locality" | "postal_code" | "country" | "emailVerified" | "website" | "phoneNumber" | "phoneNumberVerified" | "gender" | "birthday" | "zoneinfo" | "gssDelegationCredential" | "profileScopeConsentText" | "emailScopeConsentText" | "addressScopeConsentText" | "phoneScopeConsentText" | "offlineAccessScopeConsentText" | "samlRoleListScopeConsentText" | "rolesScopeConsentText" | "role_admin" | "role_realm-admin" | "role_create-realm" | "role_view-realm" | "role_view-users" | "role_view-applications" | "role_view-groups" | "role_view-clients" | "role_view-events" | "role_view-identity-providers" | "role_view-consent" | "role_manage-realm" | "role_manage-users" | "role_manage-applications" | "role_manage-identity-providers" | "role_manage-clients" | "role_manage-events" | "role_view-profile" | "role_manage-account" | "role_manage-account-links" | "role_manage-consent" | "role_read-token" | "role_offline-access" | "role_uma_authorization" | "client_account" | "client_account-console" | "client_security-admin-console" | "client_admin-cli" | "client_realm-management" | "client_broker" | "requiredFields" | "allFieldsRequired" | "backToApplication" | "backTo" | "event" | "ip" | "client" | "clients" | "started" | "lastAccess" | "expires" | "authenticator" | "device-activity" | "availableRoles" | "grantedPermissions" | "grantedPersonalInfo" | "additionalGrants" | "inResource" | "fullAccess" | "offlineToken" | "revoke" | "configureAuthenticators" | "mobile" | "totpStep1" | "totpStep2" | "totpStep3" | "totpStep3DeviceName" | "totpManualStep2" | "totpManualStep3" | "totpUnableToScan" | "totpScanBarcode" | "totp.totp" | "totp.hotp" | "totpType" | "totpAlgorithm" | "totpDigits" | "totpInterval" | "totpCounter" | "totpDeviceName" | "irreversibleAction" | "deletingImplies" | "errasingData" | "loggingOutImmediately" | "accountUnusable" | "missingUsernameMessage" | "missingFirstNameMessage" | "invalidEmailMessage" | "missingLastNameMessage" | "missingEmailMessage" | "missingPasswordMessage" | "notMatchPasswordMessage" | "invalidUserMessage" | "updateReadOnlyAttributesRejectedMessage" | "missingTotpMessage" | "missingTotpDeviceNameMessage" | "invalidPasswordExistingMessage" | "invalidPasswordConfirmMessage" | "invalidTotpMessage" | "usernameExistsMessage" | "emailExistsMessage" | "readOnlyUserMessage" | "readOnlyUsernameMessage" | "readOnlyPasswordMessage" | "successTotpMessage" | "successTotpRemovedMessage" | "successGrantRevokedMessage" | "accountUpdatedMessage" | "accountPasswordUpdatedMessage" | "missingIdentityProviderMessage" | "invalidFederatedIdentityActionMessage" | "identityProviderNotFoundMessage" | "federatedIdentityLinkNotActiveMessage" | "federatedIdentityRemovingLastProviderMessage" | "identityProviderRedirectErrorMessage" | "identityProviderRemovedMessage" | "identityProviderAlreadyLinkedMessage" | "staleCodeAccountMessage" | "consentDenied" | "access-denied-when-idp-auth" | "accountDisabledMessage" | "accountTemporarilyDisabledMessage" | "invalidPasswordMinLengthMessage" | "invalidPasswordMaxLengthMessage" | "invalidPasswordMinLowerCaseCharsMessage" | "invalidPasswordMinDigitsMessage" | "invalidPasswordMinUpperCaseCharsMessage" | "invalidPasswordMinSpecialCharsMessage" | "invalidPasswordNotUsernameMessage" | "invalidPasswordNotEmailMessage" | "invalidPasswordRegexPatternMessage" | "invalidPasswordHistoryMessage" | "invalidPasswordBlacklistedMessage" | "invalidPasswordGenericMessage" | "myResources" | "myResourcesSub" | "doDeny" | "doRevoke" | "doApprove" | "doRemoveSharing" | "doRemoveRequest" | "peopleAccessResource" | "resourceManagedPolicies" | "resourceNoPermissionsGrantingAccess" | "anyAction" | "description" | "scopes" | "peopleSharingThisResource" | "shareWithOthers" | "needMyApproval" | "requestsWaitingApproval" | "requestor" | "owner" | "resourcesSharedWithMe" | "permissionRequestion" | "permission" | "shares" | "notBeingShared" | "notHaveAnyResource" | "noResourcesSharedWithYou" | "havePermissionRequestsWaitingForApproval" | "clickHereForDetails" | "resourceIsNotBeingShared" | "locale_ar" | "locale_ca" | "locale_cs" | "locale_de" | "locale_en" | "locale_es" | "locale_fr" | "locale_hu" | "locale_fa" | "locale_it" | "locale_ja" | "locale_lt" | "locale_nl" | "locale_no" | "locale_pl" | "locale_pt-BR" | "locale_ru" | "locale_sk" | "locale_sv" | "locale_th" | "locale_tr" | "locale_uk" | "locale_zh-CN" | "locale_fi" | "applicationName" | "applicationType" | "applicationInUse" | "clearAllFilter" | "activeFilters" | "filterByName" | "allApps" | "internalApps" | "thirdpartyApps" | "appResults" | "clientNotFoundMessage" | "authorizedProvider" | "authorizedProviderMessage" | "identityProvider" | "identityProviderMessage" | "socialLogin" | "userDefined" | "removeAccess" | "removeAccessMessage" | "authenticatorStatusMessage" | "authenticatorFinishSetUpTitle" | "authenticatorFinishSetUpMessage" | "authenticatorSubTitle" | "authenticatorSubMessage" | "authenticatorMobileTitle" | "authenticatorMobileMessage" | "authenticatorMobileFinishSetUpMessage" | "authenticatorActionSetup" | "authenticatorSMSTitle" | "authenticatorSMSMessage" | "authenticatorSMSFinishSetUpMessage" | "authenticatorDefaultStatus" | "authenticatorChangePhone" | "authenticatorMobileSetupTitle" | "smscodeIntroMessage" | "mobileSetupStep1" | "mobileSetupStep2" | "mobileSetupStep3" | "scanBarCode" | "enterBarCode" | "doCopy" | "doFinish" | "authenticatorSMSCodeSetupTitle" | "chooseYourCountry" | "enterYourPhoneNumber" | "sendVerficationCode" | "enterYourVerficationCode" | "authenticatorBackupCodesSetupTitle" | "realmName" | "doDownload" | "doPrint" | "generateNewBackupCodes" | "backtoAuthenticatorPage" | "resources" | "sharedwithMe" | "share" | "sharedwith" | "accessPermissions" | "permissionRequests" | "approve" | "approveAll" | "perPage" | "currentPage" | "sharetheResource" | "selectPermission" | "addPeople" | "addTeam" | "myPermissions" | "waitingforApproval" | "anyPermission" | "openshift.scope.user_info" | "openshift.scope.user_check-access" | "openshift.scope.user_full" | "openshift.scope.list-projects" | "error-invalid-value" | "error-invalid-blank" | "error-empty" | "error-invalid-length" | "error-invalid-length-too-short" | "error-invalid-length-too-long" | "error-invalid-email" | "error-invalid-number" | "error-number-out-of-range" | "error-number-out-of-range-too-small" | "error-number-out-of-range-too-big" | "error-pattern-no-match" | "error-invalid-uri" | "error-invalid-uri-scheme" | "error-invalid-uri-fragment" | "error-user-attribute-required" | "error-invalid-date" | "error-user-attribute-read-only" | "error-username-invalid-character" | "error-person-name-invalid-character" | "newPasswordSameAsOld" | "passwordConfirmNotMatch">> | undefined;
92
93
  };
93
- ofTypeI18n: GenericI18n<"region" | "icon" | "address" | "details" | "action" | "name" | "application" | "group" | "log" | "email" | "resource" | "date" | "user" | "password" | "account" | "sessions" | "totpAppFreeOTPName" | "totpAppMicrosoftAuthenticatorName" | "totpAppGoogleName" | "federatedIdentity" | "applications" | "people" | "doSave" | "doCancel" | "doLogOutAllSessions" | "doRemove" | "doAdd" | "doSignOut" | "doLogIn" | "doLink" | "noAccessMessage" | "personalInfoSidebarTitle" | "accountSecuritySidebarTitle" | "signingInSidebarTitle" | "deviceActivitySidebarTitle" | "linkedAccountsSidebarTitle" | "editAccountHtmlTitle" | "personalInfoHtmlTitle" | "federatedIdentitiesHtmlTitle" | "accountLogHtmlTitle" | "changePasswordHtmlTitle" | "deviceActivityHtmlTitle" | "sessionsHtmlTitle" | "accountManagementTitle" | "authenticatorTitle" | "applicationsHtmlTitle" | "linkedAccountsHtmlTitle" | "accountManagementWelcomeMessage" | "accountManagementBaseThemeCannotBeUsedDirectly" | "personalInfoIntroMessage" | "accountSecurityTitle" | "accountSecurityIntroMessage" | "applicationsIntroMessage" | "resourceIntroMessage" | "passwordLastUpdateMessage" | "updatePasswordTitle" | "updatePasswordMessageTitle" | "updatePasswordMessage" | "personalSubTitle" | "personalSubMessage" | "authenticatorCode" | "firstName" | "givenName" | "fullName" | "lastName" | "familyName" | "currentPassword" | "passwordConfirm" | "passwordNew" | "username" | "street" | "locality" | "postal_code" | "country" | "emailVerified" | "website" | "phoneNumber" | "phoneNumberVerified" | "gender" | "birthday" | "zoneinfo" | "gssDelegationCredential" | "profileScopeConsentText" | "emailScopeConsentText" | "addressScopeConsentText" | "phoneScopeConsentText" | "offlineAccessScopeConsentText" | "samlRoleListScopeConsentText" | "rolesScopeConsentText" | "role_admin" | "role_realm-admin" | "role_create-realm" | "role_view-realm" | "role_view-users" | "role_view-applications" | "role_view-groups" | "role_view-clients" | "role_view-events" | "role_view-identity-providers" | "role_view-consent" | "role_manage-realm" | "role_manage-users" | "role_manage-applications" | "role_manage-identity-providers" | "role_manage-clients" | "role_manage-events" | "role_view-profile" | "role_manage-account" | "role_manage-account-links" | "role_manage-consent" | "role_read-token" | "role_offline-access" | "role_uma_authorization" | "client_account" | "client_account-console" | "client_security-admin-console" | "client_admin-cli" | "client_realm-management" | "client_broker" | "requiredFields" | "allFieldsRequired" | "backToApplication" | "backTo" | "event" | "ip" | "client" | "clients" | "started" | "lastAccess" | "expires" | "authenticator" | "device-activity" | "availableRoles" | "grantedPermissions" | "grantedPersonalInfo" | "additionalGrants" | "inResource" | "fullAccess" | "offlineToken" | "revoke" | "configureAuthenticators" | "mobile" | "totpStep1" | "totpStep2" | "totpStep3" | "totpStep3DeviceName" | "totpManualStep2" | "totpManualStep3" | "totpUnableToScan" | "totpScanBarcode" | "totp.totp" | "totp.hotp" | "totpType" | "totpAlgorithm" | "totpDigits" | "totpInterval" | "totpCounter" | "totpDeviceName" | "irreversibleAction" | "deletingImplies" | "errasingData" | "loggingOutImmediately" | "accountUnusable" | "missingUsernameMessage" | "missingFirstNameMessage" | "invalidEmailMessage" | "missingLastNameMessage" | "missingEmailMessage" | "missingPasswordMessage" | "notMatchPasswordMessage" | "invalidUserMessage" | "updateReadOnlyAttributesRejectedMessage" | "missingTotpMessage" | "missingTotpDeviceNameMessage" | "invalidPasswordExistingMessage" | "invalidPasswordConfirmMessage" | "invalidTotpMessage" | "usernameExistsMessage" | "emailExistsMessage" | "readOnlyUserMessage" | "readOnlyUsernameMessage" | "readOnlyPasswordMessage" | "successTotpMessage" | "successTotpRemovedMessage" | "successGrantRevokedMessage" | "accountUpdatedMessage" | "accountPasswordUpdatedMessage" | "missingIdentityProviderMessage" | "invalidFederatedIdentityActionMessage" | "identityProviderNotFoundMessage" | "federatedIdentityLinkNotActiveMessage" | "federatedIdentityRemovingLastProviderMessage" | "identityProviderRedirectErrorMessage" | "identityProviderRemovedMessage" | "identityProviderAlreadyLinkedMessage" | "staleCodeAccountMessage" | "consentDenied" | "access-denied-when-idp-auth" | "accountDisabledMessage" | "accountTemporarilyDisabledMessage" | "invalidPasswordMinLengthMessage" | "invalidPasswordMaxLengthMessage" | "invalidPasswordMinLowerCaseCharsMessage" | "invalidPasswordMinDigitsMessage" | "invalidPasswordMinUpperCaseCharsMessage" | "invalidPasswordMinSpecialCharsMessage" | "invalidPasswordNotUsernameMessage" | "invalidPasswordNotEmailMessage" | "invalidPasswordRegexPatternMessage" | "invalidPasswordHistoryMessage" | "invalidPasswordBlacklistedMessage" | "invalidPasswordGenericMessage" | "myResources" | "myResourcesSub" | "doDeny" | "doRevoke" | "doApprove" | "doRemoveSharing" | "doRemoveRequest" | "peopleAccessResource" | "resourceManagedPolicies" | "resourceNoPermissionsGrantingAccess" | "anyAction" | "description" | "scopes" | "peopleSharingThisResource" | "shareWithOthers" | "needMyApproval" | "requestsWaitingApproval" | "requestor" | "owner" | "resourcesSharedWithMe" | "permissionRequestion" | "permission" | "shares" | "notBeingShared" | "notHaveAnyResource" | "noResourcesSharedWithYou" | "havePermissionRequestsWaitingForApproval" | "clickHereForDetails" | "resourceIsNotBeingShared" | "locale_ar" | "locale_ca" | "locale_cs" | "locale_de" | "locale_en" | "locale_es" | "locale_fr" | "locale_hu" | "locale_fa" | "locale_it" | "locale_ja" | "locale_lt" | "locale_nl" | "locale_no" | "locale_pl" | "locale_pt-BR" | "locale_ru" | "locale_sk" | "locale_sv" | "locale_th" | "locale_tr" | "locale_uk" | "locale_zh-CN" | "locale_fi" | "applicationName" | "applicationType" | "applicationInUse" | "clearAllFilter" | "activeFilters" | "filterByName" | "allApps" | "internalApps" | "thirdpartyApps" | "appResults" | "clientNotFoundMessage" | "authorizedProvider" | "authorizedProviderMessage" | "identityProvider" | "identityProviderMessage" | "socialLogin" | "userDefined" | "removeAccess" | "removeAccessMessage" | "authenticatorStatusMessage" | "authenticatorFinishSetUpTitle" | "authenticatorFinishSetUpMessage" | "authenticatorSubTitle" | "authenticatorSubMessage" | "authenticatorMobileTitle" | "authenticatorMobileMessage" | "authenticatorMobileFinishSetUpMessage" | "authenticatorActionSetup" | "authenticatorSMSTitle" | "authenticatorSMSMessage" | "authenticatorSMSFinishSetUpMessage" | "authenticatorDefaultStatus" | "authenticatorChangePhone" | "authenticatorMobileSetupTitle" | "smscodeIntroMessage" | "mobileSetupStep1" | "mobileSetupStep2" | "mobileSetupStep3" | "scanBarCode" | "enterBarCode" | "doCopy" | "doFinish" | "authenticatorSMSCodeSetupTitle" | "chooseYourCountry" | "enterYourPhoneNumber" | "sendVerficationCode" | "enterYourVerficationCode" | "authenticatorBackupCodesSetupTitle" | "realmName" | "doDownload" | "doPrint" | "generateNewBackupCodes" | "backtoAuthenticatorPage" | "resources" | "sharedwithMe" | "share" | "sharedwith" | "accessPermissions" | "permissionRequests" | "approve" | "approveAll" | "perPage" | "currentPage" | "sharetheResource" | "selectPermission" | "addPeople" | "addTeam" | "myPermissions" | "waitingforApproval" | "anyPermission" | "openshift.scope.user_info" | "openshift.scope.user_check-access" | "openshift.scope.user_full" | "openshift.scope.list-projects" | "error-invalid-value" | "error-invalid-blank" | "error-empty" | "error-invalid-length" | "error-invalid-length-too-short" | "error-invalid-length-too-long" | "error-invalid-email" | "error-invalid-number" | "error-number-out-of-range" | "error-number-out-of-range-too-small" | "error-number-out-of-range-too-big" | "error-pattern-no-match" | "error-invalid-uri" | "error-invalid-uri-scheme" | "error-invalid-uri-fragment" | "error-user-attribute-required" | "error-invalid-date" | "error-user-attribute-read-only" | "error-username-invalid-character" | "error-person-name-invalid-character" | "newPasswordSameAsOld" | "passwordConfirmNotMatch" | ExtraMessageKey>;
94
94
  };
@@ -1,13 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import "../../tools/Object.fromEntries";
3
- import { useEffect, useState } from "react";
4
3
  import { assert } from "tsafe/assert";
5
4
  import messages_fallbackLanguage from "./baseMessages/en";
6
5
  import { getMessages } from "./baseMessages";
7
- import { Reflect } from "tsafe/Reflect";
8
6
  export const fallbackLanguageTag = "en";
9
7
  assert();
10
- function createGetI18n(extraMessages) {
8
+ export function createGetI18n(messageBundle) {
11
9
  const cachedResultByKcContext = new WeakMap();
12
10
  function getI18n(params) {
13
11
  var _a, _b, _c, _d;
@@ -32,17 +30,19 @@ function createGetI18n(extraMessages) {
32
30
  };
33
31
  const { createI18nTranslationFunctions } = createI18nTranslationFunctionsFactory({
34
32
  messages_fallbackLanguage,
35
- extraMessages_fallbackLanguage: extraMessages[fallbackLanguageTag],
36
- extraMessages: extraMessages[partialI18n.currentLanguageTag]
33
+ messageBundle_fallbackLanguage: messageBundle[fallbackLanguageTag],
34
+ messageBundle_currentLanguage: messageBundle[partialI18n.currentLanguageTag]
37
35
  });
38
36
  const isCurrentLanguageFallbackLanguage = partialI18n.currentLanguageTag === fallbackLanguageTag;
39
37
  const result = {
40
- i18n: Object.assign(Object.assign(Object.assign({}, partialI18n), createI18nTranslationFunctions({ messages: undefined })), { isFetchingTranslations: !isCurrentLanguageFallbackLanguage }),
38
+ i18n: Object.assign(Object.assign(Object.assign({}, partialI18n), createI18nTranslationFunctions({
39
+ messages_currentLanguage: isCurrentLanguageFallbackLanguage ? messages_fallbackLanguage : undefined
40
+ })), { isFetchingTranslations: !isCurrentLanguageFallbackLanguage }),
41
41
  prI18n_currentLanguage: isCurrentLanguageFallbackLanguage
42
42
  ? undefined
43
43
  : (async () => {
44
- const messages = await getMessages(partialI18n.currentLanguageTag);
45
- const i18n_currentLanguage = Object.assign(Object.assign(Object.assign({}, partialI18n), createI18nTranslationFunctions({ messages })), { isFetchingTranslations: false });
44
+ const messages_currentLanguage = await getMessages(partialI18n.currentLanguageTag);
45
+ const i18n_currentLanguage = Object.assign(Object.assign(Object.assign({}, partialI18n), createI18nTranslationFunctions({ messages_currentLanguage })), { isFetchingTranslations: false });
46
46
  // NOTE: This promise.resolve is just because without it we TypeScript
47
47
  // gives a Variable 'result' is used before being assigned. error
48
48
  await Promise.resolve().then(() => {
@@ -57,37 +57,15 @@ function createGetI18n(extraMessages) {
57
57
  }
58
58
  return { getI18n };
59
59
  }
60
- export function createUseI18n(extraMessages) {
61
- const { getI18n } = createGetI18n(extraMessages);
62
- function useI18n(params) {
63
- const { kcContext } = params;
64
- const { i18n, prI18n_currentLanguage } = getI18n({ kcContext });
65
- const [i18n_toReturn, setI18n_toReturn] = useState(i18n);
66
- useEffect(() => {
67
- let isActive = true;
68
- prI18n_currentLanguage === null || prI18n_currentLanguage === void 0 ? void 0 : prI18n_currentLanguage.then(i18n => {
69
- if (!isActive) {
70
- return;
71
- }
72
- setI18n_toReturn(i18n);
73
- });
74
- return () => {
75
- isActive = false;
76
- };
77
- }, []);
78
- return { i18n: i18n_toReturn };
79
- }
80
- return { useI18n, ofTypeI18n: Reflect() };
81
- }
82
60
  function createI18nTranslationFunctionsFactory(params) {
83
- const { extraMessages } = params;
84
- const messages_fallbackLanguage = Object.assign(Object.assign({}, params.messages_fallbackLanguage), params.extraMessages_fallbackLanguage);
61
+ const { messageBundle_currentLanguage } = params;
62
+ const messages_fallbackLanguage = Object.assign(Object.assign({}, params.messages_fallbackLanguage), params.messageBundle_fallbackLanguage);
85
63
  function createI18nTranslationFunctions(params) {
86
- const messages = Object.assign(Object.assign({}, params.messages), extraMessages);
64
+ const messages_currentLanguage = Object.assign(Object.assign({}, params.messages_currentLanguage), messageBundle_currentLanguage);
87
65
  function resolveMsg(props) {
88
66
  var _a;
89
67
  const { key, args, doRenderAsHtml } = props;
90
- const messageOrUndefined = (_a = messages[key]) !== null && _a !== void 0 ? _a : messages_fallbackLanguage[key];
68
+ const messageOrUndefined = (_a = messages_currentLanguage[key]) !== null && _a !== void 0 ? _a : messages_fallbackLanguage[key];
91
69
  if (messageOrUndefined === undefined) {
92
70
  return undefined;
93
71
  }
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/account/i18n/i18n.tsx"],"names":[],"mappings":";AAAA,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,yBAAyB,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AASxC,MAAM,EAAkD,CAAC;AAyEzD,SAAS,aAAa,CAAyC,aAA8E;IAKzI,MAAM,uBAAuB,GAAG,IAAI,OAAO,EAAyB,CAAC;IAErE,SAAS,OAAO,CAAC,MAAoC;;QACjD,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAE7B,SAAS,EAAE;YACP,MAAM,YAAY,GAAG,uBAAuB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAE5D,IAAI,YAAY,KAAK,SAAS,EAAE;gBAC5B,MAAM,SAAS,CAAC;aACnB;YAED,OAAO,YAAY,CAAC;SACvB;QAED,MAAM,WAAW,GAA2F;YACxG,kBAAkB,EAAE,MAAA,MAAA,SAAS,CAAC,MAAM,0CAAE,kBAAkB,mCAAI,mBAAmB;YAC/E,iBAAiB,EAAE,cAAc,CAAC,EAAE;gBAChC,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;gBAE7B,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE,kCAAkC,CAAC,CAAC;gBAEjE,MAAM,qBAAqB,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,WAAW,EAAE,E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,EAAE,EAAE,MAAM,EAAE,sBAAsB,EAAE,GAAI,CAAC,CAAC,CAAC,sBAAsB,CAAC;QAC3H,CAAC;QAED,OAAO;YACH,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,CAAW;YACpF,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAAgB;YACrF,WAAW,EAAE,CAAC,GAAG,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,5 +1,5 @@
1
1
  import type { GenericI18n, MessageKey, KcContextLike } from "./i18n";
2
2
  export type { MessageKey, KcContextLike };
3
3
  export type I18n = GenericI18n<MessageKey>;
4
- export { createUseI18n } from "./i18n";
4
+ export { createUseI18n } from "./useI18n";
5
5
  export { fallbackLanguageTag } from "./i18n";
@@ -1,3 +1,3 @@
1
- export { createUseI18n } from "./i18n";
1
+ export { createUseI18n } from "./useI18n";
2
2
  export { fallbackLanguageTag } from "./i18n";
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/account/i18n/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/account/i18n/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { type GenericI18n, type KcContextLike } from "./i18n";
2
+ export declare function createUseI18n<ExtraMessageKey extends string = never>(extraMessages: {
3
+ [languageTag: string]: {
4
+ [key in ExtraMessageKey]: string;
5
+ };
6
+ }): {
7
+ useI18n: (params: {
8
+ kcContext: KcContextLike;
9
+ }) => {
10
+ i18n: GenericI18n<"region" | "icon" | "address" | "details" | "action" | "name" | "application" | "group" | "log" | "email" | "resource" | "date" | "user" | "password" | "account" | "sessions" | "totpAppFreeOTPName" | "totpAppMicrosoftAuthenticatorName" | "totpAppGoogleName" | "federatedIdentity" | "applications" | "people" | "doSave" | "doCancel" | "doLogOutAllSessions" | "doRemove" | "doAdd" | "doSignOut" | "doLogIn" | "doLink" | "noAccessMessage" | "personalInfoSidebarTitle" | "accountSecuritySidebarTitle" | "signingInSidebarTitle" | "deviceActivitySidebarTitle" | "linkedAccountsSidebarTitle" | "editAccountHtmlTitle" | "personalInfoHtmlTitle" | "federatedIdentitiesHtmlTitle" | "accountLogHtmlTitle" | "changePasswordHtmlTitle" | "deviceActivityHtmlTitle" | "sessionsHtmlTitle" | "accountManagementTitle" | "authenticatorTitle" | "applicationsHtmlTitle" | "linkedAccountsHtmlTitle" | "accountManagementWelcomeMessage" | "accountManagementBaseThemeCannotBeUsedDirectly" | "personalInfoIntroMessage" | "accountSecurityTitle" | "accountSecurityIntroMessage" | "applicationsIntroMessage" | "resourceIntroMessage" | "passwordLastUpdateMessage" | "updatePasswordTitle" | "updatePasswordMessageTitle" | "updatePasswordMessage" | "personalSubTitle" | "personalSubMessage" | "authenticatorCode" | "firstName" | "givenName" | "fullName" | "lastName" | "familyName" | "currentPassword" | "passwordConfirm" | "passwordNew" | "username" | "street" | "locality" | "postal_code" | "country" | "emailVerified" | "website" | "phoneNumber" | "phoneNumberVerified" | "gender" | "birthday" | "zoneinfo" | "gssDelegationCredential" | "profileScopeConsentText" | "emailScopeConsentText" | "addressScopeConsentText" | "phoneScopeConsentText" | "offlineAccessScopeConsentText" | "samlRoleListScopeConsentText" | "rolesScopeConsentText" | "role_admin" | "role_realm-admin" | "role_create-realm" | "role_view-realm" | "role_view-users" | "role_view-applications" | "role_view-groups" | "role_view-clients" | "role_view-events" | "role_view-identity-providers" | "role_view-consent" | "role_manage-realm" | "role_manage-users" | "role_manage-applications" | "role_manage-identity-providers" | "role_manage-clients" | "role_manage-events" | "role_view-profile" | "role_manage-account" | "role_manage-account-links" | "role_manage-consent" | "role_read-token" | "role_offline-access" | "role_uma_authorization" | "client_account" | "client_account-console" | "client_security-admin-console" | "client_admin-cli" | "client_realm-management" | "client_broker" | "requiredFields" | "allFieldsRequired" | "backToApplication" | "backTo" | "event" | "ip" | "client" | "clients" | "started" | "lastAccess" | "expires" | "authenticator" | "device-activity" | "availableRoles" | "grantedPermissions" | "grantedPersonalInfo" | "additionalGrants" | "inResource" | "fullAccess" | "offlineToken" | "revoke" | "configureAuthenticators" | "mobile" | "totpStep1" | "totpStep2" | "totpStep3" | "totpStep3DeviceName" | "totpManualStep2" | "totpManualStep3" | "totpUnableToScan" | "totpScanBarcode" | "totp.totp" | "totp.hotp" | "totpType" | "totpAlgorithm" | "totpDigits" | "totpInterval" | "totpCounter" | "totpDeviceName" | "irreversibleAction" | "deletingImplies" | "errasingData" | "loggingOutImmediately" | "accountUnusable" | "missingUsernameMessage" | "missingFirstNameMessage" | "invalidEmailMessage" | "missingLastNameMessage" | "missingEmailMessage" | "missingPasswordMessage" | "notMatchPasswordMessage" | "invalidUserMessage" | "updateReadOnlyAttributesRejectedMessage" | "missingTotpMessage" | "missingTotpDeviceNameMessage" | "invalidPasswordExistingMessage" | "invalidPasswordConfirmMessage" | "invalidTotpMessage" | "usernameExistsMessage" | "emailExistsMessage" | "readOnlyUserMessage" | "readOnlyUsernameMessage" | "readOnlyPasswordMessage" | "successTotpMessage" | "successTotpRemovedMessage" | "successGrantRevokedMessage" | "accountUpdatedMessage" | "accountPasswordUpdatedMessage" | "missingIdentityProviderMessage" | "invalidFederatedIdentityActionMessage" | "identityProviderNotFoundMessage" | "federatedIdentityLinkNotActiveMessage" | "federatedIdentityRemovingLastProviderMessage" | "identityProviderRedirectErrorMessage" | "identityProviderRemovedMessage" | "identityProviderAlreadyLinkedMessage" | "staleCodeAccountMessage" | "consentDenied" | "access-denied-when-idp-auth" | "accountDisabledMessage" | "accountTemporarilyDisabledMessage" | "invalidPasswordMinLengthMessage" | "invalidPasswordMaxLengthMessage" | "invalidPasswordMinLowerCaseCharsMessage" | "invalidPasswordMinDigitsMessage" | "invalidPasswordMinUpperCaseCharsMessage" | "invalidPasswordMinSpecialCharsMessage" | "invalidPasswordNotUsernameMessage" | "invalidPasswordNotEmailMessage" | "invalidPasswordRegexPatternMessage" | "invalidPasswordHistoryMessage" | "invalidPasswordBlacklistedMessage" | "invalidPasswordGenericMessage" | "myResources" | "myResourcesSub" | "doDeny" | "doRevoke" | "doApprove" | "doRemoveSharing" | "doRemoveRequest" | "peopleAccessResource" | "resourceManagedPolicies" | "resourceNoPermissionsGrantingAccess" | "anyAction" | "description" | "scopes" | "peopleSharingThisResource" | "shareWithOthers" | "needMyApproval" | "requestsWaitingApproval" | "requestor" | "owner" | "resourcesSharedWithMe" | "permissionRequestion" | "permission" | "shares" | "notBeingShared" | "notHaveAnyResource" | "noResourcesSharedWithYou" | "havePermissionRequestsWaitingForApproval" | "clickHereForDetails" | "resourceIsNotBeingShared" | "locale_ar" | "locale_ca" | "locale_cs" | "locale_de" | "locale_en" | "locale_es" | "locale_fr" | "locale_hu" | "locale_fa" | "locale_it" | "locale_ja" | "locale_lt" | "locale_nl" | "locale_no" | "locale_pl" | "locale_pt-BR" | "locale_ru" | "locale_sk" | "locale_sv" | "locale_th" | "locale_tr" | "locale_uk" | "locale_zh-CN" | "locale_fi" | "applicationName" | "applicationType" | "applicationInUse" | "clearAllFilter" | "activeFilters" | "filterByName" | "allApps" | "internalApps" | "thirdpartyApps" | "appResults" | "clientNotFoundMessage" | "authorizedProvider" | "authorizedProviderMessage" | "identityProvider" | "identityProviderMessage" | "socialLogin" | "userDefined" | "removeAccess" | "removeAccessMessage" | "authenticatorStatusMessage" | "authenticatorFinishSetUpTitle" | "authenticatorFinishSetUpMessage" | "authenticatorSubTitle" | "authenticatorSubMessage" | "authenticatorMobileTitle" | "authenticatorMobileMessage" | "authenticatorMobileFinishSetUpMessage" | "authenticatorActionSetup" | "authenticatorSMSTitle" | "authenticatorSMSMessage" | "authenticatorSMSFinishSetUpMessage" | "authenticatorDefaultStatus" | "authenticatorChangePhone" | "authenticatorMobileSetupTitle" | "smscodeIntroMessage" | "mobileSetupStep1" | "mobileSetupStep2" | "mobileSetupStep3" | "scanBarCode" | "enterBarCode" | "doCopy" | "doFinish" | "authenticatorSMSCodeSetupTitle" | "chooseYourCountry" | "enterYourPhoneNumber" | "sendVerficationCode" | "enterYourVerficationCode" | "authenticatorBackupCodesSetupTitle" | "realmName" | "doDownload" | "doPrint" | "generateNewBackupCodes" | "backtoAuthenticatorPage" | "resources" | "sharedwithMe" | "share" | "sharedwith" | "accessPermissions" | "permissionRequests" | "approve" | "approveAll" | "perPage" | "currentPage" | "sharetheResource" | "selectPermission" | "addPeople" | "addTeam" | "myPermissions" | "waitingforApproval" | "anyPermission" | "openshift.scope.user_info" | "openshift.scope.user_check-access" | "openshift.scope.user_full" | "openshift.scope.list-projects" | "error-invalid-value" | "error-invalid-blank" | "error-empty" | "error-invalid-length" | "error-invalid-length-too-short" | "error-invalid-length-too-long" | "error-invalid-email" | "error-invalid-number" | "error-number-out-of-range" | "error-number-out-of-range-too-small" | "error-number-out-of-range-too-big" | "error-pattern-no-match" | "error-invalid-uri" | "error-invalid-uri-scheme" | "error-invalid-uri-fragment" | "error-user-attribute-required" | "error-invalid-date" | "error-user-attribute-read-only" | "error-username-invalid-character" | "error-person-name-invalid-character" | "newPasswordSameAsOld" | "passwordConfirmNotMatch" | ExtraMessageKey>;
11
+ };
12
+ ofTypeI18n: GenericI18n<"region" | "icon" | "address" | "details" | "action" | "name" | "application" | "group" | "log" | "email" | "resource" | "date" | "user" | "password" | "account" | "sessions" | "totpAppFreeOTPName" | "totpAppMicrosoftAuthenticatorName" | "totpAppGoogleName" | "federatedIdentity" | "applications" | "people" | "doSave" | "doCancel" | "doLogOutAllSessions" | "doRemove" | "doAdd" | "doSignOut" | "doLogIn" | "doLink" | "noAccessMessage" | "personalInfoSidebarTitle" | "accountSecuritySidebarTitle" | "signingInSidebarTitle" | "deviceActivitySidebarTitle" | "linkedAccountsSidebarTitle" | "editAccountHtmlTitle" | "personalInfoHtmlTitle" | "federatedIdentitiesHtmlTitle" | "accountLogHtmlTitle" | "changePasswordHtmlTitle" | "deviceActivityHtmlTitle" | "sessionsHtmlTitle" | "accountManagementTitle" | "authenticatorTitle" | "applicationsHtmlTitle" | "linkedAccountsHtmlTitle" | "accountManagementWelcomeMessage" | "accountManagementBaseThemeCannotBeUsedDirectly" | "personalInfoIntroMessage" | "accountSecurityTitle" | "accountSecurityIntroMessage" | "applicationsIntroMessage" | "resourceIntroMessage" | "passwordLastUpdateMessage" | "updatePasswordTitle" | "updatePasswordMessageTitle" | "updatePasswordMessage" | "personalSubTitle" | "personalSubMessage" | "authenticatorCode" | "firstName" | "givenName" | "fullName" | "lastName" | "familyName" | "currentPassword" | "passwordConfirm" | "passwordNew" | "username" | "street" | "locality" | "postal_code" | "country" | "emailVerified" | "website" | "phoneNumber" | "phoneNumberVerified" | "gender" | "birthday" | "zoneinfo" | "gssDelegationCredential" | "profileScopeConsentText" | "emailScopeConsentText" | "addressScopeConsentText" | "phoneScopeConsentText" | "offlineAccessScopeConsentText" | "samlRoleListScopeConsentText" | "rolesScopeConsentText" | "role_admin" | "role_realm-admin" | "role_create-realm" | "role_view-realm" | "role_view-users" | "role_view-applications" | "role_view-groups" | "role_view-clients" | "role_view-events" | "role_view-identity-providers" | "role_view-consent" | "role_manage-realm" | "role_manage-users" | "role_manage-applications" | "role_manage-identity-providers" | "role_manage-clients" | "role_manage-events" | "role_view-profile" | "role_manage-account" | "role_manage-account-links" | "role_manage-consent" | "role_read-token" | "role_offline-access" | "role_uma_authorization" | "client_account" | "client_account-console" | "client_security-admin-console" | "client_admin-cli" | "client_realm-management" | "client_broker" | "requiredFields" | "allFieldsRequired" | "backToApplication" | "backTo" | "event" | "ip" | "client" | "clients" | "started" | "lastAccess" | "expires" | "authenticator" | "device-activity" | "availableRoles" | "grantedPermissions" | "grantedPersonalInfo" | "additionalGrants" | "inResource" | "fullAccess" | "offlineToken" | "revoke" | "configureAuthenticators" | "mobile" | "totpStep1" | "totpStep2" | "totpStep3" | "totpStep3DeviceName" | "totpManualStep2" | "totpManualStep3" | "totpUnableToScan" | "totpScanBarcode" | "totp.totp" | "totp.hotp" | "totpType" | "totpAlgorithm" | "totpDigits" | "totpInterval" | "totpCounter" | "totpDeviceName" | "irreversibleAction" | "deletingImplies" | "errasingData" | "loggingOutImmediately" | "accountUnusable" | "missingUsernameMessage" | "missingFirstNameMessage" | "invalidEmailMessage" | "missingLastNameMessage" | "missingEmailMessage" | "missingPasswordMessage" | "notMatchPasswordMessage" | "invalidUserMessage" | "updateReadOnlyAttributesRejectedMessage" | "missingTotpMessage" | "missingTotpDeviceNameMessage" | "invalidPasswordExistingMessage" | "invalidPasswordConfirmMessage" | "invalidTotpMessage" | "usernameExistsMessage" | "emailExistsMessage" | "readOnlyUserMessage" | "readOnlyUsernameMessage" | "readOnlyPasswordMessage" | "successTotpMessage" | "successTotpRemovedMessage" | "successGrantRevokedMessage" | "accountUpdatedMessage" | "accountPasswordUpdatedMessage" | "missingIdentityProviderMessage" | "invalidFederatedIdentityActionMessage" | "identityProviderNotFoundMessage" | "federatedIdentityLinkNotActiveMessage" | "federatedIdentityRemovingLastProviderMessage" | "identityProviderRedirectErrorMessage" | "identityProviderRemovedMessage" | "identityProviderAlreadyLinkedMessage" | "staleCodeAccountMessage" | "consentDenied" | "access-denied-when-idp-auth" | "accountDisabledMessage" | "accountTemporarilyDisabledMessage" | "invalidPasswordMinLengthMessage" | "invalidPasswordMaxLengthMessage" | "invalidPasswordMinLowerCaseCharsMessage" | "invalidPasswordMinDigitsMessage" | "invalidPasswordMinUpperCaseCharsMessage" | "invalidPasswordMinSpecialCharsMessage" | "invalidPasswordNotUsernameMessage" | "invalidPasswordNotEmailMessage" | "invalidPasswordRegexPatternMessage" | "invalidPasswordHistoryMessage" | "invalidPasswordBlacklistedMessage" | "invalidPasswordGenericMessage" | "myResources" | "myResourcesSub" | "doDeny" | "doRevoke" | "doApprove" | "doRemoveSharing" | "doRemoveRequest" | "peopleAccessResource" | "resourceManagedPolicies" | "resourceNoPermissionsGrantingAccess" | "anyAction" | "description" | "scopes" | "peopleSharingThisResource" | "shareWithOthers" | "needMyApproval" | "requestsWaitingApproval" | "requestor" | "owner" | "resourcesSharedWithMe" | "permissionRequestion" | "permission" | "shares" | "notBeingShared" | "notHaveAnyResource" | "noResourcesSharedWithYou" | "havePermissionRequestsWaitingForApproval" | "clickHereForDetails" | "resourceIsNotBeingShared" | "locale_ar" | "locale_ca" | "locale_cs" | "locale_de" | "locale_en" | "locale_es" | "locale_fr" | "locale_hu" | "locale_fa" | "locale_it" | "locale_ja" | "locale_lt" | "locale_nl" | "locale_no" | "locale_pl" | "locale_pt-BR" | "locale_ru" | "locale_sk" | "locale_sv" | "locale_th" | "locale_tr" | "locale_uk" | "locale_zh-CN" | "locale_fi" | "applicationName" | "applicationType" | "applicationInUse" | "clearAllFilter" | "activeFilters" | "filterByName" | "allApps" | "internalApps" | "thirdpartyApps" | "appResults" | "clientNotFoundMessage" | "authorizedProvider" | "authorizedProviderMessage" | "identityProvider" | "identityProviderMessage" | "socialLogin" | "userDefined" | "removeAccess" | "removeAccessMessage" | "authenticatorStatusMessage" | "authenticatorFinishSetUpTitle" | "authenticatorFinishSetUpMessage" | "authenticatorSubTitle" | "authenticatorSubMessage" | "authenticatorMobileTitle" | "authenticatorMobileMessage" | "authenticatorMobileFinishSetUpMessage" | "authenticatorActionSetup" | "authenticatorSMSTitle" | "authenticatorSMSMessage" | "authenticatorSMSFinishSetUpMessage" | "authenticatorDefaultStatus" | "authenticatorChangePhone" | "authenticatorMobileSetupTitle" | "smscodeIntroMessage" | "mobileSetupStep1" | "mobileSetupStep2" | "mobileSetupStep3" | "scanBarCode" | "enterBarCode" | "doCopy" | "doFinish" | "authenticatorSMSCodeSetupTitle" | "chooseYourCountry" | "enterYourPhoneNumber" | "sendVerficationCode" | "enterYourVerficationCode" | "authenticatorBackupCodesSetupTitle" | "realmName" | "doDownload" | "doPrint" | "generateNewBackupCodes" | "backtoAuthenticatorPage" | "resources" | "sharedwithMe" | "share" | "sharedwith" | "accessPermissions" | "permissionRequests" | "approve" | "approveAll" | "perPage" | "currentPage" | "sharetheResource" | "selectPermission" | "addPeople" | "addTeam" | "myPermissions" | "waitingforApproval" | "anyPermission" | "openshift.scope.user_info" | "openshift.scope.user_check-access" | "openshift.scope.user_full" | "openshift.scope.list-projects" | "error-invalid-value" | "error-invalid-blank" | "error-empty" | "error-invalid-length" | "error-invalid-length-too-short" | "error-invalid-length-too-long" | "error-invalid-email" | "error-invalid-number" | "error-number-out-of-range" | "error-number-out-of-range-too-small" | "error-number-out-of-range-too-big" | "error-pattern-no-match" | "error-invalid-uri" | "error-invalid-uri-scheme" | "error-invalid-uri-fragment" | "error-user-attribute-required" | "error-invalid-date" | "error-user-attribute-read-only" | "error-username-invalid-character" | "error-person-name-invalid-character" | "newPasswordSameAsOld" | "passwordConfirmNotMatch" | ExtraMessageKey>;
13
+ };
@@ -0,0 +1,26 @@
1
+ import { useEffect, useState } from "react";
2
+ import { createGetI18n } from "./i18n";
3
+ import { Reflect } from "tsafe/Reflect";
4
+ export function createUseI18n(extraMessages) {
5
+ const { getI18n } = createGetI18n(extraMessages);
6
+ function useI18n(params) {
7
+ const { kcContext } = params;
8
+ const { i18n, prI18n_currentLanguage } = getI18n({ kcContext });
9
+ const [i18n_toReturn, setI18n_toReturn] = useState(i18n);
10
+ useEffect(() => {
11
+ let isActive = true;
12
+ prI18n_currentLanguage === null || prI18n_currentLanguage === void 0 ? void 0 : prI18n_currentLanguage.then(i18n => {
13
+ if (!isActive) {
14
+ return;
15
+ }
16
+ setI18n_toReturn(i18n);
17
+ });
18
+ return () => {
19
+ isActive = false;
20
+ };
21
+ }, []);
22
+ return { i18n: i18n_toReturn };
23
+ }
24
+ return { useI18n, ofTypeI18n: Reflect() };
25
+ }
26
+ //# sourceMappingURL=useI18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useI18n.js","sourceRoot":"","sources":["../../src/account/i18n/useI18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EACH,aAAa,EAIhB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,UAAU,aAAa,CAAyC,aAErE;IAGG,MAAM,EAAE,OAAO,EAAE,GAAG,aAAa,CAAC,aAAa,CAAC,CAAC;IAEjD,SAAS,OAAO,CAAC,MAAoC;QACjD,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAE7B,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,GAAG,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;QAEhE,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAO,IAAI,CAAC,CAAC;QAE/D,SAAS,CAAC,GAAG,EAAE;YACX,IAAI,QAAQ,GAAG,IAAI,CAAC;YAEpB,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAE,IAAI,CAAC,IAAI,CAAC,EAAE;gBAChC,IAAI,CAAC,QAAQ,EAAE;oBACX,OAAO;iBACV;gBAED,gBAAgB,CAAC,IAAI,CAAC,CAAC;YAC3B,CAAC,CAAC,CAAC;YAEH,OAAO,GAAG,EAAE;gBACR,QAAQ,GAAG,KAAK,CAAC;YACrB,CAAC,CAAC;QACN,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;IACnC,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAQ,EAAE,CAAC;AACpD,CAAC"}
package/bin/440.index.js CHANGED
@@ -22,7 +22,10 @@ exports.modules = {
22
22
  /* harmony import */ var _babel_generator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(92332);
23
23
  /* harmony import */ var _babel_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7912);
24
24
  /* harmony import */ var _babel_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_types__WEBPACK_IMPORTED_MODULE_8__);
25
- /* harmony import */ var _tools_escapeStringForPropertiesFile__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27190);
25
+ /* harmony import */ var _tools_escapeStringForPropertiesFile__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27190);
26
+ /* harmony import */ var _tools_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(58822);
27
+
28
+
26
29
 
27
30
 
28
31
 
@@ -51,9 +54,6 @@ function generateMessageProperties(params) {
51
54
  });
52
55
  files = files.sort((a, b) => a.length - b.length);
53
56
  files = files.filter(file => (0,fs__WEBPACK_IMPORTED_MODULE_2__.readFileSync)(file).toString("utf8").includes("createUseI18n"));
54
- if (files.length === 0) {
55
- return [];
56
- }
57
57
  const extraMessages = files
58
58
  .map(file => {
59
59
  const root = recast__WEBPACK_IMPORTED_MODULE_5__/* .parse */ .Qc((0,fs__WEBPACK_IMPORTED_MODULE_2__.readFileSync)(file).toString("utf8"), {
@@ -98,13 +98,17 @@ function generateMessageProperties(params) {
98
98
  }
99
99
  return extraMessages;
100
100
  });
101
- const languageTags = extraMessages
102
- .map(extraMessage => Object.keys(extraMessage))
103
- .flat()
104
- .reduce(...(0,evt_tools_reducers_removeDuplicates__WEBPACK_IMPORTED_MODULE_4__.removeDuplicates)());
101
+ const languageTags = [
102
+ ...extraMessages.map(extraMessage => Object.keys(extraMessage)).flat(),
103
+ ...fs__WEBPACK_IMPORTED_MODULE_2__.readdirSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_tools_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_9__/* .getThisCodebaseRootDirPath */ .e)(), "src", themeType, "i18n", "baseMessages"))
104
+ .filter(baseName => baseName !== "index.ts")
105
+ .map(baseName => baseName.replace(/\.ts$/, ""))
106
+ ].reduce(...(0,evt_tools_reducers_removeDuplicates__WEBPACK_IMPORTED_MODULE_4__.removeDuplicates)());
105
107
  const keyValueMapByLanguageTag = {};
106
108
  for (const languageTag of languageTags) {
107
- const keyValueMap = {};
109
+ const keyValueMap = {
110
+ termsText: ""
111
+ };
108
112
  for (const extraMessage of extraMessages) {
109
113
  const keyValueMap_i = extraMessage[languageTag];
110
114
  if (keyValueMap_i === undefined) {
@@ -135,18 +139,11 @@ function generateMessageProperties(params) {
135
139
  const out = [];
136
140
  for (const [languageTag, keyValueMap] of Object.entries(keyValueMapByLanguageTag)) {
137
141
  const propertiesFileSource = Object.entries(keyValueMap)
138
- .map(([key, value]) => `${key}=${(0,_tools_escapeStringForPropertiesFile__WEBPACK_IMPORTED_MODULE_9__/* .escapeStringForPropertiesFile */ .y)(value)}`)
142
+ .map(([key, value]) => `${key}=${(0,_tools_escapeStringForPropertiesFile__WEBPACK_IMPORTED_MODULE_10__/* .escapeStringForPropertiesFile */ .y)(value)}`)
139
143
  .join("\n");
140
144
  out.push({
141
145
  languageTag,
142
- propertiesFileSource: [
143
- "# This file was generated by keycloakify",
144
- "",
145
- "parent=base",
146
- "",
147
- propertiesFileSource,
148
- ""
149
- ].join("\n")
146
+ propertiesFileSource: ["", "parent=base", "", propertiesFileSource, ""].join("\n")
150
147
  });
151
148
  }
152
149
  return out;
@@ -434,7 +431,6 @@ function generateFtlFilesCodeFactory(params) {
434
431
  .replace("KEYCLOAKIFY_THEME_TYPE_dExKd3xEdr", themeType)
435
432
  .replace("KEYCLOAKIFY_THEME_NAME_cXxKd3xEer", themeName)
436
433
  .replace("RESOURCES_COMMON_cLsLsMrtDkpVv", constants/* resources_common */.z0)
437
- .replace("lOCALIZATION_REALM_OVERRIDES_USER_PROFILE_PROPERTY_KEY_aaGLsPgGIdeeX", constants/* nameOfTheLocalizationRealmOverridesUserProfileProperty */.lg)
438
434
  .replace("USER_DEFINED_EXCLUSIONS_eKsaY4ZsZ4eMr2", (_a = buildContext.kcContextExclusionsFtlCode) !== null && _a !== void 0 ? _a : "");
439
435
  const ftlObjectToJsCodeDeclaringAnObjectPlaceholder = '{ "x": "vIdLqMeOed9sdLdIdOxdK0d" }';
440
436
  $("head").prepend(`<script>\n${ftlObjectToJsCodeDeclaringAnObjectPlaceholder}\n</script>`);
package/bin/751.index.js CHANGED
@@ -592,7 +592,6 @@ function getBuildContext(params) {
592
592
  /* harmony export */ "UX": () => (/* binding */ accountThemePageIds),
593
593
  /* harmony export */ "fe": () => (/* binding */ vitePluginSubScriptEnvNames),
594
594
  /* harmony export */ "h6": () => (/* binding */ containerName),
595
- /* harmony export */ "lg": () => (/* binding */ nameOfTheLocalizationRealmOverridesUserProfileProperty),
596
595
  /* harmony export */ "rO": () => (/* binding */ themeTypes),
597
596
  /* harmony export */ "sj": () => (/* binding */ loginThemePageIds),
598
597
  /* harmony export */ "um": () => (/* binding */ buildForKeycloakMajorVersionEnvName),
@@ -600,7 +599,6 @@ function getBuildContext(params) {
600
599
  /* harmony export */ "y_": () => (/* binding */ accountV1ThemeName),
601
600
  /* harmony export */ "z0": () => (/* binding */ resources_common)
602
601
  /* harmony export */ });
603
- const nameOfTheLocalizationRealmOverridesUserProfileProperty = "__localizationRealmOverridesUserProfile";
604
602
  const keycloak_resources = "keycloak-resources";
605
603
  const resources_common = "resources-common";
606
604
  const lastKeycloakVersionWithAccountV1 = "21.1.2";
@@ -1,4 +1,3 @@
1
- export declare const nameOfTheLocalizationRealmOverridesUserProfileProperty = "__localizationRealmOverridesUserProfile";
2
1
  export declare const keycloak_resources = "keycloak-resources";
3
2
  export declare const resources_common = "resources-common";
4
3
  export declare const lastKeycloakVersionWithAccountV1 = "21.1.2";
@@ -1,4 +1,3 @@
1
- export const nameOfTheLocalizationRealmOverridesUserProfileProperty = "__localizationRealmOverridesUserProfile";
2
1
  export const keycloak_resources = "keycloak-resources";
3
2
  export const resources_common = "resources-common";
4
3
  export const lastKeycloakVersionWithAccountV1 = "21.1.2";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/bin/shared/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sDAAsD,GAC/D,yCAAyC,CAAC;AAC9C,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;AACvD,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AACnD,MAAM,CAAC,MAAM,gCAAgC,GAAG,QAAQ,CAAC;AACzD,MAAM,CAAC,MAAM,oCAAoC,GAAG,MAAM,CAAC;AAE3D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,SAAS,CAAU,CAAC;AACxD,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAI/C,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACvC,kBAAkB,EAAE,mCAAmC;IACvD,iBAAiB,EAAE,iCAAiC;CAC9C,CAAC;AAEX,MAAM,CAAC,MAAM,mCAAmC,GAC5C,8CAA8C,CAAC;AAEnD,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,WAAW;IACX,oBAAoB;IAC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AAC,MAAM,iBAAiB,GAAG;IAC7B,WAAW;IACX,oBAAoB;IACpB,oBAAoB;IACpB,2BAA2B;IAC3B,uBAAuB;IACvB,cAAc;IACd,UAAU;IACV,WAAW;IACX,0BAA0B;IAC1B,wBAAwB;IACxB,WAAW;IACX,0CAA0C;IAC1C,uBAAuB;IACvB,eAAe;IACf,0BAA0B;IAC1B,2BAA2B;IAC3B,4BAA4B;IAC5B,0BAA0B;IAC1B,wBAAwB;IACxB,uBAAuB;IACvB,oBAAoB;IACpB,6BAA6B;IAC7B,kBAAkB;IAClB,0BAA0B;IAC1B,oBAAoB;IACpB,uBAAuB;IACvB,UAAU;IACV,4BAA4B;IAC5B,yBAAyB;IACzB,sCAAsC;IACtC,qCAAqC;IACrC,qBAAqB;IACrB,qBAAqB;IACrB,oBAAoB;CACd,CAAC;AAEX,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,cAAc;IACd,aAAa;IACb,cAAc;IACd,UAAU;IACV,kBAAkB;IAClB,SAAS;IACT,uBAAuB;CACjB,CAAC;AAKX,MAAM,CAAC,MAAM,aAAa,GAAG,sBAAsB,CAAC"}
@@ -103,7 +103,10 @@ export declare namespace KcContext {
103
103
  ssoLoginInOtherTabsUrl: string;
104
104
  };
105
105
  properties: {};
106
- __localizationRealmOverridesUserProfile?: Record<string, string>;
106
+ "x-keycloakify": {
107
+ realmMessageBundleUserProfile: Record<string, string> | undefined;
108
+ realmMessageBundleTermsText: string | undefined;
109
+ };
107
110
  };
108
111
  type SamlPostForm = Common & {
109
112
  pageId: "saml-post-form.ftl";
@@ -211,6 +214,7 @@ export declare namespace KcContext {
211
214
  lastName?: string;
212
215
  markedForEviction?: boolean;
213
216
  };
217
+ __localizationRealmOverridesTermsText?: string;
214
218
  };
215
219
  type LoginDeviceVerifyUserCode = Common & {
216
220
  pageId: "login-oauth2-device-verify-user-code.ftl";
@@ -4,5 +4,4 @@ assert();
4
4
  assert();
5
5
  assert();
6
6
  }
7
- assert();
8
7
  //# sourceMappingURL=KcContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"KcContext.js","sourceRoot":"","sources":["../../src/login/KcContext/KcContext.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AA6DtC,MAAM,EAA2D,CAAC;AAmqBlE;IAOI,MAAM,EAA4B,CAAC;IACnC,MAAM,EAAiC,CAAC;CAC3C;AAuBD,MAAM,EAMH,CAAC"}
1
+ {"version":3,"file":"KcContext.js","sourceRoot":"","sources":["../../src/login/KcContext/KcContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AA6DtC,MAAM,EAA2D,CAAC;AAuqBlE;IAOI,MAAM,EAA4B,CAAC;IACnC,MAAM,EAAiC,CAAC;CAC3C"}
@@ -147,7 +147,10 @@ export const kcContextCommonMock = {
147
147
  scripts: [],
148
148
  isAppInitiatedAction: false,
149
149
  properties: {},
150
- __localizationRealmOverridesUserProfile: {}
150
+ "x-keycloakify": {
151
+ realmMessageBundleUserProfile: undefined,
152
+ realmMessageBundleTermsText: undefined
153
+ }
151
154
  };
152
155
  const loginUrl = Object.assign(Object.assign({}, kcContextCommonMock.url), { loginResetCredentialsUrl: "#", registrationUrl: "#", oauth2DeviceVerificationAction: "#", oauthAction: "#" });
153
156
  export const kcContextMocks = [
@@ -1 +1 @@
1
- {"version":3,"file":"kcContextMocks.js","sourceRoot":"","sources":["../../src/login/KcContext/kcContextMocks.ts"],"names":[],"mappings":"AAAA,OAAO,sCAAsC,CAAC;AAE9C,OAAO,EACH,gBAAgB,EAChB,kBAAkB,EAErB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAe,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,MAAM,gBAAgB,GAAG,MAAM,CAAC,WAAW,CAC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AAmB,KACtB,kBAAkB,EAAE,IAAI,IAC1B;IACF,EAAE,+BACE,MAAM,EAAE,sCAAsC,IAC3C,mBAAmB,KACtB,4BAA4B,EAAE;YAC1B,+BAA+B,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;YAClE,mCAAmC,EAAE,2BAA2B;YAChE,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE;SACpC,IACH;IACF,EAAE,+BACE,MAAM,EAAE,qCAAqC,IAC1C,mBAAmB,KACtB,2BAA2B,EAAE;YACzB,UAAU,EAAE,IAAI;SACnB,IACH;IACF,EAAE,+BACE,MAAM,EAAE,qBAAqB,IAC1B,mBAAmB,KACtB,wBAAwB,EAAE;YACtB,kBAAkB,EAAE;gBAChB;oBACI,EAAE,EAAE,QAAQ;oBACZ,SAAS,EAAE,cAAc;iBAC5B;gBACD;oBACI,EAAE,EAAE,QAAQ;oBACZ,SAAS,EAAE,cAAc;iBAC5B;gBACD;oBACI,EAAE,EAAE,QAAQ;oBACZ,SAAS,EAAE,YAAY;iBAC1B;aACJ;YACD,oBAAoB,EAAE,QAAQ;SACjC,IACH;IACF,EAAE,+BACE,MAAM,EAAE,qBAAqB,IAC1B,mBAAmB,KACtB,IAAI,EAAE;YACF,QAAQ,EAAE;gBACN,SAAS,EAAE,mCAAmC;gBAC9C,aAAa,EAAE,IAAI;gBACnB,QAAQ,EAAE,SAAS;aACtB;SACJ,IACH;IACF,EAAE,+BACE,MAAM,EAAE,oBAAoB,IACzB,mBAAmB,KACtB,oBAAoB,EAAE,IAAI,IAC5B;CACL,CAAC;AAEF;IAOI,MAAM,EAA4B,CAAC;IACnC,MAAM,EAAiC,CAAC;CAC3C"}
1
+ {"version":3,"file":"kcContextMocks.js","sourceRoot":"","sources":["../../src/login/KcContext/kcContextMocks.ts"],"names":[],"mappings":"AAAA,OAAO,sCAAsC,CAAC;AAE9C,OAAO,EACH,gBAAgB,EAChB,kBAAkB,EAErB,MAAM,kCAAkC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