@rodrigocoliveira/agno-react 1.0.3 → 1.1.0
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/hooks/useAgnoChat.d.ts.map +1 -1
- package/dist/index.js +3 -19
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +3 -19
- package/dist/index.mjs.map +3 -3
- package/dist/ui/composed/AgnoChatInput.d.ts +11 -17
- package/dist/ui/composed/AgnoChatInput.d.ts.map +1 -1
- package/dist/ui/composed/AgnoMessageItem.d.ts +9 -9
- package/dist/ui/composed/AgnoMessageItem.d.ts.map +1 -1
- package/dist/ui/composed/agno-chat/error-bar.d.ts +12 -1
- package/dist/ui/composed/agno-chat/error-bar.d.ts.map +1 -1
- package/dist/ui/composed/agno-chat/input.d.ts +13 -18
- package/dist/ui/composed/agno-chat/input.d.ts.map +1 -1
- package/dist/ui/composed/agno-chat/messages.d.ts +31 -7
- package/dist/ui/composed/agno-chat/messages.d.ts.map +1 -1
- package/dist/ui/composed/index.d.ts +0 -2
- package/dist/ui/composed/index.d.ts.map +1 -1
- package/dist/ui/index.d.ts +1 -3
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/types.d.ts +51 -16
- package/dist/ui/types.d.ts.map +1 -1
- package/dist/ui.js +639 -606
- package/dist/ui.js.map +9 -10
- package/dist/ui.mjs +636 -603
- package/dist/ui.mjs.map +9 -10
- package/package.json +1 -1
- package/dist/ui/composed/AgnoChatInterface.d.ts +0 -49
- package/dist/ui/composed/AgnoChatInterface.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ChatMessage } from '@rodrigocoliveira/agno-types';
|
|
3
|
-
import type { ToolHandler } from '@rodrigocoliveira/agno-react';
|
|
4
|
-
import type { AgnoChatInterfaceClassNames, FileUploadConfig, SuggestedPrompt } from '../types';
|
|
5
|
-
import type { AgnoMessageItemProps } from './AgnoMessageItem';
|
|
6
|
-
import type { AgnoChatInputProps } from './AgnoChatInput';
|
|
7
|
-
export interface AgnoChatInterfaceProps {
|
|
8
|
-
className?: string;
|
|
9
|
-
classNames?: AgnoChatInterfaceClassNames;
|
|
10
|
-
/** Custom render for individual messages */
|
|
11
|
-
renderMessage?: (message: ChatMessage, index: number) => ReactNode;
|
|
12
|
-
/** Custom render for the input area */
|
|
13
|
-
renderInput?: (props: {
|
|
14
|
-
onSend: (msg: string | FormData) => void;
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
}) => ReactNode;
|
|
17
|
-
/** Custom empty state content */
|
|
18
|
-
emptyState?: ReactNode;
|
|
19
|
-
/** Slot: content above the messages area */
|
|
20
|
-
headerSlot?: ReactNode;
|
|
21
|
-
/** Slot: extra buttons in the input toolbar */
|
|
22
|
-
inputToolbarSlot?: ReactNode;
|
|
23
|
-
/** Suggested prompts for empty state */
|
|
24
|
-
suggestedPrompts?: SuggestedPrompt[];
|
|
25
|
-
/** Tool handlers for HITL execution */
|
|
26
|
-
toolHandlers?: Record<string, ToolHandler>;
|
|
27
|
-
/** Auto-execute tools (default: true) */
|
|
28
|
-
autoExecuteTools?: boolean;
|
|
29
|
-
/** Input placeholder */
|
|
30
|
-
placeholder?: string;
|
|
31
|
-
/** Custom user avatar */
|
|
32
|
-
userAvatar?: ReactNode;
|
|
33
|
-
/** Custom assistant avatar */
|
|
34
|
-
assistantAvatar?: ReactNode;
|
|
35
|
-
/** File upload config */
|
|
36
|
-
fileUpload?: FileUploadConfig;
|
|
37
|
-
/** Show audio recorder (default: true) */
|
|
38
|
-
showAudioRecorder?: boolean;
|
|
39
|
-
/** Show attachments button and drop zone (default: true) */
|
|
40
|
-
showAttachments?: boolean;
|
|
41
|
-
/** Props forwarded to AgnoMessageItem */
|
|
42
|
-
messageItemProps?: Partial<Omit<AgnoMessageItemProps, 'message'>>;
|
|
43
|
-
/** Props forwarded to AgnoChatInput */
|
|
44
|
-
chatInputProps?: Partial<Omit<AgnoChatInputProps, 'onSend'>>;
|
|
45
|
-
/** Custom label for the drop zone overlay */
|
|
46
|
-
dropZoneLabel?: string;
|
|
47
|
-
}
|
|
48
|
-
export declare function AgnoChatInterface({ className, classNames, renderMessage, renderInput, emptyState, headerSlot, inputToolbarSlot, suggestedPrompts, toolHandlers, autoExecuteTools, placeholder, userAvatar, assistantAvatar, fileUpload, showAudioRecorder, showAttachments, messageItemProps, chatInputProps, dropZoneLabel, }: AgnoChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
49
|
-
//# sourceMappingURL=AgnoChatInterface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AgnoChatInterface.d.ts","sourceRoot":"","sources":["../../../src/ui/composed/AgnoChatInterface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC/F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAK1D,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,2BAA2B,CAAC;IACzC,4CAA4C;IAC5C,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IACnE,uCAAuC;IACvC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,KAAK,IAAI,CAAC;QAAC,QAAQ,EAAE,OAAO,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