@athenaintel/react 0.10.21 → 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.cjs +18138 -19904
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +11 -3
- package/dist/index.js +18083 -19849
- package/dist/index.js.map +1 -1
- package/package.json +22 -20
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssistantRuntime } from '@assistant-ui/
|
|
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" | "
|
|
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
|
|
|
@@ -713,6 +714,8 @@ export declare function listThreads(backendUrl: string, auth: AuthConfig, opts?:
|
|
|
713
714
|
app_id?: string;
|
|
714
715
|
}): Promise<ThreadListResponse>;
|
|
715
716
|
|
|
717
|
+
declare type MentionRootCategory = "toolkits" | "team";
|
|
718
|
+
|
|
716
719
|
declare interface MentionSuggestionsState {
|
|
717
720
|
registry: ScopeRegistry;
|
|
718
721
|
cache: ItemCache;
|
|
@@ -1033,6 +1036,7 @@ export declare const TiptapComposer: FC<TiptapComposerProps>;
|
|
|
1033
1036
|
|
|
1034
1037
|
export declare interface TiptapComposerProps {
|
|
1035
1038
|
tools?: MentionTool[];
|
|
1039
|
+
rootCategories?: readonly MentionRootCategory[];
|
|
1036
1040
|
}
|
|
1037
1041
|
|
|
1038
1042
|
export declare const TiptapText: FC<{
|
|
@@ -1327,7 +1331,11 @@ export declare interface UseFileUploadReturn {
|
|
|
1327
1331
|
clearError: () => void;
|
|
1328
1332
|
}
|
|
1329
1333
|
|
|
1330
|
-
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
|
+
}
|
|
1331
1339
|
|
|
1332
1340
|
/**
|
|
1333
1341
|
* Legacy hook — returns just the auth token from the parent bridge.
|