@docyrus/ui-pro-ai-assistant 0.5.2 → 0.5.4
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/components/generative-tool.d.ts +7 -2
- package/dist/components/subagent-tool.d.ts +7 -6
- package/dist/docy-assistant.d.ts +1 -1
- package/dist/hooks/use-assistant-api.d.ts +7 -0
- package/dist/index.js +156 -53
- package/dist/index.js.map +1 -1
- package/dist/styles.css +16 -6
- package/dist/types/index.d.ts +2 -2
- package/dist/views/assistant-view.d.ts +7 -0
- package/dist/views/chat-panel.d.ts +10 -1
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -300,9 +300,6 @@
|
|
|
300
300
|
.-top-2 {
|
|
301
301
|
top: calc(var(--spacing) * -2);
|
|
302
302
|
}
|
|
303
|
-
.-top-4 {
|
|
304
|
-
top: calc(var(--spacing) * -4);
|
|
305
|
-
}
|
|
306
303
|
.-top-12 {
|
|
307
304
|
top: calc(var(--spacing) * -12);
|
|
308
305
|
}
|
|
@@ -441,9 +438,6 @@
|
|
|
441
438
|
.-left-1 {
|
|
442
439
|
left: calc(var(--spacing) * -1);
|
|
443
440
|
}
|
|
444
|
-
.-left-4 {
|
|
445
|
-
left: calc(var(--spacing) * -4);
|
|
446
|
-
}
|
|
447
441
|
.-left-6 {
|
|
448
442
|
left: calc(var(--spacing) * -6);
|
|
449
443
|
}
|
|
@@ -639,6 +633,9 @@
|
|
|
639
633
|
.my-2 {
|
|
640
634
|
margin-block: calc(var(--spacing) * 2);
|
|
641
635
|
}
|
|
636
|
+
.my-3 {
|
|
637
|
+
margin-block: calc(var(--spacing) * 3);
|
|
638
|
+
}
|
|
642
639
|
.my-6 {
|
|
643
640
|
margin-block: calc(var(--spacing) * 6);
|
|
644
641
|
}
|
|
@@ -1854,6 +1851,9 @@
|
|
|
1854
1851
|
--tw-scale-z: 110%;
|
|
1855
1852
|
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
1856
1853
|
}
|
|
1854
|
+
.-rotate-90 {
|
|
1855
|
+
rotate: calc(90deg * -1);
|
|
1856
|
+
}
|
|
1857
1857
|
.rotate-0 {
|
|
1858
1858
|
rotate: 0deg;
|
|
1859
1859
|
}
|
|
@@ -3781,6 +3781,9 @@
|
|
|
3781
3781
|
.text-slate-800 {
|
|
3782
3782
|
color: var(--color-slate-800);
|
|
3783
3783
|
}
|
|
3784
|
+
.text-slate-900 {
|
|
3785
|
+
color: var(--color-slate-900);
|
|
3786
|
+
}
|
|
3784
3787
|
.text-transparent {
|
|
3785
3788
|
color: transparent;
|
|
3786
3789
|
}
|
|
@@ -6574,6 +6577,13 @@
|
|
|
6574
6577
|
}
|
|
6575
6578
|
}
|
|
6576
6579
|
}
|
|
6580
|
+
.hover\:text-slate-900 {
|
|
6581
|
+
&:hover {
|
|
6582
|
+
@media (hover: hover) {
|
|
6583
|
+
color: var(--color-slate-900);
|
|
6584
|
+
}
|
|
6585
|
+
}
|
|
6586
|
+
}
|
|
6577
6587
|
.hover\:text-white {
|
|
6578
6588
|
&:hover {
|
|
6579
6589
|
@media (hover: hover) {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -309,10 +309,10 @@ export interface DocyAssistantProps {
|
|
|
309
309
|
/** Initial files to attach when auto-sending the initial prompt */
|
|
310
310
|
initialFiles?: File[];
|
|
311
311
|
/**
|
|
312
|
-
* Host environment identifier sent to the chat endpoint as `
|
|
312
|
+
* Host environment identifier sent to the chat endpoint as `hostEnvironment`.
|
|
313
313
|
* The backend uses this to filter the tool list bound to the agent so that
|
|
314
314
|
* only tools available in the current environment are exposed.
|
|
315
315
|
* Common values: 'web' | 'desktop' | 'chrome' | 'word' | 'excel' | 'powerpoint' | 'outlook'.
|
|
316
316
|
*/
|
|
317
|
-
|
|
317
|
+
hostEnvironment?: string;
|
|
318
318
|
}
|
|
@@ -38,6 +38,13 @@ interface AssistantViewCommonProps {
|
|
|
38
38
|
threadId?: string;
|
|
39
39
|
initialModelId?: string;
|
|
40
40
|
initialFeatures?: InitialFeatureFlags;
|
|
41
|
+
/**
|
|
42
|
+
* Combined list of subagents reachable from the active orchestrator —
|
|
43
|
+
* direct children (`deployment.agent.agents`) plus connected subagents
|
|
44
|
+
* (`deployment.agent.connectedAgents`). Used by the SubagentTool to render
|
|
45
|
+
* avatars / names / step templates for `call*Agent` tool calls.
|
|
46
|
+
*/
|
|
47
|
+
subagents?: Array<Record<string, any>>;
|
|
41
48
|
}
|
|
42
49
|
export interface InlineModeProps extends AssistantViewCommonProps {
|
|
43
50
|
mode: 'inline';
|
|
@@ -58,5 +58,14 @@ export interface ChatPanelProps {
|
|
|
58
58
|
threadId?: string;
|
|
59
59
|
initialModelId?: string;
|
|
60
60
|
initialFeatures?: InitialFeatureFlags;
|
|
61
|
+
/**
|
|
62
|
+
* Combined list of subagents reachable from the active orchestrator —
|
|
63
|
+
* direct children (`deployment.agent.agents`) plus connected subagents
|
|
64
|
+
* (`deployment.agent.connectedAgents`). Each entry should expose `id` (or
|
|
65
|
+
* `agentId`), `agentName`, `avatar`, `description`, and optionally `steps`.
|
|
66
|
+
* Used by the SubagentTool to render avatars / names / step templates for
|
|
67
|
+
* `call*Agent` tool calls.
|
|
68
|
+
*/
|
|
69
|
+
subagents?: Array<Record<string, any>>;
|
|
61
70
|
}
|
|
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;
|
|
71
|
+
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 }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED