@athenaintel/react 0.10.20 → 0.10.22

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
@@ -1,4 +1,4 @@
1
- import { AssistantRuntime } from '@assistant-ui/react';
1
+ import { AssistantRuntime } from '@assistant-ui/core';
2
2
  import { ClassProp } from 'class-variance-authority/types';
3
3
  import { ClassValue } from 'clsx';
4
4
  import { Collapsible as Collapsible_2 } from 'radix-ui';
@@ -192,6 +192,7 @@ export declare interface AthenaCitationLinkOptions {
192
192
  export declare interface AthenaConfig extends Pick<AthenaProviderConfig, 'apiKey' | 'token'> {
193
193
  backendUrl: string;
194
194
  appUrl: string;
195
+ enabledToolkits: string[];
195
196
  linkClicks?: AthenaLinkClickOptions;
196
197
  citationLinks?: AthenaCitationLinkOptions;
197
198
  }
@@ -578,7 +579,7 @@ export declare function Button({ className, variant, size, asChild, ...props }:
578
579
  }): JSX.Element;
579
580
 
580
581
  export declare const buttonVariants: (props?: ({
581
- variant?: "link" | "secondary" | "destructive" | "default" | "outline" | "ghost" | null | undefined;
582
+ variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
582
583
  size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
583
584
  } & ClassProp) | undefined) => string;
584
585
 
@@ -638,6 +639,7 @@ export declare const CreateSheetToolUI: ToolCallMessagePartComponent;
638
639
  export declare function createThread(backendUrl: string, auth: AuthConfig, opts?: {
639
640
  systemPrompt?: string;
640
641
  enabledTools?: string[];
642
+ appId?: string;
641
643
  }): Promise<ThreadCreateResponse>;
642
644
 
643
645
  export declare const DEFAULT_API_URL: string;
@@ -712,6 +714,8 @@ export declare function listThreads(backendUrl: string, auth: AuthConfig, opts?:
712
714
  app_id?: string;
713
715
  }): Promise<ThreadListResponse>;
714
716
 
717
+ declare type MentionRootCategory = "toolkits" | "team";
718
+
715
719
  declare interface MentionSuggestionsState {
716
720
  registry: ScopeRegistry;
717
721
  cache: ItemCache;
@@ -1032,6 +1036,7 @@ export declare const TiptapComposer: FC<TiptapComposerProps>;
1032
1036
 
1033
1037
  export declare interface TiptapComposerProps {
1034
1038
  tools?: MentionTool[];
1039
+ rootCategories?: readonly MentionRootCategory[];
1035
1040
  }
1036
1041
 
1037
1042
  export declare const TiptapText: FC<{
@@ -1326,7 +1331,11 @@ export declare interface UseFileUploadReturn {
1326
1331
  clearError: () => void;
1327
1332
  }
1328
1333
 
1329
- export declare function useMentionSuggestions(tools: MentionTool[]): MentionSuggestionsStore;
1334
+ export declare function useMentionSuggestions(tools: MentionTool[], options?: UseMentionSuggestionsOptions): MentionSuggestionsStore;
1335
+
1336
+ declare interface UseMentionSuggestionsOptions {
1337
+ rootCategories?: readonly MentionRootCategory[];
1338
+ }
1330
1339
 
1331
1340
  /**
1332
1341
  * Legacy hook — returns just the auth token from the parent bridge.