@gem-sdk/core 2.1.20 → 2.1.24
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/components/Render.liquid.js +13 -10
- package/dist/cjs/contexts/PageContext.js +8 -1
- package/dist/cjs/graphql-app-api/queries/SaleFunnelOffer.generated.js +25 -0
- package/dist/cjs/helpers/third-party/appConfig.js +7 -0
- package/dist/cjs/helpers/third-party/appSetting.js +32 -1
- package/dist/cjs/helpers/third-party/constant.js +2 -1
- package/dist/cjs/index.js +2 -0
- package/dist/esm/components/Render.liquid.js +13 -10
- package/dist/esm/contexts/PageContext.js +8 -1
- package/dist/esm/graphql-app-api/queries/SaleFunnelOffer.generated.js +23 -0
- package/dist/esm/helpers/third-party/appConfig.js +7 -1
- package/dist/esm/helpers/third-party/appSetting.js +32 -1
- package/dist/esm/helpers/third-party/constant.js +3 -2
- package/dist/esm/index.js +1 -0
- package/dist/types/index.d.ts +5207 -607
- package/package.json +1 -1
|
@@ -294,24 +294,27 @@ const RenderChildren = (props)=>{
|
|
|
294
294
|
const WrapRenderChildren = ({ uid, customProps }, codes)=>{
|
|
295
295
|
let liquid = '';
|
|
296
296
|
if (codes?.length) {
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
let tempLiquid = '';
|
|
298
|
+
let fileIndex = 0;
|
|
299
299
|
for(let i = 0; i < codes.length; i++){
|
|
300
300
|
const code = codes[i];
|
|
301
301
|
if (code) {
|
|
302
|
-
const newLiquid = liquid + code;
|
|
303
|
-
// Fix limit 256kb
|
|
304
302
|
const textEncoder = new TextEncoder();
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant, form: form %}`;
|
|
303
|
+
const newTempLiquid = tempLiquid + code;
|
|
304
|
+
const newSize = textEncoder.encode(newTempLiquid).length;
|
|
305
|
+
if (Math.ceil(newSize / 1024) < 180) {
|
|
306
|
+
tempLiquid = newTempLiquid;
|
|
310
307
|
} else {
|
|
311
|
-
|
|
308
|
+
const fileName = `gp-section-snippet-${uid}-${fileIndex++}`;
|
|
309
|
+
customProps.extraFiles[fileName] = tempLiquid;
|
|
310
|
+
liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant, form: form %}`;
|
|
311
|
+
tempLiquid = code;
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
+
if (tempLiquid) {
|
|
316
|
+
liquid += tempLiquid;
|
|
317
|
+
}
|
|
315
318
|
}
|
|
316
319
|
return liquid;
|
|
317
320
|
};
|
|
@@ -22,6 +22,11 @@ const createPageStoreProvider = (data)=>zustand.createStore((set)=>({
|
|
|
22
22
|
productOffers: productOffers
|
|
23
23
|
});
|
|
24
24
|
},
|
|
25
|
+
setDynamicDiscountOffer: (dynamicDiscountOffer)=>{
|
|
26
|
+
set({
|
|
27
|
+
dynamicDiscountOffer: dynamicDiscountOffer
|
|
28
|
+
});
|
|
29
|
+
},
|
|
25
30
|
setSalePageProductId: (id)=>{
|
|
26
31
|
set({
|
|
27
32
|
salePageProductId: id
|
|
@@ -71,11 +76,12 @@ const createPageStoreProvider = (data)=>zustand.createStore((set)=>({
|
|
|
71
76
|
}));
|
|
72
77
|
}
|
|
73
78
|
}));
|
|
74
|
-
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, publicStoreFrontData, ...passProps })=>{
|
|
79
|
+
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, dynamicDiscountOffer, publicStoreFrontData, ...passProps })=>{
|
|
75
80
|
const store = react.useMemo(()=>createPageStoreProvider({
|
|
76
81
|
dynamicProduct,
|
|
77
82
|
dynamicCollection,
|
|
78
83
|
productOffers,
|
|
84
|
+
dynamicDiscountOffer,
|
|
79
85
|
publicStoreFrontData,
|
|
80
86
|
interactionData: {
|
|
81
87
|
selectType: 'ELEMENT'
|
|
@@ -84,6 +90,7 @@ const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffe
|
|
|
84
90
|
dynamicProduct,
|
|
85
91
|
dynamicCollection,
|
|
86
92
|
productOffers,
|
|
93
|
+
dynamicDiscountOffer,
|
|
87
94
|
publicStoreFrontData
|
|
88
95
|
]);
|
|
89
96
|
return /*#__PURE__*/ jsxRuntime.jsx(PageContext.Provider, {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */ const SaleFunnelOfferDocument = `
|
|
4
|
+
query SaleFunnelOffer($saleFunnelOfferId: ID!) {
|
|
5
|
+
saleFunnelOffer(id: $saleFunnelOfferId) {
|
|
6
|
+
dynamicDiscounts {
|
|
7
|
+
id
|
|
8
|
+
createdAt
|
|
9
|
+
updatedAt
|
|
10
|
+
type
|
|
11
|
+
valueType
|
|
12
|
+
value
|
|
13
|
+
appliedProductCount
|
|
14
|
+
isEnabled
|
|
15
|
+
}
|
|
16
|
+
id
|
|
17
|
+
isEnabled
|
|
18
|
+
campaignID
|
|
19
|
+
createdAt
|
|
20
|
+
deletedAt
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
exports.SaleFunnelOfferDocument = SaleFunnelOfferDocument;
|
|
@@ -330,6 +330,12 @@ const ShopifySubscriptionsConfig = {
|
|
|
330
330
|
appId: 'a3bfe9ec-96f8-4508-a003-df608a36d2ad'
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
|
+
const QikifyUpsellConfig = {
|
|
334
|
+
QikifyUpsell: {
|
|
335
|
+
appName: 'q-discount-free-gift',
|
|
336
|
+
appId: '2e94b962-8172-4839-8ad9-7837eb8b017a'
|
|
337
|
+
}
|
|
338
|
+
};
|
|
333
339
|
|
|
334
340
|
exports.AftershipEmailMarketingsmsConfig = AftershipEmailMarketingsmsConfig;
|
|
335
341
|
exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
|
|
@@ -365,6 +371,7 @@ exports.PreorderNowPreOrderPqConfig = PreorderNowPreOrderPqConfig;
|
|
|
365
371
|
exports.PreorderNowWodPresaleConfig = PreorderNowWodPresaleConfig;
|
|
366
372
|
exports.ProductOptionsCustomizerConfig = ProductOptionsCustomizerConfig;
|
|
367
373
|
exports.PumperBundlesVolumeDiscountConfig = PumperBundlesVolumeDiscountConfig;
|
|
374
|
+
exports.QikifyUpsellConfig = QikifyUpsellConfig;
|
|
368
375
|
exports.RechargeSubscriptionsConfig = RechargeSubscriptionsConfig;
|
|
369
376
|
exports.ReviewxpoProductReviewsAppConfig = ReviewxpoProductReviewsAppConfig;
|
|
370
377
|
exports.SegunoEmailMarketingConfig = SegunoEmailMarketingConfig;
|
|
@@ -239,6 +239,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
239
239
|
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
|
+
case 'QikifyUpsell':
|
|
243
|
+
{
|
|
244
|
+
return {
|
|
245
|
+
...currentSetting,
|
|
246
|
+
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
247
|
+
};
|
|
248
|
+
}
|
|
242
249
|
default:
|
|
243
250
|
return currentSetting;
|
|
244
251
|
}
|
|
@@ -1152,6 +1159,29 @@ const ShopifySubscriptions = {
|
|
|
1152
1159
|
}
|
|
1153
1160
|
}
|
|
1154
1161
|
};
|
|
1162
|
+
const QikifyUpsell = {
|
|
1163
|
+
QikifyUpsell: {
|
|
1164
|
+
bogo_offer: {
|
|
1165
|
+
product: '{{product}}'
|
|
1166
|
+
},
|
|
1167
|
+
free_gift: {
|
|
1168
|
+
product: '{{product}}'
|
|
1169
|
+
},
|
|
1170
|
+
bundle_offer: {
|
|
1171
|
+
product: '{{product}}'
|
|
1172
|
+
},
|
|
1173
|
+
promotion_badge: {
|
|
1174
|
+
product: '{{product}}'
|
|
1175
|
+
},
|
|
1176
|
+
'order-goal': null,
|
|
1177
|
+
upsurge_offer: {
|
|
1178
|
+
product: '{{product}}'
|
|
1179
|
+
},
|
|
1180
|
+
volume_offer: {
|
|
1181
|
+
product: '{{product}}'
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1155
1185
|
const composeSettingsByWidgetType = {
|
|
1156
1186
|
...HextomCountdownTimerBar,
|
|
1157
1187
|
...EstimatedDeliveryDatePlus,
|
|
@@ -1207,7 +1237,8 @@ const composeSettingsByWidgetType = {
|
|
|
1207
1237
|
...GloColorSwatchvariantImage,
|
|
1208
1238
|
...BfSizeChartSizeGuide,
|
|
1209
1239
|
...HextomFreeShippingBar,
|
|
1210
|
-
...ShopifySubscriptions
|
|
1240
|
+
...ShopifySubscriptions,
|
|
1241
|
+
...QikifyUpsell
|
|
1211
1242
|
};
|
|
1212
1243
|
|
|
1213
1244
|
exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
|
|
@@ -57,7 +57,8 @@ const mapShopifyAppMeta = {
|
|
|
57
57
|
...appConfig.GloColorSwatchvariantImageConfig,
|
|
58
58
|
...appConfig.BfSizeChartSizeGuideConfig,
|
|
59
59
|
...appConfig.HextomFreeShippingBarConfig,
|
|
60
|
-
...appConfig.ShopifySubscriptionsConfig
|
|
60
|
+
...appConfig.ShopifySubscriptionsConfig,
|
|
61
|
+
...appConfig.QikifyUpsellConfig
|
|
61
62
|
};
|
|
62
63
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
63
64
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -33,6 +33,7 @@ var ThemePage_generated = require('./graphql-app-api/queries/ThemePage.generated
|
|
|
33
33
|
var SaleFunnelDiscounts_generated = require('./graphql-app-api/queries/SaleFunnelDiscounts.generated.js');
|
|
34
34
|
var LibrarySaleFunnelDiscount_generated = require('./graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js');
|
|
35
35
|
var ShopLibraryPage_generated = require('./graphql-app-api/queries/ShopLibraryPage.generated.js');
|
|
36
|
+
var SaleFunnelOffer_generated = require('./graphql-app-api/queries/SaleFunnelOffer.generated.js');
|
|
36
37
|
var borders = require('./helpers/borders.js');
|
|
37
38
|
var carousel = require('./helpers/carousel.js');
|
|
38
39
|
var cls = require('./helpers/cls.js');
|
|
@@ -167,6 +168,7 @@ exports.ThemePageDocument = ThemePage_generated.ThemePageDocument;
|
|
|
167
168
|
exports.SaleFunnelDiscountsDocument = SaleFunnelDiscounts_generated.SaleFunnelDiscountsDocument;
|
|
168
169
|
exports.LibrarySaleFunnelDocument = LibrarySaleFunnelDiscount_generated.LibrarySaleFunnelDocument;
|
|
169
170
|
exports.ShopLibraryPageDocument = ShopLibraryPage_generated.ShopLibraryPageDocument;
|
|
171
|
+
exports.SaleFunnelOfferDocument = SaleFunnelOffer_generated.SaleFunnelOfferDocument;
|
|
170
172
|
exports.composeBorderCss = borders.composeBorderCss;
|
|
171
173
|
exports.getBorderRadiusStyle = borders.getBorderRadiusStyle;
|
|
172
174
|
exports.getBorderStyle = borders.getBorderStyle;
|
|
@@ -290,24 +290,27 @@ const RenderChildren = (props)=>{
|
|
|
290
290
|
const WrapRenderChildren = ({ uid, customProps }, codes)=>{
|
|
291
291
|
let liquid = '';
|
|
292
292
|
if (codes?.length) {
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
let tempLiquid = '';
|
|
294
|
+
let fileIndex = 0;
|
|
295
295
|
for(let i = 0; i < codes.length; i++){
|
|
296
296
|
const code = codes[i];
|
|
297
297
|
if (code) {
|
|
298
|
-
const newLiquid = liquid + code;
|
|
299
|
-
// Fix limit 256kb
|
|
300
298
|
const textEncoder = new TextEncoder();
|
|
301
|
-
const
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant, form: form %}`;
|
|
299
|
+
const newTempLiquid = tempLiquid + code;
|
|
300
|
+
const newSize = textEncoder.encode(newTempLiquid).length;
|
|
301
|
+
if (Math.ceil(newSize / 1024) < 180) {
|
|
302
|
+
tempLiquid = newTempLiquid;
|
|
306
303
|
} else {
|
|
307
|
-
|
|
304
|
+
const fileName = `gp-section-snippet-${uid}-${fileIndex++}`;
|
|
305
|
+
customProps.extraFiles[fileName] = tempLiquid;
|
|
306
|
+
liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant, form: form %}`;
|
|
307
|
+
tempLiquid = code;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
+
if (tempLiquid) {
|
|
312
|
+
liquid += tempLiquid;
|
|
313
|
+
}
|
|
311
314
|
}
|
|
312
315
|
return liquid;
|
|
313
316
|
};
|
|
@@ -20,6 +20,11 @@ const createPageStoreProvider = (data)=>createStore((set)=>({
|
|
|
20
20
|
productOffers: productOffers
|
|
21
21
|
});
|
|
22
22
|
},
|
|
23
|
+
setDynamicDiscountOffer: (dynamicDiscountOffer)=>{
|
|
24
|
+
set({
|
|
25
|
+
dynamicDiscountOffer: dynamicDiscountOffer
|
|
26
|
+
});
|
|
27
|
+
},
|
|
23
28
|
setSalePageProductId: (id)=>{
|
|
24
29
|
set({
|
|
25
30
|
salePageProductId: id
|
|
@@ -69,11 +74,12 @@ const createPageStoreProvider = (data)=>createStore((set)=>({
|
|
|
69
74
|
}));
|
|
70
75
|
}
|
|
71
76
|
}));
|
|
72
|
-
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, publicStoreFrontData, ...passProps })=>{
|
|
77
|
+
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, dynamicDiscountOffer, publicStoreFrontData, ...passProps })=>{
|
|
73
78
|
const store = useMemo(()=>createPageStoreProvider({
|
|
74
79
|
dynamicProduct,
|
|
75
80
|
dynamicCollection,
|
|
76
81
|
productOffers,
|
|
82
|
+
dynamicDiscountOffer,
|
|
77
83
|
publicStoreFrontData,
|
|
78
84
|
interactionData: {
|
|
79
85
|
selectType: 'ELEMENT'
|
|
@@ -82,6 +88,7 @@ const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffe
|
|
|
82
88
|
dynamicProduct,
|
|
83
89
|
dynamicCollection,
|
|
84
90
|
productOffers,
|
|
91
|
+
dynamicDiscountOffer,
|
|
85
92
|
publicStoreFrontData
|
|
86
93
|
]);
|
|
87
94
|
return /*#__PURE__*/ jsx(PageContext.Provider, {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* eslint-disable */ const SaleFunnelOfferDocument = `
|
|
2
|
+
query SaleFunnelOffer($saleFunnelOfferId: ID!) {
|
|
3
|
+
saleFunnelOffer(id: $saleFunnelOfferId) {
|
|
4
|
+
dynamicDiscounts {
|
|
5
|
+
id
|
|
6
|
+
createdAt
|
|
7
|
+
updatedAt
|
|
8
|
+
type
|
|
9
|
+
valueType
|
|
10
|
+
value
|
|
11
|
+
appliedProductCount
|
|
12
|
+
isEnabled
|
|
13
|
+
}
|
|
14
|
+
id
|
|
15
|
+
isEnabled
|
|
16
|
+
campaignID
|
|
17
|
+
createdAt
|
|
18
|
+
deletedAt
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
export { SaleFunnelOfferDocument };
|
|
@@ -328,5 +328,11 @@ const ShopifySubscriptionsConfig = {
|
|
|
328
328
|
appId: 'a3bfe9ec-96f8-4508-a003-df608a36d2ad'
|
|
329
329
|
}
|
|
330
330
|
};
|
|
331
|
+
const QikifyUpsellConfig = {
|
|
332
|
+
QikifyUpsell: {
|
|
333
|
+
appName: 'q-discount-free-gift',
|
|
334
|
+
appId: '2e94b962-8172-4839-8ad9-7837eb8b017a'
|
|
335
|
+
}
|
|
336
|
+
};
|
|
331
337
|
|
|
332
|
-
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BfSizeChartSizeGuideConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, BoostAISearchDiscoveryConfig, EasyBundleBuilderSkailamaConfig, EssentialAnnouncementBarConfig, EssentialCountdownTimerBarConfig, EstimatedDeliveryDatePlusConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloColorSwatchvariantImageConfig, GloboProductOptionsVariantConfig, GrowaveConfig, HextomCountdownTimerBarConfig, HextomFreeShippingBarConfig, HulkProductOptionsConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, MyappgurusProductReviewsConfig, OkendoReviewsLoyaltyConfig, PowerfulContactFormBuilderConfig, PowrContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, SeoantTrustBadgesIconConfig, ShopifyFormsConfig, ShopifySubscriptionsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, StampedConfig, SubifySubscriptionsConfig, TrustBadgesBearConfig, TrustedsiteTrustBadgesConfig, TrustooConfig, TrustreviewsProductReviewsConfig, TrustshopProductReviewsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
338
|
+
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BfSizeChartSizeGuideConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, BoostAISearchDiscoveryConfig, EasyBundleBuilderSkailamaConfig, EssentialAnnouncementBarConfig, EssentialCountdownTimerBarConfig, EstimatedDeliveryDatePlusConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloColorSwatchvariantImageConfig, GloboProductOptionsVariantConfig, GrowaveConfig, HextomCountdownTimerBarConfig, HextomFreeShippingBarConfig, HulkProductOptionsConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, MyappgurusProductReviewsConfig, OkendoReviewsLoyaltyConfig, PowerfulContactFormBuilderConfig, PowrContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, QikifyUpsellConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, SeoantTrustBadgesIconConfig, ShopifyFormsConfig, ShopifySubscriptionsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, StampedConfig, SubifySubscriptionsConfig, TrustBadgesBearConfig, TrustedsiteTrustBadgesConfig, TrustooConfig, TrustreviewsProductReviewsConfig, TrustshopProductReviewsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
@@ -237,6 +237,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
237
237
|
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
|
+
case 'QikifyUpsell':
|
|
241
|
+
{
|
|
242
|
+
return {
|
|
243
|
+
...currentSetting,
|
|
244
|
+
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
245
|
+
};
|
|
246
|
+
}
|
|
240
247
|
default:
|
|
241
248
|
return currentSetting;
|
|
242
249
|
}
|
|
@@ -1150,6 +1157,29 @@ const ShopifySubscriptions = {
|
|
|
1150
1157
|
}
|
|
1151
1158
|
}
|
|
1152
1159
|
};
|
|
1160
|
+
const QikifyUpsell = {
|
|
1161
|
+
QikifyUpsell: {
|
|
1162
|
+
bogo_offer: {
|
|
1163
|
+
product: '{{product}}'
|
|
1164
|
+
},
|
|
1165
|
+
free_gift: {
|
|
1166
|
+
product: '{{product}}'
|
|
1167
|
+
},
|
|
1168
|
+
bundle_offer: {
|
|
1169
|
+
product: '{{product}}'
|
|
1170
|
+
},
|
|
1171
|
+
promotion_badge: {
|
|
1172
|
+
product: '{{product}}'
|
|
1173
|
+
},
|
|
1174
|
+
'order-goal': null,
|
|
1175
|
+
upsurge_offer: {
|
|
1176
|
+
product: '{{product}}'
|
|
1177
|
+
},
|
|
1178
|
+
volume_offer: {
|
|
1179
|
+
product: '{{product}}'
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
};
|
|
1153
1183
|
const composeSettingsByWidgetType = {
|
|
1154
1184
|
...HextomCountdownTimerBar,
|
|
1155
1185
|
...EstimatedDeliveryDatePlus,
|
|
@@ -1205,7 +1235,8 @@ const composeSettingsByWidgetType = {
|
|
|
1205
1235
|
...GloColorSwatchvariantImage,
|
|
1206
1236
|
...BfSizeChartSizeGuide,
|
|
1207
1237
|
...HextomFreeShippingBar,
|
|
1208
|
-
...ShopifySubscriptions
|
|
1238
|
+
...ShopifySubscriptions,
|
|
1239
|
+
...QikifyUpsell
|
|
1209
1240
|
};
|
|
1210
1241
|
|
|
1211
1242
|
export { composeSettingsByWidgetType, overrideSettings };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, PreorderNowWodPresaleConfig, YotpoReviewsV3UgcConfig, WhatmoreShoppableVideosreelConfig, ProductOptionsCustomizerConfig, AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, SproutPlantTreesGrowSalesConfig, InstasellShoppableInstagramConfig, GrowaveConfig, LoloyalLoyaltyReferralsConfig, PowerfulContactFormBuilderConfig, WishlistKingConfig, GloboProductOptionsVariantConfig, KachingBundlesConfig, TrustooConfig, LooxReviewsConfig, PowrContactFormBuilderConfig, BestBuyFulfillmentConfig, AftershipEmailMarketingsmsConfig, SegunoEmailMarketingConfig, SeoantTrustBadgesIconConfig, TrustreviewsProductReviewsConfig, MyappgurusProductReviewsConfig, HulkProductOptionsConfig, TrustshopProductReviewsConfig, StampedConfig, BoostAISearchDiscoveryConfig, EssentialCountdownTimerBarConfig, EssentialAnnouncementBarConfig, OkendoReviewsLoyaltyConfig, EstimatedDeliveryDatePlusConfig, HextomCountdownTimerBarConfig, TrustBadgesBearConfig, TrustedsiteTrustBadgesConfig, GloColorSwatchvariantImageConfig, BfSizeChartSizeGuideConfig, HextomFreeShippingBarConfig, ShopifySubscriptionsConfig } from './appConfig.js';
|
|
1
|
+
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, PreorderNowWodPresaleConfig, YotpoReviewsV3UgcConfig, WhatmoreShoppableVideosreelConfig, ProductOptionsCustomizerConfig, AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, SproutPlantTreesGrowSalesConfig, InstasellShoppableInstagramConfig, GrowaveConfig, LoloyalLoyaltyReferralsConfig, PowerfulContactFormBuilderConfig, WishlistKingConfig, GloboProductOptionsVariantConfig, KachingBundlesConfig, TrustooConfig, LooxReviewsConfig, PowrContactFormBuilderConfig, BestBuyFulfillmentConfig, AftershipEmailMarketingsmsConfig, SegunoEmailMarketingConfig, SeoantTrustBadgesIconConfig, TrustreviewsProductReviewsConfig, MyappgurusProductReviewsConfig, HulkProductOptionsConfig, TrustshopProductReviewsConfig, StampedConfig, BoostAISearchDiscoveryConfig, EssentialCountdownTimerBarConfig, EssentialAnnouncementBarConfig, OkendoReviewsLoyaltyConfig, EstimatedDeliveryDatePlusConfig, HextomCountdownTimerBarConfig, TrustBadgesBearConfig, TrustedsiteTrustBadgesConfig, GloColorSwatchvariantImageConfig, BfSizeChartSizeGuideConfig, HextomFreeShippingBarConfig, ShopifySubscriptionsConfig, QikifyUpsellConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -55,7 +55,8 @@ const mapShopifyAppMeta = {
|
|
|
55
55
|
...GloColorSwatchvariantImageConfig,
|
|
56
56
|
...BfSizeChartSizeGuideConfig,
|
|
57
57
|
...HextomFreeShippingBarConfig,
|
|
58
|
-
...ShopifySubscriptionsConfig
|
|
58
|
+
...ShopifySubscriptionsConfig,
|
|
59
|
+
...QikifyUpsellConfig
|
|
59
60
|
};
|
|
60
61
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
61
62
|
|
package/dist/esm/index.js
CHANGED
|
@@ -31,6 +31,7 @@ export { ThemePageDocument } from './graphql-app-api/queries/ThemePage.generated
|
|
|
31
31
|
export { SaleFunnelDiscountsDocument } from './graphql-app-api/queries/SaleFunnelDiscounts.generated.js';
|
|
32
32
|
export { LibrarySaleFunnelDocument } from './graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js';
|
|
33
33
|
export { ShopLibraryPageDocument } from './graphql-app-api/queries/ShopLibraryPage.generated.js';
|
|
34
|
+
export { SaleFunnelOfferDocument } from './graphql-app-api/queries/SaleFunnelOffer.generated.js';
|
|
34
35
|
export { composeBorderCss, getBorderRadiusStyle, getBorderStyle, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn } from './helpers/borders.js';
|
|
35
36
|
export { getCarouselContainerHeight, makeContainerWidthOrHeight, makeDotGapToCarouselStyle } from './helpers/carousel.js';
|
|
36
37
|
export { cls } from './helpers/cls.js';
|