@apify/ui-library 1.122.0 → 1.123.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.122.0",
3
+ "version": "1.123.0",
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
  "src",
66
66
  "style"
67
67
  ],
68
- "gitHead": "956543910a436e56ec71a6b01b2438e57be13abe"
68
+ "gitHead": "3c83585389c9e8c4e8449ae090dad74640cfaf23"
69
69
  }
@@ -15,8 +15,9 @@ import type { LinkProps } from '../link.js';
15
15
  import { Link } from '../link.js';
16
16
  import { slugifyHeadingChildren } from '../readme_renderer/utils.js';
17
17
  import type { HeadingSharedProps } from '../text/heading_shared.js';
18
- import { Heading, Text } from '../text/index.js';
19
- import type { SharedTextProps, SharedTextSize } from '../text/text_shared.js';
18
+ import { Heading, TextContent } from '../text/index.js';
19
+ import type { ContentTextProps } from '../text/text_content.js';
20
+ import type { SharedTextSize } from '../text/text_shared.js';
20
21
 
21
22
  const simpleMarkdownClassNames = {
22
23
  HEADING_ICON_LINK: 'headingIconLink',
@@ -305,16 +306,16 @@ const getMarkdownVideoSrc = (child?: ElementContent): string | undefined => {
305
306
  };
306
307
 
307
308
  // TODO: This should be used for readmes
308
- export const MarkdownParagraphContent: React.FC<SharedTextProps & MarkdownComponentExtraProps> = async ({
309
+ export function MarkdownParagraphContent({
309
310
  children,
310
311
  node,
311
312
  ...textProps
312
- }) => {
313
+ }: ContentTextProps & MarkdownComponentExtraProps): React.ReactNode {
313
314
  const child = node?.children[0];
314
315
  const videoSrc = getMarkdownVideoSrc(child);
315
316
 
316
317
  if (videoSrc) return <MarkdownVideo src={videoSrc} />;
317
318
 
318
319
  // Render the children as a paragraph
319
- return <Text as='p' my='space16' {...textProps}>{children}</Text>;
320
- };
320
+ return <TextContent my='space16' {...textProps}>{children}</TextContent>;
321
+ }