@arbor-education/ask-arbor-chat-panel 1.1.0 → 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.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 }
@@ -143,6 +152,13 @@ declare type ConnectorConfig_2 = {
143
152
 
144
153
  declare type DSIconName = ComponentProps<typeof Icon>['name'];
145
154
 
155
+ export declare const FollowUpPromptButton: ({ prompt, onClick }: FollowUpPromptButtonProps) => JSX_2.Element;
156
+
157
+ export declare type FollowUpPromptButtonProps = {
158
+ prompt: string;
159
+ onClick: (prompt: string) => void;
160
+ };
161
+
146
162
  export declare type HistoricMessages = {
147
163
  chatItems: ChatMessage[];
148
164
  followUpPrompts: string[];
@@ -234,6 +250,7 @@ export declare type SendMessageParams = {
234
250
  userInputDeviceLastUsed?: string;
235
251
  chatHistory?: ChatMessage[];
236
252
  canvasHistory?: CanvasElement[];
253
+ uploadFiles?: File[];
237
254
  };
238
255
 
239
256
  export declare type SendMessageResult = {
@@ -245,6 +262,7 @@ export declare type SendMessageResult = {
245
262
  hardStopped?: boolean;
246
263
  type: MessageType;
247
264
  element?: CanvasElement | CanvasElement[];
265
+ followUpPrompts?: string[] | null;
248
266
  };
249
267
 
250
268
  export declare type SendNotificationParams = {