@mxenabled/connect-widget 2.15.2 → 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
  });
@@ -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"),