listpage-next 0.0.85 → 0.0.86

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.
@@ -3,35 +3,40 @@ import { useRequest } from "ahooks";
3
3
  import { Footer } from "./Footer.js";
4
4
  import { Header } from "./Header.js";
5
5
  import { Content } from "./Content.js";
6
- import { Container } from "./styles.js";
7
6
  import { MessageProvider, useChatClientContext } from "../../context/index.js";
8
7
  import { PageLoading } from "../../../../components/Page/components/Loading/index.js";
9
- const ClientContent = (props)=>{
8
+ import { Container } from "./styles.js";
9
+ const ClientContentComponent = (props)=>{
10
10
  const { style, className, children, headerProps, footerProps } = props;
11
+ return /*#__PURE__*/ jsxs(Container, {
12
+ style: style,
13
+ className: className,
14
+ children: [
15
+ /*#__PURE__*/ jsx(Header, {
16
+ ...headerProps
17
+ }),
18
+ /*#__PURE__*/ jsx(Content, {
19
+ children: children
20
+ }),
21
+ /*#__PURE__*/ jsx(Footer, {
22
+ ...footerProps
23
+ })
24
+ ]
25
+ });
26
+ };
27
+ const ClientContent = (props)=>{
11
28
  const { request } = useChatClientContext();
12
29
  const { loading, data } = useRequest(request.getMessages);
13
30
  if (loading) return /*#__PURE__*/ jsx(Container, {
14
- style: style,
15
- className: className,
31
+ style: props.style,
32
+ className: props.className,
16
33
  children: /*#__PURE__*/ jsx(PageLoading, {})
17
34
  });
18
35
  return /*#__PURE__*/ jsx(MessageProvider, {
19
36
  request: request.chat,
20
37
  initialMessages: data || [],
21
- children: /*#__PURE__*/ jsxs(Container, {
22
- style: style,
23
- className: className,
24
- children: [
25
- /*#__PURE__*/ jsx(Header, {
26
- ...headerProps
27
- }),
28
- /*#__PURE__*/ jsx(Content, {
29
- children: children
30
- }),
31
- /*#__PURE__*/ jsx(Footer, {
32
- ...footerProps
33
- })
34
- ]
38
+ children: /*#__PURE__*/ jsx(ClientContentComponent, {
39
+ ...props
35
40
  })
36
41
  });
37
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.85",
3
+ "version": "0.0.86",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",