@apify/ui-library 0.65.1 → 0.65.3-featunifyUserStats-5c4819.39
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 +11 -0
- package/dist/src/components/to_consolidate/markdown.d.ts.map +1 -1
- package/dist/src/components/to_consolidate/markdown.js +2 -1
- package/dist/src/components/to_consolidate/markdown.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/to_consolidate/markdown.tsx +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/ui-library",
|
|
3
|
-
"version": "0.65.
|
|
3
|
+
"version": "0.65.3-featunifyUserStats-5c4819.39+743b6ced4bd",
|
|
4
4
|
"description": "React UI library used by apify.com",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"It's not nice, but helps us to get around the problem of multiple react instances."
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@apify/ui-icons": "^0.9.
|
|
29
|
+
"@apify/ui-icons": "^0.9.1-featunifyUserStats-5c4819.334+743b6ced4bd",
|
|
30
30
|
"@floating-ui/react": "^0.26.2",
|
|
31
31
|
"clsx": "^2.0.0",
|
|
32
32
|
"dayjs": "1.11.9",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"typescript": "^5.1.6",
|
|
66
66
|
"typescript-eslint": "^8.24.0"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "743b6ced4bdc1f316f61c3e0c92cf05ab512b1ff"
|
|
69
69
|
}
|
|
@@ -4,7 +4,7 @@ import qs from 'query-string';
|
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
5
|
import type { Components } from 'react-markdown';
|
|
6
6
|
import ReactMarkdown, { uriTransformer } from 'react-markdown';
|
|
7
|
-
import type { AllowElement } from 'react-markdown/lib/rehype-filter';
|
|
7
|
+
import type { AllowElement, Node } from 'react-markdown/lib/rehype-filter';
|
|
8
8
|
import rehypeRaw from 'rehype-raw';
|
|
9
9
|
import remarkGfm from 'remark-gfm';
|
|
10
10
|
import styled from 'styled-components';
|
|
@@ -587,7 +587,9 @@ const Markdown = ({
|
|
|
587
587
|
),
|
|
588
588
|
code: (codeProps: CodeRendererComponentProps) => CodeRenderer(codeProps),
|
|
589
589
|
p: ParagraphRenderer,
|
|
590
|
-
img: (imageProps: React.ImgHTMLAttributes<HTMLImageElement>
|
|
590
|
+
img: ({ node, ...imageProps }: React.ImgHTMLAttributes<HTMLImageElement> & { node?: Node }) => (
|
|
591
|
+
<img {...imageProps} {...(lazyLoadImages ? { loading: 'lazy' } : {})} /> // node is injected by rehype-raw plugin and causing invalid prop
|
|
592
|
+
),
|
|
591
593
|
} as unknown as Components}
|
|
592
594
|
transformLinkUri={(href) => (transformLinkUri ? uriTransformer(transformLinkUri(href)) : uriTransformer(href))}
|
|
593
595
|
transformImageUri={transformImageUri}
|