@fencyai/react 0.1.98 → 0.1.100

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.
@@ -12,6 +12,9 @@ type ChatProps = {
12
12
  fetchCreateStreamClientSecret: () => Promise<{
13
13
  clientSecret: string;
14
14
  }>;
15
+ fetchGetDownloadLinkClientSecret: (fileId: string) => Promise<{
16
+ clientSecret: string;
17
+ }>;
15
18
  };
16
19
  export declare const Chat: React.FC<ChatProps>;
17
20
  export {};
@@ -1,9 +1,17 @@
1
+ import { AgentTaskProgressItemType } from '@fencyai/js';
2
+ import { default as React } from 'react';
3
+ export type ChatResponseState = 'thinking' | 'loading' | 'complete';
1
4
  export type ChatResponseMessage = {
2
5
  id: string;
3
6
  title: string;
4
7
  markdown: string;
8
+ state: AgentTaskProgressItemType;
9
+ completed: boolean;
5
10
  };
6
11
  export interface ChatResponseProps {
7
12
  message: ChatResponseMessage;
13
+ fetchGetDownloadLinkClientSecret: (fileId: string) => Promise<{
14
+ clientSecret: string;
15
+ }>;
8
16
  }
9
17
  export declare const ChatResponse: React.FC<ChatResponseProps>;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ export interface ChatResponseCompleteProps {
3
+ title: string;
4
+ markdown: string;
5
+ completed: boolean;
6
+ fetchGetDownloadLinkClientSecret: (fileId: string) => Promise<{
7
+ clientSecret: string;
8
+ }>;
9
+ }
10
+ export declare const ChatResponseComplete: React.FC<ChatResponseCompleteProps>;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ export interface ChatResponseLoadingProps {
3
+ title: string;
4
+ completed: boolean;
5
+ }
6
+ export declare const ChatResponseLoading: React.FC<ChatResponseLoadingProps>;
@@ -0,0 +1,6 @@
1
+ export interface ChatResponseThinkingProps {
2
+ title: string;
3
+ markdown: string;
4
+ completed: boolean;
5
+ }
6
+ export declare const ChatResponseThinking: React.FC<ChatResponseThinkingProps>;
@@ -1,5 +1,8 @@
1
1
  import { StreamingAgentTask } from '../types';
2
2
  export interface DisplayProps {
3
3
  agentTasks: StreamingAgentTask[];
4
+ fetchGetDownloadLinkClientSecret: (fileId: string) => Promise<{
5
+ clientSecret: string;
6
+ }>;
4
7
  }
5
8
  export declare const Display: React.FC<DisplayProps>;
@@ -1,4 +1,4 @@
1
- import { PubMemoryDto, PubMemoryTypeDto } from '@fencyai/js/lib/openapi';
1
+ import { PubMemoryDto, PubMemoryTypeDto } from '@fencyai/js';
2
2
  import { default as React } from 'react';
3
3
  export type TransformedOption = {
4
4
  type: 'option' | 'category';
@@ -1,5 +1,4 @@
1
- import { ApiError } from '@fencyai/js';
2
- import { PaginationDto } from '@fencyai/js/lib/openapi';
1
+ import { ApiError, PaginationDto } from '@fencyai/js';
3
2
  export interface PaginatedParams {
4
3
  fetchClientSecret: () => Promise<{
5
4
  clientSecret: string;
package/dist/index.d.ts CHANGED
@@ -9,6 +9,9 @@ export { useStreamingChatCompletions } from './hooks/useStreamingChatCompletions
9
9
  export { useStructuredChatCompletions } from './hooks/useStructuredChatCompletions';
10
10
  export { Chat } from './chat/Chat';
11
11
  export { ChatResponse } from './chat/ChatResponse';
12
+ export { ChatResponseComplete } from './chat/ChatResponseComplete';
13
+ export { ChatResponseLoading } from './chat/ChatResponseLoading';
14
+ export { ChatResponseThinking } from './chat/ChatResponseThinking';
12
15
  export { MentionInput } from './chat/MentionInput';
13
16
  export { MentionPopover } from './chat/MentionPopover';
14
17
  export { FencyProvider } from './provider/FencyProvider';