@gem-sdk/core 2.2.0-staging.33 → 2.2.0
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 +0 -1
- package/dist/cjs/contexts/BuilderPreviewContext.js +0 -3
- package/dist/cjs/helpers/third-party/appConfig.js +0 -7
- package/dist/cjs/helpers/third-party/appSetting.js +1 -19
- package/dist/cjs/helpers/third-party/constant.js +0 -1
- package/dist/cjs/helpers/third-party/getAppBlockConfig.js +1 -5
- package/dist/esm/components/Render.liquid.js +9 -9
- package/dist/esm/components/RenderPreview.js +0 -1
- package/dist/esm/contexts/BuilderPreviewContext.js +0 -3
- package/dist/esm/helpers/third-party/appConfig.js +1 -7
- package/dist/esm/helpers/third-party/appSetting.js +1 -19
- package/dist/esm/helpers/third-party/constant.js +1 -2
- package/dist/esm/helpers/third-party/getAppBlockConfig.js +1 -5
- package/dist/types/index.d.ts +3 -6
- 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,7 +12,6 @@ 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());
|
|
16
15
|
const Component = BuilderComponent.useBuilderComponent(item?.tag);
|
|
17
16
|
if (!item) return null;
|
|
18
17
|
if (item?.type === 'section') {
|
|
@@ -342,12 +342,6 @@ const EcoboostifyShoppableReelUgcConfig = {
|
|
|
342
342
|
appId: '24110205-fc49-453b-ac2b-ceea2bf6a8f3'
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
|
-
const ReleasitConfig = {
|
|
346
|
-
Releasit: {
|
|
347
|
-
appName: 'releasit-cod-form',
|
|
348
|
-
appId: '72faf214-4174-4fec-886b-0d0e8d3af9a2'
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
345
|
const AppstleBundlesDiscountsConfig = {
|
|
352
346
|
AppstleBundlesDiscounts: {
|
|
353
347
|
appName: 'appstle-bundles',
|
|
@@ -393,7 +387,6 @@ exports.ProductOptionsCustomizerConfig = ProductOptionsCustomizerConfig;
|
|
|
393
387
|
exports.PumperBundlesVolumeDiscountConfig = PumperBundlesVolumeDiscountConfig;
|
|
394
388
|
exports.QikifyUpsellConfig = QikifyUpsellConfig;
|
|
395
389
|
exports.RechargeSubscriptionsConfig = RechargeSubscriptionsConfig;
|
|
396
|
-
exports.ReleasitConfig = ReleasitConfig;
|
|
397
390
|
exports.ReviewxpoProductReviewsAppConfig = ReviewxpoProductReviewsAppConfig;
|
|
398
391
|
exports.SegunoEmailMarketingConfig = SegunoEmailMarketingConfig;
|
|
399
392
|
exports.SelleasyConfig = SelleasyConfig;
|
|
@@ -278,13 +278,6 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
278
278
|
playlist_id: appSetting?.['playlistId']
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
case 'Releasit':
|
|
282
|
-
{
|
|
283
|
-
return {
|
|
284
|
-
...currentSetting,
|
|
285
|
-
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
281
|
default:
|
|
289
282
|
return currentSetting;
|
|
290
283
|
}
|
|
@@ -1228,16 +1221,6 @@ const EcoboostifyShoppableReelUgc = {
|
|
|
1228
1221
|
}
|
|
1229
1222
|
}
|
|
1230
1223
|
};
|
|
1231
|
-
const Releasit = {
|
|
1232
|
-
Releasit: {
|
|
1233
|
-
'button-app-block': {
|
|
1234
|
-
product: '{{product}}'
|
|
1235
|
-
},
|
|
1236
|
-
'form-app-block': {
|
|
1237
|
-
product: '{{product}}'
|
|
1238
|
-
}
|
|
1239
|
-
}
|
|
1240
|
-
};
|
|
1241
1224
|
const AppstleBundlesDiscounts = {
|
|
1242
1225
|
AppstleBundlesDiscounts: {
|
|
1243
1226
|
'appstle-classic-bundle': null,
|
|
@@ -1302,8 +1285,7 @@ const composeSettingsByWidgetType = {
|
|
|
1302
1285
|
...HextomFreeShippingBar,
|
|
1303
1286
|
...ShopifySubscriptions,
|
|
1304
1287
|
...QikifyUpsell,
|
|
1305
|
-
...EcoboostifyShoppableReelUgc
|
|
1306
|
-
...Releasit
|
|
1288
|
+
...EcoboostifyShoppableReelUgc
|
|
1307
1289
|
};
|
|
1308
1290
|
|
|
1309
1291
|
exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
|
|
@@ -60,7 +60,6 @@ const mapShopifyAppMeta = {
|
|
|
60
60
|
...appConfig.ShopifySubscriptionsConfig,
|
|
61
61
|
...appConfig.QikifyUpsellConfig,
|
|
62
62
|
...appConfig.EcoboostifyShoppableReelUgcConfig,
|
|
63
|
-
...appConfig.ReleasitConfig,
|
|
64
63
|
...appConfig.AppstleBundlesDiscountsConfig
|
|
65
64
|
};
|
|
66
65
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
@@ -7,8 +7,7 @@ const listAppUpdateNewVersion = [
|
|
|
7
7
|
'Growave',
|
|
8
8
|
'Trustoo',
|
|
9
9
|
'LooxReviews',
|
|
10
|
-
'Stamped'
|
|
11
|
-
'Releasit'
|
|
10
|
+
'Stamped'
|
|
12
11
|
];
|
|
13
12
|
const listThirdPartyRejectAppBlock = {
|
|
14
13
|
YotpoReviews: {
|
|
@@ -22,9 +21,6 @@ const listThirdPartyRejectAppBlock = {
|
|
|
22
21
|
},
|
|
23
22
|
Stamped: {
|
|
24
23
|
conditionToReject: 'settings?.version === "v1"'
|
|
25
|
-
},
|
|
26
|
-
Releasit: {
|
|
27
|
-
conditionToReject: 'settings?.version === "v1"'
|
|
28
24
|
}
|
|
29
25
|
};
|
|
30
26
|
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,7 +8,6 @@ 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());
|
|
12
11
|
const Component = useBuilderComponent(item?.tag);
|
|
13
12
|
if (!item) return null;
|
|
14
13
|
if (item?.type === 'section') {
|
|
@@ -340,12 +340,6 @@ const EcoboostifyShoppableReelUgcConfig = {
|
|
|
340
340
|
appId: '24110205-fc49-453b-ac2b-ceea2bf6a8f3'
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
|
-
const ReleasitConfig = {
|
|
344
|
-
Releasit: {
|
|
345
|
-
appName: 'releasit-cod-form',
|
|
346
|
-
appId: '72faf214-4174-4fec-886b-0d0e8d3af9a2'
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
343
|
const AppstleBundlesDiscountsConfig = {
|
|
350
344
|
AppstleBundlesDiscounts: {
|
|
351
345
|
appName: 'appstle-bundles',
|
|
@@ -353,4 +347,4 @@ const AppstleBundlesDiscountsConfig = {
|
|
|
353
347
|
}
|
|
354
348
|
};
|
|
355
349
|
|
|
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,
|
|
350
|
+
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, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, SeoantTrustBadgesIconConfig, ShopifyFormsConfig, ShopifySubscriptionsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, StampedConfig, SubifySubscriptionsConfig, TrustBadgesBearConfig, TrustedsiteTrustBadgesConfig, TrustooConfig, TrustreviewsProductReviewsConfig, TrustshopProductReviewsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
@@ -276,13 +276,6 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
276
276
|
playlist_id: appSetting?.['playlistId']
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
|
-
case 'Releasit':
|
|
280
|
-
{
|
|
281
|
-
return {
|
|
282
|
-
...currentSetting,
|
|
283
|
-
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
279
|
default:
|
|
287
280
|
return currentSetting;
|
|
288
281
|
}
|
|
@@ -1226,16 +1219,6 @@ const EcoboostifyShoppableReelUgc = {
|
|
|
1226
1219
|
}
|
|
1227
1220
|
}
|
|
1228
1221
|
};
|
|
1229
|
-
const Releasit = {
|
|
1230
|
-
Releasit: {
|
|
1231
|
-
'button-app-block': {
|
|
1232
|
-
product: '{{product}}'
|
|
1233
|
-
},
|
|
1234
|
-
'form-app-block': {
|
|
1235
|
-
product: '{{product}}'
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
};
|
|
1239
1222
|
const AppstleBundlesDiscounts = {
|
|
1240
1223
|
AppstleBundlesDiscounts: {
|
|
1241
1224
|
'appstle-classic-bundle': null,
|
|
@@ -1300,8 +1283,7 @@ const composeSettingsByWidgetType = {
|
|
|
1300
1283
|
...HextomFreeShippingBar,
|
|
1301
1284
|
...ShopifySubscriptions,
|
|
1302
1285
|
...QikifyUpsell,
|
|
1303
|
-
...EcoboostifyShoppableReelUgc
|
|
1304
|
-
...Releasit
|
|
1286
|
+
...EcoboostifyShoppableReelUgc
|
|
1305
1287
|
};
|
|
1306
1288
|
|
|
1307
1289
|
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, EcoboostifyShoppableReelUgcConfig,
|
|
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, AppstleBundlesDiscountsConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -58,7 +58,6 @@ const mapShopifyAppMeta = {
|
|
|
58
58
|
...ShopifySubscriptionsConfig,
|
|
59
59
|
...QikifyUpsellConfig,
|
|
60
60
|
...EcoboostifyShoppableReelUgcConfig,
|
|
61
|
-
...ReleasitConfig,
|
|
62
61
|
...AppstleBundlesDiscountsConfig
|
|
63
62
|
};
|
|
64
63
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
@@ -5,8 +5,7 @@ const listAppUpdateNewVersion = [
|
|
|
5
5
|
'Growave',
|
|
6
6
|
'Trustoo',
|
|
7
7
|
'LooxReviews',
|
|
8
|
-
'Stamped'
|
|
9
|
-
'Releasit'
|
|
8
|
+
'Stamped'
|
|
10
9
|
];
|
|
11
10
|
const listThirdPartyRejectAppBlock = {
|
|
12
11
|
YotpoReviews: {
|
|
@@ -20,9 +19,6 @@ const listThirdPartyRejectAppBlock = {
|
|
|
20
19
|
},
|
|
21
20
|
Stamped: {
|
|
22
21
|
conditionToReject: 'settings?.version === "v1"'
|
|
23
|
-
},
|
|
24
|
-
Releasit: {
|
|
25
|
-
conditionToReject: 'settings?.version === "v1"'
|
|
26
22
|
}
|
|
27
23
|
};
|
|
28
24
|
const getAppBlockConfig = (tag, appBlockId, settings)=>{
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7438,7 +7438,6 @@ type BaseProps<Setting = unknown, Style = unknown, Advanced = AdvancedType> = {
|
|
|
7438
7438
|
styles?: Style;
|
|
7439
7439
|
setting?: Setting;
|
|
7440
7440
|
advanced?: Advanced;
|
|
7441
|
-
enableLazyLoadImage?: boolean;
|
|
7442
7441
|
};
|
|
7443
7442
|
type BasePropsWrap<S = unknown, Style = unknown, A = Record<string, any>> = BaseProps<S, Style, A> & {
|
|
7444
7443
|
builderAttrs?: Record<string, any>;
|
|
@@ -7490,7 +7489,7 @@ type StampedWidgetTypeV2 = 'main-widget' | 'product-rating-image' | 'badge-doubl
|
|
|
7490
7489
|
type LaiProductReviewsWidgetType = 'reviews_widget' | 'star_ratings' | 'homepage_reviews' | 'happy_customer_reviews' | 'star_ratings_in_list' | 'advanced_widget';
|
|
7491
7490
|
type LaiProductReviewsAdvancedWidgetType = 'cardCarousel' | 'testimonialCarousel' | 'mediaGallery' | 'cardGrid';
|
|
7492
7491
|
type YotpoReviewsWidgetType = 'reviews' | 'star-rating' | 'reviewHighlights';
|
|
7493
|
-
type BogosWidgetType = 'icon' | 'thumnail' | 'slider' | 'message' | 'classic-bundle' | 'quantity-break' | 'mix-match';
|
|
7492
|
+
type BogosWidgetType = 'icon' | 'thumnail' | 'slider' | 'message' | 'classic-bundle' | 'quantity-break' | 'mix-match' | 'classic-bundle';
|
|
7494
7493
|
type PreOrderNowWodWidgetType = 'app-block' | 'popups-block';
|
|
7495
7494
|
type TagShopWidgetType = 'homeLandingGalleries' | 'productGalleries' | 'tagGalleries';
|
|
7496
7495
|
type AirProductReview = 'review_box' | 'star_rating' | 'review_carousel';
|
|
@@ -8884,7 +8883,6 @@ type PageContext = {
|
|
|
8884
8883
|
pageType?: string;
|
|
8885
8884
|
isTranslateWithLocale?: boolean;
|
|
8886
8885
|
sectionName?: string;
|
|
8887
|
-
isOptimizePlan?: boolean;
|
|
8888
8886
|
};
|
|
8889
8887
|
type OnlyOne<T, U> = (T & {
|
|
8890
8888
|
[K in keyof U]?: never;
|
|
@@ -35916,10 +35914,10 @@ type Props = {
|
|
|
35916
35914
|
components: Record<string, any>;
|
|
35917
35915
|
extraFiles?: ExtraFiles;
|
|
35918
35916
|
pageContext?: PageContext;
|
|
35919
|
-
|
|
35917
|
+
enableLazyloadImage?: boolean;
|
|
35920
35918
|
[key: string]: any;
|
|
35921
35919
|
};
|
|
35922
|
-
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext,
|
|
35920
|
+
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, enableLazyloadImage, ...passProps }: Props) => {
|
|
35923
35921
|
liquid: string;
|
|
35924
35922
|
extraFiles: ExtraFiles;
|
|
35925
35923
|
};
|
|
@@ -35995,7 +35993,6 @@ type BuilderPreviewContextProps = {
|
|
|
35995
35993
|
group?: GroupPropType;
|
|
35996
35994
|
}) => void;
|
|
35997
35995
|
getItem: (id: string) => BuilderEntity | undefined;
|
|
35998
|
-
getState: () => BuilderState;
|
|
35999
35996
|
removeItem: (id: string) => void;
|
|
36000
35997
|
forceChangeState: (data: BuilderState) => void;
|
|
36001
35998
|
initState: (data: BuilderEntityNested | BuilderEntityNested[]) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "2.2.0
|
|
3
|
+
"version": "2.2.0",
|
|
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.36",
|
|
31
|
+
"@gem-sdk/styles": "2.1.31",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|