@gem-sdk/core 2.1.40 → 2.2.0-staging.29
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/RenderCustomCode.js +5 -1
- package/dist/cjs/components/RenderPreview.js +1 -0
- package/dist/cjs/contexts/BuilderPreviewContext.js +3 -0
- package/dist/cjs/helpers/third-party/appConfig.js +14 -0
- package/dist/cjs/helpers/third-party/appSetting.js +26 -1
- package/dist/cjs/helpers/third-party/constant.js +3 -1
- package/dist/cjs/helpers/third-party/getAppBlockConfig.js +5 -1
- package/dist/esm/components/Render.liquid.js +9 -9
- package/dist/esm/components/RenderCustomCode.js +5 -1
- package/dist/esm/components/RenderPreview.js +1 -0
- package/dist/esm/contexts/BuilderPreviewContext.js +3 -0
- package/dist/esm/helpers/third-party/appConfig.js +13 -1
- package/dist/esm/helpers/third-party/appSetting.js +26 -1
- package/dist/esm/helpers/third-party/constant.js +4 -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,
|
|
@@ -20,6 +20,10 @@ require('swr/mutation');
|
|
|
20
20
|
require('vanilla-lazyload');
|
|
21
21
|
require('../hooks/useCartUI.js');
|
|
22
22
|
|
|
23
|
+
const hasNonEmptyCSSRules = (css)=>{
|
|
24
|
+
const regex = /[^{]+\{\s*\}/g;
|
|
25
|
+
return !regex.test(css);
|
|
26
|
+
};
|
|
23
27
|
const RenderCustomCode = ({ uid, advanced })=>{
|
|
24
28
|
const mode = shop.useEditorMode();
|
|
25
29
|
const { css, javascript, rootClassName } = advanced?.editorData || {};
|
|
@@ -41,7 +45,7 @@ const RenderCustomCode = ({ uid, advanced })=>{
|
|
|
41
45
|
return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
42
46
|
children: [
|
|
43
47
|
/*#__PURE__*/ jsxRuntime.jsx(Head, {
|
|
44
|
-
children: !!css && /*#__PURE__*/ jsxRuntime.jsx("style", {
|
|
48
|
+
children: !!css && hasNonEmptyCSSRules(replacedCSS) && /*#__PURE__*/ jsxRuntime.jsx("style", {
|
|
45
49
|
id: mapId['css'],
|
|
46
50
|
dangerouslySetInnerHTML: {
|
|
47
51
|
__html: replacedCSS
|
|
@@ -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') {
|
|
@@ -342,9 +342,22 @@ 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
|
+
const AppstleBundlesDiscountsConfig = {
|
|
352
|
+
AppstleBundlesDiscounts: {
|
|
353
|
+
appName: 'appstle-bundles',
|
|
354
|
+
appId: '8909921b-2d24-4d68-9b12-9d045d3dcb0a'
|
|
355
|
+
}
|
|
356
|
+
};
|
|
345
357
|
|
|
346
358
|
exports.AftershipEmailMarketingsmsConfig = AftershipEmailMarketingsmsConfig;
|
|
347
359
|
exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
|
|
360
|
+
exports.AppstleBundlesDiscountsConfig = AppstleBundlesDiscountsConfig;
|
|
348
361
|
exports.BestBuyFulfillmentConfig = BestBuyFulfillmentConfig;
|
|
349
362
|
exports.BfSizeChartSizeGuideConfig = BfSizeChartSizeGuideConfig;
|
|
350
363
|
exports.BoldSubscriptionsConfig = BoldSubscriptionsConfig;
|
|
@@ -380,6 +393,7 @@ exports.ProductOptionsCustomizerConfig = ProductOptionsCustomizerConfig;
|
|
|
380
393
|
exports.PumperBundlesVolumeDiscountConfig = PumperBundlesVolumeDiscountConfig;
|
|
381
394
|
exports.QikifyUpsellConfig = QikifyUpsellConfig;
|
|
382
395
|
exports.RechargeSubscriptionsConfig = RechargeSubscriptionsConfig;
|
|
396
|
+
exports.ReleasitConfig = ReleasitConfig;
|
|
383
397
|
exports.ReviewxpoProductReviewsAppConfig = ReviewxpoProductReviewsAppConfig;
|
|
384
398
|
exports.SegunoEmailMarketingConfig = SegunoEmailMarketingConfig;
|
|
385
399
|
exports.SelleasyConfig = SelleasyConfig;
|
|
@@ -278,6 +278,13 @@ 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
|
+
}
|
|
281
288
|
default:
|
|
282
289
|
return currentSetting;
|
|
283
290
|
}
|
|
@@ -1221,7 +1228,24 @@ const EcoboostifyShoppableReelUgc = {
|
|
|
1221
1228
|
}
|
|
1222
1229
|
}
|
|
1223
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
|
+
};
|
|
1224
1247
|
const composeSettingsByWidgetType = {
|
|
1248
|
+
...AppstleBundlesDiscounts,
|
|
1225
1249
|
...HextomCountdownTimerBar,
|
|
1226
1250
|
...EstimatedDeliveryDatePlus,
|
|
1227
1251
|
...OkendoReviewsLoyalty,
|
|
@@ -1278,7 +1302,8 @@ const composeSettingsByWidgetType = {
|
|
|
1278
1302
|
...HextomFreeShippingBar,
|
|
1279
1303
|
...ShopifySubscriptions,
|
|
1280
1304
|
...QikifyUpsell,
|
|
1281
|
-
...EcoboostifyShoppableReelUgc
|
|
1305
|
+
...EcoboostifyShoppableReelUgc,
|
|
1306
|
+
...Releasit
|
|
1282
1307
|
};
|
|
1283
1308
|
|
|
1284
1309
|
exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
|
|
@@ -59,7 +59,9 @@ const mapShopifyAppMeta = {
|
|
|
59
59
|
...appConfig.HextomFreeShippingBarConfig,
|
|
60
60
|
...appConfig.ShopifySubscriptionsConfig,
|
|
61
61
|
...appConfig.QikifyUpsellConfig,
|
|
62
|
-
...appConfig.EcoboostifyShoppableReelUgcConfig
|
|
62
|
+
...appConfig.EcoboostifyShoppableReelUgcConfig,
|
|
63
|
+
...appConfig.ReleasitConfig,
|
|
64
|
+
...appConfig.AppstleBundlesDiscountsConfig
|
|
63
65
|
};
|
|
64
66
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
65
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,
|
|
@@ -16,6 +16,10 @@ import 'swr/mutation';
|
|
|
16
16
|
import 'vanilla-lazyload';
|
|
17
17
|
import '../hooks/useCartUI.js';
|
|
18
18
|
|
|
19
|
+
const hasNonEmptyCSSRules = (css)=>{
|
|
20
|
+
const regex = /[^{]+\{\s*\}/g;
|
|
21
|
+
return !regex.test(css);
|
|
22
|
+
};
|
|
19
23
|
const RenderCustomCode = ({ uid, advanced })=>{
|
|
20
24
|
const mode = useEditorMode();
|
|
21
25
|
const { css, javascript, rootClassName } = advanced?.editorData || {};
|
|
@@ -37,7 +41,7 @@ const RenderCustomCode = ({ uid, advanced })=>{
|
|
|
37
41
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
38
42
|
children: [
|
|
39
43
|
/*#__PURE__*/ jsx(Head, {
|
|
40
|
-
children: !!css && /*#__PURE__*/ jsx("style", {
|
|
44
|
+
children: !!css && hasNonEmptyCSSRules(replacedCSS) && /*#__PURE__*/ jsx("style", {
|
|
41
45
|
id: mapId['css'],
|
|
42
46
|
dangerouslySetInnerHTML: {
|
|
43
47
|
__html: replacedCSS
|
|
@@ -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') {
|
|
@@ -340,5 +340,17 @@ 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
|
+
const AppstleBundlesDiscountsConfig = {
|
|
350
|
+
AppstleBundlesDiscounts: {
|
|
351
|
+
appName: 'appstle-bundles',
|
|
352
|
+
appId: '8909921b-2d24-4d68-9b12-9d045d3dcb0a'
|
|
353
|
+
}
|
|
354
|
+
};
|
|
343
355
|
|
|
344
|
-
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, 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 };
|
|
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 };
|
|
@@ -276,6 +276,13 @@ 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
|
+
}
|
|
279
286
|
default:
|
|
280
287
|
return currentSetting;
|
|
281
288
|
}
|
|
@@ -1219,7 +1226,24 @@ const EcoboostifyShoppableReelUgc = {
|
|
|
1219
1226
|
}
|
|
1220
1227
|
}
|
|
1221
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
|
+
};
|
|
1222
1245
|
const composeSettingsByWidgetType = {
|
|
1246
|
+
...AppstleBundlesDiscounts,
|
|
1223
1247
|
...HextomCountdownTimerBar,
|
|
1224
1248
|
...EstimatedDeliveryDatePlus,
|
|
1225
1249
|
...OkendoReviewsLoyalty,
|
|
@@ -1276,7 +1300,8 @@ const composeSettingsByWidgetType = {
|
|
|
1276
1300
|
...HextomFreeShippingBar,
|
|
1277
1301
|
...ShopifySubscriptions,
|
|
1278
1302
|
...QikifyUpsell,
|
|
1279
|
-
...EcoboostifyShoppableReelUgc
|
|
1303
|
+
...EcoboostifyShoppableReelUgc,
|
|
1304
|
+
...Releasit
|
|
1280
1305
|
};
|
|
1281
1306
|
|
|
1282
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, EcoboostifyShoppableReelUgcConfig } 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,
|
|
@@ -57,7 +57,9 @@ const mapShopifyAppMeta = {
|
|
|
57
57
|
...HextomFreeShippingBarConfig,
|
|
58
58
|
...ShopifySubscriptionsConfig,
|
|
59
59
|
...QikifyUpsellConfig,
|
|
60
|
-
...EcoboostifyShoppableReelUgcConfig
|
|
60
|
+
...EcoboostifyShoppableReelUgcConfig,
|
|
61
|
+
...ReleasitConfig,
|
|
62
|
+
...AppstleBundlesDiscountsConfig
|
|
61
63
|
};
|
|
62
64
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
63
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.29",
|
|
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": {
|