@icanbwell/baileyai-chat-ui 1.0.21 → 1.0.23
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/baileyai-chat-ui.cjs +3 -3
- package/dist/baileyai-chat-ui.css +1 -1
- package/dist/baileyai-chat-ui.js +357 -340
- package/dist/index.d.ts +7 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ export declare interface BaileyChatInputMessage {
|
|
|
77
77
|
titleHint?: string;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
export declare function BaileyChatPanel({ chat, placeholder, replyPlaceholder, emptyPlaceholder, suggestions, onHistoryClick, history, locale, privacyNote, resolveActivityIcon, className, height, width, hideDeveloperDetails, renderMessageActions, renderTable, renderChart, renderMcpApp, labels: labelsProp, formatMessageTime: formatMessageTimeProp, }: BaileyChatPanelProps): JSX_2.Element;
|
|
80
|
+
export declare function BaileyChatPanel({ chat, placeholder, replyPlaceholder, emptyPlaceholder, suggestions, onHistoryClick, history, locale, privacyNote, resolveActivityIcon, sendIcon, className, height, width, hideDeveloperDetails, renderMessageActions, renderTable, renderChart, renderMcpApp, labels: labelsProp, formatMessageTime: formatMessageTimeProp, }: BaileyChatPanelProps): JSX_2.Element;
|
|
81
81
|
|
|
82
82
|
export declare interface BaileyChatPanelLabels extends ToolStepLabels, Partial<BaileyHistoryLabels> {
|
|
83
83
|
/** Visible text of the "new chat" item in the "..." menu. */
|
|
@@ -190,6 +190,8 @@ export declare interface BaileyChatPanelProps extends BaileyMarkdownRenderers {
|
|
|
190
190
|
* tool name. No icon is shown for a step unless this returns one: `null`, `undefined`,
|
|
191
191
|
* `false`, `true` and `''` render nothing, and `0` renders as "0". */
|
|
192
192
|
resolveActivityIcon?: (toolName: string | null) => ReactNode;
|
|
193
|
+
/** Replaces the default heart inside the send button; the host sizes and colors its own icon. */
|
|
194
|
+
sendIcon?: ReactNode;
|
|
193
195
|
className?: string;
|
|
194
196
|
/** Explicit panel height (number is treated as px, e.g. 600 or '600px' or '100vh'). Applied
|
|
195
197
|
* as an inline style, which wins over the default `h-full` CSS class regardless of whether
|
|
@@ -955,6 +957,8 @@ export declare interface ToolStep {
|
|
|
955
957
|
label: string;
|
|
956
958
|
status: ToolStepStatus;
|
|
957
959
|
runtimeSeconds?: number;
|
|
960
|
+
/** Milliseconds from the request being sent to this tool starting (client receive time). */
|
|
961
|
+
startOffsetMs?: number;
|
|
958
962
|
}
|
|
959
963
|
|
|
960
964
|
declare interface ToolStepLabels {
|
|
@@ -968,6 +972,8 @@ declare interface ToolStepLabels {
|
|
|
968
972
|
toolStepFailedText: string;
|
|
969
973
|
/** Marker next to a step that never finished (turn stopped or errored mid-call). */
|
|
970
974
|
toolStepStoppedText: string;
|
|
975
|
+
/** Tooltip/accessible name for a step's start offset; `{offset}` is replaced (e.g. "+3.1s"). Optional. */
|
|
976
|
+
toolStepStartedText?: string;
|
|
971
977
|
}
|
|
972
978
|
|
|
973
979
|
export declare type ToolStepStatus = 'running' | 'done' | 'failed';
|