@docyrus/ui-pro-ai-assistant 0.0.3 → 0.0.5

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.
@@ -174,8 +174,8 @@ export interface Memory {
174
174
  tenantAiAgentId?: string | null;
175
175
  }
176
176
  export interface DocyAssistantProps {
177
- open: boolean;
178
- onOpenChange: (open: boolean) => void;
177
+ isOpen?: boolean;
178
+ onClose?: () => void;
179
179
  supportWebSearch?: boolean;
180
180
  supportThinking?: boolean;
181
181
  supportFiles?: boolean;
@@ -201,7 +201,6 @@ export interface DocyAssistantProps {
201
201
  enableMicrophone?: boolean;
202
202
  maxMessages?: number;
203
203
  tenantAiAgentId: string;
204
- deploymentId?: string;
205
204
  onMessageSend?: (message: string) => void;
206
205
  onVoiceStart?: () => void;
207
206
  onVoiceEnd?: () => void;
@@ -210,5 +209,6 @@ export interface DocyAssistantProps {
210
209
  hideExpand?: boolean;
211
210
  agentSelectorUrl?: string;
212
211
  baseAgentSelectorUrl?: string;
212
+ /** Called after agent selection is persisted internally, for external notification only */
213
213
  onAgentChange?: (agentId: string, agentType: 'base' | 'deployment') => void;
214
214
  }
@@ -35,8 +35,8 @@ interface AssistantViewCommonProps {
35
35
  }
36
36
  export interface InlineModeProps extends AssistantViewCommonProps {
37
37
  mode: 'inline';
38
- open: boolean;
39
- onOpenChange: (open: boolean) => void;
38
+ isOpen?: boolean;
39
+ onClose?: () => void;
40
40
  className?: string;
41
41
  enableSidebar?: boolean;
42
42
  isSidebarOpen?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docyrus/ui-pro-ai-assistant",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
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",
@@ -20,25 +20,18 @@
20
20
  "./worker": {
21
21
  "types": "./dist/worker.d.ts",
22
22
  "default": "./dist/worker.js"
23
- }
23
+ },
24
+ "./styles.css": "./dist/styles.css"
24
25
  },
25
26
  "files": [
26
27
  "dist"
27
28
  ],
28
29
  "dependencies": {
29
30
  "@ai-sdk/react": "3.0.110",
30
- "@codesandbox/sandpack-react": "2.20.0",
31
- "@lottiefiles/dotlottie-react": "0.18.3",
32
- "@visactor/vchart": "2.0.17",
33
- "@visactor/vtable": "1.23.2",
34
- "@visactor/vtable-plugins": "1.23.2",
35
- "ai": "6.0.108",
36
- "lucide-react": "0.576.0",
37
- "mermaid": "11.12.3",
38
- "recharts": "2.15.4",
39
- "sonner": "2.0.7",
40
31
  "@ariakit/react": "0.4.21",
32
+ "@codesandbox/sandpack-react": "2.20.0",
41
33
  "@emoji-mart/data": "1.2.1",
34
+ "@lottiefiles/dotlottie-react": "0.18.3",
42
35
  "@platejs/ai": "52.3.1",
43
36
  "@platejs/autoformat": "52.0.11",
44
37
  "@platejs/basic-nodes": "52.0.11",
@@ -71,26 +64,6 @@
71
64
  "@platejs/table": "52.0.11",
72
65
  "@platejs/toc": "52.0.11",
73
66
  "@platejs/toggle": "52.0.11",
74
- "class-variance-authority": "0.7.1",
75
- "cmdk": "1.1.1",
76
- "date-fns": "4.1.0",
77
- "html2canvas-pro": "1.6.7",
78
- "jotai-x": "2.3.3",
79
- "lowlight": "3.3.0",
80
- "pdf-lib": "1.17.1",
81
- "platejs": "^52.3.2",
82
- "radix-ui": "1.4.3",
83
- "react-day-picker": "9.14.0",
84
- "react-dnd": "16.0.1",
85
- "react-dnd-html5-backend": "16.0.1",
86
- "react-lite-youtube-embed": "3.5.1",
87
- "react-player": "3.4.0",
88
- "remark-gfm": "4.0.1",
89
- "remark-math": "6.0.0",
90
- "scroll-into-view-if-needed": "3.1.0",
91
- "use-file-picker": "2.1.4",
92
- "use-stick-to-bottom": "1.1.3",
93
- "vaul": "1.1.2",
94
67
  "@univerjs/core": "0.16.1",
95
68
  "@univerjs/design": "0.16.1",
96
69
  "@univerjs/docs": "0.16.1",
@@ -126,14 +99,44 @@
126
99
  "@univerjs/thread-comment-ui": "0.16.1",
127
100
  "@univerjs/ui": "0.16.1",
128
101
  "@univerjs/watermark": "0.16.1",
102
+ "@visactor/vchart": "2.0.17",
103
+ "@visactor/vtable": "1.23.2",
104
+ "@visactor/vtable-plugins": "1.23.2",
105
+ "ai": "6.0.108",
106
+ "class-variance-authority": "0.7.1",
107
+ "cmdk": "1.1.1",
108
+ "date-fns": "4.1.0",
109
+ "html2canvas-pro": "1.6.7",
110
+ "jotai-x": "2.3.3",
111
+ "lowlight": "3.3.0",
112
+ "lucide-react": "0.576.0",
113
+ "mermaid": "11.12.3",
114
+ "pdf-lib": "1.17.1",
115
+ "platejs": "^52.3.2",
116
+ "radix-ui": "1.4.3",
117
+ "react-day-picker": "9.14.0",
118
+ "react-dnd": "16.0.1",
119
+ "react-dnd-html5-backend": "16.0.1",
120
+ "react-lite-youtube-embed": "3.5.1",
121
+ "react-player": "3.4.0",
122
+ "recharts": "2.15.4",
123
+ "remark-gfm": "4.0.1",
124
+ "remark-math": "6.0.0",
125
+ "scroll-into-view-if-needed": "3.1.0",
126
+ "sonner": "2.0.7",
127
+ "use-file-picker": "2.1.4",
128
+ "use-stick-to-bottom": "1.1.3",
129
+ "vaul": "1.1.2",
129
130
  "xlsx": "0.18.5"
130
131
  },
131
132
  "devDependencies": {
133
+ "@tailwindcss/cli": "^4.2.1",
134
+ "@types/node": "25.3.3",
132
135
  "@types/react": "19.2.14",
133
136
  "@types/react-dom": "19.2.3",
137
+ "tailwindcss": "4.2.1",
134
138
  "tsup": "8.5.1",
135
139
  "typescript": "5.9.3",
136
- "@types/node": "25.3.3",
137
140
  "@docyrus/ui-pro-shared": "0.0.1"
138
141
  },
139
142
  "peerDependencies": {
@@ -153,7 +156,7 @@
153
156
  },
154
157
  "license": "MIT",
155
158
  "scripts": {
156
- "build": "tsup && (tsc -p tsconfig.dts.json || true)",
159
+ "build": "tsup && (tsc -p tsconfig.dts.json || true) && tailwindcss -i src/styles.css -o dist/styles.css",
157
160
  "dev": "tsup --watch",
158
161
  "typecheck": "tsc --noEmit",
159
162
  "lint": "eslint src/"