@mxenabled/connect-widget 2.13.0 → 2.13.2
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 +55 -34
- 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
|
@@ -5099,23 +5099,39 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
|
|
|
5099
5099
|
}
|
|
5100
5100
|
var _baseFindIndex = baseFindIndex$2;
|
|
5101
5101
|
|
|
5102
|
-
var
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5102
|
+
var _trimmedEndIndex;
|
|
5103
|
+
var hasRequired_trimmedEndIndex;
|
|
5104
|
+
|
|
5105
|
+
function require_trimmedEndIndex () {
|
|
5106
|
+
if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
|
|
5107
|
+
hasRequired_trimmedEndIndex = 1;
|
|
5108
|
+
var reWhitespace = /\s/;
|
|
5109
|
+
function trimmedEndIndex(string) {
|
|
5110
|
+
var index = string.length;
|
|
5111
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
5112
|
+
}
|
|
5113
|
+
return index;
|
|
5114
|
+
}
|
|
5115
|
+
_trimmedEndIndex = trimmedEndIndex;
|
|
5116
|
+
return _trimmedEndIndex;
|
|
5108
5117
|
}
|
|
5109
|
-
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
5110
5118
|
|
|
5111
|
-
var
|
|
5112
|
-
var
|
|
5113
|
-
|
|
5114
|
-
|
|
5119
|
+
var _baseTrim;
|
|
5120
|
+
var hasRequired_baseTrim;
|
|
5121
|
+
|
|
5122
|
+
function require_baseTrim () {
|
|
5123
|
+
if (hasRequired_baseTrim) return _baseTrim;
|
|
5124
|
+
hasRequired_baseTrim = 1;
|
|
5125
|
+
var trimmedEndIndex = require_trimmedEndIndex();
|
|
5126
|
+
var reTrimStart = /^\s+/;
|
|
5127
|
+
function baseTrim(string) {
|
|
5128
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5129
|
+
}
|
|
5130
|
+
_baseTrim = baseTrim;
|
|
5131
|
+
return _baseTrim;
|
|
5115
5132
|
}
|
|
5116
|
-
var _baseTrim = baseTrim$1;
|
|
5117
5133
|
|
|
5118
|
-
var baseTrim =
|
|
5134
|
+
var baseTrim = require_baseTrim(), isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
|
|
5119
5135
|
var NAN = 0 / 0;
|
|
5120
5136
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
5121
5137
|
var reIsBinary = /^0b[01]+$/i;
|
|
@@ -5196,7 +5212,7 @@ const ActionTypes$2 = {
|
|
|
5196
5212
|
FINISH_MICRODEPOSITS: "connect/finish_microdeposits",
|
|
5197
5213
|
GO_BACK_CREDENTIALS: "connect/go_back_credentials",
|
|
5198
5214
|
GO_BACK_CONSENT: "connect/go_back_consent",
|
|
5199
|
-
|
|
5215
|
+
GO_BACK_INSTITUTION_STATUS_DETAILS: "connect/go_back_institution_status_details",
|
|
5200
5216
|
GO_BACK_MANUAL_ACCOUNT: "connect/go_back_manual_account",
|
|
5201
5217
|
GO_BACK_OAUTH: "connect/go_back_oauth",
|
|
5202
5218
|
GO_BACK_POST_MESSAGE: "connect/go_back_post_message",
|
|
@@ -5357,7 +5373,7 @@ const STEPS = {
|
|
|
5357
5373
|
DELETE_MEMBER_SUCCESS: "deleteMemberSuccess",
|
|
5358
5374
|
DISCLOSURE: "disclosure",
|
|
5359
5375
|
ENTER_CREDENTIALS: "enterCreds",
|
|
5360
|
-
|
|
5376
|
+
INSTITUTION_STATUS_DETAILS: "institutionStatusDetails",
|
|
5361
5377
|
MFA: "mfa",
|
|
5362
5378
|
MICRODEPOSITS: "microdeposits",
|
|
5363
5379
|
OAUTH_ERROR: "oauthError",
|
|
@@ -8597,7 +8613,7 @@ var hasRequiredTrim;
|
|
|
8597
8613
|
function requireTrim () {
|
|
8598
8614
|
if (hasRequiredTrim) return trim_1;
|
|
8599
8615
|
hasRequiredTrim = 1;
|
|
8600
|
-
var baseToString = _baseToString, baseTrim =
|
|
8616
|
+
var baseToString = _baseToString, baseTrim = require_baseTrim(), castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
|
|
8601
8617
|
function trim(string, chars, guard) {
|
|
8602
8618
|
string = toString(string);
|
|
8603
8619
|
if (string && (guard || chars === void 0)) {
|
|
@@ -9442,7 +9458,7 @@ const selectInstitutionSuccess = (state, action) => {
|
|
|
9442
9458
|
const canOfferVerification = action.payload.institution?.account_verification_is_enabled && action.payload.additionalProductOption === COMBO_JOB_DATA_TYPES.ACCOUNT_NUMBER;
|
|
9443
9459
|
const canOfferAggregation = action.payload.additionalProductOption === COMBO_JOB_DATA_TYPES.TRANSACTIONS;
|
|
9444
9460
|
if (action.payload.institution && institutionIsBlockedForCostReasons(action.payload.institution)) {
|
|
9445
|
-
nextStep = STEPS.
|
|
9461
|
+
nextStep = STEPS.INSTITUTION_STATUS_DETAILS;
|
|
9446
9462
|
} else if (canOfferVerification || canOfferAggregation) {
|
|
9447
9463
|
nextStep = STEPS.ADDITIONAL_PRODUCT;
|
|
9448
9464
|
} else if (action.payload.consentIsEnabled) {
|
|
@@ -9473,7 +9489,7 @@ const startOauth = (state, action) => ({
|
|
|
9473
9489
|
...state,
|
|
9474
9490
|
location: pushLocation(
|
|
9475
9491
|
state.location,
|
|
9476
|
-
action.payload.institution && institutionIsBlockedForCostReasons(action.payload.institution) ? STEPS.
|
|
9492
|
+
action.payload.institution && institutionIsBlockedForCostReasons(action.payload.institution) ? STEPS.INSTITUTION_STATUS_DETAILS : STEPS.ENTER_CREDENTIALS
|
|
9477
9493
|
),
|
|
9478
9494
|
currentMemberGuid: action.payload.member.guid,
|
|
9479
9495
|
selectedInstitution: action.payload.institution
|
|
@@ -9551,7 +9567,7 @@ const verifyExistingConnection = (state, action) => {
|
|
|
9551
9567
|
currentMemberGuid: action.payload.member.guid,
|
|
9552
9568
|
location: pushLocation(
|
|
9553
9569
|
state.location,
|
|
9554
|
-
action.payload.institution && institutionIsBlockedForCostReasons(action.payload.institution) ? STEPS.
|
|
9570
|
+
action.payload.institution && institutionIsBlockedForCostReasons(action.payload.institution) ? STEPS.INSTITUTION_STATUS_DETAILS : STEPS.CONNECTING
|
|
9555
9571
|
),
|
|
9556
9572
|
selectedInstitution: action.payload.institution
|
|
9557
9573
|
};
|
|
@@ -9642,9 +9658,9 @@ function getStartingStep(members, member, microdeposit, config, institution, wid
|
|
|
9642
9658
|
const shouldStepToMicrodeposits = config.current_microdeposit_guid && config.mode === VERIFY_MODE && microdeposit.status !== MicrodepositsStatuses.PREINITIATED;
|
|
9643
9659
|
const shouldLoadWithInstitution = institution && (config.current_institution_guid || config.current_institution_code);
|
|
9644
9660
|
const shouldStepToConnecting = member?.connection_status === ReadableStatuses$1.REJECTED || member?.connection_status === ReadableStatuses$1.EXPIRED;
|
|
9645
|
-
const
|
|
9646
|
-
if (
|
|
9647
|
-
return STEPS.
|
|
9661
|
+
const shouldStepToInstitutionStatusDetails = institution && institutionIsBlockedForCostReasons(institution) || member && memberIsBlockedForCostReasons(member);
|
|
9662
|
+
if (shouldStepToInstitutionStatusDetails) {
|
|
9663
|
+
return STEPS.INSTITUTION_STATUS_DETAILS;
|
|
9648
9664
|
} else if (shouldStepToMFA)
|
|
9649
9665
|
return STEPS.MFA;
|
|
9650
9666
|
else if (shouldUpdateCredentials)
|
|
@@ -9664,7 +9680,7 @@ function getStartingStep(members, member, microdeposit, config, institution, wid
|
|
|
9664
9680
|
function getStepFromMember(member, mode = AGG_MODE) {
|
|
9665
9681
|
const connection_status = member.connection_status;
|
|
9666
9682
|
if (member && memberIsBlockedForCostReasons(member)) {
|
|
9667
|
-
return STEPS.
|
|
9683
|
+
return STEPS.INSTITUTION_STATUS_DETAILS;
|
|
9668
9684
|
} else if (member?.error?.error_code && canHandleActionableError(member?.error?.error_code, mode) || hasNoSingleAccountSelectOptions(member)) {
|
|
9669
9685
|
const errorCode = member?.error?.error_code;
|
|
9670
9686
|
if (CODES_REQUIRING_CREDENTIALS.includes(errorCode)) return STEPS.ENTER_CREDENTIALS;
|
|
@@ -9715,7 +9731,7 @@ const connect = createReducer(defaultState$1, {
|
|
|
9715
9731
|
[ActionTypes$2.CONNECT_COMPLETE]: connectComplete,
|
|
9716
9732
|
[ActionTypes$2.GO_BACK_CREDENTIALS]: goBackCredentials,
|
|
9717
9733
|
[ActionTypes$2.GO_BACK_CONSENT]: goBackSearchOrVerify,
|
|
9718
|
-
[ActionTypes$2.
|
|
9734
|
+
[ActionTypes$2.GO_BACK_INSTITUTION_STATUS_DETAILS]: connectGoBack,
|
|
9719
9735
|
[ActionTypes$2.GO_BACK_POST_MESSAGE]: goBackSearchOrVerify,
|
|
9720
9736
|
[ActionTypes$2.EXIT_MICRODEPOSITS]: exitMicrodeposits,
|
|
9721
9737
|
[ActionTypes$2.FINISH_MICRODEPOSITS]: finishMicrodeposits,
|
|
@@ -54494,7 +54510,10 @@ const PageviewInfo = {
|
|
|
54494
54510
|
CONNECT_DISCLOSURE_PRIVACY_POLICY: ["Connect Disclosure Privacy Policy", "/privacy_policy"],
|
|
54495
54511
|
CONNECT_DYNAMIC_DISCLOSURE: ["Connect Dynamic Disclosure", "/dynamic_disclosure"],
|
|
54496
54512
|
CONNECT_GENERIC_ERROR: ["Connect Generic Error", "/generic_error"],
|
|
54497
|
-
|
|
54513
|
+
CONNECT_INSTITUTION_STATUS_DETAILS: [
|
|
54514
|
+
"Connect Institution Status Details",
|
|
54515
|
+
"/institution_status_details"
|
|
54516
|
+
],
|
|
54498
54517
|
CONNECT_LOGIN_ERROR: ["Connect Login Error", "/login_error"],
|
|
54499
54518
|
CONNECT_MANUAL_ACCOUNT: ["Manual Account Connect", "/manual_account_connect"],
|
|
54500
54519
|
CONNECT_MANUAL_ACCOUNT_FORM: ["Connect Manual Account Form", "/manual_account_form"],
|
|
@@ -74475,9 +74494,9 @@ const POST_MESSAGE_CONTEXT = {
|
|
|
74475
74494
|
MANUAL_ACCOUNT_ADDED: "manualAccountAdded"
|
|
74476
74495
|
};
|
|
74477
74496
|
|
|
74478
|
-
const
|
|
74497
|
+
const InstitutionStatusDetails = React__default.forwardRef(
|
|
74479
74498
|
(_, navigationRef) => {
|
|
74480
|
-
const [name, path] = PageviewInfo.
|
|
74499
|
+
const [name, path] = PageviewInfo.CONNECT_INSTITUTION_STATUS_DETAILS;
|
|
74481
74500
|
const containerRef = React__default.useRef(null);
|
|
74482
74501
|
const postMessageFunctions = useContext(PostMessageContext);
|
|
74483
74502
|
const institution = useSelector(getSelectedInstitution);
|
|
@@ -74500,7 +74519,7 @@ const InstitutionDisabled = React__default.forwardRef(
|
|
|
74500
74519
|
const handleGoBack = () => fadeOut(containerRef.current, "up", 300).then(() => {
|
|
74501
74520
|
postMessageFunctions.onPostMessage(POST_MESSAGES.BACK_TO_SEARCH);
|
|
74502
74521
|
dispatch({
|
|
74503
|
-
type: ActionTypes$2.
|
|
74522
|
+
type: ActionTypes$2.GO_BACK_INSTITUTION_STATUS_DETAILS,
|
|
74504
74523
|
payload: initialConfig
|
|
74505
74524
|
});
|
|
74506
74525
|
});
|
|
@@ -74536,7 +74555,7 @@ const InstitutionDisabled = React__default.forwardRef(
|
|
|
74536
74555
|
] }) });
|
|
74537
74556
|
}
|
|
74538
74557
|
);
|
|
74539
|
-
|
|
74558
|
+
InstitutionStatusDetails.displayName = "InstitutionStatusDetails";
|
|
74540
74559
|
const getStyles$_ = () => ({
|
|
74541
74560
|
container: {
|
|
74542
74561
|
display: "flex",
|
|
@@ -77355,9 +77374,7 @@ const OAuthStep = React__default.forwardRef((props, navigationRef) => {
|
|
|
77355
77374
|
if (!isStartingOauth) return () => {
|
|
77356
77375
|
};
|
|
77357
77376
|
let member$;
|
|
77358
|
-
if (
|
|
77359
|
-
member$ = of(member);
|
|
77360
|
-
} else if (pendingOauthMember) {
|
|
77377
|
+
if (pendingOauthMember) {
|
|
77361
77378
|
member$ = of(pendingOauthMember);
|
|
77362
77379
|
} else {
|
|
77363
77380
|
const newMemberStream$ = defer(
|
|
@@ -85042,8 +85059,8 @@ const RenderConnectStep = (props) => {
|
|
|
85042
85059
|
connectStepView = /* @__PURE__ */ jsxRuntimeExports.jsx(Disclosure, { ref: props.navigationRef });
|
|
85043
85060
|
} else if (step === STEPS.SEARCH) {
|
|
85044
85061
|
connectStepView = /* @__PURE__ */ jsxRuntimeExports.jsx(Search$2, { ref: props.navigationRef });
|
|
85045
|
-
} else if (step === STEPS.
|
|
85046
|
-
connectStepView = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
85062
|
+
} else if (step === STEPS.INSTITUTION_STATUS_DETAILS) {
|
|
85063
|
+
connectStepView = /* @__PURE__ */ jsxRuntimeExports.jsx(InstitutionStatusDetails, { ref: props.navigationRef });
|
|
85047
85064
|
} else if (step === STEPS.CONSENT) {
|
|
85048
85065
|
connectStepView = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
85049
85066
|
DynamicDisclosure,
|
|
@@ -88003,6 +88020,8 @@ const frCa = {
|
|
|
88003
88020
|
"Unable to connect": "Impossible de se connecter",
|
|
88004
88021
|
"Maintenance in progress": "Entretien en cours",
|
|
88005
88022
|
"Deposits verified. You're almost done setting things up. Continue to your institution.": "Dépôts vérifiés. Vous avez presque terminé la configuration. Rendez-vous dans votre établissement.",
|
|
88023
|
+
"After logging in, share at least one account and %1profile information%2.": "Après vous être connecté, partagez au moins un compte et %1informations de profil%2.",
|
|
88024
|
+
"After logging in, share at least one account.": "Après vous être connecté, partagez au moins un compte.",
|
|
88006
88025
|
"connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "En cliquant sur Continuer, vous acceptez la ",
|
|
88007
88026
|
"connect/disclosure/policy/link\u0004MX Privacy Policy.": "Politique de confidentialité de MX.",
|
|
88008
88027
|
"connect/disclosure/policy/link\u0004MX Privacy Policy": "Politique de confidentialité de MX.",
|
|
@@ -88506,6 +88525,8 @@ const es = {
|
|
|
88506
88525
|
"Unable to connect": "No se puede conectar",
|
|
88507
88526
|
"Maintenance in progress": "Mantenimiento en curso",
|
|
88508
88527
|
"Deposits verified. You're almost done setting things up. Continue to your institution.": "Depósitos verificados. Ya casi terminas de configurar todo. Continúa con tu institución.",
|
|
88528
|
+
"After logging in, share at least one account and %1profile information%2.": "Después de iniciar sesión, comparta al menos una cuenta y %1información de perfil%2.",
|
|
88529
|
+
"After logging in, share at least one account.": "Después de iniciar sesión, comparta al menos una cuenta.",
|
|
88509
88530
|
"connect/disclosure/button\u0004Continue": "Continuar",
|
|
88510
88531
|
"connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "Al hacer clic en Continuar, tu aceptas la ",
|
|
88511
88532
|
"connect/disclosure/policy/link\u0004MX Privacy Policy.": "Política de privacidad de Money Experience.",
|