@eldrajs/theme-cli 0.2.4 → 0.2.6
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 +4 -0
- package/README.md +6 -0
- package/dist/cli.js +8 -2
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -1
- package/dist/{validate-FjQ-5_ne.js → validate-CC6Mp5i_.js} +2 -1
- package/package.json +3 -3
- package/template/.eldra/block-types.d.ts +1 -1
- package/template/.eldra/manifest.json +30 -2
- package/template/.eldra/previews.json +35 -35
- package/template/README.md +3 -1
- package/template/app/app.vue +16 -3
- package/template/app/assets/main.css +13 -15
- package/template/app/components/ui/UiImage.vue +29 -17
- package/template/app/components/ui/__tests__/UiImage.spec.ts +24 -15
- package/template/app/composables/useStorefront.ts +7 -2
- package/template/app/pages/[...slug].vue +1 -1
- package/template/app/plugins/eldra-storefront.ts +9 -0
- package/template/app/storefront/analytics.ts +15 -7
- package/template/app/storefront/cart.ts +228 -51
- package/template/app/storefront/commerce.ts +8 -2
- package/template/app/storefront/currency.ts +205 -0
- package/template/app/storefront/demo.ts +10 -2
- package/template/app/storefront/feedback.ts +2 -0
- package/template/app/storefront/gateway.ts +153 -35
- package/template/app/storefront/money.ts +6 -18
- package/template/app/storefront/structuredData.ts +16 -5
- package/template/app/storefront/toProductCard.ts +14 -14
- package/template/app/storefront/types.ts +13 -0
- package/template/app/storefront/volatile.ts +4 -0
- package/template/app/utils/seoInput.ts +4 -3
- package/template/blocks/announcement-bar/Block.vue +3 -2
- package/template/blocks/announcement-bar/__tests__/Block.spec.ts +1 -1
- package/template/blocks/announcement-bar/preview.png +0 -0
- package/template/blocks/article/Block.vue +3 -4
- package/template/blocks/article/preview.png +0 -0
- package/template/blocks/article-list/Block.vue +18 -9
- package/template/blocks/article-list/preview.png +0 -0
- package/template/blocks/breadcrumbs/Block.vue +1 -1
- package/template/blocks/breadcrumbs/__tests__/Block.spec.ts +9 -9
- package/template/blocks/breadcrumbs/preview.png +0 -0
- package/template/blocks/cart/Block.vue +42 -23
- package/template/blocks/cart/__tests__/Block.spec.ts +2 -3
- package/template/blocks/cart/__tests__/loadFailed.spec.ts +135 -0
- package/template/blocks/cart/__tests__/notSold.spec.ts +109 -0
- package/template/blocks/cart/parts/CartLines.vue +16 -3
- package/template/blocks/cart/parts/CheckoutButton.vue +45 -0
- package/template/blocks/cart/parts/LoadFailed.vue +37 -0
- package/template/blocks/cart/parts/NotSoldNotice.vue +69 -0
- package/template/blocks/cart/parts/ShippingBar.vue +1 -1
- package/template/blocks/cart/parts/Summary.vue +14 -30
- package/template/blocks/cart/parts/notSold.ts +19 -0
- package/template/blocks/cart/preview.png +0 -0
- package/template/blocks/collection-grid/Block.vue +26 -16
- package/template/blocks/collection-grid/__tests__/Block.spec.ts +26 -14
- package/template/blocks/collection-grid/preview.png +0 -0
- package/template/blocks/collection-header/Block.vue +5 -5
- package/template/blocks/collection-header/preview.png +0 -0
- package/template/blocks/contact/Block.vue +1 -1
- package/template/blocks/contact/__tests__/Block.spec.ts +2 -2
- package/template/blocks/contact/preview.png +0 -0
- package/template/blocks/cta/Block.vue +16 -18
- package/template/blocks/cta/__tests__/Block.spec.ts +8 -12
- package/template/blocks/cta/preview.png +0 -0
- package/template/blocks/faq/Block.vue +3 -13
- package/template/blocks/faq/__tests__/Block.spec.ts +2 -2
- package/template/blocks/faq/preview.png +0 -0
- package/template/blocks/feature-grid/Block.vue +1 -1
- package/template/blocks/feature-grid/__tests__/Block.spec.ts +1 -1
- package/template/blocks/feature-grid/preview.png +0 -0
- package/template/blocks/footer/Block.vue +33 -55
- package/template/blocks/footer/__tests__/Block.spec.ts +5 -5
- package/template/blocks/footer/preview.png +0 -0
- package/template/blocks/form/Block.vue +1 -1
- package/template/blocks/form/preview.png +0 -0
- package/template/blocks/gallery/__tests__/Block.spec.ts +1 -1
- package/template/blocks/gallery/preview.png +0 -0
- package/template/blocks/hero/Block.vue +8 -11
- package/template/blocks/hero/__tests__/Block.spec.ts +9 -7
- package/template/blocks/hero/preview.png +0 -0
- package/template/blocks/image/Block.vue +4 -4
- package/template/blocks/image/__tests__/Block.spec.ts +5 -6
- package/template/blocks/image/preview.png +0 -0
- package/template/blocks/logo-cloud/__tests__/Block.spec.ts +1 -1
- package/template/blocks/logo-cloud/preview.png +0 -0
- package/template/blocks/navigation/Block.vue +55 -29
- package/template/blocks/navigation/__tests__/Block.spec.ts +22 -20
- package/template/blocks/navigation/preview.png +0 -0
- package/template/blocks/newsletter/__tests__/Block.spec.ts +1 -1
- package/template/blocks/newsletter/preview.png +0 -0
- package/template/blocks/order-status/Block.vue +23 -15
- package/template/blocks/order-status/__tests__/Block.spec.ts +1 -2
- package/template/blocks/order-status/preview.png +0 -0
- package/template/blocks/pricing-table/__tests__/Block.spec.ts +1 -1
- package/template/blocks/pricing-table/preview.png +0 -0
- package/template/blocks/product-carousel/Block.vue +11 -8
- package/template/blocks/product-carousel/__tests__/Block.spec.ts +26 -8
- package/template/blocks/product-carousel/preview.png +0 -0
- package/template/blocks/product-detail/Block.vue +54 -18
- package/template/blocks/product-detail/__tests__/Block.spec.ts +79 -2
- package/template/blocks/product-detail/parts/Gallery.vue +1 -1
- package/template/blocks/product-detail/preview.png +0 -0
- package/template/blocks/quote/Block.vue +1 -1
- package/template/blocks/quote/__tests__/Block.spec.ts +7 -4
- package/template/blocks/quote/preview.png +0 -0
- package/template/blocks/rich-text/preview.png +0 -0
- package/template/blocks/search/Block.vue +10 -4
- package/template/blocks/search/PopularChips.vue +1 -1
- package/template/blocks/search/TypeSection.vue +8 -2
- package/template/blocks/search/preview.png +0 -0
- package/template/blocks/search/results.ts +5 -2
- package/template/blocks/split-content/Block.vue +2 -3
- package/template/blocks/split-content/__tests__/Block.spec.ts +2 -2
- package/template/blocks/split-content/preview.png +0 -0
- package/template/blocks/stats/__tests__/Block.spec.ts +1 -1
- package/template/blocks/stats/preview.png +0 -0
- package/template/blocks/tabs/Block.vue +4 -5
- package/template/blocks/tabs/__tests__/Block.spec.ts +2 -2
- package/template/blocks/tabs/preview.png +0 -0
- package/template/blocks/team/preview.png +0 -0
- package/template/blocks/testimonials/Block.vue +10 -9
- package/template/blocks/testimonials/__tests__/Block.spec.ts +1 -1
- package/template/blocks/testimonials/preview.png +0 -0
- package/template/blocks/timeline/__tests__/Block.spec.ts +2 -2
- package/template/blocks/timeline/preview.png +0 -0
- package/template/blocks/trust-strip/Block.vue +1 -1
- package/template/blocks/trust-strip/__tests__/Block.spec.ts +1 -1
- package/template/blocks/trust-strip/preview.png +0 -0
- package/template/blocks/video-embed/Block.vue +3 -3
- package/template/blocks/video-embed/__tests__/Block.spec.ts +1 -1
- package/template/blocks/video-embed/preview.png +0 -0
- package/template/blocks/wishlist/Block.vue +6 -2
- package/template/blocks/wishlist/preview.png +0 -0
- package/template/i18n/en-US.json +19 -3
- package/template/i18n/is-IS.json +19 -3
- package/template/nuxt.config.ts +5 -4
- package/template/package.json +1 -0
- package/template/stories/pages/article.stories.ts +2 -3
- package/template/stories/pages/cart.stories.ts +2 -3
- package/template/stories/pages/category.stories.ts +2 -3
- package/template/stories/pages/collection.stories.ts +2 -3
- package/template/stories/pages/home.stories.ts +2 -3
- package/template/stories/pages/product.stories.ts +3 -4
- package/template/stories/pages/products.stories.ts +2 -3
- package/template/stories/pages/search.stories.ts +2 -3
- package/template/stories/pages/wishlist.stories.ts +2 -3
- package/template/test/carouselKeyboard.spec.ts +2 -2
- package/template/test/carouselRing.browser.spec.ts +2 -2
- package/template/test/carouselSlideWidth.browser.spec.ts +9 -9
- package/template/test/currencyPicker.spec.ts +66 -0
- package/template/test/eldraIcon.spec.ts +1 -1
- package/template/test/mainCss.spec.ts +7 -0
- package/template/test/pages/article.spec.ts +5 -5
- package/template/test/pages/collection.spec.ts +5 -5
- package/template/test/pages/hydration.spec.ts +10 -10
- package/template/test/prerenderRefresh.browser.spec.ts +1 -1
- package/template/test/seoInput.spec.ts +22 -0
- package/template/test/storefront/analytics.spec.ts +15 -0
- package/template/test/storefront/cart.spec.ts +4 -4
- package/template/test/storefront/currency.spec.ts +549 -0
- package/template/test/storefront/currencyStore.spec.ts +845 -0
- package/template/test/storefront/gateway.spec.ts +22 -0
- package/template/test/storefront/money.spec.ts +2 -8
- package/template/test/storefront/structuredData.spec.ts +45 -0
- package/template/test/storefront/toProductCard.spec.ts +1 -1
- package/template/test/storefront/volatile.spec.ts +11 -0
- package/template/test/support/mountPage.ts +2 -3
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { computed, ref, watch, type ComputedRef, type Ref } from 'vue';
|
|
2
|
+
import { createCurrencyPreference, type EldraCurrencyPreference } from '@eldrajs/sdk';
|
|
3
|
+
import { resolveVisitorCurrency, VISITOR_COUNTRY_PATH } from '@eldrajs/theme-core';
|
|
4
|
+
import type { CartStore } from './cart';
|
|
5
|
+
import type { StorefrontFailure } from './feedback';
|
|
6
|
+
|
|
7
|
+
/** The visitor's currency, derived: the cart's, else the preference, else `base` (docs/starter-kit.md, "Currencies"). */
|
|
8
|
+
export interface CurrencyStore {
|
|
9
|
+
/** The store's own currency, or `undefined` when it publishes none. */
|
|
10
|
+
base: string | undefined;
|
|
11
|
+
/** What the visitor may pick from, `base` first. One entry or none: no picker. */
|
|
12
|
+
offered: Ref<readonly string[]>;
|
|
13
|
+
/** The currency the site shows: `base` until `start` settles, then the cart's, the preference's or `base`. */
|
|
14
|
+
active: ComputedRef<string | undefined>;
|
|
15
|
+
/** `start` has settled. */
|
|
16
|
+
started: Ref<boolean>;
|
|
17
|
+
/** Prices on screen may still change currency: more than one is offered and `start` has not settled. */
|
|
18
|
+
pending: ComputedRef<boolean>;
|
|
19
|
+
/** A move of the cart is in flight or queued. */
|
|
20
|
+
busy: ComputedRef<boolean>;
|
|
21
|
+
/** The currency catalog reads ask for, or `undefined` to read in `base` exactly as the build did. */
|
|
22
|
+
requested: ComputedRef<string | undefined>;
|
|
23
|
+
/** Set when the visitor was moved off a currency, for a one-time notice. */
|
|
24
|
+
movedTo: Ref<string | null>;
|
|
25
|
+
/** A cart move that failed for another reason than the currency, for an error toast. */
|
|
26
|
+
failure: Ref<StorefrontFailure | null>;
|
|
27
|
+
/** The visitor's explicit choice. With a cart it moves the cart, last choice wins. */
|
|
28
|
+
choose(code: string): void;
|
|
29
|
+
chooseBase(): void;
|
|
30
|
+
/** Stops following other tabs; for a store made for one component (a demo, a story), not the app's. */
|
|
31
|
+
dispose(): void;
|
|
32
|
+
/** Reads the stored preference, else the visitor's country. Call once, after mount. */
|
|
33
|
+
start(country: () => Promise<string | null>): Promise<void>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const CURRENCY_NOT_SOLD = 'CART_CURRENCY_NOT_SOLD';
|
|
37
|
+
const CURRENCY_PREFERENCE_KEY = 'eldra.currency';
|
|
38
|
+
|
|
39
|
+
function refusedForCurrency(failure: StorefrontFailure | null): boolean {
|
|
40
|
+
return failure?.errorId === CURRENCY_NOT_SOLD;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** Builds the store over `cart`; the returned cart's `add` retries once when its currency is refused. */
|
|
44
|
+
export function createCurrencyStore(
|
|
45
|
+
commerce: { currency: string; currencies?: readonly string[] } | null,
|
|
46
|
+
cart: CartStore,
|
|
47
|
+
preference: EldraCurrencyPreference = createCurrencyPreference()
|
|
48
|
+
): { currency: CurrencyStore; cart: CartStore } {
|
|
49
|
+
const base = commerce?.currency;
|
|
50
|
+
const offered = ref<readonly string[]>(
|
|
51
|
+
base === undefined ? [] : (commerce?.currencies ?? [base])
|
|
52
|
+
);
|
|
53
|
+
const preferred = ref<string | null>(null);
|
|
54
|
+
const started = ref(false);
|
|
55
|
+
const movedTo = ref<string | null>(null);
|
|
56
|
+
const failure = ref<StorefrontFailure | null>(null);
|
|
57
|
+
|
|
58
|
+
const active = computed(() => {
|
|
59
|
+
if (!started.value) return base;
|
|
60
|
+
const own = cart.currency.value;
|
|
61
|
+
if (own !== undefined) return own;
|
|
62
|
+
return preferred.value !== null && offered.value.includes(preferred.value)
|
|
63
|
+
? preferred.value
|
|
64
|
+
: base;
|
|
65
|
+
});
|
|
66
|
+
const requested = computed(() => (active.value === base ? undefined : active.value));
|
|
67
|
+
const pending = computed(() => !started.value && offered.value.length > 1);
|
|
68
|
+
|
|
69
|
+
function withdraw(code: string): void {
|
|
70
|
+
if (code === base) return;
|
|
71
|
+
offered.value = offered.value.filter((offer) => offer !== code);
|
|
72
|
+
if (preference.read() === code) preference.forget();
|
|
73
|
+
if (preferred.value === code) preferred.value = null;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Moves go through the cart's own write queue, where a newer choice replaces a waiting one.
|
|
77
|
+
const busy = computed(() => cart.pending.value);
|
|
78
|
+
|
|
79
|
+
async function move(code: string, notice = false): Promise<void> {
|
|
80
|
+
const answer = await cart.setCurrency(code);
|
|
81
|
+
// A later choice replaced this one before it was sent.
|
|
82
|
+
if (answer === undefined) return;
|
|
83
|
+
if (answer === null) {
|
|
84
|
+
// No cart came of the work this choice waited behind: it is the preference.
|
|
85
|
+
if (hasNoCart()) {
|
|
86
|
+
preferred.value = code;
|
|
87
|
+
preference.remember(code);
|
|
88
|
+
} else if (cart.currency.value === code) {
|
|
89
|
+
preferred.value = code;
|
|
90
|
+
preference.remember(code);
|
|
91
|
+
if (notice) movedTo.value = code;
|
|
92
|
+
}
|
|
93
|
+
} else {
|
|
94
|
+
if (refusedForCurrency(answer)) withdraw(code);
|
|
95
|
+
failure.value = answer;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// A cart that is remembered but not read is still a cart; one without a currency (a demo) is not.
|
|
100
|
+
const hasNoCart = (): boolean =>
|
|
101
|
+
cart.loadState.value !== 'unloaded' && cart.currency.value === undefined;
|
|
102
|
+
|
|
103
|
+
const leavingDropped = (): boolean => {
|
|
104
|
+
const own = cart.currency.value;
|
|
105
|
+
return own !== undefined && base !== undefined && !offered.value.includes(own);
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
// A cart in a currency this build no longer offers is moved to the store's own; the watch fires on a change only, so a failed move is not retried in a loop.
|
|
109
|
+
watch([started, cart.currency], ([isStarted, own]) => {
|
|
110
|
+
if (!isStarted || own === undefined || base === undefined) return;
|
|
111
|
+
if (offered.value.includes(own)) return;
|
|
112
|
+
void move(base, true);
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
const onStorage = (event: StorageEvent): void => {
|
|
116
|
+
if (event.key !== CURRENCY_PREFERENCE_KEY) return;
|
|
117
|
+
preferred.value = event.newValue;
|
|
118
|
+
if (cart.currency.value !== undefined) void cart.reload();
|
|
119
|
+
};
|
|
120
|
+
const listens = typeof window !== 'undefined' && typeof window.addEventListener === 'function';
|
|
121
|
+
if (listens) window.addEventListener('storage', onStorage);
|
|
122
|
+
|
|
123
|
+
const currency: CurrencyStore = {
|
|
124
|
+
base,
|
|
125
|
+
offered,
|
|
126
|
+
active,
|
|
127
|
+
started,
|
|
128
|
+
pending,
|
|
129
|
+
busy,
|
|
130
|
+
requested,
|
|
131
|
+
movedTo,
|
|
132
|
+
failure,
|
|
133
|
+
choose(code) {
|
|
134
|
+
if (!offered.value.includes(code)) return;
|
|
135
|
+
// Only with no cart and nothing in flight is a choice just a preference; else it queues behind that work.
|
|
136
|
+
if (hasNoCart() && !cart.pending.value) {
|
|
137
|
+
preferred.value = code;
|
|
138
|
+
preference.remember(code);
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
void move(code);
|
|
142
|
+
},
|
|
143
|
+
dispose() {
|
|
144
|
+
if (listens) window.removeEventListener('storage', onStorage);
|
|
145
|
+
},
|
|
146
|
+
chooseBase() {
|
|
147
|
+
if (base !== undefined) currency.choose(base);
|
|
148
|
+
},
|
|
149
|
+
async start(country) {
|
|
150
|
+
let forgotten = false;
|
|
151
|
+
if (base !== undefined && offered.value.length > 1) {
|
|
152
|
+
const stored = preference.read();
|
|
153
|
+
if (stored !== null && offered.value.includes(stored)) {
|
|
154
|
+
if (preferred.value === null) preferred.value = stored;
|
|
155
|
+
} else {
|
|
156
|
+
if (stored !== null) preference.forget();
|
|
157
|
+
forgotten = stored !== null;
|
|
158
|
+
const visitorCountry = await country();
|
|
159
|
+
// A choice made during the lookup, or a cart, wins over the country.
|
|
160
|
+
if (cart.currency.value === undefined && preferred.value === null) {
|
|
161
|
+
const fromCountry = resolveVisitorCurrency({
|
|
162
|
+
base,
|
|
163
|
+
offered: offered.value,
|
|
164
|
+
country: visitorCountry,
|
|
165
|
+
});
|
|
166
|
+
if (fromCountry !== base) preferred.value = fromCountry;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
started.value = true;
|
|
171
|
+
if (forgotten) movedTo.value = active.value ?? null;
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
const followingCart: CartStore = {
|
|
176
|
+
...cart,
|
|
177
|
+
async add(input) {
|
|
178
|
+
// The visitor's next cart action tries again to leave a currency the store no longer offers.
|
|
179
|
+
if (leavingDropped() && base !== undefined) await move(base, true);
|
|
180
|
+
const hadCart = cart.currency.value !== undefined;
|
|
181
|
+
const sentIn = active.value;
|
|
182
|
+
const answer = await cart.add(input);
|
|
183
|
+
// The store checks the currency only when the add creates the cart.
|
|
184
|
+
if (hadCart || !refusedForCurrency(answer) || sentIn === undefined || sentIn === base) {
|
|
185
|
+
return answer;
|
|
186
|
+
}
|
|
187
|
+
withdraw(sentIn);
|
|
188
|
+
if (active.value !== sentIn) movedTo.value = active.value ?? null;
|
|
189
|
+
return cart.add(input);
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
return { currency, cart: followingCart };
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/** The visitor's country from the site's own edge route; `null` on any failure or after `timeoutMs`, so a slow edge never holds Add to cart. */
|
|
197
|
+
export function fetchVisitorCountry(timeoutMs = 1500): Promise<string | null> {
|
|
198
|
+
const controller = new AbortController();
|
|
199
|
+
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
200
|
+
return fetch(VISITOR_COUNTRY_PATH, { signal: controller.signal })
|
|
201
|
+
.then((response) => (response.ok ? response.json() : null))
|
|
202
|
+
.then((body: { country?: string | null } | null) => body?.country ?? null)
|
|
203
|
+
.catch(() => null)
|
|
204
|
+
.finally(() => clearTimeout(timer));
|
|
205
|
+
}
|
|
@@ -2,6 +2,7 @@ import { nextTick, reactive, ref, watch, type Ref } from 'vue';
|
|
|
2
2
|
import { starterFormSeeds } from '../formSeeds';
|
|
3
3
|
import { localizeFormDefinition } from './forms';
|
|
4
4
|
import { createCartStore, type CartOps, type CartSnapshot } from './cart';
|
|
5
|
+
import { createCurrencyStore } from './currency';
|
|
5
6
|
import { createHistoryStore, createWishlistStore } from './history';
|
|
6
7
|
import { roundMoney } from './money';
|
|
7
8
|
import { optionDisplayType } from './options';
|
|
@@ -1342,12 +1343,19 @@ export function createDemoStorefront(options: DemoStorefrontOptions = {}): Store
|
|
|
1342
1343
|
},
|
|
1343
1344
|
};
|
|
1344
1345
|
|
|
1346
|
+
const commerce = options.commerce === undefined ? DEMO_COMMERCE : options.commerce;
|
|
1347
|
+
const { currency, cart } = createCurrencyStore(
|
|
1348
|
+
commerce,
|
|
1349
|
+
createCartStore(createDemoCartOps(options.cartLines ?? []))
|
|
1350
|
+
);
|
|
1351
|
+
|
|
1345
1352
|
return {
|
|
1346
1353
|
ready: ref(true),
|
|
1347
|
-
commerce
|
|
1354
|
+
commerce,
|
|
1348
1355
|
route,
|
|
1349
1356
|
catalog,
|
|
1350
|
-
cart
|
|
1357
|
+
cart,
|
|
1358
|
+
currency,
|
|
1351
1359
|
search,
|
|
1352
1360
|
orders,
|
|
1353
1361
|
forms,
|
|
@@ -75,6 +75,8 @@ const MESSAGE_BY_ERROR_ID: Record<string, MessageKey> = {
|
|
|
75
75
|
// store has moved on from, and reloading is the one thing that fixes it.
|
|
76
76
|
CART_NOT_FOUND: 'storefront.cartOutOfDate',
|
|
77
77
|
CART_ITEM_NOT_FOUND: 'storefront.cartOutOfDate',
|
|
78
|
+
// Refused in the browser: the cart could not be read, so nothing was sent.
|
|
79
|
+
CART_NOT_LOADED: 'cart.loadFailed',
|
|
78
80
|
};
|
|
79
81
|
|
|
80
82
|
/**
|