basklee-nuxt 0.9.15 → 0.9.16
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basklee-nuxt",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.16",
|
|
4
4
|
"description": "Nuxt 4 storefront for your Basklee marketplace: setup CLI, server API gateway, typed store and ready-made catalog, cart, checkout and account components in English, Russian and Spanish, plus an Android app build. Powered by Basklee: https://basklee.com",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,6 +60,8 @@ export interface ICartReceipt {
|
|
|
60
60
|
payment: IPaymentMethod | undefined;
|
|
61
61
|
address: ICartAddress | null;
|
|
62
62
|
shipments: ICartMemory['shipments'];
|
|
63
|
+
/** The delivery price was an estimate: the backend makes no invoice until the shop confirms it, so nothing is paid yet. */
|
|
64
|
+
estimate: boolean;
|
|
63
65
|
}
|
|
64
66
|
const cartKey: InjectionKey<ReturnType<typeof useBaskleeCart>> =
|
|
65
67
|
Symbol('cart');
|
|
@@ -488,6 +490,7 @@ export function useBaskleeCart(options: IBaskleeCartOptions = {}) {
|
|
|
488
490
|
),
|
|
489
491
|
address: summary?.cart_address ?? null,
|
|
490
492
|
shipments: memory?.shipments ?? [],
|
|
493
|
+
estimate: Boolean(summary?.prices?.delivery_price_is_estimate),
|
|
491
494
|
};
|
|
492
495
|
keepCartMemory(summary?.id, undefined);
|
|
493
496
|
memory = undefined;
|
|
@@ -147,6 +147,8 @@ const en = {
|
|
|
147
147
|
receiptToPay: 'To pay',
|
|
148
148
|
receiptOnReceipt: 'To pay on receipt',
|
|
149
149
|
receiptFromWallet: 'Paid from your wallet',
|
|
150
|
+
receiptFromWalletLater: 'Paid from your wallet once the shop confirms the delivery price',
|
|
151
|
+
receiptToPayLater: 'To pay once the shop confirms the delivery price',
|
|
150
152
|
receiptExpected: 'Expected',
|
|
151
153
|
currentDelivery: 'Current',
|
|
152
154
|
pendingDelivery: 'Not confirmed yet',
|
|
@@ -313,6 +315,8 @@ const ru: typeof en = {
|
|
|
313
315
|
receiptToPay: 'К оплате',
|
|
314
316
|
receiptOnReceipt: 'К оплате при получении',
|
|
315
317
|
receiptFromWallet: 'Оплачено из кошелька',
|
|
318
|
+
receiptFromWalletLater: 'Спишется из кошелька, когда магазин подтвердит стоимость доставки',
|
|
319
|
+
receiptToPayLater: 'К оплате, когда магазин подтвердит стоимость доставки',
|
|
316
320
|
receiptExpected: 'Ожидается',
|
|
317
321
|
currentDelivery: 'Сейчас',
|
|
318
322
|
pendingDelivery: 'Ещё не подтверждено',
|
|
@@ -481,6 +485,8 @@ const es: typeof en = {
|
|
|
481
485
|
receiptToPay: 'A pagar',
|
|
482
486
|
receiptOnReceipt: 'A pagar al recibir',
|
|
483
487
|
receiptFromWallet: 'Pagado con tu monedero',
|
|
488
|
+
receiptFromWalletLater: 'Se pagará con tu monedero cuando la tienda confirme el coste del envío',
|
|
489
|
+
receiptToPayLater: 'A pagar cuando la tienda confirme el coste del envío',
|
|
484
490
|
receiptExpected: 'Entrega prevista',
|
|
485
491
|
currentDelivery: 'Actual',
|
|
486
492
|
pendingDelivery: 'Sin confirmar todavía',
|