@gem-sdk/core 1.47.1-staging.0 → 1.48.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/helpers/third-party/addAppBlockId.js +1 -1
- package/dist/cjs/helpers/third-party/appConfig.js +0 -7
- package/dist/cjs/helpers/third-party/appSetting.js +0 -13
- package/dist/cjs/helpers/third-party/constant.js +1 -2
- package/dist/esm/helpers/third-party/addAppBlockId.js +1 -1
- package/dist/esm/helpers/third-party/appConfig.js +1 -7
- package/dist/esm/helpers/third-party/appSetting.js +0 -13
- package/dist/esm/helpers/third-party/constant.js +2 -3
- package/package.json +2 -2
|
@@ -13,7 +13,7 @@ const addAppBlockId = (component)=>{
|
|
|
13
13
|
};
|
|
14
14
|
const handleSetBlockId = (component)=>{
|
|
15
15
|
const { tag, uid } = component;
|
|
16
|
-
if (component.settings
|
|
16
|
+
if (component.settings?.appBlockId === undefined) return component;
|
|
17
17
|
component.settings.appBlockId = composeAppBlockId.composeAppBlockId(tag, uid);
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -42,17 +42,10 @@ const ShopifyFormsConfig = {
|
|
|
42
42
|
appId: '8744a304-fcb1-4347-b211-bb6b4759a76a'
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
const ReviewxpoProductReviewsAppConfig = {
|
|
46
|
-
ReviewxpoProductReviewsApp: {
|
|
47
|
-
appName: 'reviewxpo-product-reviews-app',
|
|
48
|
-
appId: '3e3d94fa-8b53-4134-942c-f7662dc9282f'
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
45
|
|
|
52
46
|
exports.BonLoyaltyRewardsReferralsConfig = BonLoyaltyRewardsReferralsConfig;
|
|
53
47
|
exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
|
|
54
48
|
exports.RechargeSubscriptionsConfig = RechargeSubscriptionsConfig;
|
|
55
|
-
exports.ReviewxpoProductReviewsAppConfig = ReviewxpoProductReviewsAppConfig;
|
|
56
49
|
exports.SelleasyConfig = SelleasyConfig;
|
|
57
50
|
exports.ShopifyFormsConfig = ShopifyFormsConfig;
|
|
58
51
|
exports.SkioSubscriptionsYcS20Config = SkioSubscriptionsYcS20Config;
|
|
@@ -85,20 +85,7 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
85
85
|
return currentSetting;
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
|
-
const ReviewxpoProductReviewsApp = {
|
|
89
|
-
ReviewxpoProductReviewsApp: {
|
|
90
|
-
'five-star-badge-widget': null,
|
|
91
|
-
'allreviews-widget': null,
|
|
92
|
-
'carousel-widget': null,
|
|
93
|
-
'gallery-widget': null,
|
|
94
|
-
'badge-widget': null,
|
|
95
|
-
'testimonial-widget': null,
|
|
96
|
-
'star-widget': null,
|
|
97
|
-
'revews-widget': null
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
88
|
const composeSettingsByWidgetType = {
|
|
101
|
-
...ReviewxpoProductReviewsApp,
|
|
102
89
|
...ShopifyForms,
|
|
103
90
|
...SkioSubscriptionsYcS20,
|
|
104
91
|
...LoopSubscriptions,
|
|
@@ -9,8 +9,7 @@ const mapShopifyAppMeta = {
|
|
|
9
9
|
...appConfig.SelleasyConfig,
|
|
10
10
|
...appConfig.LoopSubscriptionsConfig,
|
|
11
11
|
...appConfig.SkioSubscriptionsYcS20Config,
|
|
12
|
-
...appConfig.ShopifyFormsConfig
|
|
13
|
-
...appConfig.ReviewxpoProductReviewsAppConfig
|
|
12
|
+
...appConfig.ShopifyFormsConfig
|
|
14
13
|
};
|
|
15
14
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
16
15
|
|
|
@@ -11,7 +11,7 @@ const addAppBlockId = (component)=>{
|
|
|
11
11
|
};
|
|
12
12
|
const handleSetBlockId = (component)=>{
|
|
13
13
|
const { tag, uid } = component;
|
|
14
|
-
if (component.settings
|
|
14
|
+
if (component.settings?.appBlockId === undefined) return component;
|
|
15
15
|
component.settings.appBlockId = composeAppBlockId(tag, uid);
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -40,11 +40,5 @@ const ShopifyFormsConfig = {
|
|
|
40
40
|
appId: '8744a304-fcb1-4347-b211-bb6b4759a76a'
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
const ReviewxpoProductReviewsAppConfig = {
|
|
44
|
-
ReviewxpoProductReviewsApp: {
|
|
45
|
-
appName: 'reviewxpo-product-reviews-app',
|
|
46
|
-
appId: '3e3d94fa-8b53-4134-942c-f7662dc9282f'
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
43
|
|
|
50
|
-
export { BonLoyaltyRewardsReferralsConfig, LoopSubscriptionsConfig, RechargeSubscriptionsConfig,
|
|
44
|
+
export { BonLoyaltyRewardsReferralsConfig, LoopSubscriptionsConfig, RechargeSubscriptionsConfig, SelleasyConfig, ShopifyFormsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig };
|
|
@@ -83,20 +83,7 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
83
83
|
return currentSetting;
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
const ReviewxpoProductReviewsApp = {
|
|
87
|
-
ReviewxpoProductReviewsApp: {
|
|
88
|
-
'five-star-badge-widget': null,
|
|
89
|
-
'allreviews-widget': null,
|
|
90
|
-
'carousel-widget': null,
|
|
91
|
-
'gallery-widget': null,
|
|
92
|
-
'badge-widget': null,
|
|
93
|
-
'testimonial-widget': null,
|
|
94
|
-
'star-widget': null,
|
|
95
|
-
'revews-widget': null
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
86
|
const composeSettingsByWidgetType = {
|
|
99
|
-
...ReviewxpoProductReviewsApp,
|
|
100
87
|
...ShopifyForms,
|
|
101
88
|
...SkioSubscriptionsYcS20,
|
|
102
89
|
...LoopSubscriptions,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig
|
|
1
|
+
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -7,8 +7,7 @@ const mapShopifyAppMeta = {
|
|
|
7
7
|
...SelleasyConfig,
|
|
8
8
|
...LoopSubscriptionsConfig,
|
|
9
9
|
...SkioSubscriptionsYcS20Config,
|
|
10
|
-
...ShopifyFormsConfig
|
|
11
|
-
...ReviewxpoProductReviewsAppConfig
|
|
10
|
+
...ShopifyFormsConfig
|
|
12
11
|
};
|
|
13
12
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
14
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.48.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@gem-sdk/adapter-shopify": "1.47.0",
|
|
31
|
-
"@gem-sdk/styles": "1.47.1
|
|
31
|
+
"@gem-sdk/styles": "1.47.1",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|