@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
@@ -34,117 +34,157 @@ export default {
34
34
  type: 'INPUTBOX',
35
35
  text: '$label.template_standard_showcase_1.section_title.text',
36
36
  },
37
- image_text_1: {
38
- type: 'TEXTAREA',
39
- text: '$label.showcase_2.image_text_1.text',
40
- },
41
- image_text_2: {
42
- type: 'TEXTAREA',
43
- text: '$label.showcase_2.image_text_2.text',
44
- },
45
- image_text_3: {
46
- type: 'TEXTAREA',
47
- text: '$label.showcase_2.image_text_3.text',
48
- },
49
- image_text_4: {
50
- type: 'TEXTAREA',
51
- text: '$label.showcase_2.image_text_4.text',
52
- },
53
- image_content_1: {
54
- type: 'IMAGE',
55
- imageData: {
56
- set: {
57
- LOW_RES: {
58
- url: 'new_tshirts_collection_mobile_low.jpeg',
59
- },
60
- MOBILE_WEBP_LOW_RES: {
61
- url: 'new_tshirts_collection_mobile_low.jpeg',
62
- },
63
- MOBILE_WEBP_HI_RES: {
64
- url: 'new_tshirts_collection_mobile_high.jpeg',
65
- },
66
- WEBP_LOW_RES: {
67
- url: 'new_tshirts_collection_pc_low.jpeg',
68
- },
69
- WEBP_HI_2X_RES: {
70
- url: 'new_tshirts_collection_pc_high.jpeg',
37
+
38
+ images: {
39
+ type: 'DECK',
40
+ cards: [
41
+ {
42
+ settings: {
43
+ image_text: {
44
+ type: 'TEXTAREA',
45
+ text: '$label.showcase_1.image_text_1.text',
46
+ },
47
+
48
+ image_content: {
49
+ type: 'IMAGE',
50
+ imageData: {
51
+ set: {
52
+ LOW_RES: {
53
+ url: 'new_arrivals_mobile_low.jpeg',
54
+ },
55
+ MOBILE_WEBP_LOW_RES: {
56
+ url: 'new_arrivals_mobile_low.jpeg',
57
+ },
58
+ MOBILE_WEBP_HI_RES: {
59
+ url: 'new_arrivals_mobile_high.jpeg',
60
+ },
61
+ WEBP_LOW_RES: {
62
+ url: 'new_arrivals_pc_low.jpeg',
63
+ },
64
+ WEBP_HI_2X_RES: {
65
+ url: 'new_arrivals_pc_high.jpeg',
66
+ },
67
+ },
68
+ borderInfo: {},
69
+ },
70
+ },
71
+
72
+ image_link: {
73
+ type: 'INPUTBOX',
74
+ text: '$label.showcase_1.image_link_1.text',
75
+ },
71
76
  },
72
77
  },
73
- borderInfo: {},
74
- },
75
- },
76
- image_content_2: {
77
- type: 'IMAGE',
78
- imageData: {
79
- set: {
80
- LOW_RES: {
81
- url: 'autumn_looks_mobile_low.jpeg',
82
- },
83
- MOBILE_WEBP_LOW_RES: {
84
- url: 'autumn_looks_mobile_low.jpeg',
85
- },
86
- MOBILE_WEBP_HI_RES: {
87
- url: 'autumn_looks_mobile_high.jpeg',
88
- },
89
- WEBP_LOW_RES: {
90
- url: 'autumn_looks_pc_low.jpeg',
91
- },
92
- WEBP_HI_2X_RES: {
93
- url: 'autumn_looks_pc_high.jpeg',
78
+
79
+ {
80
+ settings: {
81
+ image_text: {
82
+ type: 'TEXTAREA',
83
+ text: '$label.showcase_1.image_text_2.text',
84
+ },
85
+
86
+ image_content: {
87
+ type: 'IMAGE',
88
+ imageData: {
89
+ set: {
90
+ LOW_RES: {
91
+ url: 'sport_look_mobile_low.jpeg',
92
+ },
93
+ MOBILE_WEBP_LOW_RES: {
94
+ url: 'sport_look_mobile_low.jpeg',
95
+ },
96
+ MOBILE_WEBP_HI_RES: {
97
+ url: 'sport_look_mobile_high.jpeg',
98
+ },
99
+ WEBP_LOW_RES: {
100
+ url: 'sport_look_pc_low.jpeg',
101
+ },
102
+ WEBP_HI_2X_RES: {
103
+ url: 'sport_look_pc_high.jpeg',
104
+ },
105
+ },
106
+ borderInfo: {},
107
+ },
108
+ },
109
+
110
+ image_link: {
111
+ type: 'INPUTBOX',
112
+ text: '$label.showcase_1.image_link_1.text',
113
+ },
94
114
  },
95
115
  },
96
- borderInfo: {},
97
- },
98
- },
99
- image_content_3: {
100
- type: 'IMAGE',
101
- imageData: {
102
- set: {
103
- LOW_RES: {
104
- url: 'bianka_wardrobe_mobile_low.jpeg',
105
- },
106
- MOBILE_WEBP_LOW_RES: {
107
- url: 'bianka_wardrobe_mobile_low.jpeg',
108
- },
109
- MOBILE_WEBP_HI_RES: {
110
- url: 'bianka_wardrobe_mobile_high.jpeg',
111
- },
112
- WEBP_LOW_RES: {
113
- url: 'bianka_wardrobe_pc_low.jpeg',
114
- },
115
- WEBP_HI_2X_RES: {
116
- url: 'bianka_wardrobe_pc_high.jpeg',
116
+
117
+ {
118
+ settings: {
119
+ image_text: {
120
+ type: 'TEXTAREA',
121
+ text: '$label.showcase_1.image_text_3.text',
122
+ },
123
+
124
+ image_content: {
125
+ type: 'IMAGE',
126
+ imageData: {
127
+ set: {
128
+ LOW_RES: {
129
+ url: 'summer_accessories_mobile_low.jpeg',
130
+ },
131
+ MOBILE_WEBP_LOW_RES: {
132
+ url: 'summer_accessories_mobile_low.jpeg',
133
+ },
134
+ MOBILE_WEBP_HI_RES: {
135
+ url: 'summer_accessories_mobile_high.jpeg',
136
+ },
137
+ WEBP_LOW_RES: {
138
+ url: 'summer_accessories_pc_low.jpeg',
139
+ },
140
+ WEBP_HI_2X_RES: {
141
+ url: 'summer_accessories_pc_high.jpeg',
142
+ },
143
+ },
144
+ borderInfo: {},
145
+ },
146
+ },
147
+
148
+ image_link: {
149
+ type: 'INPUTBOX',
150
+ text: '$label.showcase_1.image_link_1.text',
151
+ },
117
152
  },
118
153
  },
119
- borderInfo: {},
120
- },
121
- },
122
- image_content_4: {
123
- type: 'IMAGE',
124
- imageData: {
125
- set: {
126
- LOW_RES: {
127
- url: 'story_of_jane_mobile_low.jpeg',
128
- },
129
- MOBILE_WEBP_LOW_RES: {
130
- url: 'story_of_jane_mobile_low.jpeg',
131
- },
132
- MOBILE_WEBP_HI_RES: {
133
- url: 'story_of_jane_mobile_high.jpeg',
134
- },
135
- WEBP_LOW_RES: {
136
- url: 'story_of_jane_pc_low.jpeg',
137
- },
138
- WEBP_HI_2X_RES: {
139
- url: 'story_of_jane_pc_high.jpeg',
154
+
155
+ {
156
+ settings: {
157
+ image_text: {
158
+ type: 'TEXTAREA',
159
+ text: '$label.showcase_1.image_text_4.text',
160
+ },
161
+
162
+ image_content: {
163
+ type: 'IMAGE',
164
+ imageData: {
165
+ set: {
166
+ LOW_RES: {
167
+ url: 'trending_footwear_mobile_low.jpeg',
168
+ },
169
+ MOBILE_WEBP_LOW_RES: {
170
+ url: 'trending_footwear_mobile_low.jpeg',
171
+ },
172
+ MOBILE_WEBP_HI_RES: {
173
+ url: 'trending_footwear_mobile_high.jpeg',
174
+ },
175
+ WEBP_LOW_RES: {
176
+ url: 'trending_footwear_pc_low.jpeg',
177
+ },
178
+ WEBP_HI_2X_RES: {
179
+ url: 'trending_footwear_pc_high.jpeg',
180
+ },
181
+ },
182
+ borderInfo: {},
183
+ },
184
+ },
140
185
  },
141
186
  },
142
- borderInfo: {},
143
- },
144
- },
145
- image_link_1: {
146
- type: 'TEXTAREA',
147
- text: '$label.showcase_2.image_link_1.text',
187
+ ],
148
188
  },
149
189
  },
150
190
  design: {
package/types.d.ts CHANGED
@@ -12,7 +12,8 @@ type ButtonType =
12
12
  | 'HYPER_LINK'
13
13
  | 'MAIL_LINK'
14
14
  | 'TEL_LINK'
15
- | 'GO_TO_STORE_LINK';
15
+ | 'GO_TO_STORE_LINK'
16
+ | 'GO_TO_PAGE';
16
17
 
17
18
  interface ButtonContentData {
18
19
  readonly title: string;
@@ -21,6 +22,8 @@ interface ButtonContentData {
21
22
  readonly email?: string;
22
23
  readonly phone?: string;
23
24
  readonly tileId?: string;
25
+ readonly pageId?: string;
26
+ readonly pageUrl?: string;
24
27
  }
25
28
 
26
29
  interface ImageInfoData {
@@ -191,6 +194,16 @@ interface TextareaContentEditor {
191
194
  readonly placeholder: Record<string, string>;
192
195
  }
193
196
 
197
+ interface ExternalContentData {
198
+ readonly reportAbuse?: ReportAbuse;
199
+ }
200
+
201
+ interface ReportAbuse {
202
+ readonly url: string,
203
+ readonly title: string,
204
+ readonly target: string,
205
+ }
206
+
194
207
  interface ButtonContentEditor {
195
208
  readonly type: 'BUTTON';
196
209
  readonly label: Record<string, string>;
@@ -1,11 +0,0 @@
1
- <script setup lang="ts">
2
-
3
- </script>
4
-
5
- <template>
6
-
7
- </template>
8
-
9
- <style scoped lang="scss">
10
-
11
- </style>
@@ -1 +0,0 @@
1
- export default {} as const;
@@ -1 +0,0 @@
1
- export default {} as const;
@@ -1 +0,0 @@
1
- export default [] as const;