@reblu/site-blocks 0.22.0 → 0.23.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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @reblu/site-blocks
2
2
 
3
+ ## 0.23.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f2ed9e2: Default Spanish messages for the new checkout `ShopErrorCode`s (REB-1197, REB-1198): `PICKUP_UNAVAILABLE`, `PICKUP_LOCATION_INVALID`, `SHIPPING_ADDRESS_REQUIRED`, `ORDER_TOO_HEAVY`, `TERMS_NOT_ACCEPTED`, `TERMS_VERSION_CHANGED` and `DELIVERY_UNAVAILABLE`, in `DEFAULT_SHOP_ERROR_MESSAGES` (override any of them with `getShopErrorMessage`'s `overrides`).
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [f2ed9e2]
12
+ - @reblu/site-contracts@1.23.0
13
+
3
14
  ## 0.22.0
4
15
 
5
16
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -125,7 +125,17 @@ var DEFAULT_SHOP_ERROR_MESSAGES = {
125
125
  INVOICING_NOT_READY: "No se puede completar la compra en este momento. Int\xE9ntalo m\xE1s tarde.",
126
126
  FULL_INVOICE_UNAVAILABLE: "Esta tienda no emite facturas completas: contin\xFAa sin solicitarla.",
127
127
  // REB-912 — the code used up its total uses; refused before any payment.
128
- DISCOUNT_LIMIT_REACHED: "Este c\xF3digo ya ha alcanzado su l\xEDmite de usos"
128
+ DISCOUNT_LIMIT_REACHED: "Este c\xF3digo ya ha alcanzado su l\xEDmite de usos",
129
+ // REB-1197 — delivery refusals before any payment.
130
+ PICKUP_UNAVAILABLE: "La recogida no est\xE1 disponible en esta tienda. Elige el env\xEDo a domicilio.",
131
+ PICKUP_LOCATION_INVALID: "El punto de recogida elegido ya no est\xE1 disponible. Elige otro.",
132
+ SHIPPING_ADDRESS_REQUIRED: "Indica la direcci\xF3n de env\xEDo para recibir tu pedido.",
133
+ ORDER_TOO_HEAVY: "Tu pedido supera el peso m\xE1ximo. Reduce alguna cantidad o divide la compra.",
134
+ // REB-1198 — terms acceptance, before any payment.
135
+ TERMS_NOT_ACCEPTED: "Para continuar, acepta las condiciones generales de contrataci\xF3n.",
136
+ TERMS_VERSION_CHANGED: "Las condiciones de contrataci\xF3n se han actualizado. Rev\xEDsalas y vuelve a aceptarlas.",
137
+ // Owner, 2-Nov — no home delivery nor pickup for a cart that ships.
138
+ DELIVERY_UNAVAILABLE: "Ahora mismo no podemos entregar productos f\xEDsicos. Int\xE9ntalo m\xE1s tarde o contacta con la tienda."
129
139
  };
130
140
  var DEFAULT_SHOP_ERROR_FALLBACK_MESSAGE = "No se ha podido completar la operaci\xF3n. Int\xE9ntalo de nuevo.";
131
141
  function getShopErrorMessage(code, overrides, fallback = DEFAULT_SHOP_ERROR_FALLBACK_MESSAGE) {