@gem-sdk/core 1.57.0-staging.25 → 1.57.0-staging.37

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.
@@ -25,6 +25,16 @@ const createProductStoreProvider = (data)=>zustand.createStore((set, get)=>({
25
25
  };
26
26
  });
27
27
  },
28
+ setShouldRequireUploadMessage: (value)=>{
29
+ set({
30
+ shouldRequireUploadMessage: value
31
+ });
32
+ },
33
+ setRequireUpload: (value)=>{
34
+ set({
35
+ requireUpload: value
36
+ });
37
+ },
28
38
  addProperty: (data)=>{
29
39
  const properties = get().properties;
30
40
  if (!properties?.some((v)=>v.key === data.key)) {
@@ -156,6 +156,24 @@ const GrowaveConfig = {
156
156
  appId: 'b3d2efbe-110a-4e27-84a8-1f2ed63996a4'
157
157
  }
158
158
  };
159
+ const KachingBundlesConfig = {
160
+ KachingBundles: {
161
+ appName: 'kaching-bundles',
162
+ appId: '6c637362-a106-4a32-94ac-94dcfd68cdb8'
163
+ }
164
+ };
165
+ const LoloyalLoyaltyReferralsConfig = {
166
+ LoloyalLoyaltyReferrals: {
167
+ appName: 'loloyal-com',
168
+ appId: '930ac91f-2bf2-4655-9ba0-574771f782d6'
169
+ }
170
+ };
171
+ const PowerfulContactFormBuilderConfig = {
172
+ PowerfulContactFormBuilder: {
173
+ appName: 'powerful-form-builder',
174
+ appId: 'e4bcb1eb-35b2-42e6-bc37-bfe0e1542c9d'
175
+ }
176
+ };
159
177
 
160
178
  exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
161
179
  exports.BoldSubscriptionsConfig = BoldSubscriptionsConfig;
@@ -166,8 +184,11 @@ exports.FlyBundlesUpsellsFbtConfig = FlyBundlesUpsellsFbtConfig;
166
184
  exports.GrowaveConfig = GrowaveConfig;
167
185
  exports.InstasellShoppableInstagramConfig = InstasellShoppableInstagramConfig;
168
186
  exports.JunipProductReviewsUgcConfig = JunipProductReviewsUgcConfig;
187
+ exports.KachingBundlesConfig = KachingBundlesConfig;
169
188
  exports.KiteFreeGiftDiscountConfig = KiteFreeGiftDiscountConfig;
189
+ exports.LoloyalLoyaltyReferralsConfig = LoloyalLoyaltyReferralsConfig;
170
190
  exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
191
+ exports.PowerfulContactFormBuilderConfig = PowerfulContactFormBuilderConfig;
171
192
  exports.PreorderNowPreOrderPqConfig = PreorderNowPreOrderPqConfig;
172
193
  exports.PreorderNowWodPresaleConfig = PreorderNowWodPresaleConfig;
173
194
  exports.ProductOptionsCustomizerConfig = ProductOptionsCustomizerConfig;
@@ -74,6 +74,13 @@ const ShopifyForms = {
74
74
  }
75
75
  }
76
76
  };
77
+ const KachingBundles = {
78
+ KachingBundles: {
79
+ 'app-block': {
80
+ product: '{{product}}'
81
+ }
82
+ }
83
+ };
77
84
  const overrideSettings = (tag, currentSetting, appSetting)=>{
78
85
  switch(tag){
79
86
  case 'ShopifyForms':
@@ -102,6 +109,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
102
109
  ['show-views']: appSetting?.showViews
103
110
  };
104
111
  }
112
+ case 'PowerfulContactFormBuilder':
113
+ {
114
+ return {
115
+ ...currentSetting,
116
+ shortcode: appSetting?.shortcode
117
+ };
118
+ }
105
119
  default:
106
120
  return currentSetting;
107
121
  }
@@ -361,7 +375,67 @@ const Growave = {
361
375
  'v2.product.reviewsMiniSlider': null
362
376
  }
363
377
  };
378
+ const LoloyalSettingCommon = {
379
+ title_font_size: 30,
380
+ subtitle_font_size: 13,
381
+ name_font_size: 20,
382
+ details_font_size: 14,
383
+ corner_radius: 8,
384
+ btn_radius: 8,
385
+ top_padding: 32,
386
+ bottom_padding: 32,
387
+ icon_color: '',
388
+ title_color: '#000000',
389
+ subtitle_color: '#000000',
390
+ name_color: '#000000',
391
+ details_color: '#000000',
392
+ card_bg_color: '#FFFFFF',
393
+ background_color: '#ffffff',
394
+ border_color: '#ececec',
395
+ primary_button_color: '#000000',
396
+ primary_button_text_color: '#FFFFFF',
397
+ secondary_button_color: '#FFFFFF',
398
+ secondary_button_text_color: '#000000',
399
+ hover_btn: '#000000',
400
+ hover_text_color: '#FFFFFF',
401
+ custom_css: '/* Add your custom styles here */'
402
+ };
403
+ const LoloyalLoyaltyReferrals = {
404
+ LoloyalLoyaltyReferrals: {
405
+ 'app-banner': {
406
+ img_opacity: 0,
407
+ bg_color: '#F6F6F6',
408
+ banner_height: '400',
409
+ content_position: 'll-middle-left',
410
+ content_alignment: 'left',
411
+ title_font_size: 40,
412
+ subtitle_font_size: 13,
413
+ title_color: '#000000',
414
+ subtitle_color: '#000000',
415
+ btn_radius: 30,
416
+ primary_button_color: '#000000',
417
+ primary_button_text_color: '#FFFFFF',
418
+ secondary_button_color: '#FFFFFF',
419
+ secondary_button_text_color: '#000000',
420
+ hover_btn: '#000000',
421
+ hover_text_color: '#FFFFFF',
422
+ custom_css: '/* Add your custom styles here */'
423
+ },
424
+ 'app-ways-to-earn': LoloyalSettingCommon,
425
+ 'app-ways-to-redeem': LoloyalSettingCommon,
426
+ 'app-referrals': LoloyalSettingCommon
427
+ }
428
+ };
429
+ const PowerfulContactFormBuilder = {
430
+ PowerfulContactFormBuilder: {
431
+ 'app-block': {
432
+ shortcode: ''
433
+ }
434
+ }
435
+ };
364
436
  const composeSettingsByWidgetType = {
437
+ ...LoloyalLoyaltyReferrals,
438
+ ...PowerfulContactFormBuilder,
365
439
  ...InstasellShoppableInstagram,
366
440
  ...SproutPlantTreesGrowSales,
367
441
  ...AppointmentBookingCowlendar,
@@ -387,7 +461,8 @@ const composeSettingsByWidgetType = {
387
461
  ...SelleasyWidget,
388
462
  ...YotpoReviews,
389
463
  ...BoldSubscriptions,
390
- ...Growave
464
+ ...Growave,
465
+ ...KachingBundles
391
466
  };
392
467
 
393
468
  exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
@@ -28,7 +28,10 @@ const mapShopifyAppMeta = {
28
28
  ...appConfig.BoldSubscriptionsConfig,
29
29
  ...appConfig.SproutPlantTreesGrowSalesConfig,
30
30
  ...appConfig.InstasellShoppableInstagramConfig,
31
- ...appConfig.GrowaveConfig
31
+ ...appConfig.GrowaveConfig,
32
+ ...appConfig.KachingBundlesConfig,
33
+ ...appConfig.LoloyalLoyaltyReferralsConfig,
34
+ ...appConfig.PowerfulContactFormBuilderConfig
32
35
  };
33
36
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
34
37
 
@@ -23,6 +23,16 @@ const createProductStoreProvider = (data)=>createStore((set, get)=>({
23
23
  };
24
24
  });
25
25
  },
26
+ setShouldRequireUploadMessage: (value)=>{
27
+ set({
28
+ shouldRequireUploadMessage: value
29
+ });
30
+ },
31
+ setRequireUpload: (value)=>{
32
+ set({
33
+ requireUpload: value
34
+ });
35
+ },
26
36
  addProperty: (data)=>{
27
37
  const properties = get().properties;
28
38
  if (!properties?.some((v)=>v.key === data.key)) {
@@ -154,5 +154,23 @@ const GrowaveConfig = {
154
154
  appId: 'b3d2efbe-110a-4e27-84a8-1f2ed63996a4'
155
155
  }
156
156
  };
157
+ const KachingBundlesConfig = {
158
+ KachingBundles: {
159
+ appName: 'kaching-bundles',
160
+ appId: '6c637362-a106-4a32-94ac-94dcfd68cdb8'
161
+ }
162
+ };
163
+ const LoloyalLoyaltyReferralsConfig = {
164
+ LoloyalLoyaltyReferrals: {
165
+ appName: 'loloyal-com',
166
+ appId: '930ac91f-2bf2-4655-9ba0-574771f782d6'
167
+ }
168
+ };
169
+ const PowerfulContactFormBuilderConfig = {
170
+ PowerfulContactFormBuilder: {
171
+ appName: 'powerful-form-builder',
172
+ appId: 'e4bcb1eb-35b2-42e6-bc37-bfe0e1542c9d'
173
+ }
174
+ };
157
175
 
158
- export { AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, YotpoReviewsV3UgcConfig };
176
+ export { AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, PowerfulContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, YotpoReviewsV3UgcConfig };
@@ -72,6 +72,13 @@ const ShopifyForms = {
72
72
  }
73
73
  }
74
74
  };
75
+ const KachingBundles = {
76
+ KachingBundles: {
77
+ 'app-block': {
78
+ product: '{{product}}'
79
+ }
80
+ }
81
+ };
75
82
  const overrideSettings = (tag, currentSetting, appSetting)=>{
76
83
  switch(tag){
77
84
  case 'ShopifyForms':
@@ -100,6 +107,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
100
107
  ['show-views']: appSetting?.showViews
101
108
  };
102
109
  }
110
+ case 'PowerfulContactFormBuilder':
111
+ {
112
+ return {
113
+ ...currentSetting,
114
+ shortcode: appSetting?.shortcode
115
+ };
116
+ }
103
117
  default:
104
118
  return currentSetting;
105
119
  }
@@ -359,7 +373,67 @@ const Growave = {
359
373
  'v2.product.reviewsMiniSlider': null
360
374
  }
361
375
  };
376
+ const LoloyalSettingCommon = {
377
+ title_font_size: 30,
378
+ subtitle_font_size: 13,
379
+ name_font_size: 20,
380
+ details_font_size: 14,
381
+ corner_radius: 8,
382
+ btn_radius: 8,
383
+ top_padding: 32,
384
+ bottom_padding: 32,
385
+ icon_color: '',
386
+ title_color: '#000000',
387
+ subtitle_color: '#000000',
388
+ name_color: '#000000',
389
+ details_color: '#000000',
390
+ card_bg_color: '#FFFFFF',
391
+ background_color: '#ffffff',
392
+ border_color: '#ececec',
393
+ primary_button_color: '#000000',
394
+ primary_button_text_color: '#FFFFFF',
395
+ secondary_button_color: '#FFFFFF',
396
+ secondary_button_text_color: '#000000',
397
+ hover_btn: '#000000',
398
+ hover_text_color: '#FFFFFF',
399
+ custom_css: '/* Add your custom styles here */'
400
+ };
401
+ const LoloyalLoyaltyReferrals = {
402
+ LoloyalLoyaltyReferrals: {
403
+ 'app-banner': {
404
+ img_opacity: 0,
405
+ bg_color: '#F6F6F6',
406
+ banner_height: '400',
407
+ content_position: 'll-middle-left',
408
+ content_alignment: 'left',
409
+ title_font_size: 40,
410
+ subtitle_font_size: 13,
411
+ title_color: '#000000',
412
+ subtitle_color: '#000000',
413
+ btn_radius: 30,
414
+ primary_button_color: '#000000',
415
+ primary_button_text_color: '#FFFFFF',
416
+ secondary_button_color: '#FFFFFF',
417
+ secondary_button_text_color: '#000000',
418
+ hover_btn: '#000000',
419
+ hover_text_color: '#FFFFFF',
420
+ custom_css: '/* Add your custom styles here */'
421
+ },
422
+ 'app-ways-to-earn': LoloyalSettingCommon,
423
+ 'app-ways-to-redeem': LoloyalSettingCommon,
424
+ 'app-referrals': LoloyalSettingCommon
425
+ }
426
+ };
427
+ const PowerfulContactFormBuilder = {
428
+ PowerfulContactFormBuilder: {
429
+ 'app-block': {
430
+ shortcode: ''
431
+ }
432
+ }
433
+ };
362
434
  const composeSettingsByWidgetType = {
435
+ ...LoloyalLoyaltyReferrals,
436
+ ...PowerfulContactFormBuilder,
363
437
  ...InstasellShoppableInstagram,
364
438
  ...SproutPlantTreesGrowSales,
365
439
  ...AppointmentBookingCowlendar,
@@ -385,7 +459,8 @@ const composeSettingsByWidgetType = {
385
459
  ...SelleasyWidget,
386
460
  ...YotpoReviews,
387
461
  ...BoldSubscriptions,
388
- ...Growave
462
+ ...Growave,
463
+ ...KachingBundles
389
464
  };
390
465
 
391
466
  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 } 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, KachingBundlesConfig, LoloyalLoyaltyReferralsConfig, PowerfulContactFormBuilderConfig } from './appConfig.js';
2
2
 
3
3
  const mapShopifyAppMeta = {
4
4
  ...RechargeSubscriptionsConfig,
@@ -26,7 +26,10 @@ const mapShopifyAppMeta = {
26
26
  ...BoldSubscriptionsConfig,
27
27
  ...SproutPlantTreesGrowSalesConfig,
28
28
  ...InstasellShoppableInstagramConfig,
29
- ...GrowaveConfig
29
+ ...GrowaveConfig,
30
+ ...KachingBundlesConfig,
31
+ ...LoloyalLoyaltyReferralsConfig,
32
+ ...PowerfulContactFormBuilderConfig
30
33
  };
31
34
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
32
35
 
@@ -31215,6 +31215,10 @@ type ProductContextProps = {
31215
31215
  updatePrice?: boolean;
31216
31216
  hasPreSelected?: boolean;
31217
31217
  setHasPreSelected: (value: boolean) => void;
31218
+ requireUpload?: boolean;
31219
+ setRequireUpload: (value: boolean) => void;
31220
+ shouldRequireUploadMessage?: boolean;
31221
+ setShouldRequireUploadMessage: (value: boolean) => void;
31218
31222
  };
31219
31223
  type ProductProviderProps = Pick<ProductContextProps, 'product' | 'quantity' | 'selectedOptions' | 'isSyncProduct'> & {
31220
31224
  initialVariantId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.57.0-staging.25",
3
+ "version": "1.57.0-staging.37",
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.0-staging.2",
31
- "@gem-sdk/styles": "1.57.0-staging.2",
31
+ "@gem-sdk/styles": "1.57.0-staging.27",
32
32
  "@types/classnames": "^2.3.1"
33
33
  },
34
34
  "dependencies": {