@mxenabled/connect-widget 0.15.3 → 0.15.5

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
@@ -69119,13 +69119,25 @@ const DEFAULT_POLLING_STATE = {
69119
69119
  userMessage: CONNECTING_MESSAGES.STARTING
69120
69120
  // message to show the end user
69121
69121
  };
69122
- function pollMember(memberGuid, api) {
69122
+ function pollMember(memberGuid, api, onPostMessage) {
69123
69123
  return interval(3e3).pipe(
69124
69124
  switchMap(
69125
69125
  () => (
69126
69126
  // Poll the currentMember. Catch errors but don't handle it here
69127
69127
  // the scan will handle it below
69128
- defer(() => api.loadMemberByGuid(memberGuid)).pipe(catchError((error) => of(error)))
69128
+ defer(() => api.loadMemberByGuid(memberGuid)).pipe(
69129
+ mergeMap(
69130
+ (member) => defer(() => api.loadJob(member.most_recent_job_guid)).pipe(
69131
+ map((job) => {
69132
+ if (job.async_account_data_ready) {
69133
+ onPostMessage("connect/initialDataReady", { member_guid: member.guid });
69134
+ }
69135
+ return member;
69136
+ })
69137
+ )
69138
+ ),
69139
+ catchError((error) => of(error))
69140
+ )
69129
69141
  )
69130
69142
  ),
69131
69143
  scan(
@@ -71670,7 +71682,7 @@ const Connecting = (props) => {
71670
71682
  return needsJobStarted ? startJob$ : of(currentMember);
71671
71683
  }).pipe(
71672
71684
  concatMap(
71673
- (member) => pollMember(member.guid, api).pipe(
71685
+ (member) => pollMember(member.guid, api, onPostMessage).pipe(
71674
71686
  tap((pollingState) => handleMemberPoll(pollingState)),
71675
71687
  filter((pollingState) => pollingState.jobIsDone),
71676
71688
  pluck("currentResponse"),
@@ -75455,8 +75467,10 @@ const VerifyExistingMember = (props) => {
75455
75467
  [dispatch, institutions]
75456
75468
  );
75457
75469
  useEffect(() => {
75458
- focusElement(document.getElementById("connect-select-institution"));
75459
- }, []);
75470
+ if (!loading) {
75471
+ focusElement(document.getElementById("connect-select-institution"));
75472
+ }
75473
+ }, [loading]);
75460
75474
  useEffect(() => {
75461
75475
  const fetchInstitutionsProgressively = async () => {
75462
75476
  setLoading(true);
@@ -75521,6 +75535,7 @@ const VerifyExistingMember = (props) => {
75521
75535
  /* @__PURE__ */ jsxRuntimeExports.jsx(
75522
75536
  x,
75523
75537
  {
75538
+ component: "p",
75524
75539
  "data-test": "verify-existing-member-text",
75525
75540
  sx: { marginBottom: tokens.Spacing.Large },
75526
75541
  truncate: false,
@@ -75530,6 +75545,7 @@ const VerifyExistingMember = (props) => {
75530
75545
  )
75531
75546
  }
75532
75547
  ),
75548
+ /* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
75533
75549
  /* @__PURE__ */ jsxRuntimeExports.jsx(
75534
75550
  x,
75535
75551
  {