@apify/ui-library 1.126.0 → 1.127.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": "1.126.0",
3
+ "version": "1.127.0",
4
4
  "description": "React UI library used by apify.com",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -66,5 +66,5 @@
66
66
  "src",
67
67
  "style"
68
68
  ],
69
- "gitHead": "6056f23411a4d14148c6774e75b1fc0438eb5186"
69
+ "gitHead": "2bc1f1354f622ab7bc5c5357c9a7f2940047e599"
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
- export const useActorTitleHeadingFilter = (actorTitle: string): AllowElement => {
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'