@docyrus/ui-pro-ai-assistant 0.5.0 → 0.5.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 +1 -0
- package/dist/docy-assistant.d.ts +1 -1
- package/dist/index.js +199 -56
- package/dist/index.js.map +1 -1
- package/dist/lib/message-utils.d.ts +1 -0
- package/dist/styles.css +3 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/views/assistant-view.d.ts +1 -0
- package/dist/views/chat-panel.d.ts +2 -1
- package/dist/views/message-list.d.ts +2 -1
- package/package.json +1 -1
package/dist/styles.css
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -308,4 +308,11 @@ export interface DocyAssistantProps {
|
|
|
308
308
|
initialFeatures?: InitialFeatureFlags;
|
|
309
309
|
/** Initial files to attach when auto-sending the initial prompt */
|
|
310
310
|
initialFiles?: File[];
|
|
311
|
+
/**
|
|
312
|
+
* Host environment identifier sent to the chat endpoint as `environment`.
|
|
313
|
+
* The backend uses this to filter the tool list bound to the agent so that
|
|
314
|
+
* only tools available in the current environment are exposed.
|
|
315
|
+
* Common values: 'web' | 'desktop' | 'chrome' | 'word' | 'excel' | 'powerpoint' | 'outlook'.
|
|
316
|
+
*/
|
|
317
|
+
environment?: string;
|
|
311
318
|
}
|
|
@@ -31,6 +31,7 @@ interface AssistantViewCommonProps {
|
|
|
31
31
|
recognition?: any;
|
|
32
32
|
onMicrophoneClick?: () => void;
|
|
33
33
|
onToolAction?: (event: ToolActionEvent) => void;
|
|
34
|
+
onEditPrompt?: (messageIndex: number, newText: string) => void;
|
|
34
35
|
showWelcome?: boolean;
|
|
35
36
|
recentSessions?: AssistantSession[];
|
|
36
37
|
onSessionClick?: (session: AssistantSession) => void;
|
|
@@ -48,6 +48,7 @@ export interface ChatPanelProps {
|
|
|
48
48
|
onToolAction?: (event: ToolActionEvent) => void;
|
|
49
49
|
openCanvasView?: (options: CanvasViewOptions) => void;
|
|
50
50
|
onSendSpreadsheetCommands?: (commands: any[]) => void;
|
|
51
|
+
onEditPrompt?: (messageIndex: number, newText: string) => void;
|
|
51
52
|
renderThreadHeader?: () => ReactNode;
|
|
52
53
|
messagesClassName?: string;
|
|
53
54
|
compactToolbar?: boolean;
|
|
@@ -58,4 +59,4 @@ export interface ChatPanelProps {
|
|
|
58
59
|
initialModelId?: string;
|
|
59
60
|
initialFeatures?: InitialFeatureFlags;
|
|
60
61
|
}
|
|
61
|
-
export declare function ChatPanel({ messages, isLoading, input, onInputChange, onSendMessage, onStop, logo, userPhoto, userDisplayName, description, title, welcomeMessage, isLoadingAgent, placeholder, footerText, supportFiles, supportWebSearch, supportDocumentSearch, supportDeepResearch, supportThinking, supportWorkCanvas, supportMultiModels, deploymentId, tenantAiAgentId, enableMicrophone, enableVoice, isRecording, recognition, onMicrophoneClick, onToolAction, openCanvasView, onSendSpreadsheetCommands: _onSendSpreadsheetCommands, renderThreadHeader, messagesClassName, compactToolbar, showWelcome, recentSessions, onSessionClick, threadId, initialModelId, initialFeatures }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare function ChatPanel({ messages, isLoading, input, onInputChange, onSendMessage, onStop, logo, userPhoto, userDisplayName, description, title, welcomeMessage, isLoadingAgent, placeholder, footerText, supportFiles, supportWebSearch, supportDocumentSearch, supportDeepResearch, supportThinking, supportWorkCanvas, supportMultiModels, deploymentId, tenantAiAgentId, enableMicrophone, enableVoice, isRecording, recognition, onMicrophoneClick, onToolAction, openCanvasView, onSendSpreadsheetCommands: _onSendSpreadsheetCommands, onEditPrompt, renderThreadHeader, messagesClassName, compactToolbar, showWelcome, recentSessions, onSessionClick, threadId, initialModelId, initialFeatures }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -27,6 +27,7 @@ interface MessageListProps {
|
|
|
27
27
|
data?: any;
|
|
28
28
|
state?: string;
|
|
29
29
|
}) => void;
|
|
30
|
+
onEditPrompt?: (messageIndex: number, newText: string) => void;
|
|
30
31
|
}
|
|
31
|
-
export declare const MessageList: import("react").MemoExoticComponent<({ messages, isLoading, logo, userPhoto, userDisplayName, description, title, welcomeMessage, isLoadingAgent, agentId, className, agents, onToolAction, openCanvasView, onForwardToAgent, onUseWorkResult }: MessageListProps) => import("react/jsx-runtime").JSX.Element>;
|
|
32
|
+
export declare const MessageList: import("react").MemoExoticComponent<({ messages, isLoading, logo, userPhoto, userDisplayName, description, title, welcomeMessage, isLoadingAgent, agentId, className, agents, onToolAction, openCanvasView, onForwardToAgent, onUseWorkResult, onEditPrompt }: MessageListProps) => import("react/jsx-runtime").JSX.Element>;
|
|
32
33
|
export {};
|
package/package.json
CHANGED