@websolutespa/bom-mixer-ui 1.5.7 → 1.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @websolutespa/bom-mixer-ui
2
2
 
3
+ ## 1.5.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: Link prefetch opt-in
8
+
3
9
  ## 1.5.7
4
10
 
5
11
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -1525,15 +1525,22 @@ const Link = /*#__PURE__*/React__default.default.forwardRef((_a, forwardedRef) =
1525
1525
  children,
1526
1526
  href = '',
1527
1527
  passHref,
1528
- legacyBehavior
1528
+ legacyBehavior,
1529
+ prefetch
1529
1530
  } = _a,
1530
- props = __rest(_a, ["children", "href", "passHref", "legacyBehavior"]);
1531
+ props = __rest(_a, ["children", "href", "passHref", "legacyBehavior", "prefetch"]);
1531
1532
  passHref = passHref === false ? false : true;
1532
1533
  legacyBehavior = legacyBehavior === false ? false : true;
1534
+ /**
1535
+ * original prefetch is setted by default to true and activates with viewport visibility
1536
+ * we are setting it by default to false, however prefetching will still occur on hover
1537
+ */
1538
+ prefetch = prefetch === true ? true : false;
1533
1539
  return jsxRuntime.jsx(NextLink__default.default, Object.assign({
1534
1540
  ref: forwardedRef,
1535
1541
  href: href,
1536
1542
  passHref: passHref,
1543
+ prefetch: prefetch,
1537
1544
  legacyBehavior: legacyBehavior
1538
1545
  }, props, {
1539
1546
  children: children