@mxenabled/connect-widget 0.0.17 → 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 CHANGED
@@ -5131,39 +5131,23 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
5131
5131
  }
5132
5132
  var _baseFindIndex = baseFindIndex$2;
5133
5133
 
5134
- var _trimmedEndIndex;
5135
- var hasRequired_trimmedEndIndex;
5136
-
5137
- function require_trimmedEndIndex () {
5138
- if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
5139
- hasRequired_trimmedEndIndex = 1;
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 _baseTrim;
5152
- var hasRequired_baseTrim;
5153
-
5154
- function require_baseTrim () {
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 = require_baseTrim(), isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
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 = require_baseTrim(), castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
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)) {
@@ -59646,37 +59630,8 @@ const Connected = ({
59646
59630
  ) }) }),
59647
59631
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SlideDown, { children: [
59648
59632
  /* @__PURE__ */ jsxRuntimeExports.jsx(x, { component: "h2", "data-test": "connected-header", style: styles.title, children: __("Success") }),
59649
- appName && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
59650
- /* @__PURE__ */ jsxRuntimeExports.jsx(x, {
59651
- component: "p",
59652
- "data-test": "connected-secondary-text",
59653
- style: styles.body,
59654
- // --TR: This string has 2 line breaks and the full string "You have successfully connected {institution} to {appName}"
59655
- children: __("You have successfully connected")
59656
- }),
59657
- /* @__PURE__ */ jsxRuntimeExports.jsx(x, {
59658
- component: "p",
59659
- "data-test": "connected-secondary-text",
59660
- style: styles.body,
59661
- // --TR: This is a part of the connected screen text and is the instutution name
59662
- children: __("%1 ", institutionName)
59663
- }),
59664
- /* @__PURE__ */ jsxRuntimeExports.jsx(x, {
59665
- component: "p",
59666
- style: { ...styles.body, marginBottom: tokens.Spacing.XLarge },
59667
- // --TR: This is part of the connected text on the connected screen, the full string is "You have successfully connected {institution} to {appName}"
59668
- children: __("to %1.", appName)
59669
- })
59670
- ] }),
59671
- !appName && /* @__PURE__ */ jsxRuntimeExports.jsx(
59672
- x,
59673
- {
59674
- component: "p",
59675
- "data-test": "connected-secondary-text",
59676
- style: { ...styles.body, marginBottom: tokens.Spacing.XLarge },
59677
- children: __("You have successfully connected to %1.", institutionName)
59678
- }
59679
- )
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) })
59680
59635
  ] }),
59681
59636
  /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
59682
59637
  Button$1,
@@ -59718,7 +59673,8 @@ const getStyles$s = (tokens) => {
59718
59673
  fontSize: tokens.FontSize.Paragraph,
59719
59674
  fontWeight: tokens.FontWeight.Regular,
59720
59675
  lineHeight: tokens.LineHeight.Paragraph,
59721
- whiteSpace: "normal"
59676
+ whiteSpace: "normal",
59677
+ marginBottom: tokens.Spacing.XLarge
59722
59678
  },
59723
59679
  button: {
59724
59680
  marginBottom: tokens.Spacing.Small
@@ -65731,9 +65687,9 @@ const frCa = {
65731
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.",
65732
65688
  "You have successfully connected to %1": "Vous vous êtes connecté avec succès à %1",
65733
65689
  Success: Success$1,
65734
- "You have successfully connected": "Vous avez réussi à connecter",
65735
- "to %1.": "à %1.",
65736
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",
65737
65693
  "connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "En cliquant sur Continuer, vous acceptez la ",
65738
65694
  "connect/disclosure/policy/link\u0004MX Privacy Policy.": "Politique de confidentialité de MX.",
65739
65695
  "connect/disclosure/policy/link\u0004MX Privacy Policy": "Politique de confidentialité de MX.",
@@ -66148,9 +66104,8 @@ const es = {
66148
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.",
66149
66105
  "You have successfully connected to %1": "Te has conectado correctamente a %1",
66150
66106
  Success: Success,
66151
- "You have successfully connected": "Ha conectado exitosamente",
66152
- "to %1.": "a %1.",
66153
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.",
66154
66109
  "connect/disclosure/button\u0004Continue": "Continuar",
66155
66110
  "connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "Al hacer clic en Continuar, tu aceptas la ",
66156
66111
  "connect/disclosure/policy/link\u0004MX Privacy Policy.": "Política de privacidad de Money Experience.",