@gem-sdk/components 2.0.0-dev.368 → 2.0.0-dev.370

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 (42) hide show
  1. package/dist/cjs/article/components/ArticleDate.js +0 -1
  2. package/dist/cjs/article/components/ArticleReadMore.liquid.js +1 -1
  3. package/dist/cjs/article/setting/configs/ArticleContent/settings.js +1 -1
  4. package/dist/cjs/article/setting/configs/ArticleContent/uiV2.js +11 -1
  5. package/dist/cjs/article/setting/configs/ArticleExcerpt/settings.js +1 -1
  6. package/dist/cjs/article/setting/configs/ArticleImage/settings.js +5 -4
  7. package/dist/cjs/article/setting/configs/ArticleImage/uiV2.js +48 -4
  8. package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +96 -64
  9. package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +380 -97
  10. package/dist/cjs/builder.js +104 -102
  11. package/dist/cjs/index.js +2 -0
  12. package/dist/cjs/index.liquid.js +2 -0
  13. package/dist/cjs/line/components/Divider.liquid.js +1 -1
  14. package/dist/cjs/line/components/Line.liquid.js +1 -1
  15. package/dist/cjs/third-party/components/AppstleBundlesDiscounts.js +33 -0
  16. package/dist/cjs/third-party/components/AppstleBundlesDiscounts.liquid.js +12 -0
  17. package/dist/cjs/third-party/configs/AppstleBundlesDiscounts.js +12 -0
  18. package/dist/cjs/third-party/index.js +3 -1
  19. package/dist/cjs/third-party/next.js +5 -0
  20. package/dist/cjs/third-party/setting/AppstleBundlesDiscounts.js +146 -0
  21. package/dist/esm/article/components/ArticleDate.js +0 -1
  22. package/dist/esm/article/components/ArticleReadMore.liquid.js +1 -1
  23. package/dist/esm/article/setting/configs/ArticleContent/settings.js +1 -1
  24. package/dist/esm/article/setting/configs/ArticleContent/uiV2.js +11 -1
  25. package/dist/esm/article/setting/configs/ArticleExcerpt/settings.js +1 -1
  26. package/dist/esm/article/setting/configs/ArticleImage/settings.js +5 -4
  27. package/dist/esm/article/setting/configs/ArticleImage/uiV2.js +48 -4
  28. package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +96 -64
  29. package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +380 -97
  30. package/dist/esm/builder.js +104 -102
  31. package/dist/esm/index.js +1 -0
  32. package/dist/esm/index.liquid.js +1 -0
  33. package/dist/esm/line/components/Divider.liquid.js +1 -1
  34. package/dist/esm/line/components/Line.liquid.js +1 -1
  35. package/dist/esm/third-party/components/AppstleBundlesDiscounts.js +29 -0
  36. package/dist/esm/third-party/components/AppstleBundlesDiscounts.liquid.js +8 -0
  37. package/dist/esm/third-party/configs/AppstleBundlesDiscounts.js +8 -0
  38. package/dist/esm/third-party/index.js +3 -1
  39. package/dist/esm/third-party/next.js +5 -0
  40. package/dist/esm/third-party/setting/AppstleBundlesDiscounts.js +142 -0
  41. package/dist/types/index.d.ts +19 -2
  42. package/package.json +2 -2
@@ -12,7 +12,6 @@ const ArticleDate = ({ setting, builderProps, styles })=>{
12
12
  const { dateFormat } = setting ?? {};
13
13
  const article = core.useArticleStore((s)=>s.article);
14
14
  const { timezone } = core.useTimezone();
15
- console.log(123, dateFormat);
16
15
  const convertTZ = (date, tzString)=>{
17
16
  const tz = tzString?.split(' ')?.[1] ?? '';
18
17
  if (!tz) return date;
@@ -32,7 +32,7 @@ const ArticleReadMore = ({ setting, styles, builderAttrs, builderProps, advanced
32
32
  translate: undefined
33
33
  }
34
34
  }))}
35
- ${core.RenderIf(readMoreType === 'button', Button_liquid.default({
35
+ ${core.RenderIf(readMoreType !== 'text', Button_liquid.default({
36
36
  builderAttrs,
37
37
  builderProps,
38
38
  advanced,
@@ -77,7 +77,7 @@ const ArticleContentSettings = [
77
77
  disableDecimal: true,
78
78
  devices: {
79
79
  desktop: {
80
- default: 3
80
+ default: 2
81
81
  }
82
82
  },
83
83
  hide: true
@@ -51,8 +51,18 @@ const uiV2 = [
51
51
  {
52
52
  id: 'hasLineClamp',
53
53
  label: {
54
- en: 'Max line'
54
+ en: 'Max lines'
55
55
  },
56
+ setting: {
57
+ id: 'hasLineClamp'
58
+ }
59
+ },
60
+ {
61
+ id: 'lineClamp',
62
+ label: {
63
+ en: 'Number of lines'
64
+ },
65
+ conditionDisplay: 'hasLineClamp === true',
56
66
  setting: {
57
67
  id: 'lineClamp'
58
68
  }
@@ -111,7 +111,7 @@ const ArticleExcerptSettings = [
111
111
  disableDecimal: true,
112
112
  devices: {
113
113
  desktop: {
114
- default: 3
114
+ default: 2
115
115
  }
116
116
  },
117
117
  hide: true
@@ -15,7 +15,7 @@ const ArticleImageSettings = [
15
15
  type: 'textarea',
16
16
  minHeight: 100,
17
17
  autoHeight: true,
18
- placeholder: 'E.g: Classic white crewneck t-shirt with minimalist logo design, casual and versatile style'
18
+ placeholder: 'E.g: This is a very long value for text area field'
19
19
  },
20
20
  {
21
21
  id: 'title',
@@ -62,11 +62,11 @@ const ArticleImageSettings = [
62
62
  type: 'select',
63
63
  options: [
64
64
  {
65
- label: 'View article',
65
+ label: 'Go to article',
66
66
  value: true
67
67
  },
68
68
  {
69
- label: 'None',
69
+ label: 'Scroll to',
70
70
  value: false
71
71
  }
72
72
  ],
@@ -75,8 +75,9 @@ const ArticleImageSettings = [
75
75
  },
76
76
  {
77
77
  id: 'openNewTab',
78
- type: 'segment',
78
+ type: 'option:value',
79
79
  label: 'Open new tab',
80
+ default: false,
80
81
  options: [
81
82
  {
82
83
  label: 'Yes',
@@ -74,16 +74,60 @@ const uiV2 = [
74
74
  ]
75
75
  },
76
76
  {
77
- label: {
78
- en: 'Redirect to'
79
- },
80
77
  controls: [
81
78
  {
82
79
  label: {
83
- en: 'After click'
80
+ en: 'Link'
81
+ },
82
+ setting: {
83
+ id: 'enableLink'
84
84
  },
85
+ options: {
86
+ labelVariant: 'primary',
87
+ toggleStyle: 'switch'
88
+ }
89
+ },
90
+ {
91
+ type: 'control',
92
+ conditionDisplay: 'enableLink == true',
85
93
  setting: {
86
94
  id: 'linkArticle'
95
+ },
96
+ label: {
97
+ en: 'After click'
98
+ }
99
+ },
100
+ {
101
+ label: {
102
+ en: 'Open new tab'
103
+ },
104
+ setting: {
105
+ id: 'openNewTab'
106
+ }
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ label: {
112
+ en: 'SEO'
113
+ },
114
+ controls: [
115
+ {
116
+ type: 'control',
117
+ setting: {
118
+ id: 'alt'
119
+ },
120
+ label: {
121
+ en: 'Alt text'
122
+ }
123
+ },
124
+ {
125
+ type: 'control',
126
+ setting: {
127
+ id: 'title'
128
+ },
129
+ label: {
130
+ en: 'Image title'
87
131
  }
88
132
  }
89
133
  ]
@@ -6,15 +6,33 @@ const ArticleReadMoreSettings = [
6
6
  controls: [
7
7
  {
8
8
  id: 'readMoreType',
9
- type: 'option:value',
9
+ label: 'Style',
10
+ popoverLabel: 'Style',
11
+ type: 'layout-selector',
12
+ iconViewBox: '0 0 80 48',
13
+ enableItemBackground: true,
14
+ itemPerRow: 2,
15
+ itemSpacing: 'large',
10
16
  options: [
11
17
  {
12
- label: 'Default',
13
- value: 'button'
18
+ label: 'Filled Square',
19
+ value: 'button',
20
+ iconName: 'gp-article-filled-square'
14
21
  },
15
22
  {
16
- label: 'Text only',
17
- value: 'text'
23
+ label: 'Rounded',
24
+ value: 'rounded',
25
+ iconName: 'gp-article-rounded'
26
+ },
27
+ {
28
+ label: 'Outline',
29
+ value: 'outline',
30
+ iconName: 'gp-article-outline'
31
+ },
32
+ {
33
+ label: 'Text',
34
+ value: 'text',
35
+ iconName: 'gp-article-link'
18
36
  }
19
37
  ],
20
38
  default: 'button'
@@ -41,7 +59,7 @@ const ArticleReadMoreSettings = [
41
59
  id: 'iconVisible',
42
60
  label: 'Icon Visible',
43
61
  type: 'toggle',
44
- default: false
62
+ default: true
45
63
  },
46
64
  {
47
65
  id: 'iconSvg',
@@ -156,52 +174,6 @@ const ArticleReadMoreSettings = [
156
174
  default: 'div'
157
175
  }
158
176
  ]
159
- },
160
- {
161
- id: 'background',
162
- type: 'background-media',
163
- ignoreReRender: true,
164
- devices: {
165
- desktop: {
166
- default: {
167
- type: 'color',
168
- color: 'transparent',
169
- image: {
170
- src: '',
171
- width: 0,
172
- height: 0
173
- },
174
- size: 'cover',
175
- position: {
176
- x: 50,
177
- y: 50
178
- },
179
- repeat: 'no-repeat',
180
- attachment: 'scroll'
181
- }
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
- }
204
- }
205
177
  }
206
178
  ]
207
179
  },
@@ -292,16 +264,16 @@ const ArticleReadMoreSettings = [
292
264
  devices: {
293
265
  desktop: {
294
266
  default: {
295
- normal: 'brand',
296
- hover: 'highlight'
267
+ normal: '#212121',
268
+ hover: '#303030'
297
269
  }
298
270
  }
299
271
  },
300
272
  compoDefaultValue: {
301
273
  desktop: {
302
274
  default: {
303
- normal: 'brand',
304
- hover: 'highlight'
275
+ normal: '#212121',
276
+ hover: '#303030'
305
277
  }
306
278
  }
307
279
  }
@@ -319,6 +291,38 @@ const ArticleReadMoreSettings = [
319
291
  normal: true
320
292
  }
321
293
  },
294
+ {
295
+ id: 'backgroundImage',
296
+ type: 'background-image',
297
+ devices: {
298
+ desktop: {
299
+ default: {
300
+ normal: {},
301
+ hover: {}
302
+ }
303
+ }
304
+ },
305
+ compoDefaultValue: {
306
+ desktop: {
307
+ default: {
308
+ normal: {
309
+ image: {
310
+ src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
311
+ width: 1200,
312
+ height: 480
313
+ }
314
+ },
315
+ hover: {
316
+ image: {
317
+ src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
318
+ width: 1200,
319
+ height: 480
320
+ }
321
+ }
322
+ }
323
+ }
324
+ }
325
+ },
322
326
  {
323
327
  id: 'textColorBtnState',
324
328
  type: 'color-picker-v2',
@@ -389,6 +393,31 @@ const ArticleReadMoreSettings = [
389
393
  }
390
394
  }
391
395
  }
396
+ },
397
+ {
398
+ id: 'boxShadowBtnV2',
399
+ type: 'shadow-v2',
400
+ devices: {
401
+ desktop: {
402
+ default: {
403
+ normal: {}
404
+ }
405
+ }
406
+ },
407
+ compoDefaultValue: {
408
+ desktop: {
409
+ default: {
410
+ normal: {
411
+ type: 'shadow-2',
412
+ distance: '12px',
413
+ blur: '12px',
414
+ spread: '0px',
415
+ color: 'rgba(18, 18, 18, 0.2)',
416
+ angle: 45
417
+ }
418
+ }
419
+ }
420
+ }
392
421
  }
393
422
  ]
394
423
  },
@@ -429,13 +458,18 @@ const ArticleReadMoreSettings = [
429
458
  id: 'typoBtn',
430
459
  type: 'typography-v2',
431
460
  default: {
432
- type: 'subheading-3',
461
+ type: 'paragraph-1',
433
462
  custom: {
434
463
  lineHeight: {
435
464
  desktop: '120%',
436
465
  tablet: '120%',
437
466
  mobile: '120%'
438
- }
467
+ },
468
+ letterSpacing: '0px',
469
+ hasShadowText: false
470
+ },
471
+ attrs: {
472
+ color: '#ffffff'
439
473
  }
440
474
  },
441
475
  ignoreReRender: true,
@@ -567,14 +601,12 @@ const ArticleReadMoreSettings = [
567
601
  {
568
602
  id: 'spacing',
569
603
  label: 'Spacing Icon',
570
- type: 'input:unit',
604
+ type: 'input:slider',
571
605
  units: [
572
- 'px',
573
- 'em',
574
- 'rem',
575
- '%'
606
+ 'px'
576
607
  ],
577
- placeholder: 'Auto',
608
+ step: 1,
609
+ max: 40,
578
610
  default: '8px'
579
611
  }
580
612
  ]