@gem-sdk/core 1.58.0-staging.104 → 1.58.0-staging.108
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 +3 -1
- package/dist/cjs/helpers/third-party/appConfig.js +7 -0
- package/dist/cjs/helpers/third-party/appSetting.js +18 -0
- package/dist/cjs/helpers/third-party/constant.js +2 -1
- package/dist/esm/components/Render.liquid.js +3 -1
- package/dist/esm/helpers/third-party/appConfig.js +7 -1
- package/dist/esm/helpers/third-party/appSetting.js +18 -0
- package/dist/esm/helpers/third-party/constant.js +3 -2
- package/package.json +1 -1
|
@@ -34,7 +34,8 @@ const componentIconList = [
|
|
|
34
34
|
'IconList'
|
|
35
35
|
];
|
|
36
36
|
const componentUsingAdvanced = [
|
|
37
|
-
'IconList'
|
|
37
|
+
'IconList',
|
|
38
|
+
'ProductVariants'
|
|
38
39
|
];
|
|
39
40
|
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
|
|
40
41
|
const item = builder[uid];
|
|
@@ -177,6 +178,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
177
178
|
styles: item.styles,
|
|
178
179
|
setting: item.settings,
|
|
179
180
|
advanced: {
|
|
181
|
+
...componentUsingAdvanced.includes(item.tag) ? item?.advanced : {},
|
|
180
182
|
cssClass: item?.advanced?.cssClass
|
|
181
183
|
},
|
|
182
184
|
pageContext,
|
|
@@ -240,6 +240,12 @@ const HulkProductOptionsConfig = {
|
|
|
240
240
|
appId: '380168ef-9475-4244-a291-f66b189208b5'
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
|
+
const TrustshopProductReviewsConfig = {
|
|
244
|
+
TrustshopProductReviews: {
|
|
245
|
+
appName: 'trustshop-reviews',
|
|
246
|
+
appId: '18b0c4cc-5411-4b6e-922d-34fdc2f30ab9'
|
|
247
|
+
}
|
|
248
|
+
};
|
|
243
249
|
|
|
244
250
|
exports.AftershipEmailMarketingsmsConfig = AftershipEmailMarketingsmsConfig;
|
|
245
251
|
exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
|
|
@@ -277,6 +283,7 @@ exports.SproutPlantTreesGrowSalesConfig = SproutPlantTreesGrowSalesConfig;
|
|
|
277
283
|
exports.SubifySubscriptionsConfig = SubifySubscriptionsConfig;
|
|
278
284
|
exports.TrustooConfig = TrustooConfig;
|
|
279
285
|
exports.TrustreviewsProductReviewsConfig = TrustreviewsProductReviewsConfig;
|
|
286
|
+
exports.TrustshopProductReviewsConfig = TrustshopProductReviewsConfig;
|
|
280
287
|
exports.UnlimitedBundlesDiscountsConfig = UnlimitedBundlesDiscountsConfig;
|
|
281
288
|
exports.WhatmoreShoppableVideosreelConfig = WhatmoreShoppableVideosreelConfig;
|
|
282
289
|
exports.WishlistKingConfig = WishlistKingConfig;
|
|
@@ -95,6 +95,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
95
95
|
selected_product: appSetting?.['productHandle'] || '{{ product }}'
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
+
case 'TrustshopProductReviews':
|
|
99
|
+
{
|
|
100
|
+
return {
|
|
101
|
+
...currentSetting,
|
|
102
|
+
selected_product: appSetting?.['productHandle'] || '{{ product }}'
|
|
103
|
+
};
|
|
104
|
+
}
|
|
98
105
|
case 'WhatmoreShoppableVideosreel':
|
|
99
106
|
{
|
|
100
107
|
return {
|
|
@@ -776,7 +783,18 @@ const HulkProductOptions = {
|
|
|
776
783
|
option_block: null
|
|
777
784
|
}
|
|
778
785
|
};
|
|
786
|
+
const TrustshopProductReviews = {
|
|
787
|
+
TrustshopProductReviews: {
|
|
788
|
+
'widget-product-rating': {
|
|
789
|
+
selected_product: '{{ product }}'
|
|
790
|
+
},
|
|
791
|
+
'all-reviews': null,
|
|
792
|
+
'widget-box': null,
|
|
793
|
+
'review-testimonial': null
|
|
794
|
+
}
|
|
795
|
+
};
|
|
779
796
|
const composeSettingsByWidgetType = {
|
|
797
|
+
...TrustshopProductReviews,
|
|
780
798
|
...HulkProductOptions,
|
|
781
799
|
...MyappgurusProductReviews,
|
|
782
800
|
...TrustreviewsProductReviews,
|
|
@@ -42,7 +42,8 @@ const mapShopifyAppMeta = {
|
|
|
42
42
|
...appConfig.SeoantTrustBadgesIconConfig,
|
|
43
43
|
...appConfig.TrustreviewsProductReviewsConfig,
|
|
44
44
|
...appConfig.MyappgurusProductReviewsConfig,
|
|
45
|
-
...appConfig.HulkProductOptionsConfig
|
|
45
|
+
...appConfig.HulkProductOptionsConfig,
|
|
46
|
+
...appConfig.TrustshopProductReviewsConfig
|
|
46
47
|
};
|
|
47
48
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
48
49
|
|
|
@@ -30,7 +30,8 @@ const componentIconList = [
|
|
|
30
30
|
'IconList'
|
|
31
31
|
];
|
|
32
32
|
const componentUsingAdvanced = [
|
|
33
|
-
'IconList'
|
|
33
|
+
'IconList',
|
|
34
|
+
'ProductVariants'
|
|
34
35
|
];
|
|
35
36
|
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
|
|
36
37
|
const item = builder[uid];
|
|
@@ -173,6 +174,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
173
174
|
styles: item.styles,
|
|
174
175
|
setting: item.settings,
|
|
175
176
|
advanced: {
|
|
177
|
+
...componentUsingAdvanced.includes(item.tag) ? item?.advanced : {},
|
|
176
178
|
cssClass: item?.advanced?.cssClass
|
|
177
179
|
},
|
|
178
180
|
pageContext,
|
|
@@ -238,5 +238,11 @@ const HulkProductOptionsConfig = {
|
|
|
238
238
|
appId: '380168ef-9475-4244-a291-f66b189208b5'
|
|
239
239
|
}
|
|
240
240
|
};
|
|
241
|
+
const TrustshopProductReviewsConfig = {
|
|
242
|
+
TrustshopProductReviews: {
|
|
243
|
+
appName: 'trustshop-reviews',
|
|
244
|
+
appId: '18b0c4cc-5411-4b6e-922d-34fdc2f30ab9'
|
|
245
|
+
}
|
|
246
|
+
};
|
|
241
247
|
|
|
242
|
-
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, HulkProductOptionsConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, MyappgurusProductReviewsConfig, PowerfulContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, SeoantTrustBadgesIconConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, TrustooConfig, TrustreviewsProductReviewsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
248
|
+
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, HulkProductOptionsConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, MyappgurusProductReviewsConfig, PowerfulContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, SeoantTrustBadgesIconConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, TrustooConfig, TrustreviewsProductReviewsConfig, TrustshopProductReviewsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
@@ -93,6 +93,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
93
93
|
selected_product: appSetting?.['productHandle'] || '{{ product }}'
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
+
case 'TrustshopProductReviews':
|
|
97
|
+
{
|
|
98
|
+
return {
|
|
99
|
+
...currentSetting,
|
|
100
|
+
selected_product: appSetting?.['productHandle'] || '{{ product }}'
|
|
101
|
+
};
|
|
102
|
+
}
|
|
96
103
|
case 'WhatmoreShoppableVideosreel':
|
|
97
104
|
{
|
|
98
105
|
return {
|
|
@@ -774,7 +781,18 @@ const HulkProductOptions = {
|
|
|
774
781
|
option_block: null
|
|
775
782
|
}
|
|
776
783
|
};
|
|
784
|
+
const TrustshopProductReviews = {
|
|
785
|
+
TrustshopProductReviews: {
|
|
786
|
+
'widget-product-rating': {
|
|
787
|
+
selected_product: '{{ product }}'
|
|
788
|
+
},
|
|
789
|
+
'all-reviews': null,
|
|
790
|
+
'widget-box': null,
|
|
791
|
+
'review-testimonial': null
|
|
792
|
+
}
|
|
793
|
+
};
|
|
777
794
|
const composeSettingsByWidgetType = {
|
|
795
|
+
...TrustshopProductReviews,
|
|
778
796
|
...HulkProductOptions,
|
|
779
797
|
...MyappgurusProductReviews,
|
|
780
798
|
...TrustreviewsProductReviews,
|
|
@@ -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, BestBuyFulfillmentConfig, AftershipEmailMarketingsmsConfig, SegunoEmailMarketingConfig, TrustooConfig, LooxReviewsConfig, SeoantTrustBadgesIconConfig, TrustreviewsProductReviewsConfig, MyappgurusProductReviewsConfig, HulkProductOptionsConfig } 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, BestBuyFulfillmentConfig, AftershipEmailMarketingsmsConfig, SegunoEmailMarketingConfig, TrustooConfig, LooxReviewsConfig, SeoantTrustBadgesIconConfig, TrustreviewsProductReviewsConfig, MyappgurusProductReviewsConfig, HulkProductOptionsConfig, TrustshopProductReviewsConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -40,7 +40,8 @@ const mapShopifyAppMeta = {
|
|
|
40
40
|
...SeoantTrustBadgesIconConfig,
|
|
41
41
|
...TrustreviewsProductReviewsConfig,
|
|
42
42
|
...MyappgurusProductReviewsConfig,
|
|
43
|
-
...HulkProductOptionsConfig
|
|
43
|
+
...HulkProductOptionsConfig,
|
|
44
|
+
...TrustshopProductReviewsConfig
|
|
44
45
|
};
|
|
45
46
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
46
47
|
|