@mxenabled/connect-widget 2.5.4 → 2.5.6

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
@@ -74959,7 +74959,9 @@ const OAuthStep = React__default.forwardRef((props, navigationRef) => {
74959
74959
  if (!isStartingOauth) return () => {
74960
74960
  };
74961
74961
  let member$;
74962
- if (pendingOauthMember) {
74962
+ if (member && member.is_oauth) {
74963
+ member$ = of(member);
74964
+ } else if (pendingOauthMember) {
74963
74965
  member$ = of(pendingOauthMember);
74964
74966
  } else {
74965
74967
  const newMemberStream$ = defer(
@@ -80826,32 +80828,32 @@ const AccountTypes = {
80826
80828
  CHECKING_LINE_OF_CREDIT: 12
80827
80829
  };
80828
80830
  const AccountTypeNames = [
80829
- __("Other"),
80830
- _p("AccountType", "Checking"),
80831
- __("Savings"),
80832
- __("Loan"),
80833
- __("Credit Card"),
80834
- __("Investment"),
80835
- __("Line of Credit"),
80836
- __("Mortgage"),
80837
- __("Property"),
80838
- __("Cash"),
80839
- __("Insurance"),
80840
- __("Prepaid"),
80841
- _p("AccountType", "Checking")
80831
+ () => __("Other"),
80832
+ () => _p("AccountType", "Checking"),
80833
+ () => __("Savings"),
80834
+ () => __("Loan"),
80835
+ () => __("Credit Card"),
80836
+ () => __("Investment"),
80837
+ () => __("Line of Credit"),
80838
+ () => __("Mortgage"),
80839
+ () => __("Property"),
80840
+ () => __("Cash"),
80841
+ () => __("Insurance"),
80842
+ () => __("Prepaid"),
80843
+ () => _p("AccountType", "Checking")
80842
80844
  // Checking line of credit will be referred to as a checking account
80843
80845
  ];
80844
80846
  const PropertyTypeNames = [
80845
- __("Real Estate"),
80846
- __("Vehicle"),
80847
- __("Art"),
80848
- __("Jewelry"),
80849
- __("Furniture"),
80850
- __("Appliances"),
80851
- __("Computer"),
80852
- __("Electronics"),
80853
- __("Sports Equipment"),
80854
- __("Miscellaneous")
80847
+ () => __("Real Estate"),
80848
+ () => __("Vehicle"),
80849
+ () => __("Art"),
80850
+ () => __("Jewelry"),
80851
+ () => __("Furniture"),
80852
+ () => __("Appliances"),
80853
+ () => __("Computer"),
80854
+ () => __("Electronics"),
80855
+ () => __("Sports Equipment"),
80856
+ () => __("Miscellaneous")
80855
80857
  ];
80856
80858
 
80857
80859
  const getFormFields = (accountType) => {
@@ -80948,7 +80950,7 @@ const propertyTypeOptions = () => {
80948
80950
  const types = [];
80949
80951
  PropertyTypeNames.map((name, i) => {
80950
80952
  types.push({
80951
- label: name,
80953
+ label: name(),
80952
80954
  value: i.toString()
80953
80955
  });
80954
80956
  });
@@ -81417,7 +81419,7 @@ const ManualAccountForm = React__default.forwardRef(
81417
81419
  style: styles.icon
81418
81420
  }
81419
81421
  ),
81420
- AccountTypeNames[props.accountType || 0]
81422
+ AccountTypeNames[props.accountType || 0]()
81421
81423
  ]
81422
81424
  }
81423
81425
  ) }),
@@ -81646,13 +81648,13 @@ const ManualAccountMenu = React__default.forwardRef((props, ref) => {
81646
81648
  /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: typeList.map((account_type, i) => /* @__PURE__ */ jsxRuntimeExports.jsx(
81647
81649
  UtilityRow,
81648
81650
  {
81649
- "aria-label": AccountTypeNames[account_type],
81651
+ "aria-label": AccountTypeNames[account_type](),
81650
81652
  borderType: "inset-left",
81651
- "data-test": `${AccountTypeNames[account_type].replace(/\s+/g, "-")}-button`,
81653
+ "data-test": `${AccountTypeNames[account_type]().replace(/\s+/g, "-")}-button`,
81652
81654
  leftChildren: getIcon[account_type],
81653
81655
  onClick: () => fadeOut(ref.current, "up", 300).then(props.handleAccountTypeSelect(account_type)),
81654
81656
  rightChildren: /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, {}),
81655
- title: AccountTypeNames[account_type]
81657
+ title: AccountTypeNames[account_type]()
81656
81658
  },
81657
81659
  i
81658
81660
  )) })
@@ -81711,7 +81713,7 @@ const ManualAccountSuccess = (props) => {
81711
81713
  style: styles.title,
81712
81714
  truncate: false,
81713
81715
  variant: "H2",
81714
- children: __("%1 added", AccountTypeNames[props.accountType])
81716
+ children: __("%1 added", AccountTypeNames[props.accountType]())
81715
81717
  }
81716
81718
  ),
81717
81719
  /* @__PURE__ */ jsxRuntimeExports.jsx(