@gem-sdk/core 2.1.18 → 2.1.21
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 +24 -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 +24 -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;
|
|
@@ -324,6 +324,12 @@ const HextomFreeShippingBarConfig = {
|
|
|
324
324
|
appId: '7ef5d9af-75a2-45c7-9b1b-f9240ee488e9'
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
|
+
const ShopifySubscriptionsConfig = {
|
|
328
|
+
ShopifySubscriptions: {
|
|
329
|
+
appName: 'subscriptions',
|
|
330
|
+
appId: 'a3bfe9ec-96f8-4508-a003-df608a36d2ad'
|
|
331
|
+
}
|
|
332
|
+
};
|
|
327
333
|
|
|
328
334
|
exports.AftershipEmailMarketingsmsConfig = AftershipEmailMarketingsmsConfig;
|
|
329
335
|
exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
|
|
@@ -365,6 +371,7 @@ exports.SegunoEmailMarketingConfig = SegunoEmailMarketingConfig;
|
|
|
365
371
|
exports.SelleasyConfig = SelleasyConfig;
|
|
366
372
|
exports.SeoantTrustBadgesIconConfig = SeoantTrustBadgesIconConfig;
|
|
367
373
|
exports.ShopifyFormsConfig = ShopifyFormsConfig;
|
|
374
|
+
exports.ShopifySubscriptionsConfig = ShopifySubscriptionsConfig;
|
|
368
375
|
exports.SimpleBundlesKitsConfig = SimpleBundlesKitsConfig;
|
|
369
376
|
exports.SkioSubscriptionsYcS20Config = SkioSubscriptionsYcS20Config;
|
|
370
377
|
exports.SproutPlantTreesGrowSalesConfig = SproutPlantTreesGrowSalesConfig;
|
|
@@ -232,6 +232,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
232
232
|
'tm-type': appSetting?.trustId
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
+
case 'ShopifySubscriptions':
|
|
236
|
+
{
|
|
237
|
+
return {
|
|
238
|
+
...currentSetting,
|
|
239
|
+
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
240
|
+
};
|
|
241
|
+
}
|
|
235
242
|
default:
|
|
236
243
|
return currentSetting;
|
|
237
244
|
}
|
|
@@ -1130,6 +1137,21 @@ const HextomFreeShippingBar = {
|
|
|
1130
1137
|
'fsb-custom-placement': null
|
|
1131
1138
|
}
|
|
1132
1139
|
};
|
|
1140
|
+
const ShopifySubscriptions = {
|
|
1141
|
+
ShopifySubscriptions: {
|
|
1142
|
+
'app-block': {
|
|
1143
|
+
color_text_title: '#6D7175',
|
|
1144
|
+
color_text_body: '#6D7175',
|
|
1145
|
+
dividers_color: '#8F8D8D',
|
|
1146
|
+
bacgkround_color: '#FFFFFF',
|
|
1147
|
+
border_thickness: 1,
|
|
1148
|
+
border_radius: 0,
|
|
1149
|
+
supporting_text_title: 'Purchase options',
|
|
1150
|
+
subscription_policy_url: '',
|
|
1151
|
+
product: '{{product}}'
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
};
|
|
1133
1155
|
const composeSettingsByWidgetType = {
|
|
1134
1156
|
...HextomCountdownTimerBar,
|
|
1135
1157
|
...EstimatedDeliveryDatePlus,
|
|
@@ -1184,7 +1206,8 @@ const composeSettingsByWidgetType = {
|
|
|
1184
1206
|
...TrustedsiteTrustBadges,
|
|
1185
1207
|
...GloColorSwatchvariantImage,
|
|
1186
1208
|
...BfSizeChartSizeGuide,
|
|
1187
|
-
...HextomFreeShippingBar
|
|
1209
|
+
...HextomFreeShippingBar,
|
|
1210
|
+
...ShopifySubscriptions
|
|
1188
1211
|
};
|
|
1189
1212
|
|
|
1190
1213
|
exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
|
|
@@ -56,7 +56,8 @@ const mapShopifyAppMeta = {
|
|
|
56
56
|
...appConfig.TrustedsiteTrustBadgesConfig,
|
|
57
57
|
...appConfig.GloColorSwatchvariantImageConfig,
|
|
58
58
|
...appConfig.BfSizeChartSizeGuideConfig,
|
|
59
|
-
...appConfig.HextomFreeShippingBarConfig
|
|
59
|
+
...appConfig.HextomFreeShippingBarConfig,
|
|
60
|
+
...appConfig.ShopifySubscriptionsConfig
|
|
60
61
|
};
|
|
61
62
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
62
63
|
|
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 };
|
|
@@ -322,5 +322,11 @@ const HextomFreeShippingBarConfig = {
|
|
|
322
322
|
appId: '7ef5d9af-75a2-45c7-9b1b-f9240ee488e9'
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
|
+
const ShopifySubscriptionsConfig = {
|
|
326
|
+
ShopifySubscriptions: {
|
|
327
|
+
appName: 'subscriptions',
|
|
328
|
+
appId: 'a3bfe9ec-96f8-4508-a003-df608a36d2ad'
|
|
329
|
+
}
|
|
330
|
+
};
|
|
325
331
|
|
|
326
|
-
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, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, StampedConfig, SubifySubscriptionsConfig, TrustBadgesBearConfig, TrustedsiteTrustBadgesConfig, TrustooConfig, TrustreviewsProductReviewsConfig, TrustshopProductReviewsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
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 };
|
|
@@ -230,6 +230,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
230
230
|
'tm-type': appSetting?.trustId
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
+
case 'ShopifySubscriptions':
|
|
234
|
+
{
|
|
235
|
+
return {
|
|
236
|
+
...currentSetting,
|
|
237
|
+
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
238
|
+
};
|
|
239
|
+
}
|
|
233
240
|
default:
|
|
234
241
|
return currentSetting;
|
|
235
242
|
}
|
|
@@ -1128,6 +1135,21 @@ const HextomFreeShippingBar = {
|
|
|
1128
1135
|
'fsb-custom-placement': null
|
|
1129
1136
|
}
|
|
1130
1137
|
};
|
|
1138
|
+
const ShopifySubscriptions = {
|
|
1139
|
+
ShopifySubscriptions: {
|
|
1140
|
+
'app-block': {
|
|
1141
|
+
color_text_title: '#6D7175',
|
|
1142
|
+
color_text_body: '#6D7175',
|
|
1143
|
+
dividers_color: '#8F8D8D',
|
|
1144
|
+
bacgkround_color: '#FFFFFF',
|
|
1145
|
+
border_thickness: 1,
|
|
1146
|
+
border_radius: 0,
|
|
1147
|
+
supporting_text_title: 'Purchase options',
|
|
1148
|
+
subscription_policy_url: '',
|
|
1149
|
+
product: '{{product}}'
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
};
|
|
1131
1153
|
const composeSettingsByWidgetType = {
|
|
1132
1154
|
...HextomCountdownTimerBar,
|
|
1133
1155
|
...EstimatedDeliveryDatePlus,
|
|
@@ -1182,7 +1204,8 @@ const composeSettingsByWidgetType = {
|
|
|
1182
1204
|
...TrustedsiteTrustBadges,
|
|
1183
1205
|
...GloColorSwatchvariantImage,
|
|
1184
1206
|
...BfSizeChartSizeGuide,
|
|
1185
|
-
...HextomFreeShippingBar
|
|
1207
|
+
...HextomFreeShippingBar,
|
|
1208
|
+
...ShopifySubscriptions
|
|
1186
1209
|
};
|
|
1187
1210
|
|
|
1188
1211
|
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 } 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 } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -54,7 +54,8 @@ const mapShopifyAppMeta = {
|
|
|
54
54
|
...TrustedsiteTrustBadgesConfig,
|
|
55
55
|
...GloColorSwatchvariantImageConfig,
|
|
56
56
|
...BfSizeChartSizeGuideConfig,
|
|
57
|
-
...HextomFreeShippingBarConfig
|
|
57
|
+
...HextomFreeShippingBarConfig,
|
|
58
|
+
...ShopifySubscriptionsConfig
|
|
58
59
|
};
|
|
59
60
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
60
61
|
|
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';
|