@docyrus/ui-pro-ai-assistant 0.1.2 → 0.1.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.
@@ -1,30 +1,5 @@
1
- import { type RefCallback, type RefObject } from 'react';
2
1
  import { type PlateEditor } from 'platejs/react';
3
- export declare const aiChatPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"aiChat", {
4
- contentRef: (RefObject<HTMLElement | null> & RefCallback<HTMLElement>) | null;
5
- scrollRef: (RefObject<HTMLElement | null> & RefCallback<HTMLElement>) | null;
6
- } & {
7
- _blockChunks: string;
8
- _blockPath: import("platejs").Path | null;
9
- _mdxName: string | null;
10
- _replaceIds: string[];
11
- aiEditor: import("platejs").SlateEditor | null;
12
- chat: import("@ai-sdk/react").UseChatHelpers<import("ai").UIMessage<{}, {
13
- toolName: "edit" | "comment" | "generate";
14
- comment?: {
15
- blockId: string;
16
- comment: string;
17
- content: string;
18
- };
19
- }, import("ai").UITools>>;
20
- chatNodes: import("platejs").TIdElement[];
21
- chatSelection: import("platejs").TRange | null;
22
- experimental_lastTextId: string | null;
23
- mode: import("@platejs/ai").AIMode;
24
- open: boolean;
25
- streaming: boolean;
26
- toolName: import("@platejs/ai").AIToolName;
27
- } & import("@platejs/combobox").TriggerComboboxPluginOptions, {
2
+ export declare const aiChatPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"aiChat", any, {
28
3
  aiChat: {
29
4
  reset: import("platejs").OmitFirst<(editor: PlateEditor, { undo }?: {
30
5
  undo?: boolean;
@@ -1,7 +1,6 @@
1
- import { createLowlight } from 'lowlight';
2
1
  export declare const BaseCodeBlockKit: (import("platejs").SlatePlugin<import("platejs").PluginConfig<any, {}, {}, {}, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"code_block", {
3
2
  defaultLanguage?: string | null;
4
- lowlight?: ReturnType<typeof createLowlight> | null;
3
+ lowlight?: ReturnType<any> | null;
5
4
  }, {}, Record<"code_block", {
6
5
  toggle: () => void;
7
6
  }>, {}>> | import("platejs").SlatePlugin<import("platejs").PluginConfig<"code_syntax", {}, {}, {}, {}>>)[];
@@ -1,7 +1,6 @@
1
- import { createLowlight } from 'lowlight';
2
1
  export declare const CodeBlockKit: (import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code_block", {
3
2
  defaultLanguage?: string | null;
4
- lowlight?: ReturnType<typeof createLowlight> | null;
3
+ lowlight?: ReturnType<any> | null;
5
4
  }, {}, Record<"code_block", {
6
5
  toggle: () => void;
7
6
  }>, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<any, {}, {}, {}, {}>> | import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"code_syntax", {}, {}, {}, {}>>)[];
@@ -41,7 +41,7 @@ export interface InlineModeProps extends AssistantViewCommonProps {
41
41
  enableSidebar?: boolean;
42
42
  isSidebarOpen?: boolean;
43
43
  onToggleSidebar?: () => void;
44
- renderSidebar?: () => ReactNode;
44
+ renderSidebar?: (isFloating?: boolean) => ReactNode;
45
45
  activeTab?: number;
46
46
  onTabChange?: (tab: number) => void;
47
47
  onExpand?: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docyrus/ui-pro-ai-assistant",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
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",
@@ -26,12 +26,18 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
+ "scripts": {
30
+ "build": "tsup && (tsc -p tsconfig.dts.json || true) && tailwindcss -i src/styles.css -o dist/styles.css",
31
+ "dev": "tsup --watch",
32
+ "typecheck": "tsc --noEmit",
33
+ "lint": "eslint src/"
34
+ },
29
35
  "dependencies": {
30
- "@ai-sdk/react": "3.0.110",
36
+ "@ai-sdk/react": "catalog:",
31
37
  "@ariakit/react": "0.4.21",
32
- "@codesandbox/sandpack-react": "2.20.0",
38
+ "@codesandbox/sandpack-react": "catalog:",
33
39
  "@emoji-mart/data": "1.2.1",
34
- "@lottiefiles/dotlottie-react": "0.18.3",
40
+ "@lottiefiles/dotlottie-react": "catalog:",
35
41
  "@platejs/ai": "52.3.1",
36
42
  "@platejs/autoformat": "52.0.11",
37
43
  "@platejs/basic-nodes": "52.0.11",
@@ -99,18 +105,18 @@
99
105
  "@univerjs/thread-comment-ui": "0.16.1",
100
106
  "@univerjs/ui": "0.16.1",
101
107
  "@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",
108
+ "@visactor/vchart": "catalog:",
109
+ "@visactor/vtable": "catalog:",
110
+ "@visactor/vtable-plugins": "catalog:",
111
+ "ai": "catalog:",
106
112
  "class-variance-authority": "0.7.1",
107
113
  "cmdk": "1.1.1",
108
114
  "date-fns": "4.1.0",
109
115
  "html2canvas-pro": "1.6.7",
110
116
  "jotai-x": "2.3.3",
111
117
  "lowlight": "3.3.0",
112
- "lucide-react": "0.576.0",
113
- "mermaid": "11.12.3",
118
+ "lucide-react": "catalog:",
119
+ "mermaid": "catalog:",
114
120
  "pdf-lib": "1.17.1",
115
121
  "platejs": "^52.3.2",
116
122
  "radix-ui": "1.4.3",
@@ -119,31 +125,31 @@
119
125
  "react-dnd-html5-backend": "16.0.1",
120
126
  "react-lite-youtube-embed": "3.5.1",
121
127
  "react-player": "3.4.0",
122
- "recharts": "2.15.4",
128
+ "recharts": "catalog:",
123
129
  "remark-gfm": "4.0.1",
124
130
  "remark-math": "6.0.0",
125
131
  "scroll-into-view-if-needed": "3.1.0",
126
- "sonner": "2.0.7",
132
+ "sonner": "catalog:",
127
133
  "use-file-picker": "2.1.4",
128
134
  "use-stick-to-bottom": "1.1.3",
129
135
  "vaul": "1.1.2",
130
136
  "xlsx": "0.18.5"
131
137
  },
132
138
  "devDependencies": {
139
+ "@docyrus/ui-pro-shared": "workspace:*",
133
140
  "@tailwindcss/cli": "^4.2.1",
134
141
  "@types/node": "25.3.3",
135
- "@types/react": "19.2.14",
136
- "@types/react-dom": "19.2.3",
137
- "tailwindcss": "4.2.1",
138
- "tsup": "8.5.1",
139
- "typescript": "5.9.3",
140
- "@docyrus/ui-pro-shared": "0.0.1"
142
+ "@types/react": "catalog:",
143
+ "@types/react-dom": "catalog:",
144
+ "tailwindcss": "catalog:",
145
+ "tsup": "catalog:",
146
+ "typescript": "catalog:"
141
147
  },
142
148
  "peerDependencies": {
143
149
  "@docyrus/api-client": ">=0.1.0",
144
150
  "@docyrus/ui-pro-shared": ">=0.0.1",
145
- "react": "19.2.4",
146
- "react-dom": "19.2.4",
151
+ "react": "catalog:",
152
+ "react-dom": "catalog:",
147
153
  "vite": ">=5.0.0"
148
154
  },
149
155
  "peerDependenciesMeta": {
@@ -154,11 +160,5 @@
154
160
  "publishConfig": {
155
161
  "access": "public"
156
162
  },
157
- "license": "MIT",
158
- "scripts": {
159
- "build": "tsup && (tsc -p tsconfig.dts.json || true) && tailwindcss -i src/styles.css -o dist/styles.css",
160
- "dev": "tsup --watch",
161
- "typecheck": "tsc --noEmit",
162
- "lint": "eslint src/"
163
- }
164
- }
163
+ "license": "MIT"
164
+ }