@docyrus/ui-pro-ai-assistant 0.7.9 → 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/dist/styles.css CHANGED
@@ -1,13 +1,11 @@
1
1
  /*
2
2
  * Component-specific CSS for @docyrus/ui-pro-ai-assistant.
3
3
  *
4
- * Consumers using Tailwind v4 only need to import this file:
5
- * @import "@docyrus/ui-pro-ai-assistant/styles.css";
6
- *
7
- * The @source directive below tells the consumer's Tailwind to scan this
8
- * package's compiled JS for utility class names, so utilities used by the
9
- * components are generated in the consumer's Tailwind bundle. Path is
10
- * resolved relative to this CSS file (which lives in the package's dist).
4
+ * This file ships ONLY custom rules that cannot be expressed as Tailwind
5
+ * utilities (container queries, has-selectors, data-attribute overrides,
6
+ * markdown styling). The Tailwind utility classes used by the package's
7
+ * React components are generated by the consumer's Tailwind v4 build
8
+ * see the README "Setup" section for the required @source directives.
11
9
  *
12
10
  * Theme tokens (--background, --foreground, --primary, ...) must be defined
13
11
  * by the consumer following shadcn conventions, plus a Tailwind @theme inline
@@ -15,8 +13,6 @@
15
13
  * like bg-background to resolve.
16
14
  */
17
15
 
18
- @source "./**/*.js";
19
-
20
16
  @container (width >= 48rem) {
21
17
  .\@3xl\:hidden { display: none; }
22
18
  .\@3xl\:flex { display: flex; }
@@ -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.7.9",
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",
@@ -153,6 +153,7 @@
153
153
  "@docyrus/ui-pro-shared": ">=0.0.5",
154
154
  "react": "19.2.4",
155
155
  "react-dom": "19.2.4",
156
+ "tailwindcss": "^4.0.0",
156
157
  "vite": ">=5.0.0"
157
158
  },
158
159
  "peerDependenciesMeta": {