@mxenabled/connect-widget 0.1.0 → 0.3.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
@@ -5370,7 +5370,7 @@ const ReadableStatuses$1 = {
5370
5370
  IMPAIRED: 20,
5371
5371
  PENDING: 21
5372
5372
  };
5373
- const ProcessingStatuses = [0, 15, 18];
5373
+ const ProcessingStatuses = [0, 8, 15, 18];
5374
5374
  const ErrorStatuses$1 = [1, 2, 3, 4, 5, 7, 9, 10, 11, 12, 13, 14, 16, 17, 19, 20];
5375
5375
 
5376
5376
  const AGG_MODE = "aggregation";
@@ -50052,7 +50052,14 @@ const InstitutionTile = (props) => {
50052
50052
  endIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, { color: tokens.TextColor.Default, height: 16, width: 16 }),
50053
50053
  fullWidth: true,
50054
50054
  onClick: selectInstitution,
50055
- startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(De, { institutionGuid: institution.guid, size }),
50055
+ startIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(
50056
+ De,
50057
+ {
50058
+ institutionGuid: institution.guid,
50059
+ logoUrl: institution.logo_url,
50060
+ size
50061
+ }
50062
+ ),
50056
50063
  style: styles.container,
50057
50064
  sx: {
50058
50065
  "&:hover": {
@@ -50061,8 +50068,10 @@ const InstitutionTile = (props) => {
50061
50068
  zIndex: 100
50062
50069
  },
50063
50070
  "&:focus": {
50064
- border: `1px solid ${tokens.BorderColor.InputFocus}`,
50065
- outline: "none",
50071
+ outline: `1px solid ${tokens.BorderColor.InputFocus}`,
50072
+ // We offset the outline by a negative 1px so that
50073
+ // It's placed exactly at the border edge of the element.
50074
+ outlineOffset: "-1px",
50066
50075
  boxShadow: "none"
50067
50076
  },
50068
50077
  "&:active": {
@@ -50099,9 +50108,6 @@ const getStyles$1c = (tokens) => {
50099
50108
  boxSizing: "border-box",
50100
50109
  alignItems: "center",
50101
50110
  width: "100%",
50102
- // We provide a transparent border here to ensure our box sizing is the
50103
- // same with or without our focus border applied.
50104
- border: "1px solid transparent",
50105
50111
  zIndex: 1
50106
50112
  },
50107
50113
  institutionBodyContainer: {
@@ -53427,7 +53433,7 @@ const InstitutionBlock = ({ institution, style }) => {
53427
53433
  }
53428
53434
  ),
53429
53435
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.institutionInfo, children: [
53430
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.institutionName, children: guid.startsWith("INS-MANUAL") ? __("Manual Institution") : name }),
53436
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.institutionName, children: guid?.startsWith("INS-MANUAL") ? __("Manual Institution") : name }),
53431
53437
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.institutionUrl, children: formatUrl(url) })
53432
53438
  ] })
53433
53439
  ] });
@@ -61733,6 +61739,7 @@ const getViewByStatus = (status) => {
61733
61739
  const VerifyExistingMember = (props) => {
61734
61740
  useAnalyticsPath(...PageviewInfo.CONNECT_VERIFY_EXISTING_MEMBER);
61735
61741
  const { api } = useApi();
61742
+ const searchForInstitution = useRef(null);
61736
61743
  const dispatch = useDispatch();
61737
61744
  const { members, onAddNew } = props;
61738
61745
  const iavMembers = members.filter((member) => member.verification_is_enabled);
@@ -61747,6 +61754,9 @@ const VerifyExistingMember = (props) => {
61747
61754
  setSelectedMember(selectedMember2);
61748
61755
  setInstitution((state) => ({ ...state, isLoadingInstitution: true }));
61749
61756
  };
61757
+ useEffect(() => {
61758
+ focusElement(searchForInstitution.current);
61759
+ }, []);
61750
61760
  useEffect(() => {
61751
61761
  if (!isLoadingInstitution || !selectedMember) return;
61752
61762
  api.loadInstitutionByGuid(selectedMember.institution_guid).then((institution) => {
@@ -61777,7 +61787,19 @@ const VerifyExistingMember = (props) => {
61777
61787
  );
61778
61788
  }
61779
61789
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.container, children: [
61780
- /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { as: "H3", "data-test": "verify-existing-member-header", style: styles.headerText, children: __("Select your institution") }),
61790
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
61791
+ Text,
61792
+ {
61793
+ "aria-label": __("Select your institution"),
61794
+ as: "H2",
61795
+ "data-test": "verify-existing-member-header",
61796
+ ref: searchForInstitution,
61797
+ style: styles.headerText,
61798
+ tabIndex: -1,
61799
+ tag: "h2",
61800
+ children: __("Select your institution")
61801
+ }
61802
+ ),
61781
61803
  /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { as: "Paragraph", "data-test": "verify-existing-member-text", style: styles.primaryParagraph, children: __(
61782
61804
  "Choose an institution that’s already connected and select accounts to share, or search for a different one."
61783
61805
  ) }),