@apify/ui-library 1.112.1 → 1.112.2
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/dist/src/components/to_consolidate/markdown.d.ts +1 -1
- package/dist/src/components/to_consolidate/markdown.d.ts.map +1 -1
- package/dist/src/components/to_consolidate/markdown.js +2 -2
- package/dist/src/components/to_consolidate/markdown.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/components/to_consolidate/markdown.tsx +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/ui-library",
|
|
3
|
-
"version": "1.112.
|
|
3
|
+
"version": "1.112.2",
|
|
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": "
|
|
67
|
+
"gitHead": "a4903294c7b493e2cd08855d75d22bbc11dfe2ad"
|
|
68
68
|
}
|
|
@@ -420,7 +420,7 @@ interface LinkRendererProps extends React.AnchorHTMLAttributes<HTMLAnchorElement
|
|
|
420
420
|
enableEmbeddedVideo: boolean;
|
|
421
421
|
};
|
|
422
422
|
};
|
|
423
|
-
href
|
|
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
|