@gem-sdk/components 2.6.0-staging.25 → 2.6.0-staging.27
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 +2 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.liquid.js +2 -0
- package/dist/cjs/third-party/components/AovFreeGiftBuyXGetYBogo.js +38 -0
- package/dist/cjs/third-party/components/AovFreeGiftBuyXGetYBogo.liquid.js +12 -0
- package/dist/cjs/third-party/next.js +5 -0
- package/dist/cjs/third-party/setting/AovFreeGiftBuyXGetYBogo.js +131 -0
- package/dist/cjs/third-party/setting/index.js +2 -0
- package/dist/cjs/third-party-instant/components/InstantJudgemeReviews.js +30 -14
- package/dist/cjs/third-party-instant/types/JudgemeReviews.js +4 -0
- package/dist/esm/builder.js +2 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.liquid.js +1 -0
- package/dist/esm/third-party/components/AovFreeGiftBuyXGetYBogo.js +33 -0
- package/dist/esm/third-party/components/AovFreeGiftBuyXGetYBogo.liquid.js +8 -0
- package/dist/esm/third-party/next.js +5 -0
- package/dist/esm/third-party/setting/AovFreeGiftBuyXGetYBogo.js +127 -0
- package/dist/esm/third-party/setting/index.js +234 -232
- package/dist/esm/third-party-instant/components/InstantJudgemeReviews.js +32 -16
- package/dist/esm/third-party-instant/types/JudgemeReviews.js +3 -1
- package/dist/types/index.d.ts +17 -1
- package/package.json +2 -2
package/dist/cjs/builder.js
CHANGED
|
@@ -63,6 +63,7 @@ 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');
|
|
66
67
|
var JudgemeReviews = require('./third-party/components/JudgemeReviews.js');
|
|
67
68
|
var LooxReviews = require('./third-party/components/LooxReviews.js');
|
|
68
69
|
var Klaviyo = require('./third-party/components/Klaviyo.js');
|
|
@@ -260,6 +261,7 @@ var PostPurchaseCountdownTimer = require('./post-purchase/countdown-timer/compon
|
|
|
260
261
|
var Text$1 = require('./post-purchase/text/Text.js');
|
|
261
262
|
|
|
262
263
|
var builder = {
|
|
264
|
+
AovFreeGiftBuyXGetYBogo: AovFreeGiftBuyXGetYBogo.default,
|
|
263
265
|
AppstleBundlesDiscounts: AppstleBundlesDiscounts.default,
|
|
264
266
|
EcomsendBackInStockAlert: EcomsendBackInStockAlert.default,
|
|
265
267
|
EstimatedDeliveryDatePlus: EstimatedDeliveryDatePlus.default,
|
package/dist/cjs/index.js
CHANGED
|
@@ -222,6 +222,7 @@ 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');
|
|
225
226
|
var index$x = require('./third-party-instant/setting/index.js');
|
|
226
227
|
var InstantJudgemeReviews = require('./third-party-instant/components/InstantJudgemeReviews.js');
|
|
227
228
|
var InstantLooxReviews = require('./third-party-instant/components/InstantLooxReviews.js');
|
|
@@ -540,6 +541,7 @@ exports.HextomFreeShippingBar = HextomFreeShippingBar.default;
|
|
|
540
541
|
exports.EcoboostifyShoppableReelUgc = EcoboostifyShoppableReelUgc.default;
|
|
541
542
|
exports.AppstleBundlesDiscounts = AppstleBundlesDiscounts.default;
|
|
542
543
|
exports.EcomsendBackInStockAlert = EcomsendBackInStockAlert.default;
|
|
544
|
+
exports.AovFreeGiftBuyXGetYBogo = AovFreeGiftBuyXGetYBogo.default;
|
|
543
545
|
exports.thirdPartyInstantSetting = index$x.default;
|
|
544
546
|
exports.InstantJudgemeReviews = InstantJudgemeReviews.default;
|
|
545
547
|
exports.InstantLooxReviews = InstantLooxReviews.default;
|
package/dist/cjs/index.liquid.js
CHANGED
|
@@ -177,6 +177,7 @@ 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');
|
|
180
181
|
var ImageComparison_liquid = require('./image-comparison/components/ImageComparison.liquid.js');
|
|
181
182
|
var ThirdPartySlot_liquid = require('./third-party-slot/components/ThirdPartySlot.liquid.js');
|
|
182
183
|
var Sticky_liquid = require('./sticky/components/Sticky.liquid.js');
|
|
@@ -376,6 +377,7 @@ exports.HextomFreeShippingBar = HextomFreeShippingBar_liquid.default;
|
|
|
376
377
|
exports.EcoboostifyShoppableReelUgc = EcoboostifyShoppableReelUgc_liquid.default;
|
|
377
378
|
exports.AppstleBundlesDiscounts = AppstleBundlesDiscounts_liquid.default;
|
|
378
379
|
exports.EcomsendBackInStockAlert = EcomsendBackInStockAlert_liquid.default;
|
|
380
|
+
exports.AovFreeGiftBuyXGetYBogo = AovFreeGiftBuyXGetYBogo_liquid.default;
|
|
379
381
|
exports.ImageComparison = ImageComparison_liquid.default;
|
|
380
382
|
exports.ThirdPartySlot = ThirdPartySlot_liquid.default;
|
|
381
383
|
exports.Sticky = Sticky_liquid.default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var core = require('@gem-sdk/core');
|
|
7
|
+
var ThirdPartyPreview = require('./ThirdPartyPreview.js');
|
|
8
|
+
|
|
9
|
+
const AppConfig = {
|
|
10
|
+
id: 'aov-free-gift-buy-x-get-y-bogo',
|
|
11
|
+
label: 'AOV Free Gift Buy X Get Y BOGO',
|
|
12
|
+
logoUrl: 'https://cdn.shopify.com/app-store/listing_images/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png',
|
|
13
|
+
tag: 'AovFreeGiftBuyXGetYBogo'
|
|
14
|
+
};
|
|
15
|
+
const AovFreeGiftBuyXGetYBogoContent = ()=>{
|
|
16
|
+
return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
17
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
18
|
+
className: "gp-p-2",
|
|
19
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(ThirdPartyPreview.default, {
|
|
20
|
+
setting: {
|
|
21
|
+
label: 'AOV Free Gift Buy X Get Y BOGO',
|
|
22
|
+
iconSvg: `<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${AppConfig.logoUrl}">`
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
const AovFreeGiftBuyXGetYBogo = ({ setting })=>{
|
|
29
|
+
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
30
|
+
style: {
|
|
31
|
+
...core.makeStyleResponsive('ta', setting?.align)
|
|
32
|
+
},
|
|
33
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(AovFreeGiftBuyXGetYBogoContent, {})
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
exports.AppConfig = AppConfig;
|
|
38
|
+
exports.default = AovFreeGiftBuyXGetYBogo;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var thirdParty = require('../helpers/thirdParty.js');
|
|
6
|
+
|
|
7
|
+
const AovFreeGiftBuyXGetYBogo = ({ setting, advanced })=>{
|
|
8
|
+
const { align, appBlockId } = setting ?? {};
|
|
9
|
+
return thirdParty.getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''}!gp-block [&_*]:gp-max-w-none`);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.default = AovFreeGiftBuyXGetYBogo;
|
|
@@ -6,6 +6,10 @@ 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
|
+
});
|
|
9
13
|
const AppstleBundlesDiscounts = dynamic(()=>Promise.resolve().then(function () { return require('./components/AppstleBundlesDiscounts.js'); }), {
|
|
10
14
|
ssr: false,
|
|
11
15
|
loading: Loading.default
|
|
@@ -471,6 +475,7 @@ const EcoboostifyShoppableReelUgc = dynamic(()=>Promise.resolve().then(function
|
|
|
471
475
|
loading: Loading.default
|
|
472
476
|
});
|
|
473
477
|
var thirdParty = {
|
|
478
|
+
AovFreeGiftBuyXGetYBogo,
|
|
474
479
|
AppstleBundlesDiscounts,
|
|
475
480
|
EcomsendBackInStockAlert,
|
|
476
481
|
EcoboostifyShoppableReelUgc,
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var AovFreeGiftBuyXGetYBogo = require('../components/AovFreeGiftBuyXGetYBogo.js');
|
|
6
|
+
|
|
7
|
+
const config = {
|
|
8
|
+
tag: AovFreeGiftBuyXGetYBogo.AppConfig.tag,
|
|
9
|
+
label: AovFreeGiftBuyXGetYBogo.AppConfig.label,
|
|
10
|
+
icon: '<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png">',
|
|
11
|
+
editorConfigs: {
|
|
12
|
+
placeholder: {
|
|
13
|
+
flowPage: 'GP_PRODUCT'
|
|
14
|
+
},
|
|
15
|
+
component: {
|
|
16
|
+
isThirdParty: true
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
presets: [
|
|
20
|
+
{
|
|
21
|
+
id: AovFreeGiftBuyXGetYBogo.AppConfig.id,
|
|
22
|
+
name: {
|
|
23
|
+
en: AovFreeGiftBuyXGetYBogo.AppConfig.label
|
|
24
|
+
},
|
|
25
|
+
hideTextContent: true,
|
|
26
|
+
icon: {
|
|
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/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png">
|
|
29
|
+
<span class="preset-item-title">AOV Free Gift Buy X Get Y BOGO</span>
|
|
30
|
+
</div>`
|
|
31
|
+
},
|
|
32
|
+
components: [
|
|
33
|
+
{
|
|
34
|
+
tag: AovFreeGiftBuyXGetYBogo.AppConfig.tag
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
settings: [
|
|
40
|
+
{
|
|
41
|
+
id: 'setting',
|
|
42
|
+
controls: [
|
|
43
|
+
{
|
|
44
|
+
id: 'appBlockId',
|
|
45
|
+
type: 'input',
|
|
46
|
+
default: ''
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 'widgetType',
|
|
50
|
+
label: 'Choose widget',
|
|
51
|
+
type: 'select',
|
|
52
|
+
options: [
|
|
53
|
+
{
|
|
54
|
+
label: 'Avada Promotion Card',
|
|
55
|
+
value: 'avada-promotion-card'
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
default: 'avada-promotion-card'
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: 'install',
|
|
62
|
+
type: 'open-link',
|
|
63
|
+
target: '_blank',
|
|
64
|
+
linkType: 'install',
|
|
65
|
+
href: 'https://apps.shopify.com/avada-upsell?utm_source=gempages',
|
|
66
|
+
appName: AovFreeGiftBuyXGetYBogo.AppConfig.label
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 'openApp',
|
|
70
|
+
type: 'open-link',
|
|
71
|
+
target: '_blank',
|
|
72
|
+
linkType: 'openApp',
|
|
73
|
+
href: 'https://admin.shopify.com/?redirect=/apps/avada-upsell',
|
|
74
|
+
appName: AovFreeGiftBuyXGetYBogo.AppConfig.label
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 'align',
|
|
78
|
+
label: 'Alignment',
|
|
79
|
+
type: 'segment',
|
|
80
|
+
options: [
|
|
81
|
+
{
|
|
82
|
+
label: 'Left',
|
|
83
|
+
value: 'left',
|
|
84
|
+
type: 'align'
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: 'Center',
|
|
88
|
+
value: 'center',
|
|
89
|
+
type: 'align'
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: 'Right',
|
|
93
|
+
value: 'right',
|
|
94
|
+
type: 'align'
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
devices: {
|
|
98
|
+
desktop: {
|
|
99
|
+
default: 'left'
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
ui: [
|
|
107
|
+
{
|
|
108
|
+
type: 'control',
|
|
109
|
+
setting: {
|
|
110
|
+
id: 'install'
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
type: 'control',
|
|
115
|
+
setting: {
|
|
116
|
+
id: 'openApp'
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
type: 'control',
|
|
121
|
+
label: {
|
|
122
|
+
en: 'Align'
|
|
123
|
+
},
|
|
124
|
+
setting: {
|
|
125
|
+
id: 'align'
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
exports.default = config;
|
|
@@ -118,8 +118,10 @@ 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');
|
|
121
122
|
|
|
122
123
|
var index = {
|
|
124
|
+
AovFreeGiftBuyXGetYBogo: AovFreeGiftBuyXGetYBogo.default,
|
|
123
125
|
HextomCountdownTimerBar: HextomCountdownTimerBar.default,
|
|
124
126
|
EstimatedDeliveryDatePlus: EstimatedDeliveryDatePlus.default,
|
|
125
127
|
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();
|
|
14
15
|
const { storefrontUrl } = core.useStoreFront();
|
|
15
16
|
const SHOPIFY_DOMAIN = storefrontUrl?.replace('https://', '')?.replace('http://', '')?.split('/')?.[0];
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return existing;
|
|
20
|
-
} else {
|
|
17
|
+
const addScripts = (scripts)=>{
|
|
18
|
+
scripts.forEach(([id, src])=>{
|
|
19
|
+
if (document.getElementById(id)) return;
|
|
21
20
|
const script = document.createElement('script');
|
|
22
|
-
script
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
Object.assign(script, {
|
|
22
|
+
id,
|
|
23
|
+
src,
|
|
24
|
+
defer: true,
|
|
25
|
+
type: 'text/javascript'
|
|
26
|
+
});
|
|
26
27
|
script.setAttribute('data-cfasync', 'false');
|
|
27
28
|
document.head.appendChild(script);
|
|
28
|
-
|
|
29
|
-
}
|
|
29
|
+
});
|
|
30
30
|
};
|
|
31
31
|
const addTextScript = React.useCallback((id, public_token)=>{
|
|
32
32
|
if (SHOPIFY_DOMAIN && public_token) {
|
|
@@ -47,9 +47,25 @@ const InstantJudgemeReviews = ({ setting, styles, builderProps })=>{
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
React.useEffect(()=>{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
if (mode !== 'edit') {
|
|
51
|
+
addScripts([
|
|
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
|
+
]);
|
|
53
69
|
React.useEffect(()=>{
|
|
54
70
|
if (publicToken) {
|
|
55
71
|
removeScript(JudgemeReviews.JUDGEME_REVIEWS_PUBLIC_TOKEN_JS_ID);
|
|
@@ -2,7 +2,9 @@
|
|
|
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';
|
|
5
6
|
const JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_ID = 'judge_widget_preloader';
|
|
7
|
+
const JUDGEME_REVIEWS_WIDGET_PRELOADER_JS_I_V2 = 'judge_widget_preloader_v2';
|
|
6
8
|
const JUDGEME_REVIEWS_INSTALLED_JS_ID = 'judge_installed';
|
|
7
9
|
const JUDGEME_REVIEWS_PUBLIC_TOKEN_JS_ID = 'judge_public_token';
|
|
8
10
|
|
|
@@ -10,4 +12,6 @@ exports.JUDGEME_REVIEWS_INSTALLED_JS_ID = JUDGEME_REVIEWS_INSTALLED_JS_ID;
|
|
|
10
12
|
exports.JUDGEME_REVIEWS_INSTALLED_JS_URL = JUDGEME_REVIEWS_INSTALLED_JS_URL;
|
|
11
13
|
exports.JUDGEME_REVIEWS_PUBLIC_TOKEN_JS_ID = JUDGEME_REVIEWS_PUBLIC_TOKEN_JS_ID;
|
|
12
14
|
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;
|
|
13
16
|
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,6 +59,7 @@ 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';
|
|
62
63
|
import JudgemeReviews from './third-party/components/JudgemeReviews.js';
|
|
63
64
|
import LooxReviews from './third-party/components/LooxReviews.js';
|
|
64
65
|
import Klaviyo from './third-party/components/Klaviyo.js';
|
|
@@ -256,6 +257,7 @@ import PostPurchaseCountdownTimer from './post-purchase/countdown-timer/componen
|
|
|
256
257
|
import Text$1 from './post-purchase/text/Text.js';
|
|
257
258
|
|
|
258
259
|
var builder = {
|
|
260
|
+
AovFreeGiftBuyXGetYBogo,
|
|
259
261
|
AppstleBundlesDiscounts,
|
|
260
262
|
EcomsendBackInStockAlert,
|
|
261
263
|
EstimatedDeliveryDatePlus,
|
package/dist/esm/index.js
CHANGED
|
@@ -220,6 +220,7 @@ 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';
|
|
223
224
|
export { default as thirdPartyInstantSetting } from './third-party-instant/setting/index.js';
|
|
224
225
|
export { default as InstantJudgemeReviews } from './third-party-instant/components/InstantJudgemeReviews.js';
|
|
225
226
|
export { default as InstantLooxReviews } from './third-party-instant/components/InstantLooxReviews.js';
|
package/dist/esm/index.liquid.js
CHANGED
|
@@ -175,6 +175,7 @@ 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';
|
|
178
179
|
export { default as ImageComparison } from './image-comparison/components/ImageComparison.liquid.js';
|
|
179
180
|
export { default as ThirdPartySlot } from './third-party-slot/components/ThirdPartySlot.liquid.js';
|
|
180
181
|
export { default as Sticky } from './sticky/components/Sticky.liquid.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { makeStyleResponsive } from '@gem-sdk/core';
|
|
3
|
+
import ThirdPartyPreview from './ThirdPartyPreview.js';
|
|
4
|
+
|
|
5
|
+
const AppConfig = {
|
|
6
|
+
id: 'aov-free-gift-buy-x-get-y-bogo',
|
|
7
|
+
label: 'AOV Free Gift Buy X Get Y BOGO',
|
|
8
|
+
logoUrl: 'https://cdn.shopify.com/app-store/listing_images/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png',
|
|
9
|
+
tag: 'AovFreeGiftBuyXGetYBogo'
|
|
10
|
+
};
|
|
11
|
+
const AovFreeGiftBuyXGetYBogoContent = ()=>{
|
|
12
|
+
return /*#__PURE__*/ jsx(Fragment, {
|
|
13
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
14
|
+
className: "gp-p-2",
|
|
15
|
+
children: /*#__PURE__*/ jsx(ThirdPartyPreview, {
|
|
16
|
+
setting: {
|
|
17
|
+
label: 'AOV Free Gift Buy X Get Y BOGO',
|
|
18
|
+
iconSvg: `<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${AppConfig.logoUrl}">`
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
const AovFreeGiftBuyXGetYBogo = ({ setting })=>{
|
|
25
|
+
return /*#__PURE__*/ jsx("div", {
|
|
26
|
+
style: {
|
|
27
|
+
...makeStyleResponsive('ta', setting?.align)
|
|
28
|
+
},
|
|
29
|
+
children: /*#__PURE__*/ jsx(AovFreeGiftBuyXGetYBogoContent, {})
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { AppConfig, AovFreeGiftBuyXGetYBogo as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getLiquidForAppBlock } from '../helpers/thirdParty.js';
|
|
2
|
+
|
|
3
|
+
const AovFreeGiftBuyXGetYBogo = ({ setting, advanced })=>{
|
|
4
|
+
const { align, appBlockId } = setting ?? {};
|
|
5
|
+
return getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''}!gp-block [&_*]:gp-max-w-none`);
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { AovFreeGiftBuyXGetYBogo as default };
|
|
@@ -2,6 +2,10 @@ 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
|
+
});
|
|
5
9
|
const AppstleBundlesDiscounts = dynamic(()=>import('./components/AppstleBundlesDiscounts.js'), {
|
|
6
10
|
ssr: false,
|
|
7
11
|
loading: Loading
|
|
@@ -467,6 +471,7 @@ const EcoboostifyShoppableReelUgc = dynamic(()=>import('./components/Ecoboostify
|
|
|
467
471
|
loading: Loading
|
|
468
472
|
});
|
|
469
473
|
var thirdParty = {
|
|
474
|
+
AovFreeGiftBuyXGetYBogo,
|
|
470
475
|
AppstleBundlesDiscounts,
|
|
471
476
|
EcomsendBackInStockAlert,
|
|
472
477
|
EcoboostifyShoppableReelUgc,
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { AppConfig } from '../components/AovFreeGiftBuyXGetYBogo.js';
|
|
2
|
+
|
|
3
|
+
const config = {
|
|
4
|
+
tag: AppConfig.tag,
|
|
5
|
+
label: AppConfig.label,
|
|
6
|
+
icon: '<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png">',
|
|
7
|
+
editorConfigs: {
|
|
8
|
+
placeholder: {
|
|
9
|
+
flowPage: 'GP_PRODUCT'
|
|
10
|
+
},
|
|
11
|
+
component: {
|
|
12
|
+
isThirdParty: true
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
presets: [
|
|
16
|
+
{
|
|
17
|
+
id: AppConfig.id,
|
|
18
|
+
name: {
|
|
19
|
+
en: AppConfig.label
|
|
20
|
+
},
|
|
21
|
+
hideTextContent: true,
|
|
22
|
+
icon: {
|
|
23
|
+
desktop: `<div class="w-full flex flex-col items-center">
|
|
24
|
+
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png">
|
|
25
|
+
<span class="preset-item-title">AOV Free Gift Buy X Get Y BOGO</span>
|
|
26
|
+
</div>`
|
|
27
|
+
},
|
|
28
|
+
components: [
|
|
29
|
+
{
|
|
30
|
+
tag: AppConfig.tag
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
settings: [
|
|
36
|
+
{
|
|
37
|
+
id: 'setting',
|
|
38
|
+
controls: [
|
|
39
|
+
{
|
|
40
|
+
id: 'appBlockId',
|
|
41
|
+
type: 'input',
|
|
42
|
+
default: ''
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 'widgetType',
|
|
46
|
+
label: 'Choose widget',
|
|
47
|
+
type: 'select',
|
|
48
|
+
options: [
|
|
49
|
+
{
|
|
50
|
+
label: 'Avada Promotion Card',
|
|
51
|
+
value: 'avada-promotion-card'
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
default: 'avada-promotion-card'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 'install',
|
|
58
|
+
type: 'open-link',
|
|
59
|
+
target: '_blank',
|
|
60
|
+
linkType: 'install',
|
|
61
|
+
href: 'https://apps.shopify.com/avada-upsell?utm_source=gempages',
|
|
62
|
+
appName: AppConfig.label
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: 'openApp',
|
|
66
|
+
type: 'open-link',
|
|
67
|
+
target: '_blank',
|
|
68
|
+
linkType: 'openApp',
|
|
69
|
+
href: 'https://admin.shopify.com/?redirect=/apps/avada-upsell',
|
|
70
|
+
appName: AppConfig.label
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 'align',
|
|
74
|
+
label: 'Alignment',
|
|
75
|
+
type: 'segment',
|
|
76
|
+
options: [
|
|
77
|
+
{
|
|
78
|
+
label: 'Left',
|
|
79
|
+
value: 'left',
|
|
80
|
+
type: 'align'
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: 'Center',
|
|
84
|
+
value: 'center',
|
|
85
|
+
type: 'align'
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
label: 'Right',
|
|
89
|
+
value: 'right',
|
|
90
|
+
type: 'align'
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
devices: {
|
|
94
|
+
desktop: {
|
|
95
|
+
default: 'left'
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
ui: [
|
|
103
|
+
{
|
|
104
|
+
type: 'control',
|
|
105
|
+
setting: {
|
|
106
|
+
id: 'install'
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
type: 'control',
|
|
111
|
+
setting: {
|
|
112
|
+
id: 'openApp'
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
type: 'control',
|
|
117
|
+
label: {
|
|
118
|
+
en: 'Align'
|
|
119
|
+
},
|
|
120
|
+
setting: {
|
|
121
|
+
id: 'align'
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export { config as default };
|