@eldrajs/theme-cli 0.2.8 → 0.2.9

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 (163) hide show
  1. package/CHANGELOG.md +2 -1
  2. package/package.json +1 -1
  3. package/template/.eldra/block-types.d.ts +28 -7
  4. package/template/.eldra/manifest.json +1034 -355
  5. package/template/.eldra/previews.json +35 -35
  6. package/template/README.md +32 -0
  7. package/template/app/assets/main.css +23 -0
  8. package/template/app/plugins/eldra-storefront.ts +3 -0
  9. package/template/app/storefront/demo.ts +75 -24
  10. package/template/app/storefront/gateway.ts +16 -2
  11. package/template/blocks/announcement-bar/preview.png +0 -0
  12. package/template/blocks/article/preview.json +4 -4
  13. package/template/blocks/article/preview.png +0 -0
  14. package/template/blocks/article-list/Block.vue +48 -19
  15. package/template/blocks/article-list/__tests__/Block.spec.ts +15 -0
  16. package/template/blocks/article-list/preview.json +43 -43
  17. package/template/blocks/article-list/preview.png +0 -0
  18. package/template/blocks/breadcrumbs/preview.png +0 -0
  19. package/template/blocks/cart/preview.png +0 -0
  20. package/template/blocks/collection-grid/Block.vue +260 -9
  21. package/template/blocks/collection-grid/__tests__/Block.spec.ts +202 -0
  22. package/template/blocks/collection-grid/block.json +3 -3
  23. package/template/blocks/collection-grid/preview.png +0 -0
  24. package/template/blocks/collection-header/Block.vue +65 -52
  25. package/template/blocks/collection-header/preview.json +4 -4
  26. package/template/blocks/collection-header/preview.png +0 -0
  27. package/template/blocks/contact/preview.png +0 -0
  28. package/template/blocks/cta/preview.json +4 -4
  29. package/template/blocks/cta/preview.png +0 -0
  30. package/template/blocks/faq/preview.png +0 -0
  31. package/template/blocks/feature-grid/Block.vue +73 -4
  32. package/template/blocks/feature-grid/__tests__/Block.spec.ts +43 -1
  33. package/template/blocks/feature-grid/block.json +2 -2
  34. package/template/blocks/feature-grid/preview.json +49 -24
  35. package/template/blocks/feature-grid/preview.png +0 -0
  36. package/template/blocks/footer/Block.vue +186 -71
  37. package/template/blocks/footer/__tests__/Block.spec.ts +127 -32
  38. package/template/blocks/footer/block.json +42 -4
  39. package/template/blocks/footer/mock.json +31 -34
  40. package/template/blocks/footer/preview.png +0 -0
  41. package/template/blocks/form/preview.png +0 -0
  42. package/template/blocks/gallery/preview.json +24 -24
  43. package/template/blocks/gallery/preview.png +0 -0
  44. package/template/blocks/hero/Block.vue +117 -19
  45. package/template/blocks/hero/__tests__/Block.spec.ts +46 -0
  46. package/template/blocks/hero/block.json +36 -1
  47. package/template/blocks/hero/preview.json +33 -25
  48. package/template/blocks/hero/preview.png +0 -0
  49. package/template/blocks/image/preview.json +4 -4
  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 +622 -184
  53. package/template/blocks/navigation/__tests__/Block.spec.ts +406 -68
  54. package/template/blocks/navigation/__tests__/fixtures/menu.json +182 -0
  55. package/template/blocks/navigation/block.json +102 -6
  56. package/template/blocks/navigation/mock.json +279 -52
  57. package/template/blocks/navigation/preview.json +311 -0
  58. package/template/blocks/navigation/preview.png +0 -0
  59. package/template/blocks/newsletter/Block.vue +248 -144
  60. package/template/blocks/newsletter/__tests__/Block.spec.ts +42 -0
  61. package/template/blocks/newsletter/block.json +61 -2
  62. package/template/blocks/newsletter/preview.json +35 -0
  63. package/template/blocks/newsletter/preview.png +0 -0
  64. package/template/blocks/order-status/preview.png +0 -0
  65. package/template/blocks/pricing-table/preview.png +0 -0
  66. package/template/blocks/product-carousel/Block.vue +272 -26
  67. package/template/blocks/product-carousel/__tests__/Block.spec.ts +90 -0
  68. package/template/blocks/product-carousel/block.json +61 -0
  69. package/template/blocks/product-carousel/preview.json +12 -0
  70. package/template/blocks/product-carousel/preview.png +0 -0
  71. package/template/blocks/product-detail/Block.vue +148 -96
  72. package/template/blocks/product-detail/__tests__/Block.spec.ts +98 -74
  73. package/template/blocks/product-detail/block.json +11 -4
  74. package/template/blocks/product-detail/mock.json +53 -22
  75. package/template/blocks/product-detail/parts/Gallery.vue +52 -103
  76. package/template/blocks/product-detail/preview.png +0 -0
  77. package/template/blocks/quote/preview.png +0 -0
  78. package/template/blocks/rich-text/preview.png +0 -0
  79. package/template/blocks/search/Block.vue +1 -0
  80. package/template/blocks/search/TypeSection.vue +1 -0
  81. package/template/blocks/search/__tests__/Block.spec.ts +23 -0
  82. package/template/blocks/search/preview.png +0 -0
  83. package/template/blocks/split-content/Block.vue +98 -20
  84. package/template/blocks/split-content/__tests__/Block.spec.ts +57 -18
  85. package/template/blocks/split-content/block.json +72 -6
  86. package/template/blocks/split-content/preview.json +34 -13
  87. package/template/blocks/split-content/preview.png +0 -0
  88. package/template/blocks/stats/preview.png +0 -0
  89. package/template/blocks/tabs/preview.json +16 -16
  90. package/template/blocks/tabs/preview.png +0 -0
  91. package/template/blocks/team/preview.png +0 -0
  92. package/template/blocks/testimonials/preview.png +0 -0
  93. package/template/blocks/timeline/preview.png +0 -0
  94. package/template/blocks/trust-strip/Block.vue +67 -1
  95. package/template/blocks/trust-strip/__tests__/Block.spec.ts +30 -1
  96. package/template/blocks/trust-strip/block.json +4 -4
  97. package/template/blocks/trust-strip/preview.json +21 -0
  98. package/template/blocks/trust-strip/preview.png +0 -0
  99. package/template/blocks/video-embed/preview.png +0 -0
  100. package/template/blocks/wishlist/preview.png +0 -0
  101. package/template/i18n/en-US.json +16 -9
  102. package/template/i18n/is-IS.json +16 -9
  103. package/template/pages/article.page.json +19 -18
  104. package/template/pages/cart.page.json +3 -13
  105. package/template/pages/category.page.json +15 -7
  106. package/template/pages/collection.page.json +15 -14
  107. package/template/pages/home.page.json +217 -182
  108. package/template/pages/product.page.json +46 -36
  109. package/template/pages/products.page.json +3 -13
  110. package/template/pages/search.page.json +3 -13
  111. package/template/pages/wishlist.page.json +3 -13
  112. package/template/public/images/CREDITS.md +28 -0
  113. package/template/public/images/clay-hands.webp +0 -0
  114. package/template/public/images/coffee-table.webp +0 -0
  115. package/template/public/images/cup.webp +0 -0
  116. package/template/public/images/enamel-cups.webp +0 -0
  117. package/template/public/images/hero.webp +0 -0
  118. package/template/public/images/kitchen.webp +0 -0
  119. package/template/public/images/mug.webp +0 -0
  120. package/template/public/images/northwind-mark.svg +1 -0
  121. package/template/public/images/planters.webp +0 -0
  122. package/template/public/images/plates.webp +0 -0
  123. package/template/public/images/reading.webp +0 -0
  124. package/template/public/images/sweater.webp +0 -0
  125. package/template/public/images/terracotta.webp +0 -0
  126. package/template/public/images/throws.webp +0 -0
  127. package/template/public/images/vase.webp +0 -0
  128. package/template/public/images/wheel.webp +0 -0
  129. package/template/public/images/yarn-tools.webp +0 -0
  130. package/template/public/images/yarn.webp +0 -0
  131. package/template/stories/generated/collection-grid.stories.ts +6 -0
  132. package/template/stories/generated/feature-grid.stories.ts +6 -0
  133. package/template/stories/generated/footer.stories.ts +4 -4
  134. package/template/stories/generated/hero.stories.ts +6 -0
  135. package/template/stories/generated/navigation.stories.ts +14 -1
  136. package/template/stories/generated/newsletter.stories.ts +2 -1
  137. package/template/stories/generated/product-carousel.stories.ts +12 -0
  138. package/template/stories/generated/split-content.stories.ts +12 -0
  139. package/template/stories/generated/trust-strip.stories.ts +8 -1
  140. package/template/stories/pages/article.stories.ts +2 -1
  141. package/template/stories/pages/cart.stories.ts +2 -1
  142. package/template/stories/pages/category.stories.ts +2 -1
  143. package/template/stories/pages/collection.stories.ts +2 -1
  144. package/template/stories/pages/home.stories.ts +2 -1
  145. package/template/stories/pages/product.stories.ts +2 -1
  146. package/template/stories/pages/products.stories.ts +2 -1
  147. package/template/stories/pages/search.stories.ts +2 -1
  148. package/template/stories/pages/wishlist.stories.ts +2 -1
  149. package/template/stories/support/demoChrome.ts +32 -0
  150. package/template/stories/support/pageBlocks.ts +2 -4
  151. package/template/test/countPill.browser.spec.ts +21 -13
  152. package/template/test/localePrefix.spec.ts +11 -6
  153. package/template/test/pages/article.spec.ts +1 -1
  154. package/template/test/pages/category.spec.ts +34 -11
  155. package/template/test/pages/collection.spec.ts +182 -148
  156. package/template/test/pages/home.spec.ts +35 -40
  157. package/template/test/pages/hydration.spec.ts +4 -4
  158. package/template/test/pages/product.spec.ts +17 -14
  159. package/template/test/pages/seededPages.spec.ts +11 -6
  160. package/template/test/prerenderRefresh.browser.spec.ts +36 -15
  161. package/template/test/starter.spec.ts +31 -15
  162. package/template/test/storefront/gatewayPrerender.spec.ts +26 -0
  163. package/template/tokens.json +13 -13
@@ -37,6 +37,13 @@
37
37
  * environment with no `ResizeObserver` such as jsdom under Vitest) and is only ever true once the
38
38
  * list is both in `scroll` mode and actually wider than its own box.
39
39
  *
40
+ * **`numbered`** is its own list rather than a third combination of the two axes above: the
41
+ * design's three promises in equal columns between hairlines (`border-y`, a 1px `border` between
42
+ * columns), each a large serif `01`/`02`/`03` in `accent` beside its title and line. It ignores
43
+ * `mobileLayout` — below 961px of block width the items simply stack, one per row, divided by the
44
+ * same hairline — and it never shows icons. The number is `aria-hidden`: it only restates the
45
+ * item's position, which the list already announces.
46
+ *
40
47
  * **Payment marks never use brand colour.** `apple-pay` has no Tabler icon, so
41
48
  * it renders `brand-apple` while its hidden name still reads "Apple Pay"; the other three map onto
42
49
  * their own Tabler brand icon. Every mark is a fixed-size chip with a `text`-toned icon plus a
@@ -82,6 +89,7 @@ const isEditing = useEditing();
82
89
  const headingId = `trust-strip-heading-${useUiId()}`;
83
90
 
84
91
  const variant = computed(() => data.value.variant ?? 'columns');
92
+ const isNumbered = computed(() => variant.value === 'numbered');
85
93
  const isColumns = computed(() => variant.value !== 'inline');
86
94
 
87
95
  const mobileLayout = computed(() => data.value.mobileLayout ?? 'grid');
@@ -106,6 +114,14 @@ onMounted(() => {
106
114
  listResizeObserver.observe(listEl.value);
107
115
  });
108
116
 
117
+ /** The scroll list only exists outside the `numbered` variant, so an editor switching variants
118
+ * mounts and unmounts it: keep the observer on whichever list element is there now. */
119
+ watch(listEl, (el, previous) => {
120
+ if (previous) listResizeObserver?.unobserve(previous);
121
+ if (el) listResizeObserver?.observe(el);
122
+ measureListOverflow();
123
+ });
124
+
109
125
  onBeforeUnmount(() => {
110
126
  listResizeObserver?.disconnect();
111
127
  listResizeObserver = null;
@@ -114,7 +130,23 @@ onBeforeUnmount(() => {
114
130
  /** See the module doc comment: the extra tab stop exists only while `mobileLayout` is `scroll`
115
131
  * AND the list is actually wider than its own box (i.e. below 48rem — from 48rem the same list
116
132
  * becomes the non-scrolling row and this goes back to `false`). */
117
- const isFocusableScrollRegion = computed(() => isScrollMobile.value && overflowsHorizontally.value);
133
+ const isFocusableScrollRegion = computed(
134
+ () => !isNumbered.value && isScrollMobile.value && overflowsHorizontally.value
135
+ );
136
+
137
+ /** `01`, `02`, … — the numbered variant's marker in place of an icon. */
138
+ function itemNumber(index: number): string {
139
+ return String(index + 1).padStart(2, '0');
140
+ }
141
+
142
+ /** The numbered list: three equal columns between hairlines from 961px of block width, a stack of
143
+ * rows below that — see the module doc comment. */
144
+ const NUMBERED_LIST_CLASS =
145
+ 'border-border grid grid-cols-1 border-y @min-[60.0625rem]:grid-flow-col @min-[60.0625rem]:auto-cols-fr';
146
+ const NUMBERED_ITEM_CLASS =
147
+ 'border-border grid grid-cols-[auto_minmax(0,1fr)] gap-x-4 gap-y-1 py-[1.125rem] ' +
148
+ 'not-first:border-t @min-[60.0625rem]:px-8 @min-[60.0625rem]:py-6 ' +
149
+ '@min-[60.0625rem]:not-first:border-t-0 @min-[60.0625rem]:not-first:border-l';
118
150
 
119
151
  /** At most four (spec States → "Many items: at most 4."); a fifth never reaches the DOM at all,
120
152
  * editor included, so there is nothing for the editor's own item count to disagree with. */
@@ -273,7 +305,41 @@ const showPaymentsRow = computed(() => showPayments.value && paymentMarks.value.
273
305
  <Container width="wide">
274
306
  <VisuallyHidden as="h2" :id="headingId">{{ t('trust.title') }}</VisuallyHidden>
275
307
 
308
+ <ul v-if="isNumbered" :class="NUMBERED_LIST_CLASS">
309
+ <li v-for="(item, index) in renderedItems" :key="index" :class="NUMBERED_ITEM_CLASS">
310
+ <template v-if="isEditing && !hasTitle(item)">
311
+ <EditorPlaceholder
312
+ inline
313
+ class="col-span-2"
314
+ :label="t('trust.itemHintLabel')"
315
+ :help="t('trust.itemHintHelp')"
316
+ />
317
+ </template>
318
+ <template v-else>
319
+ <span
320
+ class="font-heading text-accent row-span-2 text-[2rem] leading-none"
321
+ aria-hidden="true"
322
+ >{{ itemNumber(index) }}</span
323
+ >
324
+ <Link
325
+ v-if="itemHasHref(item)"
326
+ :href="itemHref(item)!"
327
+ :as="itemLinkAs(item)"
328
+ :aria-label="item.linkLabel || undefined"
329
+ class="justify-self-start text-base leading-[1.5] font-semibold"
330
+ >
331
+ {{ item.title }}
332
+ </Link>
333
+ <p v-else class="text-base leading-[1.5] font-semibold">{{ item.title }}</p>
334
+ <p v-if="item.text" class="text-muted col-start-2 text-[0.9375rem] leading-[1.6]">
335
+ {{ item.text }}
336
+ </p>
337
+ </template>
338
+ </li>
339
+ </ul>
340
+
276
341
  <ul
342
+ v-else
277
343
  ref="listEl"
278
344
  :class="[listClass, isFocusableScrollRegion ? focusRing : '']"
279
345
  :tabindex="isFocusableScrollRegion ? 0 : undefined"
@@ -6,6 +6,7 @@ import { axe } from '../../../test/support/axe';
6
6
  import { afterEach, describe, expect, it } from 'vitest';
7
7
  import Block from '../Block.vue';
8
8
  import mock from '../mock.json';
9
+ import preview from '../preview.json';
9
10
  import { mountOptions } from '../../../test/support/mountBlock';
10
11
 
11
12
  /** The genuinely minimal fixture: only the fields the block requires. */
@@ -88,7 +89,7 @@ describe('trust-strip block', () => {
88
89
  expect(await axe(wrapper.element)).toHaveNoViolations();
89
90
  });
90
91
 
91
- it.each(['columns', 'inline'] as const)(
92
+ it.each(['columns', 'inline', 'numbered'] as const)(
92
93
  'renders variant "%s" with no axe violations',
93
94
  async (variant) => {
94
95
  const wrapper = mountBlock({ ...mock, variant });
@@ -97,6 +98,34 @@ describe('trust-strip block', () => {
97
98
  }
98
99
  );
99
100
 
101
+ describe('numbered variant', () => {
102
+ const numbered = { ...mock, ...preview, variant: 'numbered', showPayments: false };
103
+
104
+ it('renders the preview content axe-clean, a hidden 01/02/03 in place of each icon', async () => {
105
+ const wrapper = mountBlock(numbered);
106
+ await flushIcons();
107
+ expect(wrapper.find('svg').exists()).toBe(false);
108
+ const numbers = wrapper.findAll('li > span[aria-hidden="true"]');
109
+ expect(numbers.map((n) => n.text())).toEqual(['01', '02', '03']);
110
+ for (const item of preview.items) expect(wrapper.text()).toContain(item.text);
111
+ expect(await axe(wrapper.element)).toHaveNoViolations();
112
+ });
113
+
114
+ it('ignores mobileLayout "scroll": a plain list, never a tab stop', () => {
115
+ const wrapper = mountBlock({ ...numbered, mobileLayout: 'scroll' });
116
+ expect(wrapper.find('[tabindex]').exists()).toBe(false);
117
+ expect(wrapper.get('ul').classes()).not.toContain('overflow-x-auto');
118
+ });
119
+
120
+ it('Tab reaches only the linked title', () => {
121
+ const wrapper = mountBlock(numbered);
122
+ const links = wrapper.findAll('a');
123
+ expect(links).toHaveLength(1);
124
+ expect(links[0]!.attributes('href')).toBe('/pages/returns');
125
+ expect(links[0]!.attributes('aria-label')).toBe(preview.items[2]!.linkLabel);
126
+ });
127
+ });
128
+
100
129
  it('has no axe violations with mobileLayout "scroll"', async () => {
101
130
  const wrapper = mountBlock({ ...mock, mobileLayout: 'scroll' });
102
131
  await flushIcons();
@@ -10,8 +10,8 @@
10
10
  "fieldId": "variant",
11
11
  "name": "Variant",
12
12
  "type": "select",
13
- "helpText": "columns is the default. columns shows icon, title and one line; inline shows icon and title only, in one centred row.",
14
- "metadata": { "options": ["columns", "inline"] },
13
+ "helpText": "columns is the default. columns shows icon, title and one line; inline shows icon and title only, in one centred row; numbered shows a large number in place of the icon, with title and one line, between hairlines.",
14
+ "metadata": { "options": ["columns", "inline", "numbered"] },
15
15
  "validators": { "required": true }
16
16
  },
17
17
  {
@@ -30,7 +30,7 @@
30
30
  "fieldId": "icon",
31
31
  "name": "Icon",
32
32
  "type": "tabler-icon",
33
- "helpText": "For example truck, arrow-back-up, shield-check or needle-thread.",
33
+ "helpText": "For example truck, arrow-back-up, shield-check or needle-thread. The numbered variant shows the item's number instead.",
34
34
  "validators": { "required": true }
35
35
  },
36
36
  {
@@ -46,7 +46,7 @@
46
46
  "name": "Text",
47
47
  "type": "string",
48
48
  "localized": true,
49
- "helpText": "One line, up to about 60 characters. Only shown in the columns variant.",
49
+ "helpText": "One line, up to about 60 characters. Shown in the columns and numbered variants.",
50
50
  "validators": { "maxLength": 60 }
51
51
  },
52
52
  {
@@ -0,0 +1,21 @@
1
+ {
2
+ "items": [
3
+ {
4
+ "icon": "needle-thread",
5
+ "title": "Made by people we know",
6
+ "text": "Every piece comes from one of nine workshops."
7
+ },
8
+ {
9
+ "icon": "truck",
10
+ "title": "Free delivery over $80",
11
+ "text": "Dispatched in 1 to 3 days, or collect from the shop."
12
+ },
13
+ {
14
+ "icon": "arrow-back-up",
15
+ "title": "30 days to change your mind",
16
+ "text": "Unused items back for a full refund.",
17
+ "linkLabel": "30 days to change your mind: our returns policy",
18
+ "href": "/pages/returns"
19
+ }
20
+ ]
21
+ }
@@ -115,18 +115,22 @@
115
115
  "header": {
116
116
  "primary": "Primary navigation",
117
117
  "menu": "Menu",
118
- "openMenu": "Open menu",
119
118
  "search": "Search",
120
119
  "searchField": "Search the shop",
121
120
  "cartEmpty": "Cart, empty",
122
121
  "cartOne": "Cart, 1 item",
123
122
  "cartMany": "Cart, {count} items",
124
- "wishlistEmpty": "Wishlist",
125
- "wishlistOne": "Wishlist, 1 item",
126
- "wishlistMany": "Wishlist, {count} items",
123
+ "wishlistEmpty": "Saved",
124
+ "wishlistOne": "Saved, 1 item",
125
+ "wishlistMany": "Saved, {count} items",
127
126
  "viewAll": "View all",
128
127
  "viewAllOf": "View all {label}",
129
- "cart": "Cart"
128
+ "cart": "Cart",
129
+ "saved": "Saved",
130
+ "savedItems": "Saved items",
131
+ "account": "Account",
132
+ "home": "{brand}, home",
133
+ "info": "Store information"
130
134
  },
131
135
  "editor": {
132
136
  "addLink": "Add a link"
@@ -354,7 +358,10 @@
354
358
  "carouselLabel": "{heading} products",
355
359
  "clearHistory": "Clear history",
356
360
  "headingHintLabel": "Add a heading",
357
- "headingHintHelp": "e.g. \"You may also like\""
361
+ "headingHintHelp": "e.g. \"You may also like\"",
362
+ "allFilter": "All",
363
+ "filterLabel": "Filter {heading}",
364
+ "filterEmpty": "Nothing in this category yet. Try another one."
358
365
  },
359
366
  "grid": {
360
367
  "sectionLabel": "{collection} products",
@@ -387,6 +394,8 @@
387
394
  "sortPriceDesc": "Price high to low",
388
395
  "sortNewest": "Newest",
389
396
  "columns": "Columns",
397
+ "sort": "Sort",
398
+ "filterAndSort": "Filter and sort",
390
399
  "noCollectionLabel": "Choose a collection",
391
400
  "noCollectionHelp": "Products, filters and counts come from the store. Pick a collection and the filters to show.",
392
401
  "noCategoryLabel": "This grid lists a category",
@@ -396,10 +405,8 @@
396
405
  "images": "Product images",
397
406
  "information": "Product information",
398
407
  "tabsLabel": "Product details",
399
- "zoom": "Zoom image {index} of {count}",
400
408
  "viewer": "{title}, images",
401
- "showImage": "Show image {index} of {count}: {alt}",
402
- "imageIndex": "{index} / {count}",
409
+ "openImage": "Open image {index} of {count}: {alt}",
403
410
  "saleBadge": "Sale",
404
411
  "saving": "Save {amount}",
405
412
  "taxNote": "Taxes included. Shipping calculated at checkout.",
@@ -115,18 +115,22 @@
115
115
  "header": {
116
116
  "primary": "Aðalvalmynd",
117
117
  "menu": "Valmynd",
118
- "openMenu": "Opna valmynd",
119
118
  "search": "Leita",
120
119
  "searchField": "Leita í versluninni",
121
120
  "cartEmpty": "Karfa, tóm",
122
121
  "cartOne": "Karfa, 1 vara",
123
122
  "cartMany": "Karfa, {count} vörur",
124
- "wishlistEmpty": "Óskalisti",
125
- "wishlistOne": "Óskalisti, 1 vara",
126
- "wishlistMany": "Óskalisti, {count} vörur",
123
+ "wishlistEmpty": "Vistað",
124
+ "wishlistOne": "Vistað, 1 vara",
125
+ "wishlistMany": "Vistað, {count} vörur",
127
126
  "viewAll": "Sjá allt",
128
127
  "viewAllOf": "Sjá allt: {label}",
129
- "cart": "Karfa"
128
+ "cart": "Karfa",
129
+ "saved": "Vistað",
130
+ "savedItems": "Vistaðar vörur",
131
+ "account": "Aðgangur",
132
+ "home": "{brand}, forsíða",
133
+ "info": "Upplýsingar um verslunina"
130
134
  },
131
135
  "editor": {
132
136
  "addLink": "Bæta við tengli"
@@ -354,7 +358,10 @@
354
358
  "carouselLabel": "Vörur í {heading}",
355
359
  "clearHistory": "Hreinsa feril",
356
360
  "headingHintLabel": "Bættu við fyrirsögn",
357
- "headingHintHelp": "t.d. „Þér gæti einnig líkað við“"
361
+ "headingHintHelp": "t.d. „Þér gæti einnig líkað við“",
362
+ "allFilter": "Allt",
363
+ "filterLabel": "Sía: {heading}",
364
+ "filterEmpty": "Ekkert í þessum flokki enn. Prófaðu annan."
358
365
  },
359
366
  "grid": {
360
367
  "sectionLabel": "Vörur í {collection}",
@@ -387,6 +394,8 @@
387
394
  "sortPriceDesc": "Verð, hátt til lágt",
388
395
  "sortNewest": "Nýjast",
389
396
  "columns": "Dálkar",
397
+ "sort": "Raða",
398
+ "filterAndSort": "Sía og raða",
390
399
  "noCollectionLabel": "Veldu vörulista",
391
400
  "noCollectionHelp": "Vörur, síur og fjöldi koma úr vefbúðinni. Veldu vörulista og hvaða síur eiga að birtast.",
392
401
  "noCategoryLabel": "Þessi tafla sýnir vöruflokk",
@@ -396,10 +405,8 @@
396
405
  "images": "Myndir af vörunni",
397
406
  "information": "Upplýsingar um vöruna",
398
407
  "tabsLabel": "Nánar um vöruna",
399
- "zoom": "Stækka mynd {index} af {count}",
400
408
  "viewer": "{title}, myndir",
401
- "showImage": "Sýna mynd {index} af {count}: {alt}",
402
- "imageIndex": "{index} / {count}",
409
+ "openImage": "Opna mynd {index} af {count}: {alt}",
403
410
  "saleBadge": "Tilboð",
404
411
  "saving": "Sparar {amount}",
405
412
  "taxNote": "Virðisaukaskattur innifalinn. Sendingarkostnaður reiknast í greiðslu.",
@@ -9,8 +9,9 @@
9
9
  "variant": "default",
10
10
  "brandText": "Northwind Goods",
11
11
  "links": [],
12
+ "drawerLayout": "accordion",
12
13
  "showSearch": true,
13
- "searchStyle": "icon",
14
+ "searchStyle": "field",
14
15
  "sticky": true,
15
16
  "transparentOverHero": false
16
17
  }
@@ -552,10 +553,10 @@
552
553
  "showByline": true,
553
554
  "coverImage": {
554
555
  "assetId": "demo-article-cover",
555
- "url": "/demo/article-cover.svg",
556
- "altText": "Unglazed stoneware bowls stacked on a wooden studio shelf",
557
- "width": 1920,
558
- "height": 1080
556
+ "url": "/images/reading.webp",
557
+ "altText": "Reading under a wool blanket",
558
+ "width": 1400,
559
+ "height": 933
559
560
  },
560
561
  "authorAvatar": {
561
562
  "assetId": "demo-avatar-6",
@@ -618,10 +619,10 @@
618
619
  "readingTime": "7 min read",
619
620
  "image": {
620
621
  "assetId": "demo-gallery-4",
621
- "url": "/demo/gallery-4.svg",
622
- "altText": "",
623
- "width": 1600,
624
- "height": 1000
622
+ "url": "/images/coffee-table.webp",
623
+ "altText": "A polka-dot mug of coffee with biscuits",
624
+ "width": 1400,
625
+ "height": 933
625
626
  }
626
627
  },
627
628
  {
@@ -634,10 +635,10 @@
634
635
  "readingTime": "4 min read",
635
636
  "image": {
636
637
  "assetId": "demo-gallery-2",
637
- "url": "/demo/gallery-2.svg",
638
- "altText": "",
639
- "width": 1600,
640
- "height": 1000
638
+ "url": "/images/mug.webp",
639
+ "altText": "A hand-painted stoneware mug",
640
+ "width": 1400,
641
+ "height": 934
641
642
  }
642
643
  },
643
644
  {
@@ -650,10 +651,10 @@
650
651
  "readingTime": "3 min read",
651
652
  "image": {
652
653
  "assetId": "demo-gallery-3",
653
- "url": "/demo/gallery-3.svg",
654
- "altText": "",
655
- "width": 1600,
656
- "height": 1000
654
+ "url": "/images/cup.webp",
655
+ "altText": "A teal mug on a gingham cloth",
656
+ "width": 1400,
657
+ "height": 952
657
658
  }
658
659
  }
659
660
  ]
@@ -712,7 +713,7 @@
712
713
  "id": "article-footer",
713
714
  "data": {
714
715
  "variant": "default",
715
- "background": "surface-strong",
716
+ "background": "primary",
716
717
  "brandText": "Northwind Goods",
717
718
  "description": "Knitwear, ceramics and kitchen goods from small workshops, made to be used every day. Studio and shop in Portland, Oregon.",
718
719
  "groups": [],
@@ -4,17 +4,6 @@
4
4
  },
5
5
  "title": "Your cart",
6
6
  "blocks": [
7
- {
8
- "apiId": "announcement-bar",
9
- "id": "cart-announcement",
10
- "data": {
11
- "variant": "primary",
12
- "message": "Free shipping on orders over $80",
13
- "linkLabel": "Details",
14
- "linkHref": "/pages/shipping",
15
- "dismissable": true
16
- }
17
- },
18
7
  {
19
8
  "apiId": "navigation",
20
9
  "id": "cart-navigation",
@@ -22,8 +11,9 @@
22
11
  "variant": "default",
23
12
  "brandText": "Northwind Goods",
24
13
  "links": [],
14
+ "drawerLayout": "accordion",
25
15
  "showSearch": true,
26
- "searchStyle": "icon",
16
+ "searchStyle": "field",
27
17
  "sticky": true,
28
18
  "transparentOverHero": false
29
19
  }
@@ -66,7 +56,7 @@
66
56
  "id": "cart-footer",
67
57
  "data": {
68
58
  "variant": "default",
69
- "background": "surface-strong",
59
+ "background": "primary",
70
60
  "brandText": "Northwind Goods",
71
61
  "description": "Knitwear, ceramics and kitchen goods from small workshops, made to be used every day. Studio and shop in Portland, Oregon.",
72
62
  "groups": [],
@@ -9,8 +9,9 @@
9
9
  "variant": "default",
10
10
  "brandText": "Northwind Goods",
11
11
  "links": [],
12
+ "drawerLayout": "accordion",
12
13
  "showSearch": true,
13
- "searchStyle": "icon",
14
+ "searchStyle": "field",
14
15
  "sticky": true,
15
16
  "transparentOverHero": false
16
17
  }
@@ -34,7 +35,7 @@
34
35
  "id": "category-header",
35
36
  "data": {
36
37
  "scope": "category",
37
- "variant": "text-only",
38
+ "variant": "image",
38
39
  "title": "Ceramics",
39
40
  "showCount": false,
40
41
  "showBreadcrumb": false,
@@ -53,6 +54,13 @@
53
54
  ]
54
55
  }
55
56
  ]
57
+ },
58
+ "image": {
59
+ "assetId": "demo-category-ceramics",
60
+ "url": "/images/terracotta.webp",
61
+ "altText": "Handmade terracotta pots and vases stacked together",
62
+ "width": 1400,
63
+ "height": 933
56
64
  }
57
65
  }
58
66
  },
@@ -61,8 +69,8 @@
61
69
  "id": "category-grid",
62
70
  "data": {
63
71
  "scope": "category",
64
- "variant": "sidebar",
65
- "columns": "3",
72
+ "variant": "filter-bar",
73
+ "columns": "4",
66
74
  "pageSize": "24",
67
75
  "paginationStyle": "load-more",
68
76
  "sortOptions": [
@@ -104,7 +112,7 @@
104
112
  "label": "Availability"
105
113
  }
106
114
  ],
107
- "showColumnSelect": true,
115
+ "showColumnSelect": false,
108
116
  "emptyTitle": "No products match these filters",
109
117
  "emptyText": "Try removing a filter or widening the price range."
110
118
  }
@@ -114,12 +122,12 @@
114
122
  "id": "category-footer",
115
123
  "data": {
116
124
  "variant": "default",
117
- "background": "surface-strong",
125
+ "background": "primary",
118
126
  "brandText": "Northwind Goods",
119
127
  "description": "Knitwear, ceramics and kitchen goods from small workshops, made to be used every day. Studio and shop in Portland, Oregon.",
120
128
  "groups": [],
121
129
  "links": [],
122
- "showNewsletter": true,
130
+ "showNewsletter": false,
123
131
  "newsletterTitle": "Letters from the workshop",
124
132
  "newsletterText": "New pieces, maker stories and the occasional early sale. Once a month.",
125
133
  "social": [],
@@ -9,8 +9,9 @@
9
9
  "variant": "default",
10
10
  "brandText": "Northwind Goods",
11
11
  "links": [],
12
+ "drawerLayout": "accordion",
12
13
  "showSearch": true,
13
- "searchStyle": "icon",
14
+ "searchStyle": "field",
14
15
  "sticky": true,
15
16
  "transparentOverHero": false
16
17
  }
@@ -89,10 +90,10 @@
89
90
  ],
90
91
  "image": {
91
92
  "assetId": "demo-collection-1",
92
- "url": "/demo/collection-1.svg",
93
- "altText": "Folded winter knitwear in oat, charcoal and moss",
94
- "width": 1600,
95
- "height": 1067
93
+ "url": "/images/sweater.webp",
94
+ "altText": "A folded knitted sweater",
95
+ "width": 1400,
96
+ "height": 933
96
97
  }
97
98
  }
98
99
  },
@@ -104,8 +105,8 @@
104
105
  "_type": "collection",
105
106
  "slug": "the-winter-edit"
106
107
  },
107
- "variant": "sidebar",
108
- "columns": "3",
108
+ "variant": "filter-bar",
109
+ "columns": "4",
109
110
  "pageSize": "24",
110
111
  "paginationStyle": "load-more",
111
112
  "sortOptions": [
@@ -147,7 +148,7 @@
147
148
  "label": "Availability"
148
149
  }
149
150
  ],
150
- "showColumnSelect": true,
151
+ "showColumnSelect": false,
151
152
  "emptyTitle": "No products match these filters",
152
153
  "emptyText": "Try removing a filter or widening the price range."
153
154
  }
@@ -163,10 +164,10 @@
163
164
  "primaryCtaHref": "/products/gift-card",
164
165
  "image": {
165
166
  "assetId": "demo-cta-split",
166
- "url": "/demo/cta-split.svg",
167
- "altText": "Darned elbow of a sage wool sweater",
168
- "width": 1200,
169
- "height": 900
167
+ "url": "/images/planters.webp",
168
+ "altText": "Ceramic planters with green plants",
169
+ "width": 932,
170
+ "height": 1400
170
171
  }
171
172
  }
172
173
  },
@@ -175,12 +176,12 @@
175
176
  "id": "collection-footer",
176
177
  "data": {
177
178
  "variant": "default",
178
- "background": "surface-strong",
179
+ "background": "primary",
179
180
  "brandText": "Northwind Goods",
180
181
  "description": "Knitwear, ceramics and kitchen goods from small workshops, made to be used every day. Studio and shop in Portland, Oregon.",
181
182
  "groups": [],
182
183
  "links": [],
183
- "showNewsletter": true,
184
+ "showNewsletter": false,
184
185
  "newsletterTitle": "Letters from the workshop",
185
186
  "newsletterText": "New pieces, maker stories and the occasional early sale. Once a month.",
186
187
  "social": [],