@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 +6 -0
- package/dist/cjs/index.js +9 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/link/link.js +9 -2
- package/dist/esm/components/link/link.js.map +1 -1
- package/dist/types/components/link/link.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/link/link.tsx +7 -2
package/CHANGELOG.md
CHANGED
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
|