@meduza/ui-kit-2 0.8.603 → 0.8.604

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.
@@ -955,7 +955,7 @@ const Toolbar = ({
955
955
  }, children));
956
956
  };
957
957
 
958
- var styles$s = {"containerInDynamicBlock":"Meta-module_containerInDynamicBlock__YSh66","root":"Meta-module_root__H-Q4d","rich":"Meta-module_rich__dCkJK","podcast":"Meta-module_podcast__MI8gD","episode":"Meta-module_episode__0n9CF","simple":"Meta-module_simple__tztcr","slide":"Meta-module_slide__3OyIN","card":"Meta-module_card__2vqfN","game":"Meta-module_game__HNcgr","isInMaterial":"Meta-module_isInMaterial__vKcTK","isInSearchItem":"Meta-module_isInSearchItem__ENqHo","isInMediaBlock":"Meta-module_isInMediaBlock__TENZG","center":"Meta-module_center__seHro","half":"Meta-module_half__aoa9h","podcastMaterial":"Meta-module_podcastMaterial__GTPyD","light":"Meta-module_light__oW3kc","dark":"Meta-module_dark__tLQNJ","isDark":"Meta-module_isDark__xSl1J","hasSource":"Meta-module_hasSource__OZJ0y","bookmark":"Meta-module_bookmark__jcFWn","isInBookRelated":"Meta-module_isInBookRelated__Ohidg","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
958
+ var styles$s = {"containerInDynamicBlock":"Meta-module_containerInDynamicBlock__YSh66","containerInDynamicBlockAndMaterial":"Meta-module_containerInDynamicBlockAndMaterial__4v4A9","root":"Meta-module_root__H-Q4d","rich":"Meta-module_rich__dCkJK","podcast":"Meta-module_podcast__MI8gD","episode":"Meta-module_episode__0n9CF","simple":"Meta-module_simple__tztcr","slide":"Meta-module_slide__3OyIN","card":"Meta-module_card__2vqfN","game":"Meta-module_game__HNcgr","isInMaterial":"Meta-module_isInMaterial__vKcTK","isInSearchItem":"Meta-module_isInSearchItem__ENqHo","isInMediaBlock":"Meta-module_isInMediaBlock__TENZG","center":"Meta-module_center__seHro","half":"Meta-module_half__aoa9h","podcastMaterial":"Meta-module_podcastMaterial__GTPyD","light":"Meta-module_light__oW3kc","dark":"Meta-module_dark__tLQNJ","isDark":"Meta-module_isDark__xSl1J","hasSource":"Meta-module_hasSource__OZJ0y","bookmark":"Meta-module_bookmark__jcFWn","isInBookRelated":"Meta-module_isInBookRelated__Ohidg","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
959
959
 
960
960
  const Meta = ({
961
961
  hasSource,
@@ -1808,7 +1808,8 @@ const MetaContainer = ({
1808
1808
  theme
1809
1809
  }
1810
1810
  },
1811
- styleContext
1811
+ styleContext,
1812
+ type
1812
1813
  }) => {
1813
1814
  const themeColor = styleContext && styleContext.indexOf('dark') !== -1 ? 'light' : 'unset';
1814
1815
  const isPodcast = styleContext && styleContext.indexOf('podcast') !== -1;
@@ -1820,7 +1821,7 @@ const MetaContainer = ({
1820
1821
  });
1821
1822
  }
1822
1823
  const hasSource = !!components.find(item => item.type === 'source_name');
1823
- const classNames = [[styles$s.containerInDynamicBlock, styleContext === 'isInDynamicBlock']];
1824
+ const classNames = [[styles$s.containerInDynamicBlock, styleContext === 'isInDynamicBlock'], [styles$s.containerInDynamicBlockAndMaterial, styleContext === 'isInDynamicBlock' && type === 'isInMaterial']];
1824
1825
  return /*#__PURE__*/React.createElement("div", {
1825
1826
  className: makeClassName(classNames)
1826
1827
  }, /*#__PURE__*/React.createElement(Meta, {
@@ -2065,7 +2066,8 @@ const RenderBlocks = ({
2065
2066
  isRead,
2066
2067
  isListened,
2067
2068
  bookmarkAction,
2068
- isInBookmarks
2069
+ isInBookmarks,
2070
+ type = 'default'
2069
2071
  }) => {
2070
2072
  switch (block.type) {
2071
2073
  case 'tag':
@@ -2100,7 +2102,8 @@ const RenderBlocks = ({
2100
2102
  isRead: isRead,
2101
2103
  isListened: isListened,
2102
2104
  isInBookmarks: isInBookmarks,
2103
- bookmarkAction: bookmarkAction
2105
+ bookmarkAction: bookmarkAction,
2106
+ type: type
2104
2107
  });
2105
2108
  }
2106
2109
  case 'blockquote':
@@ -2639,7 +2642,8 @@ const RawHtmlBlock = ({
2639
2642
  isInBookmarks,
2640
2643
  bookmarkAction,
2641
2644
  lightBox,
2642
- lang
2645
+ lang,
2646
+ type = 'default'
2643
2647
  }) => {
2644
2648
  const context = {
2645
2649
  lightBox: lightBox || null
@@ -2707,7 +2711,8 @@ const RawHtmlBlock = ({
2707
2711
  isListened: isListened,
2708
2712
  isInBookmarks: isInBookmarks,
2709
2713
  bookmarkAction: bookmarkAction,
2710
- lang: lang
2714
+ lang: lang,
2715
+ type: type
2711
2716
  }));
2712
2717
  }
2713
2718
  }