@gem-sdk/core 2.0.0-dev.212 → 2.0.0-dev.218
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/colors.js +2 -2
- package/dist/cjs/helpers/compose-advance-style.js +2 -1
- package/dist/cjs/helpers/third-party/appConfig.js +14 -0
- package/dist/cjs/helpers/third-party/appSetting.js +26 -1
- package/dist/cjs/helpers/third-party/constant.js +3 -1
- package/dist/esm/helpers/colors.js +2 -2
- package/dist/esm/helpers/compose-advance-style.js +2 -1
- package/dist/esm/helpers/third-party/appConfig.js +13 -1
- package/dist/esm/helpers/third-party/appSetting.js +26 -1
- package/dist/esm/helpers/third-party/constant.js +4 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var isDefined = require('./is-defined.js');
|
|
4
3
|
var constant = require('./constant.js');
|
|
4
|
+
var isDefined = require('./is-defined.js');
|
|
5
5
|
|
|
6
6
|
const getGlobalColorCSSProp = (color)=>{
|
|
7
7
|
return getSingleColorVariable(color);
|
|
@@ -156,7 +156,7 @@ const getSingleColorVariable = (color)=>{
|
|
|
156
156
|
};
|
|
157
157
|
function isColor(color) {
|
|
158
158
|
if (!color || typeof color !== 'string') return false;
|
|
159
|
-
return color?.startsWith('#') || color?.startsWith('rgb') || color?.startsWith('hsl') || color?.startsWith('transparent') || color?.startsWith('linear-gradient');
|
|
159
|
+
return color?.startsWith('#') || color?.startsWith('rgb') || color?.startsWith('RGB') || color?.startsWith('hsl') || color?.startsWith('transparent') || color?.startsWith('linear-gradient');
|
|
160
160
|
}
|
|
161
161
|
const getGlobalColorStyle = (data)=>{
|
|
162
162
|
if (!data) return {};
|
|
@@ -294,6 +294,18 @@ const TrustBadgesBearConfig = {
|
|
|
294
294
|
appId: '163a9b59-0ec2-4cb7-bf5c-31408b4a9420'
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
|
+
const TrustedsiteTrustBadgesConfig = {
|
|
298
|
+
TrustedsiteTrustBadges: {
|
|
299
|
+
appName: 'trustedsite-trust-badges',
|
|
300
|
+
appId: '3b73cc66-a9ae-4fcb-8ffb-743993d42e56'
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
const GloColorSwatchvariantImageConfig = {
|
|
304
|
+
GloColorSwatchvariantImage: {
|
|
305
|
+
appName: 'glo-color-swatch',
|
|
306
|
+
appId: '4394f710-096c-4021-bbde-8ebb26057c11'
|
|
307
|
+
}
|
|
308
|
+
};
|
|
297
309
|
|
|
298
310
|
exports.AftershipEmailMarketingsmsConfig = AftershipEmailMarketingsmsConfig;
|
|
299
311
|
exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
|
|
@@ -307,6 +319,7 @@ exports.EssentialCountdownTimerBarConfig = EssentialCountdownTimerBarConfig;
|
|
|
307
319
|
exports.EstimatedDeliveryDatePlusConfig = EstimatedDeliveryDatePlusConfig;
|
|
308
320
|
exports.FastBundleBundlesDiscountsConfig = FastBundleBundlesDiscountsConfig;
|
|
309
321
|
exports.FlyBundlesUpsellsFbtConfig = FlyBundlesUpsellsFbtConfig;
|
|
322
|
+
exports.GloColorSwatchvariantImageConfig = GloColorSwatchvariantImageConfig;
|
|
310
323
|
exports.GloboProductOptionsVariantConfig = GloboProductOptionsVariantConfig;
|
|
311
324
|
exports.GrowaveConfig = GrowaveConfig;
|
|
312
325
|
exports.HextomCountdownTimerBarConfig = HextomCountdownTimerBarConfig;
|
|
@@ -337,6 +350,7 @@ exports.SproutPlantTreesGrowSalesConfig = SproutPlantTreesGrowSalesConfig;
|
|
|
337
350
|
exports.StampedConfig = StampedConfig;
|
|
338
351
|
exports.SubifySubscriptionsConfig = SubifySubscriptionsConfig;
|
|
339
352
|
exports.TrustBadgesBearConfig = TrustBadgesBearConfig;
|
|
353
|
+
exports.TrustedsiteTrustBadgesConfig = TrustedsiteTrustBadgesConfig;
|
|
340
354
|
exports.TrustooConfig = TrustooConfig;
|
|
341
355
|
exports.TrustreviewsProductReviewsConfig = TrustreviewsProductReviewsConfig;
|
|
342
356
|
exports.TrustshopProductReviewsConfig = TrustshopProductReviewsConfig;
|
|
@@ -218,6 +218,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
218
218
|
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
|
+
case 'TrustedsiteTrustBadges':
|
|
222
|
+
{
|
|
223
|
+
return {
|
|
224
|
+
...currentSetting,
|
|
225
|
+
'tm-type': appSetting?.trustId
|
|
226
|
+
};
|
|
227
|
+
}
|
|
221
228
|
default:
|
|
222
229
|
return currentSetting;
|
|
223
230
|
}
|
|
@@ -1083,6 +1090,22 @@ const TrustBadgesBear = {
|
|
|
1083
1090
|
widget: null
|
|
1084
1091
|
}
|
|
1085
1092
|
};
|
|
1093
|
+
const TrustedsiteTrustBadges = {
|
|
1094
|
+
TrustedsiteTrustBadges: {
|
|
1095
|
+
engagement: {
|
|
1096
|
+
'tm-type': '202',
|
|
1097
|
+
'tm-size': '120'
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
};
|
|
1101
|
+
const GloColorSwatchvariantImage = {
|
|
1102
|
+
GloColorSwatchvariantImage: {
|
|
1103
|
+
'product-bundles-quantity-breaks': null,
|
|
1104
|
+
'product-swatches-detail': null,
|
|
1105
|
+
'product-bundles-combo': null,
|
|
1106
|
+
'product-groups-detail': null
|
|
1107
|
+
}
|
|
1108
|
+
};
|
|
1086
1109
|
const composeSettingsByWidgetType = {
|
|
1087
1110
|
...HextomCountdownTimerBar,
|
|
1088
1111
|
...EstimatedDeliveryDatePlus,
|
|
@@ -1132,7 +1155,9 @@ const composeSettingsByWidgetType = {
|
|
|
1132
1155
|
...KachingBundles,
|
|
1133
1156
|
...Trustoo,
|
|
1134
1157
|
...LooxReviews,
|
|
1135
|
-
...TrustBadgesBear
|
|
1158
|
+
...TrustBadgesBear,
|
|
1159
|
+
...TrustedsiteTrustBadges,
|
|
1160
|
+
...GloColorSwatchvariantImage
|
|
1136
1161
|
};
|
|
1137
1162
|
|
|
1138
1163
|
exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
|
|
@@ -51,7 +51,9 @@ const mapShopifyAppMeta = {
|
|
|
51
51
|
...appConfig.OkendoReviewsLoyaltyConfig,
|
|
52
52
|
...appConfig.EstimatedDeliveryDatePlusConfig,
|
|
53
53
|
...appConfig.HextomCountdownTimerBarConfig,
|
|
54
|
-
...appConfig.TrustBadgesBearConfig
|
|
54
|
+
...appConfig.TrustBadgesBearConfig,
|
|
55
|
+
...appConfig.TrustedsiteTrustBadgesConfig,
|
|
56
|
+
...appConfig.GloColorSwatchvariantImageConfig
|
|
55
57
|
};
|
|
56
58
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
57
59
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isDefined } from './is-defined.js';
|
|
2
1
|
import { stateMapping } from './constant.js';
|
|
2
|
+
import { isDefined } from './is-defined.js';
|
|
3
3
|
|
|
4
4
|
const getGlobalColorCSSProp = (color)=>{
|
|
5
5
|
return getSingleColorVariable(color);
|
|
@@ -154,7 +154,7 @@ const getSingleColorVariable = (color)=>{
|
|
|
154
154
|
};
|
|
155
155
|
function isColor(color) {
|
|
156
156
|
if (!color || typeof color !== 'string') return false;
|
|
157
|
-
return color?.startsWith('#') || color?.startsWith('rgb') || color?.startsWith('hsl') || color?.startsWith('transparent') || color?.startsWith('linear-gradient');
|
|
157
|
+
return color?.startsWith('#') || color?.startsWith('rgb') || color?.startsWith('RGB') || color?.startsWith('hsl') || color?.startsWith('transparent') || color?.startsWith('linear-gradient');
|
|
158
158
|
}
|
|
159
159
|
const getGlobalColorStyle = (data)=>{
|
|
160
160
|
if (!data) return {};
|
|
@@ -292,5 +292,17 @@ const TrustBadgesBearConfig = {
|
|
|
292
292
|
appId: '163a9b59-0ec2-4cb7-bf5c-31408b4a9420'
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
|
+
const TrustedsiteTrustBadgesConfig = {
|
|
296
|
+
TrustedsiteTrustBadges: {
|
|
297
|
+
appName: 'trustedsite-trust-badges',
|
|
298
|
+
appId: '3b73cc66-a9ae-4fcb-8ffb-743993d42e56'
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
const GloColorSwatchvariantImageConfig = {
|
|
302
|
+
GloColorSwatchvariantImage: {
|
|
303
|
+
appName: 'glo-color-swatch',
|
|
304
|
+
appId: '4394f710-096c-4021-bbde-8ebb26057c11'
|
|
305
|
+
}
|
|
306
|
+
};
|
|
295
307
|
|
|
296
|
-
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, BoostAISearchDiscoveryConfig, EasyBundleBuilderSkailamaConfig, EssentialAnnouncementBarConfig, EssentialCountdownTimerBarConfig, EstimatedDeliveryDatePlusConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, HextomCountdownTimerBarConfig, HulkProductOptionsConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, MyappgurusProductReviewsConfig, OkendoReviewsLoyaltyConfig, PowerfulContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, SeoantTrustBadgesIconConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, StampedConfig, SubifySubscriptionsConfig, TrustBadgesBearConfig, TrustooConfig, TrustreviewsProductReviewsConfig, TrustshopProductReviewsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
308
|
+
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, BoostAISearchDiscoveryConfig, EasyBundleBuilderSkailamaConfig, EssentialAnnouncementBarConfig, EssentialCountdownTimerBarConfig, EstimatedDeliveryDatePlusConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloColorSwatchvariantImageConfig, GloboProductOptionsVariantConfig, GrowaveConfig, HextomCountdownTimerBarConfig, HulkProductOptionsConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, MyappgurusProductReviewsConfig, OkendoReviewsLoyaltyConfig, PowerfulContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, SeoantTrustBadgesIconConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, StampedConfig, SubifySubscriptionsConfig, TrustBadgesBearConfig, TrustedsiteTrustBadgesConfig, TrustooConfig, TrustreviewsProductReviewsConfig, TrustshopProductReviewsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
@@ -216,6 +216,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
216
216
|
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
+
case 'TrustedsiteTrustBadges':
|
|
220
|
+
{
|
|
221
|
+
return {
|
|
222
|
+
...currentSetting,
|
|
223
|
+
'tm-type': appSetting?.trustId
|
|
224
|
+
};
|
|
225
|
+
}
|
|
219
226
|
default:
|
|
220
227
|
return currentSetting;
|
|
221
228
|
}
|
|
@@ -1081,6 +1088,22 @@ const TrustBadgesBear = {
|
|
|
1081
1088
|
widget: null
|
|
1082
1089
|
}
|
|
1083
1090
|
};
|
|
1091
|
+
const TrustedsiteTrustBadges = {
|
|
1092
|
+
TrustedsiteTrustBadges: {
|
|
1093
|
+
engagement: {
|
|
1094
|
+
'tm-type': '202',
|
|
1095
|
+
'tm-size': '120'
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
};
|
|
1099
|
+
const GloColorSwatchvariantImage = {
|
|
1100
|
+
GloColorSwatchvariantImage: {
|
|
1101
|
+
'product-bundles-quantity-breaks': null,
|
|
1102
|
+
'product-swatches-detail': null,
|
|
1103
|
+
'product-bundles-combo': null,
|
|
1104
|
+
'product-groups-detail': null
|
|
1105
|
+
}
|
|
1106
|
+
};
|
|
1084
1107
|
const composeSettingsByWidgetType = {
|
|
1085
1108
|
...HextomCountdownTimerBar,
|
|
1086
1109
|
...EstimatedDeliveryDatePlus,
|
|
@@ -1130,7 +1153,9 @@ const composeSettingsByWidgetType = {
|
|
|
1130
1153
|
...KachingBundles,
|
|
1131
1154
|
...Trustoo,
|
|
1132
1155
|
...LooxReviews,
|
|
1133
|
-
...TrustBadgesBear
|
|
1156
|
+
...TrustBadgesBear,
|
|
1157
|
+
...TrustedsiteTrustBadges,
|
|
1158
|
+
...GloColorSwatchvariantImage
|
|
1134
1159
|
};
|
|
1135
1160
|
|
|
1136
1161
|
export { composeSettingsByWidgetType, overrideSettings };
|
|
@@ -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, TrustshopProductReviewsConfig, StampedConfig, BoostAISearchDiscoveryConfig, EssentialCountdownTimerBarConfig, EssentialAnnouncementBarConfig, OkendoReviewsLoyaltyConfig, EstimatedDeliveryDatePlusConfig, HextomCountdownTimerBarConfig, TrustBadgesBearConfig } 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, StampedConfig, BoostAISearchDiscoveryConfig, EssentialCountdownTimerBarConfig, EssentialAnnouncementBarConfig, OkendoReviewsLoyaltyConfig, EstimatedDeliveryDatePlusConfig, HextomCountdownTimerBarConfig, TrustBadgesBearConfig, TrustedsiteTrustBadgesConfig, GloColorSwatchvariantImageConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -49,7 +49,9 @@ const mapShopifyAppMeta = {
|
|
|
49
49
|
...OkendoReviewsLoyaltyConfig,
|
|
50
50
|
...EstimatedDeliveryDatePlusConfig,
|
|
51
51
|
...HextomCountdownTimerBarConfig,
|
|
52
|
-
...TrustBadgesBearConfig
|
|
52
|
+
...TrustBadgesBearConfig,
|
|
53
|
+
...TrustedsiteTrustBadgesConfig,
|
|
54
|
+
...GloColorSwatchvariantImageConfig
|
|
53
55
|
};
|
|
54
56
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
55
57
|
|