@gem-sdk/core 2.0.2 → 2.0.6
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/contexts/BuilderPreviewContext.js +1 -5
- package/dist/cjs/helpers/third-party/appConfig.js +7 -0
- package/dist/cjs/helpers/third-party/appSetting.js +15 -0
- package/dist/cjs/helpers/third-party/constant.js +2 -1
- package/dist/esm/contexts/BuilderPreviewContext.js +1 -5
- package/dist/esm/helpers/third-party/appConfig.js +7 -1
- package/dist/esm/helpers/third-party/appSetting.js +15 -0
- package/dist/esm/helpers/third-party/constant.js +3 -2
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -1
|
@@ -254,11 +254,7 @@ const createBuilderPreviewProvider = (args, pageName, isThemeSectionEditor)=>zus
|
|
|
254
254
|
}
|
|
255
255
|
},
|
|
256
256
|
getItem: (id)=>{
|
|
257
|
-
|
|
258
|
-
return {
|
|
259
|
-
...item,
|
|
260
|
-
rawChildrens: item?.childrens?.map((v)=>get().state[v])
|
|
261
|
-
};
|
|
257
|
+
return get().state[id];
|
|
262
258
|
},
|
|
263
259
|
removeItem: (id)=>{
|
|
264
260
|
if (id === 'ROOT') {
|
|
@@ -198,6 +198,12 @@ const LooxReviewsConfig = {
|
|
|
198
198
|
appId: '5c3b337f-fd14-4df5-b1d6-80ec13e6e28e'
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
|
+
const PowrContactFormBuilderConfig = {
|
|
202
|
+
PowrContactFormBuilder: {
|
|
203
|
+
appName: 'powr-form-builder',
|
|
204
|
+
appId: '1412fe37-d89c-4706-a797-6e2b53cb4a69'
|
|
205
|
+
}
|
|
206
|
+
};
|
|
201
207
|
|
|
202
208
|
exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
|
|
203
209
|
exports.BoldSubscriptionsConfig = BoldSubscriptionsConfig;
|
|
@@ -215,6 +221,7 @@ exports.LoloyalLoyaltyReferralsConfig = LoloyalLoyaltyReferralsConfig;
|
|
|
215
221
|
exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
|
|
216
222
|
exports.LooxReviewsConfig = LooxReviewsConfig;
|
|
217
223
|
exports.PowerfulContactFormBuilderConfig = PowerfulContactFormBuilderConfig;
|
|
224
|
+
exports.PowrContactFormBuilderConfig = PowrContactFormBuilderConfig;
|
|
218
225
|
exports.PreorderNowPreOrderPqConfig = PreorderNowPreOrderPqConfig;
|
|
219
226
|
exports.PreorderNowWodPresaleConfig = PreorderNowWodPresaleConfig;
|
|
220
227
|
exports.ProductOptionsCustomizerConfig = ProductOptionsCustomizerConfig;
|
|
@@ -130,6 +130,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
130
130
|
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
+
case 'PowrContactFormBuilder':
|
|
134
|
+
{
|
|
135
|
+
return {
|
|
136
|
+
...currentSetting,
|
|
137
|
+
app_id: appSetting?.appId
|
|
138
|
+
};
|
|
139
|
+
}
|
|
133
140
|
default:
|
|
134
141
|
return currentSetting;
|
|
135
142
|
}
|
|
@@ -621,7 +628,15 @@ const LooxReviews = {
|
|
|
621
628
|
}
|
|
622
629
|
}
|
|
623
630
|
};
|
|
631
|
+
const PowrContactFormBuilder = {
|
|
632
|
+
PowrContactFormBuilder: {
|
|
633
|
+
'app-block': {
|
|
634
|
+
'app_id': ""
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
};
|
|
624
638
|
const composeSettingsByWidgetType = {
|
|
639
|
+
...PowrContactFormBuilder,
|
|
625
640
|
...GloboProductOptionsVariant,
|
|
626
641
|
...WishlistKing,
|
|
627
642
|
...LoloyalLoyaltyReferrals,
|
|
@@ -35,7 +35,8 @@ const mapShopifyAppMeta = {
|
|
|
35
35
|
...appConfig.GloboProductOptionsVariantConfig,
|
|
36
36
|
...appConfig.KachingBundlesConfig,
|
|
37
37
|
...appConfig.TrustooConfig,
|
|
38
|
-
...appConfig.LooxReviewsConfig
|
|
38
|
+
...appConfig.LooxReviewsConfig,
|
|
39
|
+
...appConfig.PowrContactFormBuilderConfig
|
|
39
40
|
};
|
|
40
41
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
41
42
|
|
|
@@ -252,11 +252,7 @@ const createBuilderPreviewProvider = (args, pageName, isThemeSectionEditor)=>cre
|
|
|
252
252
|
}
|
|
253
253
|
},
|
|
254
254
|
getItem: (id)=>{
|
|
255
|
-
|
|
256
|
-
return {
|
|
257
|
-
...item,
|
|
258
|
-
rawChildrens: item?.childrens?.map((v)=>get().state[v])
|
|
259
|
-
};
|
|
255
|
+
return get().state[id];
|
|
260
256
|
},
|
|
261
257
|
removeItem: (id)=>{
|
|
262
258
|
if (id === 'ROOT') {
|
|
@@ -196,5 +196,11 @@ const LooxReviewsConfig = {
|
|
|
196
196
|
appId: '5c3b337f-fd14-4df5-b1d6-80ec13e6e28e'
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
|
+
const PowrContactFormBuilderConfig = {
|
|
200
|
+
PowrContactFormBuilder: {
|
|
201
|
+
appName: 'powr-form-builder',
|
|
202
|
+
appId: '1412fe37-d89c-4706-a797-6e2b53cb4a69'
|
|
203
|
+
}
|
|
204
|
+
};
|
|
199
205
|
|
|
200
|
-
export { AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, PowerfulContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, TrustooConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
206
|
+
export { AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, PowerfulContactFormBuilderConfig, PowrContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, TrustooConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
@@ -128,6 +128,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
128
128
|
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
+
case 'PowrContactFormBuilder':
|
|
132
|
+
{
|
|
133
|
+
return {
|
|
134
|
+
...currentSetting,
|
|
135
|
+
app_id: appSetting?.appId
|
|
136
|
+
};
|
|
137
|
+
}
|
|
131
138
|
default:
|
|
132
139
|
return currentSetting;
|
|
133
140
|
}
|
|
@@ -619,7 +626,15 @@ const LooxReviews = {
|
|
|
619
626
|
}
|
|
620
627
|
}
|
|
621
628
|
};
|
|
629
|
+
const PowrContactFormBuilder = {
|
|
630
|
+
PowrContactFormBuilder: {
|
|
631
|
+
'app-block': {
|
|
632
|
+
'app_id': ""
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
};
|
|
622
636
|
const composeSettingsByWidgetType = {
|
|
637
|
+
...PowrContactFormBuilder,
|
|
623
638
|
...GloboProductOptionsVariant,
|
|
624
639
|
...WishlistKing,
|
|
625
640
|
...LoloyalLoyaltyReferrals,
|
|
@@ -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 } from './appConfig.js';
|
|
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 } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -33,7 +33,8 @@ const mapShopifyAppMeta = {
|
|
|
33
33
|
...GloboProductOptionsVariantConfig,
|
|
34
34
|
...KachingBundlesConfig,
|
|
35
35
|
...TrustooConfig,
|
|
36
|
-
...LooxReviewsConfig
|
|
36
|
+
...LooxReviewsConfig,
|
|
37
|
+
...PowrContactFormBuilderConfig
|
|
37
38
|
};
|
|
38
39
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
39
40
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7062,7 +7062,6 @@ type BlockEntity = {
|
|
|
7062
7062
|
name?: string;
|
|
7063
7063
|
dateModified?: string | number;
|
|
7064
7064
|
childrens?: string[];
|
|
7065
|
-
rawChildrens?: BlockEntity[];
|
|
7066
7065
|
settings?: Record<string, any>;
|
|
7067
7066
|
advanced?: Record<string, any>;
|
|
7068
7067
|
styles?: Record<string, any>;
|