@mxenabled/connect-widget 0.15.2 → 0.15.4
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 +16 -3
- package/dist/index.es.js.map +1 -1
- package/dist/lastBuild.txt +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -65468,6 +65468,7 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
|
|
|
65468
65468
|
}
|
|
65469
65469
|
)
|
|
65470
65470
|
] }),
|
|
65471
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
65471
65472
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PrivateAndSecure, {})
|
|
65472
65473
|
] }),
|
|
65473
65474
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -69118,13 +69119,25 @@ const DEFAULT_POLLING_STATE = {
|
|
|
69118
69119
|
userMessage: CONNECTING_MESSAGES.STARTING
|
|
69119
69120
|
// message to show the end user
|
|
69120
69121
|
};
|
|
69121
|
-
function pollMember(memberGuid, api) {
|
|
69122
|
+
function pollMember(memberGuid, api, onPostMessage) {
|
|
69122
69123
|
return interval(3e3).pipe(
|
|
69123
69124
|
switchMap(
|
|
69124
69125
|
() => (
|
|
69125
69126
|
// Poll the currentMember. Catch errors but don't handle it here
|
|
69126
69127
|
// the scan will handle it below
|
|
69127
|
-
defer(() => api.loadMemberByGuid(memberGuid)).pipe(
|
|
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
|
+
)
|
|
69128
69141
|
)
|
|
69129
69142
|
),
|
|
69130
69143
|
scan(
|
|
@@ -71669,7 +71682,7 @@ const Connecting = (props) => {
|
|
|
71669
71682
|
return needsJobStarted ? startJob$ : of(currentMember);
|
|
71670
71683
|
}).pipe(
|
|
71671
71684
|
concatMap(
|
|
71672
|
-
(member) => pollMember(member.guid, api).pipe(
|
|
71685
|
+
(member) => pollMember(member.guid, api, onPostMessage).pipe(
|
|
71673
71686
|
tap((pollingState) => handleMemberPoll(pollingState)),
|
|
71674
71687
|
filter((pollingState) => pollingState.jobIsDone),
|
|
71675
71688
|
pluck("currentResponse"),
|