@gem-sdk/components 2.0.0-staging.164 → 2.0.0-staging.165
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 +4 -0
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/index.liquid.js +4 -0
- package/dist/cjs/post-purchase/product/components/ProductPriceBreakdown.js +1 -1
- package/dist/cjs/third-party/components/EstimatedDeliveryDatePlus.js +33 -0
- package/dist/cjs/third-party/components/EstimatedDeliveryDatePlus.liquid.js +12 -0
- package/dist/cjs/third-party/components/OkendoReviewsLoyalty.js +33 -0
- package/dist/cjs/third-party/components/OkendoReviewsLoyalty.liquid.js +12 -0
- package/dist/cjs/third-party/configs/EstimatedDeliveryDatePlus.js +12 -0
- package/dist/cjs/third-party/configs/OkendoReviewsLoyalty.js +12 -0
- package/dist/cjs/third-party/next.js +10 -0
- package/dist/cjs/third-party/setting/EstimatedDeliveryDatePlus.js +128 -0
- package/dist/cjs/third-party/setting/OkendoReviewsLoyalty.js +171 -0
- package/dist/cjs/third-party/setting/index.js +4 -0
- package/dist/esm/builder.js +4 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.liquid.js +2 -0
- package/dist/esm/post-purchase/product/components/ProductPriceBreakdown.js +1 -1
- package/dist/esm/third-party/components/EstimatedDeliveryDatePlus.js +29 -0
- package/dist/esm/third-party/components/EstimatedDeliveryDatePlus.liquid.js +8 -0
- package/dist/esm/third-party/components/OkendoReviewsLoyalty.js +29 -0
- package/dist/esm/third-party/components/OkendoReviewsLoyalty.liquid.js +8 -0
- package/dist/esm/third-party/configs/EstimatedDeliveryDatePlus.js +8 -0
- package/dist/esm/third-party/configs/OkendoReviewsLoyalty.js +8 -0
- package/dist/esm/third-party/next.js +10 -0
- package/dist/esm/third-party/setting/EstimatedDeliveryDatePlus.js +124 -0
- package/dist/esm/third-party/setting/OkendoReviewsLoyalty.js +167 -0
- package/dist/esm/third-party/setting/index.js +210 -206
- package/dist/types/index.d.ts +36 -1
- package/package.json +2 -2
package/dist/cjs/builder.js
CHANGED
|
@@ -114,6 +114,8 @@ var TrustshopProductReviews = require('./third-party/components/TrustshopProduct
|
|
|
114
114
|
var StellarDeliveryDatePickup = require('./third-party/components/StellarDeliveryDatePickup.js');
|
|
115
115
|
var EssentialCountdownTimerBar = require('./third-party/components/EssentialCountdownTimerBar.js');
|
|
116
116
|
var EssentialAnnouncementBar = require('./third-party/components/EssentialAnnouncementBar.js');
|
|
117
|
+
var OkendoReviewsLoyalty = require('./third-party/components/OkendoReviewsLoyalty.js');
|
|
118
|
+
var EstimatedDeliveryDatePlus = require('./third-party/components/EstimatedDeliveryDatePlus.js');
|
|
117
119
|
var CartLineVariant = require('./cart/components/CartLineVariant.js');
|
|
118
120
|
var Cart = require('./cart/components/Cart.js');
|
|
119
121
|
var CartList = require('./cart/components/CartList.js');
|
|
@@ -250,6 +252,8 @@ var PostPurchaseLink = require('./post-purchase/link/components/PostPurchaseLink
|
|
|
250
252
|
var Text$1 = require('./post-purchase/text/Text.js');
|
|
251
253
|
|
|
252
254
|
var builder = {
|
|
255
|
+
EstimatedDeliveryDatePlus: EstimatedDeliveryDatePlus.default,
|
|
256
|
+
OkendoReviewsLoyalty: OkendoReviewsLoyalty.default,
|
|
253
257
|
EssentialAnnouncementBar: EssentialAnnouncementBar.default,
|
|
254
258
|
EssentialCountdownTimerBar: EssentialCountdownTimerBar.default,
|
|
255
259
|
StellarDeliveryDatePickup: StellarDeliveryDatePickup.default,
|
package/dist/cjs/index.js
CHANGED
|
@@ -209,6 +209,8 @@ var TrustshopProductReviews = require('./third-party/components/TrustshopProduct
|
|
|
209
209
|
var StellarDeliveryDatePickup = require('./third-party/components/StellarDeliveryDatePickup.js');
|
|
210
210
|
var EssentialCountdownTimerBar = require('./third-party/components/EssentialCountdownTimerBar.js');
|
|
211
211
|
var EssentialAnnouncementBar = require('./third-party/components/EssentialAnnouncementBar.js');
|
|
212
|
+
var OkendoReviewsLoyalty = require('./third-party/components/OkendoReviewsLoyalty.js');
|
|
213
|
+
var EstimatedDeliveryDatePlus = require('./third-party/components/EstimatedDeliveryDatePlus.js');
|
|
212
214
|
var index$x = require('./third-party-instant/setting/index.js');
|
|
213
215
|
var InstantJudgemeReviews = require('./third-party-instant/components/InstantJudgemeReviews.js');
|
|
214
216
|
var InstantLooxReviews = require('./third-party-instant/components/InstantLooxReviews.js');
|
|
@@ -520,6 +522,8 @@ exports.TrustshopProductReviews = TrustshopProductReviews.default;
|
|
|
520
522
|
exports.StellarDeliveryDatePickup = StellarDeliveryDatePickup.default;
|
|
521
523
|
exports.EssentialCountdownTimerBar = EssentialCountdownTimerBar.default;
|
|
522
524
|
exports.EssentialAnnouncementBar = EssentialAnnouncementBar.default;
|
|
525
|
+
exports.OkendoReviewsLoyalty = OkendoReviewsLoyalty.default;
|
|
526
|
+
exports.EstimatedDeliveryDatePlus = EstimatedDeliveryDatePlus.default;
|
|
523
527
|
exports.thirdPartyInstantSetting = index$x.default;
|
|
524
528
|
exports.InstantJudgemeReviews = InstantJudgemeReviews.default;
|
|
525
529
|
exports.InstantLooxReviews = InstantLooxReviews.default;
|
package/dist/cjs/index.liquid.js
CHANGED
|
@@ -163,6 +163,8 @@ var MyappgurusProductReviews_liquid = require('./third-party/components/Myappgur
|
|
|
163
163
|
var HulkProductOptions_liquid = require('./third-party/components/HulkProductOptions.liquid.js');
|
|
164
164
|
var EssentialCountdownTimerBar_liquid = require('./third-party/components/EssentialCountdownTimerBar.liquid.js');
|
|
165
165
|
var EssentialAnnouncementBar_liquid = require('./third-party/components/EssentialAnnouncementBar.liquid.js');
|
|
166
|
+
var OkendoReviewsLoyalty_liquid = require('./third-party/components/OkendoReviewsLoyalty.liquid.js');
|
|
167
|
+
var EstimatedDeliveryDatePlus_liquid = require('./third-party/components/EstimatedDeliveryDatePlus.liquid.js');
|
|
166
168
|
var TrustshopProductReviews_liquid = require('./third-party/components/TrustshopProductReviews.liquid.js');
|
|
167
169
|
var StellarDeliveryDatePickup_liquid = require('./third-party/components/StellarDeliveryDatePickup.liquid.js');
|
|
168
170
|
var ImageComparison_liquid = require('./image-comparison/components/ImageComparison.liquid.js');
|
|
@@ -350,6 +352,8 @@ exports.MyappgurusProductReviews = MyappgurusProductReviews_liquid.default;
|
|
|
350
352
|
exports.HulkProductOptions = HulkProductOptions_liquid.default;
|
|
351
353
|
exports.EssentialCountdownTimerBar = EssentialCountdownTimerBar_liquid.default;
|
|
352
354
|
exports.EssentialAnnouncementBar = EssentialAnnouncementBar_liquid.default;
|
|
355
|
+
exports.OkendoReviewsLoyalty = OkendoReviewsLoyalty_liquid.default;
|
|
356
|
+
exports.EstimatedDeliveryDatePlus = EstimatedDeliveryDatePlus_liquid.default;
|
|
353
357
|
exports.TrustshopProductReviews = TrustshopProductReviews_liquid.default;
|
|
354
358
|
exports.StellarDeliveryDatePickup = StellarDeliveryDatePickup_liquid.default;
|
|
355
359
|
exports.ImageComparison = ImageComparison_liquid.default;
|
|
@@ -48,7 +48,7 @@ const PostPurchaseProductPriceBreakdown = ({ setting = {}, styles = {}, style, b
|
|
|
48
48
|
if (styles.isShowDiscountLabel !== false) {
|
|
49
49
|
data.push({
|
|
50
50
|
title: setting.discountLabel,
|
|
51
|
-
money: isDynamicProduct && dynamicDiscount && isEnableDynamicDiscount ?
|
|
51
|
+
money: isDynamicProduct && dynamicDiscount && isEnableDynamicDiscount ? dynamicPrice : discount > 0 ? discountMoneyFormatted : 'No discount',
|
|
52
52
|
uniqueId: 'discountLabel'
|
|
53
53
|
});
|
|
54
54
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var core = require('@gem-sdk/core');
|
|
8
|
+
var ThirdPartyPreview = require('./ThirdPartyPreview.js');
|
|
9
|
+
var EstimatedDeliveryDatePlus$1 = require('../configs/EstimatedDeliveryDatePlus.js');
|
|
10
|
+
|
|
11
|
+
const EstimatedDeliveryDatePlusContent = ()=>{
|
|
12
|
+
return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
13
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
14
|
+
className: "gp-p-2",
|
|
15
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(ThirdPartyPreview.default, {
|
|
16
|
+
setting: {
|
|
17
|
+
label: 'Estimated Delivery Date ‑ Plus',
|
|
18
|
+
iconSvg: `<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="${EstimatedDeliveryDatePlus$1.default.logoUrl}">`
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
const EstimatedDeliveryDatePlus = ({ setting })=>{
|
|
25
|
+
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
26
|
+
style: {
|
|
27
|
+
...core.makeStyleResponsive('ta', setting?.align)
|
|
28
|
+
},
|
|
29
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(EstimatedDeliveryDatePlusContent, {})
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
exports.default = EstimatedDeliveryDatePlus;
|
|
@@ -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 EstimatedDeliveryDatePlus = ({ setting, advanced })=>{
|
|
8
|
+
const { align, appBlockId } = setting ?? {};
|
|
9
|
+
return thirdParty.getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''} !gp-block`);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.default = EstimatedDeliveryDatePlus;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var core = require('@gem-sdk/core');
|
|
8
|
+
var ThirdPartyPreview = require('./ThirdPartyPreview.js');
|
|
9
|
+
var OkendoReviewsLoyalty$1 = require('../configs/OkendoReviewsLoyalty.js');
|
|
10
|
+
|
|
11
|
+
const OkendoReviewsLoyaltyContent = ()=>{
|
|
12
|
+
return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
13
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
14
|
+
className: "gp-p-2",
|
|
15
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(ThirdPartyPreview.default, {
|
|
16
|
+
setting: {
|
|
17
|
+
label: 'Okendo: Reviews & Loyalty',
|
|
18
|
+
iconSvg: `<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="${OkendoReviewsLoyalty$1.default.logoUrl}">`
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
const OkendoReviewsLoyalty = ({ setting })=>{
|
|
25
|
+
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
26
|
+
style: {
|
|
27
|
+
...core.makeStyleResponsive('ta', setting?.align)
|
|
28
|
+
},
|
|
29
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(OkendoReviewsLoyaltyContent, {})
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
exports.default = OkendoReviewsLoyalty;
|
|
@@ -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 OkendoReviewsLoyalty = ({ 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 = OkendoReviewsLoyalty;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var AppConfig = {
|
|
6
|
+
id: 'estimated-delivery-date-plus',
|
|
7
|
+
label: 'Estimated Delivery Date ‑ Plus',
|
|
8
|
+
logoUrl: 'https://cdn.shopify.com/app-store/listing_images/e4733a4cb318126885ef06c1a11c2c35/icon/COTnt4SChPkCEAE=.jpeg',
|
|
9
|
+
tag: 'EstimatedDeliveryDatePlus'
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.default = AppConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var AppConfig = {
|
|
6
|
+
id: 'okendo-reviews-loyalty',
|
|
7
|
+
label: 'Okendo: Reviews & Loyalty',
|
|
8
|
+
logoUrl: 'https://cdn.shopify.com/app-store/listing_images/fe55626671bd5da73785c606c2b0752f/icon/CNKRrIWatfoCEAE=.png',
|
|
9
|
+
tag: 'OkendoReviewsLoyalty'
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.default = AppConfig;
|
|
@@ -8,6 +8,14 @@ require('react/jsx-runtime');
|
|
|
8
8
|
require('react');
|
|
9
9
|
require('@gem-sdk/core');
|
|
10
10
|
|
|
11
|
+
const EstimatedDeliveryDatePlus = dynamic(()=>Promise.resolve().then(function () { return require('./components/EstimatedDeliveryDatePlus.js'); }), {
|
|
12
|
+
ssr: false,
|
|
13
|
+
loading: Loading.default
|
|
14
|
+
});
|
|
15
|
+
const OkendoReviewsLoyalty = dynamic(()=>Promise.resolve().then(function () { return require('./components/OkendoReviewsLoyalty.js'); }), {
|
|
16
|
+
ssr: false,
|
|
17
|
+
loading: Loading.default
|
|
18
|
+
});
|
|
11
19
|
const EssentialAnnouncementBar = dynamic(()=>Promise.resolve().then(function () { return require('./components/EssentialAnnouncementBar.js'); }), {
|
|
12
20
|
ssr: false,
|
|
13
21
|
loading: Loading.default
|
|
@@ -421,6 +429,8 @@ const Selleasy = dynamic(()=>Promise.resolve().then(function () { return require
|
|
|
421
429
|
loading: Loading.default
|
|
422
430
|
});
|
|
423
431
|
var thirdParty = {
|
|
432
|
+
EstimatedDeliveryDatePlus,
|
|
433
|
+
OkendoReviewsLoyalty,
|
|
424
434
|
EssentialAnnouncementBar,
|
|
425
435
|
EssentialCountdownTimerBar,
|
|
426
436
|
StellarDeliveryDatePickup,
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var EstimatedDeliveryDatePlus = require('../configs/EstimatedDeliveryDatePlus.js');
|
|
6
|
+
|
|
7
|
+
const config = {
|
|
8
|
+
tag: EstimatedDeliveryDatePlus.default.tag,
|
|
9
|
+
label: EstimatedDeliveryDatePlus.default.label,
|
|
10
|
+
icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/e4733a4cb318126885ef06c1a11c2c35/icon/COTnt4SChPkCEAE=.jpeg">',
|
|
11
|
+
editorConfigs: {
|
|
12
|
+
component: {
|
|
13
|
+
isThirdParty: true
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
presets: [
|
|
17
|
+
{
|
|
18
|
+
id: EstimatedDeliveryDatePlus.default.id,
|
|
19
|
+
name: {
|
|
20
|
+
en: EstimatedDeliveryDatePlus.default.label
|
|
21
|
+
},
|
|
22
|
+
hideTextContent: true,
|
|
23
|
+
icon: {
|
|
24
|
+
desktop: `<div class="w-full flex flex-col items-center">
|
|
25
|
+
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/e4733a4cb318126885ef06c1a11c2c35/icon/COTnt4SChPkCEAE=.jpeg">
|
|
26
|
+
<span class="preset-item-title">Estimated Delivery Date ‑ Plus</span>
|
|
27
|
+
</div>`
|
|
28
|
+
},
|
|
29
|
+
components: [
|
|
30
|
+
{
|
|
31
|
+
tag: EstimatedDeliveryDatePlus.default.tag
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
settings: [
|
|
37
|
+
{
|
|
38
|
+
id: 'setting',
|
|
39
|
+
controls: [
|
|
40
|
+
{
|
|
41
|
+
id: 'appBlockId',
|
|
42
|
+
type: 'input',
|
|
43
|
+
default: ''
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'widgetType',
|
|
47
|
+
label: 'Choose widget',
|
|
48
|
+
type: 'select',
|
|
49
|
+
options: [
|
|
50
|
+
{
|
|
51
|
+
label: 'Delivery_coder_theme',
|
|
52
|
+
value: 'delivery_coder_theme'
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
default: 'delivery_coder_theme'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: 'install',
|
|
59
|
+
type: 'open-link',
|
|
60
|
+
target: '_blank',
|
|
61
|
+
linkType: 'install',
|
|
62
|
+
href: 'https://apps.shopify.com/estimated-delivery-date-plus?utm_source=gempages',
|
|
63
|
+
appName: EstimatedDeliveryDatePlus.default.label
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'openApp',
|
|
67
|
+
type: 'open-link',
|
|
68
|
+
target: '_blank',
|
|
69
|
+
linkType: 'openApp',
|
|
70
|
+
href: 'https://admin.shopify.com/?redirect=/apps/estimated-delivery-date-plus',
|
|
71
|
+
appName: EstimatedDeliveryDatePlus.default.label
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: 'align',
|
|
75
|
+
label: 'Alignment',
|
|
76
|
+
type: 'segment',
|
|
77
|
+
options: [
|
|
78
|
+
{
|
|
79
|
+
label: 'Left',
|
|
80
|
+
value: 'left',
|
|
81
|
+
type: 'align'
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: 'Center',
|
|
85
|
+
value: 'center',
|
|
86
|
+
type: 'align'
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
label: 'Right',
|
|
90
|
+
value: 'right',
|
|
91
|
+
type: 'align'
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
devices: {
|
|
95
|
+
desktop: {
|
|
96
|
+
default: 'left'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
ui: [
|
|
104
|
+
{
|
|
105
|
+
type: 'control',
|
|
106
|
+
setting: {
|
|
107
|
+
id: 'install'
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
type: 'control',
|
|
112
|
+
setting: {
|
|
113
|
+
id: 'openApp'
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
type: 'control',
|
|
118
|
+
label: {
|
|
119
|
+
en: 'Align'
|
|
120
|
+
},
|
|
121
|
+
setting: {
|
|
122
|
+
id: 'align'
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
exports.default = config;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var OkendoReviewsLoyalty = require('../configs/OkendoReviewsLoyalty.js');
|
|
6
|
+
|
|
7
|
+
const config = {
|
|
8
|
+
tag: OkendoReviewsLoyalty.default.tag,
|
|
9
|
+
label: OkendoReviewsLoyalty.default.label,
|
|
10
|
+
icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/fe55626671bd5da73785c606c2b0752f/icon/CNKRrIWatfoCEAE=.png">',
|
|
11
|
+
editorConfigs: {
|
|
12
|
+
placeholder: {
|
|
13
|
+
flowTag: [
|
|
14
|
+
'Product'
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
component: {
|
|
18
|
+
isThirdParty: true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
presets: [
|
|
22
|
+
{
|
|
23
|
+
id: OkendoReviewsLoyalty.default.id,
|
|
24
|
+
name: {
|
|
25
|
+
en: OkendoReviewsLoyalty.default.label
|
|
26
|
+
},
|
|
27
|
+
hideTextContent: true,
|
|
28
|
+
icon: {
|
|
29
|
+
desktop: `<div class="w-full flex flex-col items-center">
|
|
30
|
+
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/fe55626671bd5da73785c606c2b0752f/icon/CNKRrIWatfoCEAE=.png">
|
|
31
|
+
<span class="preset-item-title">Okendo: Reviews & Loyalty</span>
|
|
32
|
+
</div>`
|
|
33
|
+
},
|
|
34
|
+
components: [
|
|
35
|
+
{
|
|
36
|
+
tag: OkendoReviewsLoyalty.default.tag
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
settings: [
|
|
42
|
+
{
|
|
43
|
+
id: 'setting',
|
|
44
|
+
controls: [
|
|
45
|
+
{
|
|
46
|
+
id: 'appBlockId',
|
|
47
|
+
type: 'input',
|
|
48
|
+
default: ''
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'productHandle',
|
|
52
|
+
type: 'product-handle',
|
|
53
|
+
hide: true
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 'widgetType',
|
|
57
|
+
label: 'Choose widget',
|
|
58
|
+
type: 'select',
|
|
59
|
+
options: [
|
|
60
|
+
{
|
|
61
|
+
label: 'Reviews Widget',
|
|
62
|
+
value: 'reviews-widget'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: 'Reviews Badge',
|
|
66
|
+
value: 'reviews-badge'
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: 'Media Carousel',
|
|
70
|
+
value: 'media-carousel'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: 'Media Grid',
|
|
74
|
+
value: 'media-grid'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: 'Reviews Carousel',
|
|
78
|
+
value: 'reviews-carousel'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: 'Star Rating',
|
|
82
|
+
value: 'star-rating'
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
label: 'Questions Widget',
|
|
86
|
+
value: 'questions-widget'
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
default: 'reviews-widget'
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: 'install',
|
|
93
|
+
type: 'open-link',
|
|
94
|
+
target: '_blank',
|
|
95
|
+
linkType: 'install',
|
|
96
|
+
href: 'https://apps.shopify.com/okendo-reviews?utm_source=gempages',
|
|
97
|
+
appName: OkendoReviewsLoyalty.default.label
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: 'openApp',
|
|
101
|
+
type: 'open-link',
|
|
102
|
+
target: '_blank',
|
|
103
|
+
linkType: 'openApp',
|
|
104
|
+
href: 'https://admin.shopify.com/?redirect=/apps/okendo-reviews',
|
|
105
|
+
appName: OkendoReviewsLoyalty.default.label
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: 'align',
|
|
109
|
+
label: 'Alignment',
|
|
110
|
+
type: 'segment',
|
|
111
|
+
options: [
|
|
112
|
+
{
|
|
113
|
+
label: 'Left',
|
|
114
|
+
value: 'left',
|
|
115
|
+
type: 'align'
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
label: 'Center',
|
|
119
|
+
value: 'center',
|
|
120
|
+
type: 'align'
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
label: 'Right',
|
|
124
|
+
value: 'right',
|
|
125
|
+
type: 'align'
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
devices: {
|
|
129
|
+
desktop: {
|
|
130
|
+
default: 'left'
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
ui: [
|
|
138
|
+
{
|
|
139
|
+
type: 'control',
|
|
140
|
+
setting: {
|
|
141
|
+
id: 'install'
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
type: 'control',
|
|
146
|
+
label: {
|
|
147
|
+
en: 'Choose Widget'
|
|
148
|
+
},
|
|
149
|
+
setting: {
|
|
150
|
+
id: 'widgetType'
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
type: 'control',
|
|
155
|
+
setting: {
|
|
156
|
+
id: 'openApp'
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: 'control',
|
|
161
|
+
label: {
|
|
162
|
+
en: 'Align'
|
|
163
|
+
},
|
|
164
|
+
setting: {
|
|
165
|
+
id: 'align'
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
exports.default = config;
|
|
@@ -105,8 +105,12 @@ var TrustshopProductReviews = require('./TrustshopProductReviews.js');
|
|
|
105
105
|
var StellarDeliveryDatePickup = require('./StellarDeliveryDatePickup.js');
|
|
106
106
|
var EssentialCountdownTimerBar = require('./EssentialCountdownTimerBar.js');
|
|
107
107
|
var EssentialAnnouncementBar = require('./EssentialAnnouncementBar.js');
|
|
108
|
+
var OkendoReviewsLoyalty = require('./OkendoReviewsLoyalty.js');
|
|
109
|
+
var EstimatedDeliveryDatePlus = require('./EstimatedDeliveryDatePlus.js');
|
|
108
110
|
|
|
109
111
|
var thirdPartySetting = {
|
|
112
|
+
EstimatedDeliveryDatePlus: EstimatedDeliveryDatePlus.default,
|
|
113
|
+
OkendoReviewsLoyalty: OkendoReviewsLoyalty.default,
|
|
110
114
|
EssentialAnnouncementBar: EssentialAnnouncementBar.default,
|
|
111
115
|
EssentialCountdownTimerBar: EssentialCountdownTimerBar.default,
|
|
112
116
|
StellarDeliveryDatePickup: StellarDeliveryDatePickup.default,
|
package/dist/esm/builder.js
CHANGED
|
@@ -110,6 +110,8 @@ import TrustshopProductReviews from './third-party/components/TrustshopProductRe
|
|
|
110
110
|
import StellarDeliveryDatePickup from './third-party/components/StellarDeliveryDatePickup.js';
|
|
111
111
|
import EssentialCountdownTimerBar from './third-party/components/EssentialCountdownTimerBar.js';
|
|
112
112
|
import EssentialAnnouncementBar from './third-party/components/EssentialAnnouncementBar.js';
|
|
113
|
+
import OkendoReviewsLoyalty from './third-party/components/OkendoReviewsLoyalty.js';
|
|
114
|
+
import EstimatedDeliveryDatePlus from './third-party/components/EstimatedDeliveryDatePlus.js';
|
|
113
115
|
import CartLineVariant from './cart/components/CartLineVariant.js';
|
|
114
116
|
import Cart from './cart/components/Cart.js';
|
|
115
117
|
import CartList from './cart/components/CartList.js';
|
|
@@ -246,6 +248,8 @@ import Link$1 from './post-purchase/link/components/PostPurchaseLink.js';
|
|
|
246
248
|
import Text$1 from './post-purchase/text/Text.js';
|
|
247
249
|
|
|
248
250
|
var builder = {
|
|
251
|
+
EstimatedDeliveryDatePlus,
|
|
252
|
+
OkendoReviewsLoyalty,
|
|
249
253
|
EssentialAnnouncementBar,
|
|
250
254
|
EssentialCountdownTimerBar,
|
|
251
255
|
StellarDeliveryDatePickup,
|
package/dist/esm/index.js
CHANGED
|
@@ -207,6 +207,8 @@ export { default as TrustshopProductReviews } from './third-party/components/Tru
|
|
|
207
207
|
export { default as StellarDeliveryDatePickup } from './third-party/components/StellarDeliveryDatePickup.js';
|
|
208
208
|
export { default as EssentialCountdownTimerBar } from './third-party/components/EssentialCountdownTimerBar.js';
|
|
209
209
|
export { default as EssentialAnnouncementBar } from './third-party/components/EssentialAnnouncementBar.js';
|
|
210
|
+
export { default as OkendoReviewsLoyalty } from './third-party/components/OkendoReviewsLoyalty.js';
|
|
211
|
+
export { default as EstimatedDeliveryDatePlus } from './third-party/components/EstimatedDeliveryDatePlus.js';
|
|
210
212
|
export { default as thirdPartyInstantSetting } from './third-party-instant/setting/index.js';
|
|
211
213
|
export { default as InstantJudgemeReviews } from './third-party-instant/components/InstantJudgemeReviews.js';
|
|
212
214
|
export { default as InstantLooxReviews } from './third-party-instant/components/InstantLooxReviews.js';
|
package/dist/esm/index.liquid.js
CHANGED
|
@@ -161,6 +161,8 @@ export { default as MyappgurusProductReviews } from './third-party/components/My
|
|
|
161
161
|
export { default as HulkProductOptions } from './third-party/components/HulkProductOptions.liquid.js';
|
|
162
162
|
export { default as EssentialCountdownTimerBar } from './third-party/components/EssentialCountdownTimerBar.liquid.js';
|
|
163
163
|
export { default as EssentialAnnouncementBar } from './third-party/components/EssentialAnnouncementBar.liquid.js';
|
|
164
|
+
export { default as OkendoReviewsLoyalty } from './third-party/components/OkendoReviewsLoyalty.liquid.js';
|
|
165
|
+
export { default as EstimatedDeliveryDatePlus } from './third-party/components/EstimatedDeliveryDatePlus.liquid.js';
|
|
164
166
|
export { default as TrustshopProductReviews } from './third-party/components/TrustshopProductReviews.liquid.js';
|
|
165
167
|
export { default as StellarDeliveryDatePickup } from './third-party/components/StellarDeliveryDatePickup.liquid.js';
|
|
166
168
|
export { default as ImageComparison } from './image-comparison/components/ImageComparison.liquid.js';
|
|
@@ -44,7 +44,7 @@ const PostPurchaseProductPriceBreakdown = ({ setting = {}, styles = {}, style, b
|
|
|
44
44
|
if (styles.isShowDiscountLabel !== false) {
|
|
45
45
|
data.push({
|
|
46
46
|
title: setting.discountLabel,
|
|
47
|
-
money: isDynamicProduct && dynamicDiscount && isEnableDynamicDiscount ?
|
|
47
|
+
money: isDynamicProduct && dynamicDiscount && isEnableDynamicDiscount ? dynamicPrice : discount > 0 ? discountMoneyFormatted : 'No discount',
|
|
48
48
|
uniqueId: 'discountLabel'
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { makeStyleResponsive } from '@gem-sdk/core';
|
|
4
|
+
import ThirdPartyPreview from './ThirdPartyPreview.js';
|
|
5
|
+
import AppConfig from '../configs/EstimatedDeliveryDatePlus.js';
|
|
6
|
+
|
|
7
|
+
const EstimatedDeliveryDatePlusContent = ()=>{
|
|
8
|
+
return /*#__PURE__*/ jsx(Fragment, {
|
|
9
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
10
|
+
className: "gp-p-2",
|
|
11
|
+
children: /*#__PURE__*/ jsx(ThirdPartyPreview, {
|
|
12
|
+
setting: {
|
|
13
|
+
label: 'Estimated Delivery Date ‑ Plus',
|
|
14
|
+
iconSvg: `<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="${AppConfig.logoUrl}">`
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const EstimatedDeliveryDatePlus = ({ setting })=>{
|
|
21
|
+
return /*#__PURE__*/ jsx("div", {
|
|
22
|
+
style: {
|
|
23
|
+
...makeStyleResponsive('ta', setting?.align)
|
|
24
|
+
},
|
|
25
|
+
children: /*#__PURE__*/ jsx(EstimatedDeliveryDatePlusContent, {})
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { EstimatedDeliveryDatePlus as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getLiquidForAppBlock } from '../helpers/thirdParty.js';
|
|
2
|
+
|
|
3
|
+
const EstimatedDeliveryDatePlus = ({ setting, advanced })=>{
|
|
4
|
+
const { align, appBlockId } = setting ?? {};
|
|
5
|
+
return getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''} !gp-block`);
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { EstimatedDeliveryDatePlus as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { makeStyleResponsive } from '@gem-sdk/core';
|
|
4
|
+
import ThirdPartyPreview from './ThirdPartyPreview.js';
|
|
5
|
+
import AppConfig from '../configs/OkendoReviewsLoyalty.js';
|
|
6
|
+
|
|
7
|
+
const OkendoReviewsLoyaltyContent = ()=>{
|
|
8
|
+
return /*#__PURE__*/ jsx(Fragment, {
|
|
9
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
10
|
+
className: "gp-p-2",
|
|
11
|
+
children: /*#__PURE__*/ jsx(ThirdPartyPreview, {
|
|
12
|
+
setting: {
|
|
13
|
+
label: 'Okendo: Reviews & Loyalty',
|
|
14
|
+
iconSvg: `<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="${AppConfig.logoUrl}">`
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const OkendoReviewsLoyalty = ({ setting })=>{
|
|
21
|
+
return /*#__PURE__*/ jsx("div", {
|
|
22
|
+
style: {
|
|
23
|
+
...makeStyleResponsive('ta', setting?.align)
|
|
24
|
+
},
|
|
25
|
+
children: /*#__PURE__*/ jsx(OkendoReviewsLoyaltyContent, {})
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { OkendoReviewsLoyalty as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getLiquidForAppBlock } from '../helpers/thirdParty.js';
|
|
2
|
+
|
|
3
|
+
const OkendoReviewsLoyalty = ({ setting, advanced })=>{
|
|
4
|
+
const { align, appBlockId } = setting ?? {};
|
|
5
|
+
return getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''} !gp-block [&_*]:gp-max-w-none`);
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { OkendoReviewsLoyalty as default };
|