@gem-sdk/components 2.0.0-dev.700 → 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 (96) hide show
  1. package/dist/cjs/button/components/Button.js +4 -1
  2. package/dist/cjs/carousel/carousel-item/common/getClass.js +1 -1
  3. package/dist/cjs/grid/row/commons/getClass.js +1 -1
  4. package/dist/cjs/grid/row/commons/getStyle.js +2 -1
  5. package/dist/cjs/grid/row/setting/configs/settings.js +21 -0
  6. package/dist/cjs/grid/row/setting/configs/uiV2.js +10 -4
  7. package/dist/cjs/helpers.js +31 -1
  8. package/dist/cjs/icon-list-v2/components/IconList.liquid.js +1 -0
  9. package/dist/cjs/image/components/Image.js +1 -1
  10. package/dist/cjs/image/components/Image.liquid.js +1 -1
  11. package/dist/cjs/image/components/common/classes.js +3 -1
  12. package/dist/cjs/image/helpers/getSrcSet.js +2 -1
  13. package/dist/cjs/image/setting/configs/settings.js +9 -0
  14. package/dist/cjs/index.js +2 -0
  15. package/dist/cjs/post-purchase/product/components/product-offer/common/classes.js +5 -1
  16. package/dist/cjs/product/components/ProductBundle/common/styles.js +2 -2
  17. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -1
  18. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +1 -1
  19. package/dist/cjs/product/components/ProductBundle/setting/ProductBundleDiscount.js +2 -8
  20. package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -1
  21. package/dist/cjs/product/components/ProductVariants/index.liquid.js +8 -3
  22. package/dist/cjs/product/setting/constant/bundle-layout/horizontalThree.js +4 -6
  23. package/dist/cjs/product/setting/constant/bundle-layout/horizontalTwo.js +3 -5
  24. package/dist/cjs/product/setting/constant/bundle-layout/verticalThree.js +2 -1
  25. package/dist/cjs/product/setting/constant/bundle-layout/verticalTwo.js +2 -1
  26. package/dist/cjs/stock-counter/components/common/getContent.js +1 -1
  27. package/dist/cjs/text/components/Text.liquid.js +1 -0
  28. package/dist/cjs/text/components/common/getDisplayText.js +11 -20
  29. package/dist/cjs/third-party/components/EcomsendBackInStockAlert.liquid.js +8 -8
  30. package/dist/cjs/third-party/components/ProductOptionsVariantOption.js +2 -2
  31. package/dist/cjs/third-party/components/ProductOptionsVariantOption.liquid.js +2 -2
  32. package/dist/cjs/third-party/components/UnlimitedBundlesDiscounts.liquid.js +1 -1
  33. package/dist/cjs/third-party/configs/EcoboostifyShoppableReelUgc.js +1 -1
  34. package/dist/cjs/third-party/configs/NotifyBackInStockPreOrder.js +1 -1
  35. package/dist/cjs/third-party/setting/EcoboostifyShoppableReelUgc/index.js +2 -2
  36. package/dist/cjs/third-party/setting/EcomsendBackInStockAlert/index.js +5 -0
  37. package/dist/cjs/third-party/setting/EcomsendBackInStockAlert/uiV1.js +14 -0
  38. package/dist/cjs/third-party/setting/EcomsendBackInStockAlert/uiV2.js +31 -0
  39. package/dist/cjs/third-party/setting/FlyBundlesUpsellsFbt/uiV1.js +5 -0
  40. package/dist/cjs/third-party/setting/NotifyBackInStockPreOrder/index.js +2 -2
  41. package/dist/cjs/third-party/setting/ProductOptionsVariantOption/index.js +1 -7
  42. package/dist/cjs/third-party/setting/ProductOptionsVariantOption/uiV1.js +0 -9
  43. package/dist/cjs/third-party/setting/ProductOptionsVariantOption/uiV2.js +0 -30
  44. package/dist/cjs/third-party/setting/RequestQuoteHidePrice/index.js +2 -1
  45. package/dist/cjs/third-party/setting/UnlimitedBundlesDiscounts/index.js +5 -1
  46. package/dist/cjs/third-party/setting/UnlimitedBundlesDiscounts/uiV1.js +9 -0
  47. package/dist/cjs/third-party/setting/UnlimitedBundlesDiscounts/uiV2.js +12 -0
  48. package/dist/esm/button/components/Button.js +4 -1
  49. package/dist/esm/carousel/carousel-item/common/getClass.js +1 -1
  50. package/dist/esm/grid/row/commons/getClass.js +1 -1
  51. package/dist/esm/grid/row/commons/getStyle.js +2 -1
  52. package/dist/esm/grid/row/setting/configs/settings.js +21 -0
  53. package/dist/esm/grid/row/setting/configs/uiV2.js +10 -4
  54. package/dist/esm/helpers.js +30 -2
  55. package/dist/esm/icon-list-v2/components/IconList.liquid.js +1 -0
  56. package/dist/esm/image/components/Image.js +1 -1
  57. package/dist/esm/image/components/Image.liquid.js +1 -1
  58. package/dist/esm/image/components/common/classes.js +4 -2
  59. package/dist/esm/image/helpers/getSrcSet.js +2 -1
  60. package/dist/esm/image/setting/configs/settings.js +9 -0
  61. package/dist/esm/index.js +1 -1
  62. package/dist/esm/post-purchase/product/components/product-offer/common/classes.js +5 -1
  63. package/dist/esm/product/components/ProductBundle/common/styles.js +2 -2
  64. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -1
  65. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +1 -1
  66. package/dist/esm/product/components/ProductBundle/setting/ProductBundleDiscount.js +2 -8
  67. package/dist/esm/product/components/ProductImagesV2/common/common.js +1 -1
  68. package/dist/esm/product/components/ProductVariants/index.liquid.js +8 -3
  69. package/dist/esm/product/setting/constant/bundle-layout/horizontalThree.js +4 -6
  70. package/dist/esm/product/setting/constant/bundle-layout/horizontalTwo.js +3 -5
  71. package/dist/esm/product/setting/constant/bundle-layout/verticalThree.js +2 -1
  72. package/dist/esm/product/setting/constant/bundle-layout/verticalTwo.js +2 -1
  73. package/dist/esm/stock-counter/components/common/getContent.js +1 -1
  74. package/dist/esm/text/components/Text.liquid.js +1 -0
  75. package/dist/esm/text/components/common/getDisplayText.js +12 -21
  76. package/dist/esm/third-party/components/EcomsendBackInStockAlert.liquid.js +8 -8
  77. package/dist/esm/third-party/components/ProductOptionsVariantOption.js +2 -2
  78. package/dist/esm/third-party/components/ProductOptionsVariantOption.liquid.js +2 -2
  79. package/dist/esm/third-party/components/UnlimitedBundlesDiscounts.liquid.js +1 -1
  80. package/dist/esm/third-party/configs/EcoboostifyShoppableReelUgc.js +1 -1
  81. package/dist/esm/third-party/configs/NotifyBackInStockPreOrder.js +1 -1
  82. package/dist/esm/third-party/setting/EcoboostifyShoppableReelUgc/index.js +2 -2
  83. package/dist/esm/third-party/setting/EcomsendBackInStockAlert/index.js +5 -0
  84. package/dist/esm/third-party/setting/EcomsendBackInStockAlert/uiV1.js +14 -0
  85. package/dist/esm/third-party/setting/EcomsendBackInStockAlert/uiV2.js +31 -0
  86. package/dist/esm/third-party/setting/FlyBundlesUpsellsFbt/uiV1.js +5 -0
  87. package/dist/esm/third-party/setting/NotifyBackInStockPreOrder/index.js +2 -2
  88. package/dist/esm/third-party/setting/ProductOptionsVariantOption/index.js +1 -7
  89. package/dist/esm/third-party/setting/ProductOptionsVariantOption/uiV1.js +0 -9
  90. package/dist/esm/third-party/setting/ProductOptionsVariantOption/uiV2.js +0 -30
  91. package/dist/esm/third-party/setting/RequestQuoteHidePrice/index.js +2 -1
  92. package/dist/esm/third-party/setting/UnlimitedBundlesDiscounts/index.js +5 -1
  93. package/dist/esm/third-party/setting/UnlimitedBundlesDiscounts/uiV1.js +9 -0
  94. package/dist/esm/third-party/setting/UnlimitedBundlesDiscounts/uiV2.js +12 -0
  95. package/dist/types/index.d.ts +5 -1
  96. package/package.json +2 -2
@@ -18,11 +18,16 @@ const DEVICES = [
18
18
  'tablet',
19
19
  'mobile'
20
20
  ];
21
+ const DEFAULT_ADVANCED_DISPLAY_SETTING = {
22
+ desktop: true,
23
+ tablet: true,
24
+ mobile: true
25
+ };
21
26
  const ProductVariants = (props)=>{
22
27
  const { builderProps, styles, setting, advanced } = props;
23
28
  const { align, swatchItemWidth, dropdownItemWidth, swatchSpacing, optionTypo } = styles ?? {};
24
29
  const { label, optionType, showAsSwatches, layout, hasPreSelected } = setting ?? {};
25
- const advancedDisplay = advanced?.d;
30
+ const advancedDisplay = advanced?.d ?? DEFAULT_ADVANCED_DISPLAY_SETTING;
26
31
  const { uid } = builderProps ?? {};
27
32
  const variantGroup = optionType === 'groupOption';
28
33
  const getSwatchAutoWidth = ()=>{
@@ -239,7 +244,7 @@ const ProductVariants = (props)=>{
239
244
  productId: `{{ product.id | json | escape }}`,
240
245
  productUrl: `{{ product.url | json | escape }}`,
241
246
  productHandle: `{{ product.handle | json | escape }}`,
242
- displayState: advancedDisplay,
247
+ displayState: `${JSON.stringify(advancedDisplay)}`,
243
248
  totalVariantCombinations: `{{ total_combinations }}`,
244
249
  firstAvailableVariant: `{{ product.selected_or_first_available_variant | json | escape }}`
245
250
  });
@@ -279,7 +284,7 @@ const ProductVariants = (props)=>{
279
284
  '>
280
285
  ${Liquid(`{%- assign options = product.options_with_values -%}`)}
281
286
  ${Liquid(`{%- assign variants = product.variants -%}`)}
282
- ${LiquidIf(`options.size == 0 or options.size == 1 and options[0].name == 'Title' and options[0].values.size == 1 and options[0].values[0] == 'Default Title'`, `<div></div>`, template`<div
287
+ ${LiquidIf(`options.size == 0 or options.size == 1 and variants.size == 1 and variants[0].title == 'Default Title' and variants[0].option1 == 'Default Title'`, `<div></div>`, template`<div
283
288
  class="${pVariantClass}"
284
289
  style="${pVariantStyle}"
285
290
  >
@@ -12,7 +12,7 @@ const horizontalThree = [
12
12
  tablet: true
13
13
  },
14
14
  editorData: {
15
- css: '.{{rootClassName}} > div > div,.g5t77h4sjA gp-product-badge > div > div{\nwidth:100% !important;\n}',
15
+ css: '.{{rootClassName}} > div > div{\nwidth:100%;\n}',
16
16
  rootClassName: '{{rootClassName}}'
17
17
  },
18
18
  hasBoxShadow: {
@@ -27,7 +27,7 @@ const horizontalThree = [
27
27
  desktop: '100%'
28
28
  },
29
29
  pos: {
30
- desktop: 'absolute'
30
+ desktop: 'static'
31
31
  },
32
32
  right: {
33
33
  desktop: '0px'
@@ -50,9 +50,6 @@ const horizontalThree = [
50
50
  }
51
51
  }
52
52
  },
53
- top: {
54
- desktop: '-44px'
55
- },
56
53
  z: {
57
54
  desktop: 1
58
55
  }
@@ -152,7 +149,8 @@ const horizontalThree = [
152
149
  }
153
150
  },
154
151
  tag: 'ProductBadge',
155
- uid: 'gaWpBvn_TG'
152
+ uid: 'gHRinlrdow',
153
+ childrens: []
156
154
  },
157
155
  {
158
156
  advanced: {
@@ -26,7 +26,7 @@ const horizontalTwo = [
26
26
  desktop: '100%'
27
27
  },
28
28
  pos: {
29
- desktop: 'absolute'
29
+ desktop: 'static'
30
30
  },
31
31
  right: {
32
32
  desktop: '0px'
@@ -49,9 +49,6 @@ const horizontalTwo = [
49
49
  }
50
50
  }
51
51
  },
52
- top: {
53
- desktop: '-44px'
54
- },
55
52
  z: {
56
53
  desktop: 1
57
54
  }
@@ -151,7 +148,8 @@ const horizontalTwo = [
151
148
  }
152
149
  },
153
150
  tag: 'ProductBadge',
154
- uid: 'gPMEqW9TKV'
151
+ uid: 'gHRinlrdow',
152
+ childrens: []
155
153
  },
156
154
  {
157
155
  advanced: {
@@ -289,7 +289,8 @@ const verticalThree = [
289
289
  }
290
290
  },
291
291
  tag: 'ProductBadge',
292
- uid: 'gPMEqW9TKV'
292
+ uid: 'gHRinlrdow',
293
+ childrens: []
293
294
  },
294
295
  {
295
296
  childrens: [
@@ -289,7 +289,8 @@ const verticalTwo = [
289
289
  }
290
290
  },
291
291
  tag: 'ProductBadge',
292
- uid: 'gPMEqW9TKV'
292
+ uid: 'gHRinlrdow',
293
+ childrens: []
293
294
  },
294
295
  {
295
296
  childrens: [
@@ -6,7 +6,7 @@ const getLiquidTextContent = (setting, styles)=>{
6
6
  const { template: templateString, outOfStockMessage, continueSelling, unlimitedQuantityMessage } = setting ?? {};
7
7
  const { textColor } = styles ?? {};
8
8
  const mainColor = textColor || 'brand';
9
- return `{% if inventory_management == null or inventory_management != "shopify" and inventory_quantity <= 0 %}
9
+ return `{% if inventory_management == null and inventory_quantity <= 0 %}
10
10
  ${transformHighlighTag(unlimitedQuantityMessage ?? getStaticLocale('StockCounter', 'let_buy_now'), mainColor)}
11
11
  {% elsif available == false %}
12
12
  ${transformHighlighTag(outOfStockMessage || '', mainColor)}
@@ -58,6 +58,7 @@ const Text = ({ id, styles, builderAttrs, style, setting, advanced, builderProps
58
58
  });
59
59
  const outputText = createContent(displayText);
60
60
  return template`
61
+ {% assign locationOrigin = request.origin | append: routes.root_url | split: '/' | join: '/' %}
61
62
  <div ${{
62
63
  ...attrs
63
64
  }}
@@ -1,26 +1,13 @@
1
- import { getInsertLinkData, getDynamicSourceLocales } from '../../../helpers.js';
1
+ import { replaceLinkData, getDynamicSourceLocales } from '../../../helpers.js';
2
2
 
3
3
  const getDisplayText = ({ type, styles, setting, builderProps, pageContext })=>{
4
4
  const { text, isForceValue } = setting ?? {};
5
5
  let displayText = '';
6
- let renderText = '';
7
- const regexCheckHasTagLink = /<a\s[^>]*>.*?<\/a>/;
8
- if (text && regexCheckHasTagLink.test(text)) {
9
- const regex = // eslint-disable-next-line regexp/no-super-linear-backtracking, regexp/no-unused-capturing-group
10
- /<a\s+(?:[^>]*?\s+)?href=["']([^"']*)["'](?:\s+[^>]*?)?(?:target=["']([^"']*)["'])?.*?>.*?<\/a>/gi;
11
- let newText = text.toString();
12
- let match;
13
- while((match = regex.exec(newText)) !== null){
14
- const href = match[1];
15
- const { urlData } = getInsertLinkData('', {
16
- link: href
17
- });
18
- newText = newText.replace(match[0], match[0].replace(/(href=['"])([^'"]*)(['"])/i, `$1${urlData.href}$3`));
19
- }
20
- renderText = newText;
21
- } else {
22
- renderText = text;
23
- }
6
+ const isViewliveHeadingOrTextComponent = [
7
+ 'Heading',
8
+ 'Text'
9
+ ].includes(builderProps?.builderData?.tag ?? '') && !pageContext?.isPreviewing;
10
+ const renderText = replaceLinkData(text?.toString());
24
11
  const isCapitalize = styles?.typo?.attrs?.transform === 'capitalize';
25
12
  if (type === 'React') {
26
13
  displayText = isCapitalize ? text?.toString().toLocaleLowerCase() : text?.toString();
@@ -29,13 +16,17 @@ const getDisplayText = ({ type, styles, setting, builderProps, pageContext })=>{
29
16
  displayText = renderText;
30
17
  } else if (setting?.translate) {
31
18
  displayText = getDynamicSourceLocales({
32
- val: renderText,
19
+ val: text,
33
20
  uid: builderProps?.uid,
34
21
  settingId: setting?.translate,
35
22
  pageContext,
36
23
  isCapitalize,
37
- translate: setting.translate
24
+ translate: setting.translate,
25
+ isReplaceLocationOrigin: isViewliveHeadingOrTextComponent
38
26
  });
27
+ if (displayText == text) {
28
+ displayText = renderText;
29
+ }
39
30
  } else {
40
31
  displayText = isCapitalize ? renderText?.toString().toLocaleLowerCase() : renderText;
41
32
  }
@@ -1,17 +1,17 @@
1
1
  import { template, makeStyleResponsive } from '@gem-sdk/core';
2
2
 
3
3
  const EcomsendBackInStockAlert = ({ setting, advanced })=>{
4
- const { align } = setting ?? {};
4
+ const { align, productId } = setting ?? {};
5
5
  return template`
6
- <div
7
- class="${advanced?.cssClass}"
8
- style="${{
6
+ <div
7
+ class="${advanced?.cssClass}"
8
+ style="${{
9
9
  ...makeStyleResponsive('ta', align)
10
10
  }}"
11
- >
12
- <div id="sealapps-bis-widget"></div>
13
- </div>
14
- `;
11
+ >
12
+ ${productId ? `<div style="display: block" class="ecomsend-bis-block" data-product-id="${productId}"></div>` : `<div id="sealapps-bis-widget"></div>`}
13
+ </div>
14
+ `;
15
15
  };
16
16
 
17
17
  export { EcomsendBackInStockAlert as default };
@@ -4,7 +4,7 @@ import ThirdPartyPreview from './ThirdPartyPreview.js';
4
4
 
5
5
  const AppConfig = {
6
6
  id: 'product-options-variant-option',
7
- label: 'Product Options Variant Option',
7
+ label: 'Avis Product Options, Variants',
8
8
  logoUrl: 'https://cdn.shopify.com/app-store/listing_images/5ee1f244b087cfbec9b19c8b3f62c8f6/icon/CMCq1s7J5vQCEAE=.png',
9
9
  tag: 'ProductOptionsVariantOption'
10
10
  };
@@ -14,7 +14,7 @@ const ProductOptionsVariantOptionContent = ()=>{
14
14
  className: "gp-p-2",
15
15
  children: /*#__PURE__*/ jsx(ThirdPartyPreview, {
16
16
  setting: {
17
- label: 'Product Options Variant Option',
17
+ label: 'Avis Product Options, Variants',
18
18
  iconSvg: `<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="${AppConfig.logoUrl}">`
19
19
  }
20
20
  })
@@ -1,7 +1,7 @@
1
1
  import { template, makeStyleResponsive } from '@gem-sdk/core';
2
2
 
3
3
  const ProductOptionsVariantOption = ({ setting, advanced })=>{
4
- const { align, idTrigger } = setting ?? {};
4
+ const { align } = setting ?? {};
5
5
  return template`
6
6
  <div
7
7
  class="${advanced?.cssClass}"
@@ -9,7 +9,7 @@ const ProductOptionsVariantOption = ({ setting, advanced })=>{
9
9
  ...makeStyleResponsive('ta', align)
10
10
  }}"
11
11
  >
12
- <div class="${idTrigger?.replace('.', '')}"></div>
12
+ <div class="avpoptions-container__v2"></div>
13
13
  </div>
14
14
  `;
15
15
  };
@@ -2,7 +2,7 @@ import { getLiquidForAppBlock } from '../helpers/thirdParty.js';
2
2
 
3
3
  const UnlimitedBundlesDiscounts = ({ setting, advanced })=>{
4
4
  const { align, appBlockId } = setting ?? {};
5
- return getLiquidForAppBlock(appBlockId, align, advanced?.cssClass);
5
+ return getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''} !gp-block`);
6
6
  };
7
7
 
8
8
  export { UnlimitedBundlesDiscounts as default };
@@ -1,7 +1,7 @@
1
1
  var AppConfig = {
2
2
  id: 'ecoboostify-shoppable-reel-ugc',
3
3
  label: 'EcoBoostify Shoppable Reel UGC',
4
- logoUrl: 'https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/CJWKq4vxxIkDEAE=.png?width=22&height=22',
4
+ logoUrl: 'https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/COuT9MaKvosDEAE=.png?width=22&height=22',
5
5
  tag: 'EcoboostifyShoppableReelUgc'
6
6
  };
7
7
 
@@ -1,7 +1,7 @@
1
1
  var AppConfig = {
2
2
  id: 'notify-back-in-stockpreorder',
3
3
  label: 'Notify! Back in Stock|PreOrder',
4
- logoUrl: 'https://cdn.shopify.com/app-store/listing_images/9216cd5dd17ab1a38de2641bae109159/icon/CNWHjbfSt4MDEAE=.png?width=22&height=22',
4
+ logoUrl: 'https://cdn.shopify.com/s/files/1/0643/0497/1949/files/Notify_Me_Logo.png?v=1736234550',
5
5
  tag: 'NotifyBackInStockPreOrder'
6
6
  };
7
7
 
@@ -5,7 +5,7 @@ import SettingUIV2 from './uiV2.js';
5
5
  const config = {
6
6
  tag: AppConfig.tag,
7
7
  label: AppConfig.label,
8
- 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">',
8
+ 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">',
9
9
  editorConfigs: {
10
10
  component: {
11
11
  isThirdParty: true
@@ -20,7 +20,7 @@ const config = {
20
20
  hideTextContent: true,
21
21
  icon: {
22
22
  desktop: `<div class="w-full flex flex-col items-center">
23
- <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">
23
+ <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">
24
24
  <span class="preset-item-title">EcoBoostify Shoppable Reel UGC</span>
25
25
  </div>`
26
26
  },
@@ -52,6 +52,11 @@ const config = {
52
52
  ],
53
53
  default: 'product-restore-email'
54
54
  },
55
+ {
56
+ id: 'productId',
57
+ label: 'Product ID',
58
+ type: 'input'
59
+ },
55
60
  {
56
61
  id: 'install',
57
62
  type: 'open-link',
@@ -11,6 +11,20 @@ const SettingUIV1 = [
11
11
  id: 'openApp'
12
12
  }
13
13
  },
14
+ {
15
+ type: 'control',
16
+ setting: {
17
+ id: 'productId'
18
+ },
19
+ label: {
20
+ en: 'Product ID'
21
+ },
22
+ options: {
23
+ hideOnPages: [
24
+ 'GP_PRODUCT'
25
+ ]
26
+ }
27
+ },
14
28
  {
15
29
  type: 'control',
16
30
  label: {
@@ -19,6 +19,37 @@ const SettingUIV2 = [
19
19
  }
20
20
  ]
21
21
  },
22
+ {
23
+ controls: [
24
+ {
25
+ type: 'combo',
26
+ label: {
27
+ en: 'Product ID'
28
+ },
29
+ conditionDisplay: 'pageType != "GP_PRODUCT"',
30
+ iconName: 'polaris-text-block',
31
+ getValueFromSettingID: 'productId',
32
+ isHideClear: true,
33
+ popoverLabel: {
34
+ en: 'Product ID'
35
+ },
36
+ controls: [
37
+ {
38
+ label: {
39
+ en: 'Content'
40
+ },
41
+ options: {
42
+ fullWidth: true
43
+ },
44
+ layout: 'vertical',
45
+ setting: {
46
+ id: 'productId'
47
+ }
48
+ }
49
+ ]
50
+ }
51
+ ]
52
+ },
22
53
  {
23
54
  controls: [
24
55
  {
@@ -12,6 +12,11 @@ const SettingUIV1 = [
12
12
  },
13
13
  setting: {
14
14
  id: 'customBundleId'
15
+ },
16
+ options: {
17
+ hideOnPages: [
18
+ 'GP_PRODUCT'
19
+ ]
15
20
  }
16
21
  },
17
22
  {
@@ -5,7 +5,7 @@ import SettingUIV1 from './uiV1.js';
5
5
  const config = {
6
6
  tag: AppConfig.tag,
7
7
  label: AppConfig.label,
8
- 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">',
8
+ icon: `<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${AppConfig.logoUrl}">`,
9
9
  editorConfigs: {
10
10
  placeholder: {
11
11
  flowTag: [
@@ -25,7 +25,7 @@ const config = {
25
25
  hideTextContent: true,
26
26
  icon: {
27
27
  desktop: `<div class="w-full flex flex-col items-center">
28
- <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">
28
+ <img class="w-24 border border-dark-200 rounded-medium" src="${AppConfig.logoUrl}">
29
29
  <span class="preset-item-title">Notify! Back in Stock|PreOrder</span>
30
30
  </div>`
31
31
  },
@@ -26,7 +26,7 @@ const config = {
26
26
  icon: {
27
27
  desktop: `<div class="w-full flex flex-col items-center">
28
28
  <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">
29
- <span class="preset-item-title">Product Options Variant Option</span>
29
+ <span class="preset-item-title">Avis Product Options, Variants</span>
30
30
  </div>`
31
31
  },
32
32
  components: [
@@ -48,12 +48,6 @@ const config = {
48
48
  href: 'https://apps.shopify.com/avisplus-product-options?utm_source=gempages',
49
49
  appName: AppConfig.label
50
50
  },
51
- {
52
- id: 'idTrigger',
53
- type: 'input',
54
- label: '',
55
- placeholder: 'eg: .product-form__buttons'
56
- },
57
51
  {
58
52
  id: 'openApp',
59
53
  type: 'open-link',
@@ -11,15 +11,6 @@ const SettingUIV1 = [
11
11
  id: 'openApp'
12
12
  }
13
13
  },
14
- {
15
- type: 'control',
16
- setting: {
17
- id: 'idTrigger'
18
- },
19
- label: {
20
- en: 'ID Element'
21
- }
22
- },
23
14
  {
24
15
  type: 'control',
25
16
  label: {
@@ -19,36 +19,6 @@ const SettingUIV2 = [
19
19
  }
20
20
  ]
21
21
  },
22
- {
23
- controls: [
24
- {
25
- type: 'combo',
26
- label: {
27
- en: 'Trigger ID'
28
- },
29
- iconName: 'polaris-text-block',
30
- getValueFromSettingID: 'idTrigger',
31
- isHideClear: true,
32
- popoverLabel: {
33
- en: 'Trigger ID'
34
- },
35
- controls: [
36
- {
37
- label: {
38
- en: 'Content'
39
- },
40
- options: {
41
- fullWidth: true
42
- },
43
- layout: 'vertical',
44
- setting: {
45
- id: 'idTrigger'
46
- }
47
- }
48
- ]
49
- }
50
- ]
51
- },
52
22
  {
53
23
  controls: [
54
24
  {
@@ -9,7 +9,8 @@ const config = {
9
9
  editorConfigs: {
10
10
  placeholder: {
11
11
  flowTag: [
12
- 'ProductList'
12
+ 'ProductList',
13
+ 'Product'
13
14
  ]
14
15
  },
15
16
  component: {
@@ -51,8 +51,12 @@ const config = {
51
51
  type: 'select',
52
52
  options: [
53
53
  {
54
- label: 'UnlimitedBundlesProductPage',
54
+ label: 'All Bundles',
55
55
  value: 'embed-all'
56
+ },
57
+ {
58
+ label: 'Revy Bundle Placeholder',
59
+ value: 'product-page-placeholder'
56
60
  }
57
61
  ],
58
62
  default: 'embed-all'
@@ -5,6 +5,15 @@ const SettingUIV1 = [
5
5
  id: 'install'
6
6
  }
7
7
  },
8
+ {
9
+ type: 'control',
10
+ label: {
11
+ en: 'Choose Widget'
12
+ },
13
+ setting: {
14
+ id: 'widgetType'
15
+ }
16
+ },
8
17
  {
9
18
  type: 'control',
10
19
  setting: {
@@ -9,6 +9,18 @@ const SettingUIV2 = [
9
9
  }
10
10
  ]
11
11
  },
12
+ {
13
+ controls: [
14
+ {
15
+ setting: {
16
+ id: 'widgetType'
17
+ },
18
+ label: {
19
+ en: 'Choose Widget'
20
+ }
21
+ }
22
+ ]
23
+ },
12
24
  {
13
25
  controls: [
14
26
  {