@bigbinary/neeto-site-blocks 1.16.7 → 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 +2 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5538,9 +5538,6 @@ var isLinkHighlighted = function isLinkHighlighted(to, currentPath) {
|
|
|
5538
5538
|
if (!(to && currentPath)) return false;
|
|
5539
5539
|
return currentPath.pathName === to && ramda.isEmpty(currentPath.hash) || currentPath.hash === to;
|
|
5540
5540
|
};
|
|
5541
|
-
var parameterize = function parameterize(string) {
|
|
5542
|
-
return string.toLowerCase().replace(/^-+/, "").replace(/--+/g, "-").replace(/&/g, "-and-").replace(/[^a-z0-9]/g, "-");
|
|
5543
|
-
};
|
|
5544
5541
|
|
|
5545
5542
|
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; }
|
|
5546
5543
|
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__default["default"](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; }
|
|
@@ -7258,7 +7255,7 @@ var PageAndScroll = function PageAndScroll(_ref) {
|
|
|
7258
7255
|
_to$split2 = _slicedToArray__default["default"](_to$split, 2),
|
|
7259
7256
|
path = _to$split2[0],
|
|
7260
7257
|
hash = _to$split2[1];
|
|
7261
|
-
var url = draftMode ? "".concat(baseUrl, "/").concat(
|
|
7258
|
+
var url = draftMode ? "".concat(baseUrl, "/").concat(path, "#").concat(hash) : "".concat(path, "#").concat(hash);
|
|
7262
7259
|
router.push(url);
|
|
7263
7260
|
setTimeout(function () {
|
|
7264
7261
|
var element = document.getElementById(hash);
|
|
@@ -7275,7 +7272,7 @@ var PageAndScroll = function PageAndScroll(_ref) {
|
|
|
7275
7272
|
}));
|
|
7276
7273
|
}
|
|
7277
7274
|
return /*#__PURE__*/jsxRuntime.jsxs(StyledAnchor, _objectSpread$A(_objectSpread$A({}, ramda.dissoc("to", commonProps)), {}, {
|
|
7278
|
-
href: draftMode ? "".concat(baseUrl, "/").concat(
|
|
7275
|
+
href: draftMode ? "".concat(baseUrl, "/").concat(to.split("#")[0], "#").concat(to.split("#")[1]) : "".concat(to.split("#")[0], "#").concat(to.split("#")[1]),
|
|
7279
7276
|
onClick: disableButtonAndLinks ? handleLinkClick : handleClick,
|
|
7280
7277
|
children: [label, Icon && /*#__PURE__*/jsxRuntime.jsx(Icon, {}), children]
|
|
7281
7278
|
}));
|