@mxenabled/connect-widget 0.19.1 → 0.19.3
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 +24 -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
|
@@ -47320,6 +47320,7 @@ const AnalyticEvents = {
|
|
|
47320
47320
|
CREDENTIALS_CLICKED_GET_HELP: "credentials_clicked_get_help",
|
|
47321
47321
|
ENTERED_LOGIN: "entered_login",
|
|
47322
47322
|
ENTERED_PASSWORD: "entered_password",
|
|
47323
|
+
INITIAL_DATA_READY: "initial_data_ready",
|
|
47323
47324
|
LOGIN_ERROR_CLICKED_GET_HELP: "login_error_clicked_get_help",
|
|
47324
47325
|
MFA_CLICKED_GET_HELP: "mfa_clicked_get_help",
|
|
47325
47326
|
MFA_ENTERED_INPUT: "mfa_entered_input",
|
|
@@ -68788,7 +68789,7 @@ const DEFAULT_POLLING_STATE = {
|
|
|
68788
68789
|
userMessage: CONNECTING_MESSAGES.STARTING
|
|
68789
68790
|
// message to show the end user
|
|
68790
68791
|
};
|
|
68791
|
-
function pollMember(memberGuid, api, onPostMessage) {
|
|
68792
|
+
function pollMember(memberGuid, api, onPostMessage, sendPosthogEvent) {
|
|
68792
68793
|
return interval(3e3).pipe(
|
|
68793
68794
|
switchMap(
|
|
68794
68795
|
() => (
|
|
@@ -68800,6 +68801,7 @@ function pollMember(memberGuid, api, onPostMessage) {
|
|
|
68800
68801
|
map((job) => {
|
|
68801
68802
|
if (job.async_account_data_ready) {
|
|
68802
68803
|
onPostMessage("connect/initialDataReady", { member_guid: member.guid });
|
|
68804
|
+
sendPosthogEvent(AnalyticEvents.INITIAL_DATA_READY, { member_guid: member.guid });
|
|
68803
68805
|
}
|
|
68804
68806
|
return member;
|
|
68805
68807
|
})
|
|
@@ -71222,6 +71224,7 @@ const Connecting = (props) => {
|
|
|
71222
71224
|
onUpsertMember
|
|
71223
71225
|
} = props;
|
|
71224
71226
|
const selectedInstitution = useSelector(getSelectedInstitution);
|
|
71227
|
+
const sendPosthogEvent = useAnalyticsEvent();
|
|
71225
71228
|
const currentMember = useSelector(getCurrentMember);
|
|
71226
71229
|
const isComboJobsEnabled = useSelector(isConnectComboJobsEnabled);
|
|
71227
71230
|
const jobSchedule = useSelector((state) => state.connect.jobSchedule);
|
|
@@ -71360,7 +71363,7 @@ const Connecting = (props) => {
|
|
|
71360
71363
|
return needsJobStarted ? startJob$ : of(currentMember);
|
|
71361
71364
|
}).pipe(
|
|
71362
71365
|
concatMap(
|
|
71363
|
-
(member) => pollMember(member.guid, api, onPostMessage).pipe(
|
|
71366
|
+
(member) => pollMember(member.guid, api, onPostMessage, sendPosthogEvent).pipe(
|
|
71364
71367
|
tap((pollingState) => handleMemberPoll(pollingState)),
|
|
71365
71368
|
filter((pollingState) => pollingState.jobIsDone),
|
|
71366
71369
|
pluck("currentResponse"),
|
|
@@ -73870,6 +73873,7 @@ const PersonalInfoForm = ({ accountDetails, onContinue }) => {
|
|
|
73870
73873
|
label: schema.firstName.label,
|
|
73871
73874
|
name: "firstName",
|
|
73872
73875
|
onChange: handleTextInputChange,
|
|
73876
|
+
required: true,
|
|
73873
73877
|
value: values.firstName
|
|
73874
73878
|
}
|
|
73875
73879
|
) }),
|
|
@@ -73883,10 +73887,11 @@ const PersonalInfoForm = ({ accountDetails, onContinue }) => {
|
|
|
73883
73887
|
label: schema.lastName.label,
|
|
73884
73888
|
name: "lastName",
|
|
73885
73889
|
onChange: handleTextInputChange,
|
|
73890
|
+
required: true,
|
|
73886
73891
|
value: values.lastName
|
|
73887
73892
|
}
|
|
73888
73893
|
) }),
|
|
73889
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
73894
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73890
73895
|
ProtectedTextField,
|
|
73891
73896
|
{
|
|
73892
73897
|
error: !!errors.email,
|
|
@@ -73896,10 +73901,16 @@ const PersonalInfoForm = ({ accountDetails, onContinue }) => {
|
|
|
73896
73901
|
label: schema.email.label,
|
|
73897
73902
|
name: "email",
|
|
73898
73903
|
onChange: handleTextInputChange,
|
|
73904
|
+
required: true,
|
|
73899
73905
|
value: values.email
|
|
73900
73906
|
}
|
|
73901
73907
|
) })
|
|
73902
73908
|
] }),
|
|
73909
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { marginTop: 16, marginBottom: 32 }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { style: { color: "#666", fontSize: 13 }, children: [
|
|
73910
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#E32727", fontSize: 13 }, children: "*" }),
|
|
73911
|
+
" ",
|
|
73912
|
+
__("Required")
|
|
73913
|
+
] }) }),
|
|
73903
73914
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73904
73915
|
Button$2,
|
|
73905
73916
|
{
|
|
@@ -80752,6 +80763,16 @@ const connectThemeOverrides = (palette) => ({
|
|
|
80752
80763
|
}
|
|
80753
80764
|
}
|
|
80754
80765
|
},
|
|
80766
|
+
MuiFormLabel: {
|
|
80767
|
+
styleOverrides: {
|
|
80768
|
+
asterisk: {
|
|
80769
|
+
color: "#E32727",
|
|
80770
|
+
"&$error": {
|
|
80771
|
+
color: "#E32727"
|
|
80772
|
+
}
|
|
80773
|
+
}
|
|
80774
|
+
}
|
|
80775
|
+
},
|
|
80755
80776
|
MuiIcon: {
|
|
80756
80777
|
styleOverrides: {
|
|
80757
80778
|
root: {
|