@gem-sdk/core 2.2.0-staging.30 → 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 +10 -11
- package/dist/cjs/components/RenderCustomCode.js +1 -2
- 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 +10 -11
- package/dist/esm/components/RenderCustomCode.js +1 -2
- 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
- package/dist/cjs/helpers/custom-cdoe.js +0 -8
- package/dist/esm/helpers/custom-cdoe.js +0 -6
|
@@ -20,7 +20,6 @@ require('dayjs');
|
|
|
20
20
|
var composeAdvanceStyle = require('../helpers/compose-advance-style.js');
|
|
21
21
|
var convert = require('../helpers/convert.js');
|
|
22
22
|
var render = require('../helpers/render.js');
|
|
23
|
-
var customCdoe = require('../helpers/custom-cdoe.js');
|
|
24
23
|
|
|
25
24
|
const componentsRenderWithParentId = [
|
|
26
25
|
'CarouselItem'
|
|
@@ -37,7 +36,7 @@ const componentUsingAdvanced = [
|
|
|
37
36
|
'IconList',
|
|
38
37
|
'ProductVariants'
|
|
39
38
|
];
|
|
40
|
-
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext,
|
|
39
|
+
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
|
|
41
40
|
const item = builder[uid];
|
|
42
41
|
const Component = components[item?.tag];
|
|
43
42
|
if (!Component) {
|
|
@@ -76,7 +75,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
76
75
|
advanced: item.advanced,
|
|
77
76
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
78
77
|
pageContext,
|
|
79
|
-
|
|
78
|
+
enableLazyloadImage,
|
|
80
79
|
...passProps,
|
|
81
80
|
builderAttrs: {
|
|
82
81
|
...passProps.builderAttrs
|
|
@@ -89,7 +88,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
89
88
|
components,
|
|
90
89
|
customProps,
|
|
91
90
|
pageContext,
|
|
92
|
-
|
|
91
|
+
enableLazyloadImage
|
|
93
92
|
};
|
|
94
93
|
}),
|
|
95
94
|
children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -102,7 +101,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
102
101
|
customProps,
|
|
103
102
|
parentTag: item.tag,
|
|
104
103
|
pageContext,
|
|
105
|
-
|
|
104
|
+
enableLazyloadImage
|
|
106
105
|
}))) : ''
|
|
107
106
|
});
|
|
108
107
|
}, ()=>{
|
|
@@ -118,7 +117,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
118
117
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
119
118
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
120
119
|
pageContext,
|
|
121
|
-
|
|
120
|
+
enableLazyloadImage,
|
|
122
121
|
...passProps,
|
|
123
122
|
builderAttrs: {
|
|
124
123
|
...passProps.builderAttrs
|
|
@@ -140,7 +139,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
140
139
|
cssClass: item?.advanced?.cssClass
|
|
141
140
|
},
|
|
142
141
|
pageContext,
|
|
143
|
-
|
|
142
|
+
enableLazyloadImage,
|
|
144
143
|
...passProps,
|
|
145
144
|
builderAttrs: {
|
|
146
145
|
...passProps.builderAttrs
|
|
@@ -153,7 +152,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
153
152
|
components,
|
|
154
153
|
customProps,
|
|
155
154
|
pageContext,
|
|
156
|
-
|
|
155
|
+
enableLazyloadImage
|
|
157
156
|
};
|
|
158
157
|
}),
|
|
159
158
|
children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -166,7 +165,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
166
165
|
customProps,
|
|
167
166
|
parentTag: item.tag,
|
|
168
167
|
pageContext,
|
|
169
|
-
|
|
168
|
+
enableLazyloadImage
|
|
170
169
|
}))) : ''
|
|
171
170
|
});
|
|
172
171
|
}, ()=>{
|
|
@@ -182,7 +181,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
182
181
|
cssClass: item?.advanced?.cssClass
|
|
183
182
|
},
|
|
184
183
|
pageContext,
|
|
185
|
-
|
|
184
|
+
enableLazyloadImage,
|
|
186
185
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
187
186
|
style: componentIconList.includes(item.tag) ? style : null,
|
|
188
187
|
...passProps,
|
|
@@ -207,7 +206,7 @@ const RenderCustomCode = (item)=>{
|
|
|
207
206
|
const { css, javascript, rootClassName } = item.advanced?.editorData || {};
|
|
208
207
|
const replacedCSS = css?.replaceAll(rootClassName, item.uid);
|
|
209
208
|
const replacedJS = javascript?.replaceAll(rootClassName, item.uid);
|
|
210
|
-
const cssCode = render.RenderIf(!!css
|
|
209
|
+
const cssCode = render.RenderIf(!!css, render.template`
|
|
211
210
|
<style id="${`custom-css-${item?.uid}`}">
|
|
212
211
|
${replacedCSS}
|
|
213
212
|
</style>
|
|
@@ -19,7 +19,6 @@ require('@gem-sdk/adapter-shopify');
|
|
|
19
19
|
require('swr/mutation');
|
|
20
20
|
require('vanilla-lazyload');
|
|
21
21
|
require('../hooks/useCartUI.js');
|
|
22
|
-
var customCdoe = require('../helpers/custom-cdoe.js');
|
|
23
22
|
|
|
24
23
|
const RenderCustomCode = ({ uid, advanced })=>{
|
|
25
24
|
const mode = shop.useEditorMode();
|
|
@@ -42,7 +41,7 @@ const RenderCustomCode = ({ uid, advanced })=>{
|
|
|
42
41
|
return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
43
42
|
children: [
|
|
44
43
|
/*#__PURE__*/ jsxRuntime.jsx(Head, {
|
|
45
|
-
children: !!css &&
|
|
44
|
+
children: !!css && /*#__PURE__*/ jsxRuntime.jsx("style", {
|
|
46
45
|
id: mapId['css'],
|
|
47
46
|
dangerouslySetInnerHTML: {
|
|
48
47
|
__html: replacedCSS
|
|
@@ -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)=>{
|
|
@@ -16,7 +16,6 @@ import 'dayjs';
|
|
|
16
16
|
import { composeAdvanceStyle } from '../helpers/compose-advance-style.js';
|
|
17
17
|
import { baseAssetURL, isLocalEnv } from '../helpers/convert.js';
|
|
18
18
|
import { RenderIf, template } from '../helpers/render.js';
|
|
19
|
-
import { hasNonEmptyCSSRules } from '../helpers/custom-cdoe.js';
|
|
20
19
|
|
|
21
20
|
const componentsRenderWithParentId = [
|
|
22
21
|
'CarouselItem'
|
|
@@ -33,7 +32,7 @@ const componentUsingAdvanced = [
|
|
|
33
32
|
'IconList',
|
|
34
33
|
'ProductVariants'
|
|
35
34
|
];
|
|
36
|
-
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext,
|
|
35
|
+
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
|
|
37
36
|
const item = builder[uid];
|
|
38
37
|
const Component = components[item?.tag];
|
|
39
38
|
if (!Component) {
|
|
@@ -72,7 +71,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
72
71
|
advanced: item.advanced,
|
|
73
72
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
74
73
|
pageContext,
|
|
75
|
-
|
|
74
|
+
enableLazyloadImage,
|
|
76
75
|
...passProps,
|
|
77
76
|
builderAttrs: {
|
|
78
77
|
...passProps.builderAttrs
|
|
@@ -85,7 +84,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
85
84
|
components,
|
|
86
85
|
customProps,
|
|
87
86
|
pageContext,
|
|
88
|
-
|
|
87
|
+
enableLazyloadImage
|
|
89
88
|
};
|
|
90
89
|
}),
|
|
91
90
|
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -98,7 +97,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
98
97
|
customProps,
|
|
99
98
|
parentTag: item.tag,
|
|
100
99
|
pageContext,
|
|
101
|
-
|
|
100
|
+
enableLazyloadImage
|
|
102
101
|
}))) : ''
|
|
103
102
|
});
|
|
104
103
|
}, ()=>{
|
|
@@ -114,7 +113,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
114
113
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
115
114
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
116
115
|
pageContext,
|
|
117
|
-
|
|
116
|
+
enableLazyloadImage,
|
|
118
117
|
...passProps,
|
|
119
118
|
builderAttrs: {
|
|
120
119
|
...passProps.builderAttrs
|
|
@@ -136,7 +135,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
136
135
|
cssClass: item?.advanced?.cssClass
|
|
137
136
|
},
|
|
138
137
|
pageContext,
|
|
139
|
-
|
|
138
|
+
enableLazyloadImage,
|
|
140
139
|
...passProps,
|
|
141
140
|
builderAttrs: {
|
|
142
141
|
...passProps.builderAttrs
|
|
@@ -149,7 +148,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
149
148
|
components,
|
|
150
149
|
customProps,
|
|
151
150
|
pageContext,
|
|
152
|
-
|
|
151
|
+
enableLazyloadImage
|
|
153
152
|
};
|
|
154
153
|
}),
|
|
155
154
|
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -162,7 +161,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
162
161
|
customProps,
|
|
163
162
|
parentTag: item.tag,
|
|
164
163
|
pageContext,
|
|
165
|
-
|
|
164
|
+
enableLazyloadImage
|
|
166
165
|
}))) : ''
|
|
167
166
|
});
|
|
168
167
|
}, ()=>{
|
|
@@ -178,7 +177,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
178
177
|
cssClass: item?.advanced?.cssClass
|
|
179
178
|
},
|
|
180
179
|
pageContext,
|
|
181
|
-
|
|
180
|
+
enableLazyloadImage,
|
|
182
181
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
183
182
|
style: componentIconList.includes(item.tag) ? style : null,
|
|
184
183
|
...passProps,
|
|
@@ -203,7 +202,7 @@ const RenderCustomCode = (item)=>{
|
|
|
203
202
|
const { css, javascript, rootClassName } = item.advanced?.editorData || {};
|
|
204
203
|
const replacedCSS = css?.replaceAll(rootClassName, item.uid);
|
|
205
204
|
const replacedJS = javascript?.replaceAll(rootClassName, item.uid);
|
|
206
|
-
const cssCode = RenderIf(!!css
|
|
205
|
+
const cssCode = RenderIf(!!css, template`
|
|
207
206
|
<style id="${`custom-css-${item?.uid}`}">
|
|
208
207
|
${replacedCSS}
|
|
209
208
|
</style>
|
|
@@ -15,7 +15,6 @@ import '@gem-sdk/adapter-shopify';
|
|
|
15
15
|
import 'swr/mutation';
|
|
16
16
|
import 'vanilla-lazyload';
|
|
17
17
|
import '../hooks/useCartUI.js';
|
|
18
|
-
import { hasNonEmptyCSSRules } from '../helpers/custom-cdoe.js';
|
|
19
18
|
|
|
20
19
|
const RenderCustomCode = ({ uid, advanced })=>{
|
|
21
20
|
const mode = useEditorMode();
|
|
@@ -38,7 +37,7 @@ const RenderCustomCode = ({ uid, advanced })=>{
|
|
|
38
37
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
39
38
|
children: [
|
|
40
39
|
/*#__PURE__*/ jsx(Head, {
|
|
41
|
-
children: !!css &&
|
|
40
|
+
children: !!css && /*#__PURE__*/ jsx("style", {
|
|
42
41
|
id: mapId['css'],
|
|
43
42
|
dangerouslySetInnerHTML: {
|
|
44
43
|
__html: replacedCSS
|
|
@@ -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": {
|