@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.
@@ -3,6 +3,7 @@
3
3
  */
4
4
  interface RawMessage {
5
5
  id?: string;
6
+ message_id?: string;
6
7
  body_json?: string | object;
7
8
  body_text?: string;
8
9
  body?: string;
package/dist/styles.css CHANGED
@@ -1283,6 +1283,9 @@
1283
1283
  .min-h-30 {
1284
1284
  min-height: calc(var(--spacing) * 30);
1285
1285
  }
1286
+ .min-h-32 {
1287
+ min-height: calc(var(--spacing) * 32);
1288
+ }
1286
1289
  .min-h-50 {
1287
1290
  min-height: calc(var(--spacing) * 50);
1288
1291
  }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docyrus/ui-pro-ai-assistant",
3
- "version": "0.5.0",
3
+ "version": "0.5.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",