round-core 0.0.9 → 0.1.0

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1450,6 +1450,9 @@ function Link(props = {}) {
1450
1450
  const onClick = (e) => {
1451
1451
  if (typeof props.onClick === "function") props.onClick(e);
1452
1452
  if (e.defaultPrevented) return;
1453
+ if (props.target === "_blank") return;
1454
+ const strHref = String(href);
1455
+ if (strHref.includes("://") || strHref.startsWith("mailto:") || strHref.startsWith("tel:")) return;
1453
1456
  if (!spa || reload) return;
1454
1457
  if (e.button !== 0) return;
1455
1458
  if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "round-core",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "description": "A lightweight frontend framework for SPA with signals and fine grained reactivity",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",