@mxenabled/connect-widget 0.0.12 → 0.0.13
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 +6 -9
- 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
|
@@ -52627,9 +52627,6 @@ const Search$2 = React__default.forwardRef((props, navigationRef) => {
|
|
|
52627
52627
|
const searchInput = useRef("");
|
|
52628
52628
|
const searchForInstitution = useRef(null);
|
|
52629
52629
|
const supportNavRef = useRef(null);
|
|
52630
|
-
const showDisclosureStep = useSelector(
|
|
52631
|
-
(state2) => state2.profiles.widgetProfile.display_disclosure_in_connect
|
|
52632
|
-
);
|
|
52633
52630
|
const reduxDispatch = useDispatch();
|
|
52634
52631
|
const sendPosthogEvent = useAnalyticsEvent();
|
|
52635
52632
|
const postMessageFunctions = useContext(PostMessageContext);
|
|
@@ -52661,10 +52658,10 @@ const Search$2 = React__default.forwardRef((props, navigationRef) => {
|
|
|
52661
52658
|
if (state.showSupportView) {
|
|
52662
52659
|
return true;
|
|
52663
52660
|
}
|
|
52664
|
-
return
|
|
52661
|
+
return false;
|
|
52665
52662
|
}
|
|
52666
52663
|
};
|
|
52667
|
-
}, [
|
|
52664
|
+
}, [state]);
|
|
52668
52665
|
useEffect(() => {
|
|
52669
52666
|
const loadPopularInstitutions = () => {
|
|
52670
52667
|
let params = {
|
|
@@ -57493,7 +57490,7 @@ const Credentials = React__default.forwardRef(
|
|
|
57493
57490
|
}
|
|
57494
57491
|
},
|
|
57495
57492
|
showBackButton() {
|
|
57496
|
-
return !isProcessingMember && !connectConfig.disable_institution_search;
|
|
57493
|
+
return !isProcessingMember && !connectConfig.disable_institution_search || showInterstitialDisclosure;
|
|
57497
57494
|
}
|
|
57498
57495
|
};
|
|
57499
57496
|
}, [
|
|
@@ -62832,11 +62829,11 @@ const ManualAccountConnect = React__default.forwardRef((props, ref) => {
|
|
|
62832
62829
|
useImperativeHandle(ref, () => {
|
|
62833
62830
|
return {
|
|
62834
62831
|
handleBackButton() {
|
|
62835
|
-
if (state.showForm) {
|
|
62832
|
+
if (state.showForm && formRef.current) {
|
|
62836
62833
|
fadeOut(formRef.current, "up", 300).then(() => {
|
|
62837
62834
|
dispatch({ type: Actions.CANCEL_FORM });
|
|
62838
62835
|
});
|
|
62839
|
-
} else {
|
|
62836
|
+
} else if (menuRef.current) {
|
|
62840
62837
|
fadeOut(menuRef.current, "up", 300).then(handleGoBackClick);
|
|
62841
62838
|
}
|
|
62842
62839
|
},
|
|
@@ -62844,7 +62841,7 @@ const ManualAccountConnect = React__default.forwardRef((props, ref) => {
|
|
|
62844
62841
|
if (state.showSuccess) {
|
|
62845
62842
|
return false;
|
|
62846
62843
|
}
|
|
62847
|
-
return
|
|
62844
|
+
return menuRef.current || formRef.current;
|
|
62848
62845
|
}
|
|
62849
62846
|
};
|
|
62850
62847
|
}, [state]);
|