@mxenabled/connect-widget 1.1.0 → 1.2.1

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
@@ -66853,7 +66853,30 @@ const DefaultMFA = (props) => {
66853
66853
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React__default.Fragment, { children: [
66854
66854
  mfaCredentials.map((credential, i) => {
66855
66855
  const metaData = credential.meta_data || credential.image_data;
66856
+ const asteriskColor = "#E32727";
66856
66857
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.label, children: [
66858
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
66859
+ Typography$1,
66860
+ {
66861
+ id: `label-for-mfa-text-field`,
66862
+ style: styles.challengeLabel,
66863
+ variant: "subtitle1",
66864
+ children: [
66865
+ credential.label,
66866
+ " ",
66867
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
66868
+ Typography$1,
66869
+ {
66870
+ component: "span",
66871
+ sx: {
66872
+ color: asteriskColor
66873
+ },
66874
+ children: "*"
66875
+ }
66876
+ )
66877
+ ]
66878
+ }
66879
+ ),
66857
66880
  metaData ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.metaData, children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { alt: __("Challenge Image"), src: metaData, style: styles.mfaImage }) }) : null,
66858
66881
  /* @__PURE__ */ jsxRuntimeExports.jsx(
66859
66882
  ProtectedTextField,
@@ -66862,9 +66885,8 @@ const DefaultMFA = (props) => {
66862
66885
  error: !!errors[credential.label],
66863
66886
  fullWidth: true,
66864
66887
  helperText: errors[credential.label],
66865
- inputProps: { "aria-label": credential.label },
66888
+ inputProps: { "aria-labelledby": `label-for-mfa-text-field` },
66866
66889
  inputRef: i === 0 ? buttonRef : null,
66867
- label: credential.label,
66868
66890
  name: credential.label,
66869
66891
  onChange: handleMFACodeChange,
66870
66892
  required: true,
@@ -66897,10 +66919,11 @@ const DefaultMFA = (props) => {
66897
66919
  const getStyles$Y = (tokens) => {
66898
66920
  return {
66899
66921
  label: {
66900
- marginTop: tokens.Spacing.XLarge
66922
+ marginTop: tokens.Spacing.Medium
66901
66923
  },
66902
66924
  challengeLabel: {
66903
- marginBottom: tokens.Spacing.Tiny
66925
+ marginBottom: tokens.Spacing.Tiny,
66926
+ lineHeight: "24px"
66904
66927
  },
66905
66928
  metaData: {
66906
66929
  display: "flex",
@@ -67157,7 +67180,7 @@ const getStyles$W = (tokens) => {
67157
67180
  height: "100%"
67158
67181
  },
67159
67182
  title: {
67160
- marginBottom: tokens.Spacing.XLarge
67183
+ marginBottom: tokens.Spacing.Medium
67161
67184
  },
67162
67185
  credentialLabel: {
67163
67186
  lineHeight: tokens.LineHeight.Paragraph,
@@ -69381,15 +69404,23 @@ const ConnectLogoHeader = (props) => {
69381
69404
  const tokens = useTokens();
69382
69405
  const styles = getStyles$M();
69383
69406
  const defaultInstitutionImage = () => colorScheme === COLOR_SCHEME.LIGHT ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { borderRadius: tokens.BorderRadius.Large }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgConnectHeaderInstitutionLight, {}) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { borderRadius: tokens.BorderRadius.Large }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgConnectHeaderInstitutionDark, {}) });
69407
+ const defaultAggregatorLogo = () => colorScheme === COLOR_SCHEME.LIGHT ? /* @__PURE__ */ jsxRuntimeExports.jsx(SvgConnectHeaderBackdropLight, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(SvgConnectHeaderBackdropDark, {});
69384
69408
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "aria-hidden": true, style: styles.container, children: [
69385
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-test": "mxLogo", style: styles.backdropImage, children: colorScheme === COLOR_SCHEME.LIGHT ? /* @__PURE__ */ jsxRuntimeExports.jsx(SvgConnectHeaderBackdropLight, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(SvgConnectHeaderBackdropDark, {}) }),
69409
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-test": "mxLogo", style: styles.backdropImage, children: props?.institution?.aggregator_logo_url ? /* @__PURE__ */ jsxRuntimeExports.jsx(
69410
+ "img",
69411
+ {
69412
+ alt: "aggregator logo",
69413
+ src: props.institution.aggregator_logo_url,
69414
+ style: styles.aggregatorLogo
69415
+ }
69416
+ ) : defaultAggregatorLogo() }),
69386
69417
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.clientLogo, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ClientLogo, { alt: "Client logo", clientGuid, size: 64 }) }),
69387
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.institutionLogo, children: props.institutionGuid ? /* @__PURE__ */ jsxRuntimeExports.jsx(
69418
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.institutionLogo, children: props?.institution?.guid ? /* @__PURE__ */ jsxRuntimeExports.jsx(
69388
69419
  De,
69389
69420
  {
69390
69421
  alt: "Institution logo",
69391
- institutionGuid: props.institutionGuid,
69392
- logoUrl: props.institutionLogo,
69422
+ institutionGuid: props.institution.guid,
69423
+ logoUrl: props.institution.logo_url,
69393
69424
  size: 64,
69394
69425
  style: { borderRadius: tokens.BorderRadius.Large }
69395
69426
  }
@@ -69429,6 +69460,12 @@ const getStyles$M = () => {
69429
69460
  width: maxHeight,
69430
69461
  marginLeft: "80px",
69431
69462
  zIndex: 20
69463
+ },
69464
+ aggregatorLogo: {
69465
+ width: "88px",
69466
+ height: "80px",
69467
+ zIndex: 10,
69468
+ position: "relative"
69432
69469
  }
69433
69470
  };
69434
69471
  };
@@ -69758,7 +69795,7 @@ const DisclosureInterstitial = React__default.forwardRef((props, interstitialNav
69758
69795
  return /* @__PURE__ */ jsxRuntimeExports.jsx(DataAvailable, {});
69759
69796
  }
69760
69797
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
69761
- /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.logoHeader, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConnectLogoHeader, { institutionGuid: institution.guid }) }) }),
69798
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.logoHeader, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConnectLogoHeader, { institution }) }) }),
69762
69799
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SlideDown, { delay: getNextDelay(), children: [
69763
69800
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.flexGroup, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
69764
69801
  x,
@@ -71572,13 +71609,7 @@ const Connecting = (props) => {
71572
71609
  }
71573
71610
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ref: connectingRef, style: styles.container, children: [
71574
71611
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SlideDown, { delay: getNextDelay(), children: [
71575
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.logoHeader, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
71576
- ConnectLogoHeader,
71577
- {
71578
- institutionGuid: institution.guid,
71579
- institutionLogo: institution.logo_url
71580
- }
71581
- ) }),
71612
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.logoHeader, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConnectLogoHeader, { institution }) }),
71582
71613
  /* @__PURE__ */ jsxRuntimeExports.jsx(x, { component: "h2", style: styles.subHeader, truncate: false, variant: "H2", children: __("Connecting to %1", institution.name) })
71583
71614
  ] }),
71584
71615
  /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressBar, { jobSchedule }) }),
@@ -77219,7 +77250,7 @@ const DynamicDisclosure = React__default.forwardRef(
77219
77250
  }
77220
77251
  );
77221
77252
  return /* @__PURE__ */ jsxRuntimeExports.jsx(StickyComponentContainer, { footer, footerStyle: { borderTop: "" }, ref: containerRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
77222
- /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.logoHeader, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConnectLogoHeader, { institutionGuid: institution.guid }) }) }),
77253
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.logoHeader, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConnectLogoHeader, { institution }) }) }),
77223
77254
  /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
77224
77255
  x,
77225
77256
  {