@apify/ui-library 0.59.1 → 0.60.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/ui-library",
3
- "version": "0.59.1",
3
+ "version": "0.60.0",
4
4
  "description": "React UI library used by apify.com",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -67,5 +67,5 @@
67
67
  "recast": "^0.23.9",
68
68
  "typescript": "^5.1.6"
69
69
  },
70
- "gitHead": "16fdc799cf1670638596509d7af5e0a5421a598c"
70
+ "gitHead": "8dfef8e1e178ae5645d9941ef60df67fe49ff999"
71
71
  }
@@ -21,7 +21,7 @@ const Wrapper = styled.span`
21
21
  }
22
22
  `;
23
23
 
24
- type InlineCodeProps = RegularBoxProps & {
24
+ export type InlineCodeProps = RegularBoxProps & {
25
25
  children: React.ReactNode,
26
26
  size?: SharedTextSize,
27
27
  }
@@ -93,7 +93,7 @@ export const Link = forwardRef<HTMLElement, LinkProps>(({
93
93
  rel,
94
94
  isExternal && 'external',
95
95
  (isExternal || target === '_blank') && 'noopener',
96
- (isExternal && !isTrusted) && 'nofollow noreferrer',
96
+ (isExternal && !isTrusted) && 'nofollow',
97
97
  );
98
98
 
99
99
  return (
@@ -430,12 +430,12 @@ const DefaultLinkRenderer = ({ node, href, ...props }: LinkRendererProps, { host
430
430
  if (isApifyLink) {
431
431
  linkProps = { target: '_blank', rel: 'noopener' };
432
432
  } else {
433
- // If an external non-Apify link, we want to always open it in a new tab and add rel="noopener noreferrer nofollow"
433
+ // If an external non-Apify link, we want to always open it in a new tab and add rel="noopener nofollow"
434
434
  // USG - User Generated Content (new rel attribute for nofollow links)
435
435
  // Google says:
436
436
  // It’s valid to use nofollow with the new attributes — such as rel=”nofollow ugc”
437
437
  // — if you wish to be backwards-compatible with services that don’t support the new attributes.
438
- linkProps = { target: '_blank', rel: clsx('noopener noreferrer', 'nofollow', isUserGeneratedContent && 'ugc') };
438
+ linkProps = { target: '_blank', rel: clsx('noopener nofollow', isUserGeneratedContent && 'ugc') };
439
439
  }
440
440
  }
441
441