@gem-sdk/components 2.0.0-dev.595 → 2.0.0-dev.598

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 (44) hide show
  1. package/dist/cjs/banner/components/HeroBannerItem.js +3 -3
  2. package/dist/cjs/banner/components/HeroBannerItem.liquid.js +2 -2
  3. package/dist/cjs/button/components/common/styles.js +20 -3
  4. package/dist/cjs/countdown-timer/components/Countdown.js +0 -1
  5. package/dist/cjs/countdown-timer/components/common/getStyle.js +1 -1
  6. package/dist/cjs/countdown-timer/setting/configs/settings.js +14 -20
  7. package/dist/cjs/countdown-timer/setting/configs/uiV2.js +30 -17
  8. package/dist/cjs/image/components/NextImage.liquid.js +1 -0
  9. package/dist/cjs/image/setting/configs/settings.js +2 -2
  10. package/dist/cjs/image/setting/configs/uiV2.js +2 -0
  11. package/dist/cjs/image-comparison/components/common/helpers.js +2 -1
  12. package/dist/cjs/image-comparison/components/hooks/useCompareImage.js +5 -3
  13. package/dist/cjs/image-comparison/setting/configs/settings.js +8 -7
  14. package/dist/cjs/image-comparison/setting/configs/uiV2.js +42 -41
  15. package/dist/cjs/product/components/ProductButton/common/styles.js +6 -3
  16. package/dist/cjs/product/components/ProductButton/components/PriceLayout.liquid.js +2 -2
  17. package/dist/cjs/product/setting/product-view-more/configs/settings.js +2 -2
  18. package/dist/cjs/product/setting/product-view-more/configs/uiV2.js +2 -32
  19. package/dist/cjs/third-party/components/Releasit.js +0 -1
  20. package/dist/cjs/third-party/components/Releasit.liquid.js +0 -1
  21. package/dist/cjs/third-party/configs/BoldProductOptions.js +1 -1
  22. package/dist/esm/banner/components/HeroBannerItem.js +3 -3
  23. package/dist/esm/banner/components/HeroBannerItem.liquid.js +2 -2
  24. package/dist/esm/button/components/common/styles.js +21 -4
  25. package/dist/esm/countdown-timer/components/Countdown.js +0 -1
  26. package/dist/esm/countdown-timer/components/common/getStyle.js +2 -2
  27. package/dist/esm/countdown-timer/setting/configs/settings.js +14 -20
  28. package/dist/esm/countdown-timer/setting/configs/uiV2.js +30 -17
  29. package/dist/esm/image/components/NextImage.liquid.js +1 -0
  30. package/dist/esm/image/setting/configs/settings.js +2 -2
  31. package/dist/esm/image/setting/configs/uiV2.js +2 -0
  32. package/dist/esm/image-comparison/components/common/helpers.js +2 -1
  33. package/dist/esm/image-comparison/components/hooks/useCompareImage.js +5 -3
  34. package/dist/esm/image-comparison/setting/configs/settings.js +8 -7
  35. package/dist/esm/image-comparison/setting/configs/uiV2.js +42 -41
  36. package/dist/esm/product/components/ProductButton/common/styles.js +6 -3
  37. package/dist/esm/product/components/ProductButton/components/PriceLayout.liquid.js +2 -2
  38. package/dist/esm/product/setting/product-view-more/configs/settings.js +2 -2
  39. package/dist/esm/product/setting/product-view-more/configs/uiV2.js +2 -32
  40. package/dist/esm/third-party/components/Releasit.js +0 -1
  41. package/dist/esm/third-party/components/Releasit.liquid.js +0 -1
  42. package/dist/esm/third-party/configs/BoldProductOptions.js +1 -1
  43. package/dist/types/index.d.ts +1 -1
  44. package/package.json +2 -2
@@ -26,29 +26,14 @@ const SettingUIV2 = [
26
26
  field: 'width'
27
27
  },
28
28
  displayOptions: [
29
- {
30
- label: 'Fit content',
31
- value: 'Auto',
32
- showValue: true
33
- },
34
29
  {
35
30
  label: 'Full',
36
31
  value: '100%',
37
32
  showValue: true
38
33
  },
39
34
  {
40
- label: 'Small',
41
- value: '100px',
42
- showValue: true
43
- },
44
- {
45
- label: 'Medium',
46
- value: '116px',
47
- showValue: true
48
- },
49
- {
50
- label: 'Large',
51
- value: '132px',
35
+ label: 'Fit content',
36
+ value: 'Auto',
52
37
  showValue: true
53
38
  }
54
39
  ]
@@ -78,21 +63,6 @@ const SettingUIV2 = [
78
63
  label: 'Fit content',
79
64
  value: 'Auto',
80
65
  showValue: true
81
- },
82
- {
83
- label: 'Small',
84
- value: '28px',
85
- showValue: true
86
- },
87
- {
88
- label: 'Medium',
89
- value: '36px',
90
- showValue: true
91
- },
92
- {
93
- label: 'Large',
94
- value: '44px',
95
- showValue: true
96
66
  }
97
67
  ]
98
68
  },
@@ -1,4 +1,3 @@
1
- 'use client';
2
1
  'use strict';
3
2
 
4
3
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -7,7 +7,6 @@ var core = require('@gem-sdk/core');
7
7
 
8
8
  const Releasit = ({ setting, advanced })=>{
9
9
  const { align, version, appBlockId } = setting ?? {};
10
- console.log('version', version);
11
10
  return version === 'v2' ? thirdParty.getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''}!gp-block`) : core.template`
12
11
  <div
13
12
  class="${advanced?.cssClass}"
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var BoldProductOptionsConfig = {
6
6
  id: 'bold-product-options',
7
7
  label: 'SC Product Options',
8
- logoUrl: 'https://cdn.shopify.com/app-store/listing_images/9a0bf1159f79c6ab0660ec422f350445/icon/CP2Uwo_GuYIDEAE=.png?width=22&height=22',
8
+ logoUrl: 'https://cdn.shopify.com/app-store/listing_images/9a0bf1159f79c6ab0660ec422f350445/icon/CP2Uwo_GuYIDEAE=.png',
9
9
  tag: 'BoldProductOptions'
10
10
  };
11
11
 
@@ -15,7 +15,7 @@ import { getYoutubeVideoId, youtubeVideoRegex } from '../../video/helpers/common
15
15
  const HeroBannerItem = (props)=>{
16
16
  const mode = useEditorMode();
17
17
  const { enableLazyloadImage, setting, styles, children, elementRef, transform, dataVideo, bgRef, isShowVideoHtml5, layoutResponsive } = props;
18
- const { layout, verticalAlign, speedParallax, alt, title } = setting ?? {};
18
+ const { layout, verticalAlign, enableParallax, alt, title } = setting ?? {};
19
19
  const { background, overlayColor, verticalGutter, sizeSetting, contentWidth, hoverEffect, contentPosition1Col, contentPosition2Col } = styles ?? {};
20
20
  const enableLazyImage = (setting?.preload || !enableLazyloadImage) && mode !== 'edit';
21
21
  const isNotLiquid = true;
@@ -51,7 +51,7 @@ const HeroBannerItem = (props)=>{
51
51
  ...getBackgroundClasses(hoverEffect)
52
52
  });
53
53
  const backgroundStyle = createStyle({
54
- ...getBackgroundStyle(styles, Number(speedParallax || 0) > 0 || false, transform),
54
+ ...getBackgroundStyle(styles, enableParallax, transform),
55
55
  ...getGradientBgrStyleByDevice(background, {
56
56
  desktop: true,
57
57
  tablet: true,
@@ -180,7 +180,7 @@ const HeroBannerItem = (props)=>{
180
180
  style: adaptiveStyle,
181
181
  alt: alt,
182
182
  title: title,
183
- enableLazyloadImage: enableLazyloadImage
183
+ enableLazyloadImage: enableLazyloadImage && mode != 'edit'
184
184
  })
185
185
  ]
186
186
  });
@@ -14,7 +14,7 @@ import { isRenderHtmlVideo } from '../../grid/row/commons/common.js';
14
14
 
15
15
  const HeroBannerItem = (props)=>{
16
16
  const { enableLazyloadImage, setting, styles, children, builderProps, rawChildren } = props;
17
- const { layout, verticalAlign, speedParallax, alt, title } = setting ?? {};
17
+ const { layout, verticalAlign, enableParallax, alt, title } = setting ?? {};
18
18
  const { background, overlayColor, verticalGutter, sizeSetting, contentWidth, hoverEffect, contentPosition1Col, contentPosition2Col } = styles ?? {};
19
19
  const transform = '';
20
20
  const enableLazyImage = setting?.preload || !enableLazyloadImage;
@@ -52,7 +52,7 @@ const HeroBannerItem = (props)=>{
52
52
  ...getBackgroundClasses(hoverEffect)
53
53
  });
54
54
  const backgroundStyle = createStyle({
55
- ...getBackgroundStyle(styles, Number(speedParallax || 0) > 0, transform),
55
+ ...getBackgroundStyle(styles, enableParallax, transform),
56
56
  ...getBackgroundImageHeroBanner(background, enableLazyImage, isNotLiquid)
57
57
  });
58
58
  const containBackgroundClasses = createClass({
@@ -1,4 +1,4 @@
1
- import { makeStyleResponsive, getStyleShadowState, composeRadius, makeGlobalSize, makeStyleResponsiveState, composeTypographyStyle, getStyleShadow, getStyleBackgroundImageByDevice, getGlobalColorStateResponsiveStyle, getSingleColorVariable, composeBorderCss, composeCornerCss } from '@gem-sdk/core';
1
+ import { makeStyleResponsive, getStyleShadowState, composeRadius, makeGlobalSize, composeTypographyStyle, makeStyleResponsiveState, getStyleShadow, getStyleBackgroundImageByDevice, getGlobalColorStateResponsiveStyle, getSingleColorVariable, composeBorderCss, composeCornerCss } from '@gem-sdk/core';
2
2
 
3
3
  const MEDIA_QUERIES = {
4
4
  TABLET: '@media only screen and (max-width: 1024px) and (min-width: 768px)',
@@ -12,7 +12,8 @@ const getButtonStyles = (styles)=>({
12
12
  ...getSizeStyles(styles),
13
13
  ...getRadiusStyles(styles),
14
14
  ...getShadowStyles(styles),
15
- ...getBackgroundStyles(styles)
15
+ ...getBackgroundStyles(styles),
16
+ ...getTypographyStyles(styles).textColorStyle
16
17
  });
17
18
  const getButtonIconStyles = (styles, settings)=>{
18
19
  return {
@@ -49,10 +50,26 @@ const getSizeStyles = (styles)=>{
49
50
  ...composeGlobalSize.padding
50
51
  };
51
52
  };
53
+ const getTypographyStyles = (styles)=>{
54
+ const typographyStyle = composeTypographyStyle(styles?.typo, styles?.typography);
55
+ const colorObj = {
56
+ '--c': typographyStyle?.['--c']
57
+ };
58
+ const otherProps = {
59
+ ...typographyStyle
60
+ };
61
+ delete otherProps['--c'];
62
+ return {
63
+ textColorStyle: {
64
+ ...colorObj,
65
+ ...makeStyleResponsiveState('c', processResponsiveHoverColors(styles?.textColorHover))
66
+ },
67
+ withoutTextColorStyles: otherProps
68
+ };
69
+ };
52
70
  const getTypoStyles = (styles)=>{
53
71
  return {
54
- ...makeStyleResponsiveState('c', processResponsiveHoverColors(styles?.textColorHover)),
55
- ...composeTypographyStyle(styles?.typo, styles?.typography),
72
+ ...getTypographyStyles(styles).withoutTextColorStyles,
56
73
  ...getStyleShadow({
57
74
  styleAppliedFor: 'text-shadow',
58
75
  value: styles?.typo?.custom?.textShadow,
@@ -120,7 +120,6 @@ const Countdown = (props)=>{
120
120
  children: ' '
121
121
  })),
122
122
  If(enableWeek, timeTemplate(week, weekLabel)),
123
- If(enableWeek, timeTemplate(week, weekLabel)),
124
123
  If(enableDay, timeTemplate(day, dayLabel)),
125
124
  If(enableHour, timeTemplate(hour, hourLabel)),
126
125
  If(enableMinute, timeTemplate(minute, minuteLabel)),
@@ -1,4 +1,4 @@
1
- import { makeStyleResponsive, composeSize, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertBorderColor, composeRadius, makeStyle, getGlobalColorCSSProp } from '@gem-sdk/core';
1
+ import { makeStyleResponsive, getPaddingStyleByDevice, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertBorderColor, composeRadius, makeStyle, getGlobalColorCSSProp } from '@gem-sdk/core';
2
2
 
3
3
  function filterTruthyStyles(styles) {
4
4
  return Object.fromEntries(Object.entries(styles || {}).filter(([, value])=>!!value));
@@ -20,7 +20,7 @@ const getContainStyle = (styles)=>{
20
20
  const getDateStyle = (styles)=>{
21
21
  const { borderState, itemPadding, backgroundItemColor, roundedState } = styles || {};
22
22
  const composeStyles = {
23
- ...!itemPadding?.type ? composeSize(itemPadding?.custom) : {},
23
+ ...getPaddingStyleByDevice(itemPadding),
24
24
  ...handleConvertBorderStyle(borderState),
25
25
  ...handleConvertBorderWidth(borderState),
26
26
  ...handleConvertBorderColor(borderState),
@@ -253,7 +253,7 @@ const CountdownSettings = [
253
253
  id: 'dayLabel',
254
254
  label: 'Label',
255
255
  type: 'input',
256
- default: 'Days',
256
+ default: 'Day',
257
257
  hide: false
258
258
  },
259
259
  {
@@ -276,7 +276,7 @@ const CountdownSettings = [
276
276
  id: 'hourLabel',
277
277
  label: 'Label',
278
278
  type: 'input',
279
- default: 'Hours',
279
+ default: 'Hour',
280
280
  hide: false
281
281
  },
282
282
  {
@@ -299,7 +299,7 @@ const CountdownSettings = [
299
299
  id: 'minuteLabel',
300
300
  label: 'Label',
301
301
  type: 'input',
302
- default: 'Minutes',
302
+ default: 'Minute',
303
303
  hide: false
304
304
  },
305
305
  {
@@ -322,7 +322,7 @@ const CountdownSettings = [
322
322
  id: 'secondLabel',
323
323
  label: 'Label',
324
324
  type: 'input',
325
- default: 'Seconds',
325
+ default: 'Second',
326
326
  hide: false
327
327
  },
328
328
  {
@@ -345,7 +345,7 @@ const CountdownSettings = [
345
345
  id: 'weekLabel',
346
346
  label: 'Label',
347
347
  type: 'input',
348
- default: 'Weeks',
348
+ default: 'Week',
349
349
  hide: false
350
350
  }
351
351
  ]
@@ -406,11 +406,7 @@ const CountdownSettings = [
406
406
  bold: true
407
407
  }
408
408
  },
409
- ignoreReRender: true,
410
- hiddenSetting: {
411
- textAlign: true,
412
- textShadow: true
413
- }
409
+ ignoreReRender: true
414
410
  },
415
411
  {
416
412
  id: 'colorNumber',
@@ -435,11 +431,7 @@ const CountdownSettings = [
435
431
  color: 'text-1'
436
432
  }
437
433
  },
438
- ignoreReRender: true,
439
- hiddenSetting: {
440
- textAlign: true,
441
- textShadow: true
442
- }
434
+ ignoreReRender: true
443
435
  },
444
436
  {
445
437
  id: 'colorLabel',
@@ -532,7 +524,7 @@ const CountdownSettings = [
532
524
  units: [
533
525
  'px'
534
526
  ],
535
- default: '0px'
527
+ default: '8px'
536
528
  },
537
529
  {
538
530
  id: 'horizontalGap',
@@ -543,16 +535,18 @@ const CountdownSettings = [
543
535
  units: [
544
536
  'px'
545
537
  ],
546
- default: '8px'
538
+ default: '16px'
547
539
  },
548
540
  {
549
541
  id: 'itemPadding',
550
542
  label: 'Padding',
551
543
  type: 'padding-v2',
552
544
  default: {
553
- type: 'medium'
554
- },
555
- ignoreReRender: true
545
+ top: '8px',
546
+ left: '24px',
547
+ right: '24px',
548
+ bottom: '8px'
549
+ }
556
550
  }
557
551
  ]
558
552
  },
@@ -45,7 +45,7 @@ const SettingUIV2 = [
45
45
  layout: 'vertical'
46
46
  },
47
47
  {
48
- conditionDisplay: 'behaviour === "evergreen"',
48
+ conditionDisplay: 'behaviour === "evergreen" && autoHideWhenTimeout === false',
49
49
  label: {
50
50
  en: 'Loop (refresh after finish)'
51
51
  },
@@ -65,7 +65,7 @@ const SettingUIV2 = [
65
65
  label: {
66
66
  en: 'Items'
67
67
  },
68
- fixedValue: 'Edit...',
68
+ fixedValue: '5 items',
69
69
  iconName: 'polaris-list-bulleted',
70
70
  popoverLabel: {
71
71
  en: 'Item management'
@@ -82,7 +82,7 @@ const SettingUIV2 = [
82
82
  },
83
83
  {
84
84
  label: {
85
- en: 'Week label'
85
+ en: 'Week caption'
86
86
  },
87
87
  conditionDisplay: 'enableWeek === true',
88
88
  setting: {
@@ -99,7 +99,7 @@ const SettingUIV2 = [
99
99
  },
100
100
  {
101
101
  label: {
102
- en: 'Day label'
102
+ en: 'Day caption'
103
103
  },
104
104
  conditionDisplay: 'enableDay === true',
105
105
  setting: {
@@ -116,7 +116,7 @@ const SettingUIV2 = [
116
116
  },
117
117
  {
118
118
  label: {
119
- en: 'Hour label'
119
+ en: 'Hour caption'
120
120
  },
121
121
  conditionDisplay: 'enableHour === true',
122
122
  setting: {
@@ -133,7 +133,7 @@ const SettingUIV2 = [
133
133
  },
134
134
  {
135
135
  label: {
136
- en: 'Minute label'
136
+ en: 'Minute caption'
137
137
  },
138
138
  conditionDisplay: 'enableMinute === true',
139
139
  setting: {
@@ -150,7 +150,7 @@ const SettingUIV2 = [
150
150
  },
151
151
  {
152
152
  label: {
153
- en: 'Second label'
153
+ en: 'Second caption'
154
154
  },
155
155
  conditionDisplay: 'enableSecond === true',
156
156
  setting: {
@@ -196,7 +196,7 @@ const SettingUIV2 = [
196
196
  en: 'Item gap'
197
197
  },
198
198
  setting: {
199
- id: 'horizontalGap'
199
+ id: 'verticalGap'
200
200
  }
201
201
  },
202
202
  {
@@ -255,13 +255,16 @@ const SettingUIV2 = [
255
255
  },
256
256
  conditionDisplay: 'enableLabelTextStyle == true',
257
257
  type: 'combo',
258
+ popoverLabel: {
259
+ en: 'Time text style'
260
+ },
258
261
  iconName: 'polaris-text-title',
259
- getValueFromSettingID: 'labelTypo.type',
262
+ getValueFromSettingID: 'numTypo.type',
260
263
  isHideClear: true,
261
264
  controls: [
262
265
  {
263
266
  setting: {
264
- id: 'labelTypo'
267
+ id: 'numTypo'
265
268
  },
266
269
  layout: 'vertical'
267
270
  }
@@ -287,26 +290,36 @@ const SettingUIV2 = [
287
290
  label: {
288
291
  en: 'Text style'
289
292
  },
293
+ popoverLabel: {
294
+ en: 'Caption text style'
295
+ },
290
296
  conditionDisplay: 'enableNumberTextStyle == true',
291
297
  type: 'combo',
292
298
  iconName: 'polaris-text-title',
293
299
  isHideClear: true,
294
- getValueFromSettingID: 'numTypo.type',
300
+ getValueFromSettingID: 'labelTypo.type',
295
301
  controls: [
296
302
  {
297
303
  setting: {
298
- id: 'numTypo'
304
+ id: 'labelTypo'
299
305
  },
300
306
  layout: 'vertical'
301
307
  }
302
308
  ]
303
- },
309
+ }
310
+ ]
311
+ },
312
+ {
313
+ label: {
314
+ en: 'Item spacing'
315
+ },
316
+ controls: [
304
317
  {
305
318
  label: {
306
- en: 'Item gap'
319
+ en: 'gap'
307
320
  },
308
321
  setting: {
309
- id: 'verticalGap'
322
+ id: 'horizontalGap'
310
323
  }
311
324
  }
312
325
  ]
@@ -341,7 +354,7 @@ const SettingUIV2 = [
341
354
  en: 'Border'
342
355
  },
343
356
  setting: {
344
- id: 'borderState',
357
+ id: 'border',
345
358
  state: 'normal'
346
359
  }
347
360
  },
@@ -350,7 +363,7 @@ const SettingUIV2 = [
350
363
  en: 'Corner'
351
364
  },
352
365
  setting: {
353
- id: 'roundedState',
366
+ id: 'rounded',
354
367
  state: 'normal'
355
368
  }
356
369
  },
@@ -28,6 +28,7 @@ const NextImage = (props)=>{
28
28
  return template`
29
29
  <img
30
30
  ${nextImageAttrs}
31
+ id="${props?.id}"
31
32
  style="${nextImageStyles}"
32
33
  class="${nextImageClasses}"
33
34
  />`;
@@ -96,7 +96,7 @@ const ImageSettings = [
96
96
  minHeight: 56,
97
97
  autoHeight: true,
98
98
  placeholder: 'E.g: Classic white crewneck t-shirt with minimalist design',
99
- default: 'Describes the appearance of the image'
99
+ default: undefined
100
100
  },
101
101
  {
102
102
  id: 'title',
@@ -106,7 +106,7 @@ const ImageSettings = [
106
106
  minHeight: 56,
107
107
  autoHeight: true,
108
108
  placeholder: 'E.g: White t-shirt',
109
- default: 'Title'
109
+ default: undefined
110
110
  }
111
111
  ]
112
112
  },
@@ -351,6 +351,7 @@ const SettingUIV2 = [
351
351
  },
352
352
  iconName: 'polaris-text-block',
353
353
  getValueFromSettingID: 'alt',
354
+ compoDefaultValue: 'Describes the appearance of the image',
354
355
  isHideClear: true,
355
356
  controls: [
356
357
  {
@@ -372,6 +373,7 @@ const SettingUIV2 = [
372
373
  iconName: 'polaris-text-block',
373
374
  getValueFromSettingID: 'title',
374
375
  isHideClear: true,
376
+ compoDefaultValue: 'Title',
375
377
  controls: [
376
378
  {
377
379
  label: {
@@ -129,7 +129,8 @@ const generateTranslateByDevices = ({ isHorizontal, labelPositionHoz, labelPosit
129
129
  return translateByDevices;
130
130
  };
131
131
  const getSliderPositionPercentage = (defaultPercentage)=>{
132
- return (defaultPercentage ?? 50) / 100;
132
+ const percentage = typeof defaultPercentage === 'string' ? parseInt(defaultPercentage ?? 0) : defaultPercentage;
133
+ return (percentage ?? 50) / 100;
133
134
  };
134
135
 
135
136
  export { composeAspectRatio, composeLabelPosition, composeResponsiveAspectRatio, generateTranslateByDevices, getAspectRatioData, getLabelPosition, getSliderPositionPercentage };
@@ -17,9 +17,11 @@ const useCompareImage = ({ props, aspectRatio })=>{
17
17
  const leftImageRef = useRef(null);
18
18
  const { onListener, saveToElementInteractionData } = useInteraction();
19
19
  const ref = useRef(null);
20
- const memoAspectRatio = useMemo(()=>aspectRatio || styles?.aspectRatio, [
21
- aspectRatio,
22
- styles?.aspectRatio
20
+ const memoAspectRatio = useMemo(()=>aspectRatio, [
21
+ leftImage,
22
+ rightImage,
23
+ styles?.aspectRatio,
24
+ styles?.customAspectRadio
23
25
  ]);
24
26
  useEffect(()=>{
25
27
  const selector = `[data-id="${props?.componentUid}"]`;
@@ -32,7 +32,8 @@ const ImageComparisonSettings = [
32
32
  height: 600
33
33
  },
34
34
  hiddenSetting: {
35
- seo: true
35
+ seo: true,
36
+ optimizeLCP: true
36
37
  }
37
38
  }
38
39
  ]
@@ -51,7 +52,8 @@ const ImageComparisonSettings = [
51
52
  height: 600
52
53
  },
53
54
  hiddenSetting: {
54
- seo: true
55
+ seo: true,
56
+ optimizeLCP: true
55
57
  }
56
58
  }
57
59
  ]
@@ -253,9 +255,8 @@ const ImageComparisonSettings = [
253
255
  devices: {
254
256
  desktop: {
255
257
  default: {
256
- shape: 'square',
257
- shapeValue: '1/1',
258
- width: '100%',
258
+ shape: 'horizontal',
259
+ width: '600px',
259
260
  height: undefined,
260
261
  shapeLinked: true
261
262
  }
@@ -376,7 +377,7 @@ const ImageComparisonSettings = [
376
377
  border: 'none',
377
378
  borderWidth: '1px',
378
379
  width: '1px 1px 1px 1px',
379
- color: '#121212',
380
+ color: 'line-1',
380
381
  isCustom: true
381
382
  }
382
383
  }
@@ -385,7 +386,7 @@ const ImageComparisonSettings = [
385
386
  desktop: {
386
387
  default: {
387
388
  border: 'solid',
388
- color: '#121212',
389
+ color: 'line-1',
389
390
  width: '1px',
390
391
  borderWidth: '1px'
391
392
  }