teodor-new-chat-ui 4.3.343 → 4.3.344
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/components/chat/message-components/StreamComponent.d.ts +8 -0
- package/dist/components/chat/message-components/ToolComponent.d.ts +7 -0
- package/dist/components/chat/message-components/index.d.ts +3 -2
- package/dist/components/ui/resizable.d.ts +1 -1
- package/dist/context/reducers/MessageReducer.d.ts +1 -0
- package/dist/index.esm.js +4572 -4489
- package/dist/index.umd.js +42 -37
- package/dist/lib/index.d.ts +1 -1
- package/dist/types/events.d.ts +10 -1
- package/package.json +1 -1
- package/dist/components/chat/message-components/ToolMessage.d.ts +0 -7
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChatMessage } from "@/types/api";
|
|
2
|
+
interface StreamComponentProps {
|
|
3
|
+
message: ChatMessage;
|
|
4
|
+
viewMode: "preview" | "expanded";
|
|
5
|
+
isStreaming?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function StreamComponent({ message, viewMode, isStreaming }: StreamComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ChatMessage } from "@/types/api";
|
|
2
|
+
interface ToolComponentProps {
|
|
3
|
+
message: ChatMessage;
|
|
4
|
+
viewMode: "preview" | "expanded";
|
|
5
|
+
}
|
|
6
|
+
export declare function ToolComponent({ message, viewMode }: ToolComponentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { ArtifactPreviewItem } from "./ArtifactPreviewItem";
|
|
2
|
-
export { SimpleJsonView } from "./SimpleJsonView";
|
|
3
2
|
export { InterruptPartRenderer } from "./InterruptPartRenderer";
|
|
3
|
+
export { SimpleJsonView } from "./SimpleJsonView";
|
|
4
|
+
export { StreamComponent } from "./StreamComponent";
|
|
5
|
+
export { ToolComponent } from "./ToolComponent";
|
|
4
6
|
export { useFilePreview } from "./useFilePreview";
|
|
5
7
|
export { UserTextContent } from "./UserTextContent";
|
|
6
|
-
export { ToolMessage } from "./ToolMessage";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
2
2
|
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLTextAreaElement | HTMLFormElement | HTMLDivElement | HTMLObjectElement | HTMLDataElement | HTMLHeadElement | HTMLLinkElement | HTMLBodyElement | HTMLMapElement | HTMLMetaElement | HTMLLabelElement | HTMLSourceElement | HTMLOutputElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLAnchorElement | HTMLHeadingElement | HTMLInputElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMeterElement | HTMLOptGroupElement | HTMLPreElement |
|
|
3
|
+
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLTextAreaElement | HTMLFormElement | HTMLDivElement | HTMLObjectElement | HTMLProgressElement | HTMLDataElement | HTMLHeadElement | HTMLLinkElement | HTMLBodyElement | HTMLMapElement | HTMLMetaElement | HTMLLabelElement | HTMLSourceElement | HTMLOutputElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLAnchorElement | HTMLHeadingElement | HTMLInputElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMeterElement | HTMLOptGroupElement | HTMLPreElement | HTMLScriptElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLMenuElement | HTMLTableCaptionElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
collapsedSize?: number | undefined;
|
|
6
6
|
collapsible?: boolean | undefined;
|