@athenaintel/react 0.9.8 → 0.9.10

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/index.d.ts CHANGED
@@ -3,14 +3,18 @@ import { ClassProp } from 'class-variance-authority/types';
3
3
  import { ClassValue } from 'clsx';
4
4
  import { Collapsible as Collapsible_2 } from 'radix-ui';
5
5
  import { ComponentPropsWithRef } from 'react';
6
+ import { EmptyMessagePartComponent } from '@assistant-ui/react';
6
7
  import { FC } from 'react';
7
8
  import { ForwardRefExoticComponent } from 'react';
8
9
  import { JSX } from 'react/jsx-runtime';
9
10
  import * as React_2 from 'react';
10
11
  import { ReactNode } from 'react';
12
+ import { ReasoningMessagePartComponent } from '@assistant-ui/react';
13
+ import { ReasoningMessagePartProps } from '@assistant-ui/react';
11
14
  import { RefAttributes } from 'react';
12
15
  import { Store } from '@tanstack/react-store';
13
16
  import { StoreApi } from 'zustand';
17
+ import { TextMessagePartComponent } from '@assistant-ui/react';
14
18
  import { ToolCallMessagePartComponent } from '@assistant-ui/react';
15
19
  import { ToolCallMessagePartStatus } from '@assistant-ui/react';
16
20
  import { Toolkit } from '@assistant-ui/react';
@@ -57,8 +61,37 @@ export declare interface AssetTab {
57
61
 
58
62
  export declare type AssetType = 'presentation' | 'spreadsheet' | 'document' | 'notebook' | 'unknown';
59
63
 
64
+ export declare const AthenaAssistantActionBar: FC<AthenaAssistantActionBarProps>;
65
+
66
+ export declare interface AthenaAssistantActionBarProps {
67
+ className?: string;
68
+ }
69
+
70
+ export declare const AthenaAssistantMessage: FC<AthenaAssistantMessageProps>;
71
+
72
+ export declare interface AthenaAssistantMessageProps {
73
+ toolUIs: Record<string, ToolCallMessagePartComponent>;
74
+ TextComponent?: TextMessagePartComponent;
75
+ ReasoningComponent?: ReasoningMessagePartComponent;
76
+ EmptyComponent?: EmptyMessagePartComponent;
77
+ ActionBarComponent?: FC<AthenaAssistantActionBarProps>;
78
+ }
79
+
60
80
  export declare const AthenaChat: FC<AthenaChatProps>;
61
81
 
82
+ export declare interface AthenaChatComponents {
83
+ UserMessage?: FC;
84
+ AssistantMessage?: FC;
85
+ AssistantActionBar?: FC<AthenaAssistantActionBarProps>;
86
+ messageParts?: AthenaChatMessagePartComponents;
87
+ }
88
+
89
+ export declare interface AthenaChatMessagePartComponents {
90
+ Text?: TextMessagePartComponent;
91
+ Reasoning?: ReasoningMessagePartComponent;
92
+ Empty?: EmptyMessagePartComponent;
93
+ }
94
+
62
95
  export declare interface AthenaChatProps {
63
96
  /** CSS class name for the root element. */
64
97
  className?: string;
@@ -76,6 +109,8 @@ export declare interface AthenaChatProps {
76
109
  * For workflow launchers outside AthenaChat, use `useSendMessage()`.
77
110
  */
78
111
  welcomeSuggestions?: WelcomeSuggestion[];
112
+ /** Optional component overrides for message containers and key message parts. */
113
+ components?: AthenaChatComponents;
79
114
  }
80
115
 
81
116
  export declare interface AthenaConfig extends Pick<AthenaProviderConfig, 'apiKey' | 'token'> {
@@ -167,6 +202,12 @@ export declare interface AthenaProviderProps {
167
202
  theme?: AthenaTheme;
168
203
  }
169
204
 
205
+ export declare const AthenaReasoningPart: FC<AthenaReasoningPartProps>;
206
+
207
+ export declare interface AthenaReasoningPartProps extends ReasoningMessagePartProps {
208
+ TextComponent?: TextMessagePartComponent;
209
+ }
210
+
170
211
  export declare interface AthenaRuntimeConfig {
171
212
  /** URL for the chat streaming endpoint. Defaults to Athena production sync server. */
172
213
  apiUrl?: string;
@@ -276,6 +317,12 @@ export declare interface AthenaTheme {
276
317
  threadMaxWidth?: string;
277
318
  }
278
319
 
320
+ export declare const AthenaUserMessage: FC<AthenaUserMessageProps>;
321
+
322
+ export declare interface AthenaUserMessageProps {
323
+ TextComponent?: TextMessagePartComponent;
324
+ }
325
+
279
326
  export declare const BrowseToolUI: ToolCallMessagePartComponent;
280
327
 
281
328
  export declare function Button({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {