@mxenabled/connect-widget 2.17.5 → 2.17.7

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
@@ -62404,7 +62404,13 @@ const Disclosure = React__default.forwardRef((_, disclosureRef) => {
62404
62404
  {
62405
62405
  id: "mx-connect-disclosure",
62406
62406
  ref: containerRef,
62407
- children: showPrivacyPolicy ? /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PrivacyPolicy, { onCancel: () => setShowPrivacyPolicy(false) }) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
62407
+ children: showPrivacyPolicy ? /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
62408
+ PrivacyPolicy,
62409
+ {
62410
+ onCancel: () => setShowPrivacyPolicy(false),
62411
+ showExternalLinkPopup
62412
+ }
62413
+ ) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
62408
62414
  /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConnectInstitutionHeader, {}) }),
62409
62415
  /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.flexGroup, children: [
62410
62416
  /* @__PURE__ */ jsxRuntimeExports.jsx(L, { "data-test": "disclosure-title", style: styles.title, truncate: false, variant: "H2", children: _p("connect/disclosure/title", "Connect your account") }),
@@ -62465,7 +62471,9 @@ const Disclosure = React__default.forwardRef((_, disclosureRef) => {
62465
62471
  scrollToTop(containerRef);
62466
62472
  setShowPrivacyPolicy(true);
62467
62473
  } else {
62468
- goToUrlLink("https://www.mx.com/privacy/", true);
62474
+ const locale = getLocale();
62475
+ const privacyUrl = locale === "fr-ca" ? "https://www.mx.com/fr/privacy/" : "https://www.mx.com/privacy/";
62476
+ goToUrlLink(privacyUrl, true);
62469
62477
  }
62470
62478
  },
62471
62479
  style: styles.link,
@@ -75891,8 +75899,8 @@ const TouchIndicator = ({
75891
75899
  const { hover, selected } = theme.palette.action;
75892
75900
  const styles = {
75893
75901
  position: "absolute",
75894
- height: "36px",
75895
- width: "36px",
75902
+ height: "37px",
75903
+ width: "37px",
75896
75904
  background: `radial-gradient(circle, ${hover} 0%, ${selected} 100%)`,
75897
75905
  stroke: theme.palette.divider,
75898
75906
  filter: "drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12))",
@@ -75906,7 +75914,7 @@ const TouchIndicator = ({
75906
75914
 
75907
75915
  const ExampleCheckbox = ({ id, showTouchIndicator, pseudoFocusColor }) => {
75908
75916
  const theme = useTheme();
75909
- const checkboxSize = "1em";
75917
+ const checkboxSize = "15px";
75910
75918
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "aria-hidden": "true", style: { position: "relative" }, children: [
75911
75919
  /* @__PURE__ */ jsxRuntimeExports.jsx(
75912
75920
  "input",
@@ -75921,6 +75929,7 @@ const ExampleCheckbox = ({ id, showTouchIndicator, pseudoFocusColor }) => {
75921
75929
  marginTop: "8px",
75922
75930
  marginBottom: "8px",
75923
75931
  marginRight: "12px",
75932
+ marginLeft: "4px",
75924
75933
  width: checkboxSize,
75925
75934
  height: checkboxSize
75926
75935
  },
@@ -75928,7 +75937,7 @@ const ExampleCheckbox = ({ id, showTouchIndicator, pseudoFocusColor }) => {
75928
75937
  type: "checkbox"
75929
75938
  }
75930
75939
  ),
75931
- showTouchIndicator && /* @__PURE__ */ jsxRuntimeExports.jsx(TouchIndicator, { style: { left: "-9px", top: "-4px" } }),
75940
+ showTouchIndicator && /* @__PURE__ */ jsxRuntimeExports.jsx(TouchIndicator, { style: { left: "-8px", top: "-4px" } }),
75932
75941
  showTouchIndicator && /* @__PURE__ */ jsxRuntimeExports.jsx(
75933
75942
  "div",
75934
75943
  {
@@ -76052,7 +76061,7 @@ function PredirectInstructions(props) {
76052
76061
  break;
76053
76062
  }
76054
76063
  const isLastItem = index === checkboxItems.length - 1;
76055
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
76064
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(React__default.Fragment, { children: [
76056
76065
  /* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
76057
76066
  /* @__PURE__ */ jsxRuntimeExports.jsx(
76058
76067
  ExampleCheckbox,
@@ -76063,9 +76072,9 @@ function PredirectInstructions(props) {
76063
76072
  }
76064
76073
  ),
76065
76074
  /* @__PURE__ */ jsxRuntimeExports.jsx(L, { className: "psuedo-checkbox-label", variant: "body1", children: text })
76066
- ] }, item),
76067
- !isLastItem && /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {}, `divider-${index}`)
76068
- ] });
76075
+ ] }),
76076
+ !isLastItem && /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {})
76077
+ ] }, item);
76069
76078
  }) }) })
76070
76079
  ] }) })
76071
76080
  ] });
@@ -77013,7 +77022,13 @@ const DisclosureInterstitial = React__default.forwardRef((props, interstitialNav
77013
77022
  }
77014
77023
  };
77015
77024
  if (currentView === VIEWS$1.PRIVACY_POLICY) {
77016
- return /* @__PURE__ */ jsxRuntimeExports.jsx(PrivacyPolicy, { onCancel: () => setCurrentView(VIEWS$1.INTERSTITIAL_DISCLOSURE) });
77025
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
77026
+ PrivacyPolicy,
77027
+ {
77028
+ onCancel: () => setCurrentView(VIEWS$1.INTERSTITIAL_DISCLOSURE),
77029
+ showExternalLinkPopup
77030
+ }
77031
+ );
77017
77032
  } else if (currentView === VIEWS$1.DATA_REQUESTED) {
77018
77033
  return /* @__PURE__ */ jsxRuntimeExports.jsx(DataRequested, { setCurrentView });
77019
77034
  } else if (currentView === VIEWS$1.AVAILABLE_DATA) {
@@ -77136,7 +77151,9 @@ const DisclosureInterstitial = React__default.forwardRef((props, interstitialNav
77136
77151
  scrollToTop();
77137
77152
  setCurrentView(VIEWS$1.PRIVACY_POLICY);
77138
77153
  } else {
77139
- goToUrlLink("https://www.mx.com/privacy/", true);
77154
+ const locale = getLocale();
77155
+ const privacyUrl = locale === "fr-ca" ? "https://www.mx.com/fr/privacy/" : "https://www.mx.com/privacy/";
77156
+ goToUrlLink(privacyUrl, true);
77140
77157
  }
77141
77158
  },
77142
77159
  style: styles.link,