@gem-sdk/core 1.63.3 → 1.63.16
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/components/Render.liquid.js +13 -5
- package/dist/cjs/graphql/fragments/preview-theme-page.generated.js +39 -0
- package/dist/cjs/graphql/fragments/published-theme-page.generated.js +0 -28
- package/dist/cjs/graphql/queries/preview-page.generated.js +6 -12
- package/dist/cjs/helpers/third-party/appConfig.js +14 -0
- package/dist/cjs/helpers/third-party/appSetting.js +168 -2
- package/dist/cjs/helpers/third-party/constant.js +3 -1
- package/dist/cjs/helpers/third-party/getAppBlockConfig.js +10 -2
- package/dist/cjs/index.js +1 -1
- package/dist/esm/components/Render.liquid.js +13 -5
- package/dist/esm/graphql/fragments/preview-theme-page.generated.js +37 -0
- package/dist/esm/graphql/fragments/published-theme-page.generated.js +1 -28
- package/dist/esm/graphql/queries/preview-page.generated.js +5 -11
- package/dist/esm/helpers/third-party/appConfig.js +13 -1
- package/dist/esm/helpers/third-party/appSetting.js +168 -2
- package/dist/esm/helpers/third-party/constant.js +4 -2
- package/dist/esm/helpers/third-party/getAppBlockConfig.js +10 -2
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +339 -18
- package/package.json +1 -1
|
@@ -97,7 +97,14 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
97
97
|
{
|
|
98
98
|
return {
|
|
99
99
|
...currentSetting,
|
|
100
|
-
|
|
100
|
+
'show-views': appSetting?.showViews,
|
|
101
|
+
heading: appSetting?.heading,
|
|
102
|
+
'template-type': appSetting?.templateType,
|
|
103
|
+
'title-font-size': parseFloat(appSetting?.titleFontSize),
|
|
104
|
+
'landscape-padding': parseFloat(appSetting?.landscapePadding),
|
|
105
|
+
'top-bottom-padding': parseFloat(appSetting?.topBottomPadding),
|
|
106
|
+
'scroll-video-tile-size': parseFloat(appSetting?.scrollVideoTitleSize),
|
|
107
|
+
'scroll-video-tile-size-portrait': parseFloat(appSetting?.scrollVideoTitleSizePortrait)
|
|
101
108
|
};
|
|
102
109
|
}
|
|
103
110
|
case 'KachingBundles':
|
|
@@ -455,6 +462,163 @@ const GloboProductOptionsVariant = {
|
|
|
455
462
|
'app-block': null
|
|
456
463
|
}
|
|
457
464
|
};
|
|
465
|
+
const Trustoo = {
|
|
466
|
+
Trustoo: {
|
|
467
|
+
'barrage-carousel': null,
|
|
468
|
+
'review-widget': null,
|
|
469
|
+
'photo-carousel': null,
|
|
470
|
+
'star-rating-widget': {
|
|
471
|
+
star_size: 20,
|
|
472
|
+
font_size: 16,
|
|
473
|
+
block_aligment: 'flex-start'
|
|
474
|
+
},
|
|
475
|
+
'text-carousel': null,
|
|
476
|
+
'card-carousel': null
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
const LooxReviews = {
|
|
480
|
+
LooxReviews: {
|
|
481
|
+
'loox-card-carousel-section': {
|
|
482
|
+
maxWidth: 1100,
|
|
483
|
+
borderRadius: 8,
|
|
484
|
+
itemsPerView: 4,
|
|
485
|
+
mobileItemsPerView: 1,
|
|
486
|
+
maxNumberOfCharacters: 100,
|
|
487
|
+
imageRatio: '0.72',
|
|
488
|
+
reviewerNameColor: '#000000',
|
|
489
|
+
textColor: '#000000',
|
|
490
|
+
itemBackgroundColor: '#ffffff',
|
|
491
|
+
starsColor: '',
|
|
492
|
+
starsBackgroundColor: '#ffffff',
|
|
493
|
+
arrows_backgroundColor: '#FFFFFF',
|
|
494
|
+
arrows_iconColor: '#9A9A9A',
|
|
495
|
+
shadow: 'offset-dark',
|
|
496
|
+
border_active: false,
|
|
497
|
+
border_width: 2,
|
|
498
|
+
border_color: '#000000',
|
|
499
|
+
productIds: ''
|
|
500
|
+
},
|
|
501
|
+
'loox-gallery-carousel-section': {
|
|
502
|
+
maxWidth: 1100,
|
|
503
|
+
borderRadius: 60,
|
|
504
|
+
itemsPerView: 5,
|
|
505
|
+
mobileItemsPerView: 1,
|
|
506
|
+
imageRatio: '1',
|
|
507
|
+
reviewerNameColor: '#ffffff',
|
|
508
|
+
starsColor: '#ffffff',
|
|
509
|
+
arrows_backgroundColor: '#FFFFFF',
|
|
510
|
+
arrows_iconColor: '#9A9A9A',
|
|
511
|
+
shadow: 'none',
|
|
512
|
+
border_active: false,
|
|
513
|
+
border_width: 2,
|
|
514
|
+
border_color: '#000000',
|
|
515
|
+
productIds: ''
|
|
516
|
+
},
|
|
517
|
+
'loox-referrals-section': {
|
|
518
|
+
max_width: 1100,
|
|
519
|
+
layout: 'with-photo',
|
|
520
|
+
primary_color: '',
|
|
521
|
+
text_color: '#000000',
|
|
522
|
+
text_field_border_color: '#C9CDD4',
|
|
523
|
+
background: ''
|
|
524
|
+
},
|
|
525
|
+
'loox-dynamic-section': {
|
|
526
|
+
only_photos: false,
|
|
527
|
+
aggregated: false,
|
|
528
|
+
limit: 20,
|
|
529
|
+
hide_thumbnails: false,
|
|
530
|
+
maxwidth: 1080,
|
|
531
|
+
is_sample: true
|
|
532
|
+
},
|
|
533
|
+
'loox-snippets-widget': {
|
|
534
|
+
alignment: 'left',
|
|
535
|
+
'max-width': '',
|
|
536
|
+
'color-scheme': 'default',
|
|
537
|
+
shadow: '',
|
|
538
|
+
'show-rating': true,
|
|
539
|
+
'show-image': true,
|
|
540
|
+
'hide-arrows-mobile': false,
|
|
541
|
+
'font-size': 14,
|
|
542
|
+
'show-border': false,
|
|
543
|
+
'border-radius': 16,
|
|
544
|
+
'background-color': '',
|
|
545
|
+
'text-color': '',
|
|
546
|
+
'name-color': '',
|
|
547
|
+
'rating-icon-color': '',
|
|
548
|
+
'border-color': '',
|
|
549
|
+
'shadow-color': '',
|
|
550
|
+
'reviews-limit': 10
|
|
551
|
+
},
|
|
552
|
+
'loox-rating': {
|
|
553
|
+
contentSize: 16,
|
|
554
|
+
pattern: '',
|
|
555
|
+
hideText: false,
|
|
556
|
+
alignment: '',
|
|
557
|
+
layout: '',
|
|
558
|
+
textColor: '',
|
|
559
|
+
starColor: '',
|
|
560
|
+
showAllReviews: false,
|
|
561
|
+
looxOpenFloatingWidget: false,
|
|
562
|
+
emptyRatingWidget: false
|
|
563
|
+
},
|
|
564
|
+
'loox-testimonial-carousel-section': {
|
|
565
|
+
maxWidth: 1100,
|
|
566
|
+
desktopFontSize: 32,
|
|
567
|
+
mobileFontSize: 20,
|
|
568
|
+
maxNumberOfCharacters: 100,
|
|
569
|
+
quoteMarkIcon: 'style-1',
|
|
570
|
+
reviewerNameColor: '#000000',
|
|
571
|
+
textColor: '#000000',
|
|
572
|
+
starsColor: '',
|
|
573
|
+
quotesIconColor: '#EAEAEA',
|
|
574
|
+
arrows_iconColor: '#000000',
|
|
575
|
+
arrows_hideOnMobile: true,
|
|
576
|
+
pagination_active: true,
|
|
577
|
+
pagination_selectedDotColor: '#000000',
|
|
578
|
+
pagination_dotColor: '#000000',
|
|
579
|
+
autoplay_active: false,
|
|
580
|
+
autoplay_duration: 2,
|
|
581
|
+
productIds: ''
|
|
582
|
+
},
|
|
583
|
+
'loox-trust-badge': {
|
|
584
|
+
layout: 'horizontal',
|
|
585
|
+
alignment: 'left',
|
|
586
|
+
'scheme-type': 'default',
|
|
587
|
+
'review-title': 'reviews',
|
|
588
|
+
'rating-icon': true,
|
|
589
|
+
'average-rating': true,
|
|
590
|
+
'loox-branding': true,
|
|
591
|
+
'review-count': true,
|
|
592
|
+
'open-reviews': true,
|
|
593
|
+
'show-border': true,
|
|
594
|
+
'border-radius': 8,
|
|
595
|
+
'font-size': 20,
|
|
596
|
+
'background-color': '',
|
|
597
|
+
'secondary-background-color': '',
|
|
598
|
+
'text-color': '',
|
|
599
|
+
'rating-icon-color': '',
|
|
600
|
+
'border-color': ''
|
|
601
|
+
},
|
|
602
|
+
'loox-video-slider': {
|
|
603
|
+
'show-by-tag': false,
|
|
604
|
+
layout: 'spotlight',
|
|
605
|
+
shadow: '',
|
|
606
|
+
'show-rating': true,
|
|
607
|
+
'show-reviewer-name': true,
|
|
608
|
+
'hide-arrows-mobile': true,
|
|
609
|
+
'auto-play': true,
|
|
610
|
+
'show-border': false,
|
|
611
|
+
'border-width': 1,
|
|
612
|
+
'border-radius': 16,
|
|
613
|
+
'text-color': '',
|
|
614
|
+
'rating-icon-color': '',
|
|
615
|
+
'border-color': '',
|
|
616
|
+
'play-button-color': '',
|
|
617
|
+
'shadow-color': '',
|
|
618
|
+
'product-id': ''
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
};
|
|
458
622
|
const composeSettingsByWidgetType = {
|
|
459
623
|
...GloboProductOptionsVariant,
|
|
460
624
|
...WishlistKing,
|
|
@@ -486,7 +650,9 @@ const composeSettingsByWidgetType = {
|
|
|
486
650
|
...YotpoReviews,
|
|
487
651
|
...BoldSubscriptions,
|
|
488
652
|
...Growave,
|
|
489
|
-
...KachingBundles
|
|
653
|
+
...KachingBundles,
|
|
654
|
+
...Trustoo,
|
|
655
|
+
...LooxReviews
|
|
490
656
|
};
|
|
491
657
|
|
|
492
658
|
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 } 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 } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -31,7 +31,9 @@ const mapShopifyAppMeta = {
|
|
|
31
31
|
...PowerfulContactFormBuilderConfig,
|
|
32
32
|
...WishlistKingConfig,
|
|
33
33
|
...GloboProductOptionsVariantConfig,
|
|
34
|
-
...KachingBundlesConfig
|
|
34
|
+
...KachingBundlesConfig,
|
|
35
|
+
...TrustooConfig,
|
|
36
|
+
...LooxReviewsConfig
|
|
35
37
|
};
|
|
36
38
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
37
39
|
|
|
@@ -2,15 +2,23 @@ import { composeSettingsByWidgetType, overrideSettings } from './appSetting.js';
|
|
|
2
2
|
import { getAppBlockType } from './getAppBlockType.js';
|
|
3
3
|
|
|
4
4
|
const listAppUpdateNewVersion = [
|
|
5
|
-
'Growave'
|
|
5
|
+
'Growave',
|
|
6
|
+
'Trustoo',
|
|
7
|
+
'LooxReviews'
|
|
6
8
|
];
|
|
7
9
|
const listThirdPartyRejectAppBlock = {
|
|
8
10
|
YotpoReviews: {
|
|
9
11
|
conditionToReject: 'settings?.version === "v1"'
|
|
12
|
+
},
|
|
13
|
+
Trustoo: {
|
|
14
|
+
conditionToReject: 'settings?.version === "v1"'
|
|
15
|
+
},
|
|
16
|
+
LooxReviews: {
|
|
17
|
+
conditionToReject: 'settings?.version === "v1"'
|
|
10
18
|
}
|
|
11
19
|
};
|
|
12
20
|
const getAppBlockConfig = (tag, appBlockId, settings)=>{
|
|
13
|
-
if (listThirdPartyRejectAppBlock[tag] && eval(listThirdPartyRejectAppBlock[tag]
|
|
21
|
+
if (listThirdPartyRejectAppBlock[tag] && eval(listThirdPartyRejectAppBlock[tag]?.conditionToReject ?? '')) {
|
|
14
22
|
return;
|
|
15
23
|
}
|
|
16
24
|
let widgetType = settings?.widgetType;
|
package/dist/esm/index.js
CHANGED
|
@@ -24,7 +24,7 @@ export { CollectionsDocument } from './graphql/queries/collections.generated.js'
|
|
|
24
24
|
export { PublishedThemePagesDocument } from './graphql/queries/published-theme-pages.generated.js';
|
|
25
25
|
export { ProductsDocument } from './graphql/queries/products.generated.js';
|
|
26
26
|
export { StorePropertyDocument } from './graphql/queries/store-property.generated.js';
|
|
27
|
-
export {
|
|
27
|
+
export { PreviewThemePageDocument } from './graphql/queries/preview-page.generated.js';
|
|
28
28
|
export { LibraryTemplateDocument } from './graphql-app-api/queries/LibraryTemplate.generated.js';
|
|
29
29
|
export { ThemePageDocument } from './graphql-app-api/queries/ThemePage.generated.js';
|
|
30
30
|
export { SaleFunnelDiscountsDocument } from './graphql-app-api/queries/SaleFunnelDiscounts.generated.js';
|