@gem-sdk/core 1.58.1 → 1.60.5
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.
|
@@ -102,6 +102,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
102
102
|
['show-views']: appSetting?.showViews
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
+
case 'KachingBundles':
|
|
106
|
+
{
|
|
107
|
+
return {
|
|
108
|
+
...currentSetting,
|
|
109
|
+
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
110
|
+
};
|
|
111
|
+
}
|
|
105
112
|
case 'PowerfulContactFormBuilder':
|
|
106
113
|
{
|
|
107
114
|
return {
|
|
@@ -6,7 +6,15 @@ var getAppBlockType = require('./getAppBlockType.js');
|
|
|
6
6
|
const listAppUpdateNewVersion = [
|
|
7
7
|
'Growave'
|
|
8
8
|
];
|
|
9
|
+
const listThirdPartyRejectAppBlock = {
|
|
10
|
+
YotpoReviews: {
|
|
11
|
+
conditionToReject: 'settings?.version === "v1"'
|
|
12
|
+
}
|
|
13
|
+
};
|
|
9
14
|
const getAppBlockConfig = (tag, appBlockId, settings)=>{
|
|
15
|
+
if (listThirdPartyRejectAppBlock[tag] && eval(listThirdPartyRejectAppBlock[tag].conditionToReject)) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
10
18
|
let widgetType = settings?.widgetType;
|
|
11
19
|
if (listAppUpdateNewVersion.includes(tag)) {
|
|
12
20
|
widgetType = settings?.widgetTypeV2;
|
|
@@ -100,6 +100,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
100
100
|
['show-views']: appSetting?.showViews
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
+
case 'KachingBundles':
|
|
104
|
+
{
|
|
105
|
+
return {
|
|
106
|
+
...currentSetting,
|
|
107
|
+
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
108
|
+
};
|
|
109
|
+
}
|
|
103
110
|
case 'PowerfulContactFormBuilder':
|
|
104
111
|
{
|
|
105
112
|
return {
|
|
@@ -4,7 +4,15 @@ import { getAppBlockType } from './getAppBlockType.js';
|
|
|
4
4
|
const listAppUpdateNewVersion = [
|
|
5
5
|
'Growave'
|
|
6
6
|
];
|
|
7
|
+
const listThirdPartyRejectAppBlock = {
|
|
8
|
+
YotpoReviews: {
|
|
9
|
+
conditionToReject: 'settings?.version === "v1"'
|
|
10
|
+
}
|
|
11
|
+
};
|
|
7
12
|
const getAppBlockConfig = (tag, appBlockId, settings)=>{
|
|
13
|
+
if (listThirdPartyRejectAppBlock[tag] && eval(listThirdPartyRejectAppBlock[tag].conditionToReject)) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
8
16
|
let widgetType = settings?.widgetType;
|
|
9
17
|
if (listAppUpdateNewVersion.includes(tag)) {
|
|
10
18
|
widgetType = settings?.widgetTypeV2;
|