@apify/ui-library 1.126.0 → 1.127.1
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/readme_renderer/utils.d.ts +1 -1
- package/dist/src/components/readme_renderer/utils.d.ts.map +1 -1
- package/dist/src/components/readme_renderer/utils.js +3 -0
- package/dist/src/components/readme_renderer/utils.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/readme_renderer/utils.tsx +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/ui-library",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.127.1",
|
|
4
4
|
"description": "React UI library used by apify.com",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"It's not nice, but helps us to get around the problem of multiple react instances."
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@apify/ui-icons": "^1.29.
|
|
30
|
+
"@apify/ui-icons": "^1.29.1",
|
|
31
31
|
"@floating-ui/react": "^0.26.2",
|
|
32
32
|
"@react-hook/resize-observer": "^2.0.2",
|
|
33
33
|
"clsx": "^2.0.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"src",
|
|
67
67
|
"style"
|
|
68
68
|
],
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "9c09f76c3cc7bf7a3afd17fffc065f2f0dec8ee8"
|
|
70
70
|
}
|
|
@@ -36,8 +36,10 @@ export const cleanMarkdown = (markdown: string, removeFirstH1?: boolean): string
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
// This removes the first element if it's a `h1` containing exactly the Actor title
|
|
39
|
-
|
|
39
|
+
// Allows undefined `actorTitle` for ease of use.
|
|
40
|
+
export const useActorTitleHeadingFilter = (actorTitle: string | undefined): AllowElement => {
|
|
40
41
|
return useCallback((element, index, parent) => {
|
|
42
|
+
if (!actorTitle) return true;
|
|
41
43
|
if (parent?.type === 'root'
|
|
42
44
|
&& index === 0
|
|
43
45
|
&& element.tagName === 'h1'
|