@wacht/jsx 0.0.1-alpha.53 → 0.0.1-alpha.55
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.js +949 -694
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.es.js +8235 -7769
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AgentIntegration } from '@wacht/types';
|
|
1
2
|
import { ApiResult } from '@wacht/types';
|
|
2
3
|
import { ButtonHTMLAttributes } from 'react';
|
|
3
4
|
import { Client } from '@wacht/types';
|
|
@@ -97,6 +98,7 @@ declare interface AgentConversationContextValue {
|
|
|
97
98
|
refreshSessions: () => Promise<void>;
|
|
98
99
|
showHistory: boolean;
|
|
99
100
|
setShowHistory: (show: boolean) => void;
|
|
101
|
+
getFileUrl: (relativePath: string) => string;
|
|
100
102
|
onSessionCreated?: (session: ConversationSession) => void;
|
|
101
103
|
onSessionDeleted?: (sessionId: string) => void;
|
|
102
104
|
onError?: (error: string) => void;
|
|
@@ -128,6 +130,8 @@ declare interface AgentConversationProviderProps {
|
|
|
128
130
|
onError?: (error: string) => void;
|
|
129
131
|
}
|
|
130
132
|
|
|
133
|
+
export { AgentIntegration }
|
|
134
|
+
|
|
131
135
|
export declare function AuthFormImage(): JSX.Element | null;
|
|
132
136
|
|
|
133
137
|
export declare interface BulkUpdateResponse {
|
|
@@ -986,6 +990,7 @@ export declare const useActiveWorkspace: () => {
|
|
|
986
990
|
|
|
987
991
|
export declare function useAgentConversation({ contextId, agentName, token, platformAdapter, autoConnect, }: UseAgentConversationProps): {
|
|
988
992
|
messages: ConversationMessage[];
|
|
993
|
+
quickQuestions: string[];
|
|
989
994
|
pendingMessage: string | null;
|
|
990
995
|
pendingImages: ImageData_2[] | null;
|
|
991
996
|
connectionState: {
|
|
@@ -1020,6 +1025,17 @@ declare interface UseAgentConversationProps {
|
|
|
1020
1025
|
autoConnect?: boolean;
|
|
1021
1026
|
}
|
|
1022
1027
|
|
|
1028
|
+
export declare function useAgentIntegrations(): UseAgentIntegrationsReturnType;
|
|
1029
|
+
|
|
1030
|
+
declare type UseAgentIntegrationsReturnType = {
|
|
1031
|
+
integrations: AgentIntegration[];
|
|
1032
|
+
loading: boolean;
|
|
1033
|
+
error: Error | null;
|
|
1034
|
+
addIntegration: (integrationId: string) => Promise<void>;
|
|
1035
|
+
removeIntegration: (integrationId: string) => Promise<void>;
|
|
1036
|
+
refetch: () => Promise<void>;
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1023
1039
|
export declare function useChannelCounts(): UseChannelCountsReturnType;
|
|
1024
1040
|
|
|
1025
1041
|
declare type UseChannelCountsReturnType = {
|