@meduza/ui-kit-2 0.1.97 → 0.1.99

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.
@@ -13,5 +13,5 @@ export interface RawHtmlBlockProps {
13
13
  isInBookmarks?: boolean | undefined;
14
14
  bookmarkAction?: (service: CallToActions, place: string) => void;
15
15
  lightBox?: LightboxContext | null | undefined;
16
- lang: 'ru' | 'en';
16
+ lang?: 'ru' | 'en';
17
17
  }
@@ -2647,13 +2647,13 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
2647
2647
  React.useEffect(function () {
2648
2648
  if (inView) {
2649
2649
  if (onlyOn === 'mobile' && window.innerWidth <= 511 || onlyOn === 'desktop' && window.innerWidth >= 512 || !onlyOn) {
2650
- postMessage('richRelated', url, 'view');
2650
+ postMessage('productRelated', url, 'view');
2651
2651
  }
2652
2652
  }
2653
2653
  }, [inView]);
2654
2654
 
2655
2655
  var handleClick = function handleClick() {
2656
- postMessage('richRelated', url, 'click');
2656
+ postMessage('productRelated', url, 'click');
2657
2657
  };
2658
2658
 
2659
2659
  var classNames = [[styles$D.root, true], [styles$D.hasGradient, !!gradients], [styles$D[onlyOn], !!onlyOn && !!styles$D[onlyOn]]];