@lightspeed/crane 1.2.1 → 1.2.2

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 (33) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +11 -0
  3. package/UPGRADE.md +30 -0
  4. package/dist/app.d.mts +29 -1
  5. package/dist/app.d.ts +29 -1
  6. package/dist/cli.mjs +8 -8
  7. package/package.json +7 -8
  8. package/template/eslint.config.cjs +1 -0
  9. package/template/footers/example-footer/component/MadeWith.vue +1 -1
  10. package/template/package.json +3 -5
  11. package/template/page-templates/assets/template_cover_image.png +0 -0
  12. package/template/page-templates/example-template/configuration.ts +22 -0
  13. package/template/page-templates/example-template/pages/catalog.ts +8 -0
  14. package/template/page-templates/example-template/pages/category.ts +8 -0
  15. package/template/page-templates/example-template/pages/home.ts +178 -0
  16. package/template/page-templates/example-template/pages/product.ts +8 -0
  17. package/template/reference/sections/about-us/settings/content.ts +4 -7
  18. package/template/reference/sections/about-us/showcases/1.ts +0 -3
  19. package/template/reference/sections/about-us/showcases/2.ts +0 -3
  20. package/template/reference/sections/intro-slider/assets/category_4.jpg +0 -0
  21. package/template/reference/sections/intro-slider/assets/category_4@2x.jpg +0 -0
  22. package/template/reference/sections/intro-slider/settings/content.ts +1 -0
  23. package/template/reference/sections/intro-slider/showcases/1.ts +0 -18
  24. package/template/reference/sections/intro-slider/showcases/2.ts +0 -18
  25. package/template/reference/sections/tag-lines/settings/content.ts +1 -0
  26. package/template/reference/sections/tag-lines/showcases/1.ts +0 -12
  27. package/template/reference/sections/tag-lines/showcases/2.ts +0 -12
  28. package/template/sections/example-section/settings/content.ts +0 -3
  29. package/template/sections/example-section/showcases/1.ts +0 -12
  30. package/template/sections/example-section/showcases/2.ts +0 -12
  31. package/template/sections/example-section/showcases/3.ts +0 -12
  32. package/template/templates/template.ts +0 -12
  33. package/template/.eslintrc.cjs +0 -3
@@ -0,0 +1,8 @@
1
+ export default {
2
+ sections: [
3
+ {
4
+ type: 'default',
5
+ id: 'product-browser',
6
+ },
7
+ ],
8
+ };
@@ -0,0 +1,178 @@
1
+ export default {
2
+ sections: [
3
+ {
4
+ type: 'default',
5
+ id: 'slider',
6
+ showcase_id: '001',
7
+ },
8
+ {
9
+ type: 'custom',
10
+ id: 'example-section',
11
+ showcase_id: '1',
12
+ },
13
+ {
14
+ type: 'custom',
15
+ id: 'example-section',
16
+ showcase_overrides: {
17
+ content: {
18
+ section_title: {
19
+ type: 'INPUTBOX',
20
+ text: '$label.template_standard_showcase_1.section_title.text',
21
+ },
22
+
23
+ images: {
24
+ type: 'DECK',
25
+ cards: [
26
+ {
27
+ settings: {
28
+ image_text: {
29
+ type: 'TEXTAREA',
30
+ text: '$label.showcase_2.image_text_1.text',
31
+ },
32
+ image_content: {
33
+ type: 'IMAGE',
34
+ imageData: {
35
+ set: {
36
+ MOBILE_WEBP_LOW_RES: {
37
+ url: 'new_tshirts_collection_mobile_low.jpeg',
38
+ },
39
+ MOBILE_WEBP_HI_RES: {
40
+ url: 'new_tshirts_collection_mobile_high.jpeg',
41
+ },
42
+ WEBP_LOW_RES: {
43
+ url: 'new_tshirts_collection_pc_low.jpeg',
44
+ },
45
+ WEBP_HI_2X_RES: {
46
+ url: 'new_tshirts_collection_pc_high.jpeg',
47
+ },
48
+ },
49
+ borderInfo: {},
50
+ },
51
+ },
52
+ image_link: {
53
+ type: 'INPUTBOX',
54
+ text: '$label.showcase_2.image_link_1.text',
55
+ },
56
+ },
57
+ },
58
+ {
59
+ settings: {
60
+ image_text: {
61
+ type: 'TEXTAREA',
62
+ text: '$label.showcase_2.image_text_2.text',
63
+ },
64
+ image_content: {
65
+ type: 'IMAGE',
66
+ imageData: {
67
+ set: {
68
+ MOBILE_WEBP_LOW_RES: {
69
+ url: 'autumn_looks_mobile_low.jpeg',
70
+ },
71
+ MOBILE_WEBP_HI_RES: {
72
+ url: 'autumn_looks_mobile_high.jpeg',
73
+ },
74
+ WEBP_LOW_RES: {
75
+ url: 'autumn_looks_pc_low.jpeg',
76
+ },
77
+ WEBP_HI_2X_RES: {
78
+ url: 'autumn_looks_pc_high.jpeg',
79
+ },
80
+ },
81
+ borderInfo: {},
82
+ },
83
+ },
84
+ },
85
+ },
86
+
87
+ {
88
+ settings: {
89
+ image_text: {
90
+ type: 'TEXTAREA',
91
+ text: '$label.showcase_2.image_text_3.text',
92
+ },
93
+ image_content: {
94
+ type: 'IMAGE',
95
+ imageData: {
96
+ set: {
97
+ MOBILE_WEBP_LOW_RES: {
98
+ url: 'bianka_wardrobe_mobile_low.jpeg',
99
+ },
100
+ MOBILE_WEBP_HI_RES: {
101
+ url: 'bianka_wardrobe_mobile_high.jpeg',
102
+ },
103
+ WEBP_LOW_RES: {
104
+ url: 'bianka_wardrobe_pc_low.jpeg',
105
+ },
106
+ WEBP_HI_2X_RES: {
107
+ url: 'bianka_wardrobe_pc_high.jpeg',
108
+ },
109
+ },
110
+ borderInfo: {},
111
+ },
112
+ },
113
+ },
114
+ },
115
+
116
+ {
117
+ settings: {
118
+ image_text: {
119
+ type: 'TEXTAREA',
120
+ text: '$label.showcase_2.image_text_4.text',
121
+ },
122
+ image_content: {
123
+ type: 'IMAGE',
124
+ imageData: {
125
+ set: {
126
+ MOBILE_WEBP_LOW_RES: {
127
+ url: 'story_of_jane_mobile_low.jpeg',
128
+ },
129
+ MOBILE_WEBP_HI_RES: {
130
+ url: 'story_of_jane_mobile_high.jpeg',
131
+ },
132
+ WEBP_LOW_RES: {
133
+ url: 'story_of_jane_pc_low.jpeg',
134
+ },
135
+ WEBP_HI_2X_RES: {
136
+ url: 'story_of_jane_pc_high.jpeg',
137
+ },
138
+ },
139
+ borderInfo: {},
140
+ },
141
+ },
142
+ },
143
+ },
144
+ ],
145
+ },
146
+ },
147
+ design: {
148
+ section_title: {
149
+ type: 'TEXT',
150
+ font: 'global.fontFamily.body',
151
+ size: 42,
152
+ bold: true,
153
+ italic: true,
154
+ color: '#222',
155
+ },
156
+ image_text: {
157
+ type: 'TEXT',
158
+ size: 22,
159
+ bold: false,
160
+ italic: true,
161
+ },
162
+ background: {
163
+ type: 'BACKGROUND',
164
+ style: 'COLOR',
165
+ color: 'global.color.background',
166
+ },
167
+ image_content: {
168
+ type: 'IMAGE',
169
+ overlay: 'GRADIENT',
170
+ color: ['#FFFFFF', '#CCCCCC'],
171
+ },
172
+ },
173
+ layoutId: 'Caption_Under_Image',
174
+ blockName: '$label.showcase_2.blockName',
175
+ },
176
+ },
177
+ ],
178
+ };
@@ -0,0 +1,8 @@
1
+ export default {
2
+ sections: [
3
+ {
4
+ type: 'default',
5
+ id: 'product-browser',
6
+ },
7
+ ],
8
+ };
@@ -41,20 +41,17 @@ const content: ContentEditor = {
41
41
  label: '$label.image_content.label',
42
42
  defaults: {
43
43
  set: {
44
- LOW_RES: {
45
- url: 'section_picture.jpg',
46
- },
47
44
  MOBILE_WEBP_LOW_RES: {
48
- url: 'section_picture.jpg',
45
+ url: 'our_company_in_numbers.jpg',
49
46
  },
50
47
  MOBILE_WEBP_HI_RES: {
51
- url: 'section_picture@2x.jpg',
48
+ url: 'our_company_in_numbers.jpg',
52
49
  },
53
50
  WEBP_LOW_RES: {
54
- url: 'section_picture@2x.jpg',
51
+ url: 'our_company_in_numbers.jpg',
55
52
  },
56
53
  WEBP_HI_2X_RES: {
57
- url: 'section_picture@2x.jpg',
54
+ url: 'our_company_in_numbers.jpg',
58
55
  },
59
56
  },
60
57
  borderInfo: {},
@@ -18,9 +18,6 @@ export default {
18
18
  type: 'IMAGE',
19
19
  imageData: {
20
20
  set: {
21
- LOW_RES: {
22
- url: 'our_company_in_numbers.jpg',
23
- },
24
21
  MOBILE_WEBP_LOW_RES: {
25
22
  url: 'our_company_in_numbers.jpg',
26
23
  },
@@ -18,9 +18,6 @@ export default {
18
18
  type: 'IMAGE',
19
19
  imageData: {
20
20
  set: {
21
- LOW_RES: {
22
- url: 'our_team.jpg',
23
- },
24
21
  MOBILE_WEBP_LOW_RES: {
25
22
  url: 'our_team.jpg',
26
23
  },
@@ -35,6 +35,7 @@ export default {
35
35
  image_text: {
36
36
  type: 'TEXTAREA',
37
37
  label: '$label.slide_text.label',
38
+ placeholder: '$label.slide_text.label',
38
39
  },
39
40
  },
40
41
  },
@@ -40,9 +40,6 @@ export default {
40
40
  type: 'IMAGE',
41
41
  imageData: {
42
42
  set: {
43
- LOW_RES: {
44
- url: 'category_1.jpg',
45
- },
46
43
  MOBILE_WEBP_LOW_RES: {
47
44
  url: 'category_1.jpg',
48
45
  },
@@ -71,9 +68,6 @@ export default {
71
68
  type: 'IMAGE',
72
69
  imageData: {
73
70
  set: {
74
- LOW_RES: {
75
- url: 'category_2.jpg',
76
- },
77
71
  MOBILE_WEBP_LOW_RES: {
78
72
  url: 'category_2.jpg',
79
73
  },
@@ -102,9 +96,6 @@ export default {
102
96
  type: 'IMAGE',
103
97
  imageData: {
104
98
  set: {
105
- LOW_RES: {
106
- url: 'category_3.jpg',
107
- },
108
99
  MOBILE_WEBP_LOW_RES: {
109
100
  url: 'category_3.jpg',
110
101
  },
@@ -133,9 +124,6 @@ export default {
133
124
  type: 'IMAGE',
134
125
  imageData: {
135
126
  set: {
136
- LOW_RES: {
137
- url: 'category_4.jpg',
138
- },
139
127
  MOBILE_WEBP_LOW_RES: {
140
128
  url: 'category_4.jpg',
141
129
  },
@@ -165,9 +153,6 @@ export default {
165
153
  type: 'IMAGE',
166
154
  imageData: {
167
155
  set: {
168
- LOW_RES: {
169
- url: 'category_5.jpg',
170
- },
171
156
  MOBILE_WEBP_LOW_RES: {
172
157
  url: 'category_5.jpg',
173
158
  },
@@ -196,9 +181,6 @@ export default {
196
181
  type: 'IMAGE',
197
182
  imageData: {
198
183
  set: {
199
- LOW_RES: {
200
- url: 'category_6.png',
201
- },
202
184
  MOBILE_WEBP_LOW_RES: {
203
185
  url: 'category_6.jpg',
204
186
  },
@@ -36,9 +36,6 @@ export default {
36
36
  type: 'IMAGE',
37
37
  imageData: {
38
38
  set: {
39
- LOW_RES: {
40
- url: 'bike_1.jpg',
41
- },
42
39
  MOBILE_WEBP_LOW_RES: {
43
40
  url: 'bike_1.jpg',
44
41
  },
@@ -67,9 +64,6 @@ export default {
67
64
  type: 'IMAGE',
68
65
  imageData: {
69
66
  set: {
70
- LOW_RES: {
71
- url: 'bike_2.jpg',
72
- },
73
67
  MOBILE_WEBP_LOW_RES: {
74
68
  url: 'bike_2.jpg',
75
69
  },
@@ -98,9 +92,6 @@ export default {
98
92
  type: 'IMAGE',
99
93
  imageData: {
100
94
  set: {
101
- LOW_RES: {
102
- url: 'bike_3.jpg',
103
- },
104
95
  MOBILE_WEBP_LOW_RES: {
105
96
  url: 'bike_3.jpg',
106
97
  },
@@ -129,9 +120,6 @@ export default {
129
120
  type: 'IMAGE',
130
121
  imageData: {
131
122
  set: {
132
- LOW_RES: {
133
- url: 'bike_4.jpg',
134
- },
135
123
  MOBILE_WEBP_LOW_RES: {
136
124
  url: 'bike_4.jpg',
137
125
  },
@@ -161,9 +149,6 @@ export default {
161
149
  type: 'IMAGE',
162
150
  imageData: {
163
151
  set: {
164
- LOW_RES: {
165
- url: 'bike_5.jpg',
166
- },
167
152
  MOBILE_WEBP_LOW_RES: {
168
153
  url: 'bike_5.jpg',
169
154
  },
@@ -192,9 +177,6 @@ export default {
192
177
  type: 'IMAGE',
193
178
  imageData: {
194
179
  set: {
195
- LOW_RES: {
196
- url: 'bike_6.jpg',
197
- },
198
180
  MOBILE_WEBP_LOW_RES: {
199
181
  url: 'bike_6.jpg',
200
182
  },
@@ -21,6 +21,7 @@ export default {
21
21
  text: {
22
22
  type: 'INPUTBOX',
23
23
  label: '$label.content.deck.highlighted_text.label',
24
+ placeholder: '$label.content.deck.highlighted_text.label',
24
25
  },
25
26
  image_content: {
26
27
  type: 'IMAGE',
@@ -31,9 +31,6 @@ export default {
31
31
  type: 'IMAGE',
32
32
  imageData: {
33
33
  set: {
34
- LOW_RES: {
35
- url: 'sweater_weather.jpg',
36
- },
37
34
  MOBILE_WEBP_LOW_RES: {
38
35
  url: 'sweater_weather.jpg',
39
36
  },
@@ -62,9 +59,6 @@ export default {
62
59
  type: 'IMAGE',
63
60
  imageData: {
64
61
  set: {
65
- LOW_RES: {
66
- url: 'shop_chelsea_boots.jpg',
67
- },
68
62
  MOBILE_WEBP_LOW_RES: {
69
63
  url: 'shop_chelsea_boots.jpg',
70
64
  },
@@ -93,9 +87,6 @@ export default {
93
87
  type: 'IMAGE',
94
88
  imageData: {
95
89
  set: {
96
- LOW_RES: {
97
- url: 'explore_our_holiday_gift_guide.jpg',
98
- },
99
90
  MOBILE_WEBP_LOW_RES: {
100
91
  url: 'explore_our_holiday_gift_guide.jpg',
101
92
  },
@@ -120,9 +111,6 @@ export default {
120
111
  type: 'IMAGE',
121
112
  imageData: {
122
113
  set: {
123
- LOW_RES: {
124
- url: 'fall_is_here.jpg',
125
- },
126
114
  MOBILE_WEBP_LOW_RES: {
127
115
  url: 'fall_is_here.jpg',
128
116
  },
@@ -31,9 +31,6 @@ export default {
31
31
  type: 'IMAGE',
32
32
  imageData: {
33
33
  set: {
34
- LOW_RES: {
35
- url: 'mountain_and_road_bikes.jpg',
36
- },
37
34
  MOBILE_WEBP_LOW_RES: {
38
35
  url: 'mountain_and_road_bikes.jpg',
39
36
  },
@@ -62,9 +59,6 @@ export default {
62
59
  type: 'IMAGE',
63
60
  imageData: {
64
61
  set: {
65
- LOW_RES: {
66
- url: 'hybrid_bikes.jpg',
67
- },
68
62
  MOBILE_WEBP_LOW_RES: {
69
63
  url: 'hybrid_bikes.jpg',
70
64
  },
@@ -93,9 +87,6 @@ export default {
93
87
  type: 'IMAGE',
94
88
  imageData: {
95
89
  set: {
96
- LOW_RES: {
97
- url: 'folding_bikes.jpg',
98
- },
99
90
  MOBILE_WEBP_LOW_RES: {
100
91
  url: 'folding_bikes.jpg',
101
92
  },
@@ -120,9 +111,6 @@ export default {
120
111
  type: 'IMAGE',
121
112
  imageData: {
122
113
  set: {
123
- LOW_RES: {
124
- url: 'what_we_sell.jpg',
125
- },
126
114
  MOBILE_WEBP_LOW_RES: {
127
115
  url: 'what_we_sell.jpg',
128
116
  },
@@ -27,9 +27,6 @@ export default {
27
27
  label: '$label.image_content_1.label',
28
28
  defaults: {
29
29
  set: {
30
- LOW_RES: {
31
- url: 'new_arrivals_mobile_low.jpeg',
32
- },
33
30
  MOBILE_WEBP_LOW_RES: {
34
31
  url: 'new_arrivals_mobile_low.jpeg',
35
32
  },
@@ -33,9 +33,6 @@ export default {
33
33
  type: 'IMAGE',
34
34
  imageData: {
35
35
  set: {
36
- LOW_RES: {
37
- url: 'new_arrivals_mobile_low.jpeg',
38
- },
39
36
  MOBILE_WEBP_LOW_RES: {
40
37
  url: 'new_arrivals_mobile_low.jpeg',
41
38
  },
@@ -71,9 +68,6 @@ export default {
71
68
  type: 'IMAGE',
72
69
  imageData: {
73
70
  set: {
74
- LOW_RES: {
75
- url: 'sport_look_mobile_low.jpeg',
76
- },
77
71
  MOBILE_WEBP_LOW_RES: {
78
72
  url: 'sport_look_mobile_low.jpeg',
79
73
  },
@@ -109,9 +103,6 @@ export default {
109
103
  type: 'IMAGE',
110
104
  imageData: {
111
105
  set: {
112
- LOW_RES: {
113
- url: 'summer_accessories_mobile_low.jpeg',
114
- },
115
106
  MOBILE_WEBP_LOW_RES: {
116
107
  url: 'summer_accessories_mobile_low.jpeg',
117
108
  },
@@ -147,9 +138,6 @@ export default {
147
138
  type: 'IMAGE',
148
139
  imageData: {
149
140
  set: {
150
- LOW_RES: {
151
- url: 'trending_footwear_mobile_low.jpeg',
152
- },
153
141
  MOBILE_WEBP_LOW_RES: {
154
142
  url: 'trending_footwear_mobile_low.jpeg',
155
143
  },
@@ -27,9 +27,6 @@ export default {
27
27
  type: 'IMAGE',
28
28
  imageData: {
29
29
  set: {
30
- LOW_RES: {
31
- url: 'new_tshirts_collection_mobile_low.jpeg',
32
- },
33
30
  MOBILE_WEBP_LOW_RES: {
34
31
  url: 'new_tshirts_collection_mobile_low.jpeg',
35
32
  },
@@ -62,9 +59,6 @@ export default {
62
59
  type: 'IMAGE',
63
60
  imageData: {
64
61
  set: {
65
- LOW_RES: {
66
- url: 'autumn_looks_mobile_low.jpeg',
67
- },
68
62
  MOBILE_WEBP_LOW_RES: {
69
63
  url: 'autumn_looks_mobile_low.jpeg',
70
64
  },
@@ -94,9 +88,6 @@ export default {
94
88
  type: 'IMAGE',
95
89
  imageData: {
96
90
  set: {
97
- LOW_RES: {
98
- url: 'bianka_wardrobe_mobile_low.jpeg',
99
- },
100
91
  MOBILE_WEBP_LOW_RES: {
101
92
  url: 'bianka_wardrobe_mobile_low.jpeg',
102
93
  },
@@ -126,9 +117,6 @@ export default {
126
117
  type: 'IMAGE',
127
118
  imageData: {
128
119
  set: {
129
- LOW_RES: {
130
- url: 'story_of_jane_mobile_low.jpeg',
131
- },
132
120
  MOBILE_WEBP_LOW_RES: {
133
121
  url: 'story_of_jane_mobile_low.jpeg',
134
122
  },
@@ -29,9 +29,6 @@ export default {
29
29
  type: 'IMAGE',
30
30
  imageData: {
31
31
  set: {
32
- LOW_RES: {
33
- url: 'bike_new_arrivals_low.jpg',
34
- },
35
32
  MOBILE_WEBP_LOW_RES: {
36
33
  url: 'bike_new_arrivals_low.jpg',
37
34
  },
@@ -67,9 +64,6 @@ export default {
67
64
  type: 'IMAGE',
68
65
  imageData: {
69
66
  set: {
70
- LOW_RES: {
71
- url: 'fixed_gears_low.jpg',
72
- },
73
67
  MOBILE_WEBP_LOW_RES: {
74
68
  url: 'fixed_gears_low.jpg',
75
69
  },
@@ -105,9 +99,6 @@ export default {
105
99
  type: 'IMAGE',
106
100
  imageData: {
107
101
  set: {
108
- LOW_RES: {
109
- url: 'repair_service_low.jpg',
110
- },
111
102
  MOBILE_WEBP_LOW_RES: {
112
103
  url: 'repair_service_low.jpg',
113
104
  },
@@ -143,9 +134,6 @@ export default {
143
134
  type: 'IMAGE',
144
135
  imageData: {
145
136
  set: {
146
- LOW_RES: {
147
- url: 'bike_accessories_low.jpg',
148
- },
149
137
  MOBILE_WEBP_LOW_RES: {
150
138
  url: 'bike_accessories_low.jpg',
151
139
  },
@@ -49,9 +49,6 @@ export default {
49
49
  type: 'IMAGE',
50
50
  imageData: {
51
51
  set: {
52
- LOW_RES: {
53
- url: 'new_tshirts_collection_mobile_low.jpeg',
54
- },
55
52
  MOBILE_WEBP_LOW_RES: {
56
53
  url: 'new_tshirts_collection_mobile_low.jpeg',
57
54
  },
@@ -84,9 +81,6 @@ export default {
84
81
  type: 'IMAGE',
85
82
  imageData: {
86
83
  set: {
87
- LOW_RES: {
88
- url: 'autumn_looks_mobile_low.jpeg',
89
- },
90
84
  MOBILE_WEBP_LOW_RES: {
91
85
  url: 'autumn_looks_mobile_low.jpeg',
92
86
  },
@@ -116,9 +110,6 @@ export default {
116
110
  type: 'IMAGE',
117
111
  imageData: {
118
112
  set: {
119
- LOW_RES: {
120
- url: 'bianka_wardrobe_mobile_low.jpeg',
121
- },
122
113
  MOBILE_WEBP_LOW_RES: {
123
114
  url: 'bianka_wardrobe_mobile_low.jpeg',
124
115
  },
@@ -148,9 +139,6 @@ export default {
148
139
  type: 'IMAGE',
149
140
  imageData: {
150
141
  set: {
151
- LOW_RES: {
152
- url: 'story_of_jane_mobile_low.jpeg',
153
- },
154
142
  MOBILE_WEBP_LOW_RES: {
155
143
  url: 'story_of_jane_mobile_low.jpeg',
156
144
  },
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: '@lightspeed/eslint-config-crane',
3
- };