listpage-next 0.0.267 → 0.0.269

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.
@@ -1,8 +1,6 @@
1
1
  import { XMarkdownProps } from '@ant-design/x-markdown';
2
2
  import '@ant-design/x-markdown/themes/light.css';
3
- export interface MarkdownProps {
4
- content: string;
3
+ export interface MarkdownProps extends XMarkdownProps {
5
4
  hasNextChunk?: boolean;
6
- components?: XMarkdownProps['components'];
7
5
  }
8
- export declare const Markdown: (props: MarkdownProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const Markdown: ({ hasNextChunk, ...props }: MarkdownProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,15 +2,16 @@ import { jsx } from "react/jsx-runtime";
2
2
  import styled_components from "styled-components";
3
3
  import x_markdown from "@ant-design/x-markdown";
4
4
  import "@ant-design/x-markdown/themes/light.css";
5
- const Markdown = (props)=>/*#__PURE__*/ jsx(MarkdownBody, {
5
+ const Markdown = ({ hasNextChunk, ...props })=>/*#__PURE__*/ jsx(MarkdownBody, {
6
+ ...props,
6
7
  streaming: {
7
8
  enableAnimation: true,
8
- hasNextChunk: props.hasNextChunk,
9
+ hasNextChunk,
9
10
  animationConfig: {
10
11
  fadeDuration: 400
11
- }
12
+ },
13
+ ...props.streaming
12
14
  },
13
- content: props.content,
14
15
  openLinksInNewTab: true
15
16
  });
16
17
  const MarkdownBody = styled_components(x_markdown)`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.267",
3
+ "version": "0.0.269",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",