@tenancy.nz/chat-ui 0.1.50 → 0.1.52

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,20 +1,58 @@
1
1
  import { default as ChatInlineStyles } from './styles.css?inline';
2
2
  import { JSX as JSX_2 } from 'react/jsx-runtime';
3
+ import { ReactNode } from 'react';
3
4
 
4
- export declare function Chat({ user, generateToken, clientId, apiBase, docsBase }: {
5
+ export declare function Chat({ user, generateToken, clientId, apiBase, docsBase, hideConversations, agentName, agentAvatarSrc, agentRole, tagline, description, initialConversationId, onConversationChange, }: {
5
6
  apiBase: string;
6
7
  docsBase?: string;
7
8
  user?: ChatUser;
8
9
  generateToken?: () => Promise<string> | string;
9
10
  clientId?: string;
11
+ hideConversations?: boolean;
12
+ agentName?: string;
13
+ agentAvatarSrc?: string;
14
+ agentRole?: string;
15
+ tagline?: string;
16
+ description?: string;
17
+ initialConversationId?: string;
18
+ onConversationChange?: (id: string | null) => void;
10
19
  }): JSX_2.Element;
11
20
 
12
21
  export { ChatInlineStyles }
13
22
 
14
- declare type ChatUser = {
23
+ export declare type ChatUser = {
15
24
  accessToken?: string;
16
25
  name?: string;
17
26
  avatarUrl?: string;
27
+ package?: string;
28
+ };
29
+
30
+ export declare function Widget({ name, role, avatarSrc, sessionKey, children, }: WidgetProps): JSX_2.Element;
31
+
32
+ export declare function WidgetChat({ name, role, avatarSrc, tagline, description, initialPrompt, sessionKey, apiBase, docsBase, clientId, generateToken, user, }: WidgetChatProps): JSX_2.Element;
33
+
34
+ export declare type WidgetChatProps = {
35
+ name: string;
36
+ role: string;
37
+ avatarSrc?: string;
38
+ tagline?: string;
39
+ description?: string;
40
+ initialPrompt?: string;
41
+ sessionKey?: string;
42
+ apiBase: string;
43
+ docsBase?: string;
44
+ clientId?: string;
45
+ generateToken?: () => Promise<string> | string;
46
+ user?: ChatUser;
47
+ };
48
+
49
+ export declare type WidgetProps = {
50
+ name: string;
51
+ role: string;
52
+ avatarSrc?: string;
53
+ initialPrompt?: string;
54
+ sessionKey?: string;
55
+ children: ReactNode;
18
56
  };
19
57
 
20
58
  export { }