@gem-sdk/core 1.53.0-dev.185 → 1.53.0-dev.187

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.
@@ -104,7 +104,9 @@ function composeAdvanceStyle(data, tag, pageType) {
104
104
  if (attr === 'boxShadow') {
105
105
  const listElementShadowV2 = [
106
106
  'Row',
107
- 'Section'
107
+ 'Section',
108
+ 'Text',
109
+ 'Heading'
108
110
  ];
109
111
  let hasBoxShadowV2 = hasBoxShadow;
110
112
  if (listElementShadowV2.includes(tag || '')) {
@@ -162,6 +162,12 @@ const KachingBundlesConfig = {
162
162
  appId: '6c637362-a106-4a32-94ac-94dcfd68cdb8'
163
163
  }
164
164
  };
165
+ const LoloyalLoyaltyReferralsConfig = {
166
+ LoloyalLoyaltyReferrals: {
167
+ appName: 'loloyal-com',
168
+ appId: '930ac91f-2bf2-4655-9ba0-574771f782d6'
169
+ }
170
+ };
165
171
 
166
172
  exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
167
173
  exports.BoldSubscriptionsConfig = BoldSubscriptionsConfig;
@@ -174,6 +180,7 @@ exports.InstasellShoppableInstagramConfig = InstasellShoppableInstagramConfig;
174
180
  exports.JunipProductReviewsUgcConfig = JunipProductReviewsUgcConfig;
175
181
  exports.KachingBundlesConfig = KachingBundlesConfig;
176
182
  exports.KiteFreeGiftDiscountConfig = KiteFreeGiftDiscountConfig;
183
+ exports.LoloyalLoyaltyReferralsConfig = LoloyalLoyaltyReferralsConfig;
177
184
  exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
178
185
  exports.PreorderNowPreOrderPqConfig = PreorderNowPreOrderPqConfig;
179
186
  exports.PreorderNowWodPresaleConfig = PreorderNowWodPresaleConfig;
@@ -368,7 +368,59 @@ const Growave = {
368
368
  'v2.product.reviewsMiniSlider': null
369
369
  }
370
370
  };
371
+ const LoloyalSettingCommon = {
372
+ title_font_size: 30,
373
+ subtitle_font_size: 13,
374
+ name_font_size: 20,
375
+ details_font_size: 14,
376
+ corner_radius: 8,
377
+ btn_radius: 8,
378
+ top_padding: 32,
379
+ bottom_padding: 32,
380
+ icon_color: '',
381
+ title_color: '#000000',
382
+ subtitle_color: '#000000',
383
+ name_color: '#000000',
384
+ details_color: '#000000',
385
+ card_bg_color: '#FFFFFF',
386
+ background_color: '#ffffff',
387
+ border_color: '#ececec',
388
+ primary_button_color: '#000000',
389
+ primary_button_text_color: '#FFFFFF',
390
+ secondary_button_color: '#FFFFFF',
391
+ secondary_button_text_color: '#000000',
392
+ hover_btn: '#000000',
393
+ hover_text_color: '#FFFFFF',
394
+ custom_css: '/* Add your custom styles here */'
395
+ };
396
+ const LoloyalLoyaltyReferrals = {
397
+ LoloyalLoyaltyReferrals: {
398
+ 'app-banner': {
399
+ img_opacity: 0,
400
+ bg_color: '#F6F6F6',
401
+ banner_height: '400',
402
+ content_position: 'll-middle-left',
403
+ content_alignment: 'left',
404
+ title_font_size: 40,
405
+ subtitle_font_size: 13,
406
+ title_color: '#000000',
407
+ subtitle_color: '#000000',
408
+ btn_radius: 30,
409
+ primary_button_color: '#000000',
410
+ primary_button_text_color: '#FFFFFF',
411
+ secondary_button_color: '#FFFFFF',
412
+ secondary_button_text_color: '#000000',
413
+ hover_btn: '#000000',
414
+ hover_text_color: '#FFFFFF',
415
+ custom_css: '/* Add your custom styles here */'
416
+ },
417
+ 'app-ways-to-earn': LoloyalSettingCommon,
418
+ 'app-ways-to-redeem': LoloyalSettingCommon,
419
+ 'app-referrals': LoloyalSettingCommon
420
+ }
421
+ };
371
422
  const composeSettingsByWidgetType = {
423
+ ...LoloyalLoyaltyReferrals,
372
424
  ...InstasellShoppableInstagram,
373
425
  ...SproutPlantTreesGrowSales,
374
426
  ...AppointmentBookingCowlendar,
@@ -29,7 +29,8 @@ const mapShopifyAppMeta = {
29
29
  ...appConfig.InstasellShoppableInstagramConfig,
30
30
  ...appConfig.BoldSubscriptionsConfig,
31
31
  ...appConfig.GrowaveConfig,
32
- ...appConfig.KachingBundlesConfig
32
+ ...appConfig.KachingBundlesConfig,
33
+ ...appConfig.LoloyalLoyaltyReferralsConfig
33
34
  };
34
35
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
35
36
 
@@ -102,7 +102,9 @@ function composeAdvanceStyle(data, tag, pageType) {
102
102
  if (attr === 'boxShadow') {
103
103
  const listElementShadowV2 = [
104
104
  'Row',
105
- 'Section'
105
+ 'Section',
106
+ 'Text',
107
+ 'Heading'
106
108
  ];
107
109
  let hasBoxShadowV2 = hasBoxShadow;
108
110
  if (listElementShadowV2.includes(tag || '')) {
@@ -160,5 +160,11 @@ const KachingBundlesConfig = {
160
160
  appId: '6c637362-a106-4a32-94ac-94dcfd68cdb8'
161
161
  }
162
162
  };
163
+ const LoloyalLoyaltyReferralsConfig = {
164
+ LoloyalLoyaltyReferrals: {
165
+ appName: 'loloyal-com',
166
+ appId: '930ac91f-2bf2-4655-9ba0-574771f782d6'
167
+ }
168
+ };
163
169
 
164
- export { AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, YotpoReviewsV3UgcConfig };
170
+ export { AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, YotpoReviewsV3UgcConfig };
@@ -366,7 +366,59 @@ const Growave = {
366
366
  'v2.product.reviewsMiniSlider': null
367
367
  }
368
368
  };
369
+ const LoloyalSettingCommon = {
370
+ title_font_size: 30,
371
+ subtitle_font_size: 13,
372
+ name_font_size: 20,
373
+ details_font_size: 14,
374
+ corner_radius: 8,
375
+ btn_radius: 8,
376
+ top_padding: 32,
377
+ bottom_padding: 32,
378
+ icon_color: '',
379
+ title_color: '#000000',
380
+ subtitle_color: '#000000',
381
+ name_color: '#000000',
382
+ details_color: '#000000',
383
+ card_bg_color: '#FFFFFF',
384
+ background_color: '#ffffff',
385
+ border_color: '#ececec',
386
+ primary_button_color: '#000000',
387
+ primary_button_text_color: '#FFFFFF',
388
+ secondary_button_color: '#FFFFFF',
389
+ secondary_button_text_color: '#000000',
390
+ hover_btn: '#000000',
391
+ hover_text_color: '#FFFFFF',
392
+ custom_css: '/* Add your custom styles here */'
393
+ };
394
+ const LoloyalLoyaltyReferrals = {
395
+ LoloyalLoyaltyReferrals: {
396
+ 'app-banner': {
397
+ img_opacity: 0,
398
+ bg_color: '#F6F6F6',
399
+ banner_height: '400',
400
+ content_position: 'll-middle-left',
401
+ content_alignment: 'left',
402
+ title_font_size: 40,
403
+ subtitle_font_size: 13,
404
+ title_color: '#000000',
405
+ subtitle_color: '#000000',
406
+ btn_radius: 30,
407
+ primary_button_color: '#000000',
408
+ primary_button_text_color: '#FFFFFF',
409
+ secondary_button_color: '#FFFFFF',
410
+ secondary_button_text_color: '#000000',
411
+ hover_btn: '#000000',
412
+ hover_text_color: '#FFFFFF',
413
+ custom_css: '/* Add your custom styles here */'
414
+ },
415
+ 'app-ways-to-earn': LoloyalSettingCommon,
416
+ 'app-ways-to-redeem': LoloyalSettingCommon,
417
+ 'app-referrals': LoloyalSettingCommon
418
+ }
419
+ };
369
420
  const composeSettingsByWidgetType = {
421
+ ...LoloyalLoyaltyReferrals,
370
422
  ...InstasellShoppableInstagram,
371
423
  ...SproutPlantTreesGrowSales,
372
424
  ...AppointmentBookingCowlendar,
@@ -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, SproutPlantTreesGrowSalesConfig, InstasellShoppableInstagramConfig, BoldSubscriptionsConfig, GrowaveConfig, 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, SproutPlantTreesGrowSalesConfig, InstasellShoppableInstagramConfig, BoldSubscriptionsConfig, GrowaveConfig, KachingBundlesConfig, LoloyalLoyaltyReferralsConfig } from './appConfig.js';
2
2
 
3
3
  const mapShopifyAppMeta = {
4
4
  ...RechargeSubscriptionsConfig,
@@ -27,7 +27,8 @@ const mapShopifyAppMeta = {
27
27
  ...InstasellShoppableInstagramConfig,
28
28
  ...BoldSubscriptionsConfig,
29
29
  ...GrowaveConfig,
30
- ...KachingBundlesConfig
30
+ ...KachingBundlesConfig,
31
+ ...LoloyalLoyaltyReferralsConfig
31
32
  };
32
33
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
33
34
 
@@ -8193,6 +8193,7 @@ type ControlConfig = ControlProp<any> & {
8193
8193
  linkWithSetting?: LinkWithSetting;
8194
8194
  };
8195
8195
  type Plan = 'trial' | 'build' | 'starter' | 'optimize' | 'advanced' | 'trial2022' | 'enterprise' | 'development' | 'professional';
8196
+ type LabelVariant = 'primary' | 'secondary' | 'bold';
8196
8197
  type SettingUIControl = {
8197
8198
  id?: string;
8198
8199
  controlConfig?: ControlConfig;
@@ -8203,16 +8204,20 @@ type SettingUIControl = {
8203
8204
  conditionDisplay?: string;
8204
8205
  conditionEnable?: string;
8205
8206
  options?: {
8206
- hideLabel?: boolean;
8207
- hideOnDevices?: Record<NameDevices$1, boolean>;
8208
8207
  fullWidth?: boolean;
8209
8208
  onlyShowInTags?: string[];
8210
8209
  target?: 'tab';
8211
8210
  disableMessage?: string;
8212
8211
  nearestSupportedPlan?: Plan;
8213
8212
  lockedOnPlans?: Plan[];
8214
- labelVariant?: 'primary' | 'secondary';
8213
+ labelVariant?: LabelVariant;
8215
8214
  labelInsideControl?: boolean;
8215
+ updateFields?: [
8216
+ {
8217
+ field: string;
8218
+ settingId: string;
8219
+ }
8220
+ ];
8216
8221
  };
8217
8222
  setting?: {
8218
8223
  id: string;
@@ -8226,7 +8231,8 @@ type SettingUIControl = {
8226
8231
  } & SettingUICompo;
8227
8232
  type ControlTriggerAction$1 = {
8228
8233
  controlId: string;
8229
- newValue: any;
8234
+ newValue?: any;
8235
+ valueFromField?: string;
8230
8236
  controlType: string;
8231
8237
  groupType: string;
8232
8238
  valueIfNull?: any;
@@ -8431,6 +8437,7 @@ type TypographyV2Attrs = {
8431
8437
  underline?: boolean;
8432
8438
  color?: ColorValueType;
8433
8439
  transform?: string;
8440
+ textAlign?: ObjectDevices<AlignProp>;
8434
8441
  };
8435
8442
  type CornerRadius = {
8436
8443
  btlr?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.53.0-dev.185",
3
+ "version": "1.53.0-dev.187",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",