@apify/ui-library 1.112.1 → 1.112.3-featjsonschemaviewerv2-1b0d8e.25

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": "1.112.1",
3
+ "version": "1.112.3-featjsonschemaviewerv2-1b0d8e.25+e60855453c8",
4
4
  "description": "React UI library used by apify.com",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -64,5 +64,5 @@
64
64
  "src",
65
65
  "style"
66
66
  ],
67
- "gitHead": "16eb656e60499c791d173e17cab55eb8cc0d2dda"
67
+ "gitHead": "e60855453c8b79730f70d3dffe1e1d4d912545a2"
68
68
  }
@@ -33,7 +33,7 @@ const Wrapper = styled(Box)<{$headerPlacement: ValueOf<typeof HEADER_PLACEMENT>}
33
33
  padding: ${theme.space.space16};
34
34
  flex-grow: 1;
35
35
  }
36
-
36
+
37
37
  .${classNames.HEADER} {
38
38
  padding: ${theme.space.space4} ${theme.space.space8};
39
39
  display: flex;
@@ -420,7 +420,7 @@ interface LinkRendererProps extends React.AnchorHTMLAttributes<HTMLAnchorElement
420
420
  enableEmbeddedVideo: boolean;
421
421
  };
422
422
  };
423
- href: string;
423
+ href?: string;
424
424
  }
425
425
 
426
426
  interface LinkRendererOptions {
@@ -430,8 +430,8 @@ interface LinkRendererOptions {
430
430
  // We want no-follow for external links
431
431
  // Also if link is a video from youtube or vimeo, we want to render it as iframe
432
432
  // Allowing to pass hostname to check if the link is an Apify link to the same hostname (is needed for SSR on the web)
433
- const DefaultLinkRenderer = ({ node, href, ...props }: LinkRendererProps, { hostname }: LinkRendererOptions, isUserGeneratedContent?: boolean) => {
434
- const videoSrc = node.properties.enableEmbeddedVideo && getVideoSrc(href);
433
+ const DefaultLinkRenderer = ({ node, href = '', ...props }: LinkRendererProps, { hostname }: LinkRendererOptions, isUserGeneratedContent?: boolean) => {
434
+ const videoSrc = node.properties.enableEmbeddedVideo && !!href ? getVideoSrc(href) : undefined;
435
435
  if (videoSrc) return <Video src={videoSrc} />;
436
436
 
437
437
  // check for anchor links, hash link are not parsable by URL constructor