@bigbinary/neeto-site-blocks 1.8.11 → 1.8.13

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.
package/dist/index.cjs.js CHANGED
@@ -4992,10 +4992,6 @@ var isLinkHighlighted = function isLinkHighlighted(to, currentPath) {
4992
4992
  if (!(to && currentPath)) return false;
4993
4993
  return currentPath.pathName === to && isEmpty(currentPath.hash) || currentPath.hash === to;
4994
4994
  };
4995
- var isEditorContent = function isEditorContent(content) {
4996
- var checkForHTMLTags = /<(p|h[1-5])>.*?<\/\1>/;
4997
- return checkForHTMLTags.test(content);
4998
- };
4999
4995
 
5000
4996
  function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5001
4997
  function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -14786,7 +14782,7 @@ var StyledImageWithWrapper = function StyledImageWithWrapper(_ref2) {
14786
14782
  }),
14787
14783
  handleImageClick = _useElementClick.handleImageClick;
14788
14784
  return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
14789
- className: classnames(_defineProperty__default["default"]({
14785
+ className: classnames("flex justify-center", _defineProperty__default["default"]({
14790
14786
  "neeto-site-highlight__element": disableButtonAndLinks
14791
14787
  }, wrapperClassName, wrapperClassName)),
14792
14788
  onClick: disableButtonAndLinks && handleImageClick
@@ -15909,7 +15905,7 @@ function Interweave(props) {
15909
15905
 
15910
15906
  var StyledInterweave = styled__default["default"](Interweave)(function (_ref) {
15911
15907
  var fontSize = _ref.fontSize;
15912
- return "\n font-size: ".concat(fontSize || "inherit", ";\n font-weight: inherit;\n\n h1 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H1_SIZE, " + ").concat(fontSize, ")") : FIXED_H1_SIZE, ";\n font-weight: inherit;\n }\n\n h2 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H2_SIZE, " + ").concat(fontSize, ")") : FIXED_H2_SIZE, ";\n font-weight: inherit;\n }\n\n h3 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H3_SIZE, " + ").concat(fontSize, ")") : FIXED_H3_SIZE, ";\n font-weight: inherit;\n }\n\n h4 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H4_SIZE, " + ").concat(fontSize, ")") : FIXED_H4_SIZE, ";\n font-weight: inherit;\n }\n\n h5 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H5_SIZE, " + ").concat(fontSize, ")") : FIXED_H5_SIZE, ";\n font-weight: inherit;\n }\n\n p {\n font-size: inherit;\n font-weight: inherit;\n }\n");
15908
+ return "\n h1 {\n font-size: ".concat(fontSize ? "calc(".concat(FIXED_H1_SIZE, " + ").concat(fontSize, ")") : FIXED_H1_SIZE, ";\n font-weight: inherit;\n }\n\n h2 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H2_SIZE, " + ").concat(fontSize, ")") : FIXED_H2_SIZE, ";\n font-weight: inherit;\n }\n\n h3 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H3_SIZE, " + ").concat(fontSize, ")") : FIXED_H3_SIZE, ";\n font-weight: inherit;\n }\n\n h4 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H4_SIZE, " + ").concat(fontSize, ")") : FIXED_H4_SIZE, ";\n font-weight: inherit;\n }\n\n h5 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H5_SIZE, " + ").concat(fontSize, ")") : FIXED_H5_SIZE, ";\n font-weight: inherit;\n }\n");
15913
15909
  });
15914
15910
 
15915
15911
  var _templateObject;
@@ -16408,7 +16404,7 @@ var Typography = function Typography(_ref) {
16408
16404
  className: "neeto-editor-content",
16409
16405
  content: children,
16410
16406
  fontSize: style.fontSize,
16411
- tagName: isEditorContent(children) ? "div" : "p"
16407
+ tagName: "p"
16412
16408
  }));
16413
16409
  };
16414
16410
  Typography.displayName = "Typography";
@@ -43225,12 +43221,13 @@ var LogoClouds = function LogoClouds(_ref) {
43225
43221
  src = properties.backgroundImage.src;
43226
43222
  var baseClasses = "grid grid-cols-12 items-center sm:gap-x-4 gap-y-10";
43227
43223
  var logoBaseClasses = function logoBaseClasses(index) {
43228
- return classnames("col-span-6 flex justify-center", {
43224
+ return classnames("col-span-6 flex justify-center w-full", {
43229
43225
  "lg:col-span-2": logoCount === 6,
43230
43226
  "sm:col-span-3": logoCount === 4,
43231
43227
  "ns-logo-clouds": !showColoredLogo,
43232
43228
  "sm:col-start-4": logos.length % 4 === 2 && index === logos.length - 2,
43233
43229
  "sm:col-start-3": logos.length % 4 === 3 && index === logos.length - 3,
43230
+ "sm:col-start-5 sm:!col-span-4 !col-start-4": logos.length % 4 === 1 && index === logos.length - 1,
43234
43231
  "col-start-3": logos.length % 2 === 1 && index === logos.length - 1
43235
43232
  });
43236
43233
  };