@arbor-education/ask-arbor-chat-panel 1.0.2 → 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/README.md +105 -30
- package/dist/index.cjs +21 -21
- package/dist/index.d.ts +13 -2
- package/dist/index.js +593 -558
- package/dist/style.css +1 -1
- package/dist-iife/ask-arbor-slideover.js +975 -0
- package/dist-iife/ask-arbor-widget.js +975 -0
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { Icon } from '@arbor-education/design-system.components';
|
|
3
3
|
import { JSX as JSX_2 } from 'react';
|
|
4
|
+
import { ReactPortal } from 'react';
|
|
4
5
|
|
|
5
6
|
declare type AgentCompletionsConfig = {
|
|
6
7
|
model?: string;
|
|
@@ -21,6 +22,12 @@ export declare const AIServiceConnectorFactory: {
|
|
|
21
22
|
create(config: ConnectorConfig_2): IAIServiceConnector;
|
|
22
23
|
};
|
|
23
24
|
|
|
25
|
+
export declare function AskArborSlideover({ isOpen, ...chatPanelProps }: AskArborSlideoverProps): ReactPortal | null;
|
|
26
|
+
|
|
27
|
+
export declare type AskArborSlideoverProps = Omit<ChatPanelProps, 'focusDelay'> & {
|
|
28
|
+
isOpen: boolean;
|
|
29
|
+
};
|
|
30
|
+
|
|
24
31
|
export declare type CanvasElement = {
|
|
25
32
|
id: string;
|
|
26
33
|
contentType: 'HTML' | 'CHART' | 'TABLE' | 'TABULAR_DATA';
|
|
@@ -52,9 +59,11 @@ export declare type ChatMessage = {
|
|
|
52
59
|
element?: CanvasElement | CanvasElement[];
|
|
53
60
|
};
|
|
54
61
|
|
|
55
|
-
|
|
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;
|
|
63
|
+
export { ChatPanel as AskArborWidget }
|
|
64
|
+
export { ChatPanel }
|
|
56
65
|
|
|
57
|
-
|
|
66
|
+
declare type ChatPanelProps = {
|
|
58
67
|
title?: string;
|
|
59
68
|
connector: IAIServiceConnector;
|
|
60
69
|
newChatUrl?: string;
|
|
@@ -102,6 +111,8 @@ export declare type ChatPanelProps = {
|
|
|
102
111
|
*/
|
|
103
112
|
focusDelay?: number;
|
|
104
113
|
};
|
|
114
|
+
export { ChatPanelProps as AskArborWidgetProps }
|
|
115
|
+
export { ChatPanelProps }
|
|
105
116
|
|
|
106
117
|
declare type ConnectorConfig = {
|
|
107
118
|
chatUrl: string;
|