@mxenabled/connect-widget 2.15.1 → 2.15.3

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
@@ -5099,39 +5099,23 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
5099
5099
  }
5100
5100
  var _baseFindIndex = baseFindIndex$2;
5101
5101
 
5102
- var _trimmedEndIndex;
5103
- var hasRequired_trimmedEndIndex;
5104
-
5105
- function require_trimmedEndIndex () {
5106
- if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
5107
- hasRequired_trimmedEndIndex = 1;
5108
- var reWhitespace = /\s/;
5109
- function trimmedEndIndex(string) {
5110
- var index = string.length;
5111
- while (index-- && reWhitespace.test(string.charAt(index))) {
5112
- }
5113
- return index;
5114
- }
5115
- _trimmedEndIndex = trimmedEndIndex;
5116
- return _trimmedEndIndex;
5102
+ var reWhitespace = /\s/;
5103
+ function trimmedEndIndex$1(string) {
5104
+ var index = string.length;
5105
+ while (index-- && reWhitespace.test(string.charAt(index))) {
5106
+ }
5107
+ return index;
5117
5108
  }
5109
+ var _trimmedEndIndex = trimmedEndIndex$1;
5118
5110
 
5119
- var _baseTrim;
5120
- var hasRequired_baseTrim;
5121
-
5122
- function require_baseTrim () {
5123
- if (hasRequired_baseTrim) return _baseTrim;
5124
- hasRequired_baseTrim = 1;
5125
- var trimmedEndIndex = require_trimmedEndIndex();
5126
- var reTrimStart = /^\s+/;
5127
- function baseTrim(string) {
5128
- return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
5129
- }
5130
- _baseTrim = baseTrim;
5131
- return _baseTrim;
5111
+ var trimmedEndIndex = _trimmedEndIndex;
5112
+ var reTrimStart = /^\s+/;
5113
+ function baseTrim$1(string) {
5114
+ return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
5132
5115
  }
5116
+ var _baseTrim = baseTrim$1;
5133
5117
 
5134
- var baseTrim = require_baseTrim(), isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
5118
+ var baseTrim = _baseTrim, isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
5135
5119
  var NAN = 0 / 0;
5136
5120
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
5137
5121
  var reIsBinary = /^0b[01]+$/i;
@@ -8613,7 +8597,7 @@ var hasRequiredTrim;
8613
8597
  function requireTrim () {
8614
8598
  if (hasRequiredTrim) return trim_1;
8615
8599
  hasRequiredTrim = 1;
8616
- var baseToString = _baseToString, baseTrim = require_baseTrim(), castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
8600
+ var baseToString = _baseToString, baseTrim = _baseTrim, castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
8617
8601
  function trim(string, chars, guard) {
8618
8602
  string = toString(string);
8619
8603
  if (string && (guard || chars === void 0)) {
@@ -9251,6 +9235,7 @@ function institutionIsBlockedForCostReasons(institution) {
9251
9235
  }
9252
9236
 
9253
9237
  const initialState$6 = {
9238
+ optOutOfEarlyUserRelease: false,
9254
9239
  unavailableInstitutions: []
9255
9240
  };
9256
9241
  const experimentalFeaturesSlice = createSlice({
@@ -9259,6 +9244,7 @@ const experimentalFeaturesSlice = createSlice({
9259
9244
  reducers: {
9260
9245
  loadExperimentalFeatures(state, action) {
9261
9246
  state.unavailableInstitutions = action.payload?.unavailableInstitutions || [];
9247
+ state.optOutOfEarlyUserRelease = action.payload?.optOutOfEarlyUserRelease || false;
9262
9248
  }
9263
9249
  }
9264
9250
  });
@@ -74976,7 +74962,7 @@ const InstitutionStatusDetails = React__default.forwardRef(
74976
74962
  fullWidth: true,
74977
74963
  onClick: handleGoBack,
74978
74964
  variant: "contained",
74979
- children: __("Go back")
74965
+ children: __("Connect a different institution")
74980
74966
  }
74981
74967
  )
74982
74968
  ] }) });
@@ -76737,7 +76723,7 @@ const DEFAULT_POLLING_STATE = {
76737
76723
  initialDataReady: false
76738
76724
  // whether the initial data ready event has been sent
76739
76725
  };
76740
- function pollMember(memberGuid, api, clientLocale, clientGuid = null) {
76726
+ function pollMember(memberGuid, api, clientLocale, optOutOfEarlyUserRelease = false) {
76741
76727
  return interval(3e3).pipe(
76742
76728
  switchMap(
76743
76729
  () => (
@@ -76768,8 +76754,7 @@ function pollMember(memberGuid, api, clientLocale, clientGuid = null) {
76768
76754
  // preserve the initialDataReadySent flag
76769
76755
  initialDataReady: acc.initialDataReady
76770
76756
  };
76771
- const excludedClients = ["CLT-64ff7421-a8ef-4ac0-90f1-1636eda1a1fd"];
76772
- if (!isError && !acc.initialDataReady && response?.job?.async_account_data_ready && !excludedClients.includes(clientGuid)) {
76757
+ if (!isError && !acc.initialDataReady && response?.job?.async_account_data_ready && !optOutOfEarlyUserRelease) {
76773
76758
  pollingState.initialDataReady = true;
76774
76759
  }
76775
76760
  const [shouldStopPolling, messageKey] = handlePollingResponse(pollingState);
@@ -79289,7 +79274,7 @@ const Connecting = (props) => {
79289
79274
  onUpsertMember
79290
79275
  } = props;
79291
79276
  const selectedInstitution = useSelector(getSelectedInstitution);
79292
- const clientGuid = useSelector(getClientGuid);
79277
+ const { optOutOfEarlyUserRelease } = useSelector(getExperimentalFeatures);
79293
79278
  const sendAnalyticsEvent = useAnalyticsEvent();
79294
79279
  const clientLocale = useMemo(() => {
79295
79280
  return document.querySelector("html")?.getAttribute("lang") || "en";
@@ -79440,7 +79425,7 @@ const Connecting = (props) => {
79440
79425
  return needsJobStarted ? startJob$ : of(currentMember);
79441
79426
  }).pipe(
79442
79427
  concatMap(
79443
- (member) => pollMember(member.guid, api, clientLocale, clientGuid).pipe(
79428
+ (member) => pollMember(member.guid, api, clientLocale, optOutOfEarlyUserRelease).pipe(
79444
79429
  tap((pollingState) => handleMemberPoll(pollingState)),
79445
79430
  filter((pollingState) => pollingState.pollingIsDone),
79446
79431
  pluck("currentResponse"),
@@ -88033,6 +88018,7 @@ const English$1 = "Anglais";
88033
88018
  const Close$1 = "Fermer";
88034
88019
  const Required$1 = "Requis";
88035
88020
  const DISABLED$1 = "DÉSACTIVÉ";
88021
+ const UNAVAILABLE$1 = "INDISPONIBLE";
88036
88022
  const frCa = {
88037
88023
  "Add Manual Account": "Ajouter un compte manuellement",
88038
88024
  Search: Search$1,
@@ -88456,6 +88442,9 @@ const frCa = {
88456
88442
  "Deposits verified. You're almost done setting things up. Continue to your institution.": "Dépôts vérifiés. Vous avez presque terminé la configuration. Rendez-vous dans votre établissement.",
88457
88443
  "After logging in, share at least one account and %1profile information%2.": "Après vous être connecté, partagez au moins un compte et %1informations de profil%2.",
88458
88444
  "After logging in, share at least one account.": "Après vous être connecté, partagez au moins un compte.",
88445
+ "Connection not supported by %1": "Connexion non prise en charge par %1",
88446
+ "%1 currently limits how your data can be shared. We'll enable this connection once %1 opens access.": "%1 limite actuellement la manière dont vos données peuvent être partagées. Nous activerons cette connexion une fois que %1 ouvrira l'accès.",
88447
+ UNAVAILABLE: UNAVAILABLE$1,
88459
88448
  "connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "En cliquant sur Continuer, vous acceptez la ",
88460
88449
  "connect/disclosure/policy/link\u0004MX Privacy Policy.": "Politique de confidentialité de MX.",
88461
88450
  "connect/disclosure/policy/link\u0004MX Privacy Policy": "Politique de confidentialité de MX.",
@@ -88536,6 +88525,7 @@ const English = "Inglés";
88536
88525
  const Close = "Cerrar";
88537
88526
  const Required = "Requerido";
88538
88527
  const DISABLED = "DESACTIVADO";
88528
+ const UNAVAILABLE = "INDISPONIBLE";
88539
88529
  const es = {
88540
88530
  "": {
88541
88531
  language: "es",
@@ -88961,6 +88951,9 @@ const es = {
88961
88951
  "Deposits verified. You're almost done setting things up. Continue to your institution.": "Depósitos verificados. Ya casi terminas de configurar todo. Continúa con tu institución.",
88962
88952
  "After logging in, share at least one account and %1profile information%2.": "Después de iniciar sesión, comparta al menos una cuenta y %1información de perfil%2.",
88963
88953
  "After logging in, share at least one account.": "Después de iniciar sesión, comparta al menos una cuenta.",
88954
+ "Connection not supported by %1": "Conexión no compatible con %1",
88955
+ "%1 currently limits how your data can be shared. We'll enable this connection once %1 opens access.": "%1 actualmente limita cómo se pueden compartir sus datos. Habilitaremos esta conexión una vez que %1 abra el acceso.",
88956
+ UNAVAILABLE: UNAVAILABLE,
88964
88957
  "connect/disclosure/button\u0004Continue": "Continuar",
88965
88958
  "connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "Al hacer clic en Continuar, tu aceptas la ",
88966
88959
  "connect/disclosure/policy/link\u0004MX Privacy Policy.": "Política de privacidad de Money Experience.",