@gem-sdk/components 2.6.0-staging.31 → 3.0.0-pre-production.0
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/builder.js +0 -2
- package/dist/cjs/image/components/Image.liquid.js +0 -2
- package/dist/cjs/image/helpers/getSrcSet.js +4 -1
- package/dist/cjs/index.js +0 -2
- package/dist/cjs/index.liquid.js +0 -2
- package/dist/cjs/post-purchase/button/Button.js +1 -1
- package/dist/cjs/product/setting/ProductList.js +2 -1
- package/dist/cjs/text/setting/Text.js +1 -2
- package/dist/cjs/third-party/components/Bogos/BogosSampleContent.js +1 -3
- package/dist/cjs/third-party/components/Bogos.liquid.js +0 -2
- package/dist/cjs/third-party/next.js +0 -5
- package/dist/cjs/third-party/setting/Bogos.js +0 -4
- package/dist/cjs/third-party/setting/Selleasy.js +5 -5
- package/dist/cjs/third-party/setting/index.js +0 -2
- package/dist/cjs/third-party-instant/components/InstantJudgemeReviews.js +14 -30
- package/dist/cjs/third-party-instant/types/JudgemeReviews.js +0 -4
- package/dist/esm/builder.js +0 -2
- package/dist/esm/image/components/Image.liquid.js +0 -2
- package/dist/esm/image/helpers/getSrcSet.js +4 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/index.liquid.js +0 -1
- package/dist/esm/post-purchase/button/Button.js +1 -1
- package/dist/esm/product/setting/ProductList.js +2 -1
- package/dist/esm/text/setting/Text.js +1 -2
- package/dist/esm/third-party/components/Bogos/BogosSampleContent.js +1 -3
- package/dist/esm/third-party/components/Bogos.liquid.js +0 -2
- package/dist/esm/third-party/next.js +0 -5
- package/dist/esm/third-party/setting/Bogos.js +0 -4
- package/dist/esm/third-party/setting/Selleasy.js +5 -5
- package/dist/esm/third-party/setting/index.js +232 -234
- package/dist/esm/third-party-instant/components/InstantJudgemeReviews.js +16 -32
- package/dist/esm/third-party-instant/types/JudgemeReviews.js +1 -3
- package/dist/types/index.d.ts +1 -19
- package/package.json +3 -3
- package/dist/cjs/third-party/components/AovFreeGiftBuyXGetYBogo.js +0 -38
- package/dist/cjs/third-party/components/AovFreeGiftBuyXGetYBogo.liquid.js +0 -12
- package/dist/cjs/third-party/setting/AovFreeGiftBuyXGetYBogo.js +0 -131
- package/dist/esm/third-party/components/AovFreeGiftBuyXGetYBogo.js +0 -33
- package/dist/esm/third-party/components/AovFreeGiftBuyXGetYBogo.liquid.js +0 -8
- package/dist/esm/third-party/setting/AovFreeGiftBuyXGetYBogo.js +0 -127
package/dist/cjs/builder.js
CHANGED
|
@@ -63,7 +63,6 @@ var TeeinblueProductPersonalizer = require('./third-party/components/TeeinbluePr
|
|
|
63
63
|
var GloboProductOptionsVariant = require('./third-party/components/GloboProductOptionsVariant.js');
|
|
64
64
|
var ProductOptionsVariantOption = require('./third-party/components/ProductOptionsVariantOption.js');
|
|
65
65
|
var BestBuyFulfillment = require('./third-party/components/BestBuyFulfillment.js');
|
|
66
|
-
var AovFreeGiftBuyXGetYBogo = require('./third-party/components/AovFreeGiftBuyXGetYBogo.js');
|
|
67
66
|
var JudgemeReviews = require('./third-party/components/JudgemeReviews.js');
|
|
68
67
|
var LooxReviews = require('./third-party/components/LooxReviews.js');
|
|
69
68
|
var Klaviyo = require('./third-party/components/Klaviyo.js');
|
|
@@ -261,7 +260,6 @@ var PostPurchaseCountdownTimer = require('./post-purchase/countdown-timer/compon
|
|
|
261
260
|
var Text$1 = require('./post-purchase/text/Text.js');
|
|
262
261
|
|
|
263
262
|
var builder = {
|
|
264
|
-
AovFreeGiftBuyXGetYBogo: AovFreeGiftBuyXGetYBogo.default,
|
|
265
263
|
AppstleBundlesDiscounts: AppstleBundlesDiscounts.default,
|
|
266
264
|
EcomsendBackInStockAlert: EcomsendBackInStockAlert.default,
|
|
267
265
|
EstimatedDeliveryDatePlus: EstimatedDeliveryDatePlus.default,
|
|
@@ -32,7 +32,6 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
32
32
|
const imageWidth = core.makeStyleResponsive('w', core.getWidthByShapeGlobalSize(shape));
|
|
33
33
|
const imageHeight = core.makeStyleResponsive('h', core.getHeightByShapeGlobalSize(shape));
|
|
34
34
|
const imageFlexGrowClass = core.getFlexGrowClassByShapeGlobalSize(shape);
|
|
35
|
-
const testCLass = pageContext?.enableLazyLoadImage ? 'has_class' : 'do_not_have_class';
|
|
36
35
|
return core.template`<div
|
|
37
36
|
${{
|
|
38
37
|
...builderAttrs
|
|
@@ -46,7 +45,6 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
46
45
|
...style,
|
|
47
46
|
...core.makeStyleResponsive('ta', styles?.align)
|
|
48
47
|
}}"
|
|
49
|
-
data-class="${testCLass}"
|
|
50
48
|
>
|
|
51
49
|
<${WrapLink}
|
|
52
50
|
class="pointer-events-auto gp-h-full gp-flex"
|
|
@@ -33,6 +33,9 @@ const getSrcSetLink = (link)=>{
|
|
|
33
33
|
return link; // Since image src didn't change in size so this line of code is pointless
|
|
34
34
|
// return `${link} 768w,${link} 1024w,${link} 1440w`;
|
|
35
35
|
};
|
|
36
|
+
const isShopifyCDNImage = (assetUrl)=>{
|
|
37
|
+
return assetUrl && assetUrl?.startsWith('https://cdn.shopify.com/');
|
|
38
|
+
};
|
|
36
39
|
const getImageSrc = (image, currentDevice)=>{
|
|
37
40
|
let src = image?.backupFilePath ?? image?.src;
|
|
38
41
|
if (image?.backupFileKey) {
|
|
@@ -43,7 +46,7 @@ const getImageSrc = (image, currentDevice)=>{
|
|
|
43
46
|
src = `{{ "${replaceBackupFileKeyFileContent(newBackupFileKey)}" | file_url }}`;
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
|
-
if (currentDevice && src
|
|
49
|
+
if (currentDevice && isShopifyCDNImage(src)) {
|
|
47
50
|
switch(currentDevice){
|
|
48
51
|
case 'tablet':
|
|
49
52
|
src = src?.replace(regexReplaceEndDot, `_1024x.`);
|
package/dist/cjs/index.js
CHANGED
|
@@ -222,7 +222,6 @@ var HextomFreeShippingBar = require('./third-party/components/HextomFreeShipping
|
|
|
222
222
|
var EcoboostifyShoppableReelUgc = require('./third-party/components/EcoboostifyShoppableReelUgc.js');
|
|
223
223
|
var AppstleBundlesDiscounts = require('./third-party/components/AppstleBundlesDiscounts.js');
|
|
224
224
|
var EcomsendBackInStockAlert = require('./third-party/components/EcomsendBackInStockAlert.js');
|
|
225
|
-
var AovFreeGiftBuyXGetYBogo = require('./third-party/components/AovFreeGiftBuyXGetYBogo.js');
|
|
226
225
|
var index$x = require('./third-party-instant/setting/index.js');
|
|
227
226
|
var InstantJudgemeReviews = require('./third-party-instant/components/InstantJudgemeReviews.js');
|
|
228
227
|
var InstantLooxReviews = require('./third-party-instant/components/InstantLooxReviews.js');
|
|
@@ -541,7 +540,6 @@ exports.HextomFreeShippingBar = HextomFreeShippingBar.default;
|
|
|
541
540
|
exports.EcoboostifyShoppableReelUgc = EcoboostifyShoppableReelUgc.default;
|
|
542
541
|
exports.AppstleBundlesDiscounts = AppstleBundlesDiscounts.default;
|
|
543
542
|
exports.EcomsendBackInStockAlert = EcomsendBackInStockAlert.default;
|
|
544
|
-
exports.AovFreeGiftBuyXGetYBogo = AovFreeGiftBuyXGetYBogo.default;
|
|
545
543
|
exports.thirdPartyInstantSetting = index$x.default;
|
|
546
544
|
exports.InstantJudgemeReviews = InstantJudgemeReviews.default;
|
|
547
545
|
exports.InstantLooxReviews = InstantLooxReviews.default;
|
package/dist/cjs/index.liquid.js
CHANGED
|
@@ -177,7 +177,6 @@ var HextomFreeShippingBar_liquid = require('./third-party/components/HextomFreeS
|
|
|
177
177
|
var EcoboostifyShoppableReelUgc_liquid = require('./third-party/components/EcoboostifyShoppableReelUgc.liquid.js');
|
|
178
178
|
var AppstleBundlesDiscounts_liquid = require('./third-party/components/AppstleBundlesDiscounts.liquid.js');
|
|
179
179
|
var EcomsendBackInStockAlert_liquid = require('./third-party/components/EcomsendBackInStockAlert.liquid.js');
|
|
180
|
-
var AovFreeGiftBuyXGetYBogo_liquid = require('./third-party/components/AovFreeGiftBuyXGetYBogo.liquid.js');
|
|
181
180
|
var ImageComparison_liquid = require('./image-comparison/components/ImageComparison.liquid.js');
|
|
182
181
|
var ThirdPartySlot_liquid = require('./third-party-slot/components/ThirdPartySlot.liquid.js');
|
|
183
182
|
var Sticky_liquid = require('./sticky/components/Sticky.liquid.js');
|
|
@@ -377,7 +376,6 @@ exports.HextomFreeShippingBar = HextomFreeShippingBar_liquid.default;
|
|
|
377
376
|
exports.EcoboostifyShoppableReelUgc = EcoboostifyShoppableReelUgc_liquid.default;
|
|
378
377
|
exports.AppstleBundlesDiscounts = AppstleBundlesDiscounts_liquid.default;
|
|
379
378
|
exports.EcomsendBackInStockAlert = EcomsendBackInStockAlert_liquid.default;
|
|
380
|
-
exports.AovFreeGiftBuyXGetYBogo = AovFreeGiftBuyXGetYBogo_liquid.default;
|
|
381
379
|
exports.ImageComparison = ImageComparison_liquid.default;
|
|
382
380
|
exports.ThirdPartySlot = ThirdPartySlot_liquid.default;
|
|
383
381
|
exports.Sticky = Sticky_liquid.default;
|
|
@@ -69,7 +69,7 @@ const Button = ({ styles, builderAttrs, style, setting, advanced, builderProps,
|
|
|
69
69
|
text
|
|
70
70
|
},
|
|
71
71
|
textClassWrapper: "gp-leading-[15px] gp-w-fit",
|
|
72
|
-
textClass: `!gp-inline-flex gp-py-[8px] ${mode === 'edit' ? 'button-text' : ''}`,
|
|
72
|
+
textClass: `!gp-inline-flex gp-py-[8px] gp-leading-[1.3] ${mode === 'edit' ? 'button-text' : ''}`,
|
|
73
73
|
styles: {
|
|
74
74
|
typo: {
|
|
75
75
|
...typo,
|
|
@@ -13,9 +13,7 @@ const mapWidgetLabel = {
|
|
|
13
13
|
slider: 'Gift slider',
|
|
14
14
|
message: 'Cart message',
|
|
15
15
|
['classic-bundle']: 'Classic bundle',
|
|
16
|
-
['quantity-break']: 'Quantity break'
|
|
17
|
-
'mix-match': 'Mix and match',
|
|
18
|
-
fbt: 'Frequently Bought Together'
|
|
16
|
+
['quantity-break']: 'Quantity break'
|
|
19
17
|
};
|
|
20
18
|
const BogosSampleContent = ({ setting })=>{
|
|
21
19
|
const widgetLabel = setting?.widgetType && mapWidgetLabel[setting.widgetType];
|
|
@@ -29,8 +29,6 @@ const Bogos = ({ setting, advanced })=>{
|
|
|
29
29
|
<div class="bogos-integration-page-builder-quantity-break"></div>
|
|
30
30
|
{% when "mix-match" %}
|
|
31
31
|
<div class="bogos-integration-page-builder-mix-match"></div>
|
|
32
|
-
{% when "fbt" %}
|
|
33
|
-
<div class="bogos-integration-page-builder-fbt-upsell"></div>
|
|
34
32
|
{% endcase %}
|
|
35
33
|
</div>
|
|
36
34
|
`;
|
|
@@ -6,10 +6,6 @@ var dynamic = require('next/dynamic');
|
|
|
6
6
|
var Loading = require('../common/components/Loading.js');
|
|
7
7
|
require('react/jsx-runtime');
|
|
8
8
|
|
|
9
|
-
const AovFreeGiftBuyXGetYBogo = dynamic(()=>Promise.resolve().then(function () { return require('./components/AovFreeGiftBuyXGetYBogo.js'); }), {
|
|
10
|
-
ssr: false,
|
|
11
|
-
loading: Loading.default
|
|
12
|
-
});
|
|
13
9
|
const AppstleBundlesDiscounts = dynamic(()=>Promise.resolve().then(function () { return require('./components/AppstleBundlesDiscounts.js'); }), {
|
|
14
10
|
ssr: false,
|
|
15
11
|
loading: Loading.default
|
|
@@ -475,7 +471,6 @@ const EcoboostifyShoppableReelUgc = dynamic(()=>Promise.resolve().then(function
|
|
|
475
471
|
loading: Loading.default
|
|
476
472
|
});
|
|
477
473
|
var thirdParty = {
|
|
478
|
-
AovFreeGiftBuyXGetYBogo,
|
|
479
474
|
AppstleBundlesDiscounts,
|
|
480
475
|
EcomsendBackInStockAlert,
|
|
481
476
|
EcoboostifyShoppableReelUgc,
|
|
@@ -54,17 +54,17 @@ const config = {
|
|
|
54
54
|
type: 'select',
|
|
55
55
|
options: [
|
|
56
56
|
{
|
|
57
|
-
label: '
|
|
58
|
-
value: 'lb-upsell-
|
|
57
|
+
label: 'FBT List',
|
|
58
|
+
value: 'lb-upsell-widget-bl',
|
|
59
59
|
maxOption: 1
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
label: '
|
|
63
|
-
value: 'lb-upsell-
|
|
62
|
+
label: 'Add-ons List',
|
|
63
|
+
value: 'lb-upsell-widget-pal',
|
|
64
64
|
maxOption: 1
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
|
-
default: 'lb-upsell-
|
|
67
|
+
default: 'lb-upsell-widget-bl'
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
id: 'install',
|
|
@@ -118,10 +118,8 @@ var HextomFreeShippingBar = require('./HextomFreeShippingBar.js');
|
|
|
118
118
|
var EcoboostifyShoppableReelUgc = require('./EcoboostifyShoppableReelUgc.js');
|
|
119
119
|
var AppstleBundlesDiscounts = require('./AppstleBundlesDiscounts.js');
|
|
120
120
|
var EcomsendBackInStockAlert = require('./EcomsendBackInStockAlert.js');
|
|
121
|
-
var AovFreeGiftBuyXGetYBogo = require('./AovFreeGiftBuyXGetYBogo.js');
|
|
122
121
|
|
|
123
122
|
var index = {
|
|
124
|
-
AovFreeGiftBuyXGetYBogo: AovFreeGiftBuyXGetYBogo.default,
|
|
125
123
|
HextomCountdownTimerBar: HextomCountdownTimerBar.default,
|
|
126
124
|
EstimatedDeliveryDatePlus: EstimatedDeliveryDatePlus.default,
|
|
127
125
|
OkendoReviewsLoyalty: OkendoReviewsLoyalty.default,
|
|
@@ -11,22 +11,22 @@ var WithoutProduct = require('./Judgeme/WithoutProduct.js');
|
|
|
11
11
|
|
|
12
12
|
const InstantJudgemeReviews = ({ setting, styles, builderProps })=>{
|
|
13
13
|
const { widgetType, publicToken } = setting ?? {};
|
|
14
|
-
const mode = core.useEditorMode();
|
|
15
14
|
const { storefrontUrl } = core.useStoreFront();
|
|
16
15
|
const SHOPIFY_DOMAIN = storefrontUrl?.replace('https://', '')?.replace('http://', '')?.split('/')?.[0];
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
const addScript = (id, src)=>{
|
|
17
|
+
const existing = document.getElementById(id);
|
|
18
|
+
if (existing) {
|
|
19
|
+
return existing;
|
|
20
|
+
} else {
|
|
20
21
|
const script = document.createElement('script');
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
type: 'text/javascript'
|
|
26
|
-
});
|
|
22
|
+
script.id = id;
|
|
23
|
+
script.src = src;
|
|
24
|
+
script.defer = true;
|
|
25
|
+
script.type = 'text/javascript';
|
|
27
26
|
script.setAttribute('data-cfasync', 'false');
|
|
28
27
|
document.head.appendChild(script);
|
|
29
|
-
|
|
28
|
+
return script;
|
|
29
|
+
}
|
|
30
30
|
};
|
|
31
31
|
const addTextScript = React.useCallback((id, public_token)=>{
|
|
32
32
|
if (SHOPIFY_DOMAIN && public_token) {
|
|
@@ -47,25 +47,9 @@ const InstantJudgemeReviews = ({ setting, styles, builderProps })=>{
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
React.useEffect(()=>{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
JudgemeReviews.JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_ID,
|
|
54
|
-
JudgemeReviews.JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_URL
|
|
55
|
-
],
|
|
56
|
-
[
|
|
57
|
-
JudgemeReviews.JUDGEME_REVIEWS_INSTALLED_JS_ID,
|
|
58
|
-
JudgemeReviews.JUDGEME_REVIEWS_INSTALLED_JS_URL
|
|
59
|
-
],
|
|
60
|
-
[
|
|
61
|
-
JudgemeReviews.JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_I_V2,
|
|
62
|
-
JudgemeReviews.JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_URL_V2
|
|
63
|
-
]
|
|
64
|
-
]);
|
|
65
|
-
}
|
|
66
|
-
}, [
|
|
67
|
-
mode
|
|
68
|
-
]);
|
|
50
|
+
addScript(JudgemeReviews.JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_ID, JudgemeReviews.JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_URL);
|
|
51
|
+
addScript(JudgemeReviews.JUDGEME_REVIEWS_INSTALLED_JS_ID, JudgemeReviews.JUDGEME_REVIEWS_INSTALLED_JS_URL);
|
|
52
|
+
}, []);
|
|
69
53
|
React.useEffect(()=>{
|
|
70
54
|
if (publicToken) {
|
|
71
55
|
removeScript(JudgemeReviews.JUDGEME_REVIEWS_PUBLIC_TOKEN_JS_ID);
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_URL = 'https://cdn.judge.me/widget_preloader.js';
|
|
4
4
|
const JUDGEME_REVIEWS_INSTALLED_JS_URL = 'https://cdn.judge.me/assets/installed.js';
|
|
5
|
-
const JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_URL_V2 = 'https://cdnwidget.judge.me/widget_preloader.js';
|
|
6
5
|
const JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_ID = 'judge_widget_preloader';
|
|
7
|
-
const JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_I_V2 = 'judge_widget_preloader_v2';
|
|
8
6
|
const JUDGEME_REVIEWS_INSTALLED_JS_ID = 'judge_installed';
|
|
9
7
|
const JUDGEME_REVIEWS_PUBLIC_TOKEN_JS_ID = 'judge_public_token';
|
|
10
8
|
|
|
@@ -12,6 +10,4 @@ exports.JUDGEME_REVIEWS_INSTALLED_JS_ID = JUDGEME_REVIEWS_INSTALLED_JS_ID;
|
|
|
12
10
|
exports.JUDGEME_REVIEWS_INSTALLED_JS_URL = JUDGEME_REVIEWS_INSTALLED_JS_URL;
|
|
13
11
|
exports.JUDGEME_REVIEWS_PUBLIC_TOKEN_JS_ID = JUDGEME_REVIEWS_PUBLIC_TOKEN_JS_ID;
|
|
14
12
|
exports.JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_ID = JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_ID;
|
|
15
|
-
exports.JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_I_V2 = JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_I_V2;
|
|
16
13
|
exports.JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_URL = JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_URL;
|
|
17
|
-
exports.JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_URL_V2 = JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_URL_V2;
|
package/dist/esm/builder.js
CHANGED
|
@@ -59,7 +59,6 @@ import TeeinblueProductPersonalizer from './third-party/components/TeeinblueProd
|
|
|
59
59
|
import GloboProductOptionsVariant from './third-party/components/GloboProductOptionsVariant.js';
|
|
60
60
|
import ProductOptionsVariantOption from './third-party/components/ProductOptionsVariantOption.js';
|
|
61
61
|
import BestBuyFulfillment from './third-party/components/BestBuyFulfillment.js';
|
|
62
|
-
import AovFreeGiftBuyXGetYBogo from './third-party/components/AovFreeGiftBuyXGetYBogo.js';
|
|
63
62
|
import JudgemeReviews from './third-party/components/JudgemeReviews.js';
|
|
64
63
|
import LooxReviews from './third-party/components/LooxReviews.js';
|
|
65
64
|
import Klaviyo from './third-party/components/Klaviyo.js';
|
|
@@ -257,7 +256,6 @@ import PostPurchaseCountdownTimer from './post-purchase/countdown-timer/componen
|
|
|
257
256
|
import Text$1 from './post-purchase/text/Text.js';
|
|
258
257
|
|
|
259
258
|
var builder = {
|
|
260
|
-
AovFreeGiftBuyXGetYBogo,
|
|
261
259
|
AppstleBundlesDiscounts,
|
|
262
260
|
EcomsendBackInStockAlert,
|
|
263
261
|
EstimatedDeliveryDatePlus,
|
|
@@ -28,7 +28,6 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
28
28
|
const imageWidth = makeStyleResponsive('w', getWidthByShapeGlobalSize(shape));
|
|
29
29
|
const imageHeight = makeStyleResponsive('h', getHeightByShapeGlobalSize(shape));
|
|
30
30
|
const imageFlexGrowClass = getFlexGrowClassByShapeGlobalSize(shape);
|
|
31
|
-
const testCLass = pageContext?.enableLazyLoadImage ? 'has_class' : 'do_not_have_class';
|
|
32
31
|
return template`<div
|
|
33
32
|
${{
|
|
34
33
|
...builderAttrs
|
|
@@ -42,7 +41,6 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
42
41
|
...style,
|
|
43
42
|
...makeStyleResponsive('ta', styles?.align)
|
|
44
43
|
}}"
|
|
45
|
-
data-class="${testCLass}"
|
|
46
44
|
>
|
|
47
45
|
<${WrapLink}
|
|
48
46
|
class="pointer-events-auto gp-h-full gp-flex"
|
|
@@ -31,6 +31,9 @@ const getSrcSetLink = (link)=>{
|
|
|
31
31
|
return link; // Since image src didn't change in size so this line of code is pointless
|
|
32
32
|
// return `${link} 768w,${link} 1024w,${link} 1440w`;
|
|
33
33
|
};
|
|
34
|
+
const isShopifyCDNImage = (assetUrl)=>{
|
|
35
|
+
return assetUrl && assetUrl?.startsWith('https://cdn.shopify.com/');
|
|
36
|
+
};
|
|
34
37
|
const getImageSrc = (image, currentDevice)=>{
|
|
35
38
|
let src = image?.backupFilePath ?? image?.src;
|
|
36
39
|
if (image?.backupFileKey) {
|
|
@@ -41,7 +44,7 @@ const getImageSrc = (image, currentDevice)=>{
|
|
|
41
44
|
src = `{{ "${replaceBackupFileKeyFileContent(newBackupFileKey)}" | file_url }}`;
|
|
42
45
|
}
|
|
43
46
|
}
|
|
44
|
-
if (currentDevice && src
|
|
47
|
+
if (currentDevice && isShopifyCDNImage(src)) {
|
|
45
48
|
switch(currentDevice){
|
|
46
49
|
case 'tablet':
|
|
47
50
|
src = src?.replace(regexReplaceEndDot, `_1024x.`);
|
package/dist/esm/index.js
CHANGED
|
@@ -220,7 +220,6 @@ export { default as HextomFreeShippingBar } from './third-party/components/Hexto
|
|
|
220
220
|
export { default as EcoboostifyShoppableReelUgc } from './third-party/components/EcoboostifyShoppableReelUgc.js';
|
|
221
221
|
export { default as AppstleBundlesDiscounts } from './third-party/components/AppstleBundlesDiscounts.js';
|
|
222
222
|
export { default as EcomsendBackInStockAlert } from './third-party/components/EcomsendBackInStockAlert.js';
|
|
223
|
-
export { default as AovFreeGiftBuyXGetYBogo } from './third-party/components/AovFreeGiftBuyXGetYBogo.js';
|
|
224
223
|
export { default as thirdPartyInstantSetting } from './third-party-instant/setting/index.js';
|
|
225
224
|
export { default as InstantJudgemeReviews } from './third-party-instant/components/InstantJudgemeReviews.js';
|
|
226
225
|
export { default as InstantLooxReviews } from './third-party-instant/components/InstantLooxReviews.js';
|
package/dist/esm/index.liquid.js
CHANGED
|
@@ -175,7 +175,6 @@ export { default as HextomFreeShippingBar } from './third-party/components/Hexto
|
|
|
175
175
|
export { default as EcoboostifyShoppableReelUgc } from './third-party/components/EcoboostifyShoppableReelUgc.liquid.js';
|
|
176
176
|
export { default as AppstleBundlesDiscounts } from './third-party/components/AppstleBundlesDiscounts.liquid.js';
|
|
177
177
|
export { default as EcomsendBackInStockAlert } from './third-party/components/EcomsendBackInStockAlert.liquid.js';
|
|
178
|
-
export { default as AovFreeGiftBuyXGetYBogo } from './third-party/components/AovFreeGiftBuyXGetYBogo.liquid.js';
|
|
179
178
|
export { default as ImageComparison } from './image-comparison/components/ImageComparison.liquid.js';
|
|
180
179
|
export { default as ThirdPartySlot } from './third-party-slot/components/ThirdPartySlot.liquid.js';
|
|
181
180
|
export { default as Sticky } from './sticky/components/Sticky.liquid.js';
|
|
@@ -65,7 +65,7 @@ const Button = ({ styles, builderAttrs, style, setting, advanced, builderProps,
|
|
|
65
65
|
text
|
|
66
66
|
},
|
|
67
67
|
textClassWrapper: "gp-leading-[15px] gp-w-fit",
|
|
68
|
-
textClass: `!gp-inline-flex gp-py-[8px] ${mode === 'edit' ? 'button-text' : ''}`,
|
|
68
|
+
textClass: `!gp-inline-flex gp-py-[8px] gp-leading-[1.3] ${mode === 'edit' ? 'button-text' : ''}`,
|
|
69
69
|
styles: {
|
|
70
70
|
typo: {
|
|
71
71
|
...typo,
|
|
@@ -9,9 +9,7 @@ const mapWidgetLabel = {
|
|
|
9
9
|
slider: 'Gift slider',
|
|
10
10
|
message: 'Cart message',
|
|
11
11
|
['classic-bundle']: 'Classic bundle',
|
|
12
|
-
['quantity-break']: 'Quantity break'
|
|
13
|
-
'mix-match': 'Mix and match',
|
|
14
|
-
fbt: 'Frequently Bought Together'
|
|
12
|
+
['quantity-break']: 'Quantity break'
|
|
15
13
|
};
|
|
16
14
|
const BogosSampleContent = ({ setting })=>{
|
|
17
15
|
const widgetLabel = setting?.widgetType && mapWidgetLabel[setting.widgetType];
|
|
@@ -25,8 +25,6 @@ const Bogos = ({ setting, advanced })=>{
|
|
|
25
25
|
<div class="bogos-integration-page-builder-quantity-break"></div>
|
|
26
26
|
{% when "mix-match" %}
|
|
27
27
|
<div class="bogos-integration-page-builder-mix-match"></div>
|
|
28
|
-
{% when "fbt" %}
|
|
29
|
-
<div class="bogos-integration-page-builder-fbt-upsell"></div>
|
|
30
28
|
{% endcase %}
|
|
31
29
|
</div>
|
|
32
30
|
`;
|
|
@@ -2,10 +2,6 @@ import dynamic from 'next/dynamic';
|
|
|
2
2
|
import Loading from '../common/components/Loading.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
|
|
5
|
-
const AovFreeGiftBuyXGetYBogo = dynamic(()=>import('./components/AovFreeGiftBuyXGetYBogo.js'), {
|
|
6
|
-
ssr: false,
|
|
7
|
-
loading: Loading
|
|
8
|
-
});
|
|
9
5
|
const AppstleBundlesDiscounts = dynamic(()=>import('./components/AppstleBundlesDiscounts.js'), {
|
|
10
6
|
ssr: false,
|
|
11
7
|
loading: Loading
|
|
@@ -471,7 +467,6 @@ const EcoboostifyShoppableReelUgc = dynamic(()=>import('./components/Ecoboostify
|
|
|
471
467
|
loading: Loading
|
|
472
468
|
});
|
|
473
469
|
var thirdParty = {
|
|
474
|
-
AovFreeGiftBuyXGetYBogo,
|
|
475
470
|
AppstleBundlesDiscounts,
|
|
476
471
|
EcomsendBackInStockAlert,
|
|
477
472
|
EcoboostifyShoppableReelUgc,
|
|
@@ -50,17 +50,17 @@ const config = {
|
|
|
50
50
|
type: 'select',
|
|
51
51
|
options: [
|
|
52
52
|
{
|
|
53
|
-
label: '
|
|
54
|
-
value: 'lb-upsell-
|
|
53
|
+
label: 'FBT List',
|
|
54
|
+
value: 'lb-upsell-widget-bl',
|
|
55
55
|
maxOption: 1
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
label: '
|
|
59
|
-
value: 'lb-upsell-
|
|
58
|
+
label: 'Add-ons List',
|
|
59
|
+
value: 'lb-upsell-widget-pal',
|
|
60
60
|
maxOption: 1
|
|
61
61
|
}
|
|
62
62
|
],
|
|
63
|
-
default: 'lb-upsell-
|
|
63
|
+
default: 'lb-upsell-widget-bl'
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
id: 'install',
|