@gem-sdk/core 1.58.0-dev.145 → 1.58.0-dev.147

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.
@@ -34,9 +34,10 @@ const componentIconList = [
34
34
  'IconList'
35
35
  ];
36
36
  const componentUsingAdvanced = [
37
- 'IconList'
37
+ 'IconList',
38
+ 'ProductVariants'
38
39
  ];
39
- const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, additionalSettings, ...passProps })=>{
40
+ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
40
41
  const item = builder[uid];
41
42
  const Component = components[item?.tag];
42
43
  if (!Component) {
@@ -75,7 +76,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
75
76
  advanced: item.advanced,
76
77
  parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
77
78
  pageContext,
78
- ...additionalSettings,
79
+ enableLazyloadImage,
79
80
  ...passProps,
80
81
  builderAttrs: {
81
82
  ...passProps.builderAttrs
@@ -88,7 +89,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
88
89
  components,
89
90
  customProps,
90
91
  pageContext,
91
- ...additionalSettings
92
+ enableLazyloadImage
92
93
  };
93
94
  }),
94
95
  children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -101,7 +102,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
101
102
  customProps,
102
103
  parentTag: item.tag,
103
104
  pageContext,
104
- ...additionalSettings
105
+ enableLazyloadImage
105
106
  }))) : ''
106
107
  });
107
108
  }, ()=>{
@@ -117,7 +118,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
117
118
  isText: componentTexts.includes(item.tag) ? true : null,
118
119
  parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
119
120
  pageContext,
120
- ...additionalSettings,
121
+ enableLazyloadImage,
121
122
  ...passProps,
122
123
  builderAttrs: {
123
124
  ...passProps.builderAttrs
@@ -139,7 +140,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
139
140
  cssClass: item?.advanced?.cssClass
140
141
  },
141
142
  pageContext,
142
- ...additionalSettings,
143
+ enableLazyloadImage,
143
144
  ...passProps,
144
145
  builderAttrs: {
145
146
  ...passProps.builderAttrs
@@ -152,7 +153,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
152
153
  components,
153
154
  customProps,
154
155
  pageContext,
155
- ...additionalSettings
156
+ enableLazyloadImage
156
157
  };
157
158
  }),
158
159
  children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -165,7 +166,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
165
166
  customProps,
166
167
  parentTag: item.tag,
167
168
  pageContext,
168
- ...additionalSettings
169
+ enableLazyloadImage
169
170
  }))) : ''
170
171
  });
171
172
  }, ()=>{
@@ -177,10 +178,11 @@ 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,
183
- ...additionalSettings,
185
+ enableLazyloadImage,
184
186
  isText: componentTexts.includes(item.tag) ? true : null,
185
187
  style: componentIconList.includes(item.tag) ? style : null,
186
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
 
@@ -30,9 +30,10 @@ const componentIconList = [
30
30
  'IconList'
31
31
  ];
32
32
  const componentUsingAdvanced = [
33
- 'IconList'
33
+ 'IconList',
34
+ 'ProductVariants'
34
35
  ];
35
- const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, additionalSettings, ...passProps })=>{
36
+ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
36
37
  const item = builder[uid];
37
38
  const Component = components[item?.tag];
38
39
  if (!Component) {
@@ -71,7 +72,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
71
72
  advanced: item.advanced,
72
73
  parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
73
74
  pageContext,
74
- ...additionalSettings,
75
+ enableLazyloadImage,
75
76
  ...passProps,
76
77
  builderAttrs: {
77
78
  ...passProps.builderAttrs
@@ -84,7 +85,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
84
85
  components,
85
86
  customProps,
86
87
  pageContext,
87
- ...additionalSettings
88
+ enableLazyloadImage
88
89
  };
89
90
  }),
90
91
  children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -97,7 +98,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
97
98
  customProps,
98
99
  parentTag: item.tag,
99
100
  pageContext,
100
- ...additionalSettings
101
+ enableLazyloadImage
101
102
  }))) : ''
102
103
  });
103
104
  }, ()=>{
@@ -113,7 +114,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
113
114
  isText: componentTexts.includes(item.tag) ? true : null,
114
115
  parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
115
116
  pageContext,
116
- ...additionalSettings,
117
+ enableLazyloadImage,
117
118
  ...passProps,
118
119
  builderAttrs: {
119
120
  ...passProps.builderAttrs
@@ -135,7 +136,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
135
136
  cssClass: item?.advanced?.cssClass
136
137
  },
137
138
  pageContext,
138
- ...additionalSettings,
139
+ enableLazyloadImage,
139
140
  ...passProps,
140
141
  builderAttrs: {
141
142
  ...passProps.builderAttrs
@@ -148,7 +149,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
148
149
  components,
149
150
  customProps,
150
151
  pageContext,
151
- ...additionalSettings
152
+ enableLazyloadImage
152
153
  };
153
154
  }),
154
155
  children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
@@ -161,7 +162,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
161
162
  customProps,
162
163
  parentTag: item.tag,
163
164
  pageContext,
164
- ...additionalSettings
165
+ enableLazyloadImage
165
166
  }))) : ''
166
167
  });
167
168
  }, ()=>{
@@ -173,10 +174,11 @@ 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,
179
- ...additionalSettings,
181
+ enableLazyloadImage,
180
182
  isText: componentTexts.includes(item.tag) ? true : null,
181
183
  style: componentIconList.includes(item.tag) ? style : null,
182
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.145",
3
+ "version": "1.58.0-dev.147",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",