listpage-next 0.0.179 → 0.0.180

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,7 +1,9 @@
1
- import { RefObject } from "react";
2
- import { BaseMessageInfo, ChatRender, ChatRequest } from "../../context";
3
- import { ChatInstance } from "../../context/useChatContext";
1
+ import { RefObject } from 'react';
2
+ import { BaseMessageInfo, ChatRender, ChatRequest } from '../../context';
3
+ import { ChatInstance } from '../../context/useChatContext';
4
+ import { ChatSenderProps } from '../ChatSender';
4
5
  export interface SimplifyChatPageProps<SessionData = any, MessageInfo extends BaseMessageInfo = any> {
6
+ senderProps?: ChatSenderProps;
5
7
  request: ChatRequest<SessionData, MessageInfo>;
6
8
  render: ChatRender<MessageInfo>;
7
9
  style?: React.CSSProperties;
@@ -4,12 +4,13 @@ import { ChatClientProvider, MessageProvider } from "../../context/index.js";
4
4
  import { useChatContext } from "../../context/useChatContext.js";
5
5
  import { SimplifyClientContentBody } from "../ChatContent/ClientContentBody.js";
6
6
  const SimplifyChatPageComponent = (props)=>{
7
- const { chatRef } = props;
7
+ const { chatRef, senderProps } = props;
8
8
  const context = useChatContext();
9
9
  useImperativeHandle(chatRef, ()=>context, [
10
10
  context
11
11
  ]);
12
12
  return /*#__PURE__*/ jsx(SimplifyClientContentBody, {
13
+ senderProps: senderProps,
13
14
  style: props.style
14
15
  });
15
16
  };
@@ -1,7 +1,3 @@
1
- export interface ChatSenderProps {
2
- extra?: React.ReactNode;
3
- placeholder?: string;
4
- style?: React.CSSProperties;
5
- className?: string;
6
- }
1
+ import { ChatInputProps } from '../../ui';
2
+ export type ChatSenderProps = Omit<ChatInputProps, 'onSubmit' | 'loading'>;
7
3
  export declare const ChatSender: (props: ChatSenderProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,10 @@ import { CSSProperties, ReactNode } from 'react';
2
2
  export interface ChatInputProps {
3
3
  loading?: boolean;
4
4
  onSubmit?: (message: string) => void;
5
- skills?: any[];
5
+ skills?: {
6
+ label: string;
7
+ value: string;
8
+ }[];
6
9
  style?: CSSProperties;
7
10
  className?: string;
8
11
  placeholder?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.179",
3
+ "version": "0.0.180",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",