@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.
- package/dist/cjs/banner/components/common/common.js +16 -5
- package/dist/cjs/banner/components/common/getStyle.js +1 -1
- package/dist/cjs/banner/components/hooks/useHeroBanner.js +1 -1
- package/dist/cjs/banner/setting/uiV2.js +37 -0
- package/dist/cjs/button/components/Button.js +4 -1
- package/dist/cjs/carousel/carousel-item/common/getClass.js +1 -1
- package/dist/cjs/grid/row/commons/getClass.js +1 -1
- package/dist/cjs/grid/row/commons/getStyle.js +2 -1
- package/dist/cjs/grid/row/setting/configs/settings.js +21 -0
- package/dist/cjs/grid/row/setting/configs/uiV2.js +10 -4
- package/dist/cjs/helpers.js +31 -1
- package/dist/cjs/icon-list-v2/components/IconList.liquid.js +1 -0
- package/dist/cjs/image/components/Image.js +1 -1
- package/dist/cjs/image/components/Image.liquid.js +1 -1
- package/dist/cjs/image/components/common/classes.js +3 -1
- package/dist/cjs/image/helpers/getSrcSet.js +2 -1
- package/dist/cjs/image/setting/configs/settings.js +9 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/post-purchase/product/components/product-offer/common/classes.js +5 -1
- package/dist/cjs/product/components/ProductBundle/common/styles.js +2 -2
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -1
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +1 -1
- package/dist/cjs/product/components/ProductBundle/setting/ProductBundleDiscount.js +2 -8
- package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -1
- package/dist/cjs/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +6 -2
- package/dist/cjs/product/components/ProductList/ProductList.liquid.js +4 -8
- package/dist/cjs/product/components/ProductVariants/index.liquid.js +8 -3
- package/dist/cjs/product/setting/constant/bundle-layout/horizontalThree.js +4 -6
- package/dist/cjs/product/setting/constant/bundle-layout/horizontalTwo.js +3 -5
- package/dist/cjs/product/setting/constant/bundle-layout/verticalThree.js +2 -1
- package/dist/cjs/product/setting/constant/bundle-layout/verticalTwo.js +2 -1
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +13 -11
- package/dist/cjs/stock-counter/components/common/getContent.js +1 -1
- package/dist/cjs/text/components/Text.liquid.js +1 -0
- package/dist/cjs/text/components/common/getDisplayText.js +11 -20
- package/dist/cjs/third-party/components/EcomsendBackInStockAlert.liquid.js +8 -8
- package/dist/cjs/third-party/components/ProductOptionsVariantOption.js +2 -2
- package/dist/cjs/third-party/components/ProductOptionsVariantOption.liquid.js +2 -2
- package/dist/cjs/third-party/components/UnlimitedBundlesDiscounts.liquid.js +1 -1
- package/dist/cjs/third-party/configs/EcoboostifyShoppableReelUgc.js +1 -1
- package/dist/cjs/third-party/configs/NotifyBackInStockPreOrder.js +1 -1
- package/dist/cjs/third-party/setting/EcoboostifyShoppableReelUgc/index.js +2 -2
- package/dist/cjs/third-party/setting/EcomsendBackInStockAlert/index.js +5 -0
- package/dist/cjs/third-party/setting/EcomsendBackInStockAlert/uiV1.js +14 -0
- package/dist/cjs/third-party/setting/EcomsendBackInStockAlert/uiV2.js +31 -0
- package/dist/cjs/third-party/setting/FlyBundlesUpsellsFbt/uiV1.js +5 -0
- package/dist/cjs/third-party/setting/NotifyBackInStockPreOrder/index.js +2 -2
- package/dist/cjs/third-party/setting/ProductOptionsVariantOption/index.js +1 -7
- package/dist/cjs/third-party/setting/ProductOptionsVariantOption/uiV1.js +0 -9
- package/dist/cjs/third-party/setting/ProductOptionsVariantOption/uiV2.js +0 -30
- package/dist/cjs/third-party/setting/RequestQuoteHidePrice/index.js +2 -1
- package/dist/cjs/third-party/setting/UnlimitedBundlesDiscounts/index.js +5 -1
- package/dist/cjs/third-party/setting/UnlimitedBundlesDiscounts/uiV1.js +9 -0
- package/dist/cjs/third-party/setting/UnlimitedBundlesDiscounts/uiV2.js +12 -0
- package/dist/esm/banner/components/common/common.js +17 -6
- package/dist/esm/banner/components/common/getStyle.js +1 -1
- package/dist/esm/banner/components/hooks/useHeroBanner.js +1 -1
- package/dist/esm/banner/setting/uiV2.js +37 -0
- package/dist/esm/button/components/Button.js +4 -1
- package/dist/esm/carousel/carousel-item/common/getClass.js +1 -1
- package/dist/esm/grid/row/commons/getClass.js +1 -1
- package/dist/esm/grid/row/commons/getStyle.js +2 -1
- package/dist/esm/grid/row/setting/configs/settings.js +21 -0
- package/dist/esm/grid/row/setting/configs/uiV2.js +10 -4
- package/dist/esm/helpers.js +30 -2
- package/dist/esm/icon-list-v2/components/IconList.liquid.js +1 -0
- package/dist/esm/image/components/Image.js +1 -1
- package/dist/esm/image/components/Image.liquid.js +1 -1
- package/dist/esm/image/components/common/classes.js +4 -2
- package/dist/esm/image/helpers/getSrcSet.js +2 -1
- package/dist/esm/image/setting/configs/settings.js +9 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/post-purchase/product/components/product-offer/common/classes.js +5 -1
- package/dist/esm/product/components/ProductBundle/common/styles.js +2 -2
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -1
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +1 -1
- package/dist/esm/product/components/ProductBundle/setting/ProductBundleDiscount.js +2 -8
- package/dist/esm/product/components/ProductImagesV2/common/common.js +1 -1
- package/dist/esm/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +6 -2
- package/dist/esm/product/components/ProductList/ProductList.liquid.js +4 -8
- package/dist/esm/product/components/ProductVariants/index.liquid.js +8 -3
- package/dist/esm/product/setting/constant/bundle-layout/horizontalThree.js +4 -6
- package/dist/esm/product/setting/constant/bundle-layout/horizontalTwo.js +3 -5
- package/dist/esm/product/setting/constant/bundle-layout/verticalThree.js +2 -1
- package/dist/esm/product/setting/constant/bundle-layout/verticalTwo.js +2 -1
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +13 -11
- package/dist/esm/stock-counter/components/common/getContent.js +1 -1
- package/dist/esm/text/components/Text.liquid.js +1 -0
- package/dist/esm/text/components/common/getDisplayText.js +12 -21
- package/dist/esm/third-party/components/EcomsendBackInStockAlert.liquid.js +8 -8
- package/dist/esm/third-party/components/ProductOptionsVariantOption.js +2 -2
- package/dist/esm/third-party/components/ProductOptionsVariantOption.liquid.js +2 -2
- package/dist/esm/third-party/components/UnlimitedBundlesDiscounts.liquid.js +1 -1
- package/dist/esm/third-party/configs/EcoboostifyShoppableReelUgc.js +1 -1
- package/dist/esm/third-party/configs/NotifyBackInStockPreOrder.js +1 -1
- package/dist/esm/third-party/setting/EcoboostifyShoppableReelUgc/index.js +2 -2
- package/dist/esm/third-party/setting/EcomsendBackInStockAlert/index.js +5 -0
- package/dist/esm/third-party/setting/EcomsendBackInStockAlert/uiV1.js +14 -0
- package/dist/esm/third-party/setting/EcomsendBackInStockAlert/uiV2.js +31 -0
- package/dist/esm/third-party/setting/FlyBundlesUpsellsFbt/uiV1.js +5 -0
- package/dist/esm/third-party/setting/NotifyBackInStockPreOrder/index.js +2 -2
- package/dist/esm/third-party/setting/ProductOptionsVariantOption/index.js +1 -7
- package/dist/esm/third-party/setting/ProductOptionsVariantOption/uiV1.js +0 -9
- package/dist/esm/third-party/setting/ProductOptionsVariantOption/uiV2.js +0 -30
- package/dist/esm/third-party/setting/RequestQuoteHidePrice/index.js +2 -1
- package/dist/esm/third-party/setting/UnlimitedBundlesDiscounts/index.js +5 -1
- package/dist/esm/third-party/setting/UnlimitedBundlesDiscounts/uiV1.js +9 -0
- package/dist/esm/third-party/setting/UnlimitedBundlesDiscounts/uiV2.js +12 -0
- package/dist/types/index.d.ts +5 -1
- package/package.json +2 -2
|
@@ -68,27 +68,29 @@ const productFeatureImageSetting = [
|
|
|
68
68
|
{
|
|
69
69
|
id: 'otherImage',
|
|
70
70
|
label: 'Other image',
|
|
71
|
-
type: '
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
value: 0
|
|
76
|
-
},
|
|
71
|
+
type: 'dropdown:input',
|
|
72
|
+
isNumber: true,
|
|
73
|
+
isIndexValue: true,
|
|
74
|
+
displayOptions: [
|
|
77
75
|
{
|
|
78
|
-
|
|
76
|
+
label: 'Image 1',
|
|
79
77
|
value: 1
|
|
80
78
|
},
|
|
81
79
|
{
|
|
82
|
-
|
|
80
|
+
label: 'Image 2',
|
|
83
81
|
value: 2
|
|
84
82
|
},
|
|
85
83
|
{
|
|
86
|
-
|
|
84
|
+
label: 'Image 3',
|
|
87
85
|
value: 3
|
|
88
86
|
},
|
|
89
87
|
{
|
|
90
|
-
|
|
91
|
-
value:
|
|
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
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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:
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
<div
|
|
11
|
+
class="${advanced?.cssClass}"
|
|
12
|
+
style="${{
|
|
13
13
|
...core.makeStyleResponsive('ta', align)
|
|
14
14
|
}}"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
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
|
|
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
|
|
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="
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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
|
},
|
|
@@ -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
|
{
|
|
@@ -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:
|
|
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="
|
|
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
|
|
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',
|
|
@@ -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
|
{
|
|
@@ -55,8 +55,12 @@ const config = {
|
|
|
55
55
|
type: 'select',
|
|
56
56
|
options: [
|
|
57
57
|
{
|
|
58
|
-
label: '
|
|
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'
|
|
@@ -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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
|
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
|
-
|
|
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", {
|
|
@@ -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
|
};
|