@gem-sdk/core 1.45.0-dev.129 → 1.45.0-dev.133
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 +1 -1
- package/dist/cjs/helpers/third-party/appConfig.js +14 -0
- package/dist/cjs/helpers/third-party/appSetting.js +27 -1
- package/dist/cjs/helpers/third-party/constant.js +3 -1
- package/dist/cjs/helpers/third-party/getAppBlockConfig.js +2 -1
- package/dist/esm/components/Render.liquid.js +1 -1
- package/dist/esm/helpers/third-party/appConfig.js +13 -1
- package/dist/esm/helpers/third-party/appSetting.js +27 -2
- package/dist/esm/helpers/third-party/constant.js +4 -2
- package/dist/esm/helpers/third-party/getAppBlockConfig.js +3 -2
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -121,7 +121,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
} else {
|
|
124
|
-
liquid = render.template`<div style="${!componentIconList.includes(item.tag) ? style : ''}" class="${item.uid} ${!item?.childrens?.length && item.tag === 'IconListItemHoz' ? 'hidden' : ''}">
|
|
124
|
+
liquid = render.template`<div gp-el-wrapper style="${!componentIconList.includes(item.tag) ? style : ''}" class="${item.uid} ${!item?.childrens?.length && item.tag === 'IconListItemHoz' ? 'hidden' : ''}">
|
|
125
125
|
${render.RenderIf(item?.childrens?.length, ()=>{
|
|
126
126
|
return Component({
|
|
127
127
|
builderProps: {
|
|
@@ -30,9 +30,23 @@ const LoopSubscriptionsConfig = {
|
|
|
30
30
|
appId: '267a7c64-5cb3-4552-b817-5485165f0a0b'
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
+
const SkioSubscriptionsYcS20Config = {
|
|
34
|
+
SkioSubscriptionsYcS20: {
|
|
35
|
+
appName: 'skio-subscriptions-yc-s20',
|
|
36
|
+
appId: 'de50f7a4-0bb0-4d4c-84e2-c03dce83436d'
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const ShopifyFormsConfig = {
|
|
40
|
+
ShopifyForms: {
|
|
41
|
+
appName: 'forms',
|
|
42
|
+
appId: '8744a304-fcb1-4347-b211-bb6b4759a76a'
|
|
43
|
+
}
|
|
44
|
+
};
|
|
33
45
|
|
|
34
46
|
exports.BonLoyaltyRewardsReferralsConfig = BonLoyaltyRewardsReferralsConfig;
|
|
35
47
|
exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
|
|
36
48
|
exports.RechargeSubscriptionsConfig = RechargeSubscriptionsConfig;
|
|
37
49
|
exports.SelleasyConfig = SelleasyConfig;
|
|
50
|
+
exports.ShopifyFormsConfig = ShopifyFormsConfig;
|
|
51
|
+
exports.SkioSubscriptionsYcS20Config = SkioSubscriptionsYcS20Config;
|
|
38
52
|
exports.SubifySubscriptionsConfig = SubifySubscriptionsConfig;
|
|
@@ -57,10 +57,35 @@ const SelleasyWidget = {
|
|
|
57
57
|
};
|
|
58
58
|
const LoopSubscriptions = {
|
|
59
59
|
LoopSubscriptions: {
|
|
60
|
-
|
|
60
|
+
star_rating: null
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
const SkioSubscriptionsYcS20 = {
|
|
64
|
+
SkioSubscriptionsYcS20: {
|
|
65
|
+
'app-block': null
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
const ShopifyForms = {
|
|
69
|
+
ShopifyForms: {
|
|
70
|
+
inline: {
|
|
71
|
+
form_id: null
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
76
|
+
switch(tag){
|
|
77
|
+
case 'ShopifyForms':
|
|
78
|
+
return {
|
|
79
|
+
...currentSetting,
|
|
80
|
+
form_id: appSetting['formId']
|
|
81
|
+
};
|
|
82
|
+
default:
|
|
83
|
+
return currentSetting;
|
|
61
84
|
}
|
|
62
85
|
};
|
|
63
86
|
const composeSettingsByWidgetType = {
|
|
87
|
+
...ShopifyForms,
|
|
88
|
+
...SkioSubscriptionsYcS20,
|
|
64
89
|
...LoopSubscriptions,
|
|
65
90
|
...RechargeSubscriptions,
|
|
66
91
|
...LoyaltyRewardsReferrals,
|
|
@@ -69,3 +94,4 @@ const composeSettingsByWidgetType = {
|
|
|
69
94
|
};
|
|
70
95
|
|
|
71
96
|
exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
|
|
97
|
+
exports.overrideSettings = overrideSettings;
|
|
@@ -7,7 +7,9 @@ const mapShopifyAppMeta = {
|
|
|
7
7
|
...appConfig.BonLoyaltyRewardsReferralsConfig,
|
|
8
8
|
...appConfig.SubifySubscriptionsConfig,
|
|
9
9
|
...appConfig.SelleasyConfig,
|
|
10
|
-
...appConfig.LoopSubscriptionsConfig
|
|
10
|
+
...appConfig.LoopSubscriptionsConfig,
|
|
11
|
+
...appConfig.SkioSubscriptionsYcS20Config,
|
|
12
|
+
...appConfig.ShopifyFormsConfig
|
|
11
13
|
};
|
|
12
14
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
13
15
|
|
|
@@ -9,12 +9,13 @@ const getAppBlockConfig = (tag, appBlockId, settings)=>{
|
|
|
9
9
|
widgetType: settings?.widgetType
|
|
10
10
|
});
|
|
11
11
|
const settingByWidget = appSetting.composeSettingsByWidgetType[tag][settings?.widgetType];
|
|
12
|
+
const appSettings = appSetting.overrideSettings(tag, settingByWidget, settings);
|
|
12
13
|
return {
|
|
13
14
|
key: appBlockId,
|
|
14
15
|
value: {
|
|
15
16
|
type: appBlockType,
|
|
16
17
|
...settingByWidget && {
|
|
17
|
-
settings:
|
|
18
|
+
settings: appSettings
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
};
|
|
@@ -117,7 +117,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
117
117
|
});
|
|
118
118
|
});
|
|
119
119
|
} else {
|
|
120
|
-
liquid = template`<div style="${!componentIconList.includes(item.tag) ? style : ''}" class="${item.uid} ${!item?.childrens?.length && item.tag === 'IconListItemHoz' ? 'hidden' : ''}">
|
|
120
|
+
liquid = template`<div gp-el-wrapper style="${!componentIconList.includes(item.tag) ? style : ''}" class="${item.uid} ${!item?.childrens?.length && item.tag === 'IconListItemHoz' ? 'hidden' : ''}">
|
|
121
121
|
${RenderIf(item?.childrens?.length, ()=>{
|
|
122
122
|
return Component({
|
|
123
123
|
builderProps: {
|
|
@@ -28,5 +28,17 @@ const LoopSubscriptionsConfig = {
|
|
|
28
28
|
appId: '267a7c64-5cb3-4552-b817-5485165f0a0b'
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
+
const SkioSubscriptionsYcS20Config = {
|
|
32
|
+
SkioSubscriptionsYcS20: {
|
|
33
|
+
appName: 'skio-subscriptions-yc-s20',
|
|
34
|
+
appId: 'de50f7a4-0bb0-4d4c-84e2-c03dce83436d'
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const ShopifyFormsConfig = {
|
|
38
|
+
ShopifyForms: {
|
|
39
|
+
appName: 'forms',
|
|
40
|
+
appId: '8744a304-fcb1-4347-b211-bb6b4759a76a'
|
|
41
|
+
}
|
|
42
|
+
};
|
|
31
43
|
|
|
32
|
-
export { BonLoyaltyRewardsReferralsConfig, LoopSubscriptionsConfig, RechargeSubscriptionsConfig, SelleasyConfig, SubifySubscriptionsConfig };
|
|
44
|
+
export { BonLoyaltyRewardsReferralsConfig, LoopSubscriptionsConfig, RechargeSubscriptionsConfig, SelleasyConfig, ShopifyFormsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig };
|
|
@@ -55,10 +55,35 @@ const SelleasyWidget = {
|
|
|
55
55
|
};
|
|
56
56
|
const LoopSubscriptions = {
|
|
57
57
|
LoopSubscriptions: {
|
|
58
|
-
|
|
58
|
+
star_rating: null
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const SkioSubscriptionsYcS20 = {
|
|
62
|
+
SkioSubscriptionsYcS20: {
|
|
63
|
+
'app-block': null
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const ShopifyForms = {
|
|
67
|
+
ShopifyForms: {
|
|
68
|
+
inline: {
|
|
69
|
+
form_id: null
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
74
|
+
switch(tag){
|
|
75
|
+
case 'ShopifyForms':
|
|
76
|
+
return {
|
|
77
|
+
...currentSetting,
|
|
78
|
+
form_id: appSetting['formId']
|
|
79
|
+
};
|
|
80
|
+
default:
|
|
81
|
+
return currentSetting;
|
|
59
82
|
}
|
|
60
83
|
};
|
|
61
84
|
const composeSettingsByWidgetType = {
|
|
85
|
+
...ShopifyForms,
|
|
86
|
+
...SkioSubscriptionsYcS20,
|
|
62
87
|
...LoopSubscriptions,
|
|
63
88
|
...RechargeSubscriptions,
|
|
64
89
|
...LoyaltyRewardsReferrals,
|
|
@@ -66,4 +91,4 @@ const composeSettingsByWidgetType = {
|
|
|
66
91
|
...SelleasyWidget
|
|
67
92
|
};
|
|
68
93
|
|
|
69
|
-
export { composeSettingsByWidgetType };
|
|
94
|
+
export { composeSettingsByWidgetType, overrideSettings };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig } from './appConfig.js';
|
|
1
|
+
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
5
5
|
...BonLoyaltyRewardsReferralsConfig,
|
|
6
6
|
...SubifySubscriptionsConfig,
|
|
7
7
|
...SelleasyConfig,
|
|
8
|
-
...LoopSubscriptionsConfig
|
|
8
|
+
...LoopSubscriptionsConfig,
|
|
9
|
+
...SkioSubscriptionsYcS20Config,
|
|
10
|
+
...ShopifyFormsConfig
|
|
9
11
|
};
|
|
10
12
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
11
13
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { composeSettingsByWidgetType } from './appSetting.js';
|
|
1
|
+
import { composeSettingsByWidgetType, overrideSettings } from './appSetting.js';
|
|
2
2
|
import { getAppBlockType } from './getAppBlockType.js';
|
|
3
3
|
|
|
4
4
|
const getAppBlockConfig = (tag, appBlockId, settings)=>{
|
|
@@ -7,12 +7,13 @@ const getAppBlockConfig = (tag, appBlockId, settings)=>{
|
|
|
7
7
|
widgetType: settings?.widgetType
|
|
8
8
|
});
|
|
9
9
|
const settingByWidget = composeSettingsByWidgetType[tag][settings?.widgetType];
|
|
10
|
+
const appSettings = overrideSettings(tag, settingByWidget, settings);
|
|
10
11
|
return {
|
|
11
12
|
key: appBlockId,
|
|
12
13
|
value: {
|
|
13
14
|
type: appBlockType,
|
|
14
15
|
...settingByWidget && {
|
|
15
|
-
settings:
|
|
16
|
+
settings: appSettings
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7811,6 +7811,7 @@ type SizeSetting$1<T> = SharedControlType<T> & {
|
|
|
7811
7811
|
sizePaddingInput?: 'normal' | 'small';
|
|
7812
7812
|
lockShapeValue?: boolean;
|
|
7813
7813
|
isShowResponsive?: boolean;
|
|
7814
|
+
disableShapeLinkedTooltip?: string;
|
|
7814
7815
|
};
|
|
7815
7816
|
|
|
7816
7817
|
type ChildIconType<T> = SharedControlType<T> & {
|