@gem-sdk/components 2.0.0-dev.699 → 2.0.0-dev.701

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 (108) hide show
  1. package/dist/cjs/banner/components/HeroBanner.js +2 -2
  2. package/dist/cjs/banner/components/HeroBanner.liquid.js +3 -2
  3. package/dist/cjs/banner/components/HeroBannerItem.js +3 -3
  4. package/dist/cjs/banner/components/HeroBannerItem.liquid.js +3 -3
  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/AdaptiveImage.js +4 -4
  14. package/dist/cjs/image/components/Image.js +1 -1
  15. package/dist/cjs/image/components/Image.liquid.js +3 -2
  16. package/dist/cjs/image/components/common/classes.js +3 -1
  17. package/dist/cjs/image/helpers/getSrcSet.js +2 -1
  18. package/dist/cjs/image/setting/configs/settings.js +9 -0
  19. package/dist/cjs/index.js +2 -0
  20. package/dist/cjs/post-purchase/product/components/product-offer/common/classes.js +5 -1
  21. package/dist/cjs/product/components/ProductBundle/common/styles.js +2 -2
  22. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -1
  23. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +1 -1
  24. package/dist/cjs/product/components/ProductBundle/setting/ProductBundleDiscount.js +2 -8
  25. package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -1
  26. package/dist/cjs/product/components/ProductImagesV2/index.liquid.js +6 -3
  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/stock-counter/components/common/getContent.js +1 -1
  33. package/dist/cjs/text/components/Text.liquid.js +1 -0
  34. package/dist/cjs/text/components/common/getDisplayText.js +11 -20
  35. package/dist/cjs/third-party/components/EcomsendBackInStockAlert.liquid.js +8 -8
  36. package/dist/cjs/third-party/components/ProductOptionsVariantOption.js +2 -2
  37. package/dist/cjs/third-party/components/ProductOptionsVariantOption.liquid.js +2 -2
  38. package/dist/cjs/third-party/components/UnlimitedBundlesDiscounts.liquid.js +1 -1
  39. package/dist/cjs/third-party/configs/EcoboostifyShoppableReelUgc.js +1 -1
  40. package/dist/cjs/third-party/configs/NotifyBackInStockPreOrder.js +1 -1
  41. package/dist/cjs/third-party/setting/EcoboostifyShoppableReelUgc/index.js +2 -2
  42. package/dist/cjs/third-party/setting/EcomsendBackInStockAlert/index.js +5 -0
  43. package/dist/cjs/third-party/setting/EcomsendBackInStockAlert/uiV1.js +14 -0
  44. package/dist/cjs/third-party/setting/EcomsendBackInStockAlert/uiV2.js +31 -0
  45. package/dist/cjs/third-party/setting/FlyBundlesUpsellsFbt/uiV1.js +5 -0
  46. package/dist/cjs/third-party/setting/NotifyBackInStockPreOrder/index.js +2 -2
  47. package/dist/cjs/third-party/setting/ProductOptionsVariantOption/index.js +1 -7
  48. package/dist/cjs/third-party/setting/ProductOptionsVariantOption/uiV1.js +0 -9
  49. package/dist/cjs/third-party/setting/ProductOptionsVariantOption/uiV2.js +0 -30
  50. package/dist/cjs/third-party/setting/RequestQuoteHidePrice/index.js +2 -1
  51. package/dist/cjs/third-party/setting/UnlimitedBundlesDiscounts/index.js +5 -1
  52. package/dist/cjs/third-party/setting/UnlimitedBundlesDiscounts/uiV1.js +9 -0
  53. package/dist/cjs/third-party/setting/UnlimitedBundlesDiscounts/uiV2.js +12 -0
  54. package/dist/esm/banner/components/HeroBanner.js +2 -2
  55. package/dist/esm/banner/components/HeroBanner.liquid.js +3 -2
  56. package/dist/esm/banner/components/HeroBannerItem.js +3 -3
  57. package/dist/esm/banner/components/HeroBannerItem.liquid.js +3 -3
  58. package/dist/esm/button/components/Button.js +4 -1
  59. package/dist/esm/carousel/carousel-item/common/getClass.js +1 -1
  60. package/dist/esm/grid/row/commons/getClass.js +1 -1
  61. package/dist/esm/grid/row/commons/getStyle.js +2 -1
  62. package/dist/esm/grid/row/setting/configs/settings.js +21 -0
  63. package/dist/esm/grid/row/setting/configs/uiV2.js +10 -4
  64. package/dist/esm/helpers.js +30 -2
  65. package/dist/esm/icon-list-v2/components/IconList.liquid.js +1 -0
  66. package/dist/esm/image/components/AdaptiveImage.js +4 -4
  67. package/dist/esm/image/components/Image.js +1 -1
  68. package/dist/esm/image/components/Image.liquid.js +3 -2
  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/index.liquid.js +6 -3
  80. package/dist/esm/product/components/ProductVariants/index.liquid.js +8 -3
  81. package/dist/esm/product/setting/constant/bundle-layout/horizontalThree.js +4 -6
  82. package/dist/esm/product/setting/constant/bundle-layout/horizontalTwo.js +3 -5
  83. package/dist/esm/product/setting/constant/bundle-layout/verticalThree.js +2 -1
  84. package/dist/esm/product/setting/constant/bundle-layout/verticalTwo.js +2 -1
  85. package/dist/esm/stock-counter/components/common/getContent.js +1 -1
  86. package/dist/esm/text/components/Text.liquid.js +1 -0
  87. package/dist/esm/text/components/common/getDisplayText.js +12 -21
  88. package/dist/esm/third-party/components/EcomsendBackInStockAlert.liquid.js +8 -8
  89. package/dist/esm/third-party/components/ProductOptionsVariantOption.js +2 -2
  90. package/dist/esm/third-party/components/ProductOptionsVariantOption.liquid.js +2 -2
  91. package/dist/esm/third-party/components/UnlimitedBundlesDiscounts.liquid.js +1 -1
  92. package/dist/esm/third-party/configs/EcoboostifyShoppableReelUgc.js +1 -1
  93. package/dist/esm/third-party/configs/NotifyBackInStockPreOrder.js +1 -1
  94. package/dist/esm/third-party/setting/EcoboostifyShoppableReelUgc/index.js +2 -2
  95. package/dist/esm/third-party/setting/EcomsendBackInStockAlert/index.js +5 -0
  96. package/dist/esm/third-party/setting/EcomsendBackInStockAlert/uiV1.js +14 -0
  97. package/dist/esm/third-party/setting/EcomsendBackInStockAlert/uiV2.js +31 -0
  98. package/dist/esm/third-party/setting/FlyBundlesUpsellsFbt/uiV1.js +5 -0
  99. package/dist/esm/third-party/setting/NotifyBackInStockPreOrder/index.js +2 -2
  100. package/dist/esm/third-party/setting/ProductOptionsVariantOption/index.js +1 -7
  101. package/dist/esm/third-party/setting/ProductOptionsVariantOption/uiV1.js +0 -9
  102. package/dist/esm/third-party/setting/ProductOptionsVariantOption/uiV2.js +0 -30
  103. package/dist/esm/third-party/setting/RequestQuoteHidePrice/index.js +2 -1
  104. package/dist/esm/third-party/setting/UnlimitedBundlesDiscounts/index.js +5 -1
  105. package/dist/esm/third-party/setting/UnlimitedBundlesDiscounts/uiV1.js +9 -0
  106. package/dist/esm/third-party/setting/UnlimitedBundlesDiscounts/uiV2.js +12 -0
  107. package/dist/types/index.d.ts +8 -3
  108. 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: [
@@ -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
  {
@@ -10,7 +10,7 @@ import { useHeroBanner } from './hooks/useHeroBanner.js';
10
10
  import { getBannerLink } from './common/common.js';
11
11
 
12
12
  const HeroBanner = (props)=>{
13
- const { builderAttrs, builderProps, setting, styles, style, children, advanced, enableLazyloadImage = true } = props;
13
+ const { builderAttrs, builderProps, setting, styles, style, children, advanced, enableLazyLoadImage = true } = props;
14
14
  const mode = useEditorMode();
15
15
  const { enableLink } = setting ?? {};
16
16
  const link = getBannerLink(setting);
@@ -46,7 +46,7 @@ const HeroBanner = (props)=>{
46
46
  children: children,
47
47
  rawChildren: props.rawChildren,
48
48
  builderProps: builderProps,
49
- enableLazyloadImage: enableLazyloadImage,
49
+ enableLazyLoadImage: enableLazyLoadImage,
50
50
  elementRef: elementRef,
51
51
  transform: transform,
52
52
  dataVideo: dataVideo,
@@ -8,7 +8,8 @@ import { getInsertLinkData, getSettingPreloadData } from '../../helpers.js';
8
8
  import { getResponsiveSetting, getBannerLink } from './common/common.js';
9
9
 
10
10
  const HeroBanner = (props)=>{
11
- const { builderAttrs, builderProps, setting, styles, style, children, advanced, enableLazyloadImage = true } = props;
11
+ const { builderAttrs, builderProps, setting, styles, style, children, advanced, pageContext } = props;
12
+ const { enableLazyLoadImage } = pageContext ?? {};
12
13
  const { enableLink } = setting ?? {};
13
14
  const link = getBannerLink(setting);
14
15
  const { cssClass } = advanced ?? {};
@@ -53,7 +54,7 @@ const HeroBanner = (props)=>{
53
54
  setting,
54
55
  styles,
55
56
  children,
56
- enableLazyloadImage,
57
+ enableLazyLoadImage,
57
58
  rawChildren: props.rawChildren,
58
59
  builderProps
59
60
  });
@@ -14,10 +14,10 @@ import { getYoutubeVideoId, youtubeVideoRegex } from '../../video/helpers/common
14
14
 
15
15
  const HeroBannerItem = (props)=>{
16
16
  const mode = useEditorMode();
17
- const { enableLazyloadImage, setting, styles, children, elementRef, transform, dataVideo, bgRef, isShowVideoHtml5, layoutResponsive } = props;
17
+ const { enableLazyLoadImage, setting, styles, children, elementRef, transform, dataVideo, bgRef, isShowVideoHtml5, layoutResponsive } = props;
18
18
  const { layout, verticalAlign, enableParallax, alt, title } = setting ?? {};
19
19
  const { background, overlayColor, verticalGutter, sizeSetting, contentWidth, hoverEffect, contentPosition1Col, contentPosition2Col } = styles ?? {};
20
- const enableLazyImage = !(background?.desktop?.preload || background?.tablet?.preload || background?.mobile?.preload) && enableLazyloadImage && mode !== 'edit' && mode !== 'preview-post-purchase';
20
+ const enableLazyImage = !(background?.desktop?.preload || background?.tablet?.preload || background?.mobile?.preload) && enableLazyLoadImage && mode !== 'edit' && mode !== 'preview-post-purchase';
21
21
  const isNotLiquid = true;
22
22
  const aspectRatio = getAspectRatioSettings(setting?.ratioOptions, setting?.aspectRatio);
23
23
  const containerStyle = createStyle({
@@ -180,7 +180,7 @@ const HeroBannerItem = (props)=>{
180
180
  style: adaptiveStyle,
181
181
  alt: alt,
182
182
  title: title,
183
- enableLazyloadImage: enableLazyImage,
183
+ enableLazyLoadImage: enableLazyImage,
184
184
  fallbackImg: fallbackImg
185
185
  })
186
186
  ]
@@ -13,11 +13,11 @@ import { getYoutubeVideoId, youtubeVideoRegex } from '../../video/helpers/common
13
13
  import { isRenderHtmlVideo } from '../../grid/row/commons/common.js';
14
14
 
15
15
  const HeroBannerItem = (props)=>{
16
- const { enableLazyloadImage, setting, styles, children, builderProps, rawChildren } = props;
16
+ const { enableLazyLoadImage, setting, styles, children, builderProps, rawChildren } = props;
17
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
- const enableLazyImage = !(background?.desktop?.preload || background?.tablet?.preload || background?.mobile?.preload) && enableLazyloadImage;
20
+ const enableLazyImage = !(background?.desktop?.preload || background?.tablet?.preload || background?.mobile?.preload) && enableLazyLoadImage;
21
21
  const isNotLiquid = false;
22
22
  const aspectRatio = getAspectRatioSettings(setting?.ratioOptions, setting?.aspectRatio);
23
23
  const dataVideo = getResponsiveSetting(background || {}).desktop;
@@ -87,7 +87,7 @@ const HeroBannerItem = (props)=>{
87
87
  alt: `lazy image ${device}`,
88
88
  className: lazyBackgroundClasses(device),
89
89
  isDisableAspectStyle: true,
90
- enableLazyLoadImage: enableLazyloadImage
90
+ enableLazyLoadImage
91
91
  }));
92
92
  }).join('');
93
93
  };
@@ -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
  };
@@ -185,6 +185,27 @@ const RowSettings = [
185
185
  }
186
186
  ]
187
187
  },
188
+ {
189
+ id: 'height',
190
+ type: 'option:value',
191
+ devices: {
192
+ desktop: {
193
+ default: 'auto'
194
+ }
195
+ },
196
+ options: [
197
+ {
198
+ label: 'Full',
199
+ value: '100%',
200
+ tooltip: 'Stretch to fill <br> vertical space'
201
+ },
202
+ {
203
+ label: 'Fit',
204
+ value: 'auto',
205
+ tooltip: 'Adjust size <br> based on content'
206
+ }
207
+ ]
208
+ },
188
209
  {
189
210
  id: 'verticalGutter',
190
211
  type: 'input:slider',