teodor-new-chat-ui 4.3.496 → 4.3.498

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,7 +1,7 @@
1
1
  /**
2
2
  * Message Component - With truncatable tool messages and responsive design
3
3
  */
4
- import type { ChatMessage, DefaultMessage } from "@/types";
4
+ import type { ChatMessage, DefaultMessage, RespondToInterruptOptions } from "@/types";
5
5
  import type { CheckpointMeta, EditMeta } from "@/features/checkpoint/types";
6
6
  import type { ToolRendererMap, ToolArtifactRendererMap } from "./ToolComponent";
7
7
  export interface MessageComponentProps {
@@ -31,6 +31,7 @@ export interface MessageComponentProps {
31
31
  onRegenerate?: (messageIndex: number) => void;
32
32
  onCancelEdit?: () => void;
33
33
  onCopy?: (content: string) => void;
34
+ getInterruptOptions?: (message: ChatMessage) => RespondToInterruptOptions | undefined;
34
35
  attemptCount?: number;
35
36
  attemptIndex?: number;
36
37
  onSelectCheckpoint?: (checkpointId: string | null, parentCheckpointId?: string | null, isLatest?: boolean) => Promise<void> | void;
@@ -1,4 +1,4 @@
1
- import type { ChatMessage, DefaultMessage } from "@/types";
1
+ import type { ChatMessage, DefaultMessage, RespondToInterruptOptions } from "@/types";
2
2
  import type { EditMeta, TimelineCheckpoint } from "@/features/checkpoint/types";
3
3
  import type { CheckpointIndex } from "@/features/checkpoint/utils/checkpointIndex";
4
4
  import React from "react";
@@ -39,6 +39,7 @@ export interface MessageListProps {
39
39
  /** Force showing the synthetic thinking message even before the assistant message appears */
40
40
  forceSyntheticThinking?: boolean;
41
41
  getMessageCustomStyles?: (message: ChatMessage | DefaultMessage) => MessageComponentProps["customStyles"] | undefined;
42
+ getInterruptOptions?: (message: ChatMessage | DefaultMessage) => RespondToInterruptOptions | undefined;
42
43
  }
43
44
  export interface MessageListHandle {
44
45
  scrollToLatest: () => void;
@@ -1,4 +1,4 @@
1
- import type { ChatMessage, DefaultMessage } from "@/types";
1
+ import type { ChatMessage, DefaultMessage, RespondToInterruptOptions } from "@/types";
2
2
  import type { EditMeta } from "@/features/checkpoint/types";
3
3
  import { type CheckpointIndex } from "@/features/checkpoint/utils/checkpointIndex";
4
4
  import type { MessageComponentProps } from "./MessageComponent";
@@ -24,5 +24,6 @@ export interface MessageRowProps {
24
24
  getMessageCustomStyles?: (message: ChatMessage | DefaultMessage) => MessageComponentProps["customStyles"] | undefined;
25
25
  toolRenderers?: ToolRendererMap;
26
26
  toolArtifactRenderers?: ToolArtifactRendererMap;
27
+ getInterruptOptions?: (message: ChatMessage | DefaultMessage) => RespondToInterruptOptions | undefined;
27
28
  }
28
29
  export declare const MessageRow: React.NamedExoticComponent<MessageRowProps>;