keycloakify 10.0.0-rc.36 → 10.0.0-rc.38
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.
- package/account/Fallback.d.ts +1 -2
- package/account/Fallback.js.map +1 -1
- package/account/KcContext/KcContext.d.ts +6 -6
- package/account/KcContext/getKcContextMock.d.ts +9 -9
- package/account/KcContext/getKcContextMock.js +3 -3
- package/account/KcContext/getKcContextMock.js.map +1 -1
- package/account/Template.d.ts +1 -2
- package/account/Template.js +7 -6
- package/account/Template.js.map +1 -1
- package/account/TemplateProps.d.ts +1 -3
- package/account/i18n/i18n.d.ts +9 -4
- package/account/i18n/i18n.js +132 -87
- package/account/i18n/i18n.js.map +1 -1
- package/account/i18n/index.d.ts +9 -2
- package/account/i18n/index.js +5 -1
- package/account/i18n/index.js.map +1 -1
- package/account/index.d.ts +1 -1
- package/account/lib/kcClsx.d.ts +9 -0
- package/account/lib/{useGetClassName.js → kcClsx.js} +3 -3
- package/account/lib/kcClsx.js.map +1 -0
- package/account/pages/Account.d.ts +1 -2
- package/account/pages/Account.js +9 -7
- package/account/pages/Account.js.map +1 -1
- package/account/pages/Applications.d.ts +1 -2
- package/account/pages/Applications.js +7 -7
- package/account/pages/Applications.js.map +1 -1
- package/account/pages/FederatedIdentity.d.ts +1 -2
- package/account/pages/FederatedIdentity.js +4 -3
- package/account/pages/FederatedIdentity.js.map +1 -1
- package/account/pages/Log.d.ts +1 -2
- package/account/pages/Log.js +6 -5
- package/account/pages/Log.js.map +1 -1
- package/account/pages/PageProps.d.ts +2 -4
- package/account/pages/Password.d.ts +1 -2
- package/account/pages/Password.js +10 -9
- package/account/pages/Password.js.map +1 -1
- package/account/pages/Sessions.d.ts +1 -2
- package/account/pages/Sessions.js +6 -6
- package/account/pages/Sessions.js.map +1 -1
- package/account/pages/Totp.d.ts +1 -2
- package/account/pages/Totp.js +6 -5
- package/account/pages/Totp.js.map +1 -1
- package/bin/{314.index.js → 21.index.js} +162 -4
- package/bin/{430.index.js → 214.index.js} +161 -2
- package/bin/3.index.js +81 -65
- package/bin/526.index.js +3 -2
- package/bin/538.index.js +552 -0
- package/bin/795.index.js +3 -2
- package/bin/{890.index.js → 941.index.js} +2 -159
- package/bin/main.js +19 -7
- package/lib/getKcClsx.d.ts +11 -0
- package/lib/getKcClsx.js +44 -0
- package/lib/getKcClsx.js.map +1 -0
- package/login/Fallback.d.ts +1 -2
- package/login/Fallback.js.map +1 -1
- package/login/KcContext/KcContext.d.ts +6 -6
- package/login/KcContext/getKcContextMock.d.ts +9 -9
- package/login/KcContext/getKcContextMock.js +3 -3
- package/login/KcContext/getKcContextMock.js.map +1 -1
- package/login/Template.d.ts +1 -2
- package/login/Template.js +10 -9
- package/login/Template.js.map +1 -1
- package/login/TemplateProps.d.ts +1 -3
- package/login/UserProfileFormFields.d.ts +5 -5
- package/login/UserProfileFormFields.js +35 -34
- package/login/UserProfileFormFields.js.map +1 -1
- package/login/i18n/i18n.d.ts +9 -4
- package/login/i18n/i18n.js +136 -91
- package/login/i18n/i18n.js.map +1 -1
- package/login/i18n/index.d.ts +9 -2
- package/login/i18n/index.js +5 -1
- package/login/i18n/index.js.map +1 -1
- package/login/index.d.ts +1 -1
- package/login/lib/kcClsx.d.ts +9 -0
- package/login/lib/{useGetClassName.js → kcClsx.js} +3 -3
- package/login/lib/kcClsx.js.map +1 -0
- package/login/lib/useUserProfileForm.d.ts +9 -6
- package/login/lib/useUserProfileForm.js +7 -5
- package/login/lib/useUserProfileForm.js.map +1 -1
- package/login/pages/Code.d.ts +1 -2
- package/login/pages/Code.js +6 -5
- package/login/pages/Code.js.map +1 -1
- package/login/pages/DeleteAccountConfirm.d.ts +1 -2
- package/login/pages/DeleteAccountConfirm.js +7 -7
- package/login/pages/DeleteAccountConfirm.js.map +1 -1
- package/login/pages/DeleteCredential.d.ts +1 -2
- package/login/pages/DeleteCredential.js +6 -6
- package/login/pages/DeleteCredential.js.map +1 -1
- package/login/pages/Error.d.ts +1 -2
- package/login/pages/Error.js +4 -3
- package/login/pages/Error.js.map +1 -1
- package/login/pages/FrontchannelLogout.d.ts +1 -2
- package/login/pages/FrontchannelLogout.js +4 -3
- package/login/pages/FrontchannelLogout.js.map +1 -1
- package/login/pages/IdpReviewUserProfile.d.ts +1 -2
- package/login/pages/IdpReviewUserProfile.js +6 -6
- package/login/pages/IdpReviewUserProfile.js.map +1 -1
- package/login/pages/Info.d.ts +1 -2
- package/login/pages/Info.js +4 -3
- package/login/pages/Info.js.map +1 -1
- package/login/pages/Login.d.ts +1 -2
- package/login/pages/Login.js +10 -8
- package/login/pages/Login.js.map +1 -1
- package/login/pages/LoginConfigTotp.d.ts +1 -2
- package/login/pages/LoginConfigTotp.js +8 -7
- package/login/pages/LoginConfigTotp.js.map +1 -1
- package/login/pages/LoginIdpLinkConfirm.d.ts +1 -2
- package/login/pages/LoginIdpLinkConfirm.js +6 -6
- package/login/pages/LoginIdpLinkConfirm.js.map +1 -1
- package/login/pages/LoginIdpLinkEmail.d.ts +1 -2
- package/login/pages/LoginIdpLinkEmail.js +4 -3
- package/login/pages/LoginIdpLinkEmail.js.map +1 -1
- package/login/pages/LoginOauth2DeviceVerifyUserCode.d.ts +1 -2
- package/login/pages/LoginOauth2DeviceVerifyUserCode.js +6 -6
- package/login/pages/LoginOauth2DeviceVerifyUserCode.js.map +1 -1
- package/login/pages/LoginOauthGrant.d.ts +1 -2
- package/login/pages/LoginOauthGrant.js +7 -7
- package/login/pages/LoginOauthGrant.js.map +1 -1
- package/login/pages/LoginOtp.d.ts +1 -2
- package/login/pages/LoginOtp.js +6 -6
- package/login/pages/LoginOtp.js.map +1 -1
- package/login/pages/LoginPageExpired.d.ts +1 -2
- package/login/pages/LoginPageExpired.js +4 -3
- package/login/pages/LoginPageExpired.js.map +1 -1
- package/login/pages/LoginPassword.d.ts +1 -2
- package/login/pages/LoginPassword.js +9 -7
- package/login/pages/LoginPassword.js.map +1 -1
- package/login/pages/LoginRecoveryAuthnCodeConfig.d.ts +1 -2
- package/login/pages/LoginRecoveryAuthnCodeConfig.js +9 -7
- package/login/pages/LoginRecoveryAuthnCodeConfig.js.map +1 -1
- package/login/pages/LoginRecoveryAuthnCodeInput.d.ts +1 -2
- package/login/pages/LoginRecoveryAuthnCodeInput.js +6 -6
- package/login/pages/LoginRecoveryAuthnCodeInput.js.map +1 -1
- package/login/pages/LoginResetOtp.d.ts +1 -2
- package/login/pages/LoginResetOtp.js +6 -6
- package/login/pages/LoginResetOtp.js.map +1 -1
- package/login/pages/LoginResetPassword.d.ts +1 -2
- package/login/pages/LoginResetPassword.js +7 -7
- package/login/pages/LoginResetPassword.js.map +1 -1
- package/login/pages/LoginUpdatePassword.d.ts +1 -2
- package/login/pages/LoginUpdatePassword.js +10 -9
- package/login/pages/LoginUpdatePassword.js.map +1 -1
- package/login/pages/LoginUpdateProfile.d.ts +1 -2
- package/login/pages/LoginUpdateProfile.js +7 -12
- package/login/pages/LoginUpdateProfile.js.map +1 -1
- package/login/pages/LoginUsername.d.ts +1 -2
- package/login/pages/LoginUsername.js +8 -7
- package/login/pages/LoginUsername.js.map +1 -1
- package/login/pages/LoginVerifyEmail.d.ts +1 -2
- package/login/pages/LoginVerifyEmail.js +4 -3
- package/login/pages/LoginVerifyEmail.js.map +1 -1
- package/login/pages/LoginX509Info.d.ts +1 -2
- package/login/pages/LoginX509Info.js +6 -6
- package/login/pages/LoginX509Info.js.map +1 -1
- package/login/pages/LogoutConfirm.d.ts +1 -2
- package/login/pages/LogoutConfirm.js +6 -6
- package/login/pages/LogoutConfirm.js.map +1 -1
- package/login/pages/PageProps.d.ts +2 -4
- package/login/pages/Register.d.ts +1 -2
- package/login/pages/Register.js +8 -16
- package/login/pages/Register.js.map +1 -1
- package/login/pages/SamlPostForm.d.ts +1 -2
- package/login/pages/SamlPostForm.js +4 -3
- package/login/pages/SamlPostForm.js.map +1 -1
- package/login/pages/SelectAuthenticator.d.ts +1 -2
- package/login/pages/SelectAuthenticator.js +6 -9
- package/login/pages/SelectAuthenticator.js.map +1 -1
- package/login/pages/Terms.d.ts +1 -2
- package/login/pages/Terms.js +7 -7
- package/login/pages/Terms.js.map +1 -1
- package/login/pages/UpdateEmail.d.ts +1 -2
- package/login/pages/UpdateEmail.js +8 -12
- package/login/pages/UpdateEmail.js.map +1 -1
- package/login/pages/WebauthnAuthenticate.d.ts +1 -2
- package/login/pages/WebauthnAuthenticate.js +13 -12
- package/login/pages/WebauthnAuthenticate.js.map +1 -1
- package/login/pages/WebauthnError.d.ts +1 -2
- package/login/pages/WebauthnError.js +7 -7
- package/login/pages/WebauthnError.js.map +1 -1
- package/login/pages/WebauthnRegister.d.ts +1 -2
- package/login/pages/WebauthnRegister.js +9 -8
- package/login/pages/WebauthnRegister.js.map +1 -1
- package/package.json +24 -16
- package/src/account/Fallback.tsx +1 -2
- package/src/account/KcContext/KcContext.ts +7 -7
- package/src/account/KcContext/getKcContextMock.ts +13 -24
- package/src/account/Template.tsx +8 -8
- package/src/account/TemplateProps.ts +1 -6
- package/src/account/i18n/i18n.tsx +204 -125
- package/src/account/i18n/index.ts +10 -2
- package/src/account/index.ts +1 -1
- package/src/account/lib/{useGetClassName.ts → kcClsx.ts} +6 -2
- package/src/account/pages/Account.tsx +15 -21
- package/src/account/pages/Applications.tsx +8 -9
- package/src/account/pages/FederatedIdentity.tsx +5 -5
- package/src/account/pages/Log.tsx +8 -8
- package/src/account/pages/PageProps.ts +2 -4
- package/src/account/pages/Password.tsx +13 -16
- package/src/account/pages/Sessions.tsx +9 -10
- package/src/account/pages/Totp.tsx +19 -28
- package/src/bin/keycloakify/generateSrcMainResources/generateMessageProperties.ts +2 -66
- package/src/bin/keycloakify/generateSrcMainResources/generateSrcMainResourcesForMainTheme.ts +7 -1
- package/src/bin/main.ts +15 -0
- package/src/bin/shared/buildOptions.ts +5 -2
- package/src/bin/shared/generateKcGenTs.ts +61 -0
- package/src/bin/tools/escapeStringForPropertiesFile.ts +64 -0
- package/src/bin/update-kc-gen.ts +13 -0
- package/src/lib/getKcClsx.ts +75 -0
- package/src/login/Fallback.tsx +1 -2
- package/src/login/KcContext/KcContext.ts +7 -7
- package/src/login/KcContext/getKcContextMock.ts +13 -24
- package/src/login/Template.tsx +36 -37
- package/src/login/TemplateProps.ts +1 -6
- package/src/login/UserProfileFormFields.tsx +66 -81
- package/src/login/i18n/i18n.tsx +208 -129
- package/src/login/i18n/index.ts +10 -2
- package/src/login/index.ts +1 -1
- package/src/login/lib/{useGetClassName.ts → kcClsx.ts} +6 -2
- package/src/login/lib/useUserProfileForm.tsx +29 -21
- package/src/login/pages/Code.tsx +10 -8
- package/src/login/pages/DeleteAccountConfirm.tsx +9 -10
- package/src/login/pages/DeleteCredential.tsx +11 -10
- package/src/login/pages/Error.tsx +5 -5
- package/src/login/pages/FrontchannelLogout.tsx +7 -5
- package/src/login/pages/IdpReviewUserProfile.tsx +16 -25
- package/src/login/pages/Info.tsx +7 -5
- package/src/login/pages/Login.tsx +34 -53
- package/src/login/pages/LoginConfigTotp.tsx +30 -38
- package/src/login/pages/LoginIdpLinkConfirm.tsx +10 -21
- package/src/login/pages/LoginIdpLinkEmail.tsx +5 -5
- package/src/login/pages/LoginOauth2DeviceVerifyUserCode.tsx +19 -24
- package/src/login/pages/LoginOauthGrant.tsx +14 -21
- package/src/login/pages/LoginOtp.tsx +29 -33
- package/src/login/pages/LoginPageExpired.tsx +5 -5
- package/src/login/pages/LoginPassword.tsx +23 -33
- package/src/login/pages/LoginRecoveryAuthnCodeConfig.tsx +21 -25
- package/src/login/pages/LoginRecoveryAuthnCodeInput.tsx +21 -25
- package/src/login/pages/LoginResetOtp.tsx +21 -25
- package/src/login/pages/LoginResetPassword.tsx +21 -25
- package/src/login/pages/LoginUpdatePassword.tsx +42 -52
- package/src/login/pages/LoginUpdateProfile.tsx +26 -33
- package/src/login/pages/LoginUsername.tsx +23 -35
- package/src/login/pages/LoginVerifyEmail.tsx +7 -5
- package/src/login/pages/LoginX509Info.tsx +27 -36
- package/src/login/pages/LogoutConfirm.tsx +11 -17
- package/src/login/pages/PageProps.ts +2 -4
- package/src/login/pages/Register.tsx +24 -49
- package/src/login/pages/SamlPostForm.tsx +5 -5
- package/src/login/pages/SelectAuthenticator.tsx +24 -26
- package/src/login/pages/Terms.tsx +11 -18
- package/src/login/pages/UpdateEmail.tsx +26 -36
- package/src/login/pages/WebauthnAuthenticate.tsx +26 -32
- package/src/login/pages/WebauthnError.tsx +11 -22
- package/src/login/pages/WebauthnRegister.tsx +20 -28
- package/src/tools/clsx.ts +6 -48
- package/src/tools/clsx_withTransform.ts +55 -0
- package/src/vite-plugin/vite-plugin.ts +14 -6
- package/tools/clsx.d.ts +3 -2
- package/tools/clsx.js +5 -41
- package/tools/clsx.js.map +1 -1
- package/tools/clsx_withTransform.d.ts +5 -0
- package/tools/clsx_withTransform.js +43 -0
- package/tools/clsx_withTransform.js.map +1 -0
- package/vite-plugin/index.js +167 -37
- package/account/lib/useGetClassName.d.ts +0 -7
- package/account/lib/useGetClassName.js.map +0 -1
- package/lib/useGetClassName.d.ts +0 -10
- package/lib/useGetClassName.js +0 -14
- package/lib/useGetClassName.js.map +0 -1
- package/login/lib/useGetClassName.d.ts +0 -7
- package/login/lib/useGetClassName.js.map +0 -1
- package/src/lib/useGetClassName.ts +0 -27
package/account/pages/Totp.js
CHANGED
@@ -1,20 +1,21 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
2
|
import { clsx } from "../../tools/clsx";
|
3
|
-
import {
|
3
|
+
import { getKcClsx } from "../../account/lib/kcClsx";
|
4
|
+
import { useI18n } from "../i18n";
|
4
5
|
export default function Totp(props) {
|
5
6
|
var _a, _b;
|
6
|
-
const { kcContext,
|
7
|
-
const {
|
7
|
+
const { kcContext, doUseDefaultCss, Template, classes } = props;
|
8
|
+
const { kcClsx } = getKcClsx({
|
8
9
|
doUseDefaultCss,
|
9
10
|
classes
|
10
11
|
});
|
11
12
|
const { totp, mode, url, messagesPerField, stateChecker } = kcContext;
|
12
|
-
const { msg, msgStr, advancedMsg } =
|
13
|
+
const { msg, msgStr, advancedMsg } = useI18n({ kcContext });
|
13
14
|
const algToKeyUriAlg = {
|
14
15
|
HmacSHA1: "SHA1",
|
15
16
|
HmacSHA256: "SHA256",
|
16
17
|
HmacSHA512: "SHA512"
|
17
18
|
};
|
18
|
-
return (_jsx(Template, Object.assign({}, { kcContext,
|
19
|
+
return (_jsx(Template, Object.assign({}, { kcContext, doUseDefaultCss, classes }, { active: "totp" }, { children: _jsxs(_Fragment, { children: [_jsxs("div", Object.assign({ className: "row" }, { children: [_jsx("div", Object.assign({ className: "col-md-10" }, { children: _jsx("h2", { children: msg("authenticatorTitle") }) })), totp.otpCredentials.length === 0 && (_jsxs("div", Object.assign({ className: "subtitle col-md-2" }, { children: [_jsx("span", Object.assign({ className: "required" }, { children: "*" })), msg("requiredFields")] })))] })), totp.enabled && (_jsxs("table", Object.assign({ className: "table table-bordered table-striped" }, { children: [_jsx("thead", { children: totp.otpCredentials.length > 1 ? (_jsx("tr", { children: _jsx("th", Object.assign({ colSpan: 4 }, { children: msg("configureAuthenticators") })) })) : (_jsx("tr", { children: _jsx("th", Object.assign({ colSpan: 3 }, { children: msg("configureAuthenticators") })) })) }), _jsx("tbody", { children: totp.otpCredentials.map((credential, index) => (_jsxs("tr", { children: [_jsx("td", Object.assign({ className: "provider" }, { children: msg("mobile") })), totp.otpCredentials.length > 1 && _jsx("td", Object.assign({ className: "provider" }, { children: credential.id })), _jsx("td", Object.assign({ className: "provider" }, { children: credential.userLabel || "" })), _jsx("td", Object.assign({ className: "action" }, { children: _jsxs("form", Object.assign({ action: url.totpUrl, method: "post", className: "form-inline" }, { children: [_jsx("input", { type: "hidden", id: "stateChecker", name: "stateChecker", value: stateChecker }), _jsx("input", { type: "hidden", id: "submitAction", name: "submitAction", value: "Delete" }), _jsx("input", { type: "hidden", id: "credentialId", name: "credentialId", value: credential.id }), _jsx("button", Object.assign({ id: `remove-mobile-${index}`, className: "btn btn-default" }, { children: _jsx("i", { className: "pficon pficon-delete" }) }))] })) }))] }, index))) })] }))), !totp.enabled && (_jsxs("div", { children: [_jsx("hr", {}), _jsxs("ol", Object.assign({ id: "kc-totp-settings" }, { children: [_jsxs("li", { children: [_jsx("p", { children: msg("totpStep1") }), _jsx("ul", Object.assign({ id: "kc-totp-supported-apps" }, { children: (_a = totp.supportedApplications) === null || _a === void 0 ? void 0 : _a.map(app => _jsx("li", { children: advancedMsg(app) }, app)) }))] }), mode && mode == "manual" ? (_jsxs(_Fragment, { children: [_jsxs("li", { children: [_jsx("p", { children: msg("totpManualStep2") }), _jsx("p", { children: _jsx("span", Object.assign({ id: "kc-totp-secret-key" }, { children: totp.totpSecretEncoded })) }), _jsx("p", { children: _jsx("a", Object.assign({ href: totp.qrUrl, id: "mode-barcode" }, { children: msg("totpScanBarcode") })) })] }), _jsxs("li", { children: [_jsx("p", { children: msg("totpManualStep3") }), _jsxs("ul", { children: [_jsxs("li", Object.assign({ id: "kc-totp-type" }, { children: [msg("totpType"), ": ", msg(`totp.${totp.policy.type}`)] })), _jsxs("li", Object.assign({ id: "kc-totp-algorithm" }, { children: [msg("totpAlgorithm"), ": ", (_b = algToKeyUriAlg === null || algToKeyUriAlg === void 0 ? void 0 : algToKeyUriAlg[totp.policy.algorithm]) !== null && _b !== void 0 ? _b : totp.policy.algorithm] })), _jsxs("li", Object.assign({ id: "kc-totp-digits" }, { children: [msg("totpDigits"), ": ", totp.policy.digits] })), totp.policy.type === "totp" ? (_jsxs("li", Object.assign({ id: "kc-totp-period" }, { children: [msg("totpInterval"), ": ", totp.policy.period] }))) : (_jsxs("li", Object.assign({ id: "kc-totp-counter" }, { children: [msg("totpCounter"), ": ", totp.policy.initialCounter] })))] })] })] })) : (_jsxs("li", { children: [_jsx("p", { children: msg("totpStep2") }), _jsx("p", { children: _jsx("img", { id: "kc-totp-secret-qr-code", src: `data:image/png;base64, ${totp.totpSecretQrCode}`, alt: "Figure: Barcode" }) }), _jsx("p", { children: _jsx("a", Object.assign({ href: totp.manualUrl, id: "mode-manual" }, { children: msg("totpUnableToScan") })) })] })), _jsxs("li", { children: [_jsx("p", { children: msg("totpStep3") }), _jsx("p", { children: msg("totpStep3DeviceName") })] })] })), _jsx("hr", {}), _jsxs("form", Object.assign({ action: url.totpUrl, className: kcClsx("kcFormClass"), id: "kc-totp-settings-form", method: "post" }, { children: [_jsx("input", { type: "hidden", id: "stateChecker", name: "stateChecker", value: stateChecker }), _jsxs("div", Object.assign({ className: kcClsx("kcFormGroupClass") }, { children: [_jsxs("div", Object.assign({ className: "col-sm-2 col-md-2" }, { children: [_jsx("label", Object.assign({ htmlFor: "totp", className: "control-label" }, { children: msg("authenticatorCode") })), _jsx("span", Object.assign({ className: "required" }, { children: "*" }))] })), _jsxs("div", Object.assign({ className: "col-sm-10 col-md-10" }, { children: [_jsx("input", { type: "text", id: "totp", name: "totp", autoComplete: "off", className: kcClsx("kcInputClass"), "aria-invalid": messagesPerField.existsError("totp") }), messagesPerField.existsError("totp") && (_jsx("span", Object.assign({ id: "input-error-otp-code", className: kcClsx("kcInputErrorMessageClass"), "aria-live": "polite" }, { children: messagesPerField.get("totp") })))] })), _jsx("input", { type: "hidden", id: "totpSecret", name: "totpSecret", value: totp.totpSecret }), mode && _jsx("input", { type: "hidden", id: "mode", value: mode })] })), _jsxs("div", Object.assign({ className: kcClsx("kcFormGroupClass") }, { children: [_jsxs("div", Object.assign({ className: "col-sm-2 col-md-2" }, { children: [_jsx("label", Object.assign({ htmlFor: "userLabel", className: kcClsx("kcLabelClass") }, { children: msg("totpDeviceName") })), totp.otpCredentials.length >= 1 && _jsx("span", Object.assign({ className: "required" }, { children: "*" }))] })), _jsxs("div", Object.assign({ className: "col-sm-10 col-md-10" }, { children: [_jsx("input", { type: "text", id: "userLabel", name: "userLabel", autoComplete: "off", className: kcClsx("kcInputClass"), "aria-invalid": messagesPerField.existsError("userLabel") }), messagesPerField.existsError("userLabel") && (_jsx("span", Object.assign({ id: "input-error-otp-label", className: kcClsx("kcInputErrorMessageClass"), "aria-live": "polite" }, { children: messagesPerField.get("userLabel") })))] }))] })), _jsx("div", Object.assign({ id: "kc-form-buttons", className: clsx(kcClsx("kcFormGroupClass"), "text-right") }, { children: _jsxs("div", Object.assign({ className: kcClsx("kcInputWrapperClass") }, { children: [_jsx("input", { type: "submit", className: kcClsx("kcButtonClass", "kcButtonPrimaryClass", "kcButtonLargeClass"), id: "saveTOTPBtn", value: msgStr("doSave") }), _jsx("button", Object.assign({ type: "submit", className: kcClsx("kcButtonClass", "kcButtonDefaultClass", "kcButtonLargeClass", "kcButtonLargeClass"), id: "cancelTOTPBtn", name: "submitAction", value: "Cancel" }, { children: msg("doCancel") }))] })) }))] }))] }))] }) })));
|
19
20
|
}
|
20
21
|
//# sourceMappingURL=Totp.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Totp.js","sourceRoot":"","sources":["../../src/account/pages/Totp.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"Totp.js","sourceRoot":"","sources":["../../src/account/pages/Totp.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAG3D,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAA4D;;IACrF,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEhE,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;QACzB,eAAe;QACf,OAAO;KACV,CAAC,CAAC;IAEH,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,SAAS,CAA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oBAAoB,CAAC,EACtG,EAAE,EAAC,eAAe,EAClB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAC,QAAQ,gBAEb,GAAG,CAAC,UAAU,CAAC,IACX,KACP,IACJ,KACH,IACL,CACT,IACF,IACI,CACd,CAAC;AACN,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
exports.id =
|
3
|
-
exports.ids = [
|
2
|
+
exports.id = 21;
|
3
|
+
exports.ids = [21];
|
4
4
|
exports.modules = {
|
5
5
|
|
6
6
|
/***/ 54659:
|
@@ -92,7 +92,7 @@ var constants = __webpack_require__(173);
|
|
92
92
|
|
93
93
|
|
94
94
|
function readBuildOptions(params) {
|
95
|
-
var _a, _b, _c, _d, _e;
|
95
|
+
var _a, _b, _c, _d, _e, _f;
|
96
96
|
const { cliCommandOptions } = params;
|
97
97
|
const reactAppRootDirPath = (() => {
|
98
98
|
if (cliCommandOptions.reactAppRootDirPath === undefined) {
|
@@ -262,7 +262,8 @@ function readBuildOptions(params) {
|
|
262
262
|
return (0,external_path_.join)(reactAppBuildDirPath, resolvedViteConfig.assetsDir);
|
263
263
|
})(),
|
264
264
|
npmWorkspaceRootDirPath,
|
265
|
-
kcContextExclusionsFtlCode: userProvidedBuildOptions.kcContextExclusionsFtlCode
|
265
|
+
kcContextExclusionsFtlCode: userProvidedBuildOptions.kcContextExclusionsFtlCode,
|
266
|
+
environmentVariables: (_f = userProvidedBuildOptions.environmentVariables) !== null && _f !== void 0 ? _f : []
|
266
267
|
};
|
267
268
|
}
|
268
269
|
//# sourceMappingURL=buildOptions.js.map
|
@@ -1059,6 +1060,163 @@ const withObjectValues = options => {
|
|
1059
1060
|
|
1060
1061
|
exports.withObjectValues = withObjectValues;
|
1061
1062
|
|
1063
|
+
/***/ }),
|
1064
|
+
|
1065
|
+
/***/ 31621:
|
1066
|
+
/***/ ((module) => {
|
1067
|
+
|
1068
|
+
|
1069
|
+
|
1070
|
+
module.exports = (flag, argv = process.argv) => {
|
1071
|
+
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
|
1072
|
+
const position = argv.indexOf(prefix + flag);
|
1073
|
+
const terminatorPosition = argv.indexOf('--');
|
1074
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
1075
|
+
};
|
1076
|
+
|
1077
|
+
|
1078
|
+
/***/ }),
|
1079
|
+
|
1080
|
+
/***/ 59318:
|
1081
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1082
|
+
|
1083
|
+
|
1084
|
+
const os = __webpack_require__(22037);
|
1085
|
+
const tty = __webpack_require__(76224);
|
1086
|
+
const hasFlag = __webpack_require__(31621);
|
1087
|
+
|
1088
|
+
const {env} = process;
|
1089
|
+
|
1090
|
+
let forceColor;
|
1091
|
+
if (hasFlag('no-color') ||
|
1092
|
+
hasFlag('no-colors') ||
|
1093
|
+
hasFlag('color=false') ||
|
1094
|
+
hasFlag('color=never')) {
|
1095
|
+
forceColor = 0;
|
1096
|
+
} else if (hasFlag('color') ||
|
1097
|
+
hasFlag('colors') ||
|
1098
|
+
hasFlag('color=true') ||
|
1099
|
+
hasFlag('color=always')) {
|
1100
|
+
forceColor = 1;
|
1101
|
+
}
|
1102
|
+
|
1103
|
+
if ('FORCE_COLOR' in env) {
|
1104
|
+
if (env.FORCE_COLOR === 'true') {
|
1105
|
+
forceColor = 1;
|
1106
|
+
} else if (env.FORCE_COLOR === 'false') {
|
1107
|
+
forceColor = 0;
|
1108
|
+
} else {
|
1109
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
1110
|
+
}
|
1111
|
+
}
|
1112
|
+
|
1113
|
+
function translateLevel(level) {
|
1114
|
+
if (level === 0) {
|
1115
|
+
return false;
|
1116
|
+
}
|
1117
|
+
|
1118
|
+
return {
|
1119
|
+
level,
|
1120
|
+
hasBasic: true,
|
1121
|
+
has256: level >= 2,
|
1122
|
+
has16m: level >= 3
|
1123
|
+
};
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
function supportsColor(haveStream, streamIsTTY) {
|
1127
|
+
if (forceColor === 0) {
|
1128
|
+
return 0;
|
1129
|
+
}
|
1130
|
+
|
1131
|
+
if (hasFlag('color=16m') ||
|
1132
|
+
hasFlag('color=full') ||
|
1133
|
+
hasFlag('color=truecolor')) {
|
1134
|
+
return 3;
|
1135
|
+
}
|
1136
|
+
|
1137
|
+
if (hasFlag('color=256')) {
|
1138
|
+
return 2;
|
1139
|
+
}
|
1140
|
+
|
1141
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
1142
|
+
return 0;
|
1143
|
+
}
|
1144
|
+
|
1145
|
+
const min = forceColor || 0;
|
1146
|
+
|
1147
|
+
if (env.TERM === 'dumb') {
|
1148
|
+
return min;
|
1149
|
+
}
|
1150
|
+
|
1151
|
+
if (process.platform === 'win32') {
|
1152
|
+
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
|
1153
|
+
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
|
1154
|
+
const osRelease = os.release().split('.');
|
1155
|
+
if (
|
1156
|
+
Number(osRelease[0]) >= 10 &&
|
1157
|
+
Number(osRelease[2]) >= 10586
|
1158
|
+
) {
|
1159
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
1160
|
+
}
|
1161
|
+
|
1162
|
+
return 1;
|
1163
|
+
}
|
1164
|
+
|
1165
|
+
if ('CI' in env) {
|
1166
|
+
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
1167
|
+
return 1;
|
1168
|
+
}
|
1169
|
+
|
1170
|
+
return min;
|
1171
|
+
}
|
1172
|
+
|
1173
|
+
if ('TEAMCITY_VERSION' in env) {
|
1174
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
1175
|
+
}
|
1176
|
+
|
1177
|
+
if (env.COLORTERM === 'truecolor') {
|
1178
|
+
return 3;
|
1179
|
+
}
|
1180
|
+
|
1181
|
+
if ('TERM_PROGRAM' in env) {
|
1182
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
1183
|
+
|
1184
|
+
switch (env.TERM_PROGRAM) {
|
1185
|
+
case 'iTerm.app':
|
1186
|
+
return version >= 3 ? 3 : 2;
|
1187
|
+
case 'Apple_Terminal':
|
1188
|
+
return 2;
|
1189
|
+
// No default
|
1190
|
+
}
|
1191
|
+
}
|
1192
|
+
|
1193
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
1194
|
+
return 2;
|
1195
|
+
}
|
1196
|
+
|
1197
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
1198
|
+
return 1;
|
1199
|
+
}
|
1200
|
+
|
1201
|
+
if ('COLORTERM' in env) {
|
1202
|
+
return 1;
|
1203
|
+
}
|
1204
|
+
|
1205
|
+
return min;
|
1206
|
+
}
|
1207
|
+
|
1208
|
+
function getSupportLevel(stream) {
|
1209
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
1210
|
+
return translateLevel(level);
|
1211
|
+
}
|
1212
|
+
|
1213
|
+
module.exports = {
|
1214
|
+
supportsColor: getSupportLevel,
|
1215
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
1216
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
1217
|
+
};
|
1218
|
+
|
1219
|
+
|
1062
1220
|
/***/ })
|
1063
1221
|
|
1064
1222
|
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
exports.id =
|
2
|
-
exports.ids = [
|
1
|
+
exports.id = 214;
|
2
|
+
exports.ids = [214];
|
3
3
|
exports.modules = {
|
4
4
|
|
5
5
|
/***/ 84794:
|
@@ -478,6 +478,22 @@ function createFromFd(fd, options) {
|
|
478
478
|
}
|
479
479
|
|
480
480
|
|
481
|
+
/***/ }),
|
482
|
+
|
483
|
+
/***/ 31621:
|
484
|
+
/***/ ((module) => {
|
485
|
+
|
486
|
+
"use strict";
|
487
|
+
|
488
|
+
|
489
|
+
module.exports = (flag, argv = process.argv) => {
|
490
|
+
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
|
491
|
+
const position = argv.indexOf(prefix + flag);
|
492
|
+
const terminatorPosition = argv.indexOf('--');
|
493
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
494
|
+
};
|
495
|
+
|
496
|
+
|
481
497
|
/***/ }),
|
482
498
|
|
483
499
|
/***/ 54833:
|
@@ -540,6 +556,149 @@ function pendGo(self, fn) {
|
|
540
556
|
}
|
541
557
|
|
542
558
|
|
559
|
+
/***/ }),
|
560
|
+
|
561
|
+
/***/ 59318:
|
562
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
563
|
+
|
564
|
+
"use strict";
|
565
|
+
|
566
|
+
const os = __webpack_require__(22037);
|
567
|
+
const tty = __webpack_require__(76224);
|
568
|
+
const hasFlag = __webpack_require__(31621);
|
569
|
+
|
570
|
+
const {env} = process;
|
571
|
+
|
572
|
+
let forceColor;
|
573
|
+
if (hasFlag('no-color') ||
|
574
|
+
hasFlag('no-colors') ||
|
575
|
+
hasFlag('color=false') ||
|
576
|
+
hasFlag('color=never')) {
|
577
|
+
forceColor = 0;
|
578
|
+
} else if (hasFlag('color') ||
|
579
|
+
hasFlag('colors') ||
|
580
|
+
hasFlag('color=true') ||
|
581
|
+
hasFlag('color=always')) {
|
582
|
+
forceColor = 1;
|
583
|
+
}
|
584
|
+
|
585
|
+
if ('FORCE_COLOR' in env) {
|
586
|
+
if (env.FORCE_COLOR === 'true') {
|
587
|
+
forceColor = 1;
|
588
|
+
} else if (env.FORCE_COLOR === 'false') {
|
589
|
+
forceColor = 0;
|
590
|
+
} else {
|
591
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
592
|
+
}
|
593
|
+
}
|
594
|
+
|
595
|
+
function translateLevel(level) {
|
596
|
+
if (level === 0) {
|
597
|
+
return false;
|
598
|
+
}
|
599
|
+
|
600
|
+
return {
|
601
|
+
level,
|
602
|
+
hasBasic: true,
|
603
|
+
has256: level >= 2,
|
604
|
+
has16m: level >= 3
|
605
|
+
};
|
606
|
+
}
|
607
|
+
|
608
|
+
function supportsColor(haveStream, streamIsTTY) {
|
609
|
+
if (forceColor === 0) {
|
610
|
+
return 0;
|
611
|
+
}
|
612
|
+
|
613
|
+
if (hasFlag('color=16m') ||
|
614
|
+
hasFlag('color=full') ||
|
615
|
+
hasFlag('color=truecolor')) {
|
616
|
+
return 3;
|
617
|
+
}
|
618
|
+
|
619
|
+
if (hasFlag('color=256')) {
|
620
|
+
return 2;
|
621
|
+
}
|
622
|
+
|
623
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
624
|
+
return 0;
|
625
|
+
}
|
626
|
+
|
627
|
+
const min = forceColor || 0;
|
628
|
+
|
629
|
+
if (env.TERM === 'dumb') {
|
630
|
+
return min;
|
631
|
+
}
|
632
|
+
|
633
|
+
if (process.platform === 'win32') {
|
634
|
+
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
|
635
|
+
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
|
636
|
+
const osRelease = os.release().split('.');
|
637
|
+
if (
|
638
|
+
Number(osRelease[0]) >= 10 &&
|
639
|
+
Number(osRelease[2]) >= 10586
|
640
|
+
) {
|
641
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
642
|
+
}
|
643
|
+
|
644
|
+
return 1;
|
645
|
+
}
|
646
|
+
|
647
|
+
if ('CI' in env) {
|
648
|
+
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
649
|
+
return 1;
|
650
|
+
}
|
651
|
+
|
652
|
+
return min;
|
653
|
+
}
|
654
|
+
|
655
|
+
if ('TEAMCITY_VERSION' in env) {
|
656
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
657
|
+
}
|
658
|
+
|
659
|
+
if (env.COLORTERM === 'truecolor') {
|
660
|
+
return 3;
|
661
|
+
}
|
662
|
+
|
663
|
+
if ('TERM_PROGRAM' in env) {
|
664
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
665
|
+
|
666
|
+
switch (env.TERM_PROGRAM) {
|
667
|
+
case 'iTerm.app':
|
668
|
+
return version >= 3 ? 3 : 2;
|
669
|
+
case 'Apple_Terminal':
|
670
|
+
return 2;
|
671
|
+
// No default
|
672
|
+
}
|
673
|
+
}
|
674
|
+
|
675
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
676
|
+
return 2;
|
677
|
+
}
|
678
|
+
|
679
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
680
|
+
return 1;
|
681
|
+
}
|
682
|
+
|
683
|
+
if ('COLORTERM' in env) {
|
684
|
+
return 1;
|
685
|
+
}
|
686
|
+
|
687
|
+
return min;
|
688
|
+
}
|
689
|
+
|
690
|
+
function getSupportLevel(stream) {
|
691
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
692
|
+
return translateLevel(level);
|
693
|
+
}
|
694
|
+
|
695
|
+
module.exports = {
|
696
|
+
supportsColor: getSupportLevel,
|
697
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
698
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
699
|
+
};
|
700
|
+
|
701
|
+
|
543
702
|
/***/ }),
|
544
703
|
|
545
704
|
/***/ 78781:
|
package/bin/3.index.js
CHANGED
@@ -22,6 +22,8 @@ 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);
|
26
|
+
|
25
27
|
|
26
28
|
|
27
29
|
|
@@ -133,7 +135,7 @@ function generateMessageProperties(params) {
|
|
133
135
|
const out = [];
|
134
136
|
for (const [languageTag, keyValueMap] of Object.entries(keyValueMapByLanguageTag)) {
|
135
137
|
const propertiesFileSource = Object.entries(keyValueMap)
|
136
|
-
.map(([key, value]) => `${key}=${
|
138
|
+
.map(([key, value]) => `${key}=${(0,_tools_escapeStringForPropertiesFile__WEBPACK_IMPORTED_MODULE_9__/* .escapeStringForPropertiesFile */ .y)(value)}`)
|
137
139
|
.join("\n");
|
138
140
|
out.push({
|
139
141
|
languageTag,
|
@@ -149,69 +151,6 @@ function generateMessageProperties(params) {
|
|
149
151
|
}
|
150
152
|
return out;
|
151
153
|
}
|
152
|
-
// Convert a JavaScript string to UTF-16 encoding
|
153
|
-
function toUTF16(codePoint) {
|
154
|
-
if (codePoint <= 0xffff) {
|
155
|
-
// BMP character
|
156
|
-
return "\\u" + codePoint.toString(16).padStart(4, "0");
|
157
|
-
}
|
158
|
-
else {
|
159
|
-
// Non-BMP character
|
160
|
-
codePoint -= 0x10000;
|
161
|
-
let highSurrogate = (codePoint >> 10) + 0xd800;
|
162
|
-
let lowSurrogate = (codePoint % 0x400) + 0xdc00;
|
163
|
-
return ("\\u" +
|
164
|
-
highSurrogate.toString(16).padStart(4, "0") +
|
165
|
-
"\\u" +
|
166
|
-
lowSurrogate.toString(16).padStart(4, "0"));
|
167
|
-
}
|
168
|
-
}
|
169
|
-
// Escapes special characters for use in a .properties file
|
170
|
-
function escapeString(str) {
|
171
|
-
let escapedStr = "";
|
172
|
-
for (const char of [...str]) {
|
173
|
-
const codePoint = char.codePointAt(0);
|
174
|
-
if (!codePoint)
|
175
|
-
continue;
|
176
|
-
switch (char) {
|
177
|
-
case "\n":
|
178
|
-
escapedStr += "\\n";
|
179
|
-
break;
|
180
|
-
case "\r":
|
181
|
-
escapedStr += "\\r";
|
182
|
-
break;
|
183
|
-
case "\t":
|
184
|
-
escapedStr += "\\t";
|
185
|
-
break;
|
186
|
-
case "\\":
|
187
|
-
escapedStr += "\\\\";
|
188
|
-
break;
|
189
|
-
case ":":
|
190
|
-
escapedStr += "\\:";
|
191
|
-
break;
|
192
|
-
case "=":
|
193
|
-
escapedStr += "\\=";
|
194
|
-
break;
|
195
|
-
case "#":
|
196
|
-
escapedStr += "\\#";
|
197
|
-
break;
|
198
|
-
case "!":
|
199
|
-
escapedStr += "\\!";
|
200
|
-
break;
|
201
|
-
case "'":
|
202
|
-
escapedStr += "''";
|
203
|
-
break;
|
204
|
-
default:
|
205
|
-
if (codePoint > 0x7f) {
|
206
|
-
escapedStr += toUTF16(codePoint); // Non-ASCII characters
|
207
|
-
}
|
208
|
-
else {
|
209
|
-
escapedStr += char; // ASCII character needs no escape
|
210
|
-
}
|
211
|
-
}
|
212
|
-
}
|
213
|
-
return escapedStr;
|
214
|
-
}
|
215
154
|
//# sourceMappingURL=generateMessageProperties.js.map
|
216
155
|
|
217
156
|
/***/ }),
|
@@ -751,6 +690,8 @@ var readThisNpmPackageVersion = __webpack_require__(64795);
|
|
751
690
|
var shared_metaInfKeycloakThemes = __webpack_require__(26914);
|
752
691
|
// EXTERNAL MODULE: ./node_modules/tsafe/objectEntries.js
|
753
692
|
var objectEntries = __webpack_require__(39612);
|
693
|
+
// EXTERNAL MODULE: ./dist/bin/tools/escapeStringForPropertiesFile.js
|
694
|
+
var escapeStringForPropertiesFile = __webpack_require__(27190);
|
754
695
|
;// CONCATENATED MODULE: ./dist/bin/keycloakify/generateSrcMainResources/generateSrcMainResourcesForMainTheme.js
|
755
696
|
|
756
697
|
|
@@ -771,6 +712,7 @@ var objectEntries = __webpack_require__(39612);
|
|
771
712
|
|
772
713
|
|
773
714
|
|
715
|
+
|
774
716
|
(0,assert.assert)();
|
775
717
|
async function generateSrcMainResourcesForMainTheme(params) {
|
776
718
|
var _a;
|
@@ -909,7 +851,8 @@ async function generateSrcMainResourcesForMainTheme(params) {
|
|
909
851
|
}
|
910
852
|
(0,assert.assert)(false);
|
911
853
|
})()}`,
|
912
|
-
...((_a = buildOptions.extraThemeProperties) !== null && _a !== void 0 ? _a : [])
|
854
|
+
...((_a = buildOptions.extraThemeProperties) !== null && _a !== void 0 ? _a : []),
|
855
|
+
buildOptions.environmentVariables.map(({ name, default: defaultValue }) => `${name}=\${env.${name}:${(0,escapeStringForPropertiesFile/* escapeStringForPropertiesFile */.y)(defaultValue)}}`)
|
913
856
|
].join("\n\n"), "utf8"));
|
914
857
|
}
|
915
858
|
email: {
|
@@ -1594,6 +1537,79 @@ function writeMetaInfKeycloakThemes(params) {
|
|
1594
1537
|
}
|
1595
1538
|
//# sourceMappingURL=metaInfKeycloakThemes.js.map
|
1596
1539
|
|
1540
|
+
/***/ }),
|
1541
|
+
|
1542
|
+
/***/ 27190:
|
1543
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
1544
|
+
|
1545
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1546
|
+
/* harmony export */ "y": () => (/* binding */ escapeStringForPropertiesFile)
|
1547
|
+
/* harmony export */ });
|
1548
|
+
// Convert a JavaScript string to UTF-16 encoding
|
1549
|
+
function toUTF16(codePoint) {
|
1550
|
+
if (codePoint <= 0xffff) {
|
1551
|
+
// BMP character
|
1552
|
+
return "\\u" + codePoint.toString(16).padStart(4, "0");
|
1553
|
+
}
|
1554
|
+
else {
|
1555
|
+
// Non-BMP character
|
1556
|
+
codePoint -= 0x10000;
|
1557
|
+
let highSurrogate = (codePoint >> 10) + 0xd800;
|
1558
|
+
let lowSurrogate = (codePoint % 0x400) + 0xdc00;
|
1559
|
+
return ("\\u" +
|
1560
|
+
highSurrogate.toString(16).padStart(4, "0") +
|
1561
|
+
"\\u" +
|
1562
|
+
lowSurrogate.toString(16).padStart(4, "0"));
|
1563
|
+
}
|
1564
|
+
}
|
1565
|
+
// Escapes special characters for use in a .properties file
|
1566
|
+
function escapeStringForPropertiesFile(str) {
|
1567
|
+
let escapedStr = "";
|
1568
|
+
for (const char of [...str]) {
|
1569
|
+
const codePoint = char.codePointAt(0);
|
1570
|
+
if (!codePoint)
|
1571
|
+
continue;
|
1572
|
+
switch (char) {
|
1573
|
+
case "\n":
|
1574
|
+
escapedStr += "\\n";
|
1575
|
+
break;
|
1576
|
+
case "\r":
|
1577
|
+
escapedStr += "\\r";
|
1578
|
+
break;
|
1579
|
+
case "\t":
|
1580
|
+
escapedStr += "\\t";
|
1581
|
+
break;
|
1582
|
+
case "\\":
|
1583
|
+
escapedStr += "\\\\";
|
1584
|
+
break;
|
1585
|
+
case ":":
|
1586
|
+
escapedStr += "\\:";
|
1587
|
+
break;
|
1588
|
+
case "=":
|
1589
|
+
escapedStr += "\\=";
|
1590
|
+
break;
|
1591
|
+
case "#":
|
1592
|
+
escapedStr += "\\#";
|
1593
|
+
break;
|
1594
|
+
case "!":
|
1595
|
+
escapedStr += "\\!";
|
1596
|
+
break;
|
1597
|
+
case "'":
|
1598
|
+
escapedStr += "''";
|
1599
|
+
break;
|
1600
|
+
default:
|
1601
|
+
if (codePoint > 0x7f) {
|
1602
|
+
escapedStr += toUTF16(codePoint); // Non-ASCII characters
|
1603
|
+
}
|
1604
|
+
else {
|
1605
|
+
escapedStr += char; // ASCII character needs no escape
|
1606
|
+
}
|
1607
|
+
}
|
1608
|
+
}
|
1609
|
+
return escapedStr;
|
1610
|
+
}
|
1611
|
+
//# sourceMappingURL=escapeStringForPropertiesFile.js.map
|
1612
|
+
|
1597
1613
|
/***/ })
|
1598
1614
|
|
1599
1615
|
};
|
package/bin/526.index.js
CHANGED
@@ -92,7 +92,7 @@ var constants = __webpack_require__(173);
|
|
92
92
|
|
93
93
|
|
94
94
|
function readBuildOptions(params) {
|
95
|
-
var _a, _b, _c, _d, _e;
|
95
|
+
var _a, _b, _c, _d, _e, _f;
|
96
96
|
const { cliCommandOptions } = params;
|
97
97
|
const reactAppRootDirPath = (() => {
|
98
98
|
if (cliCommandOptions.reactAppRootDirPath === undefined) {
|
@@ -262,7 +262,8 @@ function readBuildOptions(params) {
|
|
262
262
|
return (0,external_path_.join)(reactAppBuildDirPath, resolvedViteConfig.assetsDir);
|
263
263
|
})(),
|
264
264
|
npmWorkspaceRootDirPath,
|
265
|
-
kcContextExclusionsFtlCode: userProvidedBuildOptions.kcContextExclusionsFtlCode
|
265
|
+
kcContextExclusionsFtlCode: userProvidedBuildOptions.kcContextExclusionsFtlCode,
|
266
|
+
environmentVariables: (_f = userProvidedBuildOptions.environmentVariables) !== null && _f !== void 0 ? _f : []
|
266
267
|
};
|
267
268
|
}
|
268
269
|
//# sourceMappingURL=buildOptions.js.map
|