@docyrus/ui-pro-ai-assistant 0.7.8 → 0.8.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/README.md +45 -4
- package/dist/index.js +34 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +94 -13069
- package/dist/views/assistant-view.d.ts +4 -0
- package/dist/views/chat-panel.d.ts +5 -1
- package/package.json +3 -4
|
@@ -62,6 +62,10 @@ interface AssistantViewCommonProps {
|
|
|
62
62
|
} | null;
|
|
63
63
|
/** Called when the user dismisses the app context chip. */
|
|
64
64
|
onClearAppContext?: () => void;
|
|
65
|
+
/** Latest chat error to surface above the input as a dismissable bubble. */
|
|
66
|
+
chatError?: string | null;
|
|
67
|
+
/** Called when the user dismisses the error bubble. */
|
|
68
|
+
onDismissChatError?: () => void;
|
|
65
69
|
}
|
|
66
70
|
export interface InlineModeProps extends AssistantViewCommonProps {
|
|
67
71
|
mode: 'inline';
|
|
@@ -87,5 +87,9 @@ export interface ChatPanelProps {
|
|
|
87
87
|
agentId: string;
|
|
88
88
|
prompt?: string;
|
|
89
89
|
}) => void;
|
|
90
|
+
/** Latest chat error to surface above the input as a dismissable bubble. */
|
|
91
|
+
chatError?: string | null;
|
|
92
|
+
/** Called when the user dismisses the error bubble. */
|
|
93
|
+
onDismissChatError?: () => void;
|
|
90
94
|
}
|
|
91
|
-
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 }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docyrus/ui-pro-ai-assistant",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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",
|
|
@@ -141,11 +141,9 @@
|
|
|
141
141
|
"xlsx": "0.18.5"
|
|
142
142
|
},
|
|
143
143
|
"devDependencies": {
|
|
144
|
-
"@tailwindcss/cli": "^4.2.1",
|
|
145
144
|
"@types/node": "25.3.3",
|
|
146
145
|
"@types/react": "19.2.14",
|
|
147
146
|
"@types/react-dom": "19.2.3",
|
|
148
|
-
"tailwindcss": "4.2.1",
|
|
149
147
|
"tsup": "8.5.1",
|
|
150
148
|
"typescript": "5.9.3",
|
|
151
149
|
"@docyrus/ui-pro-shared": "0.0.5"
|
|
@@ -155,6 +153,7 @@
|
|
|
155
153
|
"@docyrus/ui-pro-shared": ">=0.0.5",
|
|
156
154
|
"react": "19.2.4",
|
|
157
155
|
"react-dom": "19.2.4",
|
|
156
|
+
"tailwindcss": "^4.0.0",
|
|
158
157
|
"vite": ">=5.0.0"
|
|
159
158
|
},
|
|
160
159
|
"peerDependenciesMeta": {
|
|
@@ -167,7 +166,7 @@
|
|
|
167
166
|
},
|
|
168
167
|
"license": "MIT",
|
|
169
168
|
"scripts": {
|
|
170
|
-
"build": "tsup && (tsc -p tsconfig.dts.json || true) &&
|
|
169
|
+
"build": "tsup && (tsc -p tsconfig.dts.json || true) && cp src/styles.css dist/styles.css",
|
|
171
170
|
"dev": "tsup --watch",
|
|
172
171
|
"typecheck": "tsc --noEmit",
|
|
173
172
|
"lint": "eslint src/"
|