@docyrus/ui-pro-ai-assistant 0.8.0 → 0.8.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 +4 -0
- package/dist/components/agent-consent-dialog.d.ts +16 -0
- package/dist/hooks/use-assistant-api.d.ts +9 -0
- package/dist/index.js +250 -38
- package/dist/index.js.map +1 -1
- package/dist/lib/assistant-config.d.ts +2 -0
- package/dist/views/assistant-view.d.ts +2 -0
- package/dist/views/chat-panel.d.ts +3 -1
- package/package.json +1 -1
|
@@ -66,6 +66,8 @@ interface AssistantViewCommonProps {
|
|
|
66
66
|
chatError?: string | null;
|
|
67
67
|
/** Called when the user dismisses the error bubble. */
|
|
68
68
|
onDismissChatError?: () => void;
|
|
69
|
+
/** Hide the prompt input until the agent's consent terms are accepted. */
|
|
70
|
+
consentRequired?: boolean;
|
|
69
71
|
}
|
|
70
72
|
export interface InlineModeProps extends AssistantViewCommonProps {
|
|
71
73
|
mode: 'inline';
|
|
@@ -91,5 +91,7 @@ export interface ChatPanelProps {
|
|
|
91
91
|
chatError?: string | null;
|
|
92
92
|
/** Called when the user dismisses the error bubble. */
|
|
93
93
|
onDismissChatError?: () => void;
|
|
94
|
+
/** Hide the prompt input until the agent's consent terms are accepted. */
|
|
95
|
+
consentRequired?: boolean;
|
|
94
96
|
}
|
|
95
|
-
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, subagents, agentTools, onManageMemories, appContext, onClearAppContext, onForwardToAgent, chatError, onDismissChatError }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
97
|
+
export declare function ChatPanel({ messages, isLoading, input, onInputChange, onSendMessage, onStop, logo, userPhoto, userDisplayName, description, title, welcomeMessage, isLoadingAgent, placeholder, consentRequired, 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, subagents, agentTools, onManageMemories, appContext, onClearAppContext, onForwardToAgent, chatError, onDismissChatError }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED