@gem-sdk/core 1.57.0-staging.22 → 1.57.0-staging.33

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,18 @@ 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
+ };
159
171
 
160
172
  exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
161
173
  exports.BoldSubscriptionsConfig = BoldSubscriptionsConfig;
@@ -166,7 +178,9 @@ exports.FlyBundlesUpsellsFbtConfig = FlyBundlesUpsellsFbtConfig;
166
178
  exports.GrowaveConfig = GrowaveConfig;
167
179
  exports.InstasellShoppableInstagramConfig = InstasellShoppableInstagramConfig;
168
180
  exports.JunipProductReviewsUgcConfig = JunipProductReviewsUgcConfig;
181
+ exports.KachingBundlesConfig = KachingBundlesConfig;
169
182
  exports.KiteFreeGiftDiscountConfig = KiteFreeGiftDiscountConfig;
183
+ exports.LoloyalLoyaltyReferralsConfig = LoloyalLoyaltyReferralsConfig;
170
184
  exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
171
185
  exports.PreorderNowPreOrderPqConfig = PreorderNowPreOrderPqConfig;
172
186
  exports.PreorderNowWodPresaleConfig = PreorderNowWodPresaleConfig;
@@ -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':
@@ -361,7 +368,59 @@ const Growave = {
361
368
  'v2.product.reviewsMiniSlider': null
362
369
  }
363
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
+ };
364
422
  const composeSettingsByWidgetType = {
423
+ ...LoloyalLoyaltyReferrals,
365
424
  ...InstasellShoppableInstagram,
366
425
  ...SproutPlantTreesGrowSales,
367
426
  ...AppointmentBookingCowlendar,
@@ -387,7 +446,8 @@ const composeSettingsByWidgetType = {
387
446
  ...SelleasyWidget,
388
447
  ...YotpoReviews,
389
448
  ...BoldSubscriptions,
390
- ...Growave
449
+ ...Growave,
450
+ ...KachingBundles
391
451
  };
392
452
 
393
453
  exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
@@ -28,7 +28,9 @@ 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
32
34
  };
33
35
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
34
36
 
@@ -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,17 @@ 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
+ };
157
169
 
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 };
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 };
@@ -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':
@@ -359,7 +366,59 @@ const Growave = {
359
366
  'v2.product.reviewsMiniSlider': null
360
367
  }
361
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
+ };
362
420
  const composeSettingsByWidgetType = {
421
+ ...LoloyalLoyaltyReferrals,
363
422
  ...InstasellShoppableInstagram,
364
423
  ...SproutPlantTreesGrowSales,
365
424
  ...AppointmentBookingCowlendar,
@@ -385,7 +444,8 @@ const composeSettingsByWidgetType = {
385
444
  ...SelleasyWidget,
386
445
  ...YotpoReviews,
387
446
  ...BoldSubscriptions,
388
- ...Growave
447
+ ...Growave,
448
+ ...KachingBundles
389
449
  };
390
450
 
391
451
  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 } from './appConfig.js';
2
2
 
3
3
  const mapShopifyAppMeta = {
4
4
  ...RechargeSubscriptionsConfig,
@@ -26,7 +26,9 @@ const mapShopifyAppMeta = {
26
26
  ...BoldSubscriptionsConfig,
27
27
  ...SproutPlantTreesGrowSalesConfig,
28
28
  ...InstasellShoppableInstagramConfig,
29
- ...GrowaveConfig
29
+ ...GrowaveConfig,
30
+ ...KachingBundlesConfig,
31
+ ...LoloyalLoyaltyReferralsConfig
30
32
  };
31
33
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
32
34
 
@@ -6862,6 +6862,7 @@ type BaseProps<Setting = unknown, Style = unknown, Advanced = AdvancedType> = {
6862
6862
  builderData?: BlockEntity;
6863
6863
  isPreview?: boolean;
6864
6864
  uidTranslate?: string;
6865
+ uidInteraction?: string;
6865
6866
  };
6866
6867
  customAttrs?: Object;
6867
6868
  styles?: Style;
@@ -31214,6 +31215,10 @@ type ProductContextProps = {
31214
31215
  updatePrice?: boolean;
31215
31216
  hasPreSelected?: boolean;
31216
31217
  setHasPreSelected: (value: boolean) => void;
31218
+ requireUpload?: boolean;
31219
+ setRequireUpload: (value: boolean) => void;
31220
+ shouldRequireUploadMessage?: boolean;
31221
+ setShouldRequireUploadMessage: (value: boolean) => void;
31217
31222
  };
31218
31223
  type ProductProviderProps = Pick<ProductContextProps, 'product' | 'quantity' | 'selectedOptions' | 'isSyncProduct'> & {
31219
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.22",
3
+ "version": "1.57.0-staging.33",
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": {