@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.
@@ -5,6 +5,8 @@ export interface AssistantUser {
5
5
  firstname?: string;
6
6
  lastname?: string;
7
7
  photo?: string;
8
+ /** Tenant roles (e.g. `'super_admin'`); gates approving agent consent. */
9
+ roles?: string[];
8
10
  }
9
11
  export interface EnumOption {
10
12
  id: string;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docyrus/ui-pro-ai-assistant",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Docyrus AI Assistant component — full-featured chat UI with canvas, projects, and i18n support.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",