@gem-sdk/core 1.53.0-dev.0 → 1.53.0-dev.11

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.
@@ -22,13 +22,13 @@ const InteractionSuffix = ({ tag, uid })=>{
22
22
  const currentInteraction = PageContext.usePageStore((s)=>s.interactionData?.item);
23
23
  const isSelectOnPage = PageContext.usePageStore((s)=>s.interactionData?.isSelectOnPage);
24
24
  const isCurrentInteractionTarget = react.useMemo(()=>{
25
- return currentInteraction?.targets?.find((t)=>t.uid === uid);
25
+ return currentInteraction?.targets?.find((t)=>t.uid === uid && !t.isEntirePage);
26
26
  }, [
27
27
  currentInteraction,
28
28
  uid
29
29
  ]);
30
30
  const isCurrentInteractionTrigger = react.useMemo(()=>{
31
- return currentInteraction?.self?.uid === uid;
31
+ return currentInteraction?.self?.uid === uid && !currentInteraction?.self?.isEntirePage;
32
32
  }, [
33
33
  currentInteraction,
34
34
  uid
@@ -108,6 +108,12 @@ const PreorderNowWodPresaleConfig = {
108
108
  appId: 'fdf17d17-ef12-4a7b-8383-20cc1fc2a4b6'
109
109
  }
110
110
  };
111
+ const YotpoReviewsV3UgcConfig = {
112
+ YotpoReviews: {
113
+ appName: 'yotpo-product-reviews-ugc',
114
+ appId: 'eb7dfd7d-db44-4334-bc49-c893b51b36cf'
115
+ }
116
+ };
111
117
 
112
118
  exports.BonLoyaltyRewardsReferralsConfig = BonLoyaltyRewardsReferralsConfig;
113
119
  exports.EasyBundleBuilderSkailamaConfig = EasyBundleBuilderSkailamaConfig;
@@ -127,3 +133,4 @@ exports.SimpleBundlesKitsConfig = SimpleBundlesKitsConfig;
127
133
  exports.SkioSubscriptionsYcS20Config = SkioSubscriptionsYcS20Config;
128
134
  exports.SubifySubscriptionsConfig = SubifySubscriptionsConfig;
129
135
  exports.UnlimitedBundlesDiscountsConfig = UnlimitedBundlesDiscountsConfig;
136
+ exports.YotpoReviewsV3UgcConfig = YotpoReviewsV3UgcConfig;
@@ -88,6 +88,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
88
88
  bundle_id: appSetting?.['customBundleId']
89
89
  };
90
90
  }
91
+ case 'PumperBundlesVolumeDiscount':
92
+ {
93
+ return {
94
+ ...currentSetting,
95
+ selected_product: appSetting?.['productHandle'] || '{{ product }}'
96
+ };
97
+ }
91
98
  default:
92
99
  return currentSetting;
93
100
  }
@@ -107,7 +114,7 @@ const ReviewxpoProductReviewsApp = {
107
114
  const PumperBundlesVolumeDiscount = {
108
115
  PumperBundlesVolumeDiscount: {
109
116
  'app-block': {
110
- selected_product: '{{product}}',
117
+ selected_product: '{{ product }}',
111
118
  using_page_builder: false
112
119
  }
113
120
  }
@@ -197,6 +204,16 @@ const PreorderNowWodPresale = {
197
204
  'popups-block': null
198
205
  }
199
206
  };
207
+ const YotpoReviews = {
208
+ YotpoReviews: {
209
+ reviews: {
210
+ product: '{{ product }}'
211
+ },
212
+ 'star-rating': {
213
+ product: '{{ product }}'
214
+ }
215
+ }
216
+ };
200
217
  const composeSettingsByWidgetType = {
201
218
  ...JunipProductReviewsUgc,
202
219
  ...FlyBundlesUpsellsFbt,
@@ -215,7 +232,8 @@ const composeSettingsByWidgetType = {
215
232
  ...RechargeSubscriptions,
216
233
  ...LoyaltyRewardsReferrals,
217
234
  ...SubifySubscriptions,
218
- ...SelleasyWidget
235
+ ...SelleasyWidget,
236
+ ...YotpoReviews
219
237
  };
220
238
 
221
239
  exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
@@ -20,7 +20,8 @@ const mapShopifyAppMeta = {
20
20
  ...appConfig.PreorderNowPreOrderPqConfig,
21
21
  ...appConfig.FlyBundlesUpsellsFbtConfig,
22
22
  ...appConfig.JunipProductReviewsUgcConfig,
23
- ...appConfig.PreorderNowWodPresaleConfig
23
+ ...appConfig.PreorderNowWodPresaleConfig,
24
+ ...appConfig.YotpoReviewsV3UgcConfig
24
25
  };
25
26
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
26
27
 
@@ -20,13 +20,13 @@ const InteractionSuffix = ({ tag, uid })=>{
20
20
  const currentInteraction = usePageStore((s)=>s.interactionData?.item);
21
21
  const isSelectOnPage = usePageStore((s)=>s.interactionData?.isSelectOnPage);
22
22
  const isCurrentInteractionTarget = useMemo(()=>{
23
- return currentInteraction?.targets?.find((t)=>t.uid === uid);
23
+ return currentInteraction?.targets?.find((t)=>t.uid === uid && !t.isEntirePage);
24
24
  }, [
25
25
  currentInteraction,
26
26
  uid
27
27
  ]);
28
28
  const isCurrentInteractionTrigger = useMemo(()=>{
29
- return currentInteraction?.self?.uid === uid;
29
+ return currentInteraction?.self?.uid === uid && !currentInteraction?.self?.isEntirePage;
30
30
  }, [
31
31
  currentInteraction,
32
32
  uid
@@ -106,5 +106,11 @@ const PreorderNowWodPresaleConfig = {
106
106
  appId: 'fdf17d17-ef12-4a7b-8383-20cc1fc2a4b6'
107
107
  }
108
108
  };
109
+ const YotpoReviewsV3UgcConfig = {
110
+ YotpoReviews: {
111
+ appName: 'yotpo-product-reviews-ugc',
112
+ appId: 'eb7dfd7d-db44-4334-bc49-c893b51b36cf'
113
+ }
114
+ };
109
115
 
110
- export { BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig };
116
+ export { BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig, YotpoReviewsV3UgcConfig };
@@ -86,6 +86,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
86
86
  bundle_id: appSetting?.['customBundleId']
87
87
  };
88
88
  }
89
+ case 'PumperBundlesVolumeDiscount':
90
+ {
91
+ return {
92
+ ...currentSetting,
93
+ selected_product: appSetting?.['productHandle'] || '{{ product }}'
94
+ };
95
+ }
89
96
  default:
90
97
  return currentSetting;
91
98
  }
@@ -105,7 +112,7 @@ const ReviewxpoProductReviewsApp = {
105
112
  const PumperBundlesVolumeDiscount = {
106
113
  PumperBundlesVolumeDiscount: {
107
114
  'app-block': {
108
- selected_product: '{{product}}',
115
+ selected_product: '{{ product }}',
109
116
  using_page_builder: false
110
117
  }
111
118
  }
@@ -195,6 +202,16 @@ const PreorderNowWodPresale = {
195
202
  'popups-block': null
196
203
  }
197
204
  };
205
+ const YotpoReviews = {
206
+ YotpoReviews: {
207
+ reviews: {
208
+ product: '{{ product }}'
209
+ },
210
+ 'star-rating': {
211
+ product: '{{ product }}'
212
+ }
213
+ }
214
+ };
198
215
  const composeSettingsByWidgetType = {
199
216
  ...JunipProductReviewsUgc,
200
217
  ...FlyBundlesUpsellsFbt,
@@ -213,7 +230,8 @@ const composeSettingsByWidgetType = {
213
230
  ...RechargeSubscriptions,
214
231
  ...LoyaltyRewardsReferrals,
215
232
  ...SubifySubscriptions,
216
- ...SelleasyWidget
233
+ ...SelleasyWidget,
234
+ ...YotpoReviews
217
235
  };
218
236
 
219
237
  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 } from './appConfig.js';
1
+ import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, PreorderNowWodPresaleConfig, YotpoReviewsV3UgcConfig } from './appConfig.js';
2
2
 
3
3
  const mapShopifyAppMeta = {
4
4
  ...RechargeSubscriptionsConfig,
@@ -18,7 +18,8 @@ const mapShopifyAppMeta = {
18
18
  ...PreorderNowPreOrderPqConfig,
19
19
  ...FlyBundlesUpsellsFbtConfig,
20
20
  ...JunipProductReviewsUgcConfig,
21
- ...PreorderNowWodPresaleConfig
21
+ ...PreorderNowWodPresaleConfig,
22
+ ...YotpoReviewsV3UgcConfig
22
23
  };
23
24
  const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
24
25
 
@@ -6910,7 +6910,7 @@ type InstantKlaviyoWidgetType = 'popup_widget' | 'flyout_widget' | 'embed_widget
6910
6910
  type StampedWidgetType = 'main-widget' | 'carousel' | 'full-page' | 'visual-gallery' | 'wall-photos' | 'site-badge' | 'instagram-feed' | 'checkout-reviews' | 'single-highlight' | 'top-rated' | 'badge-single' | 'badge-double' | 'badge-ribbon' | 'product-rating';
6911
6911
  type LaiProductReviewsWidgetType = 'reviews_widget' | 'star_ratings' | 'homepage_reviews' | 'happy_customer_reviews' | 'star_ratings_in_list' | 'advanced_widget';
6912
6912
  type LaiProductReviewsAdvancedWidgetType = 'cardCarousel' | 'testimonialCarousel' | 'mediaGallery' | 'cardGrid';
6913
- type YotpoReviewsWidgetType = 'reviews' | 'badge' | 'reviewHighlights';
6913
+ type YotpoReviewsWidgetType = 'reviews' | 'star-rating' | 'reviewHighlights';
6914
6914
  type BogosWidgetType = 'icon' | 'thumnail' | 'slider' | 'message' | 'classic-bundle' | 'quantity-break';
6915
6915
  type PreOrderNowWodWidgetType = 'app-block' | 'popups-block';
6916
6916
  type TagShopWidgetType = 'homeLandingGalleries' | 'productGalleries' | 'tagGalleries';
@@ -8239,7 +8239,11 @@ type SettingUIGroup = {
8239
8239
  };
8240
8240
  };
8241
8241
 
8242
- type ControlProp<T> = ProductBundleChildControlType<T> | SelectProductBundleControlType<T> | AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | OpenLinkControlType<T> | SelectControlType<T> | TextareaControlType<T> | ToggleControlType<T> | ImageControlType<T> | ChildrensControlType | GridControlType<T> | FlexControlType<T> | TextEditorControlType<T> | ProductControlType<T> | TypographyControlType<T> | TypographyV2ControlType<T> | MenuControlType<T> | BehaviorStateControlType<T> | PickLinkControlType<T> | BoxShadowControlType<T> | TextShadowControlType<T> | BorderControlType<T> | BorderRadiusControlType<T> | RadiusPresetControlType<T> | SizeControlType<T> | ChildItemType<T> | PickMultiProductControlType<T> | CollectionControlType<T> | BackgroundControlType<T> | VisibilityControlType<T> | SelectVariantControlType | CountdownEvergreenType | Timezone<T> | CustomContentControlType<T> | DateTimePickerControlType | CountdownDailyType | KlaviyoCodes | YotpoLoyaltyCodes | InputWidthControlType<T> | LayoutSegmentControlType<T> | InputSpacing<T> | UniqueIdControlType<T> | PositionSquareControlType<T> | CustomCodeEditor | LayoutControlType<T> | LayoutBannerControlType<T> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | VariantSwatchesOnlyDefaultVariantControlType<T> | ProductListControlType<T> | ArticleListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting$1<T> | ChildIconType<T> | DropdownInput<T> | Dropdown<T> | AliPickSectionControlType<T> | ParallaxScrollingType<T> | BackgroundColorPickerType<T> | PlayPauseControlType<T> | LayoutCustomSegmentControlType<T> | SneakPeakRange<T> | SneakPeakTypeControlType<T> | SneakPeakControlType<T> | ProductInputCurrencyUnitControlType<T> | TypographyPostPurchaseControlType<T> | ProductOffersControlType<T> | DiscountAndShippingFee<T> | PostPurchaseTextareaControlType<T> | NotesControlType<T> | ButtonLayoutType<T> | ShapeSelectorControlType<T> | DisplayTriggerControlType<T> | CustomPositionControlType<T> | DealControlType<T>;
8242
+ type ProductHandleType<T> = SharedControlType<T> & {
8243
+ type: 'product-handle';
8244
+ };
8245
+
8246
+ type ControlProp<T> = ProductBundleChildControlType<T> | SelectProductBundleControlType<T> | AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | OpenLinkControlType<T> | SelectControlType<T> | TextareaControlType<T> | ToggleControlType<T> | ImageControlType<T> | ChildrensControlType | GridControlType<T> | FlexControlType<T> | TextEditorControlType<T> | ProductControlType<T> | TypographyControlType<T> | TypographyV2ControlType<T> | MenuControlType<T> | BehaviorStateControlType<T> | PickLinkControlType<T> | BoxShadowControlType<T> | TextShadowControlType<T> | BorderControlType<T> | BorderRadiusControlType<T> | RadiusPresetControlType<T> | SizeControlType<T> | ChildItemType<T> | PickMultiProductControlType<T> | CollectionControlType<T> | BackgroundControlType<T> | VisibilityControlType<T> | SelectVariantControlType | CountdownEvergreenType | Timezone<T> | CustomContentControlType<T> | DateTimePickerControlType | CountdownDailyType | KlaviyoCodes | YotpoLoyaltyCodes | InputWidthControlType<T> | LayoutSegmentControlType<T> | InputSpacing<T> | UniqueIdControlType<T> | PositionSquareControlType<T> | CustomCodeEditor | LayoutControlType<T> | LayoutBannerControlType<T> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | VariantSwatchesOnlyDefaultVariantControlType<T> | ProductListControlType<T> | ArticleListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting$1<T> | ChildIconType<T> | DropdownInput<T> | Dropdown<T> | AliPickSectionControlType<T> | ParallaxScrollingType<T> | BackgroundColorPickerType<T> | PlayPauseControlType<T> | LayoutCustomSegmentControlType<T> | SneakPeakRange<T> | SneakPeakTypeControlType<T> | SneakPeakControlType<T> | ProductInputCurrencyUnitControlType<T> | TypographyPostPurchaseControlType<T> | ProductOffersControlType<T> | DiscountAndShippingFee<T> | PostPurchaseTextareaControlType<T> | NotesControlType<T> | ButtonLayoutType<T> | ShapeSelectorControlType<T> | DisplayTriggerControlType<T> | CustomPositionControlType<T> | DealControlType<T> | ProductHandleType<T>;
8243
8247
  type ControlTriggerAction = {
8244
8248
  controlId: string;
8245
8249
  newValue?: any;
@@ -8433,6 +8437,7 @@ type InteractionElement<E, T> = {
8433
8437
  elementTag?: string;
8434
8438
  targetOutsideSelector?: string;
8435
8439
  targetInsideSelector?: string;
8440
+ isEntirePage?: boolean;
8436
8441
  };
8437
8442
  declare enum InteractionTargetEvent {
8438
8443
  'gp:change-background-color' = 0,
@@ -8496,6 +8501,7 @@ type InteractionTarget = {
8496
8501
  targetOutsideSelector?: string;
8497
8502
  targetInsideSelector?: string;
8498
8503
  events?: InteractionTargetEventObject[];
8504
+ isEntirePage?: boolean;
8499
8505
  };
8500
8506
  type InteractionTargetEventObject = {
8501
8507
  event: InteractionTargetEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.53.0-dev.0",
3
+ "version": "1.53.0-dev.11",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -27,8 +27,8 @@
27
27
  "type-check": "yarn tsc --noEmit"
28
28
  },
29
29
  "devDependencies": {
30
- "@gem-sdk/adapter-shopify": "1.53.0-dev.0",
31
- "@gem-sdk/styles": "1.53.0-dev.0",
30
+ "@gem-sdk/adapter-shopify": "1.53.0-dev.4",
31
+ "@gem-sdk/styles": "1.53.0-dev.8",
32
32
  "@types/classnames": "^2.3.1"
33
33
  },
34
34
  "dependencies": {