@gem-sdk/core 1.50.0-staging.18 → 1.50.0-staging.21

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.
@@ -84,12 +84,19 @@ const EasyBundleBuilderSkailamaConfig = {
84
84
  appId: '05b1325c-6303-4da5-8e2f-b13ab2a50e1a'
85
85
  }
86
86
  };
87
+ const PreorderNowPreOrderPqConfig = {
88
+ PreorderNowPreOrderPq: {
89
+ appName: 'preorder-now-pre-order-pq',
90
+ appId: '551fab2c-3af6-4a8f-ba21-736a71cb4540'
91
+ }
92
+ };
87
93
 
88
94
  exports.BonLoyaltyRewardsReferralsConfig = BonLoyaltyRewardsReferralsConfig;
89
95
  exports.EasyBundleBuilderSkailamaConfig = EasyBundleBuilderSkailamaConfig;
90
96
  exports.FastBundleBundlesDiscountsConfig = FastBundleBundlesDiscountsConfig;
91
97
  exports.KiteFreeGiftDiscountConfig = KiteFreeGiftDiscountConfig;
92
98
  exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
99
+ exports.PreorderNowPreOrderPqConfig = PreorderNowPreOrderPqConfig;
93
100
  exports.PumperBundlesVolumeDiscountConfig = PumperBundlesVolumeDiscountConfig;
94
101
  exports.RechargeSubscriptionsConfig = RechargeSubscriptionsConfig;
95
102
  exports.ReviewxpoProductReviewsAppConfig = ReviewxpoProductReviewsAppConfig;
@@ -134,7 +134,16 @@ const EasyBundleBuilderSkailama = {
134
134
  'app-block-bundlePage': null
135
135
  }
136
136
  };
137
+ const PreorderNowPreOrderPq = {
138
+ PreorderNowPreOrderPq: {
139
+ 'app-block-notifyapp-block-notify': null,
140
+ 'app-block-partial': null,
141
+ 'app-block-timer': null,
142
+ 'app-block': null
143
+ }
144
+ };
137
145
  const composeSettingsByWidgetType = {
146
+ ...PreorderNowPreOrderPq,
138
147
  ...EasyBundleBuilderSkailama,
139
148
  ...FastBundleBundlesDiscounts,
140
149
  ...KiteFreeGiftDiscount,
@@ -16,7 +16,8 @@ const mapShopifyAppMeta = {
16
16
  ...appConfig.KiteFreeGiftDiscountConfig,
17
17
  ...appConfig.FastBundleBundlesDiscountsConfig,
18
18
  ...appConfig.SimpleBundlesKitsConfig,
19
- ...appConfig.EasyBundleBuilderSkailamaConfig
19
+ ...appConfig.EasyBundleBuilderSkailamaConfig,
20
+ ...appConfig.PreorderNowPreOrderPqConfig
20
21
  };
21
22
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
22
23
 
@@ -118,7 +118,7 @@ const composeTypographyAttr = (attrs)=>{
118
118
  });
119
119
  };
120
120
  const composeTypographyClassName = (typo, typography)=>{
121
- return typo ? typo?.type && !typo.custom ? genTypoClass(typo.type) : '' : typography?.type && genTypoClass(typography?.type);
121
+ return typo ? typo?.type && !isCustomTypo(typo.custom) ? genTypoClass(typo.type) : '' : typography?.type && genTypoClass(typography?.type);
122
122
  };
123
123
  const composeFallbackTypographyStyle = (tag)=>{
124
124
  if (tag.toLocaleLowerCase().includes('heading')) {
@@ -132,7 +132,7 @@ const composeTypographyStyle = (typo, typography, disableAttr)=>{
132
132
  const customTypo = {
133
133
  ...typo.custom,
134
134
  fallbackFontFamily: fallbackFontFamily,
135
- isCustom: !!typo.custom
135
+ isCustom: isCustomTypo(typo.custom)
136
136
  };
137
137
  return {
138
138
  ...composeTypographyV2(customTypo, typo.attrs),
@@ -143,6 +143,9 @@ const composeTypographyStyle = (typo, typography, disableAttr)=>{
143
143
  ...!typography?.type ? composeTypography(typography?.custom) : {}
144
144
  };
145
145
  };
146
+ const isCustomTypo = (customTypo)=>{
147
+ return customTypo && Object.keys(customTypo).length > 1 || customTypo && Object.keys(customTypo).length === 1 && !customTypo.fontSize;
148
+ };
146
149
 
147
150
  exports.composeFallbackTypographyStyle = composeFallbackTypographyStyle;
148
151
  exports.composeFontFamilyTypographyV2 = composeFontFamilyTypographyV2;
@@ -82,5 +82,11 @@ const EasyBundleBuilderSkailamaConfig = {
82
82
  appId: '05b1325c-6303-4da5-8e2f-b13ab2a50e1a'
83
83
  }
84
84
  };
85
+ const PreorderNowPreOrderPqConfig = {
86
+ PreorderNowPreOrderPq: {
87
+ appName: 'preorder-now-pre-order-pq',
88
+ appId: '551fab2c-3af6-4a8f-ba21-736a71cb4540'
89
+ }
90
+ };
85
91
 
86
- export { BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig };
92
+ export { BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig };
@@ -132,7 +132,16 @@ const EasyBundleBuilderSkailama = {
132
132
  'app-block-bundlePage': null
133
133
  }
134
134
  };
135
+ const PreorderNowPreOrderPq = {
136
+ PreorderNowPreOrderPq: {
137
+ 'app-block-notifyapp-block-notify': null,
138
+ 'app-block-partial': null,
139
+ 'app-block-timer': null,
140
+ 'app-block': null
141
+ }
142
+ };
135
143
  const composeSettingsByWidgetType = {
144
+ ...PreorderNowPreOrderPq,
136
145
  ...EasyBundleBuilderSkailama,
137
146
  ...FastBundleBundlesDiscounts,
138
147
  ...KiteFreeGiftDiscount,
@@ -1,4 +1,4 @@
1
- import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig } from './appConfig.js';
1
+ import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig } from './appConfig.js';
2
2
 
3
3
  const mapShopifyAppMeta = {
4
4
  ...RechargeSubscriptionsConfig,
@@ -14,7 +14,8 @@ const mapShopifyAppMeta = {
14
14
  ...KiteFreeGiftDiscountConfig,
15
15
  ...FastBundleBundlesDiscountsConfig,
16
16
  ...SimpleBundlesKitsConfig,
17
- ...EasyBundleBuilderSkailamaConfig
17
+ ...EasyBundleBuilderSkailamaConfig,
18
+ ...PreorderNowPreOrderPqConfig
18
19
  };
19
20
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
20
21
 
@@ -116,7 +116,7 @@ const composeTypographyAttr = (attrs)=>{
116
116
  });
117
117
  };
118
118
  const composeTypographyClassName = (typo, typography)=>{
119
- return typo ? typo?.type && !typo.custom ? genTypoClass(typo.type) : '' : typography?.type && genTypoClass(typography?.type);
119
+ return typo ? typo?.type && !isCustomTypo(typo.custom) ? genTypoClass(typo.type) : '' : typography?.type && genTypoClass(typography?.type);
120
120
  };
121
121
  const composeFallbackTypographyStyle = (tag)=>{
122
122
  if (tag.toLocaleLowerCase().includes('heading')) {
@@ -130,7 +130,7 @@ const composeTypographyStyle = (typo, typography, disableAttr)=>{
130
130
  const customTypo = {
131
131
  ...typo.custom,
132
132
  fallbackFontFamily: fallbackFontFamily,
133
- isCustom: !!typo.custom
133
+ isCustom: isCustomTypo(typo.custom)
134
134
  };
135
135
  return {
136
136
  ...composeTypographyV2(customTypo, typo.attrs),
@@ -141,5 +141,8 @@ const composeTypographyStyle = (typo, typography, disableAttr)=>{
141
141
  ...!typography?.type ? composeTypography(typography?.custom) : {}
142
142
  };
143
143
  };
144
+ const isCustomTypo = (customTypo)=>{
145
+ return customTypo && Object.keys(customTypo).length > 1 || customTypo && Object.keys(customTypo).length === 1 && !customTypo.fontSize;
146
+ };
144
147
 
145
148
  export { composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, genTypoClass };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.50.0-staging.18",
3
+ "version": "1.50.0-staging.21",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",