@bigbinary/neeto-site-blocks 1.16.6 → 1.16.8
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 +3 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5519,9 +5519,6 @@ var isLinkHighlighted = function isLinkHighlighted(to, currentPath) {
|
|
|
5519
5519
|
if (!(to && currentPath)) return false;
|
|
5520
5520
|
return currentPath.pathName === to && isEmpty(currentPath.hash) || currentPath.hash === to;
|
|
5521
5521
|
};
|
|
5522
|
-
var parameterize = function parameterize(string) {
|
|
5523
|
-
return string.toLowerCase().replace(/^-+/, "").replace(/--+/g, "-").replace(/&/g, "-and-").replace(/[^a-z0-9]/g, "-");
|
|
5524
|
-
};
|
|
5525
5522
|
|
|
5526
5523
|
function ownKeys$G(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; }
|
|
5527
5524
|
function _objectSpread$G(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$G(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$G(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -7036,7 +7033,7 @@ function Interweave(props) {
|
|
|
7036
7033
|
|
|
7037
7034
|
var StyledInterweave = styled(Interweave)(function (_ref) {
|
|
7038
7035
|
var fontSize = _ref.fontSize;
|
|
7039
|
-
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");
|
|
7036
|
+
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");
|
|
7040
7037
|
});
|
|
7041
7038
|
|
|
7042
7039
|
var _templateObject$1;
|
|
@@ -7239,7 +7236,7 @@ var PageAndScroll = function PageAndScroll(_ref) {
|
|
|
7239
7236
|
_to$split2 = _slicedToArray(_to$split, 2),
|
|
7240
7237
|
path = _to$split2[0],
|
|
7241
7238
|
hash = _to$split2[1];
|
|
7242
|
-
var url = draftMode ? "".concat(baseUrl, "/").concat(
|
|
7239
|
+
var url = draftMode ? "".concat(baseUrl, "/").concat(path, "#").concat(hash) : "".concat(path, "#").concat(hash);
|
|
7243
7240
|
router.push(url);
|
|
7244
7241
|
setTimeout(function () {
|
|
7245
7242
|
var element = document.getElementById(hash);
|
|
@@ -7256,7 +7253,7 @@ var PageAndScroll = function PageAndScroll(_ref) {
|
|
|
7256
7253
|
}));
|
|
7257
7254
|
}
|
|
7258
7255
|
return /*#__PURE__*/jsxs(StyledAnchor, _objectSpread$A(_objectSpread$A({}, dissoc("to", commonProps)), {}, {
|
|
7259
|
-
href: draftMode ? "".concat(baseUrl, "/").concat(
|
|
7256
|
+
href: draftMode ? "".concat(baseUrl, "/").concat(to.split("#")[0], "#").concat(to.split("#")[1]) : "".concat(to.split("#")[0], "#").concat(to.split("#")[1]),
|
|
7260
7257
|
onClick: disableButtonAndLinks ? handleLinkClick : handleClick,
|
|
7261
7258
|
children: [label, Icon && /*#__PURE__*/jsx(Icon, {}), children]
|
|
7262
7259
|
}));
|