@gem-sdk/core 1.58.0-staging.48 → 1.58.0-staging.59
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/third-party/appConfig.js +14 -0
- package/dist/cjs/helpers/third-party/appSetting.js +68 -0
- package/dist/cjs/helpers/third-party/constant.js +3 -1
- package/dist/esm/helpers/third-party/appConfig.js +13 -1
- package/dist/esm/helpers/third-party/appSetting.js +68 -0
- package/dist/esm/helpers/third-party/constant.js +4 -2
- package/dist/types/index.d.ts +2 -0
- package/package.json +2 -2
|
@@ -192,7 +192,20 @@ const BestBuyFulfillmentConfig = {
|
|
|
192
192
|
appId: 'd9839db8-b94c-4590-ac73-3469abe7ed9b'
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
|
+
const AftershipEmailMarketingsmsConfig = {
|
|
196
|
+
AftershipEmailMarketingsms: {
|
|
197
|
+
appName: 'aftership-email-marketing-sms',
|
|
198
|
+
appId: '2db13273-f8db-4274-be89-c86a3352fb70'
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
const SegunoEmailMarketingConfig = {
|
|
202
|
+
SegunoEmailMarketing: {
|
|
203
|
+
appName: 'seguno-email',
|
|
204
|
+
appId: 'db65571f-fa4d-473d-baa2-283a96dc76bc'
|
|
205
|
+
}
|
|
206
|
+
};
|
|
195
207
|
|
|
208
|
+
exports.AftershipEmailMarketingsmsConfig = AftershipEmailMarketingsmsConfig;
|
|
196
209
|
exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
|
|
197
210
|
exports.BestBuyFulfillmentConfig = BestBuyFulfillmentConfig;
|
|
198
211
|
exports.BoldSubscriptionsConfig = BoldSubscriptionsConfig;
|
|
@@ -215,6 +228,7 @@ exports.ProductOptionsCustomizerConfig = ProductOptionsCustomizerConfig;
|
|
|
215
228
|
exports.PumperBundlesVolumeDiscountConfig = PumperBundlesVolumeDiscountConfig;
|
|
216
229
|
exports.RechargeSubscriptionsConfig = RechargeSubscriptionsConfig;
|
|
217
230
|
exports.ReviewxpoProductReviewsAppConfig = ReviewxpoProductReviewsAppConfig;
|
|
231
|
+
exports.SegunoEmailMarketingConfig = SegunoEmailMarketingConfig;
|
|
218
232
|
exports.SelleasyConfig = SelleasyConfig;
|
|
219
233
|
exports.ShopifyFormsConfig = ShopifyFormsConfig;
|
|
220
234
|
exports.SimpleBundlesKitsConfig = SimpleBundlesKitsConfig;
|
|
@@ -116,6 +116,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
116
116
|
shortcode: appSetting?.shortcode
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
+
case 'AftershipEmailMarketingsms':
|
|
120
|
+
{
|
|
121
|
+
return {
|
|
122
|
+
...currentSetting,
|
|
123
|
+
embedded_form_id: appSetting?.formId
|
|
124
|
+
};
|
|
125
|
+
}
|
|
119
126
|
case 'YotpoReviews':
|
|
120
127
|
{
|
|
121
128
|
return {
|
|
@@ -462,7 +469,68 @@ const BestBuyFulfillment = {
|
|
|
462
469
|
'pickup-selector': null
|
|
463
470
|
}
|
|
464
471
|
};
|
|
472
|
+
const AftershipEmailMarketingsms = {
|
|
473
|
+
AftershipEmailMarketingsms: {
|
|
474
|
+
embeded_form: {
|
|
475
|
+
embedded_form_id: ''
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
const SegunoEmailMarketing = {
|
|
480
|
+
SegunoEmailMarketing: {
|
|
481
|
+
back_in_stock: {
|
|
482
|
+
heading: '<h3>Get notified when this is back in stock</h3>',
|
|
483
|
+
label_email: 'Email',
|
|
484
|
+
placeholder_email: '',
|
|
485
|
+
show_permission_checkbox: true,
|
|
486
|
+
label_permission: '<p>Also, sign up to receive newsletters</p>',
|
|
487
|
+
label_notify: 'Notify me',
|
|
488
|
+
label_success: '<p>Thanks! You will be notified once the product is back in stock.</p>',
|
|
489
|
+
product_exclusion_tag: 'back-in-stock-excluded',
|
|
490
|
+
default_variant: 'available',
|
|
491
|
+
padding: 0,
|
|
492
|
+
form_gap: 16,
|
|
493
|
+
button_alignment: 'stretch',
|
|
494
|
+
font_size: 16,
|
|
495
|
+
input_font_size: 16,
|
|
496
|
+
button_font_size: 16,
|
|
497
|
+
background_color: '#ffffff',
|
|
498
|
+
text_color: '#121212',
|
|
499
|
+
button_background_color: '#121212',
|
|
500
|
+
button_border_color: '#121212',
|
|
501
|
+
button_text_color: '#ffffff',
|
|
502
|
+
input_background_color: '#ffffff',
|
|
503
|
+
input_border_color: '#121212',
|
|
504
|
+
input_text_color: '#121212',
|
|
505
|
+
custom_css: ''
|
|
506
|
+
},
|
|
507
|
+
newsletter_form: {
|
|
508
|
+
heading: 'Subscribe to our newsletter',
|
|
509
|
+
subheading: '<p>Be the first to know about new collections and exclusive offers.</p>',
|
|
510
|
+
show_first_name: false,
|
|
511
|
+
show_last_name: false,
|
|
512
|
+
show_permission_checkbox: false,
|
|
513
|
+
tags: 'newsletter',
|
|
514
|
+
return_to: '',
|
|
515
|
+
label_first_name: 'First name',
|
|
516
|
+
placeholder_first_name: '',
|
|
517
|
+
label_last_name: 'Last name',
|
|
518
|
+
placeholder_last_name: '',
|
|
519
|
+
label_email: 'Email',
|
|
520
|
+
placeholder_email: '',
|
|
521
|
+
label_permission: '<p>I agree to receive marketing emails</p>',
|
|
522
|
+
label_subscribe: 'Subscribe',
|
|
523
|
+
success_message: 'Thanks for subscribing',
|
|
524
|
+
background_color: '#ffffff',
|
|
525
|
+
text_color: '#1a1b18',
|
|
526
|
+
button_background_color: '#445958',
|
|
527
|
+
button_text_color: '#ffffff'
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
};
|
|
465
531
|
const composeSettingsByWidgetType = {
|
|
532
|
+
...SegunoEmailMarketing,
|
|
533
|
+
...AftershipEmailMarketingsms,
|
|
466
534
|
...BestBuyFulfillment,
|
|
467
535
|
...GloboProductOptionsVariant,
|
|
468
536
|
...WishlistKing,
|
|
@@ -34,7 +34,9 @@ const mapShopifyAppMeta = {
|
|
|
34
34
|
...appConfig.WishlistKingConfig,
|
|
35
35
|
...appConfig.GloboProductOptionsVariantConfig,
|
|
36
36
|
...appConfig.KachingBundlesConfig,
|
|
37
|
-
...appConfig.BestBuyFulfillmentConfig
|
|
37
|
+
...appConfig.BestBuyFulfillmentConfig,
|
|
38
|
+
...appConfig.AftershipEmailMarketingsmsConfig,
|
|
39
|
+
...appConfig.SegunoEmailMarketingConfig
|
|
38
40
|
};
|
|
39
41
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
40
42
|
|
|
@@ -190,5 +190,17 @@ const BestBuyFulfillmentConfig = {
|
|
|
190
190
|
appId: 'd9839db8-b94c-4590-ac73-3469abe7ed9b'
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
|
+
const AftershipEmailMarketingsmsConfig = {
|
|
194
|
+
AftershipEmailMarketingsms: {
|
|
195
|
+
appName: 'aftership-email-marketing-sms',
|
|
196
|
+
appId: '2db13273-f8db-4274-be89-c86a3352fb70'
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
const SegunoEmailMarketingConfig = {
|
|
200
|
+
SegunoEmailMarketing: {
|
|
201
|
+
appName: 'seguno-email',
|
|
202
|
+
appId: 'db65571f-fa4d-473d-baa2-283a96dc76bc'
|
|
203
|
+
}
|
|
204
|
+
};
|
|
193
205
|
|
|
194
|
-
export { AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, PowerfulContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
206
|
+
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, PowerfulContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
@@ -114,6 +114,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
114
114
|
shortcode: appSetting?.shortcode
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
+
case 'AftershipEmailMarketingsms':
|
|
118
|
+
{
|
|
119
|
+
return {
|
|
120
|
+
...currentSetting,
|
|
121
|
+
embedded_form_id: appSetting?.formId
|
|
122
|
+
};
|
|
123
|
+
}
|
|
117
124
|
case 'YotpoReviews':
|
|
118
125
|
{
|
|
119
126
|
return {
|
|
@@ -460,7 +467,68 @@ const BestBuyFulfillment = {
|
|
|
460
467
|
'pickup-selector': null
|
|
461
468
|
}
|
|
462
469
|
};
|
|
470
|
+
const AftershipEmailMarketingsms = {
|
|
471
|
+
AftershipEmailMarketingsms: {
|
|
472
|
+
embeded_form: {
|
|
473
|
+
embedded_form_id: ''
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
const SegunoEmailMarketing = {
|
|
478
|
+
SegunoEmailMarketing: {
|
|
479
|
+
back_in_stock: {
|
|
480
|
+
heading: '<h3>Get notified when this is back in stock</h3>',
|
|
481
|
+
label_email: 'Email',
|
|
482
|
+
placeholder_email: '',
|
|
483
|
+
show_permission_checkbox: true,
|
|
484
|
+
label_permission: '<p>Also, sign up to receive newsletters</p>',
|
|
485
|
+
label_notify: 'Notify me',
|
|
486
|
+
label_success: '<p>Thanks! You will be notified once the product is back in stock.</p>',
|
|
487
|
+
product_exclusion_tag: 'back-in-stock-excluded',
|
|
488
|
+
default_variant: 'available',
|
|
489
|
+
padding: 0,
|
|
490
|
+
form_gap: 16,
|
|
491
|
+
button_alignment: 'stretch',
|
|
492
|
+
font_size: 16,
|
|
493
|
+
input_font_size: 16,
|
|
494
|
+
button_font_size: 16,
|
|
495
|
+
background_color: '#ffffff',
|
|
496
|
+
text_color: '#121212',
|
|
497
|
+
button_background_color: '#121212',
|
|
498
|
+
button_border_color: '#121212',
|
|
499
|
+
button_text_color: '#ffffff',
|
|
500
|
+
input_background_color: '#ffffff',
|
|
501
|
+
input_border_color: '#121212',
|
|
502
|
+
input_text_color: '#121212',
|
|
503
|
+
custom_css: ''
|
|
504
|
+
},
|
|
505
|
+
newsletter_form: {
|
|
506
|
+
heading: 'Subscribe to our newsletter',
|
|
507
|
+
subheading: '<p>Be the first to know about new collections and exclusive offers.</p>',
|
|
508
|
+
show_first_name: false,
|
|
509
|
+
show_last_name: false,
|
|
510
|
+
show_permission_checkbox: false,
|
|
511
|
+
tags: 'newsletter',
|
|
512
|
+
return_to: '',
|
|
513
|
+
label_first_name: 'First name',
|
|
514
|
+
placeholder_first_name: '',
|
|
515
|
+
label_last_name: 'Last name',
|
|
516
|
+
placeholder_last_name: '',
|
|
517
|
+
label_email: 'Email',
|
|
518
|
+
placeholder_email: '',
|
|
519
|
+
label_permission: '<p>I agree to receive marketing emails</p>',
|
|
520
|
+
label_subscribe: 'Subscribe',
|
|
521
|
+
success_message: 'Thanks for subscribing',
|
|
522
|
+
background_color: '#ffffff',
|
|
523
|
+
text_color: '#1a1b18',
|
|
524
|
+
button_background_color: '#445958',
|
|
525
|
+
button_text_color: '#ffffff'
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
};
|
|
463
529
|
const composeSettingsByWidgetType = {
|
|
530
|
+
...SegunoEmailMarketing,
|
|
531
|
+
...AftershipEmailMarketingsms,
|
|
464
532
|
...BestBuyFulfillment,
|
|
465
533
|
...GloboProductOptionsVariant,
|
|
466
534
|
...WishlistKing,
|
|
@@ -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 } 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 } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -32,7 +32,9 @@ const mapShopifyAppMeta = {
|
|
|
32
32
|
...WishlistKingConfig,
|
|
33
33
|
...GloboProductOptionsVariantConfig,
|
|
34
34
|
...KachingBundlesConfig,
|
|
35
|
-
...BestBuyFulfillmentConfig
|
|
35
|
+
...BestBuyFulfillmentConfig,
|
|
36
|
+
...AftershipEmailMarketingsmsConfig,
|
|
37
|
+
...SegunoEmailMarketingConfig
|
|
36
38
|
};
|
|
37
39
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
38
40
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7782,6 +7782,8 @@ type TypographyControlType<T> = SharedControlType<T> & {
|
|
|
7782
7782
|
type PickLinkControlType<T> = SharedControlType<T> & {
|
|
7783
7783
|
type: 'pick-link';
|
|
7784
7784
|
pickLinkLabel?: string;
|
|
7785
|
+
isHiddenInsertLink?: boolean;
|
|
7786
|
+
isHiddenOpenLinkSelect?: boolean;
|
|
7785
7787
|
};
|
|
7786
7788
|
|
|
7787
7789
|
type BehaviorStateControlType<T> = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.58.0-staging.
|
|
3
|
+
"version": "1.58.0-staging.59",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@gem-sdk/adapter-shopify": "1.57.15-staging.0",
|
|
31
|
-
"@gem-sdk/styles": "1.58.0-staging.
|
|
31
|
+
"@gem-sdk/styles": "1.58.0-staging.58",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|