teodor-new-chat-ui 4.3.728 → 4.3.730
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/ui/button.d.ts +1 -1
- package/dist/components/ui/command.d.ts +7 -7
- package/dist/components/ui/resizable.d.ts +1 -1
- package/dist/features/conversation/contexts/ChatUIContext.d.ts +1 -1
- package/dist/features/conversation/messages/components/{AssistantMessageComponent.d.ts → AssistantMessage.d.ts} +2 -2
- package/dist/features/conversation/messages/components/{SystemMessageComponent.d.ts → SystemMessage.d.ts} +2 -2
- package/dist/features/conversation/messages/components/{UserMessageComponent.d.ts → UserMessage.d.ts} +2 -2
- package/dist/features/conversation/messages/components/index.d.ts +4 -0
- package/dist/features/conversation/messages/index.d.ts +1 -4
- package/dist/features/conversation/messages/renderers/index.d.ts +11 -11
- package/dist/features/conversation/messages/renderers/{tool → tooling}/timeline/ToolCallCard.d.ts +1 -1
- package/dist/features/conversation/messages/types/system.d.ts +1 -1
- package/dist/features/conversation/messages/utils/index.d.ts +4 -5
- package/dist/features/conversation/messages/utils/messageUtils.d.ts +0 -1
- package/dist/features/conversation/modals/ToolDetailsModal.d.ts +1 -1
- package/dist/features/persistence/checkpoints/utils/historyUtils.d.ts +0 -5
- package/dist/index.esm.js +7054 -7153
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +42 -42
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/index.d.ts +3 -5
- package/dist/{features/conversation/messages → shared/core}/utils/guards.d.ts +4 -5
- package/dist/shared/core/utils/index.d.ts +7 -0
- package/dist/shared/core/utils/normalizationUtils.d.ts +5 -1
- package/dist/shared/core/utils/toolFormatting.d.ts +8 -0
- package/dist/shared/ui/components/button.d.ts +1 -1
- package/dist/shared/ui/components/command.d.ts +7 -7
- package/dist/shared/utils/jsonUtils.d.ts +7 -1
- package/dist/types/domain/streaming.d.ts +2 -0
- package/dist/types/domain/tools.d.ts +9 -1
- package/package.json +1 -1
- package/dist/features/conversation/messages/utils/toolPayloadUtils.d.ts +0 -7
- /package/dist/features/conversation/messages/renderers/{content → compositions}/InteractiveContent.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{content → compositions}/SharedContent.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{user → interactive}/InterruptPartRenderer.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{shared → interactive}/ThinkingIndicator.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{content → text}/SimpleJsonView.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{user → text}/UserTextContent.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{markdown → text/markdown}/MarkdownContent.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{markdown → text/markdown}/index.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{content → tooling}/ToolContent.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{tool → tooling}/artifacts/ArtifactProgress.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{tool → tooling}/artifacts/ArtifactRenderer.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{tool → tooling}/artifacts/ArtifactTypes/PlotArtifact.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{tool → tooling}/timeline/ToolProgress.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{tool → tooling}/timeline/types.d.ts +0 -0
- /package/dist/features/conversation/messages/renderers/{tool → tooling}/timeline/utils.d.ts +0 -0
- /package/dist/{features/conversation/messages → shared/core}/utils/metaUtils.d.ts +0 -0
- /package/dist/{features/conversation/messages → shared/core}/utils/parsers.d.ts +0 -0
- /package/dist/{features/conversation/messages → shared/core}/utils/toolCallUtils.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -6,7 +6,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
6
6
|
ref?: React.Ref<HTMLDivElement>;
|
|
7
7
|
} & {
|
|
8
8
|
asChild?: boolean;
|
|
9
|
-
}, "
|
|
9
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
10
|
label?: string;
|
|
11
11
|
shouldFilter?: boolean;
|
|
12
12
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -22,7 +22,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
22
22
|
ref?: React.Ref<HTMLInputElement>;
|
|
23
23
|
} & {
|
|
24
24
|
asChild?: boolean;
|
|
25
|
-
}, "
|
|
25
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
26
26
|
value?: string;
|
|
27
27
|
onValueChange?: (search: string) => void;
|
|
28
28
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -32,7 +32,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
32
32
|
ref?: React.Ref<HTMLDivElement>;
|
|
33
33
|
} & {
|
|
34
34
|
asChild?: boolean;
|
|
35
|
-
}, "
|
|
35
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
36
36
|
label?: string;
|
|
37
37
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
38
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -41,14 +41,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
41
41
|
ref?: React.Ref<HTMLDivElement>;
|
|
42
42
|
} & {
|
|
43
43
|
asChild?: boolean;
|
|
44
|
-
}, "
|
|
44
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
45
45
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
46
46
|
children?: React.ReactNode;
|
|
47
47
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
48
48
|
ref?: React.Ref<HTMLDivElement>;
|
|
49
49
|
} & {
|
|
50
50
|
asChild?: boolean;
|
|
51
|
-
}, "
|
|
51
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
52
52
|
heading?: React.ReactNode;
|
|
53
53
|
value?: string;
|
|
54
54
|
forceMount?: boolean;
|
|
@@ -57,7 +57,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
57
57
|
ref?: React.Ref<HTMLDivElement>;
|
|
58
58
|
} & {
|
|
59
59
|
asChild?: boolean;
|
|
60
|
-
}, "
|
|
60
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
61
61
|
alwaysRender?: boolean;
|
|
62
62
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
63
63
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -66,7 +66,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
66
66
|
ref?: React.Ref<HTMLDivElement>;
|
|
67
67
|
} & {
|
|
68
68
|
asChild?: boolean;
|
|
69
|
-
}, "
|
|
69
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
70
70
|
disabled?: boolean;
|
|
71
71
|
onSelect?: (value: string) => void;
|
|
72
72
|
value?: string;
|
|
@@ -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<
|
|
3
|
+
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLAnchorElement | HTMLDivElement | HTMLParagraphElement | HTMLImageElement | HTMLSpanElement | HTMLPreElement | HTMLUListElement | HTMLLIElement | HTMLHeadingElement | HTMLTimeElement | HTMLObjectElement | HTMLSourceElement | HTMLDataElement | HTMLLinkElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLOptionElement | HTMLTableElement | HTMLMapElement | HTMLHeadElement | HTMLBodyElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOutputElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLMenuElement | HTMLTableCaptionElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
collapsedSize?: number | undefined;
|
|
6
6
|
collapsible?: boolean | undefined;
|
|
@@ -3,7 +3,7 @@ import type { ChatMessage, RespondToInterruptOptions, ToolConfig, PendingInterru
|
|
|
3
3
|
import type { MessageBubbleProps } from "../messages/components/MessageBubble";
|
|
4
4
|
import type { EditMeta } from "@/features/persistence/checkpoints/types";
|
|
5
5
|
import type { CheckpointIndex } from "@/features/persistence/checkpoints/utils/checkpointIndex";
|
|
6
|
-
import type { ToolCallWithResult } from "
|
|
6
|
+
import type { ToolCallWithResult } from "@/types";
|
|
7
7
|
export interface ChatUIContextValue {
|
|
8
8
|
layoutSize: "phone" | "tablet" | "desktop" | "half-screen";
|
|
9
9
|
customStyles: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChatMessage, RespondToInterruptOptions, ToolConfig } from "@/types";
|
|
2
|
-
export interface
|
|
2
|
+
export interface AssistantMessageProps {
|
|
3
3
|
message: ChatMessage;
|
|
4
4
|
messageIndex: number;
|
|
5
5
|
isStreamingMessage?: boolean;
|
|
@@ -33,4 +33,4 @@ export interface AssistantMessageComponentProps {
|
|
|
33
33
|
/** Force a specific agent name */
|
|
34
34
|
forceAgentName?: string;
|
|
35
35
|
}
|
|
36
|
-
export declare const
|
|
36
|
+
export declare const AssistantMessage: import("react").NamedExoticComponent<AssistantMessageProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChatMessage } from "@/types";
|
|
2
|
-
export interface
|
|
2
|
+
export interface SystemMessageProps {
|
|
3
3
|
message: ChatMessage;
|
|
4
4
|
layoutSize?: "phone" | "tablet" | "desktop" | "half-screen";
|
|
5
5
|
customStyles?: {
|
|
@@ -7,4 +7,4 @@ export interface SystemMessageComponentProps {
|
|
|
7
7
|
content?: string;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const SystemMessage: import("react").NamedExoticComponent<SystemMessageProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ChatMessage } from "@/types";
|
|
2
2
|
import type { EditMeta } from "@/features/persistence/checkpoints/types";
|
|
3
3
|
import type { CheckpointIndex } from "@/features/persistence";
|
|
4
|
-
export interface
|
|
4
|
+
export interface UserMessageProps {
|
|
5
5
|
message: ChatMessage;
|
|
6
6
|
messageIndex: number;
|
|
7
7
|
layoutSize?: "phone" | "tablet" | "desktop" | "half-screen";
|
|
@@ -18,4 +18,4 @@ export interface UserMessageComponentProps {
|
|
|
18
18
|
actions?: string;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const UserMessage: import("react").NamedExoticComponent<UserMessageProps>;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export * from "./components
|
|
2
|
-
export * from "./components/AssistantMessageComponent";
|
|
3
|
-
export * from "./components/SystemMessageComponent";
|
|
4
|
-
export * from "./components/MessageBubble";
|
|
1
|
+
export * from "./components";
|
|
5
2
|
export * from "./renderers";
|
|
6
3
|
export * from "./hooks";
|
|
7
4
|
export * from "./utils";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { ArtifactRenderer } from "./
|
|
2
|
-
export { ArtifactProgress } from "./
|
|
3
|
-
export { SimpleJsonView } from "./
|
|
4
|
-
export { ToolContent } from "./
|
|
5
|
-
export type { ToolRendererMap, ToolArtifactRendererMap, ToolRenderer, ToolArtifactRenderer, ToolRendererContext, ToolConfig, BuildToolConfigOptions } from "./
|
|
6
|
-
export { ToolProgress } from "./
|
|
7
|
-
export { ToolCallCard } from "./
|
|
8
|
-
export { InterruptPartRenderer } from "./
|
|
9
|
-
export { ThinkingIndicator } from "./
|
|
10
|
-
export { UserTextContent } from "./
|
|
1
|
+
export { ArtifactRenderer } from "./tooling/artifacts/ArtifactRenderer";
|
|
2
|
+
export { ArtifactProgress } from "./tooling/artifacts/ArtifactProgress";
|
|
3
|
+
export { SimpleJsonView } from "./text/SimpleJsonView";
|
|
4
|
+
export { ToolContent } from "./tooling/ToolContent";
|
|
5
|
+
export type { ToolRendererMap, ToolArtifactRendererMap, ToolRenderer, ToolArtifactRenderer, ToolRendererContext, ToolConfig, BuildToolConfigOptions } from "./tooling/ToolContent";
|
|
6
|
+
export { ToolProgress } from "./tooling/timeline/ToolProgress";
|
|
7
|
+
export { ToolCallCard } from "./tooling/timeline/ToolCallCard";
|
|
8
|
+
export { InterruptPartRenderer } from "./interactive/InterruptPartRenderer";
|
|
9
|
+
export { ThinkingIndicator } from "./interactive/ThinkingIndicator";
|
|
10
|
+
export { UserTextContent } from "./text/UserTextContent";
|
|
11
11
|
export { MessageHeader } from "./MessageHeader";
|
|
12
|
-
export { MarkdownContent } from "./markdown";
|
|
12
|
+
export { MarkdownContent } from "./text/markdown";
|
|
@@ -3,7 +3,7 @@ import type { ChatMessage, TextPart } from "@/types";
|
|
|
3
3
|
* System Message
|
|
4
4
|
* Typically contains instructions or context for the model.
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface SystemMessageModel extends ChatMessage {
|
|
7
7
|
role: "system";
|
|
8
8
|
content: Array<TextPart>;
|
|
9
9
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
export * from "
|
|
3
|
-
export * from "
|
|
1
|
+
export * from "@/shared/core/utils/guards";
|
|
2
|
+
export * from "@/shared/core/utils/parsers";
|
|
3
|
+
export * from "@/shared/core/utils/metaUtils";
|
|
4
4
|
export * from "./artifactUtils";
|
|
5
5
|
export * from "./messageUtils";
|
|
6
|
-
export * from "
|
|
7
|
-
export * from "./toolCallUtils";
|
|
6
|
+
export * from "@/shared/core/utils/toolCallUtils";
|
|
@@ -21,7 +21,6 @@ export declare function formatToolOutput(x: any): {
|
|
|
21
21
|
isMarkdown: boolean;
|
|
22
22
|
};
|
|
23
23
|
export { parseJsonSafe, looksLikeMarkdown } from "@/shared/utils/jsonUtils";
|
|
24
|
-
export { extractToolContent } from "@/features/persistence/checkpoints/utils/historyUtils";
|
|
25
24
|
import type { ChatMessage, MessagePart } from "@/types";
|
|
26
25
|
/**
|
|
27
26
|
* Stringify tool call parts for display/debugging
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import type { HistoryPayload, HydratedCheckpointSnapshot, PendingInterrupt } from "@/types";
|
|
2
|
-
/**
|
|
3
|
-
* Extract content from tool output, handling wrapped formats like content="..."
|
|
4
|
-
* Used during message normalization to unwrap nested content structures
|
|
5
|
-
*/
|
|
6
|
-
export declare function extractToolContent(x: any): any;
|
|
7
2
|
export type HistoryHydrationResult = {
|
|
8
3
|
threadId: string;
|
|
9
4
|
latest: HydratedCheckpointSnapshot | null;
|