@docyrus/ui-pro-ai-assistant 0.1.6 → 0.1.8
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,5 +1,34 @@
|
|
|
1
|
+
import { type RefCallback, type RefObject } from 'react';
|
|
1
2
|
import { type PlateEditor } from 'platejs/react';
|
|
2
|
-
export declare const aiChatPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"aiChat",
|
|
3
|
+
export declare const aiChatPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"aiChat", {
|
|
4
|
+
chatOptions: {
|
|
5
|
+
api?: string;
|
|
6
|
+
body?: Record<string, unknown>;
|
|
7
|
+
};
|
|
8
|
+
contentRef: (RefObject<HTMLElement | null> & RefCallback<HTMLElement>) | null;
|
|
9
|
+
scrollRef: (RefObject<HTMLElement | null> & RefCallback<HTMLElement>) | null;
|
|
10
|
+
} & {
|
|
11
|
+
_blockChunks: string;
|
|
12
|
+
_blockPath: import("platejs").Path | null;
|
|
13
|
+
_mdxName: string | null;
|
|
14
|
+
_replaceIds: string[];
|
|
15
|
+
aiEditor: import("platejs").SlateEditor | null;
|
|
16
|
+
chat: import("@ai-sdk/react").UseChatHelpers<import("ai").UIMessage<{}, {
|
|
17
|
+
toolName: "edit" | "comment" | "generate";
|
|
18
|
+
comment?: {
|
|
19
|
+
blockId: string;
|
|
20
|
+
comment: string;
|
|
21
|
+
content: string;
|
|
22
|
+
};
|
|
23
|
+
}, import("ai").UITools>>;
|
|
24
|
+
chatNodes: import("platejs").TIdElement[];
|
|
25
|
+
chatSelection: import("platejs").TRange | null;
|
|
26
|
+
experimental_lastTextId: string | null;
|
|
27
|
+
mode: import("@platejs/ai").AIMode;
|
|
28
|
+
open: boolean;
|
|
29
|
+
streaming: boolean;
|
|
30
|
+
toolName: import("@platejs/ai").AIToolName;
|
|
31
|
+
} & import("@platejs/combobox").TriggerComboboxPluginOptions, {
|
|
3
32
|
aiChat: {
|
|
4
33
|
reset: import("platejs").OmitFirst<(editor: PlateEditor, { undo }?: {
|
|
5
34
|
undo?: boolean;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -207,6 +207,10 @@ export interface DocyAssistantProps {
|
|
|
207
207
|
className?: string;
|
|
208
208
|
defaultFullscreen?: boolean;
|
|
209
209
|
hideExpand?: boolean;
|
|
210
|
+
/** Hide the close (X) button in the header */
|
|
211
|
+
hideCloseButton?: boolean;
|
|
212
|
+
/** Hide the agent selector dropdown in the input area; shows agent name as static text instead */
|
|
213
|
+
hideAgentSelector?: boolean;
|
|
210
214
|
agentSelectorUrl?: string;
|
|
211
215
|
baseAgentSelectorUrl?: string;
|
|
212
216
|
/** Called after agent selection is persisted internally, for external notification only */
|
|
@@ -53,6 +53,8 @@ export interface InlineModeProps extends AssistantViewCommonProps {
|
|
|
53
53
|
renderWorksView?: () => ReactNode;
|
|
54
54
|
renderMemoriesView?: () => ReactNode;
|
|
55
55
|
renderThreadHeader?: () => ReactNode;
|
|
56
|
+
hideCloseButton?: boolean;
|
|
57
|
+
hideAgentSelector?: boolean;
|
|
56
58
|
agentSelectorUrl?: string;
|
|
57
59
|
baseAgentSelectorUrl?: string;
|
|
58
60
|
onAgentChange?: (agentId: string, agentType: 'base' | 'deployment') => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docyrus/ui-pro-ai-assistant",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
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",
|
|
@@ -137,11 +137,11 @@
|
|
|
137
137
|
"tailwindcss": "4.2.1",
|
|
138
138
|
"tsup": "8.5.1",
|
|
139
139
|
"typescript": "5.9.3",
|
|
140
|
-
"@docyrus/ui-pro-shared": "0.0.
|
|
140
|
+
"@docyrus/ui-pro-shared": "0.0.2"
|
|
141
141
|
},
|
|
142
142
|
"peerDependencies": {
|
|
143
143
|
"@docyrus/api-client": ">=0.1.0",
|
|
144
|
-
"@docyrus/ui-pro-shared": ">=0.0.
|
|
144
|
+
"@docyrus/ui-pro-shared": ">=0.0.2",
|
|
145
145
|
"react": "19.2.4",
|
|
146
146
|
"react-dom": "19.2.4",
|
|
147
147
|
"vite": ">=5.0.0"
|