@mxenabled/connect-widget 2.15.2 → 2.15.4

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
@@ -9251,6 +9251,7 @@ function institutionIsBlockedForCostReasons(institution) {
9251
9251
  }
9252
9252
 
9253
9253
  const initialState$6 = {
9254
+ optOutOfEarlyUserRelease: false,
9254
9255
  unavailableInstitutions: []
9255
9256
  };
9256
9257
  const experimentalFeaturesSlice = createSlice({
@@ -9259,6 +9260,7 @@ const experimentalFeaturesSlice = createSlice({
9259
9260
  reducers: {
9260
9261
  loadExperimentalFeatures(state, action) {
9261
9262
  state.unavailableInstitutions = action.payload?.unavailableInstitutions || [];
9263
+ state.optOutOfEarlyUserRelease = action.payload?.optOutOfEarlyUserRelease || false;
9262
9264
  }
9263
9265
  }
9264
9266
  });
@@ -76737,7 +76739,7 @@ const DEFAULT_POLLING_STATE = {
76737
76739
  initialDataReady: false
76738
76740
  // whether the initial data ready event has been sent
76739
76741
  };
76740
- function pollMember(memberGuid, api, clientLocale, clientGuid = null) {
76742
+ function pollMember(memberGuid, api, clientLocale, optOutOfEarlyUserRelease = false) {
76741
76743
  return interval(3e3).pipe(
76742
76744
  switchMap(
76743
76745
  () => (
@@ -76768,8 +76770,7 @@ function pollMember(memberGuid, api, clientLocale, clientGuid = null) {
76768
76770
  // preserve the initialDataReadySent flag
76769
76771
  initialDataReady: acc.initialDataReady
76770
76772
  };
76771
- const excludedClients = ["CLT-64ff7421-a8ef-4ac0-90f1-1636eda1a1fd"];
76772
- if (!isError && !acc.initialDataReady && response?.job?.async_account_data_ready && !excludedClients.includes(clientGuid)) {
76773
+ if (!isError && !acc.initialDataReady && response?.job?.async_account_data_ready && !optOutOfEarlyUserRelease) {
76773
76774
  pollingState.initialDataReady = true;
76774
76775
  }
76775
76776
  const [shouldStopPolling, messageKey] = handlePollingResponse(pollingState);
@@ -79021,11 +79022,6 @@ ProgressCircle.propTypes = {
79021
79022
  job: PropTypes$1.object
79022
79023
  };
79023
79024
 
79024
- const subMessages = [
79025
- __("We’re working on it. Stick around!"),
79026
- __("We’re getting closer. Hang tight!"),
79027
- __("Still working. Stay with us!")
79028
- ];
79029
79025
  const ProgressMessage = ({ allDone, jobType }) => {
79030
79026
  const tokens = useTokens();
79031
79027
  const styles = {
@@ -79037,6 +79033,11 @@ const ProgressMessage = ({ allDone, jobType }) => {
79037
79033
  }
79038
79034
  };
79039
79035
  const [subTitle, setSubTitle] = useState("");
79036
+ const subMessages = [
79037
+ __("We're working on it. Stick around!"),
79038
+ __("We're getting closer. Hang tight!"),
79039
+ __("Still working. Stay with us!")
79040
+ ];
79040
79041
  useEffect(() => {
79041
79042
  const messageCycle$ = from(subMessages).pipe(
79042
79043
  concatMap((m) => of(m).pipe(delay$1(1e4))),
@@ -79160,8 +79161,7 @@ const getStyles$G = () => {
79160
79161
  const PoweredByFooter = ({ aggregator = "MX" }) => {
79161
79162
  const styles = getStyles$F();
79162
79163
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.container, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(D, { color: "text.secondary", variant: "body2", children: [
79163
- "powered by",
79164
- " ",
79164
+ __("powered by "),
79165
79165
  /* @__PURE__ */ jsxRuntimeExports.jsx(D, { component: "span", fontWeight: "semibold", variant: "body2", children: aggregator })
79166
79166
  ] }) });
79167
79167
  };
@@ -79289,7 +79289,7 @@ const Connecting = (props) => {
79289
79289
  onUpsertMember
79290
79290
  } = props;
79291
79291
  const selectedInstitution = useSelector(getSelectedInstitution);
79292
- const clientGuid = useSelector(getClientGuid);
79292
+ const { optOutOfEarlyUserRelease } = useSelector(getExperimentalFeatures);
79293
79293
  const sendAnalyticsEvent = useAnalyticsEvent();
79294
79294
  const clientLocale = useMemo(() => {
79295
79295
  return document.querySelector("html")?.getAttribute("lang") || "en";
@@ -79440,7 +79440,7 @@ const Connecting = (props) => {
79440
79440
  return needsJobStarted ? startJob$ : of(currentMember);
79441
79441
  }).pipe(
79442
79442
  concatMap(
79443
- (member) => pollMember(member.guid, api, clientLocale, clientGuid).pipe(
79443
+ (member) => pollMember(member.guid, api, clientLocale, optOutOfEarlyUserRelease).pipe(
79444
79444
  tap((pollingState) => handleMemberPoll(pollingState)),
79445
79445
  filter((pollingState) => pollingState.pollingIsDone),
79446
79446
  pluck("currentResponse"),
@@ -87203,6 +87203,27 @@ const DeleteMemberSurvey = (props) => {
87203
87203
  const [isSubmitted, setIsSubmitted] = useState(false);
87204
87204
  const tokens = useTokens();
87205
87205
  const styles = getStyles$5(tokens);
87206
+ const DELETE_REASONS = {
87207
+ NO_LONGER_USE_ACCOUNT: __("I no longer use this account or it's not mine"),
87208
+ DONT_WANT_SHARE_DATA: __("I don't want to share my data"),
87209
+ ACCOUNT_INFORMATION_OLD: __("The account information is old or inaccurate"),
87210
+ UNABLE_CONNECT_ACCOUNT: __("I am unable to connect this account here"),
87211
+ DONT_WANT_TO_USE_APP: __("I don't want to use this app"),
87212
+ DONT_WANT_ACCOUNT_CONNECTED: __("I don't want this account connected here"),
87213
+ OTHER_REASON: __("Other")
87214
+ };
87215
+ const CONNECTED_REASONS = [
87216
+ DELETE_REASONS.NO_LONGER_USE_ACCOUNT,
87217
+ DELETE_REASONS.DONT_WANT_SHARE_DATA,
87218
+ DELETE_REASONS.DONT_WANT_TO_USE_APP,
87219
+ DELETE_REASONS.OTHER_REASON
87220
+ ];
87221
+ const NON_CONECTED_REASONS = [
87222
+ DELETE_REASONS.UNABLE_CONNECT_ACCOUNT,
87223
+ DELETE_REASONS.ACCOUNT_INFORMATION_OLD,
87224
+ DELETE_REASONS.DONT_WANT_ACCOUNT_CONNECTED,
87225
+ DELETE_REASONS.OTHER_REASON
87226
+ ];
87206
87227
  useEffect(() => {
87207
87228
  if (deleteMemberState.loading === false) return () => {
87208
87229
  };
@@ -87376,27 +87397,6 @@ DeleteMemberSurvey.propTypes = {
87376
87397
  onCancel: PropTypes$1.func.isRequired,
87377
87398
  onDeleteSuccess: PropTypes$1.func.isRequired
87378
87399
  };
87379
- const DELETE_REASONS = {
87380
- NO_LONGER_USE_ACCOUNT: __("I no longer use this account or it’s not mine"),
87381
- DONT_WANT_SHARE_DATA: __("I don’t want to share my data"),
87382
- ACCOUNT_INFORMATION_OLD: __("The account information is old or inaccurate"),
87383
- UNABLE_CONNECT_ACCOUNT: __("I am unable to connect this account here"),
87384
- DONT_WANT_TO_USE_APP: __("I don’t want to use this app"),
87385
- DONT_WANT_ACCOUNT_CONNECTED: __("I don’t want this account connected here"),
87386
- OTHER_REASON: __("Other")
87387
- };
87388
- const CONNECTED_REASONS = [
87389
- DELETE_REASONS.NO_LONGER_USE_ACCOUNT,
87390
- DELETE_REASONS.DONT_WANT_SHARE_DATA,
87391
- DELETE_REASONS.DONT_WANT_TO_USE_APP,
87392
- DELETE_REASONS.OTHER_REASON
87393
- ];
87394
- const NON_CONECTED_REASONS = [
87395
- DELETE_REASONS.UNABLE_CONNECT_ACCOUNT,
87396
- DELETE_REASONS.ACCOUNT_INFORMATION_OLD,
87397
- DELETE_REASONS.DONT_WANT_ACCOUNT_CONNECTED,
87398
- DELETE_REASONS.OTHER_REASON
87399
- ];
87400
87400
 
87401
87401
  const ConnectNavigationHeader = (props) => {
87402
87402
  const goBackButtonContainerRef = useRef();
@@ -88069,12 +88069,8 @@ const frCa = {
88069
88069
  "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.",
88070
88070
  Ok: Ok$1,
88071
88071
  Disconnect: Disconnect$1,
88072
- "I no longer use this account or it’s not mine": "Je n’utilise plus ce compte ou il ne m’appartient pas",
88073
- "I don’t want to share my data": "Je ne veux pas partager mes données",
88074
88072
  "The account information is old or inaccurate": "Les informations de compte sont anciennes ou erronées",
88075
88073
  "I am unable to connect this account here": "Je n’arrive pas à connecter ce compte",
88076
- "I don’t want to use this app": "Je ne veux pas utiliser cette application",
88077
- "I don’t want this account connected here": "Je ne veux pas que mon compte soit connecté ici",
88078
88074
  Other: Other$1,
88079
88075
  "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.",
88080
88076
  "Loading ...": "Chargement ...",
@@ -88250,8 +88246,6 @@ const frCa = {
88250
88246
  "%1 added": "%1 ajouté",
88251
88247
  "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.",
88252
88248
  "Oops! Verification must be enabled to use this feature.": "Oops! La vérification doit être activée pour utiliser cette fonctionnalité.",
88253
- "We’re working on it. Stick around!": "Nous y travaillons. Rester dans les parages!",
88254
- "We’re getting closer. Hang tight!": "Nous nous rapprochons. Tenir fermement!",
88255
88249
  "Still working. Stay with us!": "Nous nous rapprochons. Tenir fermement!",
88256
88250
  "Syncing your information.": "Synchronisation de vos informations.",
88257
88251
  "Getting verification data.": "Obtenir des données de vérification.",
@@ -88460,6 +88454,13 @@ const frCa = {
88460
88454
  "Connection not supported by %1": "Connexion non prise en charge par %1",
88461
88455
  "%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.",
88462
88456
  UNAVAILABLE: UNAVAILABLE$1,
88457
+ "powered by ": "alimenté par ",
88458
+ "I no longer use this account or it's not mine": "Je n'utilise plus ce compte ou ce n'est pas le mien",
88459
+ "I don't want to share my data": "Je ne veux pas partager mes données",
88460
+ "I don't want to use this app": "Je ne veux pas utiliser cette application",
88461
+ "I don't want this account connected here": "Je ne veux pas ce compte connecté ici",
88462
+ "We're working on it. Stick around!": "Nous y travaillons. Rester dans les parages!",
88463
+ "We're getting closer. Hang tight!": "Nous nous rapprochons. Tenir fermement!",
88463
88464
  "connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "En cliquant sur Continuer, vous acceptez la ",
88464
88465
  "connect/disclosure/policy/link\u0004MX Privacy Policy.": "Politique de confidentialité de MX.",
88465
88466
  "connect/disclosure/policy/link\u0004MX Privacy Policy": "Politique de confidentialité de MX.",
@@ -88569,12 +88570,8 @@ const es = {
88569
88570
  "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.",
88570
88571
  Ok: Ok,
88571
88572
  Disconnect: Disconnect,
88572
- "I no longer use this account or it’s not mine": "Ya no uso esta cuenta o no es mía",
88573
- "I don’t want to share my data": "No quiero compartir mis datos",
88574
88573
  "The account information is old or inaccurate": "La información de la cuenta es antigua o inexacta",
88575
88574
  "I am unable to connect this account here": "No puedo conectar esta cuenta aquí",
88576
- "I don’t want to use this app": "No quiero usar esta aplicación",
88577
- "I don’t want this account connected here": "No quiero que esta cuenta esté conectada aquí",
88578
88575
  Other: Other,
88579
88576
  "Add account with %1": "Agregar cuenta con %1",
88580
88577
  "You are leaving": "Está saliendo",
@@ -88757,8 +88754,6 @@ const es = {
88757
88754
  "%1 added": "%1 añadido",
88758
88755
  "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.",
88759
88756
  "Oops! Verification must be enabled to use this feature.": "¡Oh, no! La verificación debe estar habilitada para usar esta función.",
88760
- "We’re working on it. Stick around!": "Estamos trabajando en ello. ¡Quedarse!",
88761
- "We’re getting closer. Hang tight!": "Nos estamos acercando. ¡Aguanta!",
88762
88757
  "Still working. Stay with us!": "Aún trabajando. ¡Quédate con nosotros!",
88763
88758
  "Syncing your information.": "Aún trabajando. ¡Quédate con nosotros!",
88764
88759
  "Getting verification data.": "Obtener datos de verificación.",
@@ -88969,6 +88964,13 @@ const es = {
88969
88964
  "Connection not supported by %1": "Conexión no compatible con %1",
88970
88965
  "%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.",
88971
88966
  UNAVAILABLE: UNAVAILABLE,
88967
+ "powered by ": "desarrollado por ",
88968
+ "I no longer use this account or it's not mine": "Ya no uso esta cuenta o no es mía",
88969
+ "I don't want to share my data": "No quiero compartir mis datos",
88970
+ "I don't want to use this app": "No quiero usar esta aplicación",
88971
+ "I don't want this account connected here": "No quiero esta cuenta conectada aquí",
88972
+ "We're working on it. Stick around!": "Estamos trabajando en ello. ¡Quedarse!",
88973
+ "We're getting closer. Hang tight!": "Nos estamos acercando. ¡Aguanta!",
88972
88974
  "connect/disclosure/button\u0004Continue": "Continuar",
88973
88975
  "connect/disclosure/policy/text\u0004By clicking Continue, you agree to the ": "Al hacer clic en Continuar, tu aceptas la ",
88974
88976
  "connect/disclosure/policy/link\u0004MX Privacy Policy.": "Política de privacidad de Money Experience.",