@gem-sdk/core 1.48.0-dev.0 → 1.48.0-dev.2
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/ComponentToolbarPreview.js +1 -0
- package/dist/cjs/helpers/third-party/addAppBlockId.js +1 -1
- package/dist/cjs/helpers/third-party/appConfig.js +7 -0
- package/dist/cjs/helpers/third-party/appSetting.js +6 -0
- package/dist/cjs/helpers/third-party/constant.js +2 -1
- package/dist/esm/components/ComponentToolbarPreview.js +1 -0
- package/dist/esm/helpers/third-party/addAppBlockId.js +1 -1
- package/dist/esm/helpers/third-party/appConfig.js +7 -1
- package/dist/esm/helpers/third-party/appSetting.js +6 -0
- package/dist/esm/helpers/third-party/constant.js +3 -2
- package/package.json +3 -3
|
@@ -454,6 +454,7 @@ const ComponentToolbarPreview = (props)=>{
|
|
|
454
454
|
}
|
|
455
455
|
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
456
456
|
"data-toolbar-parent": true,
|
|
457
|
+
"data-component-tag": parent.tag,
|
|
457
458
|
"data-parent-uid": parent.uid,
|
|
458
459
|
"data-toolbar-theme-section": isThemeSectionEditor,
|
|
459
460
|
"data-toolbar-parent-revert": isShowParentRevert,
|
|
@@ -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
|
|
|
@@ -54,6 +54,12 @@ const PumperBundlesVolumeDiscountConfig = {
|
|
|
54
54
|
appId: '0856870d-2aca-4b1e-a662-cf1797f61270'
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
+
const UnlimitedBundlesDiscountsConfig = {
|
|
58
|
+
UnlimitedBundlesDiscounts: {
|
|
59
|
+
appName: 'unlimited-bundles',
|
|
60
|
+
appId: 'd33d0f48-dee0-42a0-b156-2a5dce91814a'
|
|
61
|
+
}
|
|
62
|
+
};
|
|
57
63
|
|
|
58
64
|
exports.BonLoyaltyRewardsReferralsConfig = BonLoyaltyRewardsReferralsConfig;
|
|
59
65
|
exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
|
|
@@ -64,3 +70,4 @@ exports.SelleasyConfig = SelleasyConfig;
|
|
|
64
70
|
exports.ShopifyFormsConfig = ShopifyFormsConfig;
|
|
65
71
|
exports.SkioSubscriptionsYcS20Config = SkioSubscriptionsYcS20Config;
|
|
66
72
|
exports.SubifySubscriptionsConfig = SubifySubscriptionsConfig;
|
|
73
|
+
exports.UnlimitedBundlesDiscountsConfig = UnlimitedBundlesDiscountsConfig;
|
|
@@ -105,7 +105,13 @@ const PumperBundlesVolumeDiscount = {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
|
+
const UnlimitedBundlesDiscounts = {
|
|
109
|
+
UnlimitedBundlesDiscounts: {
|
|
110
|
+
'product-page-placeholder': null
|
|
111
|
+
}
|
|
112
|
+
};
|
|
108
113
|
const composeSettingsByWidgetType = {
|
|
114
|
+
...UnlimitedBundlesDiscounts,
|
|
109
115
|
...PumperBundlesVolumeDiscount,
|
|
110
116
|
...ReviewxpoProductReviewsApp,
|
|
111
117
|
...ShopifyForms,
|
|
@@ -11,7 +11,8 @@ const mapShopifyAppMeta = {
|
|
|
11
11
|
...appConfig.SkioSubscriptionsYcS20Config,
|
|
12
12
|
...appConfig.ShopifyFormsConfig,
|
|
13
13
|
...appConfig.ReviewxpoProductReviewsAppConfig,
|
|
14
|
-
...appConfig.PumperBundlesVolumeDiscountConfig
|
|
14
|
+
...appConfig.PumperBundlesVolumeDiscountConfig,
|
|
15
|
+
...appConfig.UnlimitedBundlesDiscountsConfig
|
|
15
16
|
};
|
|
16
17
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
17
18
|
|
|
@@ -450,6 +450,7 @@ const ComponentToolbarPreview = (props)=>{
|
|
|
450
450
|
}
|
|
451
451
|
return /*#__PURE__*/ jsxs("div", {
|
|
452
452
|
"data-toolbar-parent": true,
|
|
453
|
+
"data-component-tag": parent.tag,
|
|
453
454
|
"data-parent-uid": parent.uid,
|
|
454
455
|
"data-toolbar-theme-section": isThemeSectionEditor,
|
|
455
456
|
"data-toolbar-parent-revert": isShowParentRevert,
|
|
@@ -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
|
|
|
@@ -52,5 +52,11 @@ const PumperBundlesVolumeDiscountConfig = {
|
|
|
52
52
|
appId: '0856870d-2aca-4b1e-a662-cf1797f61270'
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
+
const UnlimitedBundlesDiscountsConfig = {
|
|
56
|
+
UnlimitedBundlesDiscounts: {
|
|
57
|
+
appName: 'unlimited-bundles',
|
|
58
|
+
appId: 'd33d0f48-dee0-42a0-b156-2a5dce91814a'
|
|
59
|
+
}
|
|
60
|
+
};
|
|
55
61
|
|
|
56
|
-
export { BonLoyaltyRewardsReferralsConfig, LoopSubscriptionsConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig };
|
|
62
|
+
export { BonLoyaltyRewardsReferralsConfig, LoopSubscriptionsConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig };
|
|
@@ -103,7 +103,13 @@ const PumperBundlesVolumeDiscount = {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
|
+
const UnlimitedBundlesDiscounts = {
|
|
107
|
+
UnlimitedBundlesDiscounts: {
|
|
108
|
+
'product-page-placeholder': null
|
|
109
|
+
}
|
|
110
|
+
};
|
|
106
111
|
const composeSettingsByWidgetType = {
|
|
112
|
+
...UnlimitedBundlesDiscounts,
|
|
107
113
|
...PumperBundlesVolumeDiscount,
|
|
108
114
|
...ReviewxpoProductReviewsApp,
|
|
109
115
|
...ShopifyForms,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig } from './appConfig.js';
|
|
1
|
+
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -9,7 +9,8 @@ const mapShopifyAppMeta = {
|
|
|
9
9
|
...SkioSubscriptionsYcS20Config,
|
|
10
10
|
...ShopifyFormsConfig,
|
|
11
11
|
...ReviewxpoProductReviewsAppConfig,
|
|
12
|
-
...PumperBundlesVolumeDiscountConfig
|
|
12
|
+
...PumperBundlesVolumeDiscountConfig,
|
|
13
|
+
...UnlimitedBundlesDiscountsConfig
|
|
13
14
|
};
|
|
14
15
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
15
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.48.0-dev.
|
|
3
|
+
"version": "1.48.0-dev.2",
|
|
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": "1.48.0-dev.
|
|
31
|
-
"@gem-sdk/styles": "1.48.0-dev.
|
|
30
|
+
"@gem-sdk/adapter-shopify": "1.48.0-dev.1",
|
|
31
|
+
"@gem-sdk/styles": "1.48.0-dev.2",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|