@eldrajs/theme-cli 0.2.5 → 0.2.7

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.
Files changed (92) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/package.json +3 -3
  3. package/template/.eldra/block-types.d.ts +1 -1
  4. package/template/.eldra/manifest.json +32 -2
  5. package/template/.eldra/previews.json +35 -35
  6. package/template/app/app.vue +15 -0
  7. package/template/app/composables/useStorefront.ts +7 -2
  8. package/template/app/plugins/eldra-storefront.ts +9 -0
  9. package/template/app/storefront/analytics.ts +15 -7
  10. package/template/app/storefront/cart.ts +228 -51
  11. package/template/app/storefront/commerce.ts +12 -2
  12. package/template/app/storefront/currency.ts +272 -0
  13. package/template/app/storefront/demo.ts +10 -2
  14. package/template/app/storefront/feedback.ts +3 -0
  15. package/template/app/storefront/gateway.ts +153 -35
  16. package/template/app/storefront/money.ts +6 -18
  17. package/template/app/storefront/structuredData.ts +16 -5
  18. package/template/app/storefront/toProductCard.ts +14 -14
  19. package/template/app/storefront/types.ts +13 -0
  20. package/template/app/storefront/volatile.ts +4 -0
  21. package/template/app/utils/seoInput.ts +4 -3
  22. package/template/blocks/announcement-bar/preview.png +0 -0
  23. package/template/blocks/article/preview.png +0 -0
  24. package/template/blocks/article-list/preview.png +0 -0
  25. package/template/blocks/breadcrumbs/preview.png +0 -0
  26. package/template/blocks/cart/Block.vue +41 -22
  27. package/template/blocks/cart/__tests__/Block.spec.ts +2 -3
  28. package/template/blocks/cart/__tests__/loadFailed.spec.ts +135 -0
  29. package/template/blocks/cart/__tests__/notSold.spec.ts +150 -0
  30. package/template/blocks/cart/parts/CartLines.vue +14 -2
  31. package/template/blocks/cart/parts/CheckoutButton.vue +45 -0
  32. package/template/blocks/cart/parts/LoadFailed.vue +37 -0
  33. package/template/blocks/cart/parts/NotSoldNotice.vue +74 -0
  34. package/template/blocks/cart/parts/Summary.vue +9 -21
  35. package/template/blocks/cart/parts/notSold.ts +19 -0
  36. package/template/blocks/cart/preview.png +0 -0
  37. package/template/blocks/collection-grid/Block.vue +15 -2
  38. package/template/blocks/collection-grid/__tests__/Block.spec.ts +14 -0
  39. package/template/blocks/collection-grid/preview.png +0 -0
  40. package/template/blocks/collection-header/preview.png +0 -0
  41. package/template/blocks/contact/preview.png +0 -0
  42. package/template/blocks/cta/preview.png +0 -0
  43. package/template/blocks/faq/preview.png +0 -0
  44. package/template/blocks/feature-grid/preview.png +0 -0
  45. package/template/blocks/footer/Block.vue +20 -45
  46. package/template/blocks/footer/preview.png +0 -0
  47. package/template/blocks/form/preview.png +0 -0
  48. package/template/blocks/gallery/preview.png +0 -0
  49. package/template/blocks/hero/preview.png +0 -0
  50. package/template/blocks/image/preview.png +0 -0
  51. package/template/blocks/logo-cloud/preview.png +0 -0
  52. package/template/blocks/navigation/Block.vue +39 -3
  53. package/template/blocks/navigation/preview.png +0 -0
  54. package/template/blocks/newsletter/preview.png +0 -0
  55. package/template/blocks/order-status/Block.vue +15 -6
  56. package/template/blocks/order-status/preview.png +0 -0
  57. package/template/blocks/pricing-table/preview.png +0 -0
  58. package/template/blocks/product-carousel/Block.vue +5 -2
  59. package/template/blocks/product-carousel/preview.png +0 -0
  60. package/template/blocks/product-detail/Block.vue +68 -10
  61. package/template/blocks/product-detail/__tests__/Block.spec.ts +190 -2
  62. package/template/blocks/product-detail/preview.png +0 -0
  63. package/template/blocks/quote/preview.png +0 -0
  64. package/template/blocks/rich-text/preview.png +0 -0
  65. package/template/blocks/search/Block.vue +8 -2
  66. package/template/blocks/search/TypeSection.vue +8 -2
  67. package/template/blocks/search/preview.png +0 -0
  68. package/template/blocks/search/results.ts +5 -2
  69. package/template/blocks/split-content/preview.png +0 -0
  70. package/template/blocks/stats/preview.png +0 -0
  71. package/template/blocks/tabs/preview.png +0 -0
  72. package/template/blocks/team/preview.png +0 -0
  73. package/template/blocks/testimonials/preview.png +0 -0
  74. package/template/blocks/timeline/preview.png +0 -0
  75. package/template/blocks/trust-strip/preview.png +0 -0
  76. package/template/blocks/video-embed/preview.png +0 -0
  77. package/template/blocks/wishlist/Block.vue +5 -1
  78. package/template/blocks/wishlist/preview.png +0 -0
  79. package/template/i18n/en-US.json +20 -3
  80. package/template/i18n/is-IS.json +20 -3
  81. package/template/test/currencyPicker.spec.ts +66 -0
  82. package/template/test/seoInput.spec.ts +22 -0
  83. package/template/test/storefront/analytics.spec.ts +15 -0
  84. package/template/test/storefront/cart.spec.ts +4 -4
  85. package/template/test/storefront/currency.spec.ts +549 -0
  86. package/template/test/storefront/currencyDefault.spec.ts +475 -0
  87. package/template/test/storefront/currencyStore.spec.ts +845 -0
  88. package/template/test/storefront/gateway.spec.ts +22 -0
  89. package/template/test/storefront/money.spec.ts +2 -8
  90. package/template/test/storefront/structuredData.spec.ts +45 -0
  91. package/template/test/storefront/toProductCard.spec.ts +1 -1
  92. package/template/test/storefront/volatile.spec.ts +11 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,7 @@ Release-please writes the generated notes from commit messages and does not repl
5
5
 
6
6
  ## Unreleased
7
7
 
8
+ - The starter template builds its pages in the store's default currency (`commerce.defaultCurrency`), and never offers the store's own currency once the store turned it off; a cart left in that currency moves to the default, and a business customer's cart stays in ISK (`currency.keepOwnCurrency()` for a theme with business sign-in) (WS-1399).
8
9
  - `eldra-theme types` asks the gateway for the `declare module '@eldrajs/sdk'` augmentation and
9
10
  writes it with the CMS types, so `product.extensions` is typed through the SDK's
10
11
  `EldraProductExtensions` registry (WS-434, contract 6.1.0). It is on by default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eldrajs/theme-cli",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "CLI for Eldra themes: init from the starter, scaffold blocks, validate, generate types, deploy a static build to Eldra.",
5
5
  "keywords": [
6
6
  "cli",
@@ -42,8 +42,8 @@
42
42
  "dependencies": {
43
43
  "citty": "^0.1.6",
44
44
  "tar": "^7.4.3",
45
- "@eldrajs/theme-core": "^0.3.4",
46
- "@eldrajs/vite-plugin-theme": "^0.3.4"
45
+ "@eldrajs/theme-core": "^0.3.6",
46
+ "@eldrajs/vite-plugin-theme": "^0.3.6"
47
47
  },
48
48
  "devDependencies": {
49
49
  "execa": "^9.5.2"
@@ -432,7 +432,7 @@ declare global {
432
432
 
433
433
  /** The theme's own message keys (`i18n/<tag>.json`'s default locale),
434
434
  * flattened to dotted paths — vue-i18n's `t()` argument. */
435
- type MessageKey = 'announcement.dismiss' | 'announcement.hintHelp' | 'announcement.hintLabel' | 'announcement.region' | 'article.authorHintHelp' | 'article.authorHintLabel' | 'article.bodyHintHelp' | 'article.bodyHintLabel' | 'article.byline' | 'article.coverHintHelp' | 'article.coverHintLabel' | 'article.dekHintLabel' | 'article.metaHintLabel' | 'article.richTextTableLabel' | 'article.titleHintLabel' | 'articleList.filterNav' | 'articleList.headingHintHelp' | 'articleList.headingHintLabel' | 'articleList.itemsHintHelp' | 'articleList.itemsHintLabel' | 'articleList.pages' | 'breadcrumbs.hintHelp' | 'breadcrumbs.hintLabel' | 'breadcrumbs.home' | 'cart.added' | 'cart.applied' | 'cart.apply' | 'cart.applyFailed' | 'cart.applyUnsupported' | 'cart.awayFromFree' | 'cart.checkout' | 'cart.columnProduct' | 'cart.columnQuantity' | 'cart.columnTotal' | 'cart.continueShopping' | 'cart.discount' | 'cart.discountCode' | 'cart.discountPlaceholder' | 'cart.drawerHintHelp' | 'cart.drawerHintHosted' | 'cart.drawerHintLabel' | 'cart.each' | 'cart.emptyFallbackTitle' | 'cart.freeUnlocked' | 'cart.invalidCode' | 'cart.itemCountMany' | 'cart.itemCountOne' | 'cart.items' | 'cart.lineTotal' | 'cart.paymentsAccepted' | 'cart.quantityFor' | 'cart.removeCode' | 'cart.removeItem' | 'cart.removeItemVariant' | 'cart.removed' | 'cart.shipping' | 'cart.shippingFree' | 'cart.shippingPending' | 'cart.subtotal' | 'cart.summary' | 'cart.title' | 'cart.total' | 'cart.undo' | 'cart.viewCart' | 'collection.countMany' | 'collection.countOne' | 'collection.readLess' | 'collection.readMore' | 'collection.subcategories' | 'collection.subcollections' | 'collection.titleHintHelp' | 'collection.titleHintLabel' | 'contact.addressLabel' | 'contact.detailsHintHelp' | 'contact.detailsHintLabel' | 'contact.emailFieldLabel' | 'contact.emailInvalidError' | 'contact.emailLabel' | 'contact.formTitleDefault' | 'contact.headingHintHelp' | 'contact.headingHintLabel' | 'contact.hoursLabel' | 'contact.introHintLabel' | 'contact.mapHintHelp' | 'contact.mapHintLabel' | 'contact.mapTitle' | 'contact.mapTitleWithAddress' | 'contact.messageLabel' | 'contact.messageRequiredError' | 'contact.nameLabel' | 'contact.nameRequiredError' | 'contact.orderNumberLabel' | 'contact.orderNumberPlaceholder' | 'contact.phoneLabel' | 'contact.replyTime' | 'contact.sendAnother' | 'contact.sendMessage' | 'contact.sending' | 'contact.serverError' | 'contact.serverErrorGeneric' | 'contact.successTextDefault' | 'contact.successTitle' | 'contact.summaryTitleMany' | 'contact.summaryTitleOne' | 'contact.topicLabel' | 'cta.buttonHintLabel' | 'cta.headingHintHelp' | 'cta.headingHintLabel' | 'cta.textHintLabel' | 'editor.addLink' | 'error' | 'faq.headingHintLabel' | 'faq.introHintLabel' | 'faq.itemHintHelp' | 'faq.itemHintLabel' | 'faq.richTextTableLabel' | 'featureGrid.fallbackLabel' | 'featureGrid.headingHintLabel' | 'featureGrid.imageHintLabel' | 'featureGrid.itemHintHelp' | 'featureGrid.itemHintLabel' | 'footer.currencyLabel' | 'footer.descriptionHintLabel' | 'footer.emailError' | 'footer.emailInvalid' | 'footer.emailLabel' | 'footer.groupsHintHelp' | 'footer.groupsHintLabel' | 'footer.localeLabel' | 'footer.nav' | 'footer.newsletterAriaLabel' | 'footer.newsletterHintLabel' | 'footer.social.facebook' | 'footer.social.instagram' | 'footer.social.pinterest' | 'footer.social.tiktok' | 'footer.social.youtube' | 'footer.socialLinkName' | 'footer.subscribe' | 'footer.subscribed' | 'footer.subscribing' | 'footer.title' | 'form.formHintHelp' | 'form.formHintLabel' | 'form.headingHintLabel' | 'form.invalidEmail' | 'form.invalidForm' | 'form.invalidFormat' | 'form.invalidNumber' | 'form.invalidUrl' | 'form.loadFailed' | 'form.loading' | 'form.rateLimited' | 'form.required' | 'form.requiredCheckbox' | 'form.richTextTableLabel' | 'form.selectPlaceholder' | 'form.sendAnother' | 'form.submit' | 'form.submitting' | 'form.successTitle' | 'form.successTitlePending' | 'form.tooLarge' | 'form.tooLong' | 'form.tooShort' | 'form.turnstileFailed' | 'form.turnstileRequired' | 'form.unavailable' | 'form.unsupported' | 'gallery.carouselFallback' | 'gallery.headingHintHelp' | 'gallery.headingHintLabel' | 'gallery.imageHintLabel' | 'gallery.itemsHintHelp' | 'gallery.itemsHintLabel' | 'gallery.viewLarger' | 'gallery.viewer' | 'gallery.viewerHeading' | 'grid.activeFilters' | 'grid.availabilityInStock' | 'grid.availabilityOutOfStock' | 'grid.clearAll' | 'grid.clearFilters' | 'grid.columns' | 'grid.filter' | 'grid.filters' | 'grid.legendAvailability' | 'grid.legendCategory' | 'grid.legendCollection' | 'grid.legendColour' | 'grid.legendSize' | 'grid.nActive' | 'grid.nProducts' | 'grid.noCategoryHelp' | 'grid.noCategoryLabel' | 'grid.noCollectionHelp' | 'grid.noCollectionLabel' | 'grid.noResultsTitle' | 'grid.nothingIn' | 'grid.oneProduct' | 'grid.pagination' | 'grid.price' | 'grid.products' | 'grid.productsNoun' | 'grid.sectionLabel' | 'grid.sortBestSelling' | 'grid.sortBy' | 'grid.sortFeatured' | 'grid.sortNewest' | 'grid.sortPriceAsc' | 'grid.sortPriceDesc' | 'grid.updating' | 'header.cartEmpty' | 'header.cartMany' | 'header.cartOne' | 'header.menu' | 'header.openMenu' | 'header.primary' | 'header.search' | 'header.searchField' | 'header.viewAll' | 'header.viewAllOf' | 'header.wishlistEmpty' | 'header.wishlistMany' | 'header.wishlistOne' | 'hero.buttonHintLabel' | 'hero.carouselFallback' | 'hero.headingHintHelp' | 'hero.headingHintLabel' | 'hero.imageHintLabel' | 'hero.subheadingHintLabel' | 'imageBlock.captionHintLabel' | 'imageBlock.hintHelp' | 'imageBlock.hintLabel' | 'loading' | 'logoCloud.headingHintHelp' | 'logoCloud.headingHintLabel' | 'logoCloud.itemHintHelp' | 'logoCloud.itemHintLabel' | 'logoCloud.linkContext' | 'nav.menu' | 'nav.skipToContent' | 'newsletter.consentCheckboxLabel' | 'newsletter.consentRequired' | 'newsletter.emailLabel' | 'newsletter.emailPlaceholder' | 'newsletter.failed' | 'newsletter.headingHintLabel' | 'newsletter.invalidEmail' | 'newsletter.richTextTableLabel' | 'newsletter.subscribe' | 'newsletter.subscribing' | 'newsletter.successTitle' | 'newsletter.textHintLabel' | 'notFound.back' | 'notFound.body' | 'notFound.eyebrow' | 'notFound.title' | 'order.cardEnding' | 'order.carrierEta' | 'order.completed' | 'order.deliveryAddress' | 'order.detailsLabel' | 'order.estimated' | 'order.inProgress' | 'order.items' | 'order.needHelp' | 'order.notYet' | 'order.number' | 'order.payment' | 'order.placedMany' | 'order.placedOne' | 'order.progress' | 'order.qty' | 'order.shipping' | 'order.shippingFree' | 'order.showAllItems' | 'order.statusPrefix' | 'order.subtotal' | 'order.tax' | 'order.total' | 'order.trackOpens' | 'order.trackPackage' | 'order.trackingNumber' | 'pricing.headingHintLabel' | 'pricing.included' | 'pricing.includedIn' | 'pricing.introHintLabel' | 'pricing.mostPopular' | 'pricing.notIncluded' | 'pricing.planHintHelp' | 'pricing.planHintLabel' | 'product.addToCart' | 'product.backorder' | 'product.backorderNote' | 'product.backorderPending' | 'product.backorderShips' | 'product.hintHelp' | 'product.hintLabel' | 'product.imageIndex' | 'product.images' | 'product.inStock' | 'product.information' | 'product.lowStockMany' | 'product.lowStockManyIn' | 'product.lowStockOne' | 'product.lowStockOneIn' | 'product.notifyEmail' | 'product.notifyInvalid' | 'product.notifyMe' | 'product.notifySubmit' | 'product.notifySuccess' | 'product.notifyTitle' | 'product.notifyUnsupported' | 'product.quantity' | 'product.quickAdd' | 'product.quickAddMeta' | 'product.removeFromWishlist' | 'product.restockNote' | 'product.saleBadge' | 'product.saveToWishlist' | 'product.saving' | 'product.showImage' | 'product.sizeGuide' | 'product.soldOut' | 'product.soldOutIn' | 'product.tabsLabel' | 'product.taxNote' | 'product.viewer' | 'product.zoom' | 'productCarousel.carouselLabel' | 'productCarousel.clearHistory' | 'productCarousel.headingHintHelp' | 'productCarousel.headingHintLabel' | 'productCarousel.viewAllContext' | 'quote.headingFor' | 'quote.nameHintLabel' | 'quote.quoteHintHelp' | 'quote.quoteHintLabel' | 'richTextBlock.bodyHintHelp' | 'richTextBlock.bodyHintLabel' | 'richTextBlock.headingHintHelp' | 'richTextBlock.headingHintLabel' | 'richTextBlock.richTextTableLabel' | 'search.all' | 'search.customersLove' | 'search.didYouMean' | 'search.headingHintHelp' | 'search.headingHintLabel' | 'search.idleTitle' | 'search.noResultsAdvice' | 'search.noResultsTitle' | 'search.pageMany' | 'search.pageOne' | 'search.popularHintHelp' | 'search.popularHintLabel' | 'search.popularSearches' | 'search.productMany' | 'search.productOne' | 'search.resultMany' | 'search.resultOne' | 'search.resultTabs' | 'search.resultsHeading' | 'search.searchLabel' | 'search.searching' | 'search.storyMany' | 'search.storyOne' | 'search.title' | 'search.typeJournal' | 'search.typePages' | 'search.typeProducts' | 'search.viewAllJournal' | 'search.viewAllPages' | 'search.viewAllProducts' | 'splitContent.headingHintHelp' | 'splitContent.headingHintLabel' | 'splitContent.imageHintLabel' | 'splitContent.label' | 'splitContent.richTextTableLabel' | 'stats.headingHintLabel' | 'stats.introHintLabel' | 'stats.itemHintHelp' | 'stats.itemHintLabel' | 'storefront.cartOutOfDate' | 'storefront.error' | 'storefront.loading' | 'storefront.mutationFailed' | 'storefront.notFound' | 'storefront.orderStatus.cancelled' | 'storefront.orderStatus.delayed' | 'storefront.orderStatus.delivered' | 'storefront.orderStatus.processing' | 'storefront.orderStatus.shipped' | 'storefront.orderSteps.delivered' | 'storefront.orderSteps.ordered' | 'storefront.orderSteps.packed' | 'storefront.orderSteps.shipped' | 'storefront.outOfStock' | 'storefront.unavailable' | 'storefront.unresolvedCollectionHelp' | 'storefront.unresolvedCollectionLabel' | 'storefront.updatingValues' | 'tabsBlock.headingHintLabel' | 'tabsBlock.introHintLabel' | 'tabsBlock.itemHintHelp' | 'tabsBlock.itemHintLabel' | 'tabsBlock.richTextTableLabel' | 'tabsBlock.tabPlaceholderLabel' | 'team.emailPerson' | 'team.headingHintHelp' | 'team.headingHintLabel' | 'team.itemHintHelp' | 'team.itemHintLabel' | 'team.onInstagram' | 'team.onPinterest' | 'team.onTiktok' | 'team.portraitOf' | 'team.website' | 'testimonials.carousel' | 'testimonials.headingHintHelp' | 'testimonials.headingHintLabel' | 'testimonials.itemHintHelp' | 'testimonials.itemHintLabel' | 'timeline.headingHintHelp' | 'timeline.headingHintLabel' | 'timeline.itemHintHelp' | 'timeline.itemHintLabel' | 'timeline.step' | 'trust.applePay' | 'trust.itemHintHelp' | 'trust.itemHintLabel' | 'trust.mastercard' | 'trust.payments' | 'trust.paypal' | 'trust.scrollRegion' | 'trust.title' | 'trust.visa' | 'ui.breadcrumbLabel' | 'ui.cancel' | 'ui.clear' | 'ui.clearRecent' | 'ui.clearSearch' | 'ui.close' | 'ui.closeLightbox' | 'ui.closeSearch' | 'ui.decrease' | 'ui.dismissNotification' | 'ui.done' | 'ui.error' | 'ui.filterPanelApplied' | 'ui.filterPanelClearAll' | 'ui.filterPanelLabel' | 'ui.filterPanelMax' | 'ui.filterPanelMin' | 'ui.filterPanelNoneAvailable' | 'ui.filterPanelOrMore' | 'ui.filterPanelShowFewer' | 'ui.filterPanelShowProducts' | 'ui.filterPanelSizeGuide' | 'ui.filterPanelTitle' | 'ui.from' | 'ui.increase' | 'ui.learnMore' | 'ui.lightboxImages' | 'ui.loadMore' | 'ui.loading' | 'ui.loadingProduct' | 'ui.maximum' | 'ui.minimum' | 'ui.multiSelectPlaceholder' | 'ui.newBadge' | 'ui.next' | 'ui.nextImage' | 'ui.nextPage' | 'ui.noImage' | 'ui.noImageAvailable' | 'ui.noResults' | 'ui.noReviews' | 'ui.noneSelected' | 'ui.notifications' | 'ui.opensInNewTab' | 'ui.optional' | 'ui.pagination' | 'ui.pause' | 'ui.play' | 'ui.popularSearches' | 'ui.previous' | 'ui.previousImage' | 'ui.previousPage' | 'ui.quantity' | 'ui.quickAddLabel' | 'ui.recentSearches' | 'ui.regularPrice' | 'ui.required' | 'ui.salePrice' | 'ui.search' | 'ui.searchAdvice' | 'ui.searchCollections' | 'ui.searchEscHint' | 'ui.searchJournal' | 'ui.searchLoading' | 'ui.searchMoveHint' | 'ui.searchOpenHint' | 'ui.searchProducts' | 'ui.searchSuggestions' | 'ui.searchTheShop' | 'ui.selectPlaceholder' | 'ui.selected' | 'ui.shortcutHint' | 'ui.slideInstructions' | 'ui.slides' | 'ui.soldOut' | 'ui.stockIn' | 'ui.stockistSite' | 'ui.to' | 'ui.tryAgain' | 'ui.updatingPrice' | 'ui.updatingStock' | 'video.errorLink' | 'video.errorText' | 'video.errorTitle' | 'video.headingHintLabel' | 'video.introHintLabel' | 'video.minuteMany' | 'video.minuteOne' | 'video.play' | 'video.playWithDuration' | 'video.privacyNoteDefault' | 'video.secondMany' | 'video.secondOne' | 'video.urlHintHelp' | 'video.urlHintLabel' | 'wishlist.continueShopping' | 'wishlist.editorHintHelp' | 'wishlist.editorHintLabel' | 'wishlist.emptyText' | 'wishlist.emptyTitle' | 'wishlist.itemCountMany' | 'wishlist.itemCountOne' | 'wishlist.items' | 'wishlist.removed' | 'wishlist.removedNamed' | 'wishlist.saved' | 'wishlist.title' | 'wishlist.view';
435
+ type MessageKey = 'announcement.dismiss' | 'announcement.hintHelp' | 'announcement.hintLabel' | 'announcement.region' | 'article.authorHintHelp' | 'article.authorHintLabel' | 'article.bodyHintHelp' | 'article.bodyHintLabel' | 'article.byline' | 'article.coverHintHelp' | 'article.coverHintLabel' | 'article.dekHintLabel' | 'article.metaHintLabel' | 'article.richTextTableLabel' | 'article.titleHintLabel' | 'articleList.filterNav' | 'articleList.headingHintHelp' | 'articleList.headingHintLabel' | 'articleList.itemsHintHelp' | 'articleList.itemsHintLabel' | 'articleList.pages' | 'breadcrumbs.hintHelp' | 'breadcrumbs.hintLabel' | 'breadcrumbs.home' | 'cart.added' | 'cart.applied' | 'cart.apply' | 'cart.applyFailed' | 'cart.applyUnsupported' | 'cart.awayFromFree' | 'cart.checkout' | 'cart.columnProduct' | 'cart.columnQuantity' | 'cart.columnTotal' | 'cart.continueShopping' | 'cart.discount' | 'cart.discountCode' | 'cart.discountPlaceholder' | 'cart.drawerHintHelp' | 'cart.drawerHintHosted' | 'cart.drawerHintLabel' | 'cart.each' | 'cart.emptyFallbackTitle' | 'cart.freeUnlocked' | 'cart.invalidCode' | 'cart.itemCountMany' | 'cart.itemCountOne' | 'cart.items' | 'cart.lineTotal' | 'cart.loadFailed' | 'cart.paymentsAccepted' | 'cart.quantityFor' | 'cart.removeCode' | 'cart.removeItem' | 'cart.removeItemVariant' | 'cart.removed' | 'cart.shipping' | 'cart.shippingFree' | 'cart.shippingPending' | 'cart.subtotal' | 'cart.summary' | 'cart.title' | 'cart.total' | 'cart.tryAgain' | 'cart.undo' | 'cart.viewCart' | 'collection.countMany' | 'collection.countOne' | 'collection.readLess' | 'collection.readMore' | 'collection.subcategories' | 'collection.subcollections' | 'collection.titleHintHelp' | 'collection.titleHintLabel' | 'contact.addressLabel' | 'contact.detailsHintHelp' | 'contact.detailsHintLabel' | 'contact.emailFieldLabel' | 'contact.emailInvalidError' | 'contact.emailLabel' | 'contact.formTitleDefault' | 'contact.headingHintHelp' | 'contact.headingHintLabel' | 'contact.hoursLabel' | 'contact.introHintLabel' | 'contact.mapHintHelp' | 'contact.mapHintLabel' | 'contact.mapTitle' | 'contact.mapTitleWithAddress' | 'contact.messageLabel' | 'contact.messageRequiredError' | 'contact.nameLabel' | 'contact.nameRequiredError' | 'contact.orderNumberLabel' | 'contact.orderNumberPlaceholder' | 'contact.phoneLabel' | 'contact.replyTime' | 'contact.sendAnother' | 'contact.sendMessage' | 'contact.sending' | 'contact.serverError' | 'contact.serverErrorGeneric' | 'contact.successTextDefault' | 'contact.successTitle' | 'contact.summaryTitleMany' | 'contact.summaryTitleOne' | 'contact.topicLabel' | 'cta.buttonHintLabel' | 'cta.headingHintHelp' | 'cta.headingHintLabel' | 'cta.textHintLabel' | 'currency.cartNotSold' | 'currency.cartWillSwitch' | 'currency.checkoutWithout' | 'currency.label' | 'currency.movedTo' | 'currency.notIncludedMany' | 'currency.notIncludedOne' | 'currency.notSoldIn' | 'currency.notSoldInLong' | 'currency.shopIn' | 'editor.addLink' | 'error' | 'faq.headingHintLabel' | 'faq.introHintLabel' | 'faq.itemHintHelp' | 'faq.itemHintLabel' | 'faq.richTextTableLabel' | 'featureGrid.fallbackLabel' | 'featureGrid.headingHintLabel' | 'featureGrid.imageHintLabel' | 'featureGrid.itemHintHelp' | 'featureGrid.itemHintLabel' | 'footer.currencyLabel' | 'footer.descriptionHintLabel' | 'footer.emailError' | 'footer.emailInvalid' | 'footer.emailLabel' | 'footer.groupsHintHelp' | 'footer.groupsHintLabel' | 'footer.localeLabel' | 'footer.nav' | 'footer.newsletterAriaLabel' | 'footer.newsletterHintLabel' | 'footer.social.facebook' | 'footer.social.instagram' | 'footer.social.pinterest' | 'footer.social.tiktok' | 'footer.social.youtube' | 'footer.socialLinkName' | 'footer.subscribe' | 'footer.subscribed' | 'footer.subscribing' | 'footer.title' | 'form.formHintHelp' | 'form.formHintLabel' | 'form.headingHintLabel' | 'form.invalidEmail' | 'form.invalidForm' | 'form.invalidFormat' | 'form.invalidNumber' | 'form.invalidUrl' | 'form.loadFailed' | 'form.loading' | 'form.rateLimited' | 'form.required' | 'form.requiredCheckbox' | 'form.richTextTableLabel' | 'form.selectPlaceholder' | 'form.sendAnother' | 'form.submit' | 'form.submitting' | 'form.successTitle' | 'form.successTitlePending' | 'form.tooLarge' | 'form.tooLong' | 'form.tooShort' | 'form.turnstileFailed' | 'form.turnstileRequired' | 'form.unavailable' | 'form.unsupported' | 'gallery.carouselFallback' | 'gallery.headingHintHelp' | 'gallery.headingHintLabel' | 'gallery.imageHintLabel' | 'gallery.itemsHintHelp' | 'gallery.itemsHintLabel' | 'gallery.viewLarger' | 'gallery.viewer' | 'gallery.viewerHeading' | 'grid.activeFilters' | 'grid.availabilityInStock' | 'grid.availabilityOutOfStock' | 'grid.clearAll' | 'grid.clearFilters' | 'grid.columns' | 'grid.filter' | 'grid.filters' | 'grid.legendAvailability' | 'grid.legendCategory' | 'grid.legendCollection' | 'grid.legendColour' | 'grid.legendSize' | 'grid.nActive' | 'grid.nProducts' | 'grid.noCategoryHelp' | 'grid.noCategoryLabel' | 'grid.noCollectionHelp' | 'grid.noCollectionLabel' | 'grid.noResultsTitle' | 'grid.nothingIn' | 'grid.oneProduct' | 'grid.pagination' | 'grid.price' | 'grid.products' | 'grid.productsNoun' | 'grid.sectionLabel' | 'grid.sortBestSelling' | 'grid.sortBy' | 'grid.sortFeatured' | 'grid.sortNewest' | 'grid.sortPriceAsc' | 'grid.sortPriceDesc' | 'grid.updating' | 'header.cart' | 'header.cartEmpty' | 'header.cartMany' | 'header.cartOne' | 'header.menu' | 'header.openMenu' | 'header.primary' | 'header.search' | 'header.searchField' | 'header.viewAll' | 'header.viewAllOf' | 'header.wishlistEmpty' | 'header.wishlistMany' | 'header.wishlistOne' | 'hero.buttonHintLabel' | 'hero.carouselFallback' | 'hero.headingHintHelp' | 'hero.headingHintLabel' | 'hero.imageHintLabel' | 'hero.subheadingHintLabel' | 'imageBlock.captionHintLabel' | 'imageBlock.hintHelp' | 'imageBlock.hintLabel' | 'loading' | 'logoCloud.headingHintHelp' | 'logoCloud.headingHintLabel' | 'logoCloud.itemHintHelp' | 'logoCloud.itemHintLabel' | 'logoCloud.linkContext' | 'nav.menu' | 'nav.skipToContent' | 'newsletter.consentCheckboxLabel' | 'newsletter.consentRequired' | 'newsletter.emailLabel' | 'newsletter.emailPlaceholder' | 'newsletter.failed' | 'newsletter.headingHintLabel' | 'newsletter.invalidEmail' | 'newsletter.richTextTableLabel' | 'newsletter.subscribe' | 'newsletter.subscribing' | 'newsletter.successTitle' | 'newsletter.textHintLabel' | 'notFound.back' | 'notFound.body' | 'notFound.eyebrow' | 'notFound.title' | 'order.cardEnding' | 'order.carrierEta' | 'order.completed' | 'order.deliveryAddress' | 'order.detailsLabel' | 'order.estimated' | 'order.inProgress' | 'order.items' | 'order.needHelp' | 'order.notYet' | 'order.number' | 'order.payment' | 'order.placedMany' | 'order.placedOne' | 'order.progress' | 'order.qty' | 'order.shipping' | 'order.shippingFree' | 'order.showAllItems' | 'order.statusPrefix' | 'order.subtotal' | 'order.tax' | 'order.total' | 'order.trackOpens' | 'order.trackPackage' | 'order.trackingNumber' | 'pricing.headingHintLabel' | 'pricing.included' | 'pricing.includedIn' | 'pricing.introHintLabel' | 'pricing.mostPopular' | 'pricing.notIncluded' | 'pricing.planHintHelp' | 'pricing.planHintLabel' | 'product.addToCart' | 'product.backorder' | 'product.backorderNote' | 'product.backorderPending' | 'product.backorderShips' | 'product.hintHelp' | 'product.hintLabel' | 'product.imageIndex' | 'product.images' | 'product.inStock' | 'product.information' | 'product.lowStockMany' | 'product.lowStockManyIn' | 'product.lowStockOne' | 'product.lowStockOneIn' | 'product.notifyEmail' | 'product.notifyInvalid' | 'product.notifyMe' | 'product.notifySubmit' | 'product.notifySuccess' | 'product.notifyTitle' | 'product.notifyUnsupported' | 'product.quantity' | 'product.quickAdd' | 'product.quickAddMeta' | 'product.removeFromWishlist' | 'product.restockNote' | 'product.saleBadge' | 'product.saveToWishlist' | 'product.saving' | 'product.showImage' | 'product.sizeGuide' | 'product.soldOut' | 'product.soldOutIn' | 'product.tabsLabel' | 'product.taxNote' | 'product.viewer' | 'product.zoom' | 'productCarousel.carouselLabel' | 'productCarousel.clearHistory' | 'productCarousel.headingHintHelp' | 'productCarousel.headingHintLabel' | 'productCarousel.viewAllContext' | 'quote.headingFor' | 'quote.nameHintLabel' | 'quote.quoteHintHelp' | 'quote.quoteHintLabel' | 'richTextBlock.bodyHintHelp' | 'richTextBlock.bodyHintLabel' | 'richTextBlock.headingHintHelp' | 'richTextBlock.headingHintLabel' | 'richTextBlock.richTextTableLabel' | 'search.all' | 'search.customersLove' | 'search.didYouMean' | 'search.headingHintHelp' | 'search.headingHintLabel' | 'search.idleTitle' | 'search.noResultsAdvice' | 'search.noResultsTitle' | 'search.pageMany' | 'search.pageOne' | 'search.popularHintHelp' | 'search.popularHintLabel' | 'search.popularSearches' | 'search.productMany' | 'search.productOne' | 'search.resultMany' | 'search.resultOne' | 'search.resultTabs' | 'search.resultsHeading' | 'search.searchLabel' | 'search.searching' | 'search.storyMany' | 'search.storyOne' | 'search.title' | 'search.typeJournal' | 'search.typePages' | 'search.typeProducts' | 'search.viewAllJournal' | 'search.viewAllPages' | 'search.viewAllProducts' | 'splitContent.headingHintHelp' | 'splitContent.headingHintLabel' | 'splitContent.imageHintLabel' | 'splitContent.label' | 'splitContent.richTextTableLabel' | 'stats.headingHintLabel' | 'stats.introHintLabel' | 'stats.itemHintHelp' | 'stats.itemHintLabel' | 'storefront.businessOwnCurrency' | 'storefront.cartOutOfDate' | 'storefront.error' | 'storefront.loading' | 'storefront.mutationFailed' | 'storefront.notFound' | 'storefront.orderStatus.cancelled' | 'storefront.orderStatus.delayed' | 'storefront.orderStatus.delivered' | 'storefront.orderStatus.processing' | 'storefront.orderStatus.shipped' | 'storefront.orderSteps.delivered' | 'storefront.orderSteps.ordered' | 'storefront.orderSteps.packed' | 'storefront.orderSteps.shipped' | 'storefront.outOfStock' | 'storefront.unavailable' | 'storefront.unresolvedCollectionHelp' | 'storefront.unresolvedCollectionLabel' | 'storefront.updatingValues' | 'tabsBlock.headingHintLabel' | 'tabsBlock.introHintLabel' | 'tabsBlock.itemHintHelp' | 'tabsBlock.itemHintLabel' | 'tabsBlock.richTextTableLabel' | 'tabsBlock.tabPlaceholderLabel' | 'team.emailPerson' | 'team.headingHintHelp' | 'team.headingHintLabel' | 'team.itemHintHelp' | 'team.itemHintLabel' | 'team.onInstagram' | 'team.onPinterest' | 'team.onTiktok' | 'team.portraitOf' | 'team.website' | 'testimonials.carousel' | 'testimonials.headingHintHelp' | 'testimonials.headingHintLabel' | 'testimonials.itemHintHelp' | 'testimonials.itemHintLabel' | 'timeline.headingHintHelp' | 'timeline.headingHintLabel' | 'timeline.itemHintHelp' | 'timeline.itemHintLabel' | 'timeline.step' | 'trust.applePay' | 'trust.itemHintHelp' | 'trust.itemHintLabel' | 'trust.mastercard' | 'trust.payments' | 'trust.paypal' | 'trust.scrollRegion' | 'trust.title' | 'trust.visa' | 'ui.breadcrumbLabel' | 'ui.cancel' | 'ui.clear' | 'ui.clearRecent' | 'ui.clearSearch' | 'ui.close' | 'ui.closeLightbox' | 'ui.closeSearch' | 'ui.currencyPickerLabel' | 'ui.decrease' | 'ui.dismissNotification' | 'ui.done' | 'ui.error' | 'ui.filterPanelApplied' | 'ui.filterPanelClearAll' | 'ui.filterPanelLabel' | 'ui.filterPanelMax' | 'ui.filterPanelMin' | 'ui.filterPanelNoneAvailable' | 'ui.filterPanelOrMore' | 'ui.filterPanelShowFewer' | 'ui.filterPanelShowProducts' | 'ui.filterPanelSizeGuide' | 'ui.filterPanelTitle' | 'ui.from' | 'ui.increase' | 'ui.learnMore' | 'ui.lightboxImages' | 'ui.loadMore' | 'ui.loading' | 'ui.loadingProduct' | 'ui.maximum' | 'ui.minimum' | 'ui.multiSelectPlaceholder' | 'ui.newBadge' | 'ui.next' | 'ui.nextImage' | 'ui.nextPage' | 'ui.noImage' | 'ui.noImageAvailable' | 'ui.noResults' | 'ui.noReviews' | 'ui.noneSelected' | 'ui.notifications' | 'ui.opensInNewTab' | 'ui.optional' | 'ui.pagination' | 'ui.pause' | 'ui.play' | 'ui.popularSearches' | 'ui.previous' | 'ui.previousImage' | 'ui.previousPage' | 'ui.quantity' | 'ui.quickAddLabel' | 'ui.recentSearches' | 'ui.regularPrice' | 'ui.required' | 'ui.salePrice' | 'ui.search' | 'ui.searchAdvice' | 'ui.searchCollections' | 'ui.searchEscHint' | 'ui.searchJournal' | 'ui.searchLoading' | 'ui.searchMoveHint' | 'ui.searchOpenHint' | 'ui.searchProducts' | 'ui.searchSuggestions' | 'ui.searchTheShop' | 'ui.selectPlaceholder' | 'ui.selected' | 'ui.shortcutHint' | 'ui.slideInstructions' | 'ui.slides' | 'ui.soldOut' | 'ui.stockIn' | 'ui.stockistSite' | 'ui.to' | 'ui.tryAgain' | 'ui.updatingPrice' | 'ui.updatingStock' | 'video.errorLink' | 'video.errorText' | 'video.errorTitle' | 'video.headingHintLabel' | 'video.introHintLabel' | 'video.minuteMany' | 'video.minuteOne' | 'video.play' | 'video.playWithDuration' | 'video.privacyNoteDefault' | 'video.secondMany' | 'video.secondOne' | 'video.urlHintHelp' | 'video.urlHintLabel' | 'wishlist.continueShopping' | 'wishlist.editorHintHelp' | 'wishlist.editorHintLabel' | 'wishlist.emptyText' | 'wishlist.emptyTitle' | 'wishlist.itemCountMany' | 'wishlist.itemCountOne' | 'wishlist.items' | 'wishlist.removed' | 'wishlist.removedNamed' | 'wishlist.saved' | 'wishlist.title' | 'wishlist.view';
436
436
  }
437
437
 
438
438
  export {};
@@ -8643,6 +8643,7 @@
8643
8643
  "storefront.outOfStock": "This item is out of stock.",
8644
8644
  "storefront.unavailable": "This item is no longer available.",
8645
8645
  "storefront.cartOutOfDate": "Your cart is out of date. Reload the page and try again.",
8646
+ "storefront.businessOwnCurrency": "Business customers shop in ISK.",
8646
8647
  "storefront.unresolvedCollectionLabel": "Publish to load products",
8647
8648
  "storefront.unresolvedCollectionHelp": "The collection is picked. Its products appear here once this page is published.",
8648
8649
  "storefront.orderStatus.processing": "Processing",
@@ -8667,6 +8668,7 @@
8667
8668
  "header.wishlistMany": "Wishlist, {count} items",
8668
8669
  "header.viewAll": "View all",
8669
8670
  "header.viewAllOf": "View all {label}",
8671
+ "header.cart": "Cart",
8670
8672
  "editor.addLink": "Add a link",
8671
8673
  "splitContent.label": "Our story",
8672
8674
  "splitContent.imageHintLabel": "Choose an image",
@@ -8995,6 +8997,8 @@
8995
8997
  "cart.drawerHintLabel": "The cart drawer opens from the header",
8996
8998
  "cart.drawerHintHelp": "Shoppers open it with the bag button; nothing shows here until they do.",
8997
8999
  "cart.drawerHintHosted": "The theme already opens one on every page, so this block adds nothing and can be removed.",
9000
+ "cart.loadFailed": "We couldn't load your cart.",
9001
+ "cart.tryAgain": "Try again",
8998
9002
  "wishlist.saved": "Saved to wishlist",
8999
9003
  "wishlist.removed": "Removed from wishlist",
9000
9004
  "wishlist.view": "View wishlist",
@@ -9034,6 +9038,16 @@
9034
9038
  "order.needHelp": "Need help?",
9035
9039
  "order.trackingNumber": "Tracking number",
9036
9040
  "order.carrierEta": "Estimated delivery {eta} with {carrier}.",
9041
+ "currency.label": "Currency",
9042
+ "currency.notSoldIn": "Not available in {currency}",
9043
+ "currency.notSoldInLong": "Not available in {currency}.",
9044
+ "currency.shopIn": "Shop in {currency}",
9045
+ "currency.cartNotSold": "{items} can't be bought in {currency}.",
9046
+ "currency.checkoutWithout": "Remove and check out",
9047
+ "currency.cartWillSwitch": "Your cart will switch to {currency}.",
9048
+ "currency.notIncludedOne": "1 item not included",
9049
+ "currency.notIncludedMany": "{count} items not included",
9050
+ "currency.movedTo": "Prices are now in {currency}.",
9037
9051
  "ui.clear": "Clear",
9038
9052
  "ui.close": "Close",
9039
9053
  "ui.closeSearch": "Close search",
@@ -9114,7 +9128,8 @@
9114
9128
  "ui.filterPanelMin": "Min",
9115
9129
  "ui.filterPanelMax": "Max",
9116
9130
  "ui.filterPanelOrMore": " or more",
9117
- "ui.filterPanelShowProducts": "Show products"
9131
+ "ui.filterPanelShowProducts": "Show products",
9132
+ "ui.currencyPickerLabel": "Currency"
9118
9133
  },
9119
9134
  "is-IS": {
9120
9135
  "notFound.eyebrow": "404",
@@ -9190,6 +9205,7 @@
9190
9205
  "storefront.outOfStock": "Þessi vara er ekki til á lager.",
9191
9206
  "storefront.unavailable": "Þessi vara er ekki lengur í boði.",
9192
9207
  "storefront.cartOutOfDate": "Karfan þín er ekki uppfærð. Endurnýjaðu síðuna og prófaðu aftur.",
9208
+ "storefront.businessOwnCurrency": "Fyrirtæki versla í krónum.",
9193
9209
  "storefront.unresolvedCollectionLabel": "Birtu síðuna til að hlaða vörum",
9194
9210
  "storefront.unresolvedCollectionHelp": "Vörulistinn er valinn. Vörurnar úr honum birtast hér þegar síðan hefur verið birt.",
9195
9211
  "storefront.orderStatus.processing": "Í vinnslu",
@@ -9214,6 +9230,7 @@
9214
9230
  "header.wishlistMany": "Óskalisti, {count} vörur",
9215
9231
  "header.viewAll": "Sjá allt",
9216
9232
  "header.viewAllOf": "Sjá allt: {label}",
9233
+ "header.cart": "Karfa",
9217
9234
  "editor.addLink": "Bæta við tengli",
9218
9235
  "splitContent.label": "Sagan okkar",
9219
9236
  "splitContent.imageHintLabel": "Veldu mynd",
@@ -9542,6 +9559,8 @@
9542
9559
  "cart.drawerHintLabel": "Karfan opnast úr hausnum",
9543
9560
  "cart.drawerHintHelp": "Kaupendur opna hana með töskuhnappnum; hér sést ekkert fyrr en þeir gera það.",
9544
9561
  "cart.drawerHintHosted": "Þemað opnar hana þegar á öllum síðum, svo þessi hluti gerir ekkert og má fjarlægja.",
9562
+ "cart.loadFailed": "Ekki tókst að sækja körfuna.",
9563
+ "cart.tryAgain": "Reyna aftur",
9545
9564
  "wishlist.saved": "Vistað á óskalista",
9546
9565
  "wishlist.removed": "Fjarlægt af óskalista",
9547
9566
  "wishlist.view": "Skoða óskalista",
@@ -9581,6 +9600,16 @@
9581
9600
  "order.needHelp": "Þarftu aðstoð?",
9582
9601
  "order.trackingNumber": "Sendingarnúmer",
9583
9602
  "order.carrierEta": "Áætlaður afhendingartími {eta} með {carrier}.",
9603
+ "currency.label": "Gjaldmiðill",
9604
+ "currency.notSoldIn": "Ekki til sölu í {currency}",
9605
+ "currency.notSoldInLong": "Ekki til sölu í {currency}.",
9606
+ "currency.shopIn": "Skipta yfir í {currency}",
9607
+ "currency.cartNotSold": "Þetta fæst ekki keypt í {currency}: {items}.",
9608
+ "currency.checkoutWithout": "Fjarlægja og ganga frá kaupum",
9609
+ "currency.cartWillSwitch": "Karfan færist yfir í {currency}.",
9610
+ "currency.notIncludedOne": "1 vara ekki talin með",
9611
+ "currency.notIncludedMany": "{count} vörur ekki taldar með",
9612
+ "currency.movedTo": "Verð eru nú í {currency}.",
9584
9613
  "ui.clear": "Hreinsa",
9585
9614
  "ui.close": "Loka",
9586
9615
  "ui.closeSearch": "Loka leit",
@@ -9661,7 +9690,8 @@
9661
9690
  "ui.filterPanelMin": "Lágm.",
9662
9691
  "ui.filterPanelMax": "Hám.",
9663
9692
  "ui.filterPanelOrMore": " eða meira",
9664
- "ui.filterPanelShowProducts": "Sýna vörur"
9693
+ "ui.filterPanelShowProducts": "Sýna vörur",
9694
+ "ui.currencyPickerLabel": "Gjaldmiðill"
9665
9695
  }
9666
9696
  }
9667
9697
  }
@@ -1,37 +1,37 @@
1
1
  {
2
- "announcement-bar": "9045755a9e6b7d95c4e88740af2058ca909f84dd645168359c134000c5b2d413",
3
- "article": "a545a8cd07e5212879f66fbfedae201f8df9e722167b1a0602f1550ec9478e57",
4
- "article-list": "2e33e94c938d934951ae2887857a358fa2aed325d70f35081f4549052263fd39",
5
- "breadcrumbs": "84056359c861caba20825c39d17d9f7f2279ecc228ff6739851e58c4fd23830e",
6
- "cart": "6c1fb1e7ee45b806f57c4968bcbd0a05637e5234d87132ea3525b67be8cf029f",
7
- "collection-grid": "206ef930ae19515117fdab52e09d7f3f1fb335de703175e5b00a0f17c8c8edbc",
8
- "collection-header": "71d81a4d45ff672a42ed083c54dd13ee3a3cc1fd5b77b7410369b7d446f45521",
9
- "contact": "665b6201afcc398ee8c631964522d3268359b929ded1fe59b240dfb240edaf84",
10
- "cta": "34b64a3a0e151ada3fe2a4faab441cbe0358c5b8cd141468939fb04e6ee8bfd1",
11
- "faq": "f5ac1a7383c2c936e0fe460dd71d7f08cc42262ed28a94743605de5c62ac7cfb",
12
- "feature-grid": "7703f4200168a0ebcfbae3cc8af87204a8d657045449ac7390caa9a8d1fa37b9",
13
- "footer": "a47eb516f5f8b1418eabd81e11aff72e76d417dd24ca67c5e6c78e0e87fd6849",
14
- "form": "e129a99c7929a212ed3856b58f75da1ae2398db5fe70831ba25067808bf5fdda",
15
- "gallery": "43994cf3fa2fa21404f4430fe0267cee07427eefd5d0051f5de29ad32317a709",
16
- "hero": "37d286b9d820cb2487b0e69a59b7397c2390241deb4e17f33cc7a48ce7e8bed6",
17
- "image": "70edb75fee2daaaccb2af32cfc84e1e97e3d60c3f46edd249a92c8e05a20ca87",
18
- "logo-cloud": "fb7eb0e1eeb5fbe35c20b83603c4fd3e45610fbf1127e6761872a8df76e7c1c8",
19
- "navigation": "3d79de52c5f71d3ffd2d6f6065f883ef9d7e45d1c677b818dd6610be2f2bf7e2",
20
- "newsletter": "cd26a6073f05cd66a2e72e04e88e719e68d23aaa8a8e7654f24f3419d448308c",
21
- "order-status": "725a17d026088d5fc240883fd5ea6dddad08496ba5fccdf2ccc22061069bc53f",
22
- "pricing-table": "840239eee9cdca343007d48696b27dc444ec0db59455d37bb96cc596870e6b12",
23
- "product-carousel": "ebac1c39b0c55f14171dbf82b11486c5140f77b0f39e1d0c4fedb8f07201a419",
24
- "product-detail": "39349300273d4f042f76b813cda537fd570f5a5d24a55287edb94a7bf1039f2f",
25
- "quote": "e3bec06185a23458a1f519f34f1d24dd711f2048928c42d6f4075b88d54bde62",
26
- "rich-text": "537e0fd1f037b3f8c2881a0dca27ef9a9e4ab0d06e83b41d658747220e3cb702",
27
- "search": "205254b7f86e00420a770af67132149563d85f9a70821fb69861d9580439116a",
28
- "split-content": "b87d48e5e082354bb2d1857bc95db9d2662f7389c2430a89c0f093f888b2e813",
29
- "stats": "f27aeb767eddc14419d856b4d9228037ed448fde3998eafc0c9101d3cfc8b349",
30
- "tabs": "c02163f996490c26dfd4464d586be8f5626e7aece3f9347caa8a843eae58dc4b",
31
- "team": "a34950d7c393a5e66734548d5119b2e4ee49e34ad4b20fd01578aa0c3e266e45",
32
- "testimonials": "f391a0eb5393945bc95a5b1471f7117a44f40aa9ef7cb5fbe2d33752e0cbea23",
33
- "timeline": "f4ce46f8fc089f28a665deb2973531998fe976621fb9bee41ede74277acc4337",
34
- "trust-strip": "390174236553a7b48c38a3bbb3f23317883a8131010688a1b0428557217fdfa9",
35
- "video-embed": "4d37291f2d38a29bb37d307e080ab6bad6039d7b12cb254146ed2712031515d2",
36
- "wishlist": "208c84c289891ba70a5591ff0db680fdbe8b3fee29ab10f62f857812ca9fcfe0"
2
+ "announcement-bar": "c9afe3ca53192bd788e724048eb4fa66bbff19d93f1fefbc63aa4e396b1a1f71",
3
+ "article": "46689140a4cc1e04b70bfa1c69fc8ac2ae8e5b0ce669e7a2c23157bb2ac79876",
4
+ "article-list": "c99dbf56425ed57161d348b28f67a23dcb609d9cf9b602da2995baea584070d6",
5
+ "breadcrumbs": "db7e456eec13ac6e6688fcd67b12cec63ffd876defdebd3085f28fdb5d8d6206",
6
+ "cart": "ce507a5b1961646df5292f308a287732d13205ac9e32afddfc7d10fb4369cd98",
7
+ "collection-grid": "9c4603f5de2891b3f066c0532bbb480003f7eb2ee1834475e2bd2097f149d57d",
8
+ "collection-header": "e0f8c97068a4cfd20585d7c055244a1e078f52d9a6eef59373b09dfde7337bdc",
9
+ "contact": "c8e558e99456095a7b3a0eb6baa06aa4ba2d246839bae123d769c88b8958ada8",
10
+ "cta": "bb97e5de236bc8fb46bfd7fc8ac80a8b3167a21fa90dd2b728d843f72fc0e421",
11
+ "faq": "5f9b2fbd25c28048d2f5c36c2fd2855f76011597bf1aa75e81e1316753a7eeba",
12
+ "feature-grid": "5019b8af23b77e0cd1360dd021287923c462e26b42e065886c03fb111929dda0",
13
+ "footer": "6dcbe2f7349c0a4dd51b47746c5f69466fa17cfefa63ee92e13e06be03c2c0a4",
14
+ "form": "6ec0407c114b5de4490d9f691b13cab3657e3fcbf7e37ed20a7f86fce4c1c24e",
15
+ "gallery": "d3fa5b835a1707e607410f7ca8e245c13ba4c8bc69b4c84485cc80b6d336f921",
16
+ "hero": "62c6ad62978389ae977db134e7277b410e57f1143832013e97e1db820d114987",
17
+ "image": "4b0bc804f063d947099f950bd0c09b98a07ea63f45ddfde51c9cd356c8c09587",
18
+ "logo-cloud": "7e946206faffab98d73d692f326bc79f4100c6e4892eb63ed69ee61032545042",
19
+ "navigation": "12363a34c5fd3593d91a912ba43352edb9347b1fda7e6b903baa2c39b0470682",
20
+ "newsletter": "5718d21c8c234534ac97a911989fea31fbe7a7ffcdbf9069a290954476ecf386",
21
+ "order-status": "1a7b4d108117fe7c67789adf9b55796364c16ab9c8f5ab652ac40d6c49d6f80e",
22
+ "pricing-table": "43b16d3abea292d7878a2a2f86dc35a6a069d9fb934bdb601305ee9731afe020",
23
+ "product-carousel": "70cc990a853c3ac33394e26cf071966ce2ce2c58e7254b5650f83c25b1402fa2",
24
+ "product-detail": "3979ef86314e70d970befe738f1792888b2919055801539d5506f5f3f874de86",
25
+ "quote": "d771f4097ca14d70320c90fd88c54d980a996c1fe43a4448ab10f89c2bfe6d3d",
26
+ "rich-text": "6062e831392f12e805968882a0edbfde00dfd1296d00395a3e9a27492a242118",
27
+ "search": "30c9627f44da0c88f289d63de62e639ed7553cea079dac5cbe5010acf058229a",
28
+ "split-content": "a10b26c39b12e350ac1a16521c13bdd9ec0baf7581fc7fa1e1c8263307efc2c2",
29
+ "stats": "22bbd1d98024ef1f2cf2e969fbe070bfda2b316d9319009721c6189384c7a43c",
30
+ "tabs": "3f054548e97dac4f6f69782824abb020e191e28c229ed560f366651cd55dd2cf",
31
+ "team": "532e5965c859aa33844e228f9be6329e635ecfa8cb5e1bd2af261b337377b593",
32
+ "testimonials": "ce60546dba65fefea8403ede13b9b590ebf7650976b09cb5b1d0f4ca4b365c20",
33
+ "timeline": "bfb25e247819c632e5f6e6ed79340f1ad54cd103883d0238e1ed6db94b4c5ca8",
34
+ "trust-strip": "337c79080c4af9f784e151b6221ab21e63b4324de75b266c5f6af6f15964eb5d",
35
+ "video-embed": "ff21253e4ad5abcc6d4b34ae930068f2493b1c404ab42608799dd70ce2c4481f",
36
+ "wishlist": "a5994d9744219233dfa0ab5932507bb4a57599e1113466e759661074f7c16341"
37
37
  }
@@ -31,6 +31,7 @@ import { Link, Toaster, useToast } from '@eldrajs/ui';
31
31
  import CartBlock from '../blocks/cart/Block.vue';
32
32
  import EldraRouterLink from './components/EldraRouterLink.vue';
33
33
  import { useStorefront } from './composables/useStorefront';
34
+ import { useStorefrontFeedback } from './composables/useStorefrontFeedback';
34
35
  import { useI18n } from 'vue-i18n';
35
36
  import { CART_ADD_TOAST_ID } from './storefront/feedback';
36
37
 
@@ -81,6 +82,20 @@ watch(
81
82
  }
82
83
  );
83
84
 
85
+ // A currency the visitor had was taken away (the shop stopped selling in it): said once, here, on any page.
86
+ const currency = useStorefront().currency;
87
+ watch(currency.movedTo, (code) => {
88
+ if (code === null) return;
89
+ toast.show({ id: 'currency-moved', title: t('currency.movedTo', { currency: code }) });
90
+ currency.movedTo.value = null;
91
+ });
92
+ const feedback = useStorefrontFeedback();
93
+ watch(currency.failure, (failure) => {
94
+ if (failure === null) return;
95
+ feedback.report(failure, { id: 'currency-move' });
96
+ currency.failure.value = null;
97
+ });
98
+
84
99
  /**
85
100
  * An `EldraBlockEntry` needs an id. This one is the theme's own, not a CMS entry id, and never
86
101
  * reaches the gateway; it is the shell's own, distinct from any cart block on a page, so the two
@@ -1,4 +1,4 @@
1
- import { inject } from 'vue';
1
+ import { inject, onScopeDispose } from 'vue';
2
2
  import { STOREFRONT_KEY, type StorefrontSource } from '../storefront/types';
3
3
  import { createDemoStorefront } from '../storefront/demo';
4
4
 
@@ -14,5 +14,10 @@ import { createDemoStorefront } from '../storefront/demo';
14
14
  * nothing was provided.
15
15
  */
16
16
  export function useStorefront(): StorefrontSource {
17
- return inject(STOREFRONT_KEY, () => createDemoStorefront(), true);
17
+ const provided = inject(STOREFRONT_KEY, null);
18
+ if (provided !== null) return provided;
19
+ // A storefront made for this component alone (Storybook, a demo) goes with it.
20
+ const own = createDemoStorefront();
21
+ onScopeDispose(() => own.currency.dispose());
22
+ return own;
18
23
  }
@@ -8,6 +8,7 @@ import {
8
8
  type VolatileSnapshot,
9
9
  } from '../storefront/types';
10
10
  import { toStorefrontCommerce } from '../storefront/commerce';
11
+ import { fetchVisitorCountry } from '../storefront/currency';
11
12
  import {
12
13
  createGatewayStorefront,
13
14
  type StorefrontPrerenderHandle,
@@ -300,6 +301,14 @@ export default defineNuxtPlugin({
300
301
  runtime,
301
302
  });
302
303
 
304
+ // After mount, so the hydrated page is the prerendered one; only then may the visitor's currency differ.
305
+ if (import.meta.client) {
306
+ const currency = source.currency;
307
+ const start = (): void => void currency.start(() => fetchVisitorCountry());
308
+ if (mounted) start();
309
+ else afterMount.push(start);
310
+ }
311
+
303
312
  // Commerce events (`app/storefront/analytics.ts`) go through the tracker `@eldrajs/theme-nuxt`
304
313
  // loads on a deployed site; everywhere else (dev, preview, no organisation, opted out)
305
314
  // `enabled` is false and the source is provided untouched. The unwrapped `source` stays the one
@@ -56,18 +56,20 @@ export function cartIdFromCheckoutUrl(url: string | null): string | undefined {
56
56
  }
57
57
 
58
58
  export function withAnalytics(source: StorefrontSource, track: Track): StorefrontSource {
59
- const currency = (): string | undefined => source.commerce?.currency;
59
+ const currency = (): string | undefined =>
60
+ source.cart.currency.value ?? source.commerce?.currency;
60
61
 
61
62
  function lineProps(
62
63
  line: Pick<StorefrontCartLine, 'productId' | 'variantId' | 'unitPrice'>,
63
- quantity: number
64
+ quantity: number,
65
+ pricedIn: string | undefined = currency()
64
66
  ): Record<string, string | number | undefined> {
65
67
  return {
66
68
  product_id: line.productId,
67
69
  variant_id: line.variantId,
68
70
  quantity,
69
71
  value: formatValue(line.unitPrice * quantity),
70
- currency: currency(),
72
+ currency: pricedIn,
71
73
  };
72
74
  }
73
75
 
@@ -98,7 +100,7 @@ export function withAnalytics(source: StorefrontSource, track: Track): Storefron
98
100
  handle: product.handle,
99
101
  variant_id: product.variantId,
100
102
  value: formatValue(product.price.amount),
101
- currency: currency(),
103
+ currency: product.price.currency ?? source.commerce?.currency,
102
104
  });
103
105
  },
104
106
  { immediate: true }
@@ -126,21 +128,26 @@ export function withAnalytics(source: StorefrontSource, track: Track): Storefron
126
128
  },
127
129
  async remove(lineId) {
128
130
  const line = source.cart.lines.value.find((l) => l.id === lineId);
131
+ const pricedIn = currency();
129
132
  const failure = await source.cart.remove(lineId);
130
133
  if (failure === null && line !== undefined) {
131
- track('remove_from_cart', lineProps(line, line.quantity));
134
+ track('remove_from_cart', lineProps(line, line.quantity, pricedIn));
132
135
  }
133
136
  return failure;
134
137
  },
135
138
  async setQuantity(lineId, quantity) {
136
139
  const before = source.cart.lines.value.find((l) => l.id === lineId);
140
+ const pricedIn = currency();
137
141
  const failure = await source.cart.setQuantity(lineId, quantity);
138
142
  if (failure === null && before !== undefined) {
139
143
  // The cart's own answer, not the request: the backend may clamp to stock.
140
144
  const after = source.cart.lines.value.find((l) => l.id === lineId);
141
145
  const diff = (after?.quantity ?? 0) - before.quantity;
142
146
  if (diff !== 0) {
143
- track(diff > 0 ? 'add_to_cart' : 'remove_from_cart', lineProps(before, Math.abs(diff)));
147
+ track(
148
+ diff > 0 ? 'add_to_cart' : 'remove_from_cart',
149
+ lineProps(before, Math.abs(diff), pricedIn)
150
+ );
144
151
  }
145
152
  }
146
153
  return failure;
@@ -148,9 +155,10 @@ export function withAnalytics(source: StorefrontSource, track: Track): Storefron
148
155
  async undoRemove() {
149
156
  // Undo puts a line back that `remove` already counted as removed, so it is an add.
150
157
  const restored = source.cart.lastRemoved.value?.line;
158
+ const pricedIn = currency();
151
159
  const failure = await source.cart.undoRemove();
152
160
  if (failure === null && restored !== undefined) {
153
- track('add_to_cart', lineProps(restored, restored.quantity));
161
+ track('add_to_cart', lineProps(restored, restored.quantity, pricedIn));
154
162
  }
155
163
  return failure;
156
164
  },