teodor-new-chat-ui 4.3.358 → 4.3.361
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/api/chat-api.d.ts +2 -1
- package/dist/components/ui/resizable.d.ts +1 -1
- package/dist/context/providers/ChatSessionProvider.d.ts +4 -1
- package/dist/index.esm.js +7173 -6731
- package/dist/index.umd.js +46 -46
- package/dist/types/models.d.ts +21 -0
- package/package.json +1 -1
package/dist/api/chat-api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentDetail, AgentSchemaInfo, AgentSummary, CheckpointList, CheckpointSnapshot, HistoryPayload, SharedThreadSummary, ThreadInfo, ThreadShareResponse, ThreadSummary } from "@/types/api";
|
|
1
|
+
import type { AgentDetail, AgentSchemaInfo, AgentSummary, CheckpointList, CheckpointSnapshot, HistoryPayload, SharedThreadSummary, SmartOrgUser, ThreadInfo, ThreadShareResponse, ThreadSummary } from "@/types/api";
|
|
2
2
|
import type { TokenListener } from "../types/api";
|
|
3
3
|
import { getChatToken, onChatTokenChanged, setChatToken } from "./utils";
|
|
4
4
|
export declare class ChatApi {
|
|
@@ -12,6 +12,7 @@ export declare class ChatApi {
|
|
|
12
12
|
onTokenChange(callback: TokenListener): () => void;
|
|
13
13
|
listThreads(): Promise<ThreadSummary[]>;
|
|
14
14
|
listSharedThreads(): Promise<SharedThreadSummary[]>;
|
|
15
|
+
listSmartOrgUsers(): Promise<SmartOrgUser[]>;
|
|
15
16
|
createThread(title?: string): Promise<ThreadInfo>;
|
|
16
17
|
updateThread(threadId: string, title: string): Promise<ThreadInfo>;
|
|
17
18
|
deleteThread(threadId: string): Promise<{
|
|
@@ -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<HTMLButtonElement | HTMLElement | HTMLTextAreaElement | HTMLFormElement | HTMLDivElement | HTMLObjectElement | HTMLDataElement | HTMLHeadElement | HTMLLinkElement | HTMLBodyElement | HTMLMapElement | HTMLMetaElement | HTMLLabelElement | HTMLSourceElement | HTMLOutputElement |
|
|
3
|
+
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLTextAreaElement | HTMLFormElement | HTMLDivElement | HTMLObjectElement | HTMLDataElement | HTMLHeadElement | HTMLLinkElement | HTMLBodyElement | HTMLMapElement | HTMLMetaElement | HTMLLabelElement | HTMLSourceElement | HTMLOutputElement | HTMLTitleElement | HTMLSlotElement | HTMLStyleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLAnchorElement | HTMLHeadingElement | HTMLInputElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMeterElement | HTMLOptGroupElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLMenuElement | HTMLTableCaptionElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
collapsedSize?: number | undefined;
|
|
6
6
|
collapsible?: boolean | undefined;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
*
|
|
32
32
|
* RESULT: Much easier to debug, faster development, no stale cache issues
|
|
33
33
|
*/
|
|
34
|
-
import type { ChatMessage, HydratedCheckpointSnapshot, PendingInterrupt, SharedThreadSummary, StreamContextValue, ThreadSummary, TimelineCheckpoint } from '@/types/api';
|
|
34
|
+
import type { ChatMessage, HydratedCheckpointSnapshot, PendingInterrupt, SharedThreadSummary, SmartOrgUser, StreamContextValue, ThreadSummary, TimelineCheckpoint } from '@/types/api';
|
|
35
35
|
import type { ThreadStateMetadata } from '@/types/context';
|
|
36
36
|
import { type ReactNode } from 'react';
|
|
37
37
|
interface ThreadsContextValue {
|
|
@@ -42,12 +42,15 @@ interface ThreadsContextValue {
|
|
|
42
42
|
error: string | null;
|
|
43
43
|
sharedThreads: SharedThreadSummary[];
|
|
44
44
|
isLoadingSharedThreads: boolean;
|
|
45
|
+
smartOrgUsers: SmartOrgUser[];
|
|
46
|
+
isLoadingSmartOrgUsers: boolean;
|
|
45
47
|
actions: {
|
|
46
48
|
createThread: (title?: string) => Promise<string | null>;
|
|
47
49
|
deleteThread: (threadId: string) => Promise<void>;
|
|
48
50
|
renameThread: (threadId: string, title: string) => Promise<void>;
|
|
49
51
|
refreshThreads: () => Promise<void>;
|
|
50
52
|
refreshSharedThreads: () => Promise<void>;
|
|
53
|
+
refreshSmartOrgUsers: () => Promise<void>;
|
|
51
54
|
shareThread: (threadId: string, sharedWithUserId: string) => Promise<void>;
|
|
52
55
|
unshareThread: (threadId: string, shareId: string) => Promise<void>;
|
|
53
56
|
};
|