@gem-sdk/components 2.0.0-dev.336 → 2.0.0-dev.338

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 (40) hide show
  1. package/dist/cjs/product/components/ProductButton/components/PriceComponent.js +3 -1
  2. package/dist/cjs/product/components/ProductButton/components/PriceComponent.liquid.js +3 -1
  3. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +51 -55
  4. package/dist/cjs/product/components/ProductPrice/common/getAttr.js +2 -2
  5. package/dist/cjs/product/components/ProductPrice/common/getTextData.js +1 -1
  6. package/dist/cjs/product/components/ProductPrice/hooks/useGpPrice.js +2 -2
  7. package/dist/cjs/product/components/ProductPrice/index.liquid.js +2 -2
  8. package/dist/cjs/product/components/ProductQuickView/ProductQuickView.js +7 -3
  9. package/dist/cjs/product/setting/constant/bundle-layout/horizontalOne.js +2 -2
  10. package/dist/cjs/product/setting/constant/bundle-layout/horizontalTwo.js +2 -2
  11. package/dist/cjs/product/setting/constant/bundle-layout/verticalOne.js +2 -2
  12. package/dist/cjs/product/setting/product/configs/product-presets/product-1-col.js +12 -6
  13. package/dist/cjs/product/setting/product/configs/product-presets/product-2-col.js +12 -6
  14. package/dist/cjs/product/setting/product/configs/product-presets/product-default.js +12 -6
  15. package/dist/cjs/product/setting/product-image-v2/configs/uiV2.js +1 -1
  16. package/dist/cjs/product/setting/product-list/configs/presets.js +12 -3
  17. package/dist/cjs/product/setting/product-price/configs/presets.js +3 -1
  18. package/dist/cjs/product/setting/product-price/configs/settings.js +28 -13
  19. package/dist/cjs/sticky/setting/preset-config.js +6 -2
  20. package/dist/esm/product/components/ProductButton/components/PriceComponent.js +3 -1
  21. package/dist/esm/product/components/ProductButton/components/PriceComponent.liquid.js +3 -1
  22. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +52 -56
  23. package/dist/esm/product/components/ProductPrice/common/getAttr.js +2 -2
  24. package/dist/esm/product/components/ProductPrice/common/getTextData.js +1 -1
  25. package/dist/esm/product/components/ProductPrice/hooks/useGpPrice.js +2 -2
  26. package/dist/esm/product/components/ProductPrice/index.liquid.js +2 -2
  27. package/dist/esm/product/components/ProductQuickView/ProductQuickView.js +7 -3
  28. package/dist/esm/product/setting/constant/bundle-layout/horizontalOne.js +2 -2
  29. package/dist/esm/product/setting/constant/bundle-layout/horizontalTwo.js +2 -2
  30. package/dist/esm/product/setting/constant/bundle-layout/verticalOne.js +2 -2
  31. package/dist/esm/product/setting/product/configs/product-presets/product-1-col.js +12 -6
  32. package/dist/esm/product/setting/product/configs/product-presets/product-2-col.js +12 -6
  33. package/dist/esm/product/setting/product/configs/product-presets/product-default.js +12 -6
  34. package/dist/esm/product/setting/product-image-v2/configs/uiV2.js +1 -1
  35. package/dist/esm/product/setting/product-list/configs/presets.js +12 -3
  36. package/dist/esm/product/setting/product-price/configs/presets.js +3 -1
  37. package/dist/esm/product/setting/product-price/configs/settings.js +28 -13
  38. package/dist/esm/sticky/setting/preset-config.js +6 -2
  39. package/dist/types/index.d.ts +1 -2
  40. package/package.json +1 -1
@@ -7,9 +7,11 @@ const PriceComponent = ({ priceType, settings })=>{
7
7
  const { lineThrough, typo } = settings;
8
8
  const productPriceClasses = createClass(getProductPriceClasses());
9
9
  return /*#__PURE__*/ jsx(ProductPrice, {
10
+ setting: {
11
+ priceType
12
+ },
10
13
  styles: {
11
14
  typo,
12
- priceType,
13
15
  lineThrough
14
16
  },
15
17
  classNames: productPriceClasses
@@ -6,9 +6,11 @@ const PriceComponent = ({ priceType, settings })=>{
6
6
  const { lineThrough, typo } = settings;
7
7
  const productPriceClasses = createClass(getProductPriceClasses());
8
8
  return ProductPrice({
9
+ setting: {
10
+ priceType
11
+ },
9
12
  styles: {
10
13
  typo,
11
- priceType,
12
14
  lineThrough
13
15
  },
14
16
  classNames: productPriceClasses
@@ -1,4 +1,4 @@
1
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
1
+ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import { useCurrentDevice } from '@gem-sdk/core';
3
3
  import { getAspectRatio } from '../../common/common.js';
4
4
  import { getEditorMinHeightClass } from '../../common/productGallery.js';
@@ -22,61 +22,57 @@ const ProductGalleryCarousel = (props)=>{
22
22
  const { galleryCarouselSettingAttrs } = getProductImagesAttr(setting);
23
23
  const { galleryCarouselStyle, galleryCarouselItemStyle } = getProductImagesStyles(setting);
24
24
  const { moveToIdx, isDisplay, shapeByLayout, isEnableBorderActive, isShowButtonLightbox, filteredProductImages, handleClickCarouselItem } = useGalleryCarousel(props);
25
- return /*#__PURE__*/ jsxs(Fragment, {
26
- children: [
27
- "(",
28
- isDisplay && /*#__PURE__*/ jsx(Carousel, {
29
- parentClass: builderPropsClass,
30
- rootClass: builderPropsClass,
31
- setting: galleryCarouselSettingAttrs,
32
- styles: galleryCarouselStyle,
33
- slidesClass: getEditorMinHeightClass(currentDevice, setting.position, setting.navigationPosition),
34
- builderProps: {
35
- uid: `${builderPropUID}-carousel`
36
- },
37
- moveToIdx: moveToIdx,
38
- isHiddenArrowWhenDisabled: true,
39
- disableMarginAuto: true,
40
- children: filteredProductImages?.map((image, index)=>{
41
- const canActive = index === moveToIdx;
42
- const imageSrc = isFeatureMedia(image.contentType) ? image.previewImage : image.src;
43
- return /*#__PURE__*/ jsxs(CarouselItem, {
44
- contentType: "productImage",
45
- className: galleryItemClasses(`gp-gallery-image-item gem-slider-item-${builderPropUID} ${canActive && isEnableBorderActive ? 'gem-slider-item-active' : ''}`),
46
- onClickItem: ()=>handleClickCarouselItem(image?.id),
47
- style: galleryCarouselItemStyle,
48
- "data-id": image?.id,
49
- "data-border": canActive && !!setting?.borderActive && setting?.activeEffectEnable ? 'active' : 'deactive',
50
- children: [
51
- /*#__PURE__*/ jsx(NextImage, {
52
- draggable: "false",
53
- src: imageSrc,
54
- width: image?.width,
55
- height: image?.height,
56
- alt: image?.alt,
57
- setting: {
58
- aspectRatio: getAspectRatio(shapeByLayout),
59
- layout: setting?.layout,
60
- qualityPercent: setting?.qualityPercent,
61
- qualityType: setting?.qualityType
62
- },
63
- style: {
64
- width: '100%',
65
- height: '100%',
66
- cursor: 'pointer'
67
- },
68
- className: "product-list-image"
69
- }),
70
- /*#__PURE__*/ jsx(MediaIcon, {
71
- contentType: image?.contentType || ''
72
- }),
73
- If(isShowButtonLightbox, /*#__PURE__*/ jsx(ButtonOpenLightBox, {}))
74
- ]
75
- }, image?.id);
76
- })
77
- }),
78
- ")"
79
- ]
25
+ return /*#__PURE__*/ jsx(Fragment, {
26
+ children: isDisplay && /*#__PURE__*/ jsx(Carousel, {
27
+ parentClass: builderPropsClass,
28
+ rootClass: builderPropsClass,
29
+ setting: galleryCarouselSettingAttrs,
30
+ styles: galleryCarouselStyle,
31
+ slidesClass: getEditorMinHeightClass(currentDevice, setting.position, setting.navigationPosition),
32
+ builderProps: {
33
+ uid: `${builderPropUID}-carousel`
34
+ },
35
+ moveToIdx: moveToIdx,
36
+ isHiddenArrowWhenDisabled: true,
37
+ disableMarginAuto: true,
38
+ children: filteredProductImages?.map((image, index)=>{
39
+ const canActive = index === moveToIdx;
40
+ const imageSrc = isFeatureMedia(image.contentType) ? image.previewImage : image.src;
41
+ return /*#__PURE__*/ jsxs(CarouselItem, {
42
+ contentType: "productImage",
43
+ className: galleryItemClasses(`gp-gallery-image-item gem-slider-item-${builderPropUID} ${canActive && isEnableBorderActive ? 'gem-slider-item-active' : ''}`),
44
+ onClickItem: ()=>handleClickCarouselItem(image?.id),
45
+ style: galleryCarouselItemStyle,
46
+ "data-id": image?.id,
47
+ "data-border": canActive && !!setting?.borderActive && setting?.activeEffectEnable ? 'active' : 'deactive',
48
+ children: [
49
+ /*#__PURE__*/ jsx(NextImage, {
50
+ draggable: "false",
51
+ src: imageSrc,
52
+ width: image?.width,
53
+ height: image?.height,
54
+ alt: image?.alt,
55
+ setting: {
56
+ aspectRatio: getAspectRatio(shapeByLayout),
57
+ layout: setting?.layout,
58
+ qualityPercent: setting?.qualityPercent,
59
+ qualityType: setting?.qualityType
60
+ },
61
+ style: {
62
+ width: '100%',
63
+ height: '100%',
64
+ cursor: 'pointer'
65
+ },
66
+ className: "product-list-image"
67
+ }),
68
+ /*#__PURE__*/ jsx(MediaIcon, {
69
+ contentType: image?.contentType || ''
70
+ }),
71
+ If(isShowButtonLightbox, /*#__PURE__*/ jsx(ButtonOpenLightBox, {}))
72
+ ]
73
+ }, image?.id);
74
+ })
75
+ })
80
76
  });
81
77
  };
82
78
 
@@ -1,8 +1,8 @@
1
1
  import { filterTruthyObject } from '../../../../helpers.js';
2
2
 
3
3
  const getAttrs = (props, productId)=>{
4
- const { builderAttrs, styles, builderProps } = props;
5
- const isComparePrice = styles?.priceType === 'compare' || false;
4
+ const { builderAttrs, setting, builderProps } = props;
5
+ const isComparePrice = setting?.priceType === 'compare' || false;
6
6
  const getDataHidden = ()=>{
7
7
  if (isComparePrice) {
8
8
  return `{% if variant.compare_at_price > variant.price and variant.compare_at_price >= 0 %}false{% else %}true{% endif %}`;
@@ -2,7 +2,7 @@ import { getGlobalColorClass, cls } from '@gem-sdk/core';
2
2
 
3
3
  const getTextProps = (props, text)=>{
4
4
  const { setting, styles, builderProps, classNames } = props;
5
- const isComparePrice = styles?.priceType === 'compare' || false;
5
+ const isComparePrice = setting?.priceType === 'compare' || false;
6
6
  const colorClass = getGlobalColorClass('decoration', styles?.lineColor);
7
7
  const priceCompare = ()=>{
8
8
  return `
@@ -3,7 +3,7 @@ import { useTransition } from '../../ProductVariants/common/common.js';
3
3
  import { useEditorMode, useQuantity, useCurrentVariant, useProductBundleDiscount, useInteraction, useProduct, useFormatMoney } from '@gem-sdk/core';
4
4
 
5
5
  const useGpPrice = (props)=>{
6
- const { styles, setting, builderProps } = props;
6
+ const { setting, builderProps } = props;
7
7
  const elementRef = useRef(null);
8
8
  const mode = useEditorMode();
9
9
  const { quantity, hasUpdatePrice } = useQuantity();
@@ -12,7 +12,7 @@ const useGpPrice = (props)=>{
12
12
  const bundleItem = props['bundle-item'];
13
13
  const price = currentVariant?.price ?? 0;
14
14
  const salePrice = currentVariant?.salePrice ?? 0;
15
- const isComparePrice = styles?.priceType === 'compare' || false;
15
+ const isComparePrice = setting?.priceType === 'compare' || false;
16
16
  const { trigger } = useInteraction();
17
17
  const currentProduct = useProduct();
18
18
  const currentProductId = currentProduct?.baseID?.replace('gid://shopify/Product/', '');
@@ -7,12 +7,12 @@ import { getAttrs } from './common/getAttr.js';
7
7
  import { getTextProps } from './common/getTextData.js';
8
8
 
9
9
  const ProductPrice = (props)=>{
10
- const { style, setting, styles, builderProps } = props;
10
+ const { style, setting, builderProps } = props;
11
11
  const wrapperClasses = createClass(getWrapperClasses(props));
12
12
  const wrapperAttrs = createAttr(getAttrs(props));
13
13
  const textProps = getTextProps(props);
14
14
  const stateData = createStateOrContext({
15
- priceType: styles?.priceType,
15
+ priceType: setting?.priceType,
16
16
  uid: builderProps?.uid,
17
17
  locale: `{{shop.locale}}`,
18
18
  currency: `{{shop.currency}}`,
@@ -93,8 +93,10 @@ const ModalContent = ()=>{
93
93
  children: [
94
94
  /*#__PURE__*/ jsx(Column, {
95
95
  children: /*#__PURE__*/ jsx(ProductPrice, {
96
+ setting: {
97
+ priceType: 'regular'
98
+ },
96
99
  styles: {
97
- priceType: 'regular',
98
100
  typography: {
99
101
  type: 'subheading-2'
100
102
  }
@@ -103,11 +105,13 @@ const ModalContent = ()=>{
103
105
  }),
104
106
  /*#__PURE__*/ jsx(Column, {
105
107
  children: /*#__PURE__*/ jsx(ProductPrice, {
108
+ setting: {
109
+ priceType: 'compare'
110
+ },
106
111
  styles: {
107
112
  typography: {
108
113
  type: 'paragraph-2'
109
- },
110
- priceType: 'compare'
114
+ }
111
115
  }
112
116
  })
113
117
  })
@@ -278,6 +278,7 @@ const horizontalOne = [
278
278
  childrens: [],
279
279
  label: 'Product Price',
280
280
  settings: {
281
+ priceType: 'compare',
281
282
  hasOnlyDefaultVariant: false
282
283
  },
283
284
  styles: {
@@ -289,7 +290,6 @@ const horizontalOne = [
289
290
  },
290
291
  lineColor: 'text-1',
291
292
  lineThrough: true,
292
- priceType: 'compare',
293
293
  textAlign: {
294
294
  desktop: 'right'
295
295
  },
@@ -319,6 +319,7 @@ const horizontalOne = [
319
319
  childrens: [],
320
320
  label: 'Product Price',
321
321
  settings: {
322
+ priceType: 'regular',
322
323
  hasOnlyDefaultVariant: false
323
324
  },
324
325
  styles: {
@@ -330,7 +331,6 @@ const horizontalOne = [
330
331
  },
331
332
  lineColor: 'text-1',
332
333
  lineThrough: true,
333
- priceType: 'regular',
334
334
  textAlign: {
335
335
  desktop: 'right'
336
336
  },
@@ -420,6 +420,7 @@ const horizontalTwo = [
420
420
  childrens: [],
421
421
  label: 'Product Price',
422
422
  settings: {
423
+ priceType: 'compare',
423
424
  hasOnlyDefaultVariant: false
424
425
  },
425
426
  styles: {
@@ -431,7 +432,6 @@ const horizontalTwo = [
431
432
  },
432
433
  lineColor: 'text-1',
433
434
  lineThrough: true,
434
- priceType: 'compare',
435
435
  textAlign: {
436
436
  desktop: 'right'
437
437
  },
@@ -461,6 +461,7 @@ const horizontalTwo = [
461
461
  childrens: [],
462
462
  label: 'Product Price',
463
463
  settings: {
464
+ priceType: 'regular',
464
465
  hasOnlyDefaultVariant: false
465
466
  },
466
467
  styles: {
@@ -472,7 +473,6 @@ const horizontalTwo = [
472
473
  },
473
474
  lineColor: 'text-1',
474
475
  lineThrough: true,
475
- priceType: 'regular',
476
476
  textAlign: {
477
477
  desktop: 'right'
478
478
  },
@@ -138,6 +138,7 @@ const verticalOne = [
138
138
  {
139
139
  label: 'Product Price',
140
140
  settings: {
141
+ priceType: 'compare',
141
142
  hasOnlyDefaultVariant: false
142
143
  },
143
144
  styles: {
@@ -149,7 +150,6 @@ const verticalOne = [
149
150
  },
150
151
  lineColor: 'text-1',
151
152
  lineThrough: true,
152
- priceType: 'compare',
153
153
  textAlign: {
154
154
  desktop: 'right'
155
155
  },
@@ -180,6 +180,7 @@ const verticalOne = [
180
180
  {
181
181
  label: 'Product Price',
182
182
  settings: {
183
+ priceType: 'regular',
183
184
  hasOnlyDefaultVariant: false
184
185
  },
185
186
  styles: {
@@ -191,7 +192,6 @@ const verticalOne = [
191
192
  },
192
193
  lineColor: 'text-1',
193
194
  lineThrough: true,
194
- priceType: 'regular',
195
195
  textAlign: {
196
196
  desktop: 'right'
197
197
  },
@@ -120,9 +120,10 @@ const product1Col = {
120
120
  childrens: [
121
121
  {
122
122
  tag: 'ProductPrice',
123
- styles: {
123
+ settings: {
124
124
  priceType: 'regular'
125
- }
125
+ },
126
+ styles: {}
126
127
  }
127
128
  ]
128
129
  },
@@ -131,8 +132,10 @@ const product1Col = {
131
132
  childrens: [
132
133
  {
133
134
  tag: 'ProductPrice',
135
+ settings: {
136
+ priceType: 'compare'
137
+ },
134
138
  styles: {
135
- priceType: 'compare',
136
139
  color: {
137
140
  normal: 'text-1'
138
141
  }
@@ -365,9 +368,10 @@ const product1ColProductPage = {
365
368
  childrens: [
366
369
  {
367
370
  tag: 'ProductPrice',
368
- styles: {
371
+ settings: {
369
372
  priceType: 'regular'
370
- }
373
+ },
374
+ styles: {}
371
375
  }
372
376
  ]
373
377
  },
@@ -376,8 +380,10 @@ const product1ColProductPage = {
376
380
  childrens: [
377
381
  {
378
382
  tag: 'ProductPrice',
383
+ settings: {
384
+ priceType: 'compare'
385
+ },
379
386
  styles: {
380
- priceType: 'compare',
381
387
  color: {
382
388
  normal: 'text-1'
383
389
  }
@@ -121,9 +121,10 @@ const product2Col = {
121
121
  childrens: [
122
122
  {
123
123
  tag: 'ProductPrice',
124
- styles: {
124
+ settings: {
125
125
  priceType: 'regular'
126
- }
126
+ },
127
+ styles: {}
127
128
  }
128
129
  ]
129
130
  },
@@ -132,8 +133,10 @@ const product2Col = {
132
133
  childrens: [
133
134
  {
134
135
  tag: 'ProductPrice',
136
+ settings: {
137
+ priceType: 'compare'
138
+ },
135
139
  styles: {
136
- priceType: 'compare',
137
140
  color: {
138
141
  normal: 'text-1'
139
142
  }
@@ -371,9 +374,10 @@ const product2ColProductPage = {
371
374
  childrens: [
372
375
  {
373
376
  tag: 'ProductPrice',
374
- styles: {
377
+ settings: {
375
378
  priceType: 'regular'
376
- }
379
+ },
380
+ styles: {}
377
381
  }
378
382
  ]
379
383
  },
@@ -382,8 +386,10 @@ const product2ColProductPage = {
382
386
  childrens: [
383
387
  {
384
388
  tag: 'ProductPrice',
389
+ settings: {
390
+ priceType: 'compare'
391
+ },
385
392
  styles: {
386
- priceType: 'compare',
387
393
  color: {
388
394
  normal: 'text-1'
389
395
  }
@@ -122,9 +122,10 @@ const productDefault = {
122
122
  childrens: [
123
123
  {
124
124
  tag: 'ProductPrice',
125
- styles: {
125
+ settings: {
126
126
  priceType: 'regular'
127
- }
127
+ },
128
+ styles: {}
128
129
  }
129
130
  ]
130
131
  },
@@ -133,8 +134,10 @@ const productDefault = {
133
134
  childrens: [
134
135
  {
135
136
  tag: 'ProductPrice',
137
+ settings: {
138
+ priceType: 'compare'
139
+ },
136
140
  styles: {
137
- priceType: 'compare',
138
141
  color: {
139
142
  normal: 'text-1'
140
143
  }
@@ -378,9 +381,10 @@ const productDynamicProductPage = {
378
381
  childrens: [
379
382
  {
380
383
  tag: 'ProductPrice',
381
- styles: {
384
+ settings: {
382
385
  priceType: 'regular'
383
- }
386
+ },
387
+ styles: {}
384
388
  }
385
389
  ]
386
390
  },
@@ -389,8 +393,10 @@ const productDynamicProductPage = {
389
393
  childrens: [
390
394
  {
391
395
  tag: 'ProductPrice',
396
+ settings: {
397
+ priceType: 'compare'
398
+ },
392
399
  styles: {
393
- priceType: 'compare',
394
400
  color: {
395
401
  normal: 'text-1'
396
402
  }
@@ -97,7 +97,7 @@ const SettingUIV2 = [
97
97
  fixedValue: 'Custom',
98
98
  iconName: 'polaris-edit',
99
99
  label: {
100
- en: 'Featured image slider'
100
+ en: 'Featured slider'
101
101
  },
102
102
  setting: {
103
103
  id: 'ftSlidesActionEnable'
@@ -253,8 +253,10 @@ const ProductListPreset = [
253
253
  {
254
254
  tag: 'ProductPrice',
255
255
  label: 'Product Price',
256
+ settings: {
257
+ priceType: 'regular'
258
+ },
256
259
  styles: {
257
- priceType: 'regular',
258
260
  typo: {
259
261
  type: 'subheading-2'
260
262
  },
@@ -300,8 +302,10 @@ const ProductListPreset = [
300
302
  {
301
303
  tag: 'ProductPrice',
302
304
  label: 'Product Price',
305
+ settings: {
306
+ priceType: 'compare'
307
+ },
303
308
  styles: {
304
- priceType: 'compare',
305
309
  typo: {
306
310
  type: 'subheading-2'
307
311
  },
@@ -640,6 +644,9 @@ const ProductListPreset = [
640
644
  {
641
645
  tag: 'ProductPrice',
642
646
  label: 'Product Price',
647
+ settings: {
648
+ priceType: 'regular'
649
+ },
643
650
  styles: {
644
651
  priceType: 'regular',
645
652
  typo: {
@@ -687,8 +694,10 @@ const ProductListPreset = [
687
694
  {
688
695
  tag: 'ProductPrice',
689
696
  label: 'Product Price',
697
+ settings: {
698
+ priceType: 'compare'
699
+ },
690
700
  styles: {
691
- priceType: 'compare',
692
701
  typo: {
693
702
  type: 'subheading-2'
694
703
  },
@@ -50,8 +50,10 @@ const ProductPricePreset = [
50
50
  components: [
51
51
  {
52
52
  tag: 'ProductPrice',
53
+ settings: {
54
+ priceType: 'compare'
55
+ },
53
56
  styles: {
54
- priceType: 'compare',
55
57
  typo: {
56
58
  default: {
57
59
  type: 'subheading-2'
@@ -5,18 +5,7 @@ const ProductPriceSettings = [
5
5
  {
6
6
  id: 'moneyWithCurrentFormat',
7
7
  type: 'toggle'
8
- }
9
- ]
10
- },
11
- {
12
- id: 'style',
13
- // info: {
14
- // previous_link_text: 'You can change the content in',
15
- // link_text: 'Shopify',
16
- // next_link_text: '',
17
- // link_type: 'shopify_admin',
18
- // },
19
- controls: [
8
+ },
20
9
  {
21
10
  id: 'priceType',
22
11
  type: 'option:value',
@@ -31,7 +20,33 @@ const ProductPriceSettings = [
31
20
  }
32
21
  ],
33
22
  default: 'regular'
34
- },
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ id: 'style',
28
+ // info: {
29
+ // previous_link_text: 'You can change the content in',
30
+ // link_text: 'Shopify',
31
+ // next_link_text: '',
32
+ // link_type: 'shopify_admin',
33
+ // },
34
+ controls: [
35
+ // {
36
+ // id: 'priceType',
37
+ // type: 'option:value',
38
+ // options: [
39
+ // {
40
+ // label: 'Original',
41
+ // value: 'regular',
42
+ // },
43
+ // {
44
+ // label: 'Compare',
45
+ // value: 'compare',
46
+ // },
47
+ // ],
48
+ // default: 'regular',
49
+ // },
35
50
  {
36
51
  id: 'lineThrough',
37
52
  type: 'combo',
@@ -317,6 +317,9 @@ const StickyPreset = {
317
317
  {
318
318
  tag: 'ProductPrice',
319
319
  label: 'Product Price',
320
+ settings: {
321
+ priceType: 'regular'
322
+ },
320
323
  styles: {
321
324
  typo: {
322
325
  type: 'subheading-2',
@@ -335,7 +338,6 @@ const StickyPreset = {
335
338
  fontStyle: 'normal'
336
339
  }
337
340
  },
338
- priceType: 'regular',
339
341
  lineThrough: true,
340
342
  thickness: 1,
341
343
  lineColor: 'text-1',
@@ -1412,6 +1414,9 @@ const StickyPresetProduct = {
1412
1414
  {
1413
1415
  tag: 'ProductPrice',
1414
1416
  label: 'Product Price',
1417
+ settings: {
1418
+ priceType: 'regular'
1419
+ },
1415
1420
  styles: {
1416
1421
  typo: {
1417
1422
  type: 'subheading-2',
@@ -1430,7 +1435,6 @@ const StickyPresetProduct = {
1430
1435
  fontStyle: 'normal'
1431
1436
  }
1432
1437
  },
1433
- priceType: 'regular',
1434
1438
  lineThrough: true,
1435
1439
  thickness: 1,
1436
1440
  lineColor: 'text-1',