@docyrus/ui-pro-ai-assistant 0.2.8 → 0.3.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/dist/styles.css CHANGED
@@ -1491,6 +1491,9 @@
1491
1491
  .max-w-24 {
1492
1492
  max-width: calc(var(--spacing) * 24);
1493
1493
  }
1494
+ .max-w-32 {
1495
+ max-width: calc(var(--spacing) * 32);
1496
+ }
1494
1497
  .max-w-64 {
1495
1498
  max-width: calc(var(--spacing) * 64);
1496
1499
  }
@@ -3538,6 +3541,9 @@
3538
3541
  color: color-mix(in oklab, var(--primary) 65%, transparent);
3539
3542
  }
3540
3543
  }
3544
+ .text-red-500 {
3545
+ color: var(--color-red-500);
3546
+ }
3541
3547
  .text-red-600 {
3542
3548
  color: var(--color-red-600);
3543
3549
  }
@@ -6252,6 +6258,13 @@
6252
6258
  }
6253
6259
  }
6254
6260
  }
6261
+ .hover\:text-red-600 {
6262
+ &:hover {
6263
+ @media (hover: hover) {
6264
+ color: var(--color-red-600);
6265
+ }
6266
+ }
6267
+ }
6255
6268
  .hover\:text-rose-600 {
6256
6269
  &:hover {
6257
6270
  @media (hover: hover) {
@@ -232,4 +232,17 @@ export interface DocyAssistantProps {
232
232
  onAgentChange?: (agentId: string, agentType: 'base' | 'deployment') => void;
233
233
  /** Initial prompt to auto-send when the assistant opens */
234
234
  initialPrompt?: string;
235
+ /** Initial model ID to use when auto-sending the initial prompt */
236
+ initialModelId?: string;
237
+ /** Initial feature flags to include when auto-sending the initial prompt */
238
+ initialFeatures?: {
239
+ webSearch?: boolean;
240
+ thinking?: boolean;
241
+ deepResearch?: boolean;
242
+ documentSearch?: boolean;
243
+ workCanvas?: boolean;
244
+ files?: boolean;
245
+ };
246
+ /** Initial files to attach when auto-sending the initial prompt */
247
+ initialFiles?: File[];
235
248
  }
@@ -32,6 +32,14 @@ interface AssistantViewCommonProps {
32
32
  onMicrophoneClick?: () => void;
33
33
  onToolAction?: (event: ToolActionEvent) => void;
34
34
  threadId?: string;
35
+ initialModelId?: string;
36
+ initialFeatures?: {
37
+ webSearch?: boolean;
38
+ thinking?: boolean;
39
+ deepResearch?: boolean;
40
+ documentSearch?: boolean;
41
+ workCanvas?: boolean;
42
+ };
35
43
  }
36
44
  export interface InlineModeProps extends AssistantViewCommonProps {
37
45
  mode: 'inline';
@@ -52,5 +52,13 @@ export interface ChatPanelProps {
52
52
  messagesClassName?: string;
53
53
  compactToolbar?: boolean;
54
54
  threadId?: string;
55
+ initialModelId?: string;
56
+ initialFeatures?: {
57
+ webSearch?: boolean;
58
+ thinking?: boolean;
59
+ deepResearch?: boolean;
60
+ documentSearch?: boolean;
61
+ workCanvas?: boolean;
62
+ };
55
63
  }
56
- 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, threadId }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
64
+ 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, threadId, initialModelId, initialFeatures }: 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.2.8",
3
+ "version": "0.3.0",
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",