@eldrajs/theme-cli 0.2.8 → 0.2.10

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 (165) hide show
  1. package/CHANGELOG.md +3 -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 +82 -58
  25. package/template/blocks/collection-header/__tests__/Block.spec.ts +77 -1
  26. package/template/blocks/collection-header/preview.json +4 -4
  27. package/template/blocks/collection-header/preview.png +0 -0
  28. package/template/blocks/contact/preview.png +0 -0
  29. package/template/blocks/cta/preview.json +4 -4
  30. package/template/blocks/cta/preview.png +0 -0
  31. package/template/blocks/faq/preview.png +0 -0
  32. package/template/blocks/feature-grid/Block.vue +73 -4
  33. package/template/blocks/feature-grid/__tests__/Block.spec.ts +43 -1
  34. package/template/blocks/feature-grid/block.json +2 -2
  35. package/template/blocks/feature-grid/preview.json +49 -24
  36. package/template/blocks/feature-grid/preview.png +0 -0
  37. package/template/blocks/footer/Block.vue +186 -71
  38. package/template/blocks/footer/__tests__/Block.spec.ts +127 -32
  39. package/template/blocks/footer/block.json +42 -4
  40. package/template/blocks/footer/mock.json +31 -34
  41. package/template/blocks/footer/preview.png +0 -0
  42. package/template/blocks/form/preview.png +0 -0
  43. package/template/blocks/gallery/preview.json +24 -24
  44. package/template/blocks/gallery/preview.png +0 -0
  45. package/template/blocks/hero/Block.vue +117 -19
  46. package/template/blocks/hero/__tests__/Block.spec.ts +46 -0
  47. package/template/blocks/hero/block.json +36 -1
  48. package/template/blocks/hero/preview.json +33 -25
  49. package/template/blocks/hero/preview.png +0 -0
  50. package/template/blocks/image/preview.json +4 -4
  51. package/template/blocks/image/preview.png +0 -0
  52. package/template/blocks/logo-cloud/preview.png +0 -0
  53. package/template/blocks/navigation/Block.vue +623 -184
  54. package/template/blocks/navigation/__tests__/Block.spec.ts +416 -68
  55. package/template/blocks/navigation/__tests__/fixtures/menu.json +182 -0
  56. package/template/blocks/navigation/block.json +102 -6
  57. package/template/blocks/navigation/mock.json +279 -52
  58. package/template/blocks/navigation/preview.json +311 -0
  59. package/template/blocks/navigation/preview.png +0 -0
  60. package/template/blocks/newsletter/Block.vue +248 -144
  61. package/template/blocks/newsletter/__tests__/Block.spec.ts +42 -0
  62. package/template/blocks/newsletter/block.json +61 -2
  63. package/template/blocks/newsletter/preview.json +35 -0
  64. package/template/blocks/newsletter/preview.png +0 -0
  65. package/template/blocks/order-status/preview.png +0 -0
  66. package/template/blocks/pricing-table/preview.png +0 -0
  67. package/template/blocks/product-carousel/Block.vue +272 -26
  68. package/template/blocks/product-carousel/__tests__/Block.spec.ts +90 -0
  69. package/template/blocks/product-carousel/block.json +61 -0
  70. package/template/blocks/product-carousel/preview.json +12 -0
  71. package/template/blocks/product-carousel/preview.png +0 -0
  72. package/template/blocks/product-detail/Block.vue +148 -96
  73. package/template/blocks/product-detail/__tests__/Block.spec.ts +98 -74
  74. package/template/blocks/product-detail/block.json +11 -4
  75. package/template/blocks/product-detail/mock.json +53 -22
  76. package/template/blocks/product-detail/parts/Gallery.vue +52 -103
  77. package/template/blocks/product-detail/preview.png +0 -0
  78. package/template/blocks/quote/preview.png +0 -0
  79. package/template/blocks/rich-text/preview.png +0 -0
  80. package/template/blocks/search/Block.vue +1 -0
  81. package/template/blocks/search/TypeSection.vue +1 -0
  82. package/template/blocks/search/__tests__/Block.spec.ts +23 -0
  83. package/template/blocks/search/preview.png +0 -0
  84. package/template/blocks/split-content/Block.vue +98 -20
  85. package/template/blocks/split-content/__tests__/Block.spec.ts +57 -18
  86. package/template/blocks/split-content/block.json +72 -6
  87. package/template/blocks/split-content/preview.json +34 -13
  88. package/template/blocks/split-content/preview.png +0 -0
  89. package/template/blocks/stats/preview.png +0 -0
  90. package/template/blocks/tabs/preview.json +16 -16
  91. package/template/blocks/tabs/preview.png +0 -0
  92. package/template/blocks/team/preview.png +0 -0
  93. package/template/blocks/testimonials/preview.png +0 -0
  94. package/template/blocks/timeline/preview.png +0 -0
  95. package/template/blocks/trust-strip/Block.vue +67 -1
  96. package/template/blocks/trust-strip/__tests__/Block.spec.ts +30 -1
  97. package/template/blocks/trust-strip/block.json +4 -4
  98. package/template/blocks/trust-strip/preview.json +21 -0
  99. package/template/blocks/trust-strip/preview.png +0 -0
  100. package/template/blocks/video-embed/preview.png +0 -0
  101. package/template/blocks/wishlist/preview.png +0 -0
  102. package/template/i18n/en-US.json +16 -9
  103. package/template/i18n/is-IS.json +16 -9
  104. package/template/pages/article.page.json +19 -18
  105. package/template/pages/cart.page.json +3 -13
  106. package/template/pages/category.page.json +15 -7
  107. package/template/pages/collection.page.json +15 -14
  108. package/template/pages/home.page.json +217 -182
  109. package/template/pages/product.page.json +46 -36
  110. package/template/pages/products.page.json +3 -13
  111. package/template/pages/search.page.json +3 -13
  112. package/template/pages/wishlist.page.json +3 -13
  113. package/template/public/images/CREDITS.md +28 -0
  114. package/template/public/images/clay-hands.webp +0 -0
  115. package/template/public/images/coffee-table.webp +0 -0
  116. package/template/public/images/cup.webp +0 -0
  117. package/template/public/images/enamel-cups.webp +0 -0
  118. package/template/public/images/hero.webp +0 -0
  119. package/template/public/images/kitchen.webp +0 -0
  120. package/template/public/images/mug.webp +0 -0
  121. package/template/public/images/northwind-mark.svg +1 -0
  122. package/template/public/images/planters.webp +0 -0
  123. package/template/public/images/plates.webp +0 -0
  124. package/template/public/images/reading.webp +0 -0
  125. package/template/public/images/sweater.webp +0 -0
  126. package/template/public/images/terracotta.webp +0 -0
  127. package/template/public/images/throws.webp +0 -0
  128. package/template/public/images/vase.webp +0 -0
  129. package/template/public/images/wheel.webp +0 -0
  130. package/template/public/images/yarn-tools.webp +0 -0
  131. package/template/public/images/yarn.webp +0 -0
  132. package/template/stories/generated/collection-grid.stories.ts +6 -0
  133. package/template/stories/generated/feature-grid.stories.ts +6 -0
  134. package/template/stories/generated/footer.stories.ts +4 -4
  135. package/template/stories/generated/hero.stories.ts +6 -0
  136. package/template/stories/generated/navigation.stories.ts +14 -1
  137. package/template/stories/generated/newsletter.stories.ts +2 -1
  138. package/template/stories/generated/product-carousel.stories.ts +12 -0
  139. package/template/stories/generated/split-content.stories.ts +12 -0
  140. package/template/stories/generated/trust-strip.stories.ts +8 -1
  141. package/template/stories/pages/article.stories.ts +2 -1
  142. package/template/stories/pages/cart.stories.ts +2 -1
  143. package/template/stories/pages/category.stories.ts +2 -1
  144. package/template/stories/pages/collection.stories.ts +2 -1
  145. package/template/stories/pages/home.stories.ts +2 -1
  146. package/template/stories/pages/product.stories.ts +2 -1
  147. package/template/stories/pages/products.stories.ts +2 -1
  148. package/template/stories/pages/search.stories.ts +2 -1
  149. package/template/stories/pages/wishlist.stories.ts +2 -1
  150. package/template/stories/support/demoChrome.ts +32 -0
  151. package/template/stories/support/pageBlocks.ts +2 -4
  152. package/template/test/countPill.browser.spec.ts +21 -13
  153. package/template/test/localePrefix.spec.ts +11 -6
  154. package/template/test/pages/article.spec.ts +1 -1
  155. package/template/test/pages/category.spec.ts +34 -11
  156. package/template/test/pages/collection.spec.ts +182 -148
  157. package/template/test/pages/home.spec.ts +35 -40
  158. package/template/test/pages/hydration.spec.ts +4 -4
  159. package/template/test/pages/product.spec.ts +17 -14
  160. package/template/test/pages/seededPages.spec.ts +11 -6
  161. package/template/test/prerenderRefresh.browser.spec.ts +36 -15
  162. package/template/test/previewParity.browser.spec.ts +36 -2
  163. package/template/test/starter.spec.ts +31 -15
  164. package/template/test/storefront/gatewayPrerender.spec.ts +26 -0
  165. package/template/tokens.json +13 -13
@@ -0,0 +1,311 @@
1
+ {
2
+ "brandMark": {
3
+ "url": "/images/northwind-mark.svg",
4
+ "assetId": "demo-brand-mark",
5
+ "altText": "Northwind Goods",
6
+ "width": 64,
7
+ "height": 64
8
+ },
9
+ "links": [
10
+ {
11
+ "kind": "url",
12
+ "url": "/products",
13
+ "label": "Shop",
14
+ "sections": [
15
+ {
16
+ "heading": "Ceramics",
17
+ "headingLink": {
18
+ "kind": "url",
19
+ "url": "/categories/home/ceramics",
20
+ "label": "Ceramics"
21
+ },
22
+ "links": [
23
+ {
24
+ "kind": "url",
25
+ "url": "/collections/mugs-cups",
26
+ "label": "Mugs and cups"
27
+ },
28
+ {
29
+ "kind": "url",
30
+ "url": "/collections/bowls",
31
+ "label": "Bowls"
32
+ },
33
+ {
34
+ "kind": "url",
35
+ "url": "/collections/plates-platters",
36
+ "label": "Plates and platters"
37
+ },
38
+ {
39
+ "kind": "url",
40
+ "url": "/collections/vases",
41
+ "label": "Vases"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "heading": "Knitwear",
47
+ "headingLink": {
48
+ "kind": "url",
49
+ "url": "/categories/knitwear",
50
+ "label": "Knitwear"
51
+ },
52
+ "links": [
53
+ {
54
+ "kind": "url",
55
+ "url": "/collections/sweaters",
56
+ "label": "Sweaters"
57
+ },
58
+ {
59
+ "kind": "url",
60
+ "url": "/collections/cardigans",
61
+ "label": "Cardigans"
62
+ },
63
+ {
64
+ "kind": "url",
65
+ "url": "/collections/hats-scarves",
66
+ "label": "Hats and scarves"
67
+ },
68
+ {
69
+ "kind": "url",
70
+ "url": "/collections/yarn",
71
+ "label": "Yarn"
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "heading": "Kitchen",
77
+ "headingLink": {
78
+ "kind": "url",
79
+ "url": "/categories/home/kitchen",
80
+ "label": "Kitchen"
81
+ },
82
+ "links": [
83
+ {
84
+ "kind": "url",
85
+ "url": "/collections/jugs-pitchers",
86
+ "label": "Jugs and pitchers"
87
+ },
88
+ {
89
+ "kind": "url",
90
+ "url": "/collections/boards",
91
+ "label": "Boards"
92
+ },
93
+ {
94
+ "kind": "url",
95
+ "url": "/collections/utensils",
96
+ "label": "Utensils"
97
+ },
98
+ {
99
+ "kind": "url",
100
+ "url": "/collections/table-linen",
101
+ "label": "Table linen"
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "heading": "Picked for you",
107
+ "display": "card",
108
+ "links": [
109
+ {
110
+ "kind": "url",
111
+ "url": "/products/speckled-latte-mug",
112
+ "label": "Speckled latte mug",
113
+ "display": "card",
114
+ "imageUrl": "/images/mug.webp"
115
+ },
116
+ {
117
+ "kind": "url",
118
+ "url": "/products/merino-crew-sweater",
119
+ "label": "Merino crew sweater",
120
+ "display": "card",
121
+ "imageUrl": "/images/sweater.webp"
122
+ }
123
+ ]
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "kind": "url",
129
+ "url": "/categories/home/ceramics",
130
+ "label": "Ceramics",
131
+ "sections": [
132
+ {
133
+ "heading": "By type",
134
+ "headingLink": {
135
+ "kind": "url",
136
+ "url": "/categories/home/ceramics",
137
+ "label": "By type"
138
+ },
139
+ "links": [
140
+ {
141
+ "kind": "url",
142
+ "url": "/collections/mugs-cups",
143
+ "label": "Mugs and cups"
144
+ },
145
+ {
146
+ "kind": "url",
147
+ "url": "/collections/bowls",
148
+ "label": "Bowls"
149
+ },
150
+ {
151
+ "kind": "url",
152
+ "url": "/collections/plates-platters",
153
+ "label": "Plates and platters"
154
+ },
155
+ {
156
+ "kind": "url",
157
+ "url": "/collections/vases",
158
+ "label": "Vases",
159
+ "badge": "New"
160
+ },
161
+ {
162
+ "kind": "url",
163
+ "url": "/collections/planters",
164
+ "label": "Planters"
165
+ }
166
+ ],
167
+ "seeAll": {
168
+ "label": "All ceramics",
169
+ "link": {
170
+ "kind": "url",
171
+ "url": "/categories/home/ceramics",
172
+ "label": "Ceramics"
173
+ }
174
+ }
175
+ },
176
+ {
177
+ "heading": "By glaze",
178
+ "links": [
179
+ {
180
+ "kind": "url",
181
+ "url": "/collections/speckled",
182
+ "label": "Speckled"
183
+ },
184
+ {
185
+ "kind": "url",
186
+ "url": "/collections/celadon",
187
+ "label": "Celadon"
188
+ },
189
+ {
190
+ "kind": "url",
191
+ "url": "/collections/cobalt-on-white",
192
+ "label": "Cobalt on white"
193
+ },
194
+ {
195
+ "kind": "url",
196
+ "url": "/collections/raw-clay",
197
+ "label": "Raw clay"
198
+ }
199
+ ]
200
+ },
201
+ {
202
+ "heading": "Makers",
203
+ "headingLink": {
204
+ "kind": "url",
205
+ "url": "/pages/makers",
206
+ "label": "Makers"
207
+ },
208
+ "links": [
209
+ {
210
+ "kind": "url",
211
+ "url": "/pages/makers/harbour-pottery",
212
+ "label": "Harbour Pottery"
213
+ },
214
+ {
215
+ "kind": "url",
216
+ "url": "/pages/makers/kiln-lane",
217
+ "label": "Kiln Lane"
218
+ },
219
+ {
220
+ "kind": "url",
221
+ "url": "/pages/makers/studio-ash",
222
+ "label": "Studio Ash"
223
+ }
224
+ ],
225
+ "seeAll": {
226
+ "label": "Meet the makers",
227
+ "link": {
228
+ "kind": "url",
229
+ "url": "/pages/makers",
230
+ "label": "Makers"
231
+ }
232
+ }
233
+ },
234
+ {
235
+ "heading": "Best sellers",
236
+ "display": "card",
237
+ "links": [
238
+ {
239
+ "kind": "url",
240
+ "url": "/products/speckled-latte-mug",
241
+ "label": "Speckled latte mug",
242
+ "display": "card",
243
+ "imageUrl": "/images/mug.webp"
244
+ },
245
+ {
246
+ "kind": "url",
247
+ "url": "/products/hand-thrown-serving-bowl",
248
+ "label": "Hand-thrown serving bowl",
249
+ "display": "card",
250
+ "imageUrl": "/images/bowl.webp"
251
+ }
252
+ ]
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "kind": "url",
258
+ "url": "/categories/knitwear",
259
+ "label": "Knitwear"
260
+ },
261
+ {
262
+ "kind": "url",
263
+ "url": "/categories/home/kitchen",
264
+ "label": "Kitchen"
265
+ },
266
+ {
267
+ "kind": "url",
268
+ "url": "/journal",
269
+ "label": "Journal",
270
+ "sections": [
271
+ {
272
+ "links": [
273
+ {
274
+ "kind": "url",
275
+ "url": "/pages/care",
276
+ "label": "Care guides",
277
+ "description": "Washing linen, seasoning boards, storing wool"
278
+ },
279
+ {
280
+ "kind": "url",
281
+ "url": "/journal/a-visit-to-the-kortrijk-flax-mill",
282
+ "label": "Workshop visits",
283
+ "description": "Mornings with the people who make our goods"
284
+ },
285
+ {
286
+ "kind": "url",
287
+ "url": "/journal/how-to-wash-and-store-linen",
288
+ "label": "At home",
289
+ "description": "Small rituals and slow mornings"
290
+ }
291
+ ],
292
+ "seeAll": {
293
+ "label": "All articles",
294
+ "link": {
295
+ "kind": "url",
296
+ "url": "/journal",
297
+ "label": "Journal"
298
+ }
299
+ }
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "kind": "url",
305
+ "url": "/collections/the-winter-edit",
306
+ "label": "Sale"
307
+ }
308
+ ],
309
+ "ctaLabel": null,
310
+ "cta": null
311
+ }