@gem-sdk/core 1.58.0-dev.146 → 1.58.0-dev.148

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.
@@ -37,7 +37,7 @@ const componentUsingAdvanced = [
37
37
  'IconList',
38
38
  'ProductVariants'
39
39
  ];
40
- const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, additionalSettings, ...passProps })=>{
40
+ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
41
41
  const item = builder[uid];
42
42
  const Component = components[item?.tag];
43
43
  if (!Component) {
@@ -76,7 +76,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
76
76
  advanced: item.advanced,
77
77
  parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
78
78
  pageContext,
79
- ...additionalSettings,
79
+ enableLazyloadImage,
80
80
  ...passProps,
81
81
  builderAttrs: {
82
82
  ...passProps.builderAttrs
@@ -89,7 +89,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
89
89
  components,
90
90
  customProps,
91
91
  pageContext,
92
- ...additionalSettings
92
+ enableLazyloadImage
93
93
  };
94
94
  }),
95
95
  children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -102,7 +102,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
102
102
  customProps,
103
103
  parentTag: item.tag,
104
104
  pageContext,
105
- ...additionalSettings
105
+ enableLazyloadImage
106
106
  }))) : ''
107
107
  });
108
108
  }, ()=>{
@@ -118,7 +118,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
118
118
  isText: componentTexts.includes(item.tag) ? true : null,
119
119
  parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
120
120
  pageContext,
121
- ...additionalSettings,
121
+ enableLazyloadImage,
122
122
  ...passProps,
123
123
  builderAttrs: {
124
124
  ...passProps.builderAttrs
@@ -140,7 +140,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
140
140
  cssClass: item?.advanced?.cssClass
141
141
  },
142
142
  pageContext,
143
- ...additionalSettings,
143
+ enableLazyloadImage,
144
144
  ...passProps,
145
145
  builderAttrs: {
146
146
  ...passProps.builderAttrs
@@ -153,7 +153,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
153
153
  components,
154
154
  customProps,
155
155
  pageContext,
156
- ...additionalSettings
156
+ enableLazyloadImage
157
157
  };
158
158
  }),
159
159
  children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -166,7 +166,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
166
166
  customProps,
167
167
  parentTag: item.tag,
168
168
  pageContext,
169
- ...additionalSettings
169
+ enableLazyloadImage
170
170
  }))) : ''
171
171
  });
172
172
  }, ()=>{
@@ -182,7 +182,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
182
182
  cssClass: item?.advanced?.cssClass
183
183
  },
184
184
  pageContext,
185
- ...additionalSettings,
185
+ enableLazyloadImage,
186
186
  isText: componentTexts.includes(item.tag) ? true : null,
187
187
  style: componentIconList.includes(item.tag) ? style : null,
188
188
  ...passProps,
@@ -246,6 +246,12 @@ const HulkProductOptionsConfig = {
246
246
  appId: '380168ef-9475-4244-a291-f66b189208b5'
247
247
  }
248
248
  };
249
+ const TrustshopProductReviewsConfig = {
250
+ TrustshopProductReviews: {
251
+ appName: 'trustshop-reviews',
252
+ appId: '18b0c4cc-5411-4b6e-922d-34fdc2f30ab9'
253
+ }
254
+ };
249
255
 
250
256
  exports.AftershipEmailMarketingsmsConfig = AftershipEmailMarketingsmsConfig;
251
257
  exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
@@ -284,6 +290,7 @@ exports.SproutPlantTreesGrowSalesConfig = SproutPlantTreesGrowSalesConfig;
284
290
  exports.SubifySubscriptionsConfig = SubifySubscriptionsConfig;
285
291
  exports.TrustooConfig = TrustooConfig;
286
292
  exports.TrustreviewsProductReviewsConfig = TrustreviewsProductReviewsConfig;
293
+ exports.TrustshopProductReviewsConfig = TrustshopProductReviewsConfig;
287
294
  exports.UnlimitedBundlesDiscountsConfig = UnlimitedBundlesDiscountsConfig;
288
295
  exports.WhatmoreShoppableVideosreelConfig = WhatmoreShoppableVideosreelConfig;
289
296
  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,
@@ -43,7 +43,8 @@ const mapShopifyAppMeta = {
43
43
  ...appConfig.PowrContactFormBuilderConfig,
44
44
  ...appConfig.MyappgurusProductReviewsConfig,
45
45
  ...appConfig.TrustreviewsProductReviewsConfig,
46
- ...appConfig.HulkProductOptionsConfig
46
+ ...appConfig.HulkProductOptionsConfig,
47
+ ...appConfig.TrustshopProductReviewsConfig
47
48
  };
48
49
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
49
50
 
@@ -33,7 +33,7 @@ const componentUsingAdvanced = [
33
33
  'IconList',
34
34
  'ProductVariants'
35
35
  ];
36
- const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, additionalSettings, ...passProps })=>{
36
+ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
37
37
  const item = builder[uid];
38
38
  const Component = components[item?.tag];
39
39
  if (!Component) {
@@ -72,7 +72,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
72
72
  advanced: item.advanced,
73
73
  parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
74
74
  pageContext,
75
- ...additionalSettings,
75
+ enableLazyloadImage,
76
76
  ...passProps,
77
77
  builderAttrs: {
78
78
  ...passProps.builderAttrs
@@ -85,7 +85,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
85
85
  components,
86
86
  customProps,
87
87
  pageContext,
88
- ...additionalSettings
88
+ enableLazyloadImage
89
89
  };
90
90
  }),
91
91
  children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -98,7 +98,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
98
98
  customProps,
99
99
  parentTag: item.tag,
100
100
  pageContext,
101
- ...additionalSettings
101
+ enableLazyloadImage
102
102
  }))) : ''
103
103
  });
104
104
  }, ()=>{
@@ -114,7 +114,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
114
114
  isText: componentTexts.includes(item.tag) ? true : null,
115
115
  parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
116
116
  pageContext,
117
- ...additionalSettings,
117
+ enableLazyloadImage,
118
118
  ...passProps,
119
119
  builderAttrs: {
120
120
  ...passProps.builderAttrs
@@ -136,7 +136,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
136
136
  cssClass: item?.advanced?.cssClass
137
137
  },
138
138
  pageContext,
139
- ...additionalSettings,
139
+ enableLazyloadImage,
140
140
  ...passProps,
141
141
  builderAttrs: {
142
142
  ...passProps.builderAttrs
@@ -149,7 +149,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
149
149
  components,
150
150
  customProps,
151
151
  pageContext,
152
- ...additionalSettings
152
+ enableLazyloadImage
153
153
  };
154
154
  }),
155
155
  children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -162,7 +162,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
162
162
  customProps,
163
163
  parentTag: item.tag,
164
164
  pageContext,
165
- ...additionalSettings
165
+ enableLazyloadImage
166
166
  }))) : ''
167
167
  });
168
168
  }, ()=>{
@@ -178,7 +178,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
178
178
  cssClass: item?.advanced?.cssClass
179
179
  },
180
180
  pageContext,
181
- ...additionalSettings,
181
+ enableLazyloadImage,
182
182
  isText: componentTexts.includes(item.tag) ? true : null,
183
183
  style: componentIconList.includes(item.tag) ? style : null,
184
184
  ...passProps,
@@ -244,5 +244,11 @@ const HulkProductOptionsConfig = {
244
244
  appId: '380168ef-9475-4244-a291-f66b189208b5'
245
245
  }
246
246
  };
247
+ const TrustshopProductReviewsConfig = {
248
+ TrustshopProductReviews: {
249
+ appName: 'trustshop-reviews',
250
+ appId: '18b0c4cc-5411-4b6e-922d-34fdc2f30ab9'
251
+ }
252
+ };
247
253
 
248
- export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, HulkProductOptionsConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, MyappgurusProductReviewsConfig, PowerfulContactFormBuilderConfig, PowrContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, SeoantTrustBadgesIconConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, TrustooConfig, TrustreviewsProductReviewsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
254
+ export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, HulkProductOptionsConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, MyappgurusProductReviewsConfig, PowerfulContactFormBuilderConfig, PowrContactFormBuilderConfig, 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, PowrContactFormBuilderConfig, MyappgurusProductReviewsConfig, TrustreviewsProductReviewsConfig, 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, PowrContactFormBuilderConfig, MyappgurusProductReviewsConfig, TrustreviewsProductReviewsConfig, HulkProductOptionsConfig, TrustshopProductReviewsConfig } from './appConfig.js';
2
2
 
3
3
  const mapShopifyAppMeta = {
4
4
  ...RechargeSubscriptionsConfig,
@@ -41,7 +41,8 @@ const mapShopifyAppMeta = {
41
41
  ...PowrContactFormBuilderConfig,
42
42
  ...MyappgurusProductReviewsConfig,
43
43
  ...TrustreviewsProductReviewsConfig,
44
- ...HulkProductOptionsConfig
44
+ ...HulkProductOptionsConfig,
45
+ ...TrustshopProductReviewsConfig
45
46
  };
46
47
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
47
48
 
@@ -9222,6 +9222,7 @@ type PageContext = {
9222
9222
  pageType?: string;
9223
9223
  isTranslateWithLocale?: boolean;
9224
9224
  sectionName?: string;
9225
+ isOptimizePlan?: boolean;
9225
9226
  };
9226
9227
  type OnlyOne<T, U> = (T & {
9227
9228
  [K in keyof U]?: never;
@@ -31728,10 +31729,10 @@ type Props = {
31728
31729
  components: Record<string, any>;
31729
31730
  extraFiles?: ExtraFiles;
31730
31731
  pageContext?: PageContext;
31731
- additionalSettings?: Record<string, any>;
31732
+ enableLazyloadImage?: boolean;
31732
31733
  [key: string]: any;
31733
31734
  };
31734
- declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, additionalSettings, ...passProps }: Props) => {
31735
+ declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, enableLazyloadImage, ...passProps }: Props) => {
31735
31736
  liquid: string;
31736
31737
  extraFiles: ExtraFiles;
31737
31738
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.58.0-dev.146",
3
+ "version": "1.58.0-dev.148",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",