@mxenabled/connect-widget 2.7.0 → 2.8.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 +19 -0
- 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
|
@@ -9209,6 +9209,19 @@ const CODES_REQUIRING_MFA = [
|
|
|
9209
9209
|
ACTIONABLE_ERROR_CODES.INCORRECT_MFA,
|
|
9210
9210
|
ACTIONABLE_ERROR_CODES.MFA_TIMEOUT
|
|
9211
9211
|
];
|
|
9212
|
+
const ACTIONABLE_ERROR_CODES_READABLE = {
|
|
9213
|
+
[ACTIONABLE_ERROR_CODES.NO_ELIGIBLE_ACCOUNTS]: "NO_VERIFIABLE_ACCOUNTS",
|
|
9214
|
+
[ACTIONABLE_ERROR_CODES.NO_ACCOUNTS]: "NO_ACCOUNTS",
|
|
9215
|
+
[ACTIONABLE_ERROR_CODES.ACCESS_DENIED]: "ACCESS_DENIED",
|
|
9216
|
+
[ACTIONABLE_ERROR_CODES.INCORRECT_OTP]: "INCORRECT_OTP",
|
|
9217
|
+
[ACTIONABLE_ERROR_CODES.INCORRECT_MFA]: "INCORRECT_MFA",
|
|
9218
|
+
[ACTIONABLE_ERROR_CODES.MFA_TIMEOUT]: "MFA_TIMEOUT",
|
|
9219
|
+
[ACTIONABLE_ERROR_CODES.REAUTHORIZATION_REQUIRED]: "REAUTHORIZATION_REQUIRED",
|
|
9220
|
+
[ACTIONABLE_ERROR_CODES.INVALID_CREDENTIALS]: "INVALID_CREDENTIALS",
|
|
9221
|
+
[ACTIONABLE_ERROR_CODES.INSTITUTION_DOWN]: "INSTITUTION_DOWN",
|
|
9222
|
+
[ACTIONABLE_ERROR_CODES.INSTITUTION_MAINTENANCE]: "INSTITUTION_MAINTENANCE",
|
|
9223
|
+
[ACTIONABLE_ERROR_CODES.INSTITUTION_UNAVAILABLE]: "INSTITUTION_UNAVAILABLE"
|
|
9224
|
+
};
|
|
9212
9225
|
const ACTIVE_ACTIONABLE_ERROR_CODES = Object.values(ACTIONABLE_ERROR_CODES);
|
|
9213
9226
|
const canHandleActionableError = (errorCode, mode) => {
|
|
9214
9227
|
if (errorCode === ACTIONABLE_ERROR_CODES.NO_ELIGIBLE_ACCOUNTS && mode !== VERIFY_MODE) {
|
|
@@ -52323,6 +52336,7 @@ const defaultEventMetadata = {
|
|
|
52323
52336
|
};
|
|
52324
52337
|
const PageviewInfo = {
|
|
52325
52338
|
CONNECT: ["Connect", "/connect"],
|
|
52339
|
+
CONNECT_ACTIONABLE_ERROR: ["Connect Actionable Error", "/actionable_error"],
|
|
52326
52340
|
CONNECT_CONNECTED: ["Connect Successful", "/connected"],
|
|
52327
52341
|
CONNECT_CONNECTING: ["Connect Connecting", "/connecting"],
|
|
52328
52342
|
CONNECT_CREATE_CREDENTIALS: [
|
|
@@ -77234,6 +77248,11 @@ const ActionableError = () => {
|
|
|
77234
77248
|
const institution = useSelector((state) => state.connect.selectedInstitution);
|
|
77235
77249
|
const currentMember = useSelector(getCurrentMember);
|
|
77236
77250
|
const jobDetailCode = currentMember.error.error_code;
|
|
77251
|
+
const [name, path] = PageviewInfo.CONNECT_ACTIONABLE_ERROR;
|
|
77252
|
+
useAnalyticsPath(name, path, {
|
|
77253
|
+
error_code: jobDetailCode,
|
|
77254
|
+
readable_error: ACTIONABLE_ERROR_CODES_READABLE[jobDetailCode]
|
|
77255
|
+
});
|
|
77237
77256
|
const tokens = useTokens();
|
|
77238
77257
|
const styles = getStyles$A(tokens);
|
|
77239
77258
|
const getNextDelay = getDelay();
|