@gem-sdk/components 2.0.0-dev.700 → 2.0.0-dev.702

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 (110) hide show
  1. package/dist/cjs/banner/components/common/common.js +16 -5
  2. package/dist/cjs/banner/components/common/getStyle.js +1 -1
  3. package/dist/cjs/banner/components/hooks/useHeroBanner.js +1 -1
  4. package/dist/cjs/banner/setting/uiV2.js +37 -0
  5. package/dist/cjs/button/components/Button.js +4 -1
  6. package/dist/cjs/carousel/carousel-item/common/getClass.js +1 -1
  7. package/dist/cjs/grid/row/commons/getClass.js +1 -1
  8. package/dist/cjs/grid/row/commons/getStyle.js +2 -1
  9. package/dist/cjs/grid/row/setting/configs/settings.js +21 -0
  10. package/dist/cjs/grid/row/setting/configs/uiV2.js +10 -4
  11. package/dist/cjs/helpers.js +31 -1
  12. package/dist/cjs/icon-list-v2/components/IconList.liquid.js +1 -0
  13. package/dist/cjs/image/components/Image.js +1 -1
  14. package/dist/cjs/image/components/Image.liquid.js +1 -1
  15. package/dist/cjs/image/components/common/classes.js +3 -1
  16. package/dist/cjs/image/helpers/getSrcSet.js +2 -1
  17. package/dist/cjs/image/setting/configs/settings.js +9 -0
  18. package/dist/cjs/index.js +2 -0
  19. package/dist/cjs/post-purchase/product/components/product-offer/common/classes.js +5 -1
  20. package/dist/cjs/product/components/ProductBundle/common/styles.js +2 -2
  21. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -1
  22. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +1 -1
  23. package/dist/cjs/product/components/ProductBundle/setting/ProductBundleDiscount.js +2 -8
  24. package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -1
  25. package/dist/cjs/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +6 -2
  26. package/dist/cjs/product/components/ProductList/ProductList.liquid.js +4 -8
  27. package/dist/cjs/product/components/ProductVariants/index.liquid.js +8 -3
  28. package/dist/cjs/product/setting/constant/bundle-layout/horizontalThree.js +4 -6
  29. package/dist/cjs/product/setting/constant/bundle-layout/horizontalTwo.js +3 -5
  30. package/dist/cjs/product/setting/constant/bundle-layout/verticalThree.js +2 -1
  31. package/dist/cjs/product/setting/constant/bundle-layout/verticalTwo.js +2 -1
  32. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +13 -11
  33. package/dist/cjs/stock-counter/components/common/getContent.js +1 -1
  34. package/dist/cjs/text/components/Text.liquid.js +1 -0
  35. package/dist/cjs/text/components/common/getDisplayText.js +11 -20
  36. package/dist/cjs/third-party/components/EcomsendBackInStockAlert.liquid.js +8 -8
  37. package/dist/cjs/third-party/components/ProductOptionsVariantOption.js +2 -2
  38. package/dist/cjs/third-party/components/ProductOptionsVariantOption.liquid.js +2 -2
  39. package/dist/cjs/third-party/components/UnlimitedBundlesDiscounts.liquid.js +1 -1
  40. package/dist/cjs/third-party/configs/EcoboostifyShoppableReelUgc.js +1 -1
  41. package/dist/cjs/third-party/configs/NotifyBackInStockPreOrder.js +1 -1
  42. package/dist/cjs/third-party/setting/EcoboostifyShoppableReelUgc/index.js +2 -2
  43. package/dist/cjs/third-party/setting/EcomsendBackInStockAlert/index.js +5 -0
  44. package/dist/cjs/third-party/setting/EcomsendBackInStockAlert/uiV1.js +14 -0
  45. package/dist/cjs/third-party/setting/EcomsendBackInStockAlert/uiV2.js +31 -0
  46. package/dist/cjs/third-party/setting/FlyBundlesUpsellsFbt/uiV1.js +5 -0
  47. package/dist/cjs/third-party/setting/NotifyBackInStockPreOrder/index.js +2 -2
  48. package/dist/cjs/third-party/setting/ProductOptionsVariantOption/index.js +1 -7
  49. package/dist/cjs/third-party/setting/ProductOptionsVariantOption/uiV1.js +0 -9
  50. package/dist/cjs/third-party/setting/ProductOptionsVariantOption/uiV2.js +0 -30
  51. package/dist/cjs/third-party/setting/RequestQuoteHidePrice/index.js +2 -1
  52. package/dist/cjs/third-party/setting/UnlimitedBundlesDiscounts/index.js +5 -1
  53. package/dist/cjs/third-party/setting/UnlimitedBundlesDiscounts/uiV1.js +9 -0
  54. package/dist/cjs/third-party/setting/UnlimitedBundlesDiscounts/uiV2.js +12 -0
  55. package/dist/esm/banner/components/common/common.js +17 -6
  56. package/dist/esm/banner/components/common/getStyle.js +1 -1
  57. package/dist/esm/banner/components/hooks/useHeroBanner.js +1 -1
  58. package/dist/esm/banner/setting/uiV2.js +37 -0
  59. package/dist/esm/button/components/Button.js +4 -1
  60. package/dist/esm/carousel/carousel-item/common/getClass.js +1 -1
  61. package/dist/esm/grid/row/commons/getClass.js +1 -1
  62. package/dist/esm/grid/row/commons/getStyle.js +2 -1
  63. package/dist/esm/grid/row/setting/configs/settings.js +21 -0
  64. package/dist/esm/grid/row/setting/configs/uiV2.js +10 -4
  65. package/dist/esm/helpers.js +30 -2
  66. package/dist/esm/icon-list-v2/components/IconList.liquid.js +1 -0
  67. package/dist/esm/image/components/Image.js +1 -1
  68. package/dist/esm/image/components/Image.liquid.js +1 -1
  69. package/dist/esm/image/components/common/classes.js +4 -2
  70. package/dist/esm/image/helpers/getSrcSet.js +2 -1
  71. package/dist/esm/image/setting/configs/settings.js +9 -0
  72. package/dist/esm/index.js +1 -1
  73. package/dist/esm/post-purchase/product/components/product-offer/common/classes.js +5 -1
  74. package/dist/esm/product/components/ProductBundle/common/styles.js +2 -2
  75. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -1
  76. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +1 -1
  77. package/dist/esm/product/components/ProductBundle/setting/ProductBundleDiscount.js +2 -8
  78. package/dist/esm/product/components/ProductImagesV2/common/common.js +1 -1
  79. package/dist/esm/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +6 -2
  80. package/dist/esm/product/components/ProductList/ProductList.liquid.js +4 -8
  81. package/dist/esm/product/components/ProductVariants/index.liquid.js +8 -3
  82. package/dist/esm/product/setting/constant/bundle-layout/horizontalThree.js +4 -6
  83. package/dist/esm/product/setting/constant/bundle-layout/horizontalTwo.js +3 -5
  84. package/dist/esm/product/setting/constant/bundle-layout/verticalThree.js +2 -1
  85. package/dist/esm/product/setting/constant/bundle-layout/verticalTwo.js +2 -1
  86. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +13 -11
  87. package/dist/esm/stock-counter/components/common/getContent.js +1 -1
  88. package/dist/esm/text/components/Text.liquid.js +1 -0
  89. package/dist/esm/text/components/common/getDisplayText.js +12 -21
  90. package/dist/esm/third-party/components/EcomsendBackInStockAlert.liquid.js +8 -8
  91. package/dist/esm/third-party/components/ProductOptionsVariantOption.js +2 -2
  92. package/dist/esm/third-party/components/ProductOptionsVariantOption.liquid.js +2 -2
  93. package/dist/esm/third-party/components/UnlimitedBundlesDiscounts.liquid.js +1 -1
  94. package/dist/esm/third-party/configs/EcoboostifyShoppableReelUgc.js +1 -1
  95. package/dist/esm/third-party/configs/NotifyBackInStockPreOrder.js +1 -1
  96. package/dist/esm/third-party/setting/EcoboostifyShoppableReelUgc/index.js +2 -2
  97. package/dist/esm/third-party/setting/EcomsendBackInStockAlert/index.js +5 -0
  98. package/dist/esm/third-party/setting/EcomsendBackInStockAlert/uiV1.js +14 -0
  99. package/dist/esm/third-party/setting/EcomsendBackInStockAlert/uiV2.js +31 -0
  100. package/dist/esm/third-party/setting/FlyBundlesUpsellsFbt/uiV1.js +5 -0
  101. package/dist/esm/third-party/setting/NotifyBackInStockPreOrder/index.js +2 -2
  102. package/dist/esm/third-party/setting/ProductOptionsVariantOption/index.js +1 -7
  103. package/dist/esm/third-party/setting/ProductOptionsVariantOption/uiV1.js +0 -9
  104. package/dist/esm/third-party/setting/ProductOptionsVariantOption/uiV2.js +0 -30
  105. package/dist/esm/third-party/setting/RequestQuoteHidePrice/index.js +2 -1
  106. package/dist/esm/third-party/setting/UnlimitedBundlesDiscounts/index.js +5 -1
  107. package/dist/esm/third-party/setting/UnlimitedBundlesDiscounts/uiV1.js +9 -0
  108. package/dist/esm/third-party/setting/UnlimitedBundlesDiscounts/uiV2.js +12 -0
  109. package/dist/types/index.d.ts +5 -1
  110. package/package.json +2 -2
@@ -291,7 +291,8 @@ const verticalTwo = [
291
291
  }
292
292
  },
293
293
  tag: 'ProductBadge',
294
- uid: 'gPMEqW9TKV'
294
+ uid: 'gHRinlrdow',
295
+ childrens: []
295
296
  },
296
297
  {
297
298
  childrens: [
@@ -68,27 +68,29 @@ const productFeatureImageSetting = [
68
68
  {
69
69
  id: 'otherImage',
70
70
  label: 'Other image',
71
- type: 'select',
72
- options: [
73
- {
74
- title: 'Image 1',
75
- value: 0
76
- },
71
+ type: 'dropdown:input',
72
+ isNumber: true,
73
+ isIndexValue: true,
74
+ displayOptions: [
77
75
  {
78
- title: 'Image 2',
76
+ label: 'Image 1',
79
77
  value: 1
80
78
  },
81
79
  {
82
- title: 'Image 3',
80
+ label: 'Image 2',
83
81
  value: 2
84
82
  },
85
83
  {
86
- title: 'Image 4',
84
+ label: 'Image 3',
87
85
  value: 3
88
86
  },
89
87
  {
90
- title: 'Last image',
91
- value: -1
88
+ label: 'Image 4',
89
+ value: 4
90
+ },
91
+ {
92
+ label: 'Last image',
93
+ value: 'Last image'
92
94
  }
93
95
  ],
94
96
  default: 0
@@ -8,7 +8,7 @@ const getLiquidTextContent = (setting, styles)=>{
8
8
  const { template: templateString, outOfStockMessage, continueSelling, unlimitedQuantityMessage } = setting ?? {};
9
9
  const { textColor } = styles ?? {};
10
10
  const mainColor = textColor || 'brand';
11
- return `{% if inventory_management == null or inventory_management != "shopify" and inventory_quantity <= 0 %}
11
+ return `{% if inventory_management == null and inventory_quantity <= 0 %}
12
12
  ${helpers.transformHighlighTag(unlimitedQuantityMessage ?? helpers$1.getStaticLocale('StockCounter', 'let_buy_now'), mainColor)}
13
13
  {% elsif available == false %}
14
14
  ${helpers.transformHighlighTag(outOfStockMessage || '', mainColor)}
@@ -62,6 +62,7 @@ const Text = ({ id, styles, builderAttrs, style, setting, advanced, builderProps
62
62
  });
63
63
  const outputText = system.createContent(displayText);
64
64
  return core.template`
65
+ {% assign locationOrigin = request.origin | append: routes.root_url | split: '/' | join: '/' %}
65
66
  <div ${{
66
67
  ...attrs
67
68
  }}
@@ -5,24 +5,11 @@ var helpers = require('../../../helpers.js');
5
5
  const getDisplayText = ({ type, styles, setting, builderProps, pageContext })=>{
6
6
  const { text, isForceValue } = setting ?? {};
7
7
  let displayText = '';
8
- let renderText = '';
9
- const regexCheckHasTagLink = /<a\s[^>]*>.*?<\/a>/;
10
- if (text && regexCheckHasTagLink.test(text)) {
11
- const regex = // eslint-disable-next-line regexp/no-super-linear-backtracking, regexp/no-unused-capturing-group
12
- /<a\s+(?:[^>]*?\s+)?href=["']([^"']*)["'](?:\s+[^>]*?)?(?:target=["']([^"']*)["'])?.*?>.*?<\/a>/gi;
13
- let newText = text.toString();
14
- let match;
15
- while((match = regex.exec(newText)) !== null){
16
- const href = match[1];
17
- const { urlData } = helpers.getInsertLinkData('', {
18
- link: href
19
- });
20
- newText = newText.replace(match[0], match[0].replace(/(href=['"])([^'"]*)(['"])/i, `$1${urlData.href}$3`));
21
- }
22
- renderText = newText;
23
- } else {
24
- renderText = text;
25
- }
8
+ const isViewliveHeadingOrTextComponent = [
9
+ 'Heading',
10
+ 'Text'
11
+ ].includes(builderProps?.builderData?.tag ?? '') && !pageContext?.isPreviewing;
12
+ const renderText = helpers.replaceLinkData(text?.toString());
26
13
  const isCapitalize = styles?.typo?.attrs?.transform === 'capitalize';
27
14
  if (type === 'React') {
28
15
  displayText = isCapitalize ? text?.toString().toLocaleLowerCase() : text?.toString();
@@ -31,13 +18,17 @@ const getDisplayText = ({ type, styles, setting, builderProps, pageContext })=>{
31
18
  displayText = renderText;
32
19
  } else if (setting?.translate) {
33
20
  displayText = helpers.getDynamicSourceLocales({
34
- val: renderText,
21
+ val: text,
35
22
  uid: builderProps?.uid,
36
23
  settingId: setting?.translate,
37
24
  pageContext,
38
25
  isCapitalize,
39
- translate: setting.translate
26
+ translate: setting.translate,
27
+ isReplaceLocationOrigin: isViewliveHeadingOrTextComponent
40
28
  });
29
+ if (displayText == text) {
30
+ displayText = renderText;
31
+ }
41
32
  } else {
42
33
  displayText = isCapitalize ? renderText?.toString().toLocaleLowerCase() : renderText;
43
34
  }
@@ -5,17 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var core = require('@gem-sdk/core');
6
6
 
7
7
  const EcomsendBackInStockAlert = ({ setting, advanced })=>{
8
- const { align } = setting ?? {};
8
+ const { align, productId } = setting ?? {};
9
9
  return core.template`
10
- <div
11
- class="${advanced?.cssClass}"
12
- style="${{
10
+ <div
11
+ class="${advanced?.cssClass}"
12
+ style="${{
13
13
  ...core.makeStyleResponsive('ta', align)
14
14
  }}"
15
- >
16
- <div id="sealapps-bis-widget"></div>
17
- </div>
18
- `;
15
+ >
16
+ ${productId ? `<div style="display: block" class="ecomsend-bis-block" data-product-id="${productId}"></div>` : `<div id="sealapps-bis-widget"></div>`}
17
+ </div>
18
+ `;
19
19
  };
20
20
 
21
21
  exports.default = EcomsendBackInStockAlert;
@@ -8,7 +8,7 @@ var ThirdPartyPreview = require('./ThirdPartyPreview.js');
8
8
 
9
9
  const AppConfig = {
10
10
  id: 'product-options-variant-option',
11
- label: 'Product Options Variant Option',
11
+ label: 'Avis Product Options, Variants',
12
12
  logoUrl: 'https://cdn.shopify.com/app-store/listing_images/5ee1f244b087cfbec9b19c8b3f62c8f6/icon/CMCq1s7J5vQCEAE=.png',
13
13
  tag: 'ProductOptionsVariantOption'
14
14
  };
@@ -18,7 +18,7 @@ const ProductOptionsVariantOptionContent = ()=>{
18
18
  className: "gp-p-2",
19
19
  children: /*#__PURE__*/ jsxRuntime.jsx(ThirdPartyPreview.default, {
20
20
  setting: {
21
- label: 'Product Options Variant Option',
21
+ label: 'Avis Product Options, Variants',
22
22
  iconSvg: `<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="${AppConfig.logoUrl}">`
23
23
  }
24
24
  })
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var core = require('@gem-sdk/core');
6
6
 
7
7
  const ProductOptionsVariantOption = ({ setting, advanced })=>{
8
- const { align, idTrigger } = setting ?? {};
8
+ const { align } = setting ?? {};
9
9
  return core.template`
10
10
  <div
11
11
  class="${advanced?.cssClass}"
@@ -13,7 +13,7 @@ const ProductOptionsVariantOption = ({ setting, advanced })=>{
13
13
  ...core.makeStyleResponsive('ta', align)
14
14
  }}"
15
15
  >
16
- <div class="${idTrigger?.replace('.', '')}"></div>
16
+ <div class="avpoptions-container__v2"></div>
17
17
  </div>
18
18
  `;
19
19
  };
@@ -6,7 +6,7 @@ var thirdParty = require('../helpers/thirdParty.js');
6
6
 
7
7
  const UnlimitedBundlesDiscounts = ({ setting, advanced })=>{
8
8
  const { align, appBlockId } = setting ?? {};
9
- return thirdParty.getLiquidForAppBlock(appBlockId, align, advanced?.cssClass);
9
+ return thirdParty.getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''} !gp-block`);
10
10
  };
11
11
 
12
12
  exports.default = UnlimitedBundlesDiscounts;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var AppConfig = {
6
6
  id: 'ecoboostify-shoppable-reel-ugc',
7
7
  label: 'EcoBoostify Shoppable Reel UGC',
8
- logoUrl: 'https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/CJWKq4vxxIkDEAE=.png?width=22&height=22',
8
+ logoUrl: 'https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/COuT9MaKvosDEAE=.png?width=22&height=22',
9
9
  tag: 'EcoboostifyShoppableReelUgc'
10
10
  };
11
11
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var AppConfig = {
6
6
  id: 'notify-back-in-stockpreorder',
7
7
  label: 'Notify! Back in Stock|PreOrder',
8
- logoUrl: 'https://cdn.shopify.com/app-store/listing_images/9216cd5dd17ab1a38de2641bae109159/icon/CNWHjbfSt4MDEAE=.png?width=22&height=22',
8
+ logoUrl: 'https://cdn.shopify.com/s/files/1/0643/0497/1949/files/Notify_Me_Logo.png?v=1736234550',
9
9
  tag: 'NotifyBackInStockPreOrder'
10
10
  };
11
11
 
@@ -9,7 +9,7 @@ var uiV2 = require('./uiV2.js');
9
9
  const config = {
10
10
  tag: EcoboostifyShoppableReelUgc.default.tag,
11
11
  label: EcoboostifyShoppableReelUgc.default.label,
12
- icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/CJWKq4vxxIkDEAE=.png?width=22&height=22">',
12
+ icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/COuT9MaKvosDEAE=.png?width=22&height=22">',
13
13
  editorConfigs: {
14
14
  component: {
15
15
  isThirdParty: true
@@ -24,7 +24,7 @@ const config = {
24
24
  hideTextContent: true,
25
25
  icon: {
26
26
  desktop: `<div class="w-full flex flex-col items-center">
27
- <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/CJWKq4vxxIkDEAE=.png?width=22&height=22">
27
+ <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/COuT9MaKvosDEAE=.png?width=22&height=22">
28
28
  <span class="preset-item-title">EcoBoostify Shoppable Reel UGC</span>
29
29
  </div>`
30
30
  },
@@ -56,6 +56,11 @@ const config = {
56
56
  ],
57
57
  default: 'product-restore-email'
58
58
  },
59
+ {
60
+ id: 'productId',
61
+ label: 'Product ID',
62
+ type: 'input'
63
+ },
59
64
  {
60
65
  id: 'install',
61
66
  type: 'open-link',
@@ -15,6 +15,20 @@ const SettingUIV1 = [
15
15
  id: 'openApp'
16
16
  }
17
17
  },
18
+ {
19
+ type: 'control',
20
+ setting: {
21
+ id: 'productId'
22
+ },
23
+ label: {
24
+ en: 'Product ID'
25
+ },
26
+ options: {
27
+ hideOnPages: [
28
+ 'GP_PRODUCT'
29
+ ]
30
+ }
31
+ },
18
32
  {
19
33
  type: 'control',
20
34
  label: {
@@ -23,6 +23,37 @@ const SettingUIV2 = [
23
23
  }
24
24
  ]
25
25
  },
26
+ {
27
+ controls: [
28
+ {
29
+ type: 'combo',
30
+ label: {
31
+ en: 'Product ID'
32
+ },
33
+ conditionDisplay: 'pageType != "GP_PRODUCT"',
34
+ iconName: 'polaris-text-block',
35
+ getValueFromSettingID: 'productId',
36
+ isHideClear: true,
37
+ popoverLabel: {
38
+ en: 'Product ID'
39
+ },
40
+ controls: [
41
+ {
42
+ label: {
43
+ en: 'Content'
44
+ },
45
+ options: {
46
+ fullWidth: true
47
+ },
48
+ layout: 'vertical',
49
+ setting: {
50
+ id: 'productId'
51
+ }
52
+ }
53
+ ]
54
+ }
55
+ ]
56
+ },
26
57
  {
27
58
  controls: [
28
59
  {
@@ -16,6 +16,11 @@ const SettingUIV1 = [
16
16
  },
17
17
  setting: {
18
18
  id: 'customBundleId'
19
+ },
20
+ options: {
21
+ hideOnPages: [
22
+ 'GP_PRODUCT'
23
+ ]
19
24
  }
20
25
  },
21
26
  {
@@ -9,7 +9,7 @@ var uiV1 = require('./uiV1.js');
9
9
  const config = {
10
10
  tag: NotifyBackInStockPreOrder.default.tag,
11
11
  label: NotifyBackInStockPreOrder.default.label,
12
- icon: '<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/9216cd5dd17ab1a38de2641bae109159/icon/CNWHjbfSt4MDEAE=.png?width=22&height=22">',
12
+ icon: `<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${NotifyBackInStockPreOrder.default.logoUrl}">`,
13
13
  editorConfigs: {
14
14
  placeholder: {
15
15
  flowTag: [
@@ -29,7 +29,7 @@ const config = {
29
29
  hideTextContent: true,
30
30
  icon: {
31
31
  desktop: `<div class="w-full flex flex-col items-center">
32
- <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/9216cd5dd17ab1a38de2641bae109159/icon/CNWHjbfSt4MDEAE=.png?width=22&height=22">
32
+ <img class="w-24 border border-dark-200 rounded-medium" src="${NotifyBackInStockPreOrder.default.logoUrl}">
33
33
  <span class="preset-item-title">Notify! Back in Stock|PreOrder</span>
34
34
  </div>`
35
35
  },
@@ -30,7 +30,7 @@ const config = {
30
30
  icon: {
31
31
  desktop: `<div class="w-full flex flex-col items-center">
32
32
  <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/5ee1f244b087cfbec9b19c8b3f62c8f6/icon/CMCq1s7J5vQCEAE=.png?width=22&height=22">
33
- <span class="preset-item-title">Product Options Variant Option</span>
33
+ <span class="preset-item-title">Avis Product Options, Variants</span>
34
34
  </div>`
35
35
  },
36
36
  components: [
@@ -52,12 +52,6 @@ const config = {
52
52
  href: 'https://apps.shopify.com/avisplus-product-options?utm_source=gempages',
53
53
  appName: ProductOptionsVariantOption.AppConfig.label
54
54
  },
55
- {
56
- id: 'idTrigger',
57
- type: 'input',
58
- label: '',
59
- placeholder: 'eg: .product-form__buttons'
60
- },
61
55
  {
62
56
  id: 'openApp',
63
57
  type: 'open-link',
@@ -15,15 +15,6 @@ const SettingUIV1 = [
15
15
  id: 'openApp'
16
16
  }
17
17
  },
18
- {
19
- type: 'control',
20
- setting: {
21
- id: 'idTrigger'
22
- },
23
- label: {
24
- en: 'ID Element'
25
- }
26
- },
27
18
  {
28
19
  type: 'control',
29
20
  label: {
@@ -23,36 +23,6 @@ const SettingUIV2 = [
23
23
  }
24
24
  ]
25
25
  },
26
- {
27
- controls: [
28
- {
29
- type: 'combo',
30
- label: {
31
- en: 'Trigger ID'
32
- },
33
- iconName: 'polaris-text-block',
34
- getValueFromSettingID: 'idTrigger',
35
- isHideClear: true,
36
- popoverLabel: {
37
- en: 'Trigger ID'
38
- },
39
- controls: [
40
- {
41
- label: {
42
- en: 'Content'
43
- },
44
- options: {
45
- fullWidth: true
46
- },
47
- layout: 'vertical',
48
- setting: {
49
- id: 'idTrigger'
50
- }
51
- }
52
- ]
53
- }
54
- ]
55
- },
56
26
  {
57
27
  controls: [
58
28
  {
@@ -13,7 +13,8 @@ const config = {
13
13
  editorConfigs: {
14
14
  placeholder: {
15
15
  flowTag: [
16
- 'ProductList'
16
+ 'ProductList',
17
+ 'Product'
17
18
  ]
18
19
  },
19
20
  component: {
@@ -55,8 +55,12 @@ const config = {
55
55
  type: 'select',
56
56
  options: [
57
57
  {
58
- label: 'UnlimitedBundlesProductPage',
58
+ label: 'All Bundles',
59
59
  value: 'embed-all'
60
+ },
61
+ {
62
+ label: 'Revy Bundle Placeholder',
63
+ value: 'product-page-placeholder'
60
64
  }
61
65
  ],
62
66
  default: 'embed-all'
@@ -9,6 +9,15 @@ const SettingUIV1 = [
9
9
  id: 'install'
10
10
  }
11
11
  },
12
+ {
13
+ type: 'control',
14
+ label: {
15
+ en: 'Choose Widget'
16
+ },
17
+ setting: {
18
+ id: 'widgetType'
19
+ }
20
+ },
12
21
  {
13
22
  type: 'control',
14
23
  setting: {
@@ -13,6 +13,18 @@ const SettingUIV2 = [
13
13
  }
14
14
  ]
15
15
  },
16
+ {
17
+ controls: [
18
+ {
19
+ setting: {
20
+ id: 'widgetType'
21
+ },
22
+ label: {
23
+ en: 'Choose Widget'
24
+ }
25
+ }
26
+ ]
27
+ },
16
28
  {
17
29
  controls: [
18
30
  {
@@ -1,8 +1,8 @@
1
- import { getResponsiveValueByScreen, getAspectRatioGlobalSize, makeStyleResponsive, getValueByDevice, cls } from '@gem-sdk/core';
1
+ import { getResponsiveValueByScreen, getAspectRatioGlobalSize, makeStyleResponsive, DEVICES, getValueByDevice, cls } from '@gem-sdk/core';
2
2
  import { getImageSrc } from '../../../image/helpers/getSrcSet.js';
3
3
  import { HREF_TO_SALES_PAGE } from '../../../constant.js';
4
+ import { createBlurDataURL } from '../../../image/components/common/helpers.js';
4
5
 
5
- const imagePlaceholder = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';
6
6
  const getContentPosition = (layout, contentPosition1Col, contentPosition2Col)=>{
7
7
  let result = {};
8
8
  const devices = [
@@ -58,13 +58,24 @@ const getBgImage = (background)=>{
58
58
  };
59
59
  return bgImage;
60
60
  };
61
+ const imagePlaceholder = (background)=>{
62
+ const srcSet = getBgImage(background);
63
+ return {
64
+ desktop: createBlurDataURL(srcSet?.desktop?.width ?? 0, srcSet?.desktop?.height ?? 0),
65
+ tablet: createBlurDataURL(srcSet?.tablet?.width ?? srcSet?.desktop?.width ?? 0, srcSet?.tablet?.height ?? srcSet?.desktop?.width ?? 0),
66
+ mobile: createBlurDataURL(srcSet?.mobile?.width ?? srcSet?.tablet?.width ?? srcSet?.desktop?.width ?? 0, srcSet?.mobile?.height ?? srcSet?.tablet?.height ?? srcSet?.desktop?.width ?? 0)
67
+ };
68
+ };
61
69
  const getBackgroundImageHeroBanner = (background, enableLazyImage = false, isNotLiquid = false)=>{
62
70
  const srcSet = getBgImage(background);
63
- return makeStyleResponsive('bgi', {
64
- desktop: `url('${!enableLazyImage ? getImageSrc(getResponsiveValueByScreen(srcSet, 'desktop'), 'desktop', isNotLiquid) : imagePlaceholder}')`,
65
- tablet: `url('${!enableLazyImage ? getImageSrc(getResponsiveValueByScreen(srcSet, 'tablet'), 'tablet', isNotLiquid) : imagePlaceholder}')`,
66
- mobile: `url('${!enableLazyImage ? getImageSrc(getResponsiveValueByScreen(srcSet, 'mobile'), 'mobile', isNotLiquid) : imagePlaceholder}')`
71
+ let result = {};
72
+ DEVICES.forEach((device)=>{
73
+ result = {
74
+ ...result,
75
+ [device]: `url('${!enableLazyImage ? getImageSrc(getResponsiveValueByScreen(srcSet, device), device, isNotLiquid) : imagePlaceholder(background)}')`
76
+ };
67
77
  });
78
+ return makeStyleResponsive('bgi', result);
68
79
  };
69
80
  const getAttachmentDevice = (background)=>{
70
81
  let result = {};
@@ -98,7 +98,7 @@ const getBackgroundStyle = (styles, enableParallax, transform)=>{
98
98
  }),
99
99
  ...getGradientBgrStyleByDevice(background, bgiEnableByDevice(background)),
100
100
  '--duration': `${hoverEffectDuration ?? 0}s`,
101
- '--scale': hoverEffectScale ?? 1,
101
+ '--scale': `${hoverEffectScale || 100}%`,
102
102
  ...makeStyleResponsive('pos', getAttachmentDevice(background)),
103
103
  transform,
104
104
  transition: 'transform 300ms cubic-bezier(0,0,0,1)'
@@ -25,7 +25,7 @@ const useHeroBanner = (styles, setting, currentDevice)=>{
25
25
  const enableParallax = Number(setting?.speedParallax || 0) > 0 && backgroundResponsive[currentDevice]?.type === 'image' || false;
26
26
  const onMouseEnterParallax = ()=>{
27
27
  if (hoverEffect && enableParallax) {
28
- setTransform(`${transform} scale(${hoverEffectScale})`);
28
+ setTransform(`${transform} scale(${hoverEffectScale || 100}%)`);
29
29
  }
30
30
  };
31
31
  const onMouseLeaveParallax = ()=>{
@@ -118,6 +118,43 @@ const SettingUIV2 = [
118
118
  controlType: 'setting',
119
119
  removeDevice: true
120
120
  }
121
+ },
122
+ {
123
+ condition: '!background.image.src',
124
+ source: [
125
+ 'background'
126
+ ],
127
+ action: {
128
+ controlId: 'sizeSetting',
129
+ newValue: {
130
+ shapeLinked: false,
131
+ hiddenShape: true
132
+ },
133
+ valueIfNull: {
134
+ width: '100%',
135
+ height: 'fit-content',
136
+ hiddenShape: true
137
+ },
138
+ groupType: 'style',
139
+ controlType: 'size-setting'
140
+ }
141
+ },
142
+ {
143
+ condition: '!!background.image.src',
144
+ source: [
145
+ 'background'
146
+ ],
147
+ action: {
148
+ controlId: 'sizeSetting',
149
+ newValue: {
150
+ hiddenShape: false
151
+ },
152
+ valueIfNull: {
153
+ hiddenShape: false
154
+ },
155
+ groupType: 'style',
156
+ controlType: 'size-setting'
157
+ }
121
158
  }
122
159
  ],
123
160
  options: {
@@ -82,7 +82,10 @@ const Button = (props)=>{
82
82
  className: buttonWrapperClasses,
83
83
  children: [
84
84
  /*#__PURE__*/ jsx("style", {
85
- children: customCss
85
+ type: "text/css",
86
+ dangerouslySetInnerHTML: {
87
+ __html: customCss
88
+ }
86
89
  }),
87
90
  If(isScrollToElement, // eslint-disable-next-line jsx-a11y/anchor-has-content
88
91
  /*#__PURE__*/ jsx("a", {
@@ -16,7 +16,7 @@ const getClass = (props)=>{
16
16
  }
17
17
  });
18
18
  const carouselItemInnerClass = createClass({
19
- 'gp-w-full': true
19
+ 'gp-w-full gp-h-full': true
20
20
  });
21
21
  return {
22
22
  carouselItemClass,
@@ -15,7 +15,7 @@ const getClass = (props)=>{
15
15
  ...builderProps?.uid && {
16
16
  [builderProps.uid]: true
17
17
  },
18
- 'gp-relative gp-mx-auto gp-mb-0 gp-grid gp-max-w-full gp-transition-colors gp-duration-200 gp-ease-in-out [&_*]:gp-max-w-full': true,
18
+ 'gp-relative gp-mx-auto gp-mb-0 gp-grid gp-max-w-full gp-transition-colors gp-duration-200 gp-ease-in-out [&_*]:gp-max-w-full gp-grid-rows-[1fr]': true,
19
19
  ...advanced?.cssClass && {
20
20
  [advanced?.cssClass]: true
21
21
  }
@@ -8,7 +8,7 @@ import { postPurchaseViewSpacing } from '../../../post-purchase/utils/helper.js'
8
8
  const getRowStyle = (rowProps)=>{
9
9
  const { children, setting, builderProps, styles, style, advanced, isNotFullWidth, parentStyle } = rowProps;
10
10
  const { isSection, layout, horizontalAlign, responsive, inlineAlignment } = setting ?? {};
11
- const { width, columnGap, rowGap, fullWidth, background, verticalGutter, verticalGutterMobile, enablePagePadding } = styles ?? {};
11
+ const { width, columnGap, rowGap, fullWidth, background, verticalGutter, verticalGutterMobile, enablePagePadding, height } = styles ?? {};
12
12
  const innerRadius = getInnerRadiusExcludeBorder(advanced?.border, advanced?.rounded);
13
13
  const checkHasRadius = (corner)=>{
14
14
  const cornerNormal = corner?.normal;
@@ -49,6 +49,7 @@ const getRowStyle = (rowProps)=>{
49
49
  ...makeStyleResponsive('rg', verticalGutterMobile),
50
50
  ...layout ? composeGridLayout(layout) : makeStyleResponsive('gtc', responsive),
51
51
  ...makeStyleResponsive('w', sizeStyles.content),
52
+ ...makeStyleResponsive('h', height),
52
53
  ...isSection ? {} : overFlowStyle
53
54
  };
54
55
  };