@lightspeed/crane 1.1.0 → 1.1.1

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 (39) hide show
  1. package/dist/app.d.mts +147 -10
  2. package/dist/app.d.ts +147 -10
  3. package/dist/app.mjs +1 -1
  4. package/dist/cli.mjs +22 -11
  5. package/package.json +5 -2
  6. package/template/footers/example-footer/ExampleFooter.vue +36 -2
  7. package/template/footers/example-footer/component/ReportAbuse.vue +18 -0
  8. package/template/footers/example-footer/entity/color.ts +4 -0
  9. package/template/footers/example-footer/settings/content.ts +3 -0
  10. package/template/footers/example-footer/settings/design.ts +11 -0
  11. package/template/footers/example-footer/settings/translations.ts +12 -0
  12. package/template/footers/example-footer/showcases/1.ts +2 -0
  13. package/template/footers/example-footer/showcases/translations.ts +9 -0
  14. package/template/footers/example-footer/type.ts +2 -2
  15. package/template/headers/example-header/ExampleHeader.vue +20 -7
  16. package/template/headers/example-header/assets/cart.svg +20 -0
  17. package/template/headers/example-header/assets/search.svg +13 -0
  18. package/template/headers/example-header/component/Cart.vue +64 -0
  19. package/template/headers/example-header/component/SearchForm.vue +89 -0
  20. package/template/headers/example-header/showcases/1.ts +11 -0
  21. package/template/headers/example-header/type.ts +2 -2
  22. package/template/package.json +3 -2
  23. package/template/sections/example-section/component/image/ImagesGrid.vue +18 -37
  24. package/template/sections/example-section/settings/content.ts +53 -55
  25. package/template/sections/example-section/settings/translations.ts +27 -24
  26. package/template/sections/example-section/showcases/1.ts +143 -103
  27. package/template/sections/example-section/showcases/2.ts +127 -103
  28. package/template/sections/example-section/showcases/translations.ts +4 -0
  29. package/template/templates/template.ts +143 -103
  30. package/types.d.ts +14 -1
  31. package/template/footers/example-footer/component/SampleComponent.vue +0 -11
  32. package/template/headers/settings/content.ts +0 -1
  33. package/template/headers/settings/design.ts +0 -1
  34. package/template/headers/settings/layout.ts +0 -1
  35. /package/template/{footers → headers/example-header}/settings/content.ts +0 -0
  36. /package/template/{footers → headers/example-header}/settings/design.ts +0 -0
  37. /package/template/{footers → headers/example-header}/settings/layout.ts +0 -0
  38. /package/template/{footers → headers/example-header}/settings/translations.ts +0 -0
  39. /package/template/headers/{settings → example-header/showcases}/translations.ts +0 -0
@@ -18,117 +18,157 @@ export default {
18
18
  type: 'TEXTAREA',
19
19
  text: '$label.showcase_1.section_description.text',
20
20
  },
21
- image_text_1: {
22
- type: 'TEXTAREA',
23
- text: '$label.showcase_1.image_text_1.text',
24
- },
25
- image_text_2: {
26
- type: 'TEXTAREA',
27
- text: '$label.showcase_1.image_text_2.text',
28
- },
29
- image_text_3: {
30
- type: 'TEXTAREA',
31
- text: '$label.showcase_1.image_text_3.text',
32
- },
33
- image_text_4: {
34
- type: 'TEXTAREA',
35
- text: '$label.showcase_1.image_text_4.text',
36
- },
37
- image_content_1: {
38
- type: 'IMAGE',
39
- imageData: {
40
- set: {
41
- LOW_RES: {
42
- url: 'new_arrivals_mobile_low.jpeg',
43
- },
44
- MOBILE_WEBP_LOW_RES: {
45
- url: 'new_arrivals_mobile_low.jpeg',
46
- },
47
- MOBILE_WEBP_HI_RES: {
48
- url: 'new_arrivals_mobile_high.jpeg',
49
- },
50
- WEBP_LOW_RES: {
51
- url: 'new_arrivals_pc_low.jpeg',
52
- },
53
- WEBP_HI_2X_RES: {
54
- url: 'new_arrivals_pc_high.jpeg',
21
+
22
+ images: {
23
+ type: 'DECK',
24
+ cards: [
25
+ {
26
+ settings: {
27
+ image_text: {
28
+ type: 'TEXTAREA',
29
+ text: '$label.showcase_1.image_text_1.text',
30
+ },
31
+
32
+ image_content: {
33
+ type: 'IMAGE',
34
+ imageData: {
35
+ set: {
36
+ LOW_RES: {
37
+ url: 'new_arrivals_mobile_low.jpeg',
38
+ },
39
+ MOBILE_WEBP_LOW_RES: {
40
+ url: 'new_arrivals_mobile_low.jpeg',
41
+ },
42
+ MOBILE_WEBP_HI_RES: {
43
+ url: 'new_arrivals_mobile_high.jpeg',
44
+ },
45
+ WEBP_LOW_RES: {
46
+ url: 'new_arrivals_pc_low.jpeg',
47
+ },
48
+ WEBP_HI_2X_RES: {
49
+ url: 'new_arrivals_pc_high.jpeg',
50
+ },
51
+ },
52
+ borderInfo: {},
53
+ },
54
+ },
55
+
56
+ image_link: {
57
+ type: 'INPUTBOX',
58
+ text: '$label.showcase_1.image_link_1.text',
59
+ },
55
60
  },
56
61
  },
57
- borderInfo: {},
58
- },
59
- },
60
- image_content_2: {
61
- type: 'IMAGE',
62
- imageData: {
63
- set: {
64
- LOW_RES: {
65
- url: 'sport_look_mobile_low.jpeg',
66
- },
67
- MOBILE_WEBP_LOW_RES: {
68
- url: 'sport_look_mobile_low.jpeg',
69
- },
70
- MOBILE_WEBP_HI_RES: {
71
- url: 'sport_look_mobile_high.jpeg',
72
- },
73
- WEBP_LOW_RES: {
74
- url: 'sport_look_pc_low.jpeg',
75
- },
76
- WEBP_HI_2X_RES: {
77
- url: 'sport_look_pc_high.jpeg',
62
+
63
+ {
64
+ settings: {
65
+ image_text: {
66
+ type: 'TEXTAREA',
67
+ text: '$label.showcase_1.image_text_2.text',
68
+ },
69
+
70
+ image_content: {
71
+ type: 'IMAGE',
72
+ imageData: {
73
+ set: {
74
+ LOW_RES: {
75
+ url: 'sport_look_mobile_low.jpeg',
76
+ },
77
+ MOBILE_WEBP_LOW_RES: {
78
+ url: 'sport_look_mobile_low.jpeg',
79
+ },
80
+ MOBILE_WEBP_HI_RES: {
81
+ url: 'sport_look_mobile_high.jpeg',
82
+ },
83
+ WEBP_LOW_RES: {
84
+ url: 'sport_look_pc_low.jpeg',
85
+ },
86
+ WEBP_HI_2X_RES: {
87
+ url: 'sport_look_pc_high.jpeg',
88
+ },
89
+ },
90
+ borderInfo: {},
91
+ },
92
+ },
93
+
94
+ image_link: {
95
+ type: 'INPUTBOX',
96
+ text: '$label.showcase_1.image_link_1.text',
97
+ },
78
98
  },
79
99
  },
80
- borderInfo: {},
81
- },
82
- },
83
- image_content_3: {
84
- type: 'IMAGE',
85
- imageData: {
86
- set: {
87
- LOW_RES: {
88
- url: 'summer_accessories_mobile_low.jpeg',
89
- },
90
- MOBILE_WEBP_LOW_RES: {
91
- url: 'summer_accessories_mobile_low.jpeg',
92
- },
93
- MOBILE_WEBP_HI_RES: {
94
- url: 'summer_accessories_mobile_high.jpeg',
95
- },
96
- WEBP_LOW_RES: {
97
- url: 'summer_accessories_pc_low.jpeg',
98
- },
99
- WEBP_HI_2X_RES: {
100
- url: 'summer_accessories_pc_high.jpeg',
100
+
101
+ {
102
+ settings: {
103
+ image_text: {
104
+ type: 'TEXTAREA',
105
+ text: '$label.showcase_1.image_text_3.text',
106
+ },
107
+
108
+ image_content: {
109
+ type: 'IMAGE',
110
+ imageData: {
111
+ set: {
112
+ LOW_RES: {
113
+ url: 'summer_accessories_mobile_low.jpeg',
114
+ },
115
+ MOBILE_WEBP_LOW_RES: {
116
+ url: 'summer_accessories_mobile_low.jpeg',
117
+ },
118
+ MOBILE_WEBP_HI_RES: {
119
+ url: 'summer_accessories_mobile_high.jpeg',
120
+ },
121
+ WEBP_LOW_RES: {
122
+ url: 'summer_accessories_pc_low.jpeg',
123
+ },
124
+ WEBP_HI_2X_RES: {
125
+ url: 'summer_accessories_pc_high.jpeg',
126
+ },
127
+ },
128
+ borderInfo: {},
129
+ },
130
+ },
131
+
132
+ image_link: {
133
+ type: 'INPUTBOX',
134
+ text: '$label.showcase_1.image_link_1.text',
135
+ },
101
136
  },
102
137
  },
103
- borderInfo: {},
104
- },
105
- },
106
- image_content_4: {
107
- type: 'IMAGE',
108
- imageData: {
109
- set: {
110
- LOW_RES: {
111
- url: 'trending_footwear_mobile_low.jpeg',
112
- },
113
- MOBILE_WEBP_LOW_RES: {
114
- url: 'trending_footwear_mobile_low.jpeg',
115
- },
116
- MOBILE_WEBP_HI_RES: {
117
- url: 'trending_footwear_mobile_high.jpeg',
118
- },
119
- WEBP_LOW_RES: {
120
- url: 'trending_footwear_pc_low.jpeg',
121
- },
122
- WEBP_HI_2X_RES: {
123
- url: 'trending_footwear_pc_high.jpeg',
138
+
139
+ {
140
+ settings: {
141
+ image_text: {
142
+ type: 'TEXTAREA',
143
+ text: '$label.showcase_1.image_text_4.text',
144
+ },
145
+
146
+ image_content: {
147
+ type: 'IMAGE',
148
+ imageData: {
149
+ set: {
150
+ LOW_RES: {
151
+ url: 'trending_footwear_mobile_low.jpeg',
152
+ },
153
+ MOBILE_WEBP_LOW_RES: {
154
+ url: 'trending_footwear_mobile_low.jpeg',
155
+ },
156
+ MOBILE_WEBP_HI_RES: {
157
+ url: 'trending_footwear_mobile_high.jpeg',
158
+ },
159
+ WEBP_LOW_RES: {
160
+ url: 'trending_footwear_pc_low.jpeg',
161
+ },
162
+ WEBP_HI_2X_RES: {
163
+ url: 'trending_footwear_pc_high.jpeg',
164
+ },
165
+ },
166
+ borderInfo: {},
167
+ },
168
+ },
124
169
  },
125
170
  },
126
- borderInfo: {},
127
- },
128
- },
129
- image_link_1: {
130
- type: 'TEXTAREA',
131
- text: '$label.showcase_1.image_link_1.text',
171
+ ],
132
172
  },
133
173
  },
134
174
  design: {
@@ -13,117 +13,141 @@ export default {
13
13
  type: 'INPUTBOX',
14
14
  text: '$label.showcase_2.section_title.text',
15
15
  },
16
- image_text_1: {
17
- type: 'TEXTAREA',
18
- text: '$label.showcase_2.image_text_1.text',
19
- },
20
- image_text_2: {
21
- type: 'TEXTAREA',
22
- text: '$label.showcase_2.image_text_2.text',
23
- },
24
- image_text_3: {
25
- type: 'TEXTAREA',
26
- text: '$label.showcase_2.image_text_3.text',
27
- },
28
- image_text_4: {
29
- type: 'TEXTAREA',
30
- text: '$label.showcase_2.image_text_4.text',
31
- },
32
- image_content_1: {
33
- type: 'IMAGE',
34
- imageData: {
35
- set: {
36
- LOW_RES: {
37
- url: 'new_tshirts_collection_mobile_low.jpeg',
38
- },
39
- MOBILE_WEBP_LOW_RES: {
40
- url: 'new_tshirts_collection_mobile_low.jpeg',
41
- },
42
- MOBILE_WEBP_HI_RES: {
43
- url: 'new_tshirts_collection_mobile_high.jpeg',
44
- },
45
- WEBP_LOW_RES: {
46
- url: 'new_tshirts_collection_pc_low.jpeg',
47
- },
48
- WEBP_HI_2X_RES: {
49
- url: 'new_tshirts_collection_pc_high.jpeg',
16
+
17
+ images: {
18
+ type: 'DECK',
19
+ cards: [
20
+ {
21
+ settings: {
22
+ image_text: {
23
+ type: 'TEXTAREA',
24
+ text: '$label.showcase_2.image_text_1.text',
25
+ },
26
+ image_content: {
27
+ type: 'IMAGE',
28
+ imageData: {
29
+ set: {
30
+ LOW_RES: {
31
+ url: 'new_tshirts_collection_mobile_low.jpeg',
32
+ },
33
+ MOBILE_WEBP_LOW_RES: {
34
+ url: 'new_tshirts_collection_mobile_low.jpeg',
35
+ },
36
+ MOBILE_WEBP_HI_RES: {
37
+ url: 'new_tshirts_collection_mobile_high.jpeg',
38
+ },
39
+ WEBP_LOW_RES: {
40
+ url: 'new_tshirts_collection_pc_low.jpeg',
41
+ },
42
+ WEBP_HI_2X_RES: {
43
+ url: 'new_tshirts_collection_pc_high.jpeg',
44
+ },
45
+ },
46
+ borderInfo: {},
47
+ },
48
+ },
49
+ image_link: {
50
+ type: 'INPUTBOX',
51
+ text: '$label.showcase_2.image_link_1.text',
52
+ },
50
53
  },
51
54
  },
52
- borderInfo: {},
53
- },
54
- },
55
- image_content_2: {
56
- type: 'IMAGE',
57
- imageData: {
58
- set: {
59
- LOW_RES: {
60
- url: 'autumn_looks_mobile_low.jpeg',
61
- },
62
- MOBILE_WEBP_LOW_RES: {
63
- url: 'autumn_looks_mobile_low.jpeg',
64
- },
65
- MOBILE_WEBP_HI_RES: {
66
- url: 'autumn_looks_mobile_high.jpeg',
67
- },
68
- WEBP_LOW_RES: {
69
- url: 'autumn_looks_pc_low.jpeg',
70
- },
71
- WEBP_HI_2X_RES: {
72
- url: 'autumn_looks_pc_high.jpeg',
55
+ {
56
+ settings: {
57
+ image_text: {
58
+ type: 'TEXTAREA',
59
+ text: '$label.showcase_2.image_text_2.text',
60
+ },
61
+ image_content: {
62
+ type: 'IMAGE',
63
+ imageData: {
64
+ set: {
65
+ LOW_RES: {
66
+ url: 'autumn_looks_mobile_low.jpeg',
67
+ },
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
+ },
73
84
  },
74
85
  },
75
- borderInfo: {},
76
- },
77
- },
78
- image_content_3: {
79
- type: 'IMAGE',
80
- imageData: {
81
- set: {
82
- LOW_RES: {
83
- url: 'bianka_wardrobe_mobile_low.jpeg',
84
- },
85
- MOBILE_WEBP_LOW_RES: {
86
- url: 'bianka_wardrobe_mobile_low.jpeg',
87
- },
88
- MOBILE_WEBP_HI_RES: {
89
- url: 'bianka_wardrobe_mobile_high.jpeg',
90
- },
91
- WEBP_LOW_RES: {
92
- url: 'bianka_wardrobe_pc_low.jpeg',
93
- },
94
- WEBP_HI_2X_RES: {
95
- url: 'bianka_wardrobe_pc_high.jpeg',
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
+ LOW_RES: {
98
+ url: 'bianka_wardrobe_mobile_low.jpeg',
99
+ },
100
+ MOBILE_WEBP_LOW_RES: {
101
+ url: 'bianka_wardrobe_mobile_low.jpeg',
102
+ },
103
+ MOBILE_WEBP_HI_RES: {
104
+ url: 'bianka_wardrobe_mobile_high.jpeg',
105
+ },
106
+ WEBP_LOW_RES: {
107
+ url: 'bianka_wardrobe_pc_low.jpeg',
108
+ },
109
+ WEBP_HI_2X_RES: {
110
+ url: 'bianka_wardrobe_pc_high.jpeg',
111
+ },
112
+ },
113
+ borderInfo: {},
114
+ },
115
+ },
96
116
  },
97
117
  },
98
- borderInfo: {},
99
- },
100
- },
101
- image_content_4: {
102
- type: 'IMAGE',
103
- imageData: {
104
- set: {
105
- LOW_RES: {
106
- url: 'story_of_jane_mobile_low.jpeg',
107
- },
108
- MOBILE_WEBP_LOW_RES: {
109
- url: 'story_of_jane_mobile_low.jpeg',
110
- },
111
- MOBILE_WEBP_HI_RES: {
112
- url: 'story_of_jane_mobile_high.jpeg',
113
- },
114
- WEBP_LOW_RES: {
115
- url: 'story_of_jane_pc_low.jpeg',
116
- },
117
- WEBP_HI_2X_RES: {
118
- url: 'story_of_jane_pc_high.jpeg',
118
+
119
+ {
120
+ settings: {
121
+ image_text: {
122
+ type: 'TEXTAREA',
123
+ text: '$label.showcase_2.image_text_4.text',
124
+ },
125
+ image_content: {
126
+ type: 'IMAGE',
127
+ imageData: {
128
+ set: {
129
+ LOW_RES: {
130
+ url: 'story_of_jane_mobile_low.jpeg',
131
+ },
132
+ MOBILE_WEBP_LOW_RES: {
133
+ url: 'story_of_jane_mobile_low.jpeg',
134
+ },
135
+ MOBILE_WEBP_HI_RES: {
136
+ url: 'story_of_jane_mobile_high.jpeg',
137
+ },
138
+ WEBP_LOW_RES: {
139
+ url: 'story_of_jane_pc_low.jpeg',
140
+ },
141
+ WEBP_HI_2X_RES: {
142
+ url: 'story_of_jane_pc_high.jpeg',
143
+ },
144
+ },
145
+ borderInfo: {},
146
+ },
147
+ },
119
148
  },
120
149
  },
121
- borderInfo: {},
122
- },
123
- },
124
- image_link_1: {
125
- type: 'TEXTAREA',
126
- text: '$label.showcase_2.image_link_1.text',
150
+ ],
127
151
  },
128
152
  },
129
153
  design: {
@@ -10,6 +10,9 @@ export default {
10
10
  '$label.showcase_1.image_text_3.text': 'Summer accessories',
11
11
  '$label.showcase_1.image_text_4.text': 'Trending footwear',
12
12
  '$label.showcase_1.image_link_1.text': '/products',
13
+
14
+ '$label.card_button_title': 'Card button',
15
+
13
16
  '$label.showcase_2.blockName': 'Reference section — Apparel',
14
17
  '$label.showcase_2.section_title.text': 'Trending collections',
15
18
  '$label.showcase_2.image_text_1.text': 'New t-shirts collection',
@@ -31,6 +34,7 @@ export default {
31
34
  '$label.showcase_1.image_text_3.text': 'Zomeraccessoires',
32
35
  '$label.showcase_1.image_text_4.text': 'Trending schoenen',
33
36
  '$label.showcase_1.image_link_1.text': '/products',
37
+
34
38
  '$label.showcase_2.blockName': 'Referentiesectie — Kleding',
35
39
  '$label.showcase_2.section_title.text': 'Trending collecties',
36
40
  '$label.showcase_2.image_text_1.text': 'Nieuwe t-shirtscollectie',