eddev 0.3.17 → 0.3.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -331,7 +331,10 @@ function RouterRoot(props) {
331
331
  exports.RouterRoot = RouterRoot;
332
332
  var isInternalPageLink = function (href) {
333
333
  var url = (0, url_parse_1.default)(href, true);
334
- if (url && url.origin === document.location.origin && !url.pathname.match(/\./)) {
334
+ if (url &&
335
+ url.origin === document.location.origin &&
336
+ !url.pathname.match(/\./) &&
337
+ !(url.pathname == document.location.pathname && url.hash)) {
335
338
  return true;
336
339
  }
337
340
  else {
@@ -376,7 +379,7 @@ exports.Link = (0, react_1.forwardRef)(function (props, ref) {
376
379
  return false;
377
380
  return (0, exports.urlDescendentsMatch)(router === null || router === void 0 ? void 0 : router.item.pathname, props.href);
378
381
  }, [router === null || router === void 0 ? void 0 : router.item.pathname, props.href]);
379
- return ((0, jsx_runtime_1.jsx)("a", __assign({ ref: (0, react_merge_refs_1.mergeRefs)([localRef, ref]) }, props, { "data-active": isActive ? true : undefined, "data-child-active": isDescendentActive ? true : undefined, onMouseEnter: function (e) {
382
+ return ((0, jsx_runtime_1.jsx)("a", __assign({ ref: (0, react_merge_refs_1.mergeRefs)([localRef, ref]) }, props, { target: typeof props.target === "string" ? props.target : undefined, "data-active": isActive ? true : undefined, "data-child-active": isDescendentActive ? true : undefined, onMouseEnter: function (e) {
380
383
  if (props.onMouseEnter) {
381
384
  props.onMouseEnter(e);
382
385
  }