@bigbinary/neeto-site-blocks 1.16.5 → 1.16.7
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 +6 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -7055,7 +7055,7 @@ function Interweave(props) {
|
|
|
7055
7055
|
|
|
7056
7056
|
var StyledInterweave = styled__default["default"](Interweave)(function (_ref) {
|
|
7057
7057
|
var fontSize = _ref.fontSize;
|
|
7058
|
-
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");
|
|
7058
|
+
return "\n h1 {\n font-size: ".concat(fontSize ? "calc(".concat(FIXED_H1_SIZE, " + ").concat(fontSize, ") !important") : FIXED_H1_SIZE, ";\n font-weight: inherit;\n }\n\n h2 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H2_SIZE, " + ").concat(fontSize, ") !important") : FIXED_H2_SIZE, ";\n font-weight: inherit;\n }\n\n h3 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H3_SIZE, " + ").concat(fontSize, ") !important") : FIXED_H3_SIZE, ";\n font-weight: inherit;\n }\n\n h4 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H4_SIZE, " + ").concat(fontSize, ") !important") : FIXED_H4_SIZE, ";\n font-weight: inherit;\n }\n\n h5 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H5_SIZE, " + ").concat(fontSize, ") !important") : FIXED_H5_SIZE, ";\n font-weight: inherit;\n }\n");
|
|
7059
7059
|
});
|
|
7060
7060
|
|
|
7061
7061
|
var _templateObject$1;
|
|
@@ -7714,6 +7714,10 @@ var Typography = function Typography(_ref) {
|
|
|
7714
7714
|
if (isEditorEmpty(children)) {
|
|
7715
7715
|
return null;
|
|
7716
7716
|
}
|
|
7717
|
+
var handleClick = function handleClick(event) {
|
|
7718
|
+
if (isAddNewPane) return;
|
|
7719
|
+
handleTitleClick(event);
|
|
7720
|
+
};
|
|
7717
7721
|
return /*#__PURE__*/jsxRuntime.jsx(StyledWrapper, _objectSpread$v(_objectSpread$v({
|
|
7718
7722
|
id: id,
|
|
7719
7723
|
as: isTitle ? component : COMPONENTS.div,
|
|
@@ -7721,7 +7725,7 @@ var Typography = function Typography(_ref) {
|
|
|
7721
7725
|
className: classnames__default["default"]("neeto-site-typography text-wrap", className, {
|
|
7722
7726
|
"neeto-site-highlight__element": disableButtonAndLinks && !isAddNewPane
|
|
7723
7727
|
}),
|
|
7724
|
-
onClick:
|
|
7728
|
+
onClick: handleClick
|
|
7725
7729
|
}, otherProps), {}, {
|
|
7726
7730
|
children: isTitle ? children : /*#__PURE__*/jsxRuntime.jsx(StyledInterweave, {
|
|
7727
7731
|
className: "neeto-editor-content",
|