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