@mxenabled/connect-widget 0.0.16 → 0.0.18
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/dist/index.es.js +23 -67
- package/dist/index.es.js.map +1 -1
- package/dist/lastBuild.txt +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5131,39 +5131,23 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
|
|
|
5131
5131
|
}
|
|
5132
5132
|
var _baseFindIndex = baseFindIndex$2;
|
|
5133
5133
|
|
|
5134
|
-
var
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
var reWhitespace = /\s/;
|
|
5141
|
-
function trimmedEndIndex(string) {
|
|
5142
|
-
var index = string.length;
|
|
5143
|
-
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
5144
|
-
}
|
|
5145
|
-
return index;
|
|
5146
|
-
}
|
|
5147
|
-
_trimmedEndIndex = trimmedEndIndex;
|
|
5148
|
-
return _trimmedEndIndex;
|
|
5134
|
+
var reWhitespace = /\s/;
|
|
5135
|
+
function trimmedEndIndex$1(string) {
|
|
5136
|
+
var index = string.length;
|
|
5137
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
5138
|
+
}
|
|
5139
|
+
return index;
|
|
5149
5140
|
}
|
|
5141
|
+
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
5150
5142
|
|
|
5151
|
-
var
|
|
5152
|
-
var
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
if (hasRequired_baseTrim) return _baseTrim;
|
|
5156
|
-
hasRequired_baseTrim = 1;
|
|
5157
|
-
var trimmedEndIndex = require_trimmedEndIndex();
|
|
5158
|
-
var reTrimStart = /^\s+/;
|
|
5159
|
-
function baseTrim(string) {
|
|
5160
|
-
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5161
|
-
}
|
|
5162
|
-
_baseTrim = baseTrim;
|
|
5163
|
-
return _baseTrim;
|
|
5143
|
+
var trimmedEndIndex = _trimmedEndIndex;
|
|
5144
|
+
var reTrimStart = /^\s+/;
|
|
5145
|
+
function baseTrim$1(string) {
|
|
5146
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5164
5147
|
}
|
|
5148
|
+
var _baseTrim = baseTrim$1;
|
|
5165
5149
|
|
|
5166
|
-
var baseTrim =
|
|
5150
|
+
var baseTrim = _baseTrim, isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
|
|
5167
5151
|
var NAN = 0 / 0;
|
|
5168
5152
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
5169
5153
|
var reIsBinary = /^0b[01]+$/i;
|
|
@@ -8629,7 +8613,7 @@ var hasRequiredTrim;
|
|
|
8629
8613
|
function requireTrim () {
|
|
8630
8614
|
if (hasRequiredTrim) return trim_1;
|
|
8631
8615
|
hasRequiredTrim = 1;
|
|
8632
|
-
var baseToString = _baseToString, baseTrim =
|
|
8616
|
+
var baseToString = _baseToString, baseTrim = _baseTrim, castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
|
|
8633
8617
|
function trim(string, chars, guard) {
|
|
8634
8618
|
string = toString(string);
|
|
8635
8619
|
if (string && (guard || chars === void 0)) {
|
|
@@ -53705,6 +53689,7 @@ const DefaultMFA = (props) => {
|
|
|
53705
53689
|
{
|
|
53706
53690
|
disabled: isSubmitting,
|
|
53707
53691
|
error: true,
|
|
53692
|
+
fullWidth: true,
|
|
53708
53693
|
helperText: errors[credential.label],
|
|
53709
53694
|
inputProps: { "aria-label": credential.label },
|
|
53710
53695
|
inputRef: i === 0 ? buttonRef : null,
|
|
@@ -57210,7 +57195,7 @@ const CREDENTIAL_FIELD_TYPES = {
|
|
|
57210
57195
|
|
|
57211
57196
|
const usePasswordInputValidation = () => {
|
|
57212
57197
|
const [isCapsLockOn, setIsCapsLockOn] = useState(false);
|
|
57213
|
-
const handleKeyPress = (event) => setIsCapsLockOn(event.getModifierState("CapsLock"));
|
|
57198
|
+
const handleKeyPress = (event) => "getModifierState" in event && setIsCapsLockOn(event.getModifierState("CapsLock"));
|
|
57214
57199
|
const handleFocus = (event) => event.target?.addEventListener("keydown", handleKeyPress);
|
|
57215
57200
|
const handleBlur = (event) => {
|
|
57216
57201
|
event.target?.removeEventListener("keydown", handleKeyPress);
|
|
@@ -59645,37 +59630,8 @@ const Connected = ({
|
|
|
59645
59630
|
) }) }),
|
|
59646
59631
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SlideDown, { children: [
|
|
59647
59632
|
/* @__PURE__ */ jsxRuntimeExports.jsx(x, { component: "h2", "data-test": "connected-header", style: styles.title, children: __("Success") }),
|
|
59648
|
-
appName && /* @__PURE__ */ jsxRuntimeExports.
|
|
59649
|
-
|
|
59650
|
-
component: "p",
|
|
59651
|
-
"data-test": "connected-secondary-text",
|
|
59652
|
-
style: styles.body,
|
|
59653
|
-
// --TR: This string has 2 line breaks and the full string "You have successfully connected {institution} to {appName}"
|
|
59654
|
-
children: __("You have successfully connected")
|
|
59655
|
-
}),
|
|
59656
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(x, {
|
|
59657
|
-
component: "p",
|
|
59658
|
-
"data-test": "connected-secondary-text",
|
|
59659
|
-
style: styles.body,
|
|
59660
|
-
// --TR: This is a part of the connected screen text and is the instutution name
|
|
59661
|
-
children: __("%1 ", institutionName)
|
|
59662
|
-
}),
|
|
59663
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(x, {
|
|
59664
|
-
component: "p",
|
|
59665
|
-
style: { ...styles.body, marginBottom: tokens.Spacing.XLarge },
|
|
59666
|
-
// --TR: This is part of the connected text on the connected screen, the full string is "You have successfully connected {institution} to {appName}"
|
|
59667
|
-
children: __("to %1.", appName)
|
|
59668
|
-
})
|
|
59669
|
-
] }),
|
|
59670
|
-
!appName && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
59671
|
-
x,
|
|
59672
|
-
{
|
|
59673
|
-
component: "p",
|
|
59674
|
-
"data-test": "connected-secondary-text",
|
|
59675
|
-
style: { ...styles.body, marginBottom: tokens.Spacing.XLarge },
|
|
59676
|
-
children: __("You have successfully connected to %1.", institutionName)
|
|
59677
|
-
}
|
|
59678
|
-
)
|
|
59633
|
+
appName && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(x, { component: "p", "data-test": "connected-secondary-text", style: styles.body, children: __("You have successfully connected %1 to %2.", institutionName, appName) }) }),
|
|
59634
|
+
!appName && /* @__PURE__ */ jsxRuntimeExports.jsx(x, { component: "p", "data-test": "connected-secondary-text", style: styles.body, children: __("You have successfully connected to %1.", institutionName) })
|
|
59679
59635
|
] }),
|
|
59680
59636
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
59681
59637
|
Button$1,
|
|
@@ -59717,7 +59673,8 @@ const getStyles$s = (tokens) => {
|
|
|
59717
59673
|
fontSize: tokens.FontSize.Paragraph,
|
|
59718
59674
|
fontWeight: tokens.FontWeight.Regular,
|
|
59719
59675
|
lineHeight: tokens.LineHeight.Paragraph,
|
|
59720
|
-
whiteSpace: "normal"
|
|
59676
|
+
whiteSpace: "normal",
|
|
59677
|
+
marginBottom: tokens.Spacing.XLarge
|
|
59721
59678
|
},
|
|
59722
59679
|
button: {
|
|
59723
59680
|
marginBottom: tokens.Spacing.Small
|
|
@@ -65730,9 +65687,9 @@ const frCa = {
|
|
|
65730
65687
|
"Choose an institution that’s already connected and select accounts to share, or search for a different one.": "Choisissez une institution déjà connectée et sélectionnez les comptes à partager, ou recherchez-en un autre.",
|
|
65731
65688
|
"You have successfully connected to %1": "Vous vous êtes connecté avec succès à %1",
|
|
65732
65689
|
Success: Success$1,
|
|
65733
|
-
"You have successfully connected": "Vous avez réussi à connecter",
|
|
65734
|
-
"to %1.": "à %1.",
|
|
65735
65690
|
"You have successfully connected to %1.": "Vous vous êtes connecté avec succès à %1.",
|
|
65691
|
+
"You have successfully connected %1 to %2.": "Vous avez réussi à connecter %1 à %2",
|
|
65692
|
+
"Go back": "Retourner",
|
|
65736
65693
|
"connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "En cliquant sur Continuer, vous acceptez la ",
|
|
65737
65694
|
"connect/disclosure/policy/link\u0004MX Privacy Policy.": "Politique de confidentialité de MX.",
|
|
65738
65695
|
"connect/disclosure/policy/link\u0004MX Privacy Policy": "Politique de confidentialité de MX.",
|
|
@@ -66147,9 +66104,8 @@ const es = {
|
|
|
66147
66104
|
"Choose an institution that’s already connected and select accounts to share, or search for a different one.": "Elija una institución que ya esté conectada y seleccione cuentas para compartir. o buscar uno diferente.",
|
|
66148
66105
|
"You have successfully connected to %1": "Te has conectado correctamente a %1",
|
|
66149
66106
|
Success: Success,
|
|
66150
|
-
"You have successfully connected": "Ha conectado exitosamente",
|
|
66151
|
-
"to %1.": "a %1.",
|
|
66152
66107
|
"You have successfully connected to %1.": "Te has conectado correctamente a %1.",
|
|
66108
|
+
"You have successfully connected %1 to %2.": "\nHas conectado correctamente %1 a %2.",
|
|
66153
66109
|
"connect/disclosure/button\u0004Continue": "Continuar",
|
|
66154
66110
|
"connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "Al hacer clic en Continuar, tu aceptas la ",
|
|
66155
66111
|
"connect/disclosure/policy/link\u0004MX Privacy Policy.": "Política de privacidad de Money Experience.",
|