@docyrus/ui-pro-ai-assistant 0.1.2 → 0.1.3
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,6 +1,10 @@
|
|
|
1
1
|
import { type RefCallback, type RefObject } from 'react';
|
|
2
2
|
import { type PlateEditor } from 'platejs/react';
|
|
3
3
|
export declare const aiChatPlugin: import("platejs/react").PlatePlugin<import("platejs").PluginConfig<"aiChat", {
|
|
4
|
+
chatOptions: {
|
|
5
|
+
api?: string;
|
|
6
|
+
body?: Record<string, unknown>;
|
|
7
|
+
};
|
|
4
8
|
contentRef: (RefObject<HTMLElement | null> & RefCallback<HTMLElement>) | null;
|
|
5
9
|
scrollRef: (RefObject<HTMLElement | null> & RefCallback<HTMLElement>) | null;
|
|
6
10
|
} & {
|
|
@@ -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