@apify/ui-library 0.65.0 → 0.65.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/ui-library",
3
- "version": "0.65.0",
3
+ "version": "0.65.2",
4
4
  "description": "React UI library used by apify.com",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -65,5 +65,5 @@
65
65
  "typescript": "^5.1.6",
66
66
  "typescript-eslint": "^8.24.0"
67
67
  },
68
- "gitHead": "d1a2df0010d382b71da020d68f955709f6432f6d"
68
+ "gitHead": "bab0abe1b9320f67ea4bdc695afbc5a221958227"
69
69
  }
@@ -122,9 +122,13 @@ const CodeBlockWithTabsWrapper = styled(Box)`
122
122
  gap: ${theme.space.space24};
123
123
  padding-inline: ${theme.space.space24};
124
124
 
125
- & > [role="tabpanel"]::after {
126
- right: -${theme.space.space24};
127
- width: ${theme.space.space32};
125
+ & > [role="tabpanel"] {
126
+ margin-left: unset;
127
+
128
+ &::after {
129
+ right: -${theme.space.space24};
130
+ width: ${theme.space.space32};
131
+ }
128
132
  }
129
133
  }
130
134
  }
@@ -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>) => <img {...imageProps} {...(lazyLoadImages ? { loading: 'lazy' } : {})} />,
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}