@meduza/ui-kit-2 0.1.31 → 0.1.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.
@@ -1135,7 +1135,7 @@ var DangerousHTML = function DangerousHTML(_ref) {
1135
1135
  }));
1136
1136
  };
1137
1137
 
1138
- var styles$i = {"root":"EmbedBlock-module_root__28k9U","object":"EmbedBlock-module_object__2_UZ7","objectWrap":"EmbedBlock-module_objectWrap__1aDVd","proportional":"EmbedBlock-module_proportional__3lAv4","attachment":"EmbedBlock-module_attachment__2pE0t","default":"EmbedBlock-module_default__LSDny","xs":"EmbedBlock-module_xs__1hFgW","full":"EmbedBlock-module_full__1TEjx","super_full":"EmbedBlock-module_super_full__1Fn9A","figure":"EmbedBlock-module_figure__vAvcN","dark":"EmbedBlock-module_dark__1be2G","isInGroupedBlock":"EmbedBlock-module_isInGroupedBlock__3r_i-","gameEmbed":"EmbedBlock-module_gameEmbed__AZQSo","mobile":"EmbedBlock-module_mobile__1P-eo","desktop":"EmbedBlock-module_desktop__SF5a_","control":"EmbedBlock-module_control__xr8dZ","raw_html":"EmbedBlock-module_raw_html__MQoAA","mobileFullwidth":"EmbedBlock-module_mobileFullwidth__QFFLH","card":"EmbedBlock-module_card__KTbvp","slide":"EmbedBlock-module_slide__3cL3M","cc":"EmbedBlock-module_cc__1BQ5g","isInAnswer":"EmbedBlock-module_isInAnswer__tLlgs","picture":"EmbedBlock-module_picture__186q0","wrapper":"EmbedBlock-module_wrapper__33XvX"};
1138
+ var styles$i = {"root":"EmbedBlock-module_root__28k9U","object":"EmbedBlock-module_object__2_UZ7","objectWrap":"EmbedBlock-module_objectWrap__1aDVd","proportional":"EmbedBlock-module_proportional__3lAv4","attachment":"EmbedBlock-module_attachment__2pE0t","default":"EmbedBlock-module_default__LSDny","xs":"EmbedBlock-module_xs__1hFgW","full":"EmbedBlock-module_full__1TEjx","super_full":"EmbedBlock-module_super_full__1Fn9A","figure":"EmbedBlock-module_figure__vAvcN","dark":"EmbedBlock-module_dark__1be2G","isInGroupedBlock":"EmbedBlock-module_isInGroupedBlock__3r_i-","gameEmbed":"EmbedBlock-module_gameEmbed__AZQSo","mobile":"EmbedBlock-module_mobile__1P-eo","desktop":"EmbedBlock-module_desktop__SF5a_","control":"EmbedBlock-module_control__xr8dZ","raw_html":"EmbedBlock-module_raw_html__MQoAA","mobileFullwidth":"EmbedBlock-module_mobileFullwidth__QFFLH","isInCard":"EmbedBlock-module_isInCard__37rtq","isInSlide":"EmbedBlock-module_isInSlide__2ea5q","cc":"EmbedBlock-module_cc__1BQ5g","isInAnswer":"EmbedBlock-module_isInAnswer__tLlgs","picture":"EmbedBlock-module_picture__186q0","wrapper":"EmbedBlock-module_wrapper__33XvX"};
1139
1139
 
1140
1140
  var EmbedGif = function EmbedGif(_ref) {
1141
1141
  var gif = _ref.gif,
@@ -1311,11 +1311,11 @@ var EmbedBlock = function EmbedBlock(_ref) {
1311
1311
  // чтобы не применились лишние модификаторы
1312
1312
  // TODO: в w6 модификаторы должны передаваться явно
1313
1313
 
1314
- if (styleContext) {
1315
- var filteredContext = Object.keys(styleContext).filter(function (key) {
1314
+ if (styleContext && Array.isArray(styleContext)) {
1315
+ var filteredContext = styleContext.filter(function (key) {
1316
1316
  return key.startsWith('isIn') && styles$i[key];
1317
1317
  }).reduce(function (acc, key) {
1318
- acc.push([styles$i[key], true]);
1318
+ acc.push(key);
1319
1319
  return acc;
1320
1320
  }, []);
1321
1321
  classNames = makeStyleContext(classNames, filteredContext, styles$i);
@@ -1831,7 +1831,7 @@ var GroupedBlock = function GroupedBlock(_ref) {
1831
1831
  }
1832
1832
  }, React.createElement(EmbedBlockContainer, {
1833
1833
  block: item,
1834
- styleContext: "isInGroupedBlock"
1834
+ styleContext: ['isInGroupedBlock']
1835
1835
  }));
1836
1836
  })), block.cc && React.createElement("figcaption", {
1837
1837
  className: styles$t.figcaption
@@ -1986,7 +1986,7 @@ var MetaContainer = function MetaContainer(_ref) {
1986
1986
 
1987
1987
  case 'datetime':
1988
1988
  {
1989
- var format = toCamel(component.format) || 'date';
1989
+ var format = component.format && toCamel(component.format) || 'date';
1990
1990
  return React.createElement(MetaItem, {
1991
1991
  hasSource: hasSource,
1992
1992
  bullets: true,