@icanbwell/baileyai-chat-ui 1.2.0 → 1.2.2
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/README.md +5 -0
- package/dist/baileyai-chat-ui.cjs +2 -2
- package/dist/baileyai-chat-ui.css +1 -1
- package/dist/baileyai-chat-ui.js +413 -409
- package/dist/index.d.ts +13 -2
- 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, assistantName, suggestions, suggestionsAlign, hideMenuButton, onHistoryClick, history, locale, privacyNote, resolveActivityIcon, sendIcon, className, height, width, hideDeveloperDetails, renderMessageActions, feedback, renderTable, renderChart, renderMcpApp, labels: labelsProp, formatMessageTime: formatMessageTimeProp, }: BaileyChatPanelProps): JSX_2.Element;
|
|
80
|
+
export declare function BaileyChatPanel({ chat, placeholder, replyPlaceholder, emptyPlaceholder, assistantName, suggestions, suggestionsAlign, hideMenuButton, onHistoryClick, history, historyOpen: historyOpenProp, onHistoryOpenChange, locale, privacyNote, resolveActivityIcon, sendIcon, className, height, width, hideDeveloperDetails, renderMessageActions, feedback, 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. */
|
|
@@ -171,7 +171,8 @@ export declare interface BaileyChatPanelProps extends BaileyMarkdownRenderers {
|
|
|
171
171
|
* right-aligns them and anchors them to the bottom of the transcript, just above the input. */
|
|
172
172
|
suggestionsAlign?: 'start' | 'end';
|
|
173
173
|
/** Hides the "..." menu button beside the input row entirely — including its "New chat" and
|
|
174
|
-
* history items, so a host that sets this must provide its own entry points for both
|
|
174
|
+
* history items, so a host that sets this must provide its own entry points for both (for the
|
|
175
|
+
* default history drawer, see `historyOpen`). */
|
|
175
176
|
hideMenuButton?: boolean;
|
|
176
177
|
/** Adds a history item to the "..." menu beside the input row, beneath "New chat" — a host's
|
|
177
178
|
* entry point into its own conversation-history UI (this package has no opinion on how
|
|
@@ -189,6 +190,16 @@ export declare interface BaileyChatPanelProps extends BaileyMarkdownRenderers {
|
|
|
189
190
|
client: BaileyClient;
|
|
190
191
|
pageSize?: number;
|
|
191
192
|
};
|
|
193
|
+
/** Controls the `history` drawer from the host. When defined, the panel never opens or closes the
|
|
194
|
+
* drawer itself: it shows the drawer only while this is `true` and reports every open/close
|
|
195
|
+
* request through `onHistoryOpenChange`. Lets a host that sets `hideMenuButton` open the drawer
|
|
196
|
+
* from its own menu. Leave undefined to keep the panel-managed state. Has no effect without
|
|
197
|
+
* `history`, or when `onHistoryClick` is supplied. */
|
|
198
|
+
historyOpen?: boolean;
|
|
199
|
+
/** Called with the requested state when the drawer is opened (the "Chat history" item) or closed
|
|
200
|
+
* (back, Escape, New chat, or selecting a row). Also called, after the panel updates its own state,
|
|
201
|
+
* when `historyOpen` is undefined. */
|
|
202
|
+
onHistoryOpenChange?: (open: boolean) => void;
|
|
192
203
|
/** Locale for the drawer's relative timestamps. Defaults to `navigator.language`. */
|
|
193
204
|
locale?: string;
|
|
194
205
|
/** A short privacy/compliance note rendered below the input row, as the panel's bottom-most
|