@mxenabled/connect-widget 0.0.19 → 0.0.21
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 +14 -3
- 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
|
@@ -9547,6 +9547,7 @@ const initialState$5 = {
|
|
|
9547
9547
|
disable_institution_search: false,
|
|
9548
9548
|
include_identity: null,
|
|
9549
9549
|
include_transactions: null,
|
|
9550
|
+
iso_country_code: null,
|
|
9550
9551
|
oauth_referral_source: REFERRAL_SOURCES.BROWSER,
|
|
9551
9552
|
update_credentials: false,
|
|
9552
9553
|
wait_for_full_aggregation: false,
|
|
@@ -9587,6 +9588,7 @@ const selectConnectConfig = createSelector(selectConfig, (config) => ({
|
|
|
9587
9588
|
disable_institution_search: config.disable_institution_search,
|
|
9588
9589
|
include_identity: config.include_identity,
|
|
9589
9590
|
include_transactions: config.include_transactions,
|
|
9591
|
+
iso_country_code: config.iso_country_code,
|
|
9590
9592
|
oauth_referral_source: config.oauth_referral_source,
|
|
9591
9593
|
update_credentials: config.update_credentials,
|
|
9592
9594
|
wait_for_full_aggregation: config.wait_for_full_aggregation,
|
|
@@ -52674,7 +52676,7 @@ const Search$2 = React__default.forwardRef((props, navigationRef) => {
|
|
|
52674
52676
|
};
|
|
52675
52677
|
const loadDiscoveredInstitutions = () => {
|
|
52676
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)) {
|
|
52677
|
-
return api.loadDiscoveredInstitutions();
|
|
52679
|
+
return api.loadDiscoveredInstitutions({ iso_country_code: connectConfig?.iso_country_code });
|
|
52678
52680
|
}
|
|
52679
52681
|
return of([]);
|
|
52680
52682
|
};
|
|
@@ -52923,6 +52925,9 @@ Search$2.propTypes = {
|
|
|
52923
52925
|
};
|
|
52924
52926
|
Search$2.displayName = "Search";
|
|
52925
52927
|
const applyConnectConfigToSearchQuery = (connectConfig, queryObject) => {
|
|
52928
|
+
if (connectConfig.iso_country_code) {
|
|
52929
|
+
queryObject.iso_country_code = connectConfig.iso_country_code;
|
|
52930
|
+
}
|
|
52926
52931
|
if (Array.isArray(connectConfig?.data_request?.products)) {
|
|
52927
52932
|
queryObject.products = connectConfig.data_request.products;
|
|
52928
52933
|
} else {
|
|
@@ -62928,8 +62933,14 @@ const useSelectInstitution = () => {
|
|
|
62928
62933
|
map((institution) => {
|
|
62929
62934
|
return selectInstitutionSuccess$1({ institution });
|
|
62930
62935
|
}),
|
|
62931
|
-
catchError((err) =>
|
|
62932
|
-
|
|
62936
|
+
catchError((err) => {
|
|
62937
|
+
setInstitutionGuid("");
|
|
62938
|
+
return of(selectInstitutionError(err));
|
|
62939
|
+
})
|
|
62940
|
+
).subscribe((action) => {
|
|
62941
|
+
setInstitutionGuid("");
|
|
62942
|
+
dispatch(action);
|
|
62943
|
+
});
|
|
62933
62944
|
return () => selectInstitution$.unsubscribe();
|
|
62934
62945
|
}, [institutionGuid]);
|
|
62935
62946
|
return { handleSelectInstitution };
|