@mxenabled/connect-widget 0.10.1 → 0.10.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 +51 -8
- 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
|
@@ -46293,6 +46293,25 @@ class LicenseInfo {
|
|
|
46293
46293
|
|
|
46294
46294
|
const circularProgressClasses = generateUtilityClasses$1("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
46295
46295
|
|
|
46296
|
+
const g = ({
|
|
46297
|
+
children: e,
|
|
46298
|
+
height: o,
|
|
46299
|
+
size: n = 16,
|
|
46300
|
+
viewBox: r = "0 0 16 16",
|
|
46301
|
+
width: i
|
|
46302
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46303
|
+
"svg",
|
|
46304
|
+
{
|
|
46305
|
+
"aria-hidden": true,
|
|
46306
|
+
className: "mx-kmui-icon",
|
|
46307
|
+
focusable: false,
|
|
46308
|
+
height: o || n,
|
|
46309
|
+
viewBox: r,
|
|
46310
|
+
width: i || n,
|
|
46311
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46312
|
+
children: e
|
|
46313
|
+
}
|
|
46314
|
+
);
|
|
46296
46315
|
var f0 = /* @__PURE__ */ ((e) => (e[e.Lighter = 100] = "Lighter", e[e.Light = 200] = "Light", e[e.Normal = 300] = "Normal", e[e.Dark = 400] = "Dark", e[e.Darker = 500] = "Darker", e))(f0 || {});
|
|
46297
46316
|
const M = ({
|
|
46298
46317
|
color: e,
|
|
@@ -46331,7 +46350,16 @@ const M = ({
|
|
|
46331
46350
|
children: n
|
|
46332
46351
|
}
|
|
46333
46352
|
);
|
|
46334
|
-
}
|
|
46353
|
+
}, be = ({
|
|
46354
|
+
color: e = "currentColor",
|
|
46355
|
+
...o
|
|
46356
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(g, { ...o, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46357
|
+
"path",
|
|
46358
|
+
{
|
|
46359
|
+
d: "M5.207 13.32a.6.6 0 01-.012-.848L9.55 8 5.195 3.528a.6.6 0 11.86-.837l4.76 4.89a.6.6 0 010 .838l-4.76 4.89a.6.6 0 01-.848.012z",
|
|
46360
|
+
fill: e
|
|
46361
|
+
}
|
|
46362
|
+
) });
|
|
46335
46363
|
var u = /* @__PURE__ */ ((e) => (e.AutoTransport = "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874", e.BillsUtilities = "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8", e.BusinessServices = "CAT-94b11142-e97b-941a-f67f-6e18d246a23f", e.Education = "CAT-bf5c9cca-c96b-b50d-440d-38d9adfda5b0", e.Entertainment = "CAT-e04e9d1e-e041-c315-2e50-094143ab3f73", e.FeesCharges = "CAT-d73ee74b-13a4-ac3e-4015-fc4ba9a62b2a", e.Financial = "CAT-6c7de3f8-de6c-7061-1dd2-b093044014bf", e.FoodDining = "CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a", e.GiftsDonations = "CAT-8edf9663-623e-4735-490e-31288f0a70b0", e.HealthFitness = "CAT-52fa4693-c088-afb2-2a99-7bc39bb23a0f", e.Home = "CAT-b709172b-4eb7-318e-3b5d-e0f0500b32ac", e.Income = "CAT-bf9f3294-4c40-1677-d269-54fbc189faf3", e.Investments = "CAT-ccd42390-9e8c-3fb6-a5d9-6c31182d9c5c", e.Kids = "CAT-0cb1d99d-f558-99e3-2282-b31f359b411a", e.PersonalCare = "CAT-e5154228-fe45-790d-a280-f6bf5ae5ac9f", e.Pets = "CAT-7cccbafa-87d7-c9a6-661b-8b3402fe9e78", e.Shopping = "CAT-aad51b46-d6f7-3da5-fd6e-492328b3023f", e.Taxes = "CAT-d00fc539-aa14-009b-4ffb-7e8c7b839954", e.Transfer = "CAT-bce48142-fea4-ff45-20d9-0a642d44de83", e.Travel = "CAT-ea23d844-cbd1-eb10-f6ac-0df9610e59ae", e.Uncategorized = "CAT-d7851c65-3353-e490-1953-fb9235e681e4", e))(u || {});
|
|
46336
46364
|
const $ = {
|
|
46337
46365
|
guid: u.Uncategorized,
|
|
@@ -72855,7 +72883,7 @@ const ActionTile = (props) => {
|
|
|
72855
72883
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
72856
72884
|
Button$2,
|
|
72857
72885
|
{
|
|
72858
|
-
endIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
72886
|
+
endIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(be, { size: 24 }),
|
|
72859
72887
|
fullWidth: true,
|
|
72860
72888
|
onClick: onSelectAction,
|
|
72861
72889
|
size: "large",
|
|
@@ -73237,6 +73265,9 @@ const RoutingNumber = (props) => {
|
|
|
73237
73265
|
return () => {
|
|
73238
73266
|
};
|
|
73239
73267
|
}, [submitting]);
|
|
73268
|
+
useEffect(() => {
|
|
73269
|
+
if (institutions.length > 0) props.setShowSharedRoutingNumber(true);
|
|
73270
|
+
}, [institutions.length]);
|
|
73240
73271
|
const handleContinue = (newAccountDetails) => fadeOut(containerRef.current, "up", 300).then(() => onContinue(newAccountDetails));
|
|
73241
73272
|
if (showFindDetails) {
|
|
73242
73273
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(FindAccountInfo, { onClose: () => setShowFindDetails(false), step: "routingNumber" });
|
|
@@ -73245,12 +73276,18 @@ const RoutingNumber = (props) => {
|
|
|
73245
73276
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73246
73277
|
SharedRoutingNumber,
|
|
73247
73278
|
{
|
|
73248
|
-
continueMicrodeposits: () =>
|
|
73249
|
-
|
|
73250
|
-
|
|
73251
|
-
|
|
73279
|
+
continueMicrodeposits: () => {
|
|
73280
|
+
props.setShowSharedRoutingNumber(false);
|
|
73281
|
+
onContinue({
|
|
73282
|
+
...accountDetails,
|
|
73283
|
+
routing_number: values.routingNumber
|
|
73284
|
+
});
|
|
73285
|
+
},
|
|
73252
73286
|
institutions,
|
|
73253
|
-
onGoBack: () =>
|
|
73287
|
+
onGoBack: () => {
|
|
73288
|
+
props.setShowSharedRoutingNumber(false);
|
|
73289
|
+
setInstitutions([]);
|
|
73290
|
+
},
|
|
73254
73291
|
routingNumber: values.routingNumber,
|
|
73255
73292
|
selectInstitution: (institutionGuid) => stepToIAV(institutionGuid)
|
|
73256
73293
|
}
|
|
@@ -73330,6 +73367,7 @@ const getStyles$r = (tokens) => ({
|
|
|
73330
73367
|
RoutingNumber.propTypes = {
|
|
73331
73368
|
accountDetails: PropTypes$1.object,
|
|
73332
73369
|
onContinue: PropTypes$1.func.isRequired,
|
|
73370
|
+
setShowSharedRoutingNumber: PropTypes$1.func.isRequired,
|
|
73333
73371
|
stepToIAV: PropTypes$1.func.isRequired
|
|
73334
73372
|
};
|
|
73335
73373
|
|
|
@@ -74648,6 +74686,7 @@ const Microdeposits = React__default.forwardRef((props, navigationRef) => {
|
|
|
74648
74686
|
useAnalyticsPath(...PageviewInfo.CONNECT_MICRODEPOSITS);
|
|
74649
74687
|
const { api } = useApi();
|
|
74650
74688
|
const [state, dispatch] = useReducer(reducer$2, initialState);
|
|
74689
|
+
const [showSharedRoutingNumber, setShowSharedRoutingNumber] = useState(false);
|
|
74651
74690
|
const { microdepositGuid, stepToIAV } = props;
|
|
74652
74691
|
const postMessageFunctions = useContext(PostMessageContext);
|
|
74653
74692
|
const reduxDispatch = useDispatch();
|
|
@@ -74711,10 +74750,11 @@ const Microdeposits = React__default.forwardRef((props, navigationRef) => {
|
|
|
74711
74750
|
handleGoBack();
|
|
74712
74751
|
},
|
|
74713
74752
|
showBackButton() {
|
|
74753
|
+
if (showSharedRoutingNumber) return false;
|
|
74714
74754
|
return true;
|
|
74715
74755
|
}
|
|
74716
74756
|
};
|
|
74717
|
-
}, [state.currentView]);
|
|
74757
|
+
}, [state.currentView, showSharedRoutingNumber]);
|
|
74718
74758
|
const handleGoBack = () => {
|
|
74719
74759
|
switch (state.currentView) {
|
|
74720
74760
|
case VIEWS.HOW_IT_WORKS:
|
|
@@ -74744,6 +74784,7 @@ const Microdeposits = React__default.forwardRef((props, navigationRef) => {
|
|
|
74744
74784
|
type: state.returnToConfirm ? ACTIONS.STEP_TO_CONFIRM_DETAILS : ACTIONS.STEP_TO_HOW_IT_WORKS,
|
|
74745
74785
|
payload: accountDetails
|
|
74746
74786
|
}),
|
|
74787
|
+
setShowSharedRoutingNumber,
|
|
74747
74788
|
stepToIAV
|
|
74748
74789
|
}
|
|
74749
74790
|
),
|
|
@@ -76393,6 +76434,7 @@ const DynamicDisclosure = React__default.forwardRef(
|
|
|
76393
76434
|
const footer = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
76394
76435
|
Button$2,
|
|
76395
76436
|
{
|
|
76437
|
+
"data-test": "consent-button",
|
|
76396
76438
|
disabled: isButtonDisabled,
|
|
76397
76439
|
fullWidth: true,
|
|
76398
76440
|
onClick: () => {
|
|
@@ -76482,6 +76524,7 @@ const DynamicDisclosure = React__default.forwardRef(
|
|
|
76482
76524
|
!["en-us", "en-ca"].includes(initialLocal) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
76483
76525
|
Link$1,
|
|
76484
76526
|
{
|
|
76527
|
+
"data-test": "translation-button",
|
|
76485
76528
|
onClick: () => {
|
|
76486
76529
|
const locale = getLocale();
|
|
76487
76530
|
setLocale(locale === "en" ? initialLocal : "en");
|