@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.
- package/CHANGELOG.md +2 -1
- package/package.json +1 -1
- package/template/.eldra/block-types.d.ts +28 -7
- package/template/.eldra/manifest.json +1034 -355
- package/template/.eldra/previews.json +35 -35
- package/template/README.md +32 -0
- package/template/app/assets/main.css +23 -0
- package/template/app/plugins/eldra-storefront.ts +3 -0
- package/template/app/storefront/demo.ts +75 -24
- package/template/app/storefront/gateway.ts +16 -2
- package/template/blocks/announcement-bar/preview.png +0 -0
- package/template/blocks/article/preview.json +4 -4
- package/template/blocks/article/preview.png +0 -0
- package/template/blocks/article-list/Block.vue +48 -19
- package/template/blocks/article-list/__tests__/Block.spec.ts +15 -0
- package/template/blocks/article-list/preview.json +43 -43
- package/template/blocks/article-list/preview.png +0 -0
- package/template/blocks/breadcrumbs/preview.png +0 -0
- package/template/blocks/cart/preview.png +0 -0
- package/template/blocks/collection-grid/Block.vue +260 -9
- package/template/blocks/collection-grid/__tests__/Block.spec.ts +202 -0
- package/template/blocks/collection-grid/block.json +3 -3
- package/template/blocks/collection-grid/preview.png +0 -0
- package/template/blocks/collection-header/Block.vue +65 -52
- package/template/blocks/collection-header/preview.json +4 -4
- package/template/blocks/collection-header/preview.png +0 -0
- package/template/blocks/contact/preview.png +0 -0
- package/template/blocks/cta/preview.json +4 -4
- package/template/blocks/cta/preview.png +0 -0
- package/template/blocks/faq/preview.png +0 -0
- package/template/blocks/feature-grid/Block.vue +73 -4
- package/template/blocks/feature-grid/__tests__/Block.spec.ts +43 -1
- package/template/blocks/feature-grid/block.json +2 -2
- package/template/blocks/feature-grid/preview.json +49 -24
- package/template/blocks/feature-grid/preview.png +0 -0
- package/template/blocks/footer/Block.vue +186 -71
- package/template/blocks/footer/__tests__/Block.spec.ts +127 -32
- package/template/blocks/footer/block.json +42 -4
- package/template/blocks/footer/mock.json +31 -34
- package/template/blocks/footer/preview.png +0 -0
- package/template/blocks/form/preview.png +0 -0
- package/template/blocks/gallery/preview.json +24 -24
- package/template/blocks/gallery/preview.png +0 -0
- package/template/blocks/hero/Block.vue +117 -19
- package/template/blocks/hero/__tests__/Block.spec.ts +46 -0
- package/template/blocks/hero/block.json +36 -1
- package/template/blocks/hero/preview.json +33 -25
- package/template/blocks/hero/preview.png +0 -0
- package/template/blocks/image/preview.json +4 -4
- package/template/blocks/image/preview.png +0 -0
- package/template/blocks/logo-cloud/preview.png +0 -0
- package/template/blocks/navigation/Block.vue +622 -184
- package/template/blocks/navigation/__tests__/Block.spec.ts +406 -68
- package/template/blocks/navigation/__tests__/fixtures/menu.json +182 -0
- package/template/blocks/navigation/block.json +102 -6
- package/template/blocks/navigation/mock.json +279 -52
- package/template/blocks/navigation/preview.json +311 -0
- package/template/blocks/navigation/preview.png +0 -0
- package/template/blocks/newsletter/Block.vue +248 -144
- package/template/blocks/newsletter/__tests__/Block.spec.ts +42 -0
- package/template/blocks/newsletter/block.json +61 -2
- package/template/blocks/newsletter/preview.json +35 -0
- package/template/blocks/newsletter/preview.png +0 -0
- package/template/blocks/order-status/preview.png +0 -0
- package/template/blocks/pricing-table/preview.png +0 -0
- package/template/blocks/product-carousel/Block.vue +272 -26
- package/template/blocks/product-carousel/__tests__/Block.spec.ts +90 -0
- package/template/blocks/product-carousel/block.json +61 -0
- package/template/blocks/product-carousel/preview.json +12 -0
- package/template/blocks/product-carousel/preview.png +0 -0
- package/template/blocks/product-detail/Block.vue +148 -96
- package/template/blocks/product-detail/__tests__/Block.spec.ts +98 -74
- package/template/blocks/product-detail/block.json +11 -4
- package/template/blocks/product-detail/mock.json +53 -22
- package/template/blocks/product-detail/parts/Gallery.vue +52 -103
- package/template/blocks/product-detail/preview.png +0 -0
- package/template/blocks/quote/preview.png +0 -0
- package/template/blocks/rich-text/preview.png +0 -0
- package/template/blocks/search/Block.vue +1 -0
- package/template/blocks/search/TypeSection.vue +1 -0
- package/template/blocks/search/__tests__/Block.spec.ts +23 -0
- package/template/blocks/search/preview.png +0 -0
- package/template/blocks/split-content/Block.vue +98 -20
- package/template/blocks/split-content/__tests__/Block.spec.ts +57 -18
- package/template/blocks/split-content/block.json +72 -6
- package/template/blocks/split-content/preview.json +34 -13
- package/template/blocks/split-content/preview.png +0 -0
- package/template/blocks/stats/preview.png +0 -0
- package/template/blocks/tabs/preview.json +16 -16
- package/template/blocks/tabs/preview.png +0 -0
- package/template/blocks/team/preview.png +0 -0
- package/template/blocks/testimonials/preview.png +0 -0
- package/template/blocks/timeline/preview.png +0 -0
- package/template/blocks/trust-strip/Block.vue +67 -1
- package/template/blocks/trust-strip/__tests__/Block.spec.ts +30 -1
- package/template/blocks/trust-strip/block.json +4 -4
- package/template/blocks/trust-strip/preview.json +21 -0
- package/template/blocks/trust-strip/preview.png +0 -0
- package/template/blocks/video-embed/preview.png +0 -0
- package/template/blocks/wishlist/preview.png +0 -0
- package/template/i18n/en-US.json +16 -9
- package/template/i18n/is-IS.json +16 -9
- package/template/pages/article.page.json +19 -18
- package/template/pages/cart.page.json +3 -13
- package/template/pages/category.page.json +15 -7
- package/template/pages/collection.page.json +15 -14
- package/template/pages/home.page.json +217 -182
- package/template/pages/product.page.json +46 -36
- package/template/pages/products.page.json +3 -13
- package/template/pages/search.page.json +3 -13
- package/template/pages/wishlist.page.json +3 -13
- package/template/public/images/CREDITS.md +28 -0
- package/template/public/images/clay-hands.webp +0 -0
- package/template/public/images/coffee-table.webp +0 -0
- package/template/public/images/cup.webp +0 -0
- package/template/public/images/enamel-cups.webp +0 -0
- package/template/public/images/hero.webp +0 -0
- package/template/public/images/kitchen.webp +0 -0
- package/template/public/images/mug.webp +0 -0
- package/template/public/images/northwind-mark.svg +1 -0
- package/template/public/images/planters.webp +0 -0
- package/template/public/images/plates.webp +0 -0
- package/template/public/images/reading.webp +0 -0
- package/template/public/images/sweater.webp +0 -0
- package/template/public/images/terracotta.webp +0 -0
- package/template/public/images/throws.webp +0 -0
- package/template/public/images/vase.webp +0 -0
- package/template/public/images/wheel.webp +0 -0
- package/template/public/images/yarn-tools.webp +0 -0
- package/template/public/images/yarn.webp +0 -0
- package/template/stories/generated/collection-grid.stories.ts +6 -0
- package/template/stories/generated/feature-grid.stories.ts +6 -0
- package/template/stories/generated/footer.stories.ts +4 -4
- package/template/stories/generated/hero.stories.ts +6 -0
- package/template/stories/generated/navigation.stories.ts +14 -1
- package/template/stories/generated/newsletter.stories.ts +2 -1
- package/template/stories/generated/product-carousel.stories.ts +12 -0
- package/template/stories/generated/split-content.stories.ts +12 -0
- package/template/stories/generated/trust-strip.stories.ts +8 -1
- package/template/stories/pages/article.stories.ts +2 -1
- package/template/stories/pages/cart.stories.ts +2 -1
- package/template/stories/pages/category.stories.ts +2 -1
- package/template/stories/pages/collection.stories.ts +2 -1
- package/template/stories/pages/home.stories.ts +2 -1
- package/template/stories/pages/product.stories.ts +2 -1
- package/template/stories/pages/products.stories.ts +2 -1
- package/template/stories/pages/search.stories.ts +2 -1
- package/template/stories/pages/wishlist.stories.ts +2 -1
- package/template/stories/support/demoChrome.ts +32 -0
- package/template/stories/support/pageBlocks.ts +2 -4
- package/template/test/countPill.browser.spec.ts +21 -13
- package/template/test/localePrefix.spec.ts +11 -6
- package/template/test/pages/article.spec.ts +1 -1
- package/template/test/pages/category.spec.ts +34 -11
- package/template/test/pages/collection.spec.ts +182 -148
- package/template/test/pages/home.spec.ts +35 -40
- package/template/test/pages/hydration.spec.ts +4 -4
- package/template/test/pages/product.spec.ts +17 -14
- package/template/test/pages/seededPages.spec.ts +11 -6
- package/template/test/prerenderRefresh.browser.spec.ts +36 -15
- package/template/test/starter.spec.ts +31 -15
- package/template/test/storefront/gatewayPrerender.spec.ts +26 -0
- 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
|
+
}
|
|
Binary file
|