listpage-next 0.0.204 → 0.0.206

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,2 +1,3 @@
1
1
  import { MenuProps } from './types';
2
2
  export declare const Menu: (props: MenuProps) => import("react/jsx-runtime").JSX.Element;
3
+ export type { MenuProps, MenuItem } from './types';
@@ -8,4 +8,7 @@ export interface ChatPageProps<SessionData = any, MessageInfo extends BaseMessag
8
8
  request: ChatRequest<SessionData, MessageInfo>;
9
9
  render: ChatRender<MessageInfo>;
10
10
  }
11
+ export declare const ChatContentContext: (props: {
12
+ children: ReactNode;
13
+ }) => import("react/jsx-runtime").JSX.Element;
11
14
  export declare const ChatPage: (props: ChatPageProps) => import("react/jsx-runtime").JSX.Element;
@@ -28,14 +28,12 @@ const ChatPageComponent = (props)=>{
28
28
  ]
29
29
  }),
30
30
  /*#__PURE__*/ jsx(Content, {
31
- children: /*#__PURE__*/ jsx(ChatContentContainer, {
32
- children: children
33
- })
31
+ children: children
34
32
  })
35
33
  ]
36
34
  });
37
35
  };
38
- const ChatContentContainer = (props)=>{
36
+ const ChatContentContext = (props)=>{
39
37
  const { request, bubbleListRef } = useChatClientContext();
40
38
  const { loading: loadingMessage, data } = useRequest(request.getMessages, {
41
39
  ready: Boolean(request.getMessages)
@@ -62,4 +60,4 @@ const ChatPage = (props)=>/*#__PURE__*/ jsx(ChatClientProvider, {
62
60
  ...props
63
61
  })
64
62
  });
65
- export { ChatPage };
63
+ export { ChatContentContext, ChatPage };
@@ -12,7 +12,10 @@ const Reasoning = ({ thinking, children })=>{
12
12
  return /*#__PURE__*/ jsxs(ReasoningContainer, {
13
13
  style: {
14
14
  padding: collapsed ? '6px 12px' : '0px 12px 13px 12px',
15
- backgroundColor: collapsed ? void 0 : '#fff'
15
+ backgroundColor: collapsed ? void 0 : '#fff',
16
+ ...collapsed && {
17
+ maxWidth: 240
18
+ }
16
19
  },
17
20
  children: [
18
21
  /*#__PURE__*/ jsxs(ReasoningHeader, {
@@ -47,7 +50,7 @@ const ReasoningContainer = styled.div`
47
50
  &:hover {
48
51
  background-color: #0000000a;
49
52
  }
50
- min-width: 240px;
53
+ width: 240px;
51
54
 
52
55
  & > * {
53
56
  box-sizing: border-box;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.204",
3
+ "version": "0.0.206",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",