@gem-sdk/core 2.1.39 → 2.2.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/components/Render.liquid.js +9 -9
- package/dist/cjs/components/RenderPreview.js +1 -0
- package/dist/cjs/contexts/BuilderPreviewContext.js +3 -0
- package/dist/cjs/helpers/third-party/appConfig.js +21 -0
- package/dist/cjs/helpers/third-party/appSetting.js +41 -1
- package/dist/cjs/helpers/third-party/constant.js +4 -1
- package/dist/cjs/helpers/third-party/getAppBlockConfig.js +5 -1
- package/dist/esm/components/Render.liquid.js +9 -9
- package/dist/esm/components/RenderPreview.js +1 -0
- package/dist/esm/contexts/BuilderPreviewContext.js +3 -0
- package/dist/esm/helpers/third-party/appConfig.js +19 -1
- package/dist/esm/helpers/third-party/appSetting.js +41 -1
- package/dist/esm/helpers/third-party/constant.js +5 -2
- package/dist/esm/helpers/third-party/getAppBlockConfig.js +5 -1
- package/dist/types/index.d.ts +6 -3
- package/package.json +3 -3
|
@@ -36,7 +36,7 @@ const componentUsingAdvanced = [
|
|
|
36
36
|
'IconList',
|
|
37
37
|
'ProductVariants'
|
|
38
38
|
];
|
|
39
|
-
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext,
|
|
39
|
+
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyLoadImage, ...passProps })=>{
|
|
40
40
|
const item = builder[uid];
|
|
41
41
|
const Component = components[item?.tag];
|
|
42
42
|
if (!Component) {
|
|
@@ -75,7 +75,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
75
75
|
advanced: item.advanced,
|
|
76
76
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
77
77
|
pageContext,
|
|
78
|
-
|
|
78
|
+
enableLazyLoadImage,
|
|
79
79
|
...passProps,
|
|
80
80
|
builderAttrs: {
|
|
81
81
|
...passProps.builderAttrs
|
|
@@ -88,7 +88,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
88
88
|
components,
|
|
89
89
|
customProps,
|
|
90
90
|
pageContext,
|
|
91
|
-
|
|
91
|
+
enableLazyLoadImage
|
|
92
92
|
};
|
|
93
93
|
}),
|
|
94
94
|
children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -101,7 +101,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
101
101
|
customProps,
|
|
102
102
|
parentTag: item.tag,
|
|
103
103
|
pageContext,
|
|
104
|
-
|
|
104
|
+
enableLazyLoadImage
|
|
105
105
|
}))) : ''
|
|
106
106
|
});
|
|
107
107
|
}, ()=>{
|
|
@@ -117,7 +117,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
117
117
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
118
118
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
119
119
|
pageContext,
|
|
120
|
-
|
|
120
|
+
enableLazyLoadImage,
|
|
121
121
|
...passProps,
|
|
122
122
|
builderAttrs: {
|
|
123
123
|
...passProps.builderAttrs
|
|
@@ -139,7 +139,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
139
139
|
cssClass: item?.advanced?.cssClass
|
|
140
140
|
},
|
|
141
141
|
pageContext,
|
|
142
|
-
|
|
142
|
+
enableLazyLoadImage,
|
|
143
143
|
...passProps,
|
|
144
144
|
builderAttrs: {
|
|
145
145
|
...passProps.builderAttrs
|
|
@@ -152,7 +152,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
152
152
|
components,
|
|
153
153
|
customProps,
|
|
154
154
|
pageContext,
|
|
155
|
-
|
|
155
|
+
enableLazyLoadImage
|
|
156
156
|
};
|
|
157
157
|
}),
|
|
158
158
|
children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -165,7 +165,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
165
165
|
customProps,
|
|
166
166
|
parentTag: item.tag,
|
|
167
167
|
pageContext,
|
|
168
|
-
|
|
168
|
+
enableLazyLoadImage
|
|
169
169
|
}))) : ''
|
|
170
170
|
});
|
|
171
171
|
}, ()=>{
|
|
@@ -181,7 +181,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
181
181
|
cssClass: item?.advanced?.cssClass
|
|
182
182
|
},
|
|
183
183
|
pageContext,
|
|
184
|
-
|
|
184
|
+
enableLazyLoadImage,
|
|
185
185
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
186
186
|
style: componentIconList.includes(item.tag) ? style : null,
|
|
187
187
|
...passProps,
|
|
@@ -12,6 +12,7 @@ var RenderSection = require('./RenderSection.js');
|
|
|
12
12
|
|
|
13
13
|
const RenderPreview = ({ uid, ...passProps })=>{
|
|
14
14
|
const item = BuilderPreviewContext.useBuilderPreviewStore((s)=>s.getItem(uid));
|
|
15
|
+
BuilderPreviewContext.useBuilderPreviewStore((s)=>s.getState());
|
|
15
16
|
const Component = BuilderComponent.useBuilderComponent(item?.tag);
|
|
16
17
|
if (!item) return null;
|
|
17
18
|
if (item?.type === 'section') {
|
|
@@ -336,15 +336,35 @@ const QikifyUpsellConfig = {
|
|
|
336
336
|
appId: '2e94b962-8172-4839-8ad9-7837eb8b017a'
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
|
+
const EcoboostifyShoppableReelUgcConfig = {
|
|
340
|
+
EcoboostifyShoppableReelUgc: {
|
|
341
|
+
appName: 'ecoboostify',
|
|
342
|
+
appId: '24110205-fc49-453b-ac2b-ceea2bf6a8f3'
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
const ReleasitConfig = {
|
|
346
|
+
Releasit: {
|
|
347
|
+
appName: 'releasit-cod-form',
|
|
348
|
+
appId: '72faf214-4174-4fec-886b-0d0e8d3af9a2'
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
const AppstleBundlesDiscountsConfig = {
|
|
352
|
+
AppstleBundlesDiscounts: {
|
|
353
|
+
appName: 'appstle-bundles',
|
|
354
|
+
appId: '8909921b-2d24-4d68-9b12-9d045d3dcb0a'
|
|
355
|
+
}
|
|
356
|
+
};
|
|
339
357
|
|
|
340
358
|
exports.AftershipEmailMarketingsmsConfig = AftershipEmailMarketingsmsConfig;
|
|
341
359
|
exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
|
|
360
|
+
exports.AppstleBundlesDiscountsConfig = AppstleBundlesDiscountsConfig;
|
|
342
361
|
exports.BestBuyFulfillmentConfig = BestBuyFulfillmentConfig;
|
|
343
362
|
exports.BfSizeChartSizeGuideConfig = BfSizeChartSizeGuideConfig;
|
|
344
363
|
exports.BoldSubscriptionsConfig = BoldSubscriptionsConfig;
|
|
345
364
|
exports.BonLoyaltyRewardsReferralsConfig = BonLoyaltyRewardsReferralsConfig;
|
|
346
365
|
exports.BoostAISearchDiscoveryConfig = BoostAISearchDiscoveryConfig;
|
|
347
366
|
exports.EasyBundleBuilderSkailamaConfig = EasyBundleBuilderSkailamaConfig;
|
|
367
|
+
exports.EcoboostifyShoppableReelUgcConfig = EcoboostifyShoppableReelUgcConfig;
|
|
348
368
|
exports.EssentialAnnouncementBarConfig = EssentialAnnouncementBarConfig;
|
|
349
369
|
exports.EssentialCountdownTimerBarConfig = EssentialCountdownTimerBarConfig;
|
|
350
370
|
exports.EstimatedDeliveryDatePlusConfig = EstimatedDeliveryDatePlusConfig;
|
|
@@ -373,6 +393,7 @@ exports.ProductOptionsCustomizerConfig = ProductOptionsCustomizerConfig;
|
|
|
373
393
|
exports.PumperBundlesVolumeDiscountConfig = PumperBundlesVolumeDiscountConfig;
|
|
374
394
|
exports.QikifyUpsellConfig = QikifyUpsellConfig;
|
|
375
395
|
exports.RechargeSubscriptionsConfig = RechargeSubscriptionsConfig;
|
|
396
|
+
exports.ReleasitConfig = ReleasitConfig;
|
|
376
397
|
exports.ReviewxpoProductReviewsAppConfig = ReviewxpoProductReviewsAppConfig;
|
|
377
398
|
exports.SegunoEmailMarketingConfig = SegunoEmailMarketingConfig;
|
|
378
399
|
exports.SelleasyConfig = SelleasyConfig;
|
|
@@ -271,6 +271,20 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
271
271
|
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
+
case 'EcoboostifyShoppableReelUgc':
|
|
275
|
+
{
|
|
276
|
+
return {
|
|
277
|
+
...currentSetting,
|
|
278
|
+
playlist_id: appSetting?.['playlistId']
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
case 'Releasit':
|
|
282
|
+
{
|
|
283
|
+
return {
|
|
284
|
+
...currentSetting,
|
|
285
|
+
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
286
|
+
};
|
|
287
|
+
}
|
|
274
288
|
default:
|
|
275
289
|
return currentSetting;
|
|
276
290
|
}
|
|
@@ -1207,7 +1221,31 @@ const QikifyUpsell = {
|
|
|
1207
1221
|
}
|
|
1208
1222
|
}
|
|
1209
1223
|
};
|
|
1224
|
+
const EcoboostifyShoppableReelUgc = {
|
|
1225
|
+
EcoboostifyShoppableReelUgc: {
|
|
1226
|
+
'reel-playlist': {
|
|
1227
|
+
playlist_id: ''
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
};
|
|
1231
|
+
const Releasit = {
|
|
1232
|
+
Releasit: {
|
|
1233
|
+
'button-app-block': {
|
|
1234
|
+
product: '{{product}}'
|
|
1235
|
+
},
|
|
1236
|
+
'form-app-block': {
|
|
1237
|
+
product: '{{product}}'
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
};
|
|
1241
|
+
const AppstleBundlesDiscounts = {
|
|
1242
|
+
AppstleBundlesDiscounts: {
|
|
1243
|
+
'appstle-classic-bundle': null,
|
|
1244
|
+
'appstle-bundle-product-page-build-a-box': null
|
|
1245
|
+
}
|
|
1246
|
+
};
|
|
1210
1247
|
const composeSettingsByWidgetType = {
|
|
1248
|
+
...AppstleBundlesDiscounts,
|
|
1211
1249
|
...HextomCountdownTimerBar,
|
|
1212
1250
|
...EstimatedDeliveryDatePlus,
|
|
1213
1251
|
...OkendoReviewsLoyalty,
|
|
@@ -1263,7 +1301,9 @@ const composeSettingsByWidgetType = {
|
|
|
1263
1301
|
...BfSizeChartSizeGuide,
|
|
1264
1302
|
...HextomFreeShippingBar,
|
|
1265
1303
|
...ShopifySubscriptions,
|
|
1266
|
-
...QikifyUpsell
|
|
1304
|
+
...QikifyUpsell,
|
|
1305
|
+
...EcoboostifyShoppableReelUgc,
|
|
1306
|
+
...Releasit
|
|
1267
1307
|
};
|
|
1268
1308
|
|
|
1269
1309
|
exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
|
|
@@ -58,7 +58,10 @@ const mapShopifyAppMeta = {
|
|
|
58
58
|
...appConfig.BfSizeChartSizeGuideConfig,
|
|
59
59
|
...appConfig.HextomFreeShippingBarConfig,
|
|
60
60
|
...appConfig.ShopifySubscriptionsConfig,
|
|
61
|
-
...appConfig.QikifyUpsellConfig
|
|
61
|
+
...appConfig.QikifyUpsellConfig,
|
|
62
|
+
...appConfig.EcoboostifyShoppableReelUgcConfig,
|
|
63
|
+
...appConfig.ReleasitConfig,
|
|
64
|
+
...appConfig.AppstleBundlesDiscountsConfig
|
|
62
65
|
};
|
|
63
66
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
64
67
|
|
|
@@ -7,7 +7,8 @@ const listAppUpdateNewVersion = [
|
|
|
7
7
|
'Growave',
|
|
8
8
|
'Trustoo',
|
|
9
9
|
'LooxReviews',
|
|
10
|
-
'Stamped'
|
|
10
|
+
'Stamped',
|
|
11
|
+
'Releasit'
|
|
11
12
|
];
|
|
12
13
|
const listThirdPartyRejectAppBlock = {
|
|
13
14
|
YotpoReviews: {
|
|
@@ -21,6 +22,9 @@ const listThirdPartyRejectAppBlock = {
|
|
|
21
22
|
},
|
|
22
23
|
Stamped: {
|
|
23
24
|
conditionToReject: 'settings?.version === "v1"'
|
|
25
|
+
},
|
|
26
|
+
Releasit: {
|
|
27
|
+
conditionToReject: 'settings?.version === "v1"'
|
|
24
28
|
}
|
|
25
29
|
};
|
|
26
30
|
const getAppBlockConfig = (tag, appBlockId, settings)=>{
|
|
@@ -32,7 +32,7 @@ const componentUsingAdvanced = [
|
|
|
32
32
|
'IconList',
|
|
33
33
|
'ProductVariants'
|
|
34
34
|
];
|
|
35
|
-
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext,
|
|
35
|
+
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyLoadImage, ...passProps })=>{
|
|
36
36
|
const item = builder[uid];
|
|
37
37
|
const Component = components[item?.tag];
|
|
38
38
|
if (!Component) {
|
|
@@ -71,7 +71,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
71
71
|
advanced: item.advanced,
|
|
72
72
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
73
73
|
pageContext,
|
|
74
|
-
|
|
74
|
+
enableLazyLoadImage,
|
|
75
75
|
...passProps,
|
|
76
76
|
builderAttrs: {
|
|
77
77
|
...passProps.builderAttrs
|
|
@@ -84,7 +84,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
84
84
|
components,
|
|
85
85
|
customProps,
|
|
86
86
|
pageContext,
|
|
87
|
-
|
|
87
|
+
enableLazyLoadImage
|
|
88
88
|
};
|
|
89
89
|
}),
|
|
90
90
|
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -97,7 +97,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
97
97
|
customProps,
|
|
98
98
|
parentTag: item.tag,
|
|
99
99
|
pageContext,
|
|
100
|
-
|
|
100
|
+
enableLazyLoadImage
|
|
101
101
|
}))) : ''
|
|
102
102
|
});
|
|
103
103
|
}, ()=>{
|
|
@@ -113,7 +113,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
113
113
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
114
114
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
115
115
|
pageContext,
|
|
116
|
-
|
|
116
|
+
enableLazyLoadImage,
|
|
117
117
|
...passProps,
|
|
118
118
|
builderAttrs: {
|
|
119
119
|
...passProps.builderAttrs
|
|
@@ -135,7 +135,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
135
135
|
cssClass: item?.advanced?.cssClass
|
|
136
136
|
},
|
|
137
137
|
pageContext,
|
|
138
|
-
|
|
138
|
+
enableLazyLoadImage,
|
|
139
139
|
...passProps,
|
|
140
140
|
builderAttrs: {
|
|
141
141
|
...passProps.builderAttrs
|
|
@@ -148,7 +148,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
148
148
|
components,
|
|
149
149
|
customProps,
|
|
150
150
|
pageContext,
|
|
151
|
-
|
|
151
|
+
enableLazyLoadImage
|
|
152
152
|
};
|
|
153
153
|
}),
|
|
154
154
|
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -161,7 +161,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
161
161
|
customProps,
|
|
162
162
|
parentTag: item.tag,
|
|
163
163
|
pageContext,
|
|
164
|
-
|
|
164
|
+
enableLazyLoadImage
|
|
165
165
|
}))) : ''
|
|
166
166
|
});
|
|
167
167
|
}, ()=>{
|
|
@@ -177,7 +177,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
177
177
|
cssClass: item?.advanced?.cssClass
|
|
178
178
|
},
|
|
179
179
|
pageContext,
|
|
180
|
-
|
|
180
|
+
enableLazyLoadImage,
|
|
181
181
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
182
182
|
style: componentIconList.includes(item.tag) ? style : null,
|
|
183
183
|
...passProps,
|
|
@@ -8,6 +8,7 @@ import RenderSectionMemo from './RenderSection.js';
|
|
|
8
8
|
|
|
9
9
|
const RenderPreview = ({ uid, ...passProps })=>{
|
|
10
10
|
const item = useBuilderPreviewStore((s)=>s.getItem(uid));
|
|
11
|
+
useBuilderPreviewStore((s)=>s.getState());
|
|
11
12
|
const Component = useBuilderComponent(item?.tag);
|
|
12
13
|
if (!item) return null;
|
|
13
14
|
if (item?.type === 'section') {
|
|
@@ -334,5 +334,23 @@ const QikifyUpsellConfig = {
|
|
|
334
334
|
appId: '2e94b962-8172-4839-8ad9-7837eb8b017a'
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
|
+
const EcoboostifyShoppableReelUgcConfig = {
|
|
338
|
+
EcoboostifyShoppableReelUgc: {
|
|
339
|
+
appName: 'ecoboostify',
|
|
340
|
+
appId: '24110205-fc49-453b-ac2b-ceea2bf6a8f3'
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
const ReleasitConfig = {
|
|
344
|
+
Releasit: {
|
|
345
|
+
appName: 'releasit-cod-form',
|
|
346
|
+
appId: '72faf214-4174-4fec-886b-0d0e8d3af9a2'
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
const AppstleBundlesDiscountsConfig = {
|
|
350
|
+
AppstleBundlesDiscounts: {
|
|
351
|
+
appName: 'appstle-bundles',
|
|
352
|
+
appId: '8909921b-2d24-4d68-9b12-9d045d3dcb0a'
|
|
353
|
+
}
|
|
354
|
+
};
|
|
337
355
|
|
|
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 };
|
|
356
|
+
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, AppstleBundlesDiscountsConfig, BestBuyFulfillmentConfig, BfSizeChartSizeGuideConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, BoostAISearchDiscoveryConfig, EasyBundleBuilderSkailamaConfig, EcoboostifyShoppableReelUgcConfig, 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, ReleasitConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, SeoantTrustBadgesIconConfig, ShopifyFormsConfig, ShopifySubscriptionsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, StampedConfig, SubifySubscriptionsConfig, TrustBadgesBearConfig, TrustedsiteTrustBadgesConfig, TrustooConfig, TrustreviewsProductReviewsConfig, TrustshopProductReviewsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
@@ -269,6 +269,20 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
269
269
|
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
|
+
case 'EcoboostifyShoppableReelUgc':
|
|
273
|
+
{
|
|
274
|
+
return {
|
|
275
|
+
...currentSetting,
|
|
276
|
+
playlist_id: appSetting?.['playlistId']
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
case 'Releasit':
|
|
280
|
+
{
|
|
281
|
+
return {
|
|
282
|
+
...currentSetting,
|
|
283
|
+
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
284
|
+
};
|
|
285
|
+
}
|
|
272
286
|
default:
|
|
273
287
|
return currentSetting;
|
|
274
288
|
}
|
|
@@ -1205,7 +1219,31 @@ const QikifyUpsell = {
|
|
|
1205
1219
|
}
|
|
1206
1220
|
}
|
|
1207
1221
|
};
|
|
1222
|
+
const EcoboostifyShoppableReelUgc = {
|
|
1223
|
+
EcoboostifyShoppableReelUgc: {
|
|
1224
|
+
'reel-playlist': {
|
|
1225
|
+
playlist_id: ''
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
};
|
|
1229
|
+
const Releasit = {
|
|
1230
|
+
Releasit: {
|
|
1231
|
+
'button-app-block': {
|
|
1232
|
+
product: '{{product}}'
|
|
1233
|
+
},
|
|
1234
|
+
'form-app-block': {
|
|
1235
|
+
product: '{{product}}'
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
};
|
|
1239
|
+
const AppstleBundlesDiscounts = {
|
|
1240
|
+
AppstleBundlesDiscounts: {
|
|
1241
|
+
'appstle-classic-bundle': null,
|
|
1242
|
+
'appstle-bundle-product-page-build-a-box': null
|
|
1243
|
+
}
|
|
1244
|
+
};
|
|
1208
1245
|
const composeSettingsByWidgetType = {
|
|
1246
|
+
...AppstleBundlesDiscounts,
|
|
1209
1247
|
...HextomCountdownTimerBar,
|
|
1210
1248
|
...EstimatedDeliveryDatePlus,
|
|
1211
1249
|
...OkendoReviewsLoyalty,
|
|
@@ -1261,7 +1299,9 @@ const composeSettingsByWidgetType = {
|
|
|
1261
1299
|
...BfSizeChartSizeGuide,
|
|
1262
1300
|
...HextomFreeShippingBar,
|
|
1263
1301
|
...ShopifySubscriptions,
|
|
1264
|
-
...QikifyUpsell
|
|
1302
|
+
...QikifyUpsell,
|
|
1303
|
+
...EcoboostifyShoppableReelUgc,
|
|
1304
|
+
...Releasit
|
|
1265
1305
|
};
|
|
1266
1306
|
|
|
1267
1307
|
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, QikifyUpsellConfig } 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, EcoboostifyShoppableReelUgcConfig, ReleasitConfig, AppstleBundlesDiscountsConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -56,7 +56,10 @@ const mapShopifyAppMeta = {
|
|
|
56
56
|
...BfSizeChartSizeGuideConfig,
|
|
57
57
|
...HextomFreeShippingBarConfig,
|
|
58
58
|
...ShopifySubscriptionsConfig,
|
|
59
|
-
...QikifyUpsellConfig
|
|
59
|
+
...QikifyUpsellConfig,
|
|
60
|
+
...EcoboostifyShoppableReelUgcConfig,
|
|
61
|
+
...ReleasitConfig,
|
|
62
|
+
...AppstleBundlesDiscountsConfig
|
|
60
63
|
};
|
|
61
64
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
62
65
|
|
|
@@ -5,7 +5,8 @@ const listAppUpdateNewVersion = [
|
|
|
5
5
|
'Growave',
|
|
6
6
|
'Trustoo',
|
|
7
7
|
'LooxReviews',
|
|
8
|
-
'Stamped'
|
|
8
|
+
'Stamped',
|
|
9
|
+
'Releasit'
|
|
9
10
|
];
|
|
10
11
|
const listThirdPartyRejectAppBlock = {
|
|
11
12
|
YotpoReviews: {
|
|
@@ -19,6 +20,9 @@ const listThirdPartyRejectAppBlock = {
|
|
|
19
20
|
},
|
|
20
21
|
Stamped: {
|
|
21
22
|
conditionToReject: 'settings?.version === "v1"'
|
|
23
|
+
},
|
|
24
|
+
Releasit: {
|
|
25
|
+
conditionToReject: 'settings?.version === "v1"'
|
|
22
26
|
}
|
|
23
27
|
};
|
|
24
28
|
const getAppBlockConfig = (tag, appBlockId, settings)=>{
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7438,6 +7438,7 @@ type BaseProps<Setting = unknown, Style = unknown, Advanced = AdvancedType> = {
|
|
|
7438
7438
|
styles?: Style;
|
|
7439
7439
|
setting?: Setting;
|
|
7440
7440
|
advanced?: Advanced;
|
|
7441
|
+
enableLazyLoadImage?: boolean;
|
|
7441
7442
|
};
|
|
7442
7443
|
type BasePropsWrap<S = unknown, Style = unknown, A = Record<string, any>> = BaseProps<S, Style, A> & {
|
|
7443
7444
|
builderAttrs?: Record<string, any>;
|
|
@@ -7489,7 +7490,7 @@ type StampedWidgetTypeV2 = 'main-widget' | 'product-rating-image' | 'badge-doubl
|
|
|
7489
7490
|
type LaiProductReviewsWidgetType = 'reviews_widget' | 'star_ratings' | 'homepage_reviews' | 'happy_customer_reviews' | 'star_ratings_in_list' | 'advanced_widget';
|
|
7490
7491
|
type LaiProductReviewsAdvancedWidgetType = 'cardCarousel' | 'testimonialCarousel' | 'mediaGallery' | 'cardGrid';
|
|
7491
7492
|
type YotpoReviewsWidgetType = 'reviews' | 'star-rating' | 'reviewHighlights';
|
|
7492
|
-
type BogosWidgetType = 'icon' | 'thumnail' | 'slider' | 'message' | 'classic-bundle' | 'quantity-break' | 'mix-match'
|
|
7493
|
+
type BogosWidgetType = 'icon' | 'thumnail' | 'slider' | 'message' | 'classic-bundle' | 'quantity-break' | 'mix-match';
|
|
7493
7494
|
type PreOrderNowWodWidgetType = 'app-block' | 'popups-block';
|
|
7494
7495
|
type TagShopWidgetType = 'homeLandingGalleries' | 'productGalleries' | 'tagGalleries';
|
|
7495
7496
|
type AirProductReview = 'review_box' | 'star_rating' | 'review_carousel';
|
|
@@ -8883,6 +8884,7 @@ type PageContext = {
|
|
|
8883
8884
|
pageType?: string;
|
|
8884
8885
|
isTranslateWithLocale?: boolean;
|
|
8885
8886
|
sectionName?: string;
|
|
8887
|
+
isOptimizePlan?: boolean;
|
|
8886
8888
|
};
|
|
8887
8889
|
type OnlyOne<T, U> = (T & {
|
|
8888
8890
|
[K in keyof U]?: never;
|
|
@@ -35914,10 +35916,10 @@ type Props = {
|
|
|
35914
35916
|
components: Record<string, any>;
|
|
35915
35917
|
extraFiles?: ExtraFiles;
|
|
35916
35918
|
pageContext?: PageContext;
|
|
35917
|
-
|
|
35919
|
+
enableLazyLoadImage?: boolean;
|
|
35918
35920
|
[key: string]: any;
|
|
35919
35921
|
};
|
|
35920
|
-
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext,
|
|
35922
|
+
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, enableLazyLoadImage, ...passProps }: Props) => {
|
|
35921
35923
|
liquid: string;
|
|
35922
35924
|
extraFiles: ExtraFiles;
|
|
35923
35925
|
};
|
|
@@ -35993,6 +35995,7 @@ type BuilderPreviewContextProps = {
|
|
|
35993
35995
|
group?: GroupPropType;
|
|
35994
35996
|
}) => void;
|
|
35995
35997
|
getItem: (id: string) => BuilderEntity | undefined;
|
|
35998
|
+
getState: () => BuilderState;
|
|
35996
35999
|
removeItem: (id: string) => void;
|
|
35997
36000
|
forceChangeState: (data: BuilderState) => void;
|
|
35998
36001
|
initState: (data: BuilderEntityNested | BuilderEntityNested[]) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0-staging.27",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"type-check": "yarn tsc --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@gem-sdk/adapter-shopify": "2.1.
|
|
31
|
-
"@gem-sdk/styles": "2.1.
|
|
30
|
+
"@gem-sdk/adapter-shopify": "2.1.27-staging.0",
|
|
31
|
+
"@gem-sdk/styles": "2.1.27-staging.13",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|