@mxenabled/connect-widget 2.6.0 → 2.7.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 CHANGED
@@ -5316,6 +5316,30 @@ const addManualAccountSuccess = (account, member, institution) => ({
5316
5316
  payload: { account, member, institution }
5317
5317
  });
5318
5318
 
5319
+ const ConnectionStatusMap = {
5320
+ 0: "CREATED",
5321
+ 1: "PREVENTED",
5322
+ 2: "DENIED",
5323
+ 3: "CHALLENGED",
5324
+ 4: "REJECTED",
5325
+ 5: "LOCKED",
5326
+ 6: "CONNECTED",
5327
+ 7: "IMPEDED",
5328
+ 8: "RECONNECTED",
5329
+ 9: "DEGRADED",
5330
+ 10: "DISCONNECTED",
5331
+ 11: "DISCONTINUED",
5332
+ 12: "CLOSED",
5333
+ 13: "DELAYED",
5334
+ 14: "FAILED",
5335
+ 15: "UPDATED",
5336
+ 16: "DISABLED",
5337
+ 17: "IMPORTED",
5338
+ 18: "RESUMED",
5339
+ 19: "EXPIRED",
5340
+ 20: "IMPAIRED",
5341
+ 21: "PENDING"
5342
+ };
5319
5343
  const ReadableStatuses$1 = {
5320
5344
  PREVENTED: 1,
5321
5345
  DENIED: 2,
@@ -76912,7 +76936,10 @@ const LoginError = React__default.forwardRef(
76912
76936
  const connectConfig = useSelector(selectConnectConfig);
76913
76937
  const initialConfig = useSelector(selectInitialConfig);
76914
76938
  const pageViewInfo = PageviewInfo.CONNECT_LOGIN_ERROR;
76915
- useAnalyticsPath(...pageViewInfo);
76939
+ useAnalyticsPath(...pageViewInfo, {
76940
+ connection_status: member.connection_status || "UNKNOWN",
76941
+ readable_status: ConnectionStatusMap[member.connection_status] || "UNKNOWN"
76942
+ });
76916
76943
  const [isLeaving, setIsLeaving] = useState(false);
76917
76944
  const [showSupportView, setShowSupportView] = useState(false);
76918
76945
  const getNextDelay = getDelay();