@fencyai/react 0.1.98 → 0.1.99

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,12 @@
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;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export interface ChatResponseCompleteProps {
3
+ markdown: string;
4
+ }
5
+ 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,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';