@mxenabled/connect-widget 2.15.3 → 2.15.5
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 +60 -44
- 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
|
@@ -9351,6 +9351,7 @@ const loadConnectSuccess = (state, action) => {
|
|
|
9351
9351
|
microdeposit,
|
|
9352
9352
|
config = {},
|
|
9353
9353
|
institution = {},
|
|
9354
|
+
experimentalFeatures = {},
|
|
9354
9355
|
widgetProfile
|
|
9355
9356
|
} = action.payload;
|
|
9356
9357
|
return {
|
|
@@ -9360,7 +9361,15 @@ const loadConnectSuccess = (state, action) => {
|
|
|
9360
9361
|
isComponentLoading: false,
|
|
9361
9362
|
location: pushLocation(
|
|
9362
9363
|
state.location,
|
|
9363
|
-
getStartingStep(
|
|
9364
|
+
getStartingStep(
|
|
9365
|
+
members,
|
|
9366
|
+
member,
|
|
9367
|
+
microdeposit,
|
|
9368
|
+
config,
|
|
9369
|
+
institution,
|
|
9370
|
+
widgetProfile,
|
|
9371
|
+
experimentalFeatures
|
|
9372
|
+
)
|
|
9364
9373
|
),
|
|
9365
9374
|
selectedInstitution: institution,
|
|
9366
9375
|
updateCredentials: member?.connection_status === ReadableStatuses$1.DENIED || state.updateCredentials,
|
|
@@ -9712,13 +9721,17 @@ const upsertMember = (state, action) => {
|
|
|
9712
9721
|
}
|
|
9713
9722
|
return [...state.members, loadedMember];
|
|
9714
9723
|
};
|
|
9715
|
-
function getStartingStep(members, member, microdeposit, config, institution, widgetProfile) {
|
|
9724
|
+
function getStartingStep(members, member, microdeposit, config, institution, widgetProfile, experimentalFeatures = {}) {
|
|
9725
|
+
const unavailableInstitutions = experimentalFeatures?.unavailableInstitutions || [];
|
|
9726
|
+
const institutionIsAvailable = institution && unavailableInstitutions.find(
|
|
9727
|
+
(ins) => ins.guid === institution?.guid || ins.name === institution?.name
|
|
9728
|
+
) === void 0;
|
|
9716
9729
|
const shouldStepToMFA = member && config.update_credentials && member.connection_status === ReadableStatuses$1.CHALLENGED;
|
|
9717
9730
|
const shouldUpdateCredentials = member && (config.update_credentials || member.connection_status === ReadableStatuses$1.DENIED);
|
|
9718
9731
|
const shouldStepToMicrodeposits = config.current_microdeposit_guid && config.mode === VERIFY_MODE && microdeposit.status !== MicrodepositsStatuses.PREINITIATED;
|
|
9719
|
-
const shouldLoadWithInstitution = institution && (config.current_institution_guid || config.current_institution_code);
|
|
9732
|
+
const shouldLoadWithInstitution = institution && (config.current_institution_guid || config.current_institution_code) && institutionIsAvailable;
|
|
9720
9733
|
const shouldStepToConnecting = member?.connection_status === ReadableStatuses$1.REJECTED || member?.connection_status === ReadableStatuses$1.EXPIRED;
|
|
9721
|
-
const shouldStepToInstitutionStatusDetails = institution && institutionIsBlockedForCostReasons(institution) || member && memberIsBlockedForCostReasons(member);
|
|
9734
|
+
const shouldStepToInstitutionStatusDetails = institution && institutionIsBlockedForCostReasons(institution) || member && memberIsBlockedForCostReasons(member) || !institutionIsAvailable;
|
|
9722
9735
|
if (shouldStepToInstitutionStatusDetails) {
|
|
9723
9736
|
return STEPS.INSTITUTION_STATUS_DETAILS;
|
|
9724
9737
|
} else if (shouldStepToMFA)
|
|
@@ -79006,11 +79019,6 @@ ProgressCircle.propTypes = {
|
|
|
79006
79019
|
job: PropTypes$1.object
|
|
79007
79020
|
};
|
|
79008
79021
|
|
|
79009
|
-
const subMessages = [
|
|
79010
|
-
__("We’re working on it. Stick around!"),
|
|
79011
|
-
__("We’re getting closer. Hang tight!"),
|
|
79012
|
-
__("Still working. Stay with us!")
|
|
79013
|
-
];
|
|
79014
79022
|
const ProgressMessage = ({ allDone, jobType }) => {
|
|
79015
79023
|
const tokens = useTokens();
|
|
79016
79024
|
const styles = {
|
|
@@ -79022,6 +79030,11 @@ const ProgressMessage = ({ allDone, jobType }) => {
|
|
|
79022
79030
|
}
|
|
79023
79031
|
};
|
|
79024
79032
|
const [subTitle, setSubTitle] = useState("");
|
|
79033
|
+
const subMessages = [
|
|
79034
|
+
__("We're working on it. Stick around!"),
|
|
79035
|
+
__("We're getting closer. Hang tight!"),
|
|
79036
|
+
__("Still working. Stay with us!")
|
|
79037
|
+
];
|
|
79025
79038
|
useEffect(() => {
|
|
79026
79039
|
const messageCycle$ = from(subMessages).pipe(
|
|
79027
79040
|
concatMap((m) => of(m).pipe(delay$1(1e4))),
|
|
@@ -79145,8 +79158,7 @@ const getStyles$G = () => {
|
|
|
79145
79158
|
const PoweredByFooter = ({ aggregator = "MX" }) => {
|
|
79146
79159
|
const styles = getStyles$F();
|
|
79147
79160
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.container, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(D, { color: "text.secondary", variant: "body2", children: [
|
|
79148
|
-
"powered by",
|
|
79149
|
-
" ",
|
|
79161
|
+
__("powered by "),
|
|
79150
79162
|
/* @__PURE__ */ jsxRuntimeExports.jsx(D, { component: "span", fontWeight: "semibold", variant: "body2", children: aggregator })
|
|
79151
79163
|
] }) });
|
|
79152
79164
|
};
|
|
@@ -87188,6 +87200,27 @@ const DeleteMemberSurvey = (props) => {
|
|
|
87188
87200
|
const [isSubmitted, setIsSubmitted] = useState(false);
|
|
87189
87201
|
const tokens = useTokens();
|
|
87190
87202
|
const styles = getStyles$5(tokens);
|
|
87203
|
+
const DELETE_REASONS = {
|
|
87204
|
+
NO_LONGER_USE_ACCOUNT: __("I no longer use this account or it's not mine"),
|
|
87205
|
+
DONT_WANT_SHARE_DATA: __("I don't want to share my data"),
|
|
87206
|
+
ACCOUNT_INFORMATION_OLD: __("The account information is old or inaccurate"),
|
|
87207
|
+
UNABLE_CONNECT_ACCOUNT: __("I am unable to connect this account here"),
|
|
87208
|
+
DONT_WANT_TO_USE_APP: __("I don't want to use this app"),
|
|
87209
|
+
DONT_WANT_ACCOUNT_CONNECTED: __("I don't want this account connected here"),
|
|
87210
|
+
OTHER_REASON: __("Other")
|
|
87211
|
+
};
|
|
87212
|
+
const CONNECTED_REASONS = [
|
|
87213
|
+
DELETE_REASONS.NO_LONGER_USE_ACCOUNT,
|
|
87214
|
+
DELETE_REASONS.DONT_WANT_SHARE_DATA,
|
|
87215
|
+
DELETE_REASONS.DONT_WANT_TO_USE_APP,
|
|
87216
|
+
DELETE_REASONS.OTHER_REASON
|
|
87217
|
+
];
|
|
87218
|
+
const NON_CONECTED_REASONS = [
|
|
87219
|
+
DELETE_REASONS.UNABLE_CONNECT_ACCOUNT,
|
|
87220
|
+
DELETE_REASONS.ACCOUNT_INFORMATION_OLD,
|
|
87221
|
+
DELETE_REASONS.DONT_WANT_ACCOUNT_CONNECTED,
|
|
87222
|
+
DELETE_REASONS.OTHER_REASON
|
|
87223
|
+
];
|
|
87191
87224
|
useEffect(() => {
|
|
87192
87225
|
if (deleteMemberState.loading === false) return () => {
|
|
87193
87226
|
};
|
|
@@ -87361,27 +87394,6 @@ DeleteMemberSurvey.propTypes = {
|
|
|
87361
87394
|
onCancel: PropTypes$1.func.isRequired,
|
|
87362
87395
|
onDeleteSuccess: PropTypes$1.func.isRequired
|
|
87363
87396
|
};
|
|
87364
|
-
const DELETE_REASONS = {
|
|
87365
|
-
NO_LONGER_USE_ACCOUNT: __("I no longer use this account or it’s not mine"),
|
|
87366
|
-
DONT_WANT_SHARE_DATA: __("I don’t want to share my data"),
|
|
87367
|
-
ACCOUNT_INFORMATION_OLD: __("The account information is old or inaccurate"),
|
|
87368
|
-
UNABLE_CONNECT_ACCOUNT: __("I am unable to connect this account here"),
|
|
87369
|
-
DONT_WANT_TO_USE_APP: __("I don’t want to use this app"),
|
|
87370
|
-
DONT_WANT_ACCOUNT_CONNECTED: __("I don’t want this account connected here"),
|
|
87371
|
-
OTHER_REASON: __("Other")
|
|
87372
|
-
};
|
|
87373
|
-
const CONNECTED_REASONS = [
|
|
87374
|
-
DELETE_REASONS.NO_LONGER_USE_ACCOUNT,
|
|
87375
|
-
DELETE_REASONS.DONT_WANT_SHARE_DATA,
|
|
87376
|
-
DELETE_REASONS.DONT_WANT_TO_USE_APP,
|
|
87377
|
-
DELETE_REASONS.OTHER_REASON
|
|
87378
|
-
];
|
|
87379
|
-
const NON_CONECTED_REASONS = [
|
|
87380
|
-
DELETE_REASONS.UNABLE_CONNECT_ACCOUNT,
|
|
87381
|
-
DELETE_REASONS.ACCOUNT_INFORMATION_OLD,
|
|
87382
|
-
DELETE_REASONS.DONT_WANT_ACCOUNT_CONNECTED,
|
|
87383
|
-
DELETE_REASONS.OTHER_REASON
|
|
87384
|
-
];
|
|
87385
87397
|
|
|
87386
87398
|
const ConnectNavigationHeader = (props) => {
|
|
87387
87399
|
const goBackButtonContainerRef = useRef();
|
|
@@ -87516,6 +87528,7 @@ const getErrorResource = (err) => {
|
|
|
87516
87528
|
const useLoadConnect = () => {
|
|
87517
87529
|
const { api } = useApi();
|
|
87518
87530
|
const profiles = useSelector((state) => state.profiles);
|
|
87531
|
+
const experimentalFeatures = useSelector(getExperimentalFeatures);
|
|
87519
87532
|
const clientLocale = useMemo(() => {
|
|
87520
87533
|
return document.querySelector("html")?.getAttribute("lang") || "en";
|
|
87521
87534
|
}, [document.querySelector("html")?.getAttribute("lang")]);
|
|
@@ -87542,6 +87555,7 @@ const useLoadConnect = () => {
|
|
|
87542
87555
|
return from(api.loadMembers(clientLocale)).pipe(
|
|
87543
87556
|
map(
|
|
87544
87557
|
(members = []) => loadConnectSuccess$1({
|
|
87558
|
+
experimentalFeatures,
|
|
87545
87559
|
members,
|
|
87546
87560
|
widgetProfile: profiles.widgetProfile,
|
|
87547
87561
|
...dependencies
|
|
@@ -88054,12 +88068,8 @@ const frCa = {
|
|
|
88054
88068
|
"Oops! We weren't able to disconnect this institution. Please try again later.": "Oops! Nous n'avons pas pu déconnecter cette institution. Veuillez réessayer plus tard.",
|
|
88055
88069
|
Ok: Ok$1,
|
|
88056
88070
|
Disconnect: Disconnect$1,
|
|
88057
|
-
"I no longer use this account or it’s not mine": "Je n’utilise plus ce compte ou il ne m’appartient pas",
|
|
88058
|
-
"I don’t want to share my data": "Je ne veux pas partager mes données",
|
|
88059
88071
|
"The account information is old or inaccurate": "Les informations de compte sont anciennes ou erronées",
|
|
88060
88072
|
"I am unable to connect this account here": "Je n’arrive pas à connecter ce compte",
|
|
88061
|
-
"I don’t want to use this app": "Je ne veux pas utiliser cette application",
|
|
88062
|
-
"I don’t want this account connected here": "Je ne veux pas que mon compte soit connecté ici",
|
|
88063
88073
|
Other: Other$1,
|
|
88064
88074
|
"Oops! There was an error trying to connect your account. Please try again.": "Oups! Une erreur est survenue lors de la connexion de votre compte. Veuillez réessayer.",
|
|
88065
88075
|
"Loading ...": "Chargement ...",
|
|
@@ -88235,8 +88245,6 @@ const frCa = {
|
|
|
88235
88245
|
"%1 added": "%1 ajouté",
|
|
88236
88246
|
"Your account has been saved manually. You can edit or delete it later.": "Votre compte a été enregistré manuellement. Vous pouvez le modifier ou le supprimer ultérieurement.",
|
|
88237
88247
|
"Oops! Verification must be enabled to use this feature.": "Oops! La vérification doit être activée pour utiliser cette fonctionnalité.",
|
|
88238
|
-
"We’re working on it. Stick around!": "Nous y travaillons. Rester dans les parages!",
|
|
88239
|
-
"We’re getting closer. Hang tight!": "Nous nous rapprochons. Tenir fermement!",
|
|
88240
88248
|
"Still working. Stay with us!": "Nous nous rapprochons. Tenir fermement!",
|
|
88241
88249
|
"Syncing your information.": "Synchronisation de vos informations.",
|
|
88242
88250
|
"Getting verification data.": "Obtenir des données de vérification.",
|
|
@@ -88445,6 +88453,13 @@ const frCa = {
|
|
|
88445
88453
|
"Connection not supported by %1": "Connexion non prise en charge par %1",
|
|
88446
88454
|
"%1 currently limits how your data can be shared. We'll enable this connection once %1 opens access.": "%1 limite actuellement la manière dont vos données peuvent être partagées. Nous activerons cette connexion une fois que %1 ouvrira l'accès.",
|
|
88447
88455
|
UNAVAILABLE: UNAVAILABLE$1,
|
|
88456
|
+
"powered by ": "alimenté par ",
|
|
88457
|
+
"I no longer use this account or it's not mine": "Je n'utilise plus ce compte ou ce n'est pas le mien",
|
|
88458
|
+
"I don't want to share my data": "Je ne veux pas partager mes données",
|
|
88459
|
+
"I don't want to use this app": "Je ne veux pas utiliser cette application",
|
|
88460
|
+
"I don't want this account connected here": "Je ne veux pas ce compte connecté ici",
|
|
88461
|
+
"We're working on it. Stick around!": "Nous y travaillons. Rester dans les parages!",
|
|
88462
|
+
"We're getting closer. Hang tight!": "Nous nous rapprochons. Tenir fermement!",
|
|
88448
88463
|
"connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "En cliquant sur Continuer, vous acceptez la ",
|
|
88449
88464
|
"connect/disclosure/policy/link\u0004MX Privacy Policy.": "Politique de confidentialité de MX.",
|
|
88450
88465
|
"connect/disclosure/policy/link\u0004MX Privacy Policy": "Politique de confidentialité de MX.",
|
|
@@ -88554,12 +88569,8 @@ const es = {
|
|
|
88554
88569
|
"Oops! We weren't able to disconnect this institution. Please try again later.": "¡Oh, no! No pudimos desconectar esta institución. Inténtelo de nuevo más tarde.",
|
|
88555
88570
|
Ok: Ok,
|
|
88556
88571
|
Disconnect: Disconnect,
|
|
88557
|
-
"I no longer use this account or it’s not mine": "Ya no uso esta cuenta o no es mía",
|
|
88558
|
-
"I don’t want to share my data": "No quiero compartir mis datos",
|
|
88559
88572
|
"The account information is old or inaccurate": "La información de la cuenta es antigua o inexacta",
|
|
88560
88573
|
"I am unable to connect this account here": "No puedo conectar esta cuenta aquí",
|
|
88561
|
-
"I don’t want to use this app": "No quiero usar esta aplicación",
|
|
88562
|
-
"I don’t want this account connected here": "No quiero que esta cuenta esté conectada aquí",
|
|
88563
88574
|
Other: Other,
|
|
88564
88575
|
"Add account with %1": "Agregar cuenta con %1",
|
|
88565
88576
|
"You are leaving": "Está saliendo",
|
|
@@ -88742,8 +88753,6 @@ const es = {
|
|
|
88742
88753
|
"%1 added": "%1 añadido",
|
|
88743
88754
|
"Your account has been saved manually. You can edit or delete it later.": "Su cuenta ha sido salvada manualmente. Puede editarla o borrarla más tarde.",
|
|
88744
88755
|
"Oops! Verification must be enabled to use this feature.": "¡Oh, no! La verificación debe estar habilitada para usar esta función.",
|
|
88745
|
-
"We’re working on it. Stick around!": "Estamos trabajando en ello. ¡Quedarse!",
|
|
88746
|
-
"We’re getting closer. Hang tight!": "Nos estamos acercando. ¡Aguanta!",
|
|
88747
88756
|
"Still working. Stay with us!": "Aún trabajando. ¡Quédate con nosotros!",
|
|
88748
88757
|
"Syncing your information.": "Aún trabajando. ¡Quédate con nosotros!",
|
|
88749
88758
|
"Getting verification data.": "Obtener datos de verificación.",
|
|
@@ -88954,6 +88963,13 @@ const es = {
|
|
|
88954
88963
|
"Connection not supported by %1": "Conexión no compatible con %1",
|
|
88955
88964
|
"%1 currently limits how your data can be shared. We'll enable this connection once %1 opens access.": "%1 actualmente limita cómo se pueden compartir sus datos. Habilitaremos esta conexión una vez que %1 abra el acceso.",
|
|
88956
88965
|
UNAVAILABLE: UNAVAILABLE,
|
|
88966
|
+
"powered by ": "desarrollado por ",
|
|
88967
|
+
"I no longer use this account or it's not mine": "Ya no uso esta cuenta o no es mía",
|
|
88968
|
+
"I don't want to share my data": "No quiero compartir mis datos",
|
|
88969
|
+
"I don't want to use this app": "No quiero usar esta aplicación",
|
|
88970
|
+
"I don't want this account connected here": "No quiero esta cuenta conectada aquí",
|
|
88971
|
+
"We're working on it. Stick around!": "Estamos trabajando en ello. ¡Quedarse!",
|
|
88972
|
+
"We're getting closer. Hang tight!": "Nos estamos acercando. ¡Aguanta!",
|
|
88957
88973
|
"connect/disclosure/button\u0004Continue": "Continuar",
|
|
88958
88974
|
"connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "Al hacer clic en Continuar, tu aceptas la ",
|
|
88959
88975
|
"connect/disclosure/policy/link\u0004MX Privacy Policy.": "Política de privacidad de Money Experience.",
|