@gem-sdk/components 2.0.0-dev.348 → 2.0.0-dev.349

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 (25) hide show
  1. package/dist/cjs/article/setting/ArticleList.js +3 -3
  2. package/dist/cjs/article/setting/configs/ArticleAuthor/presets.js +2 -2
  3. package/dist/cjs/article/setting/configs/ArticleCategory/presets.js +10 -1
  4. package/dist/cjs/article/setting/configs/ArticleCategory/uiV2.js +9 -2
  5. package/dist/cjs/article/setting/configs/ArticleDate/presets.js +1 -1
  6. package/dist/cjs/article/setting/configs/ArticleExcerpt/settings.js +1 -4
  7. package/dist/cjs/article/setting/configs/ArticleExcerpt/uiV2.js +15 -0
  8. package/dist/cjs/article/setting/configs/ArticleImage/uiV2.js +11 -11
  9. package/dist/cjs/article/setting/configs/ArticleReadMore/presets.js +22 -1
  10. package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +42 -7
  11. package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +73 -103
  12. package/dist/cjs/article/setting/configs/ArticleTitle/uiV2.js +15 -8
  13. package/dist/esm/article/setting/ArticleList.js +3 -3
  14. package/dist/esm/article/setting/configs/ArticleAuthor/presets.js +2 -2
  15. package/dist/esm/article/setting/configs/ArticleCategory/presets.js +10 -1
  16. package/dist/esm/article/setting/configs/ArticleCategory/uiV2.js +9 -2
  17. package/dist/esm/article/setting/configs/ArticleDate/presets.js +1 -1
  18. package/dist/esm/article/setting/configs/ArticleExcerpt/settings.js +1 -4
  19. package/dist/esm/article/setting/configs/ArticleExcerpt/uiV2.js +15 -0
  20. package/dist/esm/article/setting/configs/ArticleImage/uiV2.js +11 -11
  21. package/dist/esm/article/setting/configs/ArticleReadMore/presets.js +22 -1
  22. package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +42 -7
  23. package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +73 -103
  24. package/dist/esm/article/setting/configs/ArticleTitle/uiV2.js +15 -8
  25. package/package.json +1 -1
@@ -624,7 +624,7 @@ const config = {
624
624
  }
625
625
  },
626
626
  attrs: {
627
- color: '#4F4F4F'
627
+ color: 'text-1'
628
628
  }
629
629
  },
630
630
  color: {
@@ -691,7 +691,7 @@ const config = {
691
691
  }
692
692
  },
693
693
  attrs: {
694
- color: '#4F4F4F'
694
+ color: 'text-1'
695
695
  }
696
696
  },
697
697
  color: {
@@ -758,7 +758,7 @@ const config = {
758
758
  }
759
759
  },
760
760
  attrs: {
761
- color: '#4F4F4F'
761
+ color: 'text-1'
762
762
  }
763
763
  },
764
764
  color: {
@@ -39,7 +39,7 @@ const ArticleAuthorPresets = [
39
39
  }
40
40
  },
41
41
  attrs: {
42
- color: '#4F4F4F'
42
+ color: 'text-1'
43
43
  }
44
44
  }
45
45
  },
@@ -47,7 +47,7 @@ const ArticleAuthorPresets = [
47
47
  'spacing-setting': {
48
48
  desktop: {
49
49
  margin: {
50
- bottom: 0
50
+ bottom: 'var(--g-s-s)'
51
51
  }
52
52
  }
53
53
  }
@@ -39,7 +39,16 @@ const ArticleCategoryPresets = [
39
39
  }
40
40
  },
41
41
  attrs: {
42
- color: '#4F4F4F'
42
+ color: 'text-1'
43
+ }
44
+ }
45
+ },
46
+ advanced: {
47
+ 'spacing-setting': {
48
+ desktop: {
49
+ margin: {
50
+ bottom: 'var(--g-s-s)'
51
+ }
43
52
  }
44
53
  }
45
54
  }
@@ -40,10 +40,17 @@ const uiV2 = [
40
40
  noRecordHistory: true
41
41
  }
42
42
  }
43
- },
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ label: {
48
+ en: 'SEO'
49
+ },
50
+ controls: [
44
51
  {
45
52
  label: {
46
- en: 'SEO'
53
+ en: 'SEO tag'
47
54
  },
48
55
  setting: {
49
56
  id: 'htmlTag'
@@ -38,7 +38,7 @@ const ArticleDatePresets = [
38
38
  }
39
39
  },
40
40
  attrs: {
41
- color: '#4F4F4F'
41
+ color: 'text-1'
42
42
  }
43
43
  }
44
44
  }
@@ -51,10 +51,7 @@ const ArticleExcerptSettings = [
51
51
  default: {
52
52
  type: 'subheading-3'
53
53
  },
54
- ignoreReRender: true,
55
- hiddenSetting: {
56
- color: true
57
- }
54
+ ignoreReRender: true
58
55
  },
59
56
  {
60
57
  id: 'textAlign',
@@ -58,6 +58,21 @@ const uiV2 = [
58
58
  }
59
59
  }
60
60
  ]
61
+ },
62
+ {
63
+ label: {
64
+ en: 'SEO'
65
+ },
66
+ controls: [
67
+ {
68
+ label: {
69
+ en: 'SEO tag'
70
+ },
71
+ setting: {
72
+ id: 'htmlTag'
73
+ }
74
+ }
75
+ ]
61
76
  }
62
77
  ];
63
78
 
@@ -3,30 +3,30 @@
3
3
  const uiV2 = [
4
4
  {
5
5
  label: {
6
- en: 'Size'
6
+ en: 'Image'
7
7
  },
8
+ conditionDisplay: "shape.shape !== 'original'",
8
9
  controls: [
9
10
  {
10
- setting: {
11
- id: 'shape'
11
+ label: {
12
+ en: 'Scale'
12
13
  },
13
- layout: 'vertical'
14
+ setting: {
15
+ id: 'objectFit'
16
+ }
14
17
  }
15
18
  ]
16
19
  },
17
20
  {
18
21
  label: {
19
- en: 'Image'
22
+ en: 'Size'
20
23
  },
21
- conditionDisplay: "shape.shape !== 'original'",
22
24
  controls: [
23
25
  {
24
- label: {
25
- en: 'Image'
26
- },
27
26
  setting: {
28
- id: 'objectFit'
29
- }
27
+ id: 'shape'
28
+ },
29
+ layout: 'vertical'
30
30
  }
31
31
  ]
32
32
  },
@@ -27,7 +27,7 @@ const ArticleReadMorePresets = [
27
27
  'spacing-setting': {
28
28
  desktop: {
29
29
  margin: {
30
- bottom: 'var(--g-s-l)'
30
+ bottom: 'var(--g-s-s)'
31
31
  }
32
32
  }
33
33
  }
@@ -47,6 +47,27 @@ const ArticleReadMorePresets = [
47
47
  gap: ''
48
48
  }
49
49
  },
50
+ typoText: {
51
+ type: 'paragraph-3',
52
+ custom: {
53
+ fontSize: {
54
+ desktop: '12px',
55
+ tablet: '12px',
56
+ mobile: '12px',
57
+ edited: [
58
+ 'desktop'
59
+ ]
60
+ },
61
+ lineHeight: {
62
+ desktop: '120%',
63
+ tablet: '120%',
64
+ mobile: '120%'
65
+ }
66
+ },
67
+ attrs: {
68
+ color: 'text-1'
69
+ }
70
+ },
50
71
  globalSizeText: {
51
72
  desktop: {
52
73
  width: 'Auto',
@@ -159,7 +159,7 @@ const ArticleReadMoreSettings = [
159
159
  },
160
160
  {
161
161
  id: 'background',
162
- type: 'background',
162
+ type: 'background-media',
163
163
  ignoreReRender: true,
164
164
  devices: {
165
165
  desktop: {
@@ -180,6 +180,27 @@ const ArticleReadMoreSettings = [
180
180
  attachment: 'scroll'
181
181
  }
182
182
  }
183
+ },
184
+ compoDefaultValue: {
185
+ desktop: {
186
+ default: {
187
+ type: 'color',
188
+ color: '#DDDDDD',
189
+ image: {
190
+ src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
191
+ width: 1200,
192
+ height: 480
193
+ },
194
+ size: 'cover',
195
+ position: {
196
+ x: 50,
197
+ y: 50
198
+ },
199
+ repeat: 'no-repeat',
200
+ attachment: 'scroll',
201
+ preload: false
202
+ }
203
+ }
183
204
  }
184
205
  }
185
206
  ]
@@ -408,11 +429,18 @@ const ArticleReadMoreSettings = [
408
429
  id: 'typoBtn',
409
430
  type: 'typography-v2',
410
431
  default: {
411
- type: 'paragraph-1'
432
+ type: 'subheading-3',
433
+ custom: {
434
+ lineHeight: {
435
+ desktop: '120%',
436
+ tablet: '120%',
437
+ mobile: '120%'
438
+ }
439
+ }
412
440
  },
413
441
  ignoreReRender: true,
414
442
  hiddenSetting: {
415
- color: true
443
+ textAlign: true
416
444
  }
417
445
  },
418
446
  {
@@ -627,12 +655,19 @@ const ArticleReadMoreSettings = [
627
655
  id: 'typoText',
628
656
  type: 'typography-v2',
629
657
  default: {
630
- type: 'paragraph-1'
658
+ type: 'subheading-3',
659
+ custom: {
660
+ lineHeight: {
661
+ desktop: '120%',
662
+ tablet: '120%',
663
+ mobile: '120%'
664
+ }
665
+ }
631
666
  },
667
+ ignoreReRender: true,
632
668
  hiddenSetting: {
633
- color: true
634
- },
635
- ignoreReRender: true
669
+ textAlign: true
670
+ }
636
671
  },
637
672
  {
638
673
  id: 'alignText',
@@ -48,11 +48,6 @@ const uiV2 = [
48
48
  label: 'Full',
49
49
  value: '100%',
50
50
  showValue: true
51
- },
52
- {
53
- label: 'Default',
54
- value: 'default',
55
- showValue: true
56
51
  }
57
52
  ]
58
53
  },
@@ -82,16 +77,6 @@ const uiV2 = [
82
77
  label: 'Fit content',
83
78
  value: 'Auto',
84
79
  showValue: true
85
- },
86
- {
87
- label: 'Full',
88
- value: '100%',
89
- showValue: true
90
- },
91
- {
92
- label: 'Default',
93
- value: 'default',
94
- showValue: true
95
80
  }
96
81
  ]
97
82
  },
@@ -121,6 +106,79 @@ const uiV2 = [
121
106
  }
122
107
  ]
123
108
  },
109
+ {
110
+ label: {
111
+ en: 'Background'
112
+ },
113
+ controls: [
114
+ {
115
+ setting: {
116
+ id: 'backgroundColor'
117
+ },
118
+ layout: 'vertical'
119
+ }
120
+ ]
121
+ },
122
+ {
123
+ conditionDisplay: `readMoreType == 'button'`,
124
+ controls: [
125
+ {
126
+ label: {
127
+ en: 'Icon'
128
+ },
129
+ setting: {
130
+ id: 'iconVisible'
131
+ },
132
+ options: {
133
+ labelVariant: 'primary',
134
+ toggleStyle: 'switch'
135
+ }
136
+ }
137
+ ]
138
+ },
139
+ {
140
+ label: {
141
+ en: 'Text style'
142
+ },
143
+ conditionDisplay: `readMoreType == 'button'`,
144
+ controls: [
145
+ {
146
+ id: 'typo',
147
+ label: {
148
+ en: 'Basic'
149
+ },
150
+ setting: {
151
+ id: 'typoBtn'
152
+ },
153
+ options: {
154
+ hideLabel: true,
155
+ fullWidth: true,
156
+ updateFields: [
157
+ {
158
+ field: 'attrs.textAlign',
159
+ settingId: 'textAlign'
160
+ }
161
+ ]
162
+ },
163
+ layout: 'vertical',
164
+ controlChangeTrigger: {
165
+ settings: [
166
+ {
167
+ action: {
168
+ controlId: 'textAlign',
169
+ valueFromField: 'attrs.textAlign',
170
+ groupType: 'style',
171
+ controlType: 'style'
172
+ }
173
+ }
174
+ ],
175
+ options: {
176
+ noRecordHistory: true
177
+ }
178
+ }
179
+ }
180
+ ]
181
+ },
124
182
  {
125
183
  label: {
126
184
  en: 'Size'
@@ -229,49 +287,6 @@ const uiV2 = [
229
287
  }
230
288
  ]
231
289
  },
232
- {
233
- label: {
234
- en: 'Text style'
235
- },
236
- conditionDisplay: `readMoreType == 'button'`,
237
- controls: [
238
- {
239
- id: 'typo',
240
- label: {
241
- en: 'Basic'
242
- },
243
- setting: {
244
- id: 'typoBtn'
245
- },
246
- options: {
247
- hideLabel: true,
248
- fullWidth: true,
249
- updateFields: [
250
- {
251
- field: 'attrs.textAlign',
252
- settingId: 'textAlign'
253
- }
254
- ]
255
- },
256
- layout: 'vertical',
257
- controlChangeTrigger: {
258
- settings: [
259
- {
260
- action: {
261
- controlId: 'textAlign',
262
- valueFromField: 'attrs.textAlign',
263
- groupType: 'style',
264
- controlType: 'style'
265
- }
266
- }
267
- ],
268
- options: {
269
- noRecordHistory: true
270
- }
271
- }
272
- }
273
- ]
274
- },
275
290
  {
276
291
  label: {
277
292
  en: 'Text style'
@@ -315,23 +330,6 @@ const uiV2 = [
315
330
  }
316
331
  ]
317
332
  },
318
- {
319
- conditionDisplay: `readMoreType == 'button'`,
320
- controls: [
321
- {
322
- label: {
323
- en: 'Icon'
324
- },
325
- setting: {
326
- id: 'iconVisible'
327
- },
328
- options: {
329
- labelVariant: 'primary',
330
- toggleStyle: 'switch'
331
- }
332
- }
333
- ]
334
- },
335
333
  {
336
334
  conditionDisplay: "iconVisible == true && readMoreType == 'button'",
337
335
  controls: [
@@ -363,34 +361,6 @@ const uiV2 = [
363
361
  }
364
362
  ]
365
363
  },
366
- {
367
- label: {
368
- en: 'Background'
369
- },
370
- conditionDisplay: `readMoreType == 'button'`,
371
- controls: [
372
- {
373
- setting: {
374
- id: 'backgroundColor'
375
- },
376
- layout: 'vertical'
377
- }
378
- ]
379
- },
380
- {
381
- label: {
382
- en: 'Background'
383
- },
384
- conditionDisplay: `readMoreType == 'text'`,
385
- controls: [
386
- {
387
- setting: {
388
- id: 'background'
389
- },
390
- layout: 'vertical'
391
- }
392
- ]
393
- },
394
364
  {
395
365
  label: {
396
366
  en: 'Hover effect'
@@ -40,14 +40,6 @@ const uiV2 = [
40
40
  noRecordHistory: true
41
41
  }
42
42
  }
43
- },
44
- {
45
- label: {
46
- en: 'SEO'
47
- },
48
- setting: {
49
- id: 'htmlTag'
50
- }
51
43
  }
52
44
  ]
53
45
  },
@@ -126,6 +118,21 @@ const uiV2 = [
126
118
  }
127
119
  }
128
120
  ]
121
+ },
122
+ {
123
+ label: {
124
+ en: 'SEO'
125
+ },
126
+ controls: [
127
+ {
128
+ label: {
129
+ en: 'SEO tag'
130
+ },
131
+ setting: {
132
+ id: 'htmlTag'
133
+ }
134
+ }
135
+ ]
129
136
  }
130
137
  ];
131
138
 
@@ -620,7 +620,7 @@ const config = {
620
620
  }
621
621
  },
622
622
  attrs: {
623
- color: '#4F4F4F'
623
+ color: 'text-1'
624
624
  }
625
625
  },
626
626
  color: {
@@ -687,7 +687,7 @@ const config = {
687
687
  }
688
688
  },
689
689
  attrs: {
690
- color: '#4F4F4F'
690
+ color: 'text-1'
691
691
  }
692
692
  },
693
693
  color: {
@@ -754,7 +754,7 @@ const config = {
754
754
  }
755
755
  },
756
756
  attrs: {
757
- color: '#4F4F4F'
757
+ color: 'text-1'
758
758
  }
759
759
  },
760
760
  color: {
@@ -37,7 +37,7 @@ const ArticleAuthorPresets = [
37
37
  }
38
38
  },
39
39
  attrs: {
40
- color: '#4F4F4F'
40
+ color: 'text-1'
41
41
  }
42
42
  }
43
43
  },
@@ -45,7 +45,7 @@ const ArticleAuthorPresets = [
45
45
  'spacing-setting': {
46
46
  desktop: {
47
47
  margin: {
48
- bottom: 0
48
+ bottom: 'var(--g-s-s)'
49
49
  }
50
50
  }
51
51
  }
@@ -37,7 +37,16 @@ const ArticleCategoryPresets = [
37
37
  }
38
38
  },
39
39
  attrs: {
40
- color: '#4F4F4F'
40
+ color: 'text-1'
41
+ }
42
+ }
43
+ },
44
+ advanced: {
45
+ 'spacing-setting': {
46
+ desktop: {
47
+ margin: {
48
+ bottom: 'var(--g-s-s)'
49
+ }
41
50
  }
42
51
  }
43
52
  }
@@ -38,10 +38,17 @@ const uiV2 = [
38
38
  noRecordHistory: true
39
39
  }
40
40
  }
41
- },
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ label: {
46
+ en: 'SEO'
47
+ },
48
+ controls: [
42
49
  {
43
50
  label: {
44
- en: 'SEO'
51
+ en: 'SEO tag'
45
52
  },
46
53
  setting: {
47
54
  id: 'htmlTag'
@@ -36,7 +36,7 @@ const ArticleDatePresets = [
36
36
  }
37
37
  },
38
38
  attrs: {
39
- color: '#4F4F4F'
39
+ color: 'text-1'
40
40
  }
41
41
  }
42
42
  }
@@ -49,10 +49,7 @@ const ArticleExcerptSettings = [
49
49
  default: {
50
50
  type: 'subheading-3'
51
51
  },
52
- ignoreReRender: true,
53
- hiddenSetting: {
54
- color: true
55
- }
52
+ ignoreReRender: true
56
53
  },
57
54
  {
58
55
  id: 'textAlign',
@@ -56,6 +56,21 @@ const uiV2 = [
56
56
  }
57
57
  }
58
58
  ]
59
+ },
60
+ {
61
+ label: {
62
+ en: 'SEO'
63
+ },
64
+ controls: [
65
+ {
66
+ label: {
67
+ en: 'SEO tag'
68
+ },
69
+ setting: {
70
+ id: 'htmlTag'
71
+ }
72
+ }
73
+ ]
59
74
  }
60
75
  ];
61
76
 
@@ -1,30 +1,30 @@
1
1
  const uiV2 = [
2
2
  {
3
3
  label: {
4
- en: 'Size'
4
+ en: 'Image'
5
5
  },
6
+ conditionDisplay: "shape.shape !== 'original'",
6
7
  controls: [
7
8
  {
8
- setting: {
9
- id: 'shape'
9
+ label: {
10
+ en: 'Scale'
10
11
  },
11
- layout: 'vertical'
12
+ setting: {
13
+ id: 'objectFit'
14
+ }
12
15
  }
13
16
  ]
14
17
  },
15
18
  {
16
19
  label: {
17
- en: 'Image'
20
+ en: 'Size'
18
21
  },
19
- conditionDisplay: "shape.shape !== 'original'",
20
22
  controls: [
21
23
  {
22
- label: {
23
- en: 'Image'
24
- },
25
24
  setting: {
26
- id: 'objectFit'
27
- }
25
+ id: 'shape'
26
+ },
27
+ layout: 'vertical'
28
28
  }
29
29
  ]
30
30
  },
@@ -25,7 +25,7 @@ const ArticleReadMorePresets = [
25
25
  'spacing-setting': {
26
26
  desktop: {
27
27
  margin: {
28
- bottom: 'var(--g-s-l)'
28
+ bottom: 'var(--g-s-s)'
29
29
  }
30
30
  }
31
31
  }
@@ -45,6 +45,27 @@ const ArticleReadMorePresets = [
45
45
  gap: ''
46
46
  }
47
47
  },
48
+ typoText: {
49
+ type: 'paragraph-3',
50
+ custom: {
51
+ fontSize: {
52
+ desktop: '12px',
53
+ tablet: '12px',
54
+ mobile: '12px',
55
+ edited: [
56
+ 'desktop'
57
+ ]
58
+ },
59
+ lineHeight: {
60
+ desktop: '120%',
61
+ tablet: '120%',
62
+ mobile: '120%'
63
+ }
64
+ },
65
+ attrs: {
66
+ color: 'text-1'
67
+ }
68
+ },
48
69
  globalSizeText: {
49
70
  desktop: {
50
71
  width: 'Auto',
@@ -157,7 +157,7 @@ const ArticleReadMoreSettings = [
157
157
  },
158
158
  {
159
159
  id: 'background',
160
- type: 'background',
160
+ type: 'background-media',
161
161
  ignoreReRender: true,
162
162
  devices: {
163
163
  desktop: {
@@ -178,6 +178,27 @@ const ArticleReadMoreSettings = [
178
178
  attachment: 'scroll'
179
179
  }
180
180
  }
181
+ },
182
+ compoDefaultValue: {
183
+ desktop: {
184
+ default: {
185
+ type: 'color',
186
+ color: '#DDDDDD',
187
+ image: {
188
+ src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
189
+ width: 1200,
190
+ height: 480
191
+ },
192
+ size: 'cover',
193
+ position: {
194
+ x: 50,
195
+ y: 50
196
+ },
197
+ repeat: 'no-repeat',
198
+ attachment: 'scroll',
199
+ preload: false
200
+ }
201
+ }
181
202
  }
182
203
  }
183
204
  ]
@@ -406,11 +427,18 @@ const ArticleReadMoreSettings = [
406
427
  id: 'typoBtn',
407
428
  type: 'typography-v2',
408
429
  default: {
409
- type: 'paragraph-1'
430
+ type: 'subheading-3',
431
+ custom: {
432
+ lineHeight: {
433
+ desktop: '120%',
434
+ tablet: '120%',
435
+ mobile: '120%'
436
+ }
437
+ }
410
438
  },
411
439
  ignoreReRender: true,
412
440
  hiddenSetting: {
413
- color: true
441
+ textAlign: true
414
442
  }
415
443
  },
416
444
  {
@@ -625,12 +653,19 @@ const ArticleReadMoreSettings = [
625
653
  id: 'typoText',
626
654
  type: 'typography-v2',
627
655
  default: {
628
- type: 'paragraph-1'
656
+ type: 'subheading-3',
657
+ custom: {
658
+ lineHeight: {
659
+ desktop: '120%',
660
+ tablet: '120%',
661
+ mobile: '120%'
662
+ }
663
+ }
629
664
  },
665
+ ignoreReRender: true,
630
666
  hiddenSetting: {
631
- color: true
632
- },
633
- ignoreReRender: true
667
+ textAlign: true
668
+ }
634
669
  },
635
670
  {
636
671
  id: 'alignText',
@@ -46,11 +46,6 @@ const uiV2 = [
46
46
  label: 'Full',
47
47
  value: '100%',
48
48
  showValue: true
49
- },
50
- {
51
- label: 'Default',
52
- value: 'default',
53
- showValue: true
54
49
  }
55
50
  ]
56
51
  },
@@ -80,16 +75,6 @@ const uiV2 = [
80
75
  label: 'Fit content',
81
76
  value: 'Auto',
82
77
  showValue: true
83
- },
84
- {
85
- label: 'Full',
86
- value: '100%',
87
- showValue: true
88
- },
89
- {
90
- label: 'Default',
91
- value: 'default',
92
- showValue: true
93
78
  }
94
79
  ]
95
80
  },
@@ -119,6 +104,79 @@ const uiV2 = [
119
104
  }
120
105
  ]
121
106
  },
107
+ {
108
+ label: {
109
+ en: 'Background'
110
+ },
111
+ controls: [
112
+ {
113
+ setting: {
114
+ id: 'backgroundColor'
115
+ },
116
+ layout: 'vertical'
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ conditionDisplay: `readMoreType == 'button'`,
122
+ controls: [
123
+ {
124
+ label: {
125
+ en: 'Icon'
126
+ },
127
+ setting: {
128
+ id: 'iconVisible'
129
+ },
130
+ options: {
131
+ labelVariant: 'primary',
132
+ toggleStyle: 'switch'
133
+ }
134
+ }
135
+ ]
136
+ },
137
+ {
138
+ label: {
139
+ en: 'Text style'
140
+ },
141
+ conditionDisplay: `readMoreType == 'button'`,
142
+ controls: [
143
+ {
144
+ id: 'typo',
145
+ label: {
146
+ en: 'Basic'
147
+ },
148
+ setting: {
149
+ id: 'typoBtn'
150
+ },
151
+ options: {
152
+ hideLabel: true,
153
+ fullWidth: true,
154
+ updateFields: [
155
+ {
156
+ field: 'attrs.textAlign',
157
+ settingId: 'textAlign'
158
+ }
159
+ ]
160
+ },
161
+ layout: 'vertical',
162
+ controlChangeTrigger: {
163
+ settings: [
164
+ {
165
+ action: {
166
+ controlId: 'textAlign',
167
+ valueFromField: 'attrs.textAlign',
168
+ groupType: 'style',
169
+ controlType: 'style'
170
+ }
171
+ }
172
+ ],
173
+ options: {
174
+ noRecordHistory: true
175
+ }
176
+ }
177
+ }
178
+ ]
179
+ },
122
180
  {
123
181
  label: {
124
182
  en: 'Size'
@@ -227,49 +285,6 @@ const uiV2 = [
227
285
  }
228
286
  ]
229
287
  },
230
- {
231
- label: {
232
- en: 'Text style'
233
- },
234
- conditionDisplay: `readMoreType == 'button'`,
235
- controls: [
236
- {
237
- id: 'typo',
238
- label: {
239
- en: 'Basic'
240
- },
241
- setting: {
242
- id: 'typoBtn'
243
- },
244
- options: {
245
- hideLabel: true,
246
- fullWidth: true,
247
- updateFields: [
248
- {
249
- field: 'attrs.textAlign',
250
- settingId: 'textAlign'
251
- }
252
- ]
253
- },
254
- layout: 'vertical',
255
- controlChangeTrigger: {
256
- settings: [
257
- {
258
- action: {
259
- controlId: 'textAlign',
260
- valueFromField: 'attrs.textAlign',
261
- groupType: 'style',
262
- controlType: 'style'
263
- }
264
- }
265
- ],
266
- options: {
267
- noRecordHistory: true
268
- }
269
- }
270
- }
271
- ]
272
- },
273
288
  {
274
289
  label: {
275
290
  en: 'Text style'
@@ -313,23 +328,6 @@ const uiV2 = [
313
328
  }
314
329
  ]
315
330
  },
316
- {
317
- conditionDisplay: `readMoreType == 'button'`,
318
- controls: [
319
- {
320
- label: {
321
- en: 'Icon'
322
- },
323
- setting: {
324
- id: 'iconVisible'
325
- },
326
- options: {
327
- labelVariant: 'primary',
328
- toggleStyle: 'switch'
329
- }
330
- }
331
- ]
332
- },
333
331
  {
334
332
  conditionDisplay: "iconVisible == true && readMoreType == 'button'",
335
333
  controls: [
@@ -361,34 +359,6 @@ const uiV2 = [
361
359
  }
362
360
  ]
363
361
  },
364
- {
365
- label: {
366
- en: 'Background'
367
- },
368
- conditionDisplay: `readMoreType == 'button'`,
369
- controls: [
370
- {
371
- setting: {
372
- id: 'backgroundColor'
373
- },
374
- layout: 'vertical'
375
- }
376
- ]
377
- },
378
- {
379
- label: {
380
- en: 'Background'
381
- },
382
- conditionDisplay: `readMoreType == 'text'`,
383
- controls: [
384
- {
385
- setting: {
386
- id: 'background'
387
- },
388
- layout: 'vertical'
389
- }
390
- ]
391
- },
392
362
  {
393
363
  label: {
394
364
  en: 'Hover effect'
@@ -38,14 +38,6 @@ const uiV2 = [
38
38
  noRecordHistory: true
39
39
  }
40
40
  }
41
- },
42
- {
43
- label: {
44
- en: 'SEO'
45
- },
46
- setting: {
47
- id: 'htmlTag'
48
- }
49
41
  }
50
42
  ]
51
43
  },
@@ -124,6 +116,21 @@ const uiV2 = [
124
116
  }
125
117
  }
126
118
  ]
119
+ },
120
+ {
121
+ label: {
122
+ en: 'SEO'
123
+ },
124
+ controls: [
125
+ {
126
+ label: {
127
+ en: 'SEO tag'
128
+ },
129
+ setting: {
130
+ id: 'htmlTag'
131
+ }
132
+ }
133
+ ]
127
134
  }
128
135
  ];
129
136
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.348",
3
+ "version": "2.0.0-dev.349",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",