@meduza/ui-kit-2 0.6.8 → 0.6.9

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.
@@ -1458,9 +1458,10 @@ const SimpleBlock = ({
1458
1458
  only_on: onlyOn
1459
1459
  },
1460
1460
  styleContext,
1461
- id
1461
+ id = null
1462
1462
  }) => {
1463
1463
  let TagName;
1464
+ let tagProps = {};
1464
1465
  let classNames = [[styles$i[type], !!type && !!styles$i[type]], [styles$i[onlyOn], true]];
1465
1466
  if (styleContext) {
1466
1467
  classNames = makeStyleContext(classNames, styleContext, styles$i);
@@ -1486,12 +1487,15 @@ const SimpleBlock = ({
1486
1487
  default:
1487
1488
  TagName = type;
1488
1489
  }
1490
+ if (id) {
1491
+ tagProps.id = id;
1492
+ }
1489
1493
  return /*#__PURE__*/React.createElement(TagName, {
1490
1494
  className: makeClassName(classNames),
1491
1495
  dangerouslySetInnerHTML: {
1492
1496
  __html: data
1493
1497
  },
1494
- id: id
1498
+ ...tagProps
1495
1499
  });
1496
1500
  };
1497
1501
 
@@ -2057,16 +2061,22 @@ const RenderBlocks = ({
2057
2061
  bookmarkAction: bookmarkAction
2058
2062
  });
2059
2063
  }
2060
- case 'h1':
2061
- case 'h2':
2062
- case 'h3':
2063
- case 'h4':
2064
2064
  case 'blockquote':
2065
2065
  case 'p':
2066
2066
  case 'context_p':
2067
2067
  case 'divider':
2068
2068
  case 'lead':
2069
2069
  case 'lead_hr':
2070
+ {
2071
+ return /*#__PURE__*/React.createElement(SimpleBlock, {
2072
+ block: block,
2073
+ styleContext: styleContext
2074
+ });
2075
+ }
2076
+ case 'h1':
2077
+ case 'h2':
2078
+ case 'h3':
2079
+ case 'h4':
2070
2080
  {
2071
2081
  return /*#__PURE__*/React.createElement(SimpleBlock, {
2072
2082
  block: block,