@lightspeed/crane 2.0.4 → 3.0.0

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 (131) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/UPGRADE.md +96 -0
  3. package/dist/cli.mjs +44 -25
  4. package/package.json +6 -3
  5. package/template/blank/sections/blank-section/BlankSection.vue +9 -0
  6. package/template/blank/sections/blank-section/assets/blank_section_showcase_1_preview.jpg +0 -0
  7. package/template/blank/sections/blank-section/client.ts +6 -0
  8. package/template/blank/sections/blank-section/server.ts +6 -0
  9. package/template/blank/sections/blank-section/settings/content.ts +2 -0
  10. package/template/blank/sections/blank-section/settings/design.ts +2 -0
  11. package/template/blank/sections/blank-section/settings/layout.ts +2 -0
  12. package/template/blank/sections/blank-section/settings/translations.ts +8 -0
  13. package/template/blank/sections/blank-section/showcases/1.ts +15 -0
  14. package/template/blank/sections/blank-section/showcases/translations.ts +10 -0
  15. package/template/blank/sections/blank-section/type.ts +5 -0
  16. package/template/collections/assets/collection_cover_image.png +0 -0
  17. package/template/collections/example-collection/configuration.ts +21 -0
  18. package/template/crane.config.json +1 -1
  19. package/template/footers/example-footer/ExampleFooter.vue +4 -4
  20. package/template/footers/example-footer/component/LegalLinks.vue +1 -1
  21. package/template/footers/example-footer/component/MadeWith.vue +1 -1
  22. package/template/footers/example-footer/component/ReportAbuse.vue +1 -1
  23. package/template/footers/example-footer/settings/design.ts +5 -4
  24. package/template/footers/example-footer/settings/translations.ts +4 -3
  25. package/template/footers/example-footer/showcases/1.ts +4 -2
  26. package/template/footers/example-footer/showcases/translations.ts +4 -2
  27. package/template/headers/example-header/ExampleHeader.vue +1 -1
  28. package/template/headers/example-header/component/Account.vue +1 -1
  29. package/template/headers/example-header/component/CategoriesDropdown.vue +1 -1
  30. package/template/headers/example-header/component/Logo.vue +7 -7
  31. package/template/headers/example-header/component/NavigationMenu.vue +1 -1
  32. package/template/headers/example-header/settings/content.ts +8 -1
  33. package/template/headers/example-header/settings/design.ts +7 -1
  34. package/template/headers/example-header/settings/layout.ts +1 -1
  35. package/template/headers/example-header/settings/translations.ts +4 -2
  36. package/template/headers/example-header/showcases/1.ts +15 -11
  37. package/template/headers/example-header/showcases/2.ts +12 -8
  38. package/template/headers/example-header/showcases/translations.ts +4 -2
  39. package/template/layouts/catalog/example-catalog/components/Icon.vue +14 -14
  40. package/template/layouts/catalog/example-catalog/slots/custom-bottom-bar/CustomBottomBar.vue +1 -1
  41. package/template/package.json +1 -0
  42. package/template/page-templates/example-template/configuration.ts +8 -10
  43. package/template/page-templates/example-template/pages/catalog.ts +3 -6
  44. package/template/page-templates/example-template/pages/category.ts +3 -6
  45. package/template/page-templates/example-template/pages/home.ts +42 -57
  46. package/template/page-templates/example-template/pages/product.ts +3 -6
  47. package/template/preview/sections/preview.html +10 -6
  48. package/template/preview/shared/api-routes.ts +235 -102
  49. package/template/preview/shared/logger.ts +9 -0
  50. package/template/preview/shared/preview.ts +150 -69
  51. package/template/preview/shared/utils.ts +63 -43
  52. package/template/preview/ssr-server.ts +1 -1
  53. package/template/reference/sections/about-us/AboutUs.vue +20 -22
  54. package/template/reference/sections/about-us/component/Image.vue +18 -18
  55. package/template/reference/sections/about-us/component/Stats.vue +42 -42
  56. package/template/reference/sections/about-us/component/Title.vue +1 -1
  57. package/template/reference/sections/about-us/settings/content.ts +15 -19
  58. package/template/reference/sections/about-us/settings/design.ts +14 -18
  59. package/template/reference/sections/about-us/settings/layout.ts +7 -5
  60. package/template/reference/sections/about-us/settings/translations.ts +4 -2
  61. package/template/reference/sections/about-us/showcases/1.ts +48 -62
  62. package/template/reference/sections/about-us/showcases/2.ts +44 -56
  63. package/template/reference/sections/about-us/showcases/translations.ts +4 -2
  64. package/template/reference/sections/featured-products/FeaturedProducts.vue +12 -6
  65. package/template/reference/sections/featured-products/component/ProductItem.vue +18 -1
  66. package/template/reference/sections/featured-products/component/ProductPlaceholder.vue +42 -0
  67. package/template/reference/sections/featured-products/component/Title.vue +1 -1
  68. package/template/reference/sections/featured-products/settings/content.ts +8 -10
  69. package/template/reference/sections/featured-products/settings/design.ts +7 -7
  70. package/template/reference/sections/featured-products/settings/translations.ts +4 -2
  71. package/template/reference/sections/featured-products/showcases/1.ts +8 -12
  72. package/template/reference/sections/featured-products/showcases/translations.ts +4 -2
  73. package/template/reference/sections/intro-slider/IntroSlider.vue +6 -6
  74. package/template/reference/sections/intro-slider/component/Slider.vue +43 -44
  75. package/template/reference/sections/intro-slider/component/Title.vue +9 -9
  76. package/template/reference/sections/intro-slider/settings/content.ts +36 -22
  77. package/template/reference/sections/intro-slider/settings/design.ts +17 -22
  78. package/template/reference/sections/intro-slider/settings/layout.ts +6 -4
  79. package/template/reference/sections/intro-slider/settings/translations.ts +4 -2
  80. package/template/reference/sections/intro-slider/showcases/1.ts +52 -75
  81. package/template/reference/sections/intro-slider/showcases/2.ts +50 -72
  82. package/template/reference/sections/intro-slider/showcases/translations.ts +4 -2
  83. package/template/reference/sections/tag-lines/TagLines.vue +41 -47
  84. package/template/reference/sections/tag-lines/component/HighlightedText.vue +2 -2
  85. package/template/reference/sections/tag-lines/component/SectionImage.vue +18 -18
  86. package/template/reference/sections/tag-lines/component/Title.vue +2 -2
  87. package/template/reference/sections/tag-lines/settings/content.ts +53 -19
  88. package/template/reference/sections/tag-lines/settings/design.ts +15 -19
  89. package/template/reference/sections/tag-lines/settings/layout.ts +6 -4
  90. package/template/reference/sections/tag-lines/settings/translations.ts +4 -2
  91. package/template/reference/sections/tag-lines/showcases/1.ts +40 -50
  92. package/template/reference/sections/tag-lines/showcases/2.ts +40 -50
  93. package/template/reference/sections/tag-lines/showcases/translations.ts +4 -2
  94. package/template/reference/sections/trending-categories/TrendingCategories.vue +1 -1
  95. package/template/reference/sections/trending-categories/component/CategoryItem.vue +18 -1
  96. package/template/reference/sections/trending-categories/component/Title.vue +2 -2
  97. package/template/reference/sections/trending-categories/settings/content.ts +8 -10
  98. package/template/reference/sections/trending-categories/settings/design.ts +7 -7
  99. package/template/reference/sections/trending-categories/settings/translations.ts +4 -2
  100. package/template/reference/sections/trending-categories/showcases/1.ts +14 -15
  101. package/template/reference/sections/trending-categories/showcases/translations.ts +4 -2
  102. package/template/reference/shared/components/Button.vue +6 -6
  103. package/template/reference/shared/components/SectionWrapper.vue +5 -5
  104. package/template/reference/shared/components/Tagline.vue +12 -11
  105. package/template/reference/templates/reference-template-apparel/configuration.ts +8 -8
  106. package/template/reference/templates/reference-template-apparel/pages/catalog.ts +3 -6
  107. package/template/reference/templates/reference-template-apparel/pages/category.ts +3 -6
  108. package/template/reference/templates/reference-template-apparel/pages/home.ts +14 -18
  109. package/template/reference/templates/reference-template-apparel/pages/product.ts +3 -6
  110. package/template/reference/templates/reference-template-bike/configuration.ts +9 -9
  111. package/template/reference/templates/reference-template-bike/pages/catalog.ts +3 -6
  112. package/template/reference/templates/reference-template-bike/pages/category.ts +3 -6
  113. package/template/reference/templates/reference-template-bike/pages/home.ts +14 -18
  114. package/template/reference/templates/reference-template-bike/pages/product.ts +3 -6
  115. package/template/sections/example-section/ExampleSection.vue +3 -5
  116. package/template/sections/example-section/component/button/Button.vue +1 -1
  117. package/template/sections/example-section/component/image/Image.vue +43 -43
  118. package/template/sections/example-section/component/image/ImagesGrid.vue +21 -32
  119. package/template/sections/example-section/component/selectbox/Selectbox.vue +1 -1
  120. package/template/sections/example-section/component/title/Title.vue +1 -1
  121. package/template/sections/example-section/component/toggle/Toggle.vue +4 -4
  122. package/template/sections/example-section/settings/content.ts +25 -34
  123. package/template/sections/example-section/settings/design.ts +15 -19
  124. package/template/sections/example-section/settings/layout.ts +15 -14
  125. package/template/sections/example-section/settings/translations.ts +4 -2
  126. package/template/sections/example-section/showcases/1.ts +52 -79
  127. package/template/sections/example-section/showcases/2.ts +46 -62
  128. package/template/sections/example-section/showcases/3.ts +50 -76
  129. package/template/sections/example-section/showcases/translations.ts +4 -2
  130. package/template/shared/components/LanguageSelector.vue +1 -1
  131. package/template/shared/components/SectionWrapper.vue +5 -5
@@ -1,30 +1,27 @@
1
+ import { content } from '@lightspeed/crane-api';
2
+
1
3
  export default {
2
- section_title: {
3
- type: 'TEXTAREA',
4
+ section_title: content.textarea({
4
5
  label: '$label.section_title.label',
5
6
  placeholder: '$label.section_title.placeholder',
6
- },
7
- section_description: {
8
- type: 'TEXTAREA',
7
+ }),
8
+ section_description: content.textarea({
9
9
  label: '$label.section_description.label',
10
10
  placeholder: '$label.section_description.placeholder',
11
- },
12
- section_tagline: {
13
- type: 'INPUTBOX',
11
+ }),
12
+ section_tagline: content.inputbox({
14
13
  label: '$label.section_tagline.label',
15
14
  placeholder: '$label.section_tagline.placeholder',
16
- },
17
- section_button: {
18
- type: 'BUTTON',
15
+ }),
16
+ section_button: content.button({
19
17
  label: '$label.section_button.label',
20
18
  defaults: {
21
19
  title: '$label.section_button.title',
22
20
  buttonType: 'HYPER_LINK',
23
21
  link: 'https://www.example.com',
24
22
  },
25
- },
26
- slider: {
27
- type: 'DECK',
23
+ }),
24
+ slider: content.deck({
28
25
  label: '$label.slider.title',
29
26
  addButtonLabel: '$label.slider.add_slide',
30
27
  maxCards: 6,
@@ -32,17 +29,34 @@ export default {
32
29
  defaultCardContent: {
33
30
  label: '$label.slider.slide_title',
34
31
  settings: {
35
- image_content: {
36
- type: 'IMAGE',
32
+ image_content: content.image({
37
33
  label: '$label.slide_content.label',
38
- },
39
- image_text: {
40
- type: 'TEXTAREA',
34
+ defaults: {
35
+ imageData: {
36
+ set: {
37
+ MOBILE_WEBP_LOW_RES: {
38
+ url: 'category_4.jpg',
39
+ },
40
+ MOBILE_WEBP_HI_RES: {
41
+ url: 'category_4@2x.jpg',
42
+ },
43
+ WEBP_LOW_RES: {
44
+ url: 'category_4@2x.jpg',
45
+ },
46
+ WEBP_HI_2X_RES: {
47
+ url: 'category_4@2x.jpg',
48
+ },
49
+ },
50
+ borderInfo: {},
51
+ },
52
+ },
53
+ }),
54
+ image_text: content.textarea({
41
55
  label: '$label.slide_text.label',
42
56
  placeholder: '$label.slide_text.label',
43
- },
57
+ }),
44
58
  },
45
59
  },
46
60
  },
47
- },
48
- } as const;
61
+ }),
62
+ };
@@ -1,6 +1,7 @@
1
+ import { design } from '@lightspeed/crane-api';
2
+
1
3
  export default {
2
- section_title: {
3
- type: 'TEXT',
4
+ section_title: design.text({
4
5
  label: '$label.section_title.label',
5
6
  colors: ['#000000', '#FFFFFF', '#C8D9FF', '#FFB92E', '#F4EFE3'],
6
7
  sizes: [18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60],
@@ -12,9 +13,8 @@ export default {
12
13
  color: '#000000',
13
14
  visible: true,
14
15
  },
15
- },
16
- section_description: {
17
- type: 'TEXT',
16
+ }),
17
+ section_description: design.text({
18
18
  label: '$label.section_description.label',
19
19
  colors: ['#000000', '#FFFFFF', '#C8D9FF', '#FFB92E', '#F4EFE3'],
20
20
  sizes: [12, 13, 14, 15, 16, 17, 18, 20],
@@ -26,9 +26,8 @@ export default {
26
26
  color: '#000000',
27
27
  visible: true,
28
28
  },
29
- },
30
- section_tagline: {
31
- type: 'TEXT',
29
+ }),
30
+ section_tagline: design.text({
32
31
  label: '$label.section_tagline.label',
33
32
  colors: ['#000000', '#FFFFFF', '#C8D9FF', '#FFB92E', '#F4EFE3'],
34
33
  sizes: [12, 13, 14, 15, 16, 17, 18, 20],
@@ -40,9 +39,8 @@ export default {
40
39
  color: '#C8D9FF',
41
40
  visible: true,
42
41
  },
43
- },
44
- section_button: {
45
- type: 'BUTTON',
42
+ }),
43
+ section_button: design.button({
46
44
  label: '$label.section_button.label',
47
45
  colors: ['#000000', '#FFFFFF', '#C8D9FF', '#FFB92E', '#F4EFE3'],
48
46
  defaults: {
@@ -52,18 +50,16 @@ export default {
52
50
  color: '#000000',
53
51
  visible: true,
54
52
  },
55
- },
56
- background: {
57
- type: 'BACKGROUND',
53
+ }),
54
+ background: design.background({
58
55
  label: '$label.background.label',
59
56
  colors: ['#000000', '#FFFFFF', '#C8D9FF', '#FFB92E', '#F4EFE3'],
60
57
  defaults: {
61
58
  style: 'COLOR',
62
59
  color: '#F4EFE3',
63
60
  },
64
- },
65
- image_text: {
66
- type: 'TEXT',
61
+ }),
62
+ image_text: design.text({
67
63
  label: '$label.section_image_text.label',
68
64
  colors: ['#000000', '#FFFFFF', '#C8D9FF', '#FFB92E', '#F4EFE3'],
69
65
  sizes: [16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28],
@@ -75,14 +71,13 @@ export default {
75
71
  color: '#FFFFFF',
76
72
  visible: true,
77
73
  },
78
- },
79
- image_content: {
80
- type: 'IMAGE',
74
+ }),
75
+ image_content: design.image({
81
76
  label: '$label.section_image.label',
82
77
  colors: ['#000000', '#FFFFFF', '#C8D9FF', '#FFB92E', '#F4EFE3'],
83
78
  defaults: {
84
79
  overlay: 'GRADIENT',
85
80
  color: ['#000000', '#000000'],
86
81
  },
87
- },
88
- } as const;
82
+ }),
83
+ };
@@ -1,12 +1,14 @@
1
+ import { layout } from '@lightspeed/crane-api';
2
+
1
3
  export default [
2
- {
4
+ layout.init({
3
5
  layoutId: 'Narrow_Title_And_Images_With_Border_Radius',
4
6
  selectedContentSettings: [],
5
7
  selectedDesignSettings: [],
6
- },
7
- {
8
+ }),
9
+ layout.init({
8
10
  layoutId: 'Wide_Title_And_Images_Without_Border_Radius',
9
11
  selectedContentSettings: [],
10
12
  selectedDesignSettings: [],
11
- },
13
+ }),
12
14
  ];
@@ -1,4 +1,6 @@
1
- export default {
1
+ import { translation } from '@lightspeed/crane-api';
2
+
3
+ export default translation.init({
2
4
  en: {
3
5
  '$label.section_title.label': 'Main title',
4
6
  '$label.section_title.placeholder': 'This will be the main title for this section',
@@ -50,4 +52,4 @@ export default {
50
52
  '$label.showcase_2.highlighted_text_2.text': 'vélos hybrides',
51
53
  '$label.showcase_2.highlighted_text_3.text': 'vélos pliants',
52
54
  },
53
- } as const;
55
+ });
@@ -1,4 +1,6 @@
1
- export default {
1
+ import { content, design, showcase } from '@lightspeed/crane-api';
2
+
3
+ export default showcase.init({
2
4
  showcaseId: '1',
3
5
  layoutId: 'Narrow_Title_And_Images_With_Border_Radius',
4
6
  previewImage: {
@@ -10,35 +12,28 @@ export default {
10
12
  },
11
13
  blockName: '$label.showcase_1.blockName',
12
14
  content: {
13
- section_title: {
14
- type: 'TEXTAREA',
15
+ section_title: content.default.textarea({
15
16
  text: '$label.showcase_1.section_title.text',
16
- },
17
- section_description: {
18
- type: 'TEXTAREA',
17
+ }),
18
+ section_description: content.default.textarea({
19
19
  text: '$label.showcase_1.section_description.text',
20
- },
21
- section_tagline: {
22
- type: 'INPUTBOX',
20
+ }),
21
+ section_tagline: content.default.inputbox({
23
22
  text: '$label.showcase_1.section_tagline.text',
24
- },
25
- section_button: {
26
- type: 'BUTTON',
23
+ }),
24
+ section_button: content.default.button({
27
25
  title: '$label.showcase_1.section_button.title',
28
26
  buttonType: 'HYPER_LINK',
29
27
  link: 'https://www.example.com',
30
- },
31
- slider: {
32
- type: 'DECK',
28
+ }),
29
+ slider: content.default.deck({
33
30
  cards: [
34
31
  {
35
32
  settings: {
36
- image_text: {
37
- type: 'INPUTBOX',
33
+ image_text: content.default.inputbox({
38
34
  text: '$label.showcase_1.slide_text_1.text',
39
- },
40
- image_content: {
41
- type: 'IMAGE',
35
+ }),
36
+ image_content: content.default.image({
42
37
  imageData: {
43
38
  set: {
44
39
  MOBILE_WEBP_LOW_RES: {
@@ -56,17 +51,15 @@ export default {
56
51
  },
57
52
  borderInfo: {},
58
53
  },
59
- },
54
+ }),
60
55
  },
61
56
  },
62
57
  {
63
58
  settings: {
64
- image_text: {
65
- type: 'INPUTBOX',
59
+ image_text: content.default.inputbox({
66
60
  text: '$label.showcase_1.slide_text_2.text',
67
- },
68
- image_content: {
69
- type: 'IMAGE',
61
+ }),
62
+ image_content: content.default.image({
70
63
  imageData: {
71
64
  set: {
72
65
  MOBILE_WEBP_LOW_RES: {
@@ -84,17 +77,15 @@ export default {
84
77
  },
85
78
  borderInfo: {},
86
79
  },
87
- },
80
+ }),
88
81
  },
89
82
  },
90
83
  {
91
84
  settings: {
92
- image_text: {
93
- type: 'INPUTBOX',
85
+ image_text: content.default.inputbox({
94
86
  text: '$label.showcase_1.slide_text_3.text',
95
- },
96
- image_content: {
97
- type: 'IMAGE',
87
+ }),
88
+ image_content: content.default.image({
98
89
  imageData: {
99
90
  set: {
100
91
  MOBILE_WEBP_LOW_RES: {
@@ -112,17 +103,15 @@ export default {
112
103
  },
113
104
  borderInfo: {},
114
105
  },
115
- },
106
+ }),
116
107
  },
117
108
  },
118
109
  {
119
110
  settings: {
120
- image_text: {
121
- type: 'INPUTBOX',
111
+ image_text: content.default.inputbox({
122
112
  text: '$label.showcase_1.slide_text_4.text',
123
- },
124
- image_content: {
125
- type: 'IMAGE',
113
+ }),
114
+ image_content: content.default.image({
126
115
  imageData: {
127
116
  set: {
128
117
  MOBILE_WEBP_LOW_RES: {
@@ -140,18 +129,15 @@ export default {
140
129
  },
141
130
  borderInfo: {},
142
131
  },
143
- },
132
+ }),
144
133
  },
145
134
  },
146
135
  {
147
-
148
136
  settings: {
149
- image_text: {
150
- type: 'INPUTBOX',
137
+ image_text: content.default.inputbox({
151
138
  text: '$label.showcase_1.slide_text_5.text',
152
- },
153
- image_content: {
154
- type: 'IMAGE',
139
+ }),
140
+ image_content: content.default.image({
155
141
  imageData: {
156
142
  set: {
157
143
  MOBILE_WEBP_LOW_RES: {
@@ -169,17 +155,15 @@ export default {
169
155
  },
170
156
  borderInfo: {},
171
157
  },
172
- },
158
+ }),
173
159
  },
174
160
  },
175
161
  {
176
162
  settings: {
177
- image_text: {
178
- type: 'INPUTBOX',
163
+ image_text: content.default.inputbox({
179
164
  text: '$label.showcase_1.slide_text_6.text',
180
- },
181
- image_content: {
182
- type: 'IMAGE',
165
+ }),
166
+ image_content: content.default.image({
183
167
  imageData: {
184
168
  set: {
185
169
  MOBILE_WEBP_LOW_RES: {
@@ -197,62 +181,55 @@ export default {
197
181
  },
198
182
  borderInfo: {},
199
183
  },
200
- },
184
+ }),
201
185
  },
202
186
  },
203
187
  ],
204
- },
188
+ }),
205
189
  },
206
190
  design: {
207
- section_title: {
208
- type: 'TEXT',
191
+ section_title: design.default.text({
209
192
  font: 'noto_serif',
210
193
  size: 48,
211
194
  bold: true,
212
195
  italic: false,
213
196
  color: '#000000',
214
- },
215
- section_description: {
216
- type: 'TEXT',
197
+ }),
198
+ section_description: design.default.text({
217
199
  font: 'inter',
218
200
  size: 16,
219
201
  bold: true,
220
202
  italic: false,
221
203
  color: '#000000',
222
- },
223
- section_tagline: {
224
- type: 'TEXT',
204
+ }),
205
+ section_tagline: design.default.text({
225
206
  font: 'noto_serif',
226
207
  size: 16,
227
208
  bold: false,
228
209
  italic: false,
229
210
  color: '#C8D9FF',
230
- },
231
- section_button: {
232
- type: 'BUTTON',
211
+ }),
212
+ section_button: design.default.button({
233
213
  font: 'inter',
234
214
  appearance: 'SOLID',
235
215
  size: 'LARGE',
236
216
  shape: 'PILL',
237
217
  color: '#000000',
238
- },
239
- background: {
240
- type: 'BACKGROUND',
218
+ }),
219
+ background: design.default.background({
241
220
  style: 'COLOR',
242
221
  color: '#F4EFE3',
243
- },
244
- image_text: {
245
- type: 'TEXT',
222
+ }),
223
+ image_text: design.default.text({
246
224
  font: 'noto_serif',
247
225
  size: 24,
248
226
  bold: true,
249
227
  italic: false,
250
228
  color: '#FFFFFF',
251
- },
252
- image_content: {
253
- type: 'IMAGE',
229
+ }),
230
+ image_content: design.default.image({
254
231
  overlay: 'GRADIENT',
255
232
  color: ['#000000', '#000000'],
256
- },
233
+ }),
257
234
  },
258
- } as const;
235
+ });
@@ -1,4 +1,6 @@
1
- export default {
1
+ import { content, design, showcase } from '@lightspeed/crane-api';
2
+
3
+ export default showcase.init({
2
4
  showcaseId: '2',
3
5
  layoutId: 'Wide_Title_And_Images_Without_Border_Radius',
4
6
  previewImage: {
@@ -10,31 +12,25 @@ export default {
10
12
  },
11
13
  blockName: '$label.showcase_2.blockName',
12
14
  content: {
13
- section_title: {
14
- type: 'TEXTAREA',
15
+ section_title: content.default.textarea({
15
16
  text: '$label.showcase_2.section_title.text',
16
- },
17
- section_tagline: {
18
- type: 'INPUTBOX',
17
+ }),
18
+ section_tagline: content.default.inputbox({
19
19
  text: '$label.showcase_2.section_tagline.text',
20
- },
21
- section_button: {
22
- type: 'BUTTON',
20
+ }),
21
+ section_button: content.default.button({
23
22
  title: '$label.showcase_2.section_button.title',
24
23
  buttonType: 'HYPER_LINK',
25
24
  link: 'https://www.example.com',
26
- },
27
- slider: {
28
- type: 'DECK',
25
+ }),
26
+ slider: content.default.deck({
29
27
  cards: [
30
28
  {
31
29
  settings: {
32
- image_text: {
33
- type: 'INPUTBOX',
30
+ image_text: content.default.inputbox({
34
31
  text: '$label.showcase_2.slide_text_1.text',
35
- },
36
- image_content: {
37
- type: 'IMAGE',
32
+ }),
33
+ image_content: content.default.image({
38
34
  imageData: {
39
35
  set: {
40
36
  MOBILE_WEBP_LOW_RES: {
@@ -52,17 +48,15 @@ export default {
52
48
  },
53
49
  borderInfo: {},
54
50
  },
55
- },
51
+ }),
56
52
  },
57
53
  },
58
54
  {
59
55
  settings: {
60
- image_text: {
61
- type: 'INPUTBOX',
56
+ image_text: content.default.inputbox({
62
57
  text: '$label.showcase_2.slide_text_2.text',
63
- },
64
- image_content: {
65
- type: 'IMAGE',
58
+ }),
59
+ image_content: content.default.image({
66
60
  imageData: {
67
61
  set: {
68
62
  MOBILE_WEBP_LOW_RES: {
@@ -80,17 +74,15 @@ export default {
80
74
  },
81
75
  borderInfo: {},
82
76
  },
83
- },
77
+ }),
84
78
  },
85
79
  },
86
80
  {
87
81
  settings: {
88
- image_text: {
89
- type: 'INPUTBOX',
82
+ image_text: content.default.inputbox({
90
83
  text: '$label.showcase_2.slide_text_3.text',
91
- },
92
- image_content: {
93
- type: 'IMAGE',
84
+ }),
85
+ image_content: content.default.image({
94
86
  imageData: {
95
87
  set: {
96
88
  MOBILE_WEBP_LOW_RES: {
@@ -108,17 +100,15 @@ export default {
108
100
  },
109
101
  borderInfo: {},
110
102
  },
111
- },
103
+ }),
112
104
  },
113
105
  },
114
106
  {
115
107
  settings: {
116
- image_text: {
117
- type: 'INPUTBOX',
108
+ image_text: content.default.inputbox({
118
109
  text: '$label.showcase_2.slide_text_4.text',
119
- },
120
- image_content: {
121
- type: 'IMAGE',
110
+ }),
111
+ image_content: content.default.image({
122
112
  imageData: {
123
113
  set: {
124
114
  MOBILE_WEBP_LOW_RES: {
@@ -136,18 +126,15 @@ export default {
136
126
  },
137
127
  borderInfo: {},
138
128
  },
139
- },
129
+ }),
140
130
  },
141
131
  },
142
132
  {
143
-
144
133
  settings: {
145
- image_text: {
146
- type: 'INPUTBOX',
134
+ image_text: content.default.inputbox({
147
135
  text: '$label.showcase_2.slide_text_5.text',
148
- },
149
- image_content: {
150
- type: 'IMAGE',
136
+ }),
137
+ image_content: content.default.image({
151
138
  imageData: {
152
139
  set: {
153
140
  MOBILE_WEBP_LOW_RES: {
@@ -165,17 +152,15 @@ export default {
165
152
  },
166
153
  borderInfo: {},
167
154
  },
168
- },
155
+ }),
169
156
  },
170
157
  },
171
158
  {
172
159
  settings: {
173
- image_text: {
174
- type: 'INPUTBOX',
160
+ image_text: content.default.inputbox({
175
161
  text: '$label.showcase_2.slide_text_6.text',
176
- },
177
- image_content: {
178
- type: 'IMAGE',
162
+ }),
163
+ image_content: content.default.image({
179
164
  imageData: {
180
165
  set: {
181
166
  MOBILE_WEBP_LOW_RES: {
@@ -193,62 +178,55 @@ export default {
193
178
  },
194
179
  borderInfo: {},
195
180
  },
196
- },
181
+ }),
197
182
  },
198
183
  },
199
184
  ],
200
- },
185
+ }),
201
186
  },
202
187
  design: {
203
- section_title: {
204
- type: 'TEXT',
188
+ section_title: design.default.text({
205
189
  font: 'pt_mono',
206
190
  size: 48,
207
191
  bold: true,
208
192
  italic: false,
209
193
  color: '#FFFFFF',
210
- },
211
- section_description: {
212
- type: 'TEXT',
194
+ }),
195
+ section_description: design.default.text({
213
196
  font: 'inter',
214
197
  size: 16,
215
198
  bold: true,
216
199
  italic: false,
217
200
  color: '#FFFFFF',
218
- },
219
- section_tagline: {
220
- type: 'TEXT',
201
+ }),
202
+ section_tagline: design.default.text({
221
203
  font: 'pt_mono',
222
204
  size: 16,
223
205
  bold: false,
224
206
  italic: false,
225
207
  color: '#FFB92E',
226
- },
227
- section_button: {
228
- type: 'BUTTON',
208
+ }),
209
+ section_button: design.default.button({
229
210
  font: 'inter',
230
211
  appearance: 'SOLID',
231
212
  size: 'LARGE',
232
213
  shape: 'RECTANGLE',
233
214
  color: '#FFFFFF',
234
- },
235
- background: {
236
- type: 'BACKGROUND',
215
+ }),
216
+ background: design.default.background({
237
217
  style: 'COLOR',
238
218
  color: '#000000',
239
- },
240
- image_text: {
241
- type: 'TEXT',
219
+ }),
220
+ image_text: design.default.text({
242
221
  font: 'pt_mono',
243
222
  size: 24,
244
223
  bold: true,
245
224
  italic: false,
246
225
  color: '#FFFFFF',
247
- },
248
- image_content: {
249
- type: 'IMAGE',
226
+ }),
227
+ image_content: design.default.image({
250
228
  overlay: 'GRADIENT',
251
229
  color: ['#000000', '#000000'],
252
- },
230
+ }),
253
231
  },
254
- } as const;
232
+ });