@mxenabled/connect-widget 2.11.1 → 2.12.0

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
@@ -78423,7 +78423,6 @@ const getStyles$J = (tokens) => {
78423
78423
  height: "24px",
78424
78424
  width: "24px",
78425
78425
  minWidth: "24px",
78426
- padding: "2px",
78427
78426
  zIndex: 20,
78428
78427
  display: "flex",
78429
78428
  alignItems: "center",
@@ -78510,7 +78509,7 @@ const ProgressMessage = ({ allDone, jobType }) => {
78510
78509
  };
78511
78510
  ProgressMessage.propTypes = {
78512
78511
  allDone: PropTypes$1.bool,
78513
- jobType: PropTypes$1.string
78512
+ jobType: PropTypes$1.number
78514
78513
  };
78515
78514
 
78516
78515
  const ProgressLogo = ({ children }) => {
@@ -78524,15 +78523,14 @@ const getStyles$H = (tokens) => {
78524
78523
  backgroundColor: tokens.BackgroundColor.Container,
78525
78524
  borderRadius: "8px",
78526
78525
  display: "flex",
78527
- padding: "2px",
78528
78526
  zIndex: 11
78529
78527
  }
78530
78528
  };
78531
78529
  };
78532
78530
 
78533
- const SvgProgressBackdropDark = (props) => /* @__PURE__ */ React$1.createElement("svg", { width: 80, height: 80, viewBox: "0 0 80 80", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "image", ...props }, /* @__PURE__ */ React$1.createElement("circle", { cx: 40, cy: 40, r: 23.5, stroke: "white", strokeOpacity: 0.45 }), /* @__PURE__ */ React$1.createElement("circle", { cx: 40, cy: 40, r: 31.5, stroke: "white", strokeOpacity: 0.3 }), /* @__PURE__ */ React$1.createElement("circle", { cx: 40, cy: 40, r: 39.5, stroke: "white", strokeOpacity: 0.15 }));
78531
+ const SvgProgressBackdropDark = (props) => /* @__PURE__ */ React$1.createElement("svg", { width: 80, height: 80, viewBox: "0 0 80 80", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "image", "aria-hidden": "true", ...props }, /* @__PURE__ */ React$1.createElement("circle", { cx: 40, cy: 40, r: 23.5, stroke: "white", strokeOpacity: 0.45 }), /* @__PURE__ */ React$1.createElement("circle", { cx: 40, cy: 40, r: 31.5, stroke: "white", strokeOpacity: 0.3 }), /* @__PURE__ */ React$1.createElement("circle", { cx: 40, cy: 40, r: 39.5, stroke: "white", strokeOpacity: 0.15 }));
78534
78532
 
78535
- const SvgProgressBackdropLight = (props) => /* @__PURE__ */ React$1.createElement("svg", { width: 80, height: 80, viewBox: "0 0 80 80", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "image", ...props }, /* @__PURE__ */ React$1.createElement("circle", { cx: 40, cy: 40, r: 23.5, stroke: "black", strokeOpacity: 0.25 }), /* @__PURE__ */ React$1.createElement("circle", { cx: 40, cy: 40, r: 31.5, stroke: "black", strokeOpacity: 0.1 }), /* @__PURE__ */ React$1.createElement("circle", { cx: 40, cy: 40, r: 39.5, stroke: "black", strokeOpacity: 0.05 }));
78533
+ const SvgProgressBackdropLight = (props) => /* @__PURE__ */ React$1.createElement("svg", { width: 80, height: 80, viewBox: "0 0 80 80", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "image", "aria-hidden": "true", ...props }, /* @__PURE__ */ React$1.createElement("circle", { cx: 40, cy: 40, r: 23.5, stroke: "black", strokeOpacity: 0.25 }), /* @__PURE__ */ React$1.createElement("circle", { cx: 40, cy: 40, r: 31.5, stroke: "black", strokeOpacity: 0.1 }), /* @__PURE__ */ React$1.createElement("circle", { cx: 40, cy: 40, r: 39.5, stroke: "black", strokeOpacity: 0.05 }));
78536
78534
 
78537
78535
  const ProgressBackgroundImage = ({ style }) => {
78538
78536
  const isLightColorScheme = useSelector(getIsLightColorScheme);
@@ -78581,7 +78579,8 @@ const ProgressBar = ({
78581
78579
  const getStyles$G = () => {
78582
78580
  return {
78583
78581
  container: {
78584
- textAlign: "center"
78582
+ textAlign: "center",
78583
+ width: "100%"
78585
78584
  },
78586
78585
  backgroundImage: {
78587
78586
  height: "80px",
@@ -78601,9 +78600,7 @@ const getStyles$G = () => {
78601
78600
  alignItems: "center",
78602
78601
  boxSizing: "border-box",
78603
78602
  display: "flex",
78604
- justifyContent: "space-between",
78605
- paddingLeft: "28px",
78606
- paddingRight: "28px",
78603
+ justifyContent: "space-around",
78607
78604
  position: "absolute",
78608
78605
  width: "100%"
78609
78606
  }
@@ -80583,8 +80580,8 @@ const Connected = React__default.forwardRef(
80583
80580
  const continueButtonRef = useRef(null);
80584
80581
  const connectSuccessSurveyRef = useRef(null);
80585
80582
  const postMessageFunctions = useContext(PostMessageContext);
80586
- const appName = useSelector((state) => state.profiles.client.oauth_app_name || null);
80587
80583
  const { onShowConnectSuccessSurvey } = useContext(AnalyticContext);
80584
+ const clientGuid = useSelector(getClientGuid);
80588
80585
  const tokens = useTokens();
80589
80586
  const styles = getStyles$x(tokens);
80590
80587
  const getNextDelay = getDelay();
@@ -80614,7 +80611,7 @@ const Connected = React__default.forwardRef(
80614
80611
  useEffect(() => {
80615
80612
  focusElement(continueButtonRef.current);
80616
80613
  }, [institutionName]);
80617
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ref: containerRef, children: [
80614
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ref: containerRef, style: styles.pageContainer, children: [
80618
80615
  /* @__PURE__ */ jsxRuntimeExports.jsx(
80619
80616
  ReactConfetti,
80620
80617
  {
@@ -80629,82 +80626,139 @@ const Connected = React__default.forwardRef(
80629
80626
  style: { zIndex: 3e3 }
80630
80627
  }
80631
80628
  ),
80632
- showFeedBack ? /* @__PURE__ */ jsxRuntimeExports.jsx(
80633
- ConnectSuccessSurvey,
80634
- {
80635
- handleBack: () => setShowFeedBack(false),
80636
- handleDone,
80637
- ref: connectSuccessSurveyRef
80638
- }
80639
- ) : /* @__PURE__ */ jsxRuntimeExports.jsxs(React__default.Fragment, { children: [
80640
- /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.header, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
80641
- M,
80629
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.content, children: [
80630
+ showFeedBack ? /* @__PURE__ */ jsxRuntimeExports.jsx(
80631
+ ConnectSuccessSurvey,
80642
80632
  {
80643
- className: "material-symbols-rounded",
80644
- color: "success",
80645
- fill: true,
80646
- name: "check_circle",
80647
- size: 80,
80648
- weight: Fe.Dark
80633
+ handleBack: () => setShowFeedBack(false),
80634
+ handleDone,
80635
+ ref: connectSuccessSurveyRef
80649
80636
  }
80650
- ) }) }),
80651
- /* @__PURE__ */ jsxRuntimeExports.jsxs(SlideDown, { children: [
80652
- /* @__PURE__ */ jsxRuntimeExports.jsx(
80637
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsxs(React__default.Fragment, { children: [
80638
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
80653
80639
  D,
80654
80640
  {
80655
- component: "h2",
80641
+ component: "h1",
80656
80642
  "data-test": "connected-header",
80657
80643
  style: styles.title,
80658
80644
  truncate: false,
80659
80645
  variant: "H2",
80660
- children: __("Success")
80646
+ children: __("Success!")
80661
80647
  }
80662
- ),
80663
- appName && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(D, { component: "p", "data-test": "connected-secondary-text", style: styles.body, children: __("You have successfully connected %1 to %2.", institutionName, appName) }) }),
80664
- !appName && /* @__PURE__ */ jsxRuntimeExports.jsx(D, { component: "p", "data-test": "connected-secondary-text", style: styles.body, children: __("You have successfully connected to %1.", institutionName) })
80648
+ ) }),
80649
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.progressBarContainer, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.barContainer, children: [
80650
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.logosContainer, children: [
80651
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressLogo, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
80652
+ ClientLogo,
80653
+ {
80654
+ alt: "Client logo",
80655
+ clientGuid,
80656
+ size: 64,
80657
+ style: styles.logo
80658
+ }
80659
+ ) }),
80660
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressBackgroundImage, { style: styles.backgroundImage }),
80661
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressLogo, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
80662
+ K0,
80663
+ {
80664
+ alt: "Institution logo",
80665
+ institutionGuid: institution.guid,
80666
+ logoUrl: institution.logo_url || "",
80667
+ size: 64,
80668
+ style: styles.logo
80669
+ }
80670
+ ) })
80671
+ ] }),
80672
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressLine, { isActive: true }),
80673
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressCheckMark, {}),
80674
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressLine, { isActive: true, isCentralLine: true }),
80675
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressCheckMark, {}),
80676
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressLine, { isActive: true, isCentralLine: true }),
80677
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressCheckMark, {}),
80678
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressLine, { isActive: true })
80679
+ ] }) }) }),
80680
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
80681
+ Button$2,
80682
+ {
80683
+ "data-test": "done-button",
80684
+ fullWidth: true,
80685
+ onClick: handleDone,
80686
+ ref: continueButtonRef,
80687
+ style: styles.button,
80688
+ variant: "contained",
80689
+ children: __("Done")
80690
+ }
80691
+ ) }),
80692
+ typeof onShowConnectSuccessSurvey === "function" && /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
80693
+ Button$2,
80694
+ {
80695
+ "data-test": "give-feedback",
80696
+ fullWidth: true,
80697
+ onClick: () => {
80698
+ onShowConnectSuccessSurvey();
80699
+ setShowFeedBack(true);
80700
+ },
80701
+ style: styles.feedbackButton,
80702
+ variant: "text",
80703
+ children: __("Give feedback")
80704
+ }
80705
+ ) })
80665
80706
  ] }),
80666
- /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
80667
- Button$2,
80668
- {
80669
- "data-test": "done-button",
80670
- fullWidth: true,
80671
- onClick: handleDone,
80672
- ref: continueButtonRef,
80673
- style: styles.button,
80674
- variant: "contained",
80675
- children: __("Done")
80676
- }
80677
- ) }),
80678
- typeof onShowConnectSuccessSurvey === "function" && /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
80679
- Button$2,
80680
- {
80681
- "data-test": "give-feedback",
80682
- fullWidth: true,
80683
- onClick: () => {
80684
- onShowConnectSuccessSurvey();
80685
- setShowFeedBack(true);
80686
- },
80687
- variant: "text",
80688
- children: __("Give feedback")
80689
- }
80690
- ) }),
80691
- /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PrivateAndSecure, {}) })
80707
+ /* @__PURE__ */ jsxRuntimeExports.jsx(AriaLive, { level: "assertive", message: ariaLiveRegionMessage, timeout: 100 })
80692
80708
  ] }),
80693
- /* @__PURE__ */ jsxRuntimeExports.jsx(AriaLive, { level: "assertive", message: ariaLiveRegionMessage, timeout: 100 })
80709
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.footer, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PoweredByFooter, { aggregator: institution.aggregatorDisplayName }) })
80694
80710
  ] });
80695
80711
  }
80696
80712
  );
80697
80713
  const getStyles$x = (tokens) => {
80698
80714
  return {
80715
+ pageContainer: {
80716
+ display: "flex",
80717
+ flexDirection: "column",
80718
+ minHeight: "100%"
80719
+ },
80720
+ content: {
80721
+ flex: 1,
80722
+ display: "flex",
80723
+ flexDirection: "column"
80724
+ },
80699
80725
  header: {
80700
80726
  display: "flex",
80701
80727
  justifyContent: "center",
80702
80728
  marginTop: "20px",
80703
80729
  marginBottom: tokens.Spacing.Large
80704
80730
  },
80731
+ progressBarContainer: {
80732
+ marginBottom: "48px",
80733
+ textAlign: "center",
80734
+ width: "100%"
80735
+ },
80736
+ barContainer: {
80737
+ alignItems: "center",
80738
+ display: "flex",
80739
+ height: "80px",
80740
+ justifyContent: "center"
80741
+ },
80742
+ logosContainer: {
80743
+ alignItems: "center",
80744
+ boxSizing: "border-box",
80745
+ display: "flex",
80746
+ justifyContent: "space-around",
80747
+ position: "absolute",
80748
+ width: "100%"
80749
+ },
80750
+ logo: {
80751
+ borderRadius: "8px"
80752
+ },
80753
+ backgroundImage: {
80754
+ height: "80px",
80755
+ width: "80px",
80756
+ zIndex: 1
80757
+ },
80705
80758
  title: {
80706
80759
  textAlign: "center",
80707
- marginBottom: tokens.Spacing.Tiny
80760
+ marginBottom: tokens.Spacing.XLarge,
80761
+ marginTop: tokens.Spacing.XLarge
80708
80762
  },
80709
80763
  body: {
80710
80764
  textAlign: "center",
@@ -80713,6 +80767,13 @@ const getStyles$x = (tokens) => {
80713
80767
  },
80714
80768
  button: {
80715
80769
  marginBottom: tokens.Spacing.Small
80770
+ },
80771
+ feedbackButton: {
80772
+ color: tokens.Color.Primary300
80773
+ },
80774
+ footer: {
80775
+ marginTop: "24px",
80776
+ marginBottom: "24px"
80716
80777
  }
80717
80778
  };
80718
80779
  };
@@ -87515,7 +87576,6 @@ const Edge$1 = "Edge";
87515
87576
  const Chrome$1 = "Chrome";
87516
87577
  const Firefox$1 = "Firefox";
87517
87578
  const Dismiss$1 = "Rejeter";
87518
- const Success$1 = "Succès";
87519
87579
  const Spanish$1 = "Espagnol";
87520
87580
  const French$1 = "Français";
87521
87581
  const English$1 = "Anglais";
@@ -87856,9 +87916,6 @@ const frCa = {
87856
87916
  "Please try linking a checking or savings account.": "Veuillez essayer de lier un compte courant ou un compte d'épargne.",
87857
87917
  "Choose an institution that’s already connected and select accounts to share, or search for a different one.": "Choisissez une institution déjà connectée et sélectionnez les comptes à partager, ou recherchez-en un autre.",
87858
87918
  "You have successfully connected to %1": "Vous vous êtes connecté avec succès à %1",
87859
- Success: Success$1,
87860
- "You have successfully connected to %1.": "Vous vous êtes connecté avec succès à %1.",
87861
- "You have successfully connected %1 to %2.": "Vous avez réussi à connecter %1 à %2",
87862
87919
  "Go back": "Retourner",
87863
87920
  "Account Information": "Informations sur le compte",
87864
87921
  "Account type and description": "Type de compte et description",
@@ -87938,6 +87995,14 @@ const frCa = {
87938
87995
  "Logo for %1": "Logo pour %1",
87939
87996
  "Free %1 Connections Are No Longer Available": "Les connexions gratuites %1 ne sont plus disponibles",
87940
87997
  "%1 now charges a fee for us to access your account data. To avoid passing that cost on to you, we no longer support %1 connections.": "$1 facture désormais des frais pour accéder à vos données de compte. Pour éviter de vous les répercuter, nous ne prenons plus en charge les connexions $1.",
87998
+ "Success!": "Succès!",
87999
+ "No accounts found": "Aucun compte trouvé",
88000
+ "Return to institution selection": "Retour à la sélection des établissements",
88001
+ "Additional permissions needed": "Autorisations supplémentaires nécessaires",
88002
+ "Review instructions": "Instructions de révision",
88003
+ "Unable to connect": "Impossible de se connecter",
88004
+ "Maintenance in progress": "Entretien en cours",
88005
+ "Deposits verified. You're almost done setting things up. Continue to your institution.": "Dépôts vérifiés. Vous avez presque terminé la configuration. Rendez-vous dans votre établissement.",
87941
88006
  "connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "En cliquant sur Continuer, vous acceptez la ",
87942
88007
  "connect/disclosure/policy/link\u0004MX Privacy Policy.": "Politique de confidentialité de MX.",
87943
88008
  "connect/disclosure/policy/link\u0004MX Privacy Policy": "Politique de confidentialité de MX.",
@@ -88012,7 +88077,6 @@ const Edge = "Edge";
88012
88077
  const Chrome = "Chrome";
88013
88078
  const Firefox = "Firefox";
88014
88079
  const Dismiss = "Descartar";
88015
- const Success = "Éxito";
88016
88080
  const Spanish = "Español";
88017
88081
  const French = "Francés";
88018
88082
  const English = "Inglés";
@@ -88356,9 +88420,6 @@ const es = {
88356
88420
  "Please try linking a checking or savings account.": "Intente vincular una cuenta corriente o de ahorros.",
88357
88421
  "Choose an institution that’s already connected and select accounts to share, or search for a different one.": "Elija una institución que ya esté conectada y seleccione cuentas para compartir. o buscar uno diferente.",
88358
88422
  "You have successfully connected to %1": "Te has conectado correctamente a %1",
88359
- Success: Success,
88360
- "You have successfully connected to %1.": "Te has conectado correctamente a %1.",
88361
- "You have successfully connected %1 to %2.": "Has conectado correctamente %1 a %2.",
88362
88423
  "Account Information": "Información de la cuenta",
88363
88424
  "Account type and description": "Tipo de cuenta y descripción",
88364
88425
  "Credit limits": "Límites de crédito",
@@ -88437,6 +88498,14 @@ const es = {
88437
88498
  "Logo for %1": "Logotipo de %1",
88438
88499
  "Free %1 Connections Are No Longer Available": "Las conexiones gratuitas de %1 ya no están disponibles",
88439
88500
  "%1 now charges a fee for us to access your account data. To avoid passing that cost on to you, we no longer support %1 connections.": "%1 ahora cobra una comisión por acceder a los datos de su cuenta. Para evitar que usted pague ese costo, ya no ofrecemos conexiones con %1.",
88501
+ "Success!": "¡Éxito!",
88502
+ "No accounts found": "No se encontraron cuentas",
88503
+ "Return to institution selection": "Volver a la selección de instituciones",
88504
+ "Additional permissions needed": "Se necesitan permisos adicionales",
88505
+ "Review instructions": "Revisar instrucciones",
88506
+ "Unable to connect": "No se puede conectar",
88507
+ "Maintenance in progress": "Mantenimiento en curso",
88508
+ "Deposits verified. You're almost done setting things up. Continue to your institution.": "Depósitos verificados. Ya casi terminas de configurar todo. Continúa con tu institución.",
88440
88509
  "connect/disclosure/button\u0004Continue": "Continuar",
88441
88510
  "connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "Al hacer clic en Continuar, tu aceptas la ",
88442
88511
  "connect/disclosure/policy/link\u0004MX Privacy Policy.": "Política de privacidad de Money Experience.",