@asteby/storefront 0.12.0 → 0.13.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.d.cts CHANGED
@@ -605,7 +605,7 @@ declare function productAvailability(product: Pick<Product, 'variants' | 'availa
605
605
  */
606
606
 
607
607
  type PaymentLocale = AvailabilityLocale;
608
- type PaymentMessageKey = `decline.${DeclineCode}` | 'state.loading' | 'state.processing' | 'state.approved' | 'state.in_review' | 'state.voucher' | 'state.challenge' | 'state.expired' | 'state.cancelled' | 'state.redirect' | 'state.fallback' | 'error.network' | 'error.card_data' | 'error.price_mismatch' | 'error.payment_in_progress' | 'error.expired' | 'error.too_many_attempts' | 'error.generic' | 'action.retry' | 'action.try_again' | 'action.pay' | 'action.cancel' | 'voucher.title' | 'voucher.point' | 'voucher.reference' | 'voucher.amount' | 'voucher.expires' | 'voucher.clabe' | 'voucher.barcode' | 'voucher.open' | 'voucher.email' | 'form.label' | 'challenge.title';
608
+ type PaymentMessageKey = `decline.${DeclineCode}` | 'state.loading' | 'state.processing' | 'state.approved' | 'state.in_review' | 'state.voucher' | 'state.challenge' | 'state.expired' | 'state.cancelled' | 'state.redirect' | 'state.fallback' | 'error.network' | 'error.card_data' | 'error.price_mismatch' | 'error.payment_in_progress' | 'error.expired' | 'error.too_many_attempts' | 'error.generic' | 'action.retry' | 'action.try_again' | 'action.pay' | 'action.cancel' | 'voucher.title' | 'voucher.point' | 'voucher.reference' | 'voucher.amount' | 'voucher.expires' | 'voucher.clabe' | 'voucher.barcode' | 'voucher.open' | 'voucher.email' | 'form.label' | 'challenge.title' | 'challenge.escape' | 'challenge.escape_hint' | 'challenge.left';
609
609
  type PaymentMessages = Record<PaymentMessageKey, string>;
610
610
  /** Catalog for a locale (`es-MX` -> es, `en-US` -> en) with the shop's per-key overrides applied. */
611
611
  declare function paymentMessages(locale: string | null | undefined, overrides?: Partial<PaymentMessages> | null): PaymentMessages;
package/dist/index.d.ts CHANGED
@@ -605,7 +605,7 @@ declare function productAvailability(product: Pick<Product, 'variants' | 'availa
605
605
  */
606
606
 
607
607
  type PaymentLocale = AvailabilityLocale;
608
- type PaymentMessageKey = `decline.${DeclineCode}` | 'state.loading' | 'state.processing' | 'state.approved' | 'state.in_review' | 'state.voucher' | 'state.challenge' | 'state.expired' | 'state.cancelled' | 'state.redirect' | 'state.fallback' | 'error.network' | 'error.card_data' | 'error.price_mismatch' | 'error.payment_in_progress' | 'error.expired' | 'error.too_many_attempts' | 'error.generic' | 'action.retry' | 'action.try_again' | 'action.pay' | 'action.cancel' | 'voucher.title' | 'voucher.point' | 'voucher.reference' | 'voucher.amount' | 'voucher.expires' | 'voucher.clabe' | 'voucher.barcode' | 'voucher.open' | 'voucher.email' | 'form.label' | 'challenge.title';
608
+ type PaymentMessageKey = `decline.${DeclineCode}` | 'state.loading' | 'state.processing' | 'state.approved' | 'state.in_review' | 'state.voucher' | 'state.challenge' | 'state.expired' | 'state.cancelled' | 'state.redirect' | 'state.fallback' | 'error.network' | 'error.card_data' | 'error.price_mismatch' | 'error.payment_in_progress' | 'error.expired' | 'error.too_many_attempts' | 'error.generic' | 'action.retry' | 'action.try_again' | 'action.pay' | 'action.cancel' | 'voucher.title' | 'voucher.point' | 'voucher.reference' | 'voucher.amount' | 'voucher.expires' | 'voucher.clabe' | 'voucher.barcode' | 'voucher.open' | 'voucher.email' | 'form.label' | 'challenge.title' | 'challenge.escape' | 'challenge.escape_hint' | 'challenge.left';
609
609
  type PaymentMessages = Record<PaymentMessageKey, string>;
610
610
  /** Catalog for a locale (`es-MX` -> es, `en-US` -> en) with the shop's per-key overrides applied. */
611
611
  declare function paymentMessages(locale: string | null | undefined, overrides?: Partial<PaymentMessages> | null): PaymentMessages;
package/dist/index.js CHANGED
@@ -614,7 +614,10 @@ var ES = {
614
614
  "voucher.open": "Ver o imprimir ficha",
615
615
  "voucher.email": "Tambi\xE9n te la enviamos a tu correo.",
616
616
  "form.label": "Datos de tu tarjeta",
617
- "challenge.title": "Verificaci\xF3n de tu banco"
617
+ "challenge.title": "Verificaci\xF3n de tu banco",
618
+ "challenge.escape": "Cancelar y volver al pago",
619
+ "challenge.escape_hint": "\xBFTarda demasiado? Puedes cerrar la verificaci\xF3n. Si ya la aprobaste en tu banco, el pago a\xFAn puede completarse: te confirmamos aqu\xED antes de dejarte pagar de nuevo.",
620
+ "challenge.left": "Cerraste la verificaci\xF3n. Estamos confirmando con tu banco si el pago se complet\xF3; no vuelvas a pagar todav\xEDa."
618
621
  };
619
622
  var EN = {
620
623
  "decline.insufficient_funds": "Your card has insufficient funds. Try another card or pay in cash.",
@@ -658,7 +661,10 @@ var EN = {
658
661
  "voucher.open": "View or print voucher",
659
662
  "voucher.email": "We also emailed it to you.",
660
663
  "form.label": "Your card details",
661
- "challenge.title": "Your bank verification"
664
+ "challenge.title": "Your bank verification",
665
+ "challenge.escape": "Cancel and go back to payment",
666
+ "challenge.escape_hint": "Taking too long? You can close the verification. If you already approved it with your bank the payment may still go through: we confirm here before letting you pay again.",
667
+ "challenge.left": "You closed the verification. We are checking with your bank whether the payment went through; do not pay again yet."
662
668
  };
663
669
  var CATALOG = { es: ES, en: EN };
664
670
  function paymentMessages(locale, overrides) {