@gem-sdk/core 2.0.3 → 2.0.9
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/contexts/BuilderPreviewContext.js +1 -5
- package/dist/cjs/helpers/third-party/appConfig.js +56 -0
- package/dist/cjs/helpers/third-party/appSetting.js +181 -1
- package/dist/cjs/helpers/third-party/constant.js +9 -1
- package/dist/esm/contexts/BuilderPreviewContext.js +1 -5
- package/dist/esm/helpers/third-party/appConfig.js +49 -1
- package/dist/esm/helpers/third-party/appSetting.js +181 -1
- package/dist/esm/helpers/third-party/constant.js +10 -2
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -1
|
@@ -254,11 +254,7 @@ const createBuilderPreviewProvider = (args, pageName, isThemeSectionEditor)=>zus
|
|
|
254
254
|
}
|
|
255
255
|
},
|
|
256
256
|
getItem: (id)=>{
|
|
257
|
-
|
|
258
|
-
return {
|
|
259
|
-
...item,
|
|
260
|
-
rawChildrens: item?.childrens?.map((v)=>get().state[v])
|
|
261
|
-
};
|
|
257
|
+
return get().state[id];
|
|
262
258
|
},
|
|
263
259
|
removeItem: (id)=>{
|
|
264
260
|
if (id === 'ROOT') {
|
|
@@ -204,8 +204,58 @@ const PowrContactFormBuilderConfig = {
|
|
|
204
204
|
appId: '1412fe37-d89c-4706-a797-6e2b53cb4a69'
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
+
const BestBuyFulfillmentConfig = {
|
|
208
|
+
BestBuyFulfillment: {
|
|
209
|
+
appName: 'best-buy-fulfillment',
|
|
210
|
+
appId: 'd9839db8-b94c-4590-ac73-3469abe7ed9b'
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
const AftershipEmailMarketingsmsConfig = {
|
|
214
|
+
AftershipEmailMarketingsms: {
|
|
215
|
+
appName: 'aftership-email-marketing-sms',
|
|
216
|
+
appId: '2db13273-f8db-4274-be89-c86a3352fb70'
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
const SegunoEmailMarketingConfig = {
|
|
220
|
+
SegunoEmailMarketing: {
|
|
221
|
+
appName: 'seguno-email',
|
|
222
|
+
appId: 'db65571f-fa4d-473d-baa2-283a96dc76bc'
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const SeoantTrustBadgesIconConfig = {
|
|
226
|
+
SeoantTrustBadgesIcon: {
|
|
227
|
+
appName: 'seoant-trust-badges',
|
|
228
|
+
appId: 'f42f2346-5d14-4b41-a8b9-4b6ee352262e'
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
const TrustreviewsProductReviewsConfig = {
|
|
232
|
+
TrustreviewsProductReviews: {
|
|
233
|
+
appName: 'trustreviews',
|
|
234
|
+
appId: '56d0fe1b-e701-4cff-8f84-466a26e09adb'
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
const MyappgurusProductReviewsConfig = {
|
|
238
|
+
MyappgurusProductReviews: {
|
|
239
|
+
appName: 'mag-product-reviews',
|
|
240
|
+
appId: '0cf5caa0-e138-46b8-999b-520d16633e4c'
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
const HulkProductOptionsConfig = {
|
|
244
|
+
HulkProductOptions: {
|
|
245
|
+
appName: 'hulk-product-options',
|
|
246
|
+
appId: '380168ef-9475-4244-a291-f66b189208b5'
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
const TrustshopProductReviewsConfig = {
|
|
250
|
+
TrustshopProductReviews: {
|
|
251
|
+
appName: 'trustshop-reviews',
|
|
252
|
+
appId: '18b0c4cc-5411-4b6e-922d-34fdc2f30ab9'
|
|
253
|
+
}
|
|
254
|
+
};
|
|
207
255
|
|
|
256
|
+
exports.AftershipEmailMarketingsmsConfig = AftershipEmailMarketingsmsConfig;
|
|
208
257
|
exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
|
|
258
|
+
exports.BestBuyFulfillmentConfig = BestBuyFulfillmentConfig;
|
|
209
259
|
exports.BoldSubscriptionsConfig = BoldSubscriptionsConfig;
|
|
210
260
|
exports.BonLoyaltyRewardsReferralsConfig = BonLoyaltyRewardsReferralsConfig;
|
|
211
261
|
exports.EasyBundleBuilderSkailamaConfig = EasyBundleBuilderSkailamaConfig;
|
|
@@ -213,6 +263,7 @@ exports.FastBundleBundlesDiscountsConfig = FastBundleBundlesDiscountsConfig;
|
|
|
213
263
|
exports.FlyBundlesUpsellsFbtConfig = FlyBundlesUpsellsFbtConfig;
|
|
214
264
|
exports.GloboProductOptionsVariantConfig = GloboProductOptionsVariantConfig;
|
|
215
265
|
exports.GrowaveConfig = GrowaveConfig;
|
|
266
|
+
exports.HulkProductOptionsConfig = HulkProductOptionsConfig;
|
|
216
267
|
exports.InstasellShoppableInstagramConfig = InstasellShoppableInstagramConfig;
|
|
217
268
|
exports.JunipProductReviewsUgcConfig = JunipProductReviewsUgcConfig;
|
|
218
269
|
exports.KachingBundlesConfig = KachingBundlesConfig;
|
|
@@ -220,6 +271,7 @@ exports.KiteFreeGiftDiscountConfig = KiteFreeGiftDiscountConfig;
|
|
|
220
271
|
exports.LoloyalLoyaltyReferralsConfig = LoloyalLoyaltyReferralsConfig;
|
|
221
272
|
exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
|
|
222
273
|
exports.LooxReviewsConfig = LooxReviewsConfig;
|
|
274
|
+
exports.MyappgurusProductReviewsConfig = MyappgurusProductReviewsConfig;
|
|
223
275
|
exports.PowerfulContactFormBuilderConfig = PowerfulContactFormBuilderConfig;
|
|
224
276
|
exports.PowrContactFormBuilderConfig = PowrContactFormBuilderConfig;
|
|
225
277
|
exports.PreorderNowPreOrderPqConfig = PreorderNowPreOrderPqConfig;
|
|
@@ -228,13 +280,17 @@ exports.ProductOptionsCustomizerConfig = ProductOptionsCustomizerConfig;
|
|
|
228
280
|
exports.PumperBundlesVolumeDiscountConfig = PumperBundlesVolumeDiscountConfig;
|
|
229
281
|
exports.RechargeSubscriptionsConfig = RechargeSubscriptionsConfig;
|
|
230
282
|
exports.ReviewxpoProductReviewsAppConfig = ReviewxpoProductReviewsAppConfig;
|
|
283
|
+
exports.SegunoEmailMarketingConfig = SegunoEmailMarketingConfig;
|
|
231
284
|
exports.SelleasyConfig = SelleasyConfig;
|
|
285
|
+
exports.SeoantTrustBadgesIconConfig = SeoantTrustBadgesIconConfig;
|
|
232
286
|
exports.ShopifyFormsConfig = ShopifyFormsConfig;
|
|
233
287
|
exports.SimpleBundlesKitsConfig = SimpleBundlesKitsConfig;
|
|
234
288
|
exports.SkioSubscriptionsYcS20Config = SkioSubscriptionsYcS20Config;
|
|
235
289
|
exports.SproutPlantTreesGrowSalesConfig = SproutPlantTreesGrowSalesConfig;
|
|
236
290
|
exports.SubifySubscriptionsConfig = SubifySubscriptionsConfig;
|
|
237
291
|
exports.TrustooConfig = TrustooConfig;
|
|
292
|
+
exports.TrustreviewsProductReviewsConfig = TrustreviewsProductReviewsConfig;
|
|
293
|
+
exports.TrustshopProductReviewsConfig = TrustshopProductReviewsConfig;
|
|
238
294
|
exports.UnlimitedBundlesDiscountsConfig = UnlimitedBundlesDiscountsConfig;
|
|
239
295
|
exports.WhatmoreShoppableVideosreelConfig = WhatmoreShoppableVideosreelConfig;
|
|
240
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 {
|
|
@@ -137,6 +144,20 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
137
144
|
app_id: appSetting?.appId
|
|
138
145
|
};
|
|
139
146
|
}
|
|
147
|
+
case 'AftershipEmailMarketingsms':
|
|
148
|
+
{
|
|
149
|
+
return {
|
|
150
|
+
...currentSetting,
|
|
151
|
+
embedded_form_id: appSetting?.formId
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
case 'SeoantTrustBadgesIcon':
|
|
155
|
+
{
|
|
156
|
+
return {
|
|
157
|
+
...currentSetting,
|
|
158
|
+
badge_id: appSetting?.BadgeId
|
|
159
|
+
};
|
|
160
|
+
}
|
|
140
161
|
default:
|
|
141
162
|
return currentSetting;
|
|
142
163
|
}
|
|
@@ -631,12 +652,171 @@ const LooxReviews = {
|
|
|
631
652
|
const PowrContactFormBuilder = {
|
|
632
653
|
PowrContactFormBuilder: {
|
|
633
654
|
'app-block': {
|
|
634
|
-
|
|
655
|
+
app_id: ''
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
const BestBuyFulfillment = {
|
|
660
|
+
BestBuyFulfillment: {
|
|
661
|
+
'pickup-selector': null
|
|
662
|
+
}
|
|
663
|
+
};
|
|
664
|
+
const AftershipEmailMarketingsms = {
|
|
665
|
+
AftershipEmailMarketingsms: {
|
|
666
|
+
embeded_form: {
|
|
667
|
+
embedded_form_id: ''
|
|
635
668
|
}
|
|
636
669
|
}
|
|
637
670
|
};
|
|
671
|
+
const SegunoEmailMarketing = {
|
|
672
|
+
SegunoEmailMarketing: {
|
|
673
|
+
back_in_stock: {
|
|
674
|
+
heading: '<h3>Get notified when this is back in stock</h3>',
|
|
675
|
+
label_email: 'Email',
|
|
676
|
+
placeholder_email: '',
|
|
677
|
+
show_permission_checkbox: true,
|
|
678
|
+
label_permission: '<p>Also, sign up to receive newsletters</p>',
|
|
679
|
+
label_notify: 'Notify me',
|
|
680
|
+
label_success: '<p>Thanks! You will be notified once the product is back in stock.</p>',
|
|
681
|
+
product_exclusion_tag: 'back-in-stock-excluded',
|
|
682
|
+
default_variant: 'available',
|
|
683
|
+
padding: 0,
|
|
684
|
+
form_gap: 16,
|
|
685
|
+
button_alignment: 'stretch',
|
|
686
|
+
font_size: 16,
|
|
687
|
+
input_font_size: 16,
|
|
688
|
+
button_font_size: 16,
|
|
689
|
+
background_color: '#ffffff',
|
|
690
|
+
text_color: '#121212',
|
|
691
|
+
button_background_color: '#121212',
|
|
692
|
+
button_border_color: '#121212',
|
|
693
|
+
button_text_color: '#ffffff',
|
|
694
|
+
input_background_color: '#ffffff',
|
|
695
|
+
input_border_color: '#121212',
|
|
696
|
+
input_text_color: '#121212',
|
|
697
|
+
custom_css: ''
|
|
698
|
+
},
|
|
699
|
+
newsletter_form: {
|
|
700
|
+
heading: 'Subscribe to our newsletter',
|
|
701
|
+
subheading: '<p>Be the first to know about new collections and exclusive offers.</p>',
|
|
702
|
+
show_first_name: false,
|
|
703
|
+
show_last_name: false,
|
|
704
|
+
show_permission_checkbox: false,
|
|
705
|
+
tags: 'newsletter',
|
|
706
|
+
return_to: '',
|
|
707
|
+
label_first_name: 'First name',
|
|
708
|
+
placeholder_first_name: '',
|
|
709
|
+
label_last_name: 'Last name',
|
|
710
|
+
placeholder_last_name: '',
|
|
711
|
+
label_email: 'Email',
|
|
712
|
+
placeholder_email: '',
|
|
713
|
+
label_permission: '<p>I agree to receive marketing emails</p>',
|
|
714
|
+
label_subscribe: 'Subscribe',
|
|
715
|
+
success_message: 'Thanks for subscribing',
|
|
716
|
+
background_color: '#ffffff',
|
|
717
|
+
text_color: '#1a1b18',
|
|
718
|
+
button_background_color: '#445958',
|
|
719
|
+
button_text_color: '#ffffff'
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
const SeoantTrustBadgesIcon = {
|
|
724
|
+
SeoantTrustBadgesIcon: {
|
|
725
|
+
star_rating: {
|
|
726
|
+
badge_id: null
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
const TrustreviewsProductReviews = {
|
|
731
|
+
TrustreviewsProductReviews: {
|
|
732
|
+
questions_widget: {
|
|
733
|
+
product: '{{ product }}'
|
|
734
|
+
},
|
|
735
|
+
'review-carousel': null,
|
|
736
|
+
reviews_text_widget: null,
|
|
737
|
+
reviews_widget: {
|
|
738
|
+
product: '{{ product }}'
|
|
739
|
+
},
|
|
740
|
+
shop_reviews_widget: null,
|
|
741
|
+
star_rating: {
|
|
742
|
+
product: '{{product}}',
|
|
743
|
+
hide_on_no_reviews: false,
|
|
744
|
+
enable_jsonld: false,
|
|
745
|
+
starsize: 16,
|
|
746
|
+
addtional_text: ''
|
|
747
|
+
},
|
|
748
|
+
'reviews-testimonials': null,
|
|
749
|
+
all_reviews_widget: null,
|
|
750
|
+
'review-cards': null,
|
|
751
|
+
'review-gallery': null,
|
|
752
|
+
medals: null
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
const MyappgurusProductReviews = {
|
|
756
|
+
MyappgurusProductReviews: {
|
|
757
|
+
allReviews: {
|
|
758
|
+
Show_by_label: ''
|
|
759
|
+
},
|
|
760
|
+
allReviewsCounter: {
|
|
761
|
+
out_of_label: '',
|
|
762
|
+
stars_based_on_label: '',
|
|
763
|
+
reviews_label: ''
|
|
764
|
+
},
|
|
765
|
+
form: {
|
|
766
|
+
block_heading: '',
|
|
767
|
+
no_rating: '',
|
|
768
|
+
subtitle2: '',
|
|
769
|
+
review_btn: '',
|
|
770
|
+
see_all_reviews_label: '',
|
|
771
|
+
form_heading: '',
|
|
772
|
+
name_label: '',
|
|
773
|
+
email_label: '',
|
|
774
|
+
review_title_label: '',
|
|
775
|
+
review_description_label: '',
|
|
776
|
+
ratings_label: '',
|
|
777
|
+
delivery_ratings_label: '',
|
|
778
|
+
payment_ratings_label: '',
|
|
779
|
+
price_ratings_label: '',
|
|
780
|
+
review_image_label: '',
|
|
781
|
+
submit_btn_label: '',
|
|
782
|
+
cancel_btn_label: '',
|
|
783
|
+
sort_label: '',
|
|
784
|
+
sort1_label: '',
|
|
785
|
+
sort2_label: '',
|
|
786
|
+
sort3_label: '',
|
|
787
|
+
showing_label: '',
|
|
788
|
+
to_label: '',
|
|
789
|
+
of_label: '',
|
|
790
|
+
results_label: ''
|
|
791
|
+
},
|
|
792
|
+
star: null
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
const HulkProductOptions = {
|
|
796
|
+
HulkProductOptions: {
|
|
797
|
+
option_block: null
|
|
798
|
+
}
|
|
799
|
+
};
|
|
800
|
+
const TrustshopProductReviews = {
|
|
801
|
+
TrustshopProductReviews: {
|
|
802
|
+
'widget-product-rating': {
|
|
803
|
+
selected_product: '{{ product }}'
|
|
804
|
+
},
|
|
805
|
+
'all-reviews': null,
|
|
806
|
+
'widget-box': null,
|
|
807
|
+
'review-testimonial': null
|
|
808
|
+
}
|
|
809
|
+
};
|
|
638
810
|
const composeSettingsByWidgetType = {
|
|
811
|
+
...TrustshopProductReviews,
|
|
812
|
+
...HulkProductOptions,
|
|
813
|
+
...TrustreviewsProductReviews,
|
|
814
|
+
...MyappgurusProductReviews,
|
|
815
|
+
...SeoantTrustBadgesIcon,
|
|
639
816
|
...PowrContactFormBuilder,
|
|
817
|
+
...SegunoEmailMarketing,
|
|
818
|
+
...AftershipEmailMarketingsms,
|
|
819
|
+
...BestBuyFulfillment,
|
|
640
820
|
...GloboProductOptionsVariant,
|
|
641
821
|
...WishlistKing,
|
|
642
822
|
...LoloyalLoyaltyReferrals,
|
|
@@ -36,7 +36,15 @@ const mapShopifyAppMeta = {
|
|
|
36
36
|
...appConfig.KachingBundlesConfig,
|
|
37
37
|
...appConfig.TrustooConfig,
|
|
38
38
|
...appConfig.LooxReviewsConfig,
|
|
39
|
-
...appConfig.PowrContactFormBuilderConfig
|
|
39
|
+
...appConfig.PowrContactFormBuilderConfig,
|
|
40
|
+
...appConfig.BestBuyFulfillmentConfig,
|
|
41
|
+
...appConfig.AftershipEmailMarketingsmsConfig,
|
|
42
|
+
...appConfig.SegunoEmailMarketingConfig,
|
|
43
|
+
...appConfig.SeoantTrustBadgesIconConfig,
|
|
44
|
+
...appConfig.TrustreviewsProductReviewsConfig,
|
|
45
|
+
...appConfig.MyappgurusProductReviewsConfig,
|
|
46
|
+
...appConfig.HulkProductOptionsConfig,
|
|
47
|
+
...appConfig.TrustshopProductReviewsConfig
|
|
40
48
|
};
|
|
41
49
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
42
50
|
|
|
@@ -252,11 +252,7 @@ const createBuilderPreviewProvider = (args, pageName, isThemeSectionEditor)=>cre
|
|
|
252
252
|
}
|
|
253
253
|
},
|
|
254
254
|
getItem: (id)=>{
|
|
255
|
-
|
|
256
|
-
return {
|
|
257
|
-
...item,
|
|
258
|
-
rawChildrens: item?.childrens?.map((v)=>get().state[v])
|
|
259
|
-
};
|
|
255
|
+
return get().state[id];
|
|
260
256
|
},
|
|
261
257
|
removeItem: (id)=>{
|
|
262
258
|
if (id === 'ROOT') {
|
|
@@ -202,5 +202,53 @@ const PowrContactFormBuilderConfig = {
|
|
|
202
202
|
appId: '1412fe37-d89c-4706-a797-6e2b53cb4a69'
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
|
+
const BestBuyFulfillmentConfig = {
|
|
206
|
+
BestBuyFulfillment: {
|
|
207
|
+
appName: 'best-buy-fulfillment',
|
|
208
|
+
appId: 'd9839db8-b94c-4590-ac73-3469abe7ed9b'
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
const AftershipEmailMarketingsmsConfig = {
|
|
212
|
+
AftershipEmailMarketingsms: {
|
|
213
|
+
appName: 'aftership-email-marketing-sms',
|
|
214
|
+
appId: '2db13273-f8db-4274-be89-c86a3352fb70'
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
const SegunoEmailMarketingConfig = {
|
|
218
|
+
SegunoEmailMarketing: {
|
|
219
|
+
appName: 'seguno-email',
|
|
220
|
+
appId: 'db65571f-fa4d-473d-baa2-283a96dc76bc'
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
const SeoantTrustBadgesIconConfig = {
|
|
224
|
+
SeoantTrustBadgesIcon: {
|
|
225
|
+
appName: 'seoant-trust-badges',
|
|
226
|
+
appId: 'f42f2346-5d14-4b41-a8b9-4b6ee352262e'
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
const TrustreviewsProductReviewsConfig = {
|
|
230
|
+
TrustreviewsProductReviews: {
|
|
231
|
+
appName: 'trustreviews',
|
|
232
|
+
appId: '56d0fe1b-e701-4cff-8f84-466a26e09adb'
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
const MyappgurusProductReviewsConfig = {
|
|
236
|
+
MyappgurusProductReviews: {
|
|
237
|
+
appName: 'mag-product-reviews',
|
|
238
|
+
appId: '0cf5caa0-e138-46b8-999b-520d16633e4c'
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
const HulkProductOptionsConfig = {
|
|
242
|
+
HulkProductOptions: {
|
|
243
|
+
appName: 'hulk-product-options',
|
|
244
|
+
appId: '380168ef-9475-4244-a291-f66b189208b5'
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
const TrustshopProductReviewsConfig = {
|
|
248
|
+
TrustshopProductReviews: {
|
|
249
|
+
appName: 'trustshop-reviews',
|
|
250
|
+
appId: '18b0c4cc-5411-4b6e-922d-34fdc2f30ab9'
|
|
251
|
+
}
|
|
252
|
+
};
|
|
205
253
|
|
|
206
|
-
export { AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, PowerfulContactFormBuilderConfig, PowrContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, TrustooConfig, 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 {
|
|
@@ -135,6 +142,20 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
135
142
|
app_id: appSetting?.appId
|
|
136
143
|
};
|
|
137
144
|
}
|
|
145
|
+
case 'AftershipEmailMarketingsms':
|
|
146
|
+
{
|
|
147
|
+
return {
|
|
148
|
+
...currentSetting,
|
|
149
|
+
embedded_form_id: appSetting?.formId
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
case 'SeoantTrustBadgesIcon':
|
|
153
|
+
{
|
|
154
|
+
return {
|
|
155
|
+
...currentSetting,
|
|
156
|
+
badge_id: appSetting?.BadgeId
|
|
157
|
+
};
|
|
158
|
+
}
|
|
138
159
|
default:
|
|
139
160
|
return currentSetting;
|
|
140
161
|
}
|
|
@@ -629,12 +650,171 @@ const LooxReviews = {
|
|
|
629
650
|
const PowrContactFormBuilder = {
|
|
630
651
|
PowrContactFormBuilder: {
|
|
631
652
|
'app-block': {
|
|
632
|
-
|
|
653
|
+
app_id: ''
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
};
|
|
657
|
+
const BestBuyFulfillment = {
|
|
658
|
+
BestBuyFulfillment: {
|
|
659
|
+
'pickup-selector': null
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
const AftershipEmailMarketingsms = {
|
|
663
|
+
AftershipEmailMarketingsms: {
|
|
664
|
+
embeded_form: {
|
|
665
|
+
embedded_form_id: ''
|
|
633
666
|
}
|
|
634
667
|
}
|
|
635
668
|
};
|
|
669
|
+
const SegunoEmailMarketing = {
|
|
670
|
+
SegunoEmailMarketing: {
|
|
671
|
+
back_in_stock: {
|
|
672
|
+
heading: '<h3>Get notified when this is back in stock</h3>',
|
|
673
|
+
label_email: 'Email',
|
|
674
|
+
placeholder_email: '',
|
|
675
|
+
show_permission_checkbox: true,
|
|
676
|
+
label_permission: '<p>Also, sign up to receive newsletters</p>',
|
|
677
|
+
label_notify: 'Notify me',
|
|
678
|
+
label_success: '<p>Thanks! You will be notified once the product is back in stock.</p>',
|
|
679
|
+
product_exclusion_tag: 'back-in-stock-excluded',
|
|
680
|
+
default_variant: 'available',
|
|
681
|
+
padding: 0,
|
|
682
|
+
form_gap: 16,
|
|
683
|
+
button_alignment: 'stretch',
|
|
684
|
+
font_size: 16,
|
|
685
|
+
input_font_size: 16,
|
|
686
|
+
button_font_size: 16,
|
|
687
|
+
background_color: '#ffffff',
|
|
688
|
+
text_color: '#121212',
|
|
689
|
+
button_background_color: '#121212',
|
|
690
|
+
button_border_color: '#121212',
|
|
691
|
+
button_text_color: '#ffffff',
|
|
692
|
+
input_background_color: '#ffffff',
|
|
693
|
+
input_border_color: '#121212',
|
|
694
|
+
input_text_color: '#121212',
|
|
695
|
+
custom_css: ''
|
|
696
|
+
},
|
|
697
|
+
newsletter_form: {
|
|
698
|
+
heading: 'Subscribe to our newsletter',
|
|
699
|
+
subheading: '<p>Be the first to know about new collections and exclusive offers.</p>',
|
|
700
|
+
show_first_name: false,
|
|
701
|
+
show_last_name: false,
|
|
702
|
+
show_permission_checkbox: false,
|
|
703
|
+
tags: 'newsletter',
|
|
704
|
+
return_to: '',
|
|
705
|
+
label_first_name: 'First name',
|
|
706
|
+
placeholder_first_name: '',
|
|
707
|
+
label_last_name: 'Last name',
|
|
708
|
+
placeholder_last_name: '',
|
|
709
|
+
label_email: 'Email',
|
|
710
|
+
placeholder_email: '',
|
|
711
|
+
label_permission: '<p>I agree to receive marketing emails</p>',
|
|
712
|
+
label_subscribe: 'Subscribe',
|
|
713
|
+
success_message: 'Thanks for subscribing',
|
|
714
|
+
background_color: '#ffffff',
|
|
715
|
+
text_color: '#1a1b18',
|
|
716
|
+
button_background_color: '#445958',
|
|
717
|
+
button_text_color: '#ffffff'
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
};
|
|
721
|
+
const SeoantTrustBadgesIcon = {
|
|
722
|
+
SeoantTrustBadgesIcon: {
|
|
723
|
+
star_rating: {
|
|
724
|
+
badge_id: null
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
};
|
|
728
|
+
const TrustreviewsProductReviews = {
|
|
729
|
+
TrustreviewsProductReviews: {
|
|
730
|
+
questions_widget: {
|
|
731
|
+
product: '{{ product }}'
|
|
732
|
+
},
|
|
733
|
+
'review-carousel': null,
|
|
734
|
+
reviews_text_widget: null,
|
|
735
|
+
reviews_widget: {
|
|
736
|
+
product: '{{ product }}'
|
|
737
|
+
},
|
|
738
|
+
shop_reviews_widget: null,
|
|
739
|
+
star_rating: {
|
|
740
|
+
product: '{{product}}',
|
|
741
|
+
hide_on_no_reviews: false,
|
|
742
|
+
enable_jsonld: false,
|
|
743
|
+
starsize: 16,
|
|
744
|
+
addtional_text: ''
|
|
745
|
+
},
|
|
746
|
+
'reviews-testimonials': null,
|
|
747
|
+
all_reviews_widget: null,
|
|
748
|
+
'review-cards': null,
|
|
749
|
+
'review-gallery': null,
|
|
750
|
+
medals: null
|
|
751
|
+
}
|
|
752
|
+
};
|
|
753
|
+
const MyappgurusProductReviews = {
|
|
754
|
+
MyappgurusProductReviews: {
|
|
755
|
+
allReviews: {
|
|
756
|
+
Show_by_label: ''
|
|
757
|
+
},
|
|
758
|
+
allReviewsCounter: {
|
|
759
|
+
out_of_label: '',
|
|
760
|
+
stars_based_on_label: '',
|
|
761
|
+
reviews_label: ''
|
|
762
|
+
},
|
|
763
|
+
form: {
|
|
764
|
+
block_heading: '',
|
|
765
|
+
no_rating: '',
|
|
766
|
+
subtitle2: '',
|
|
767
|
+
review_btn: '',
|
|
768
|
+
see_all_reviews_label: '',
|
|
769
|
+
form_heading: '',
|
|
770
|
+
name_label: '',
|
|
771
|
+
email_label: '',
|
|
772
|
+
review_title_label: '',
|
|
773
|
+
review_description_label: '',
|
|
774
|
+
ratings_label: '',
|
|
775
|
+
delivery_ratings_label: '',
|
|
776
|
+
payment_ratings_label: '',
|
|
777
|
+
price_ratings_label: '',
|
|
778
|
+
review_image_label: '',
|
|
779
|
+
submit_btn_label: '',
|
|
780
|
+
cancel_btn_label: '',
|
|
781
|
+
sort_label: '',
|
|
782
|
+
sort1_label: '',
|
|
783
|
+
sort2_label: '',
|
|
784
|
+
sort3_label: '',
|
|
785
|
+
showing_label: '',
|
|
786
|
+
to_label: '',
|
|
787
|
+
of_label: '',
|
|
788
|
+
results_label: ''
|
|
789
|
+
},
|
|
790
|
+
star: null
|
|
791
|
+
}
|
|
792
|
+
};
|
|
793
|
+
const HulkProductOptions = {
|
|
794
|
+
HulkProductOptions: {
|
|
795
|
+
option_block: null
|
|
796
|
+
}
|
|
797
|
+
};
|
|
798
|
+
const TrustshopProductReviews = {
|
|
799
|
+
TrustshopProductReviews: {
|
|
800
|
+
'widget-product-rating': {
|
|
801
|
+
selected_product: '{{ product }}'
|
|
802
|
+
},
|
|
803
|
+
'all-reviews': null,
|
|
804
|
+
'widget-box': null,
|
|
805
|
+
'review-testimonial': null
|
|
806
|
+
}
|
|
807
|
+
};
|
|
636
808
|
const composeSettingsByWidgetType = {
|
|
809
|
+
...TrustshopProductReviews,
|
|
810
|
+
...HulkProductOptions,
|
|
811
|
+
...TrustreviewsProductReviews,
|
|
812
|
+
...MyappgurusProductReviews,
|
|
813
|
+
...SeoantTrustBadgesIcon,
|
|
637
814
|
...PowrContactFormBuilder,
|
|
815
|
+
...SegunoEmailMarketing,
|
|
816
|
+
...AftershipEmailMarketingsms,
|
|
817
|
+
...BestBuyFulfillment,
|
|
638
818
|
...GloboProductOptionsVariant,
|
|
639
819
|
...WishlistKing,
|
|
640
820
|
...LoloyalLoyaltyReferrals,
|
|
@@ -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, TrustooConfig, LooxReviewsConfig, PowrContactFormBuilderConfig } 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, TrustooConfig, LooxReviewsConfig, PowrContactFormBuilderConfig, BestBuyFulfillmentConfig, AftershipEmailMarketingsmsConfig, SegunoEmailMarketingConfig, SeoantTrustBadgesIconConfig, TrustreviewsProductReviewsConfig, MyappgurusProductReviewsConfig, HulkProductOptionsConfig, TrustshopProductReviewsConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -34,7 +34,15 @@ const mapShopifyAppMeta = {
|
|
|
34
34
|
...KachingBundlesConfig,
|
|
35
35
|
...TrustooConfig,
|
|
36
36
|
...LooxReviewsConfig,
|
|
37
|
-
...PowrContactFormBuilderConfig
|
|
37
|
+
...PowrContactFormBuilderConfig,
|
|
38
|
+
...BestBuyFulfillmentConfig,
|
|
39
|
+
...AftershipEmailMarketingsmsConfig,
|
|
40
|
+
...SegunoEmailMarketingConfig,
|
|
41
|
+
...SeoantTrustBadgesIconConfig,
|
|
42
|
+
...TrustreviewsProductReviewsConfig,
|
|
43
|
+
...MyappgurusProductReviewsConfig,
|
|
44
|
+
...HulkProductOptionsConfig,
|
|
45
|
+
...TrustshopProductReviewsConfig
|
|
38
46
|
};
|
|
39
47
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
40
48
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7062,7 +7062,6 @@ type BlockEntity = {
|
|
|
7062
7062
|
name?: string;
|
|
7063
7063
|
dateModified?: string | number;
|
|
7064
7064
|
childrens?: string[];
|
|
7065
|
-
rawChildrens?: BlockEntity[];
|
|
7066
7065
|
settings?: Record<string, any>;
|
|
7067
7066
|
advanced?: Record<string, any>;
|
|
7068
7067
|
styles?: Record<string, any>;
|