listpage-next 0.0.75 → 0.0.76
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/dist/features/ChatClient/components/ClientContent/Content.d.ts +1 -2
- package/dist/features/ChatClient/components/ClientContent/Content.js +4 -1
- package/dist/features/ChatClient/components/ClientContent/Header.d.ts +0 -1
- package/dist/features/ChatClient/components/ClientContent/Header.js +3 -4
- package/dist/features/ChatClient/components/ClientContent/index.d.ts +2 -2
- package/dist/features/ChatClient/components/Layout/Sider.js +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
|
-
interface ContentProps {
|
|
2
|
+
export interface ContentProps {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
styles?: {
|
|
5
5
|
topPlaceholder?: CSSProperties;
|
|
@@ -9,4 +9,3 @@ interface ContentProps {
|
|
|
9
9
|
}
|
|
10
10
|
export declare const Content: (props: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare const ContentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
-
export {};
|
|
@@ -4,7 +4,6 @@ export interface HeaderProps extends HeaderLeftProps {
|
|
|
4
4
|
export declare const Header: (props: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
interface HeaderLeftProps {
|
|
6
6
|
onClickNewConversation?: () => void;
|
|
7
|
-
disabledNewConversation?: boolean;
|
|
8
7
|
defaultTitle: string;
|
|
9
8
|
onTitleChange?: (title: string) => any;
|
|
10
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
2
3
|
import { EditOutlined, MenuUnfoldOutlined } from "@ant-design/icons";
|
|
3
4
|
import { Button, Divider, Input, Modal } from "antd";
|
|
4
|
-
import { useEffect, useState } from "react";
|
|
5
5
|
import { styled } from "styled-components";
|
|
6
6
|
import { useChatClientContext } from "../../context/index.js";
|
|
7
7
|
const Header = (props)=>{
|
|
@@ -18,7 +18,7 @@ const Header = (props)=>{
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
const HeaderLeft = (props)=>{
|
|
21
|
-
const { onClickNewConversation,
|
|
21
|
+
const { onClickNewConversation, onTitleChange } = props;
|
|
22
22
|
const { collapsed, setCollapsed } = useChatClientContext();
|
|
23
23
|
const [open, setOpen] = useState(false);
|
|
24
24
|
const [title, setTitle] = useState(props.defaultTitle);
|
|
@@ -26,7 +26,7 @@ const HeaderLeft = (props)=>{
|
|
|
26
26
|
setCollapsed(!collapsed);
|
|
27
27
|
};
|
|
28
28
|
const showActions = !!collapsed;
|
|
29
|
-
const showTitle =
|
|
29
|
+
const showTitle = !!title;
|
|
30
30
|
return /*#__PURE__*/ jsxs(Left, {
|
|
31
31
|
children: [
|
|
32
32
|
showActions && /*#__PURE__*/ jsxs(ActionContainer, {
|
|
@@ -39,7 +39,6 @@ const HeaderLeft = (props)=>{
|
|
|
39
39
|
}),
|
|
40
40
|
/*#__PURE__*/ jsx(Button, {
|
|
41
41
|
type: "primary",
|
|
42
|
-
disabled: disabledNewConversation,
|
|
43
42
|
iconPosition: "start",
|
|
44
43
|
onClick: onClickNewConversation,
|
|
45
44
|
shape: "round",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FooterProps } from "./Footer";
|
|
2
2
|
import { HeaderProps } from "./Header";
|
|
3
3
|
export interface ClientContentProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
style?: React.CSSProperties;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
headerProps: HeaderProps;
|
|
8
|
-
footerProps?:
|
|
8
|
+
footerProps?: FooterProps;
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export declare const ClientContent: (props: ClientContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "antd";
|
|
2
3
|
import { styled } from "styled-components";
|
|
3
|
-
import { useChatClientContext } from "../../context/index.js";
|
|
4
4
|
import { MenuFoldOutlined, MenuUnfoldOutlined } from "@ant-design/icons";
|
|
5
|
-
import {
|
|
5
|
+
import { useChatClientContext } from "../../context/index.js";
|
|
6
6
|
const Sider = (props)=>{
|
|
7
7
|
const { children } = props;
|
|
8
8
|
const { collapsed, setCollapsed } = useChatClientContext();
|