@fencyai/react 0.1.97 → 0.1.98

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,8 +1,9 @@
1
1
  export type ChatResponseMessage = {
2
2
  id: string;
3
+ title: string;
3
4
  markdown: string;
4
5
  };
5
6
  export interface ChatResponseProps {
6
- messages: ChatResponseMessage[];
7
+ message: ChatResponseMessage;
7
8
  }
8
9
  export declare const ChatResponse: React.FC<ChatResponseProps>;
@@ -1,5 +1,5 @@
1
- import { ChatResponseMessage } from './ChatResponse';
1
+ import { StreamingAgentTask } from '../types';
2
2
  export interface DisplayProps {
3
- messages: ChatResponseMessage[];
3
+ agentTasks: StreamingAgentTask[];
4
4
  }
5
5
  export declare const Display: React.FC<DisplayProps>;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  interface EditableContentProps {
3
- editableRef: React.RefObject<HTMLDivElement>;
3
+ editableRef: React.RefObject<HTMLDivElement | null>;
4
4
  onInput: () => void;
5
5
  onKeyDown: (e: React.KeyboardEvent<HTMLDivElement>) => void;
6
6
  isComposingRef: React.MutableRefObject<boolean>;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  interface GhostWrapperProps {
3
- ghostRef: React.RefObject<HTMLDivElement>;
3
+ ghostRef: React.RefObject<HTMLDivElement | null>;
4
4
  isOpen: boolean;
5
5
  value: string;
6
6
  atPosition: number;
@@ -3,7 +3,7 @@ import { RefObject } from 'react';
3
3
  * Hook for managing contenteditable DOM operations
4
4
  * Provides utilities for cursor positioning and text extraction
5
5
  */
6
- export declare function useContentEditable(editableRef: RefObject<HTMLDivElement>): {
6
+ export declare function useContentEditable(editableRef: RefObject<HTMLDivElement | null>): {
7
7
  getCaretPosition: () => number;
8
8
  setCaretPosition: (pos: number) => void;
9
9
  getPlainText: () => string;
@@ -4,7 +4,7 @@ type Option = {
4
4
  label: string;
5
5
  };
6
6
  interface UseMentionRendererProps {
7
- editableRef: RefObject<HTMLDivElement>;
7
+ editableRef: RefObject<HTMLDivElement | null>;
8
8
  options: Option[];
9
9
  mentionClassName: string;
10
10
  getCaretPosition: () => number;