@mxenabled/connect-widget 2.3.1 → 2.3.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 CHANGED
@@ -9246,6 +9246,19 @@ const goBackSearchOrVerify = (state, { payload }) => {
9246
9246
  selectedInstitution: defaultState$1.selectedInstitution
9247
9247
  };
9248
9248
  };
9249
+ const goBackCredentials = (state) => {
9250
+ return {
9251
+ ...state,
9252
+ location: [{ step: STEPS.SEARCH }],
9253
+ currentMemberGuid: defaultState$1.currentMemberGuid,
9254
+ error: defaultState$1.error,
9255
+ updateCredentials: defaultState$1.updateCredentials,
9256
+ oauthURL: defaultState$1.oauthURL,
9257
+ oauthErrorReason: defaultState$1.oauthErrorReason,
9258
+ jobSchedule: UNINITIALIZED$3,
9259
+ selectedInstitution: defaultState$1.selectedInstitution
9260
+ };
9261
+ };
9249
9262
  const resetWidgetMFAStep = (state, { payload }) => {
9250
9263
  return {
9251
9264
  ...state,
@@ -9629,7 +9642,7 @@ const connect = createReducer(defaultState$1, {
9629
9642
  [ActionTypes$2.ACCEPT_DISCLOSURE]: acceptDisclosure,
9630
9643
  [ActionTypes$2.CREATE_MEMBER_SUCCESS]: createMemberSuccess,
9631
9644
  [ActionTypes$2.CONNECT_COMPLETE]: connectComplete,
9632
- [ActionTypes$2.GO_BACK_CREDENTIALS]: connectGoBack,
9645
+ [ActionTypes$2.GO_BACK_CREDENTIALS]: goBackCredentials,
9633
9646
  [ActionTypes$2.GO_BACK_CONSENT]: goBackSearchOrVerify,
9634
9647
  [ActionTypes$2.GO_BACK_INSTITUTION_DISABLED]: connectGoBack,
9635
9648
  [ActionTypes$2.GO_BACK_POST_MESSAGE]: goBackSearchOrVerify,
@@ -77367,7 +77380,7 @@ const Credentials = React__default.forwardRef(
77367
77380
  onSubmit: (e) => e.preventDefault(),
77368
77381
  style: styles.form,
77369
77382
  children: [
77370
- credentials.map((field) => /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: field.field_type === CREDENTIAL_FIELD_TYPES.PASSWORD ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: errors[field.field_name] ? styles.inputError : styles.input, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
77383
+ credentials.map((field) => /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: field.field_type === CREDENTIAL_FIELD_TYPES.PASSWORD ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: errors[field.field_name] ? styles.passwordInputError : {}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
77371
77384
  ProtectedTextField,
77372
77385
  {
77373
77386
  InputProps: { endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(PasswordShowButton, {}) },
@@ -77392,6 +77405,7 @@ const Credentials = React__default.forwardRef(
77392
77405
  },
77393
77406
  onFocus: handleFocus,
77394
77407
  onKeyDown: handlePasswordEnterChange,
77408
+ required: true,
77395
77409
  spellCheck: "false",
77396
77410
  type: validations.showPassword ? "text" : "password",
77397
77411
  value: values[field.field_name] || ""
@@ -77414,10 +77428,12 @@ const Credentials = React__default.forwardRef(
77414
77428
  label: field.label,
77415
77429
  name: field.field_name,
77416
77430
  onChange: handleUserNameTextChange,
77431
+ required: true,
77417
77432
  spellCheck: "false",
77418
77433
  value: values[field.field_name] || ""
77419
77434
  }
77420
77435
  ) }) }, field.guid)),
77436
+ /* @__PURE__ */ jsxRuntimeExports.jsx(RequiredFieldNote, {}),
77421
77437
  /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
77422
77438
  Button$2,
77423
77439
  {
@@ -77490,6 +77506,9 @@ const getStyles$G = (tokens) => {
77490
77506
  marginBottom: tokens.Spacing.Large,
77491
77507
  marginTop: tokens.Spacing.XSmall
77492
77508
  },
77509
+ passwordInputError: {
77510
+ marginTop: tokens.Spacing.XSmall
77511
+ },
77493
77512
  buttonBack: {
77494
77513
  marginTop: tokens.Spacing.Medium,
77495
77514
  marginBottom: "12px"
@@ -86466,8 +86485,6 @@ const Connect$2 = ({
86466
86485
  if (state.returnToMicrodeposits) {
86467
86486
  dispatch(stepToMicrodeposits$1());
86468
86487
  setState({ ...state, returnToMicrodeposits: false });
86469
- } else if (consentIsEnabled || connectConfig.additional_product_option) {
86470
- dispatch(handleGoBackWithSideEffects());
86471
86488
  } else {
86472
86489
  postMessageFunctions.onPostMessage(POST_MESSAGES.BACK_TO_SEARCH, {});
86473
86490
  dispatch({ type: ActionTypes$2.GO_BACK_CREDENTIALS });