@arbor-education/ask-arbor-chat-panel 1.1.1 → 1.1.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/dist/index.cjs +18 -38
- package/dist/index.d.ts +11 -1
- package/dist/index.js +2009 -1696
- package/dist/style.css +1 -1
- package/dist-iife/ask-arbor-slideover.js +217 -237
- package/dist-iife/ask-arbor-widget.js +217 -237
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export declare type ChatMessage = {
|
|
|
59
59
|
element?: CanvasElement | CanvasElement[];
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
declare const ChatPanel: ({ title, connector, newChatUrl, lockConversation, messageLimit: unsafeMessageLimit, chatId: chatIdFromProps, speechEnabled, speechLanguage, speechSubmissionDelay, chatHistory, canvasHistory, refreshAgentMessages, startQuery: initialStartQuery, slashMenuItems, menuContent, samplePrompts, dailyPrompt, prompts: promptsJson, promptLibrary, placeholder: inputPlaceholder, introHeading, introBody, onClose, onNavigate, onRatingPopupOpen, focusDelay, }: ChatPanelProps) => JSX_2.Element;
|
|
62
|
+
declare const ChatPanel: ({ title, connector, newChatUrl, lockConversation, messageLimit: unsafeMessageLimit, chatId: chatIdFromProps, speechEnabled, speechLanguage, speechSubmissionDelay, chatHistory, canvasHistory, refreshAgentMessages, startQuery: initialStartQuery, slashMenuItems, menuContent, samplePrompts, dailyPrompt, prompts: promptsJson, promptLibrary, placeholder: inputPlaceholder, introHeading, introBody, showTabs, onClose, onNavigate, onRatingPopupOpen, focusDelay, enableUpload, acceptedFileTypes, }: ChatPanelProps) => JSX_2.Element;
|
|
63
63
|
export { ChatPanel as AskArborWidget }
|
|
64
64
|
export { ChatPanel }
|
|
65
65
|
|
|
@@ -90,6 +90,8 @@ declare type ChatPanelProps = {
|
|
|
90
90
|
prompts?: string;
|
|
91
91
|
introHeading?: string;
|
|
92
92
|
introBody?: string;
|
|
93
|
+
/** Show Getting started / Recent tabs on the empty state. Defaults to false. */
|
|
94
|
+
showTabs?: boolean;
|
|
93
95
|
/**
|
|
94
96
|
* Called when the component wants to close its container (e.g. a panel or slideover).
|
|
95
97
|
* Replaces `removeSlideover` from the Arbor ecosystem.
|
|
@@ -110,6 +112,13 @@ declare type ChatPanelProps = {
|
|
|
110
112
|
* with an entry transition (replaces the Arbor slideover focus-delay logic).
|
|
111
113
|
*/
|
|
112
114
|
focusDelay?: number;
|
|
115
|
+
/** When true, shows a file upload button and supports drag-and-drop onto the input. */
|
|
116
|
+
enableUpload?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Restricts selectable files. Uses the same syntax as the native `accept` attribute
|
|
119
|
+
* (e.g. `".pdf,.docx"`, `"image/*"`, or an array like `[".pdf", "image/*"]`).
|
|
120
|
+
*/
|
|
121
|
+
acceptedFileTypes?: string | string[];
|
|
113
122
|
};
|
|
114
123
|
export { ChatPanelProps as AskArborWidgetProps }
|
|
115
124
|
export { ChatPanelProps }
|
|
@@ -241,6 +250,7 @@ export declare type SendMessageParams = {
|
|
|
241
250
|
userInputDeviceLastUsed?: string;
|
|
242
251
|
chatHistory?: ChatMessage[];
|
|
243
252
|
canvasHistory?: CanvasElement[];
|
|
253
|
+
uploadFiles?: File[];
|
|
244
254
|
};
|
|
245
255
|
|
|
246
256
|
export declare type SendMessageResult = {
|