@jsenv/navi 0.11.16 → 0.11.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.
@@ -11766,6 +11766,7 @@ const LinkPlain = forwardRef((props, ref) => {
11766
11766
  blankTargetIcon,
11767
11767
  anchorIcon,
11768
11768
  icon,
11769
+ pointerDefaultWhenCurrent,
11769
11770
  ...rest
11770
11771
  } = props;
11771
11772
  const innerRef = useRef();
@@ -11775,16 +11776,21 @@ const LinkPlain = forwardRef((props, ref) => {
11775
11776
  useConstraints(innerRef, constraints);
11776
11777
  const shouldDimColor = readOnly || disabled;
11777
11778
  useDimColorWhen(innerRef, shouldDimColor);
11778
- const innerClassName = withPropsClassName("navi_link", className);
11779
- const [remainingProps, innerStyle] = withPropsStyle(rest, {
11780
- layout: true,
11781
- typo: true
11782
- });
11779
+ // subscribe to document url to re-render and re-compute getLinkTargetInfo
11780
+ useDocumentUrl();
11783
11781
  const {
11784
11782
  targetIsSameSite,
11785
11783
  targetIsAnchor,
11786
11784
  targetIsCurrent
11787
11785
  } = getLinkTargetInfo(href);
11786
+ const innerClassName = withPropsClassName("navi_link", className);
11787
+ const [remainingProps, innerStyle] = withPropsStyle(rest, {
11788
+ base: {
11789
+ pointer: pointerDefaultWhenCurrent && targetIsCurrent ? "default" : undefined
11790
+ },
11791
+ layout: true,
11792
+ typo: true
11793
+ });
11788
11794
  const innerTarget = target === undefined ? targetIsSameSite ? "_self" : "_blank" : target;
11789
11795
  const innerRel = rel === undefined ? targetIsSameSite ? undefined : "noopener noreferrer" : rel;
11790
11796
  let innerIcon;
@@ -19488,7 +19494,7 @@ const Spacing = ({
19488
19494
  }) => {
19489
19495
  const [remainingProps, innerStyle] = withPropsStyle(rest, {
19490
19496
  spacing: true,
19491
- visual: true
19497
+ size: true
19492
19498
  });
19493
19499
  return jsx("div", {
19494
19500
  ...remainingProps,