@mxenabled/connect-widget 0.0.18 → 0.0.20

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,23 +5131,39 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
5131
5131
  }
5132
5132
  var _baseFindIndex = baseFindIndex$2;
5133
5133
 
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;
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;
5140
5149
  }
5141
- var _trimmedEndIndex = trimmedEndIndex$1;
5142
5150
 
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;
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;
5147
5164
  }
5148
- var _baseTrim = baseTrim$1;
5149
5165
 
5150
- var baseTrim = _baseTrim, isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
5166
+ var baseTrim = require_baseTrim(), isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
5151
5167
  var NAN = 0 / 0;
5152
5168
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
5153
5169
  var reIsBinary = /^0b[01]+$/i;
@@ -8613,7 +8629,7 @@ var hasRequiredTrim;
8613
8629
  function requireTrim () {
8614
8630
  if (hasRequiredTrim) return trim_1;
8615
8631
  hasRequiredTrim = 1;
8616
- var baseToString = _baseToString, baseTrim = _baseTrim, castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
8632
+ var baseToString = _baseToString, baseTrim = require_baseTrim(), castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
8617
8633
  function trim(string, chars, guard) {
8618
8634
  string = toString(string);
8619
8635
  if (string && (guard || chars === void 0)) {
@@ -9531,6 +9547,7 @@ const initialState$5 = {
9531
9547
  disable_institution_search: false,
9532
9548
  include_identity: null,
9533
9549
  include_transactions: null,
9550
+ iso_country_code: null,
9534
9551
  oauth_referral_source: REFERRAL_SOURCES.BROWSER,
9535
9552
  update_credentials: false,
9536
9553
  wait_for_full_aggregation: false,
@@ -9571,6 +9588,7 @@ const selectConnectConfig = createSelector(selectConfig, (config) => ({
9571
9588
  disable_institution_search: config.disable_institution_search,
9572
9589
  include_identity: config.include_identity,
9573
9590
  include_transactions: config.include_transactions,
9591
+ iso_country_code: config.iso_country_code,
9574
9592
  oauth_referral_source: config.oauth_referral_source,
9575
9593
  update_credentials: config.update_credentials,
9576
9594
  wait_for_full_aggregation: config.wait_for_full_aggregation,
@@ -52658,7 +52676,7 @@ const Search$2 = React__default.forwardRef((props, navigationRef) => {
52658
52676
  };
52659
52677
  const loadDiscoveredInstitutions = () => {
52660
52678
  if (!usePopularOnly && !isFirstTimeUser && Array.isArray(connectConfig?.data_request?.products) && connectConfig.data_request.products.length === 1 && connectConfig.data_request.products.includes(COMBO_JOB_DATA_TYPES.TRANSACTIONS)) {
52661
- return api.loadDiscoveredInstitutions();
52679
+ return api.loadDiscoveredInstitutions({ iso_country_code: connectConfig?.iso_country_code });
52662
52680
  }
52663
52681
  return of([]);
52664
52682
  };
@@ -52907,6 +52925,9 @@ Search$2.propTypes = {
52907
52925
  };
52908
52926
  Search$2.displayName = "Search";
52909
52927
  const applyConnectConfigToSearchQuery = (connectConfig, queryObject) => {
52928
+ if (connectConfig.iso_country_code) {
52929
+ queryObject.iso_country_code = connectConfig.iso_country_code;
52930
+ }
52910
52931
  if (Array.isArray(connectConfig?.data_request?.products)) {
52911
52932
  queryObject.products = connectConfig.data_request.products;
52912
52933
  } else {
@@ -56939,9 +56960,7 @@ const OAuthStep = React__default.forwardRef((props, navigationRef) => {
56939
56960
  if (!isStartingOauth) return () => {
56940
56961
  };
56941
56962
  let member$;
56942
- if (member.is_oauth) {
56943
- member$ = of(member);
56944
- } else if (pendingOauthMember) {
56963
+ if (pendingOauthMember) {
56945
56964
  member$ = of(pendingOauthMember);
56946
56965
  } else {
56947
56966
  const newMemberStream$ = defer(