@gem-sdk/core 2.0.0-dev.211 → 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.
@@ -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 {};
@@ -137,7 +137,8 @@ function composeAdvanceStyle(data, tag, pageType) {
137
137
  'ProductViewMore',
138
138
  'ProductButton',
139
139
  'DynamicCheckout',
140
- 'ProductList'
140
+ 'ProductList',
141
+ 'ProductQuantity'
141
142
  ];
142
143
  const boostElements = [
143
144
  'Icon',
@@ -288,6 +288,24 @@ const HextomCountdownTimerBarConfig = {
288
288
  appId: '7ef5d9af-75a2-45c7-9b1b-f9240ee488e9'
289
289
  }
290
290
  };
291
+ const TrustBadgesBearConfig = {
292
+ TrustBadgesBear: {
293
+ appName: 'trust-badges-bear',
294
+ appId: '163a9b59-0ec2-4cb7-bf5c-31408b4a9420'
295
+ }
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
+ };
291
309
 
292
310
  exports.AftershipEmailMarketingsmsConfig = AftershipEmailMarketingsmsConfig;
293
311
  exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
@@ -301,6 +319,7 @@ exports.EssentialCountdownTimerBarConfig = EssentialCountdownTimerBarConfig;
301
319
  exports.EstimatedDeliveryDatePlusConfig = EstimatedDeliveryDatePlusConfig;
302
320
  exports.FastBundleBundlesDiscountsConfig = FastBundleBundlesDiscountsConfig;
303
321
  exports.FlyBundlesUpsellsFbtConfig = FlyBundlesUpsellsFbtConfig;
322
+ exports.GloColorSwatchvariantImageConfig = GloColorSwatchvariantImageConfig;
304
323
  exports.GloboProductOptionsVariantConfig = GloboProductOptionsVariantConfig;
305
324
  exports.GrowaveConfig = GrowaveConfig;
306
325
  exports.HextomCountdownTimerBarConfig = HextomCountdownTimerBarConfig;
@@ -330,6 +349,8 @@ exports.SkioSubscriptionsYcS20Config = SkioSubscriptionsYcS20Config;
330
349
  exports.SproutPlantTreesGrowSalesConfig = SproutPlantTreesGrowSalesConfig;
331
350
  exports.StampedConfig = StampedConfig;
332
351
  exports.SubifySubscriptionsConfig = SubifySubscriptionsConfig;
352
+ exports.TrustBadgesBearConfig = TrustBadgesBearConfig;
353
+ exports.TrustedsiteTrustBadgesConfig = TrustedsiteTrustBadgesConfig;
333
354
  exports.TrustooConfig = TrustooConfig;
334
355
  exports.TrustreviewsProductReviewsConfig = TrustreviewsProductReviewsConfig;
335
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
  }
@@ -1078,6 +1085,27 @@ const HextomCountdownTimerBar = {
1078
1085
  'fsb-custom-placement': null
1079
1086
  }
1080
1087
  };
1088
+ const TrustBadgesBear = {
1089
+ TrustBadgesBear: {
1090
+ widget: null
1091
+ }
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
+ };
1081
1109
  const composeSettingsByWidgetType = {
1082
1110
  ...HextomCountdownTimerBar,
1083
1111
  ...EstimatedDeliveryDatePlus,
@@ -1126,7 +1154,10 @@ const composeSettingsByWidgetType = {
1126
1154
  ...Growave,
1127
1155
  ...KachingBundles,
1128
1156
  ...Trustoo,
1129
- ...LooxReviews
1157
+ ...LooxReviews,
1158
+ ...TrustBadgesBear,
1159
+ ...TrustedsiteTrustBadges,
1160
+ ...GloColorSwatchvariantImage
1130
1161
  };
1131
1162
 
1132
1163
  exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
@@ -50,7 +50,10 @@ const mapShopifyAppMeta = {
50
50
  ...appConfig.EssentialAnnouncementBarConfig,
51
51
  ...appConfig.OkendoReviewsLoyaltyConfig,
52
52
  ...appConfig.EstimatedDeliveryDatePlusConfig,
53
- ...appConfig.HextomCountdownTimerBarConfig
53
+ ...appConfig.HextomCountdownTimerBarConfig,
54
+ ...appConfig.TrustBadgesBearConfig,
55
+ ...appConfig.TrustedsiteTrustBadgesConfig,
56
+ ...appConfig.GloColorSwatchvariantImageConfig
54
57
  };
55
58
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
56
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 {};
@@ -135,7 +135,8 @@ function composeAdvanceStyle(data, tag, pageType) {
135
135
  'ProductViewMore',
136
136
  'ProductButton',
137
137
  'DynamicCheckout',
138
- 'ProductList'
138
+ 'ProductList',
139
+ 'ProductQuantity'
139
140
  ];
140
141
  const boostElements = [
141
142
  'Icon',
@@ -286,5 +286,23 @@ const HextomCountdownTimerBarConfig = {
286
286
  appId: '7ef5d9af-75a2-45c7-9b1b-f9240ee488e9'
287
287
  }
288
288
  };
289
+ const TrustBadgesBearConfig = {
290
+ TrustBadgesBear: {
291
+ appName: 'trust-badges-bear',
292
+ appId: '163a9b59-0ec2-4cb7-bf5c-31408b4a9420'
293
+ }
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
+ };
289
307
 
290
- 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, 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
  }
@@ -1076,6 +1083,27 @@ const HextomCountdownTimerBar = {
1076
1083
  'fsb-custom-placement': null
1077
1084
  }
1078
1085
  };
1086
+ const TrustBadgesBear = {
1087
+ TrustBadgesBear: {
1088
+ widget: null
1089
+ }
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
+ };
1079
1107
  const composeSettingsByWidgetType = {
1080
1108
  ...HextomCountdownTimerBar,
1081
1109
  ...EstimatedDeliveryDatePlus,
@@ -1124,7 +1152,10 @@ const composeSettingsByWidgetType = {
1124
1152
  ...Growave,
1125
1153
  ...KachingBundles,
1126
1154
  ...Trustoo,
1127
- ...LooxReviews
1155
+ ...LooxReviews,
1156
+ ...TrustBadgesBear,
1157
+ ...TrustedsiteTrustBadges,
1158
+ ...GloColorSwatchvariantImage
1128
1159
  };
1129
1160
 
1130
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 } 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,
@@ -48,7 +48,10 @@ const mapShopifyAppMeta = {
48
48
  ...EssentialAnnouncementBarConfig,
49
49
  ...OkendoReviewsLoyaltyConfig,
50
50
  ...EstimatedDeliveryDatePlusConfig,
51
- ...HextomCountdownTimerBarConfig
51
+ ...HextomCountdownTimerBarConfig,
52
+ ...TrustBadgesBearConfig,
53
+ ...TrustedsiteTrustBadgesConfig,
54
+ ...GloColorSwatchvariantImageConfig
52
55
  };
53
56
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
54
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "2.0.0-dev.211",
3
+ "version": "2.0.0-dev.218",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",