bstp-agent-widget 0.2.127 → 0.2.129
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/angular.cjs +112 -110
- package/dist/angular.css +1 -1
- package/dist/angular.mjs +8980 -8140
- package/dist/element.cjs +137 -135
- package/dist/element.css +1 -1
- package/dist/element.mjs +14803 -13963
- package/dist/index.cjs +112 -110
- package/dist/index.mjs +8973 -8133
- package/dist/shadow.cjs +137 -135
- package/dist/shadow.css +1 -1
- package/dist/shadow.mjs +14796 -13956
- package/dist/styles.css +1 -1
- package/dist/styles.layer.css +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internal/api/genai.service.d.mts +6 -2
- package/dist/types/internal/api/genai.service.d.ts +6 -2
- package/dist/types/internal/components/AgentChatPopup/AgentChatPopup.d.mts +18 -0
- package/dist/types/internal/components/AgentChatPopup/AgentChatPopup.d.ts +18 -0
- package/dist/types/internal/components/AgentChatPopup/AgentChatPopupComparison.d.mts +8 -0
- package/dist/types/internal/components/AgentChatPopup/AgentChatPopupComparison.d.ts +8 -0
- package/dist/types/internal/components/AgentChatPopup/index.d.mts +1 -0
- package/dist/types/internal/components/AgentChatPopup/index.d.ts +1 -0
- package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownTableWidget.d.mts +1 -1
- package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownTableWidget.d.ts +1 -1
- package/dist/types/internal/components/AgentPanel/AgentPanel.d.mts +13 -1
- package/dist/types/internal/components/AgentPanel/AgentPanel.d.ts +13 -1
- package/dist/types/internal/components/AgentPanel/AgentPanelContentBody.d.mts +2 -1
- package/dist/types/internal/components/AgentPanel/AgentPanelContentBody.d.ts +2 -1
- package/dist/types/internal/components/AgentPanel/AgentPanelFooter.d.mts +3 -1
- package/dist/types/internal/components/AgentPanel/AgentPanelFooter.d.ts +3 -1
- package/dist/types/internal/components/AgentPanel/AgentPanelHeader.d.mts +3 -1
- package/dist/types/internal/components/AgentPanel/AgentPanelHeader.d.ts +3 -1
- package/dist/types/internal/context/AgentChatActionsContext.d.mts +9 -0
- package/dist/types/internal/context/AgentChatActionsContext.d.ts +9 -0
- package/dist/types/internal/enums/markdown-renderer-render-as.d.mts +13 -0
- package/dist/types/internal/enums/markdown-renderer-render-as.d.ts +13 -0
- package/dist/types/internal/hooks/useAgent.d.mts +9 -0
- package/dist/types/internal/hooks/useAgent.d.ts +9 -0
- package/dist/types/internal/hooks/useAgentActions.d.mts +2 -0
- package/dist/types/internal/hooks/useAgentActions.d.ts +2 -0
- package/dist/types/internal/hooks/useAgentChatPopupComparison.d.mts +13 -0
- package/dist/types/internal/hooks/useAgentChatPopupComparison.d.ts +13 -0
- package/dist/types/internal/hooks/useAgentConnectionStatus.d.mts +12 -0
- package/dist/types/internal/hooks/useAgentConnectionStatus.d.ts +12 -0
- package/dist/types/internal/hooks/useAgentUiOptions.d.mts +1 -0
- package/dist/types/internal/hooks/useAgentUiOptions.d.ts +1 -0
- package/dist/types/internal/hooks/useAgentVoiceHandlers.d.mts +5 -2
- package/dist/types/internal/hooks/useAgentVoiceHandlers.d.ts +5 -2
- package/dist/types/internal/hooks/useGenaiAuth.d.mts +1 -1
- package/dist/types/internal/hooks/useGenaiAuth.d.ts +1 -1
- package/dist/types/internal/hooks/useGenaiLogin.d.mts +1 -1
- package/dist/types/internal/hooks/useGenaiLogin.d.ts +1 -1
- package/dist/types/internal/hooks/useGenaiTenantSwitch.d.mts +1 -1
- package/dist/types/internal/hooks/useGenaiTenantSwitch.d.ts +1 -1
- package/dist/types/internal/hooks/usePopupPortalLayout.d.mts +21 -0
- package/dist/types/internal/hooks/usePopupPortalLayout.d.ts +21 -0
- package/dist/types/internal/hooks/useSendChatMessage.d.mts +1 -0
- package/dist/types/internal/hooks/useSendChatMessage.d.ts +1 -0
- package/dist/types/internal/icons/IconRefresh.d.mts +6 -0
- package/dist/types/internal/icons/IconRefresh.d.ts +6 -0
- package/dist/types/internal/mappers/agent-chat-config.mapper.d.mts +2 -0
- package/dist/types/internal/mappers/agent-chat-config.mapper.d.ts +2 -0
- package/dist/types/internal/mappers/agent-chat-popup.mapper.d.mts +7 -0
- package/dist/types/internal/mappers/agent-chat-popup.mapper.d.ts +7 -0
- package/dist/types/internal/queries/genai/useSendAgentMessageMutation.d.mts +7 -3
- package/dist/types/internal/queries/genai/useSendAgentMessageMutation.d.ts +7 -3
- package/dist/types/internal/queries/genai/useSendAgenticAppChatMutation.d.mts +7 -3
- package/dist/types/internal/queries/genai/useSendAgenticAppChatMutation.d.ts +7 -3
- package/dist/types/internal/theme/theme.d.mts +7 -3
- package/dist/types/internal/theme/theme.d.ts +7 -3
- package/dist/types/internal/types/models/agent-chat-message.d.mts +6 -0
- package/dist/types/internal/types/models/agent-chat-message.d.ts +6 -0
- package/dist/types/internal/types/models/agent-chat-popup-comparison.d.mts +23 -0
- package/dist/types/internal/types/models/agent-chat-popup-comparison.d.ts +23 -0
- package/dist/types/internal/types/models/agent-chat-popup-context.d.mts +9 -0
- package/dist/types/internal/types/models/agent-chat-popup-context.d.ts +9 -0
- package/dist/types/internal/types/models/agent-chat-popup-payload.d.mts +9 -0
- package/dist/types/internal/types/models/agent-chat-popup-payload.d.ts +9 -0
- package/dist/types/internal/utils/agent-chat/parsers/markdown/markdown-table-parser.d.mts +4 -2
- package/dist/types/internal/utils/agent-chat/parsers/markdown/markdown-table-parser.d.ts +4 -2
- package/dist/types/internal/utils/agent-chat/widget/index.d.mts +1 -1
- package/dist/types/internal/utils/agent-chat/widget/index.d.ts +1 -1
- package/dist/types/internal/utils/agent-chat/widget/widget-payload-mapper.d.mts +2 -0
- package/dist/types/internal/utils/agent-chat/widget/widget-payload-mapper.d.ts +2 -0
- package/dist/types/internal/utils/error.utils.d.mts +5 -0
- package/dist/types/internal/utils/error.utils.d.ts +5 -0
- package/package.json +1 -1
- package/dist/types/internal/types/dto/genai-send-agent-message-request.dto.d.mts +0 -4
- package/dist/types/internal/types/dto/genai-send-agent-message-request.dto.d.ts +0 -4
- package/dist/types/internal/types/dto/genai-send-agentic-app-chat-request.dto.d.mts +0 -4
- package/dist/types/internal/types/dto/genai-send-agentic-app-chat-request.dto.d.ts +0 -4
package/dist/types/index.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ export type { DefineWidgetCustomElementOptions, WidgetCustomElement, WidgetCusto
|
|
|
9
9
|
export type { MountedWidget, MountWidgetOptions } from './integrations/shadow';
|
|
10
10
|
export type { WidgetCustomEvent, WidgetEventMap } from './events/widget-events';
|
|
11
11
|
export type { WidgetProps } from './widget/Widget';
|
|
12
|
-
export type { WidgetAssistant, WidgetConfig
|
|
12
|
+
export type { WidgetAssistant, WidgetConfig } from './internal/types/models/widget-config';
|
|
13
13
|
export { AgentType } from './internal/types/models/widget-config';
|
|
14
14
|
export type { WidgetRuntime } from './internal/types/models/widget-runtime';
|
|
15
15
|
export type { WidgetUiOptions } from './internal/types/models/widget-ui-options';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type { DefineWidgetCustomElementOptions, WidgetCustomElement, WidgetCusto
|
|
|
9
9
|
export type { MountedWidget, MountWidgetOptions } from './integrations/shadow';
|
|
10
10
|
export type { WidgetCustomEvent, WidgetEventMap } from './events/widget-events';
|
|
11
11
|
export type { WidgetProps } from './widget/Widget';
|
|
12
|
-
export type { WidgetAssistant, WidgetConfig
|
|
12
|
+
export type { WidgetAssistant, WidgetConfig } from './internal/types/models/widget-config';
|
|
13
13
|
export { AgentType } from './internal/types/models/widget-config';
|
|
14
14
|
export type { WidgetRuntime } from './internal/types/models/widget-runtime';
|
|
15
15
|
export type { WidgetUiOptions } from './internal/types/models/widget-ui-options';
|
|
@@ -9,8 +9,12 @@ import { GenAiLoginResponse } from '@/types/dto/genai-login-response.dto';
|
|
|
9
9
|
import { GenaiTenantSwitchResponse } from '@/types/dto/genai-tenant-switch-response.dto';
|
|
10
10
|
declare function loginToGenai(serviceAccount: string, serviceKey: string): Promise<GenAiLoginResponse>;
|
|
11
11
|
declare function switchTenant(tenantId: number, token: string): Promise<GenaiTenantSwitchResponse>;
|
|
12
|
-
declare function sendAgentMessage(payload: GenaiAgentMessageRequest
|
|
13
|
-
|
|
12
|
+
declare function sendAgentMessage(payload: GenaiAgentMessageRequest, options?: {
|
|
13
|
+
signal?: AbortSignal;
|
|
14
|
+
}): Promise<GenaiAgentMessageResponse>;
|
|
15
|
+
declare function sendAgenticAppChat(payload: GenaiAgenticAppChatRequest, options?: {
|
|
16
|
+
signal?: AbortSignal;
|
|
17
|
+
}): Promise<GenaiAgentMessageResponse>;
|
|
14
18
|
declare function fetchAssistants(request: GenaiFetchAssistantsRequest): Promise<GenaiFetchAssistantsResponse>;
|
|
15
19
|
declare function fetchAgenticApps(request: GenaiFetchAgenticAppsRequest): Promise<GenaiFetchAgenticAppsResponse>;
|
|
16
20
|
/** @public */
|
|
@@ -9,8 +9,12 @@ import { GenAiLoginResponse } from '@/types/dto/genai-login-response.dto';
|
|
|
9
9
|
import { GenaiTenantSwitchResponse } from '@/types/dto/genai-tenant-switch-response.dto';
|
|
10
10
|
declare function loginToGenai(serviceAccount: string, serviceKey: string): Promise<GenAiLoginResponse>;
|
|
11
11
|
declare function switchTenant(tenantId: number, token: string): Promise<GenaiTenantSwitchResponse>;
|
|
12
|
-
declare function sendAgentMessage(payload: GenaiAgentMessageRequest
|
|
13
|
-
|
|
12
|
+
declare function sendAgentMessage(payload: GenaiAgentMessageRequest, options?: {
|
|
13
|
+
signal?: AbortSignal;
|
|
14
|
+
}): Promise<GenaiAgentMessageResponse>;
|
|
15
|
+
declare function sendAgenticAppChat(payload: GenaiAgenticAppChatRequest, options?: {
|
|
16
|
+
signal?: AbortSignal;
|
|
17
|
+
}): Promise<GenaiAgentMessageResponse>;
|
|
14
18
|
declare function fetchAssistants(request: GenaiFetchAssistantsRequest): Promise<GenaiFetchAssistantsResponse>;
|
|
15
19
|
declare function fetchAgenticApps(request: GenaiFetchAgenticAppsRequest): Promise<GenaiFetchAgenticAppsResponse>;
|
|
16
20
|
/** @public */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ModalProps } from '@mantine/core';
|
|
2
|
+
import { AgentMessage } from '@/types/models/agent-chat-message';
|
|
3
|
+
type AgentChatPopupSize = ModalProps['size'] | '2xl';
|
|
4
|
+
export interface AgentChatPopupProps {
|
|
5
|
+
opened: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
message?: AgentMessage;
|
|
8
|
+
isAssistantStreaming?: boolean;
|
|
9
|
+
size?: AgentChatPopupSize;
|
|
10
|
+
zIndex?: number;
|
|
11
|
+
layoutTop?: number | string;
|
|
12
|
+
layoutHeight?: number | string;
|
|
13
|
+
layoutLeftOffset?: number | string;
|
|
14
|
+
layoutRightOffset?: number | string;
|
|
15
|
+
hostContainerSelector?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function AgentChatPopup({ opened, onClose, message, isAssistantStreaming, size, zIndex, layoutTop, layoutHeight, layoutLeftOffset, layoutRightOffset, hostContainerSelector, }: AgentChatPopupProps): import("react").ReactPortal | null;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ModalProps } from '@mantine/core';
|
|
2
|
+
import { AgentMessage } from '@/types/models/agent-chat-message';
|
|
3
|
+
type AgentChatPopupSize = ModalProps['size'] | '2xl';
|
|
4
|
+
export interface AgentChatPopupProps {
|
|
5
|
+
opened: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
message?: AgentMessage;
|
|
8
|
+
isAssistantStreaming?: boolean;
|
|
9
|
+
size?: AgentChatPopupSize;
|
|
10
|
+
zIndex?: number;
|
|
11
|
+
layoutTop?: number | string;
|
|
12
|
+
layoutHeight?: number | string;
|
|
13
|
+
layoutLeftOffset?: number | string;
|
|
14
|
+
layoutRightOffset?: number | string;
|
|
15
|
+
hostContainerSelector?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function AgentChatPopup({ opened, onClose, message, isAssistantStreaming, size, zIndex, layoutTop, layoutHeight, layoutLeftOffset, layoutRightOffset, hostContainerSelector, }: AgentChatPopupProps): import("react").ReactPortal | null;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AgentChatPopupComparisonModal } from '@/types/models/agent-chat-popup-comparison';
|
|
2
|
+
export interface AgentChatPopupComparisonProps {
|
|
3
|
+
comparisonModal?: AgentChatPopupComparisonModal;
|
|
4
|
+
fillHeight?: boolean;
|
|
5
|
+
isBusy?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function AgentChatPopupComparison({ comparisonModal, fillHeight, isBusy, onClose, }: AgentChatPopupComparisonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AgentChatPopupComparisonModal } from '@/types/models/agent-chat-popup-comparison';
|
|
2
|
+
export interface AgentChatPopupComparisonProps {
|
|
3
|
+
comparisonModal?: AgentChatPopupComparisonModal;
|
|
4
|
+
fillHeight?: boolean;
|
|
5
|
+
isBusy?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function AgentChatPopupComparison({ comparisonModal, fillHeight, isBusy, onClose, }: AgentChatPopupComparisonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AgentChatPopup, type AgentChatPopupProps } from './AgentChatPopup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AgentChatPopup, type AgentChatPopupProps } from './AgentChatPopup';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AgentMarkdownTableWidgetProps } from '@/types/models/agent-chat-md-table-widget';
|
|
2
|
-
export declare function AgentMarkdownTableWidget({ headers, rows }: AgentMarkdownTableWidgetProps): import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
+
export declare function AgentMarkdownTableWidget({ headers, rows, }: AgentMarkdownTableWidgetProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AgentMarkdownTableWidgetProps } from '@/types/models/agent-chat-md-table-widget';
|
|
2
|
-
export declare function AgentMarkdownTableWidget({ headers, rows }: AgentMarkdownTableWidgetProps): import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
+
export declare function AgentMarkdownTableWidget({ headers, rows, }: AgentMarkdownTableWidgetProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ModalProps } from '@mantine/core';
|
|
1
2
|
import { AgentAction } from '@/types/models/agent-chat-action';
|
|
2
3
|
import { AgentMessage } from '@/types/models/agent-chat-message';
|
|
3
4
|
import { AgentRuntimeInfo } from '@/types/models/agent-chat-runtime-info';
|
|
@@ -8,6 +9,7 @@ export interface AgentPanelProps {
|
|
|
8
9
|
composerText: string;
|
|
9
10
|
onComposerTextChange: (text: string) => void;
|
|
10
11
|
isLoading: boolean;
|
|
12
|
+
isAssistantStreaming?: boolean;
|
|
11
13
|
error: string | null;
|
|
12
14
|
canSend: boolean;
|
|
13
15
|
onSubmit: () => void;
|
|
@@ -16,6 +18,7 @@ export interface AgentPanelProps {
|
|
|
16
18
|
onToggleVoice: () => void;
|
|
17
19
|
actions: AgentAction[];
|
|
18
20
|
onActionClick: (action: AgentAction) => void;
|
|
21
|
+
assistantDisplayName: string;
|
|
19
22
|
panelTitle: React.ReactNode;
|
|
20
23
|
runtimeInfo: AgentRuntimeInfo;
|
|
21
24
|
scrollViewportRef: React.RefObject<HTMLDivElement | null>;
|
|
@@ -34,5 +37,14 @@ export interface AgentPanelProps {
|
|
|
34
37
|
panelBorderRadius?: number | string;
|
|
35
38
|
zIndex?: number;
|
|
36
39
|
panelTopOffset?: number;
|
|
40
|
+
chatPopupOpened?: boolean;
|
|
41
|
+
onChatPopupClose?: () => void;
|
|
42
|
+
chatPopupMessage?: AgentMessage;
|
|
43
|
+
chatPopupSize?: ModalProps['size'] | '2xl';
|
|
44
|
+
hostContainerSelector?: string;
|
|
45
|
+
showBusyCancel?: boolean;
|
|
46
|
+
onCancelBusy?: () => void;
|
|
47
|
+
showResetChat?: boolean;
|
|
48
|
+
onResetChat?: () => void;
|
|
37
49
|
}
|
|
38
|
-
export declare function AgentPanel({ visible, onClose, messages, composerText, onComposerTextChange, isLoading, error, canSend, onSubmit, isListening, isVoiceSupported, onToggleVoice, actions, onActionClick, panelTitle, runtimeInfo, scrollViewportRef, actualWidth, floatingTop, floatingHeight, floatingMaxHeight, shellGap, panelHeaderHeight, panelResizableWidth, panelBorder, panelBorderRadius, zIndex, }: AgentPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
50
|
+
export declare function AgentPanel({ visible, onClose, messages, composerText, onComposerTextChange, isLoading, isAssistantStreaming, error, canSend, onSubmit, isListening, isVoiceSupported, onToggleVoice, actions, onActionClick, assistantDisplayName, panelTitle, runtimeInfo, scrollViewportRef, actualWidth, floatingTop, floatingHeight, floatingMaxHeight, shellGap, panelHeaderHeight, panelResizableWidth, panelBorder, panelBorderRadius, zIndex, chatPopupOpened, onChatPopupClose, chatPopupMessage, chatPopupSize, hostContainerSelector, showBusyCancel, onCancelBusy, showResetChat, onResetChat, }: AgentPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ModalProps } from '@mantine/core';
|
|
1
2
|
import { AgentAction } from '@/types/models/agent-chat-action';
|
|
2
3
|
import { AgentMessage } from '@/types/models/agent-chat-message';
|
|
3
4
|
import { AgentRuntimeInfo } from '@/types/models/agent-chat-runtime-info';
|
|
@@ -8,6 +9,7 @@ export interface AgentPanelProps {
|
|
|
8
9
|
composerText: string;
|
|
9
10
|
onComposerTextChange: (text: string) => void;
|
|
10
11
|
isLoading: boolean;
|
|
12
|
+
isAssistantStreaming?: boolean;
|
|
11
13
|
error: string | null;
|
|
12
14
|
canSend: boolean;
|
|
13
15
|
onSubmit: () => void;
|
|
@@ -16,6 +18,7 @@ export interface AgentPanelProps {
|
|
|
16
18
|
onToggleVoice: () => void;
|
|
17
19
|
actions: AgentAction[];
|
|
18
20
|
onActionClick: (action: AgentAction) => void;
|
|
21
|
+
assistantDisplayName: string;
|
|
19
22
|
panelTitle: React.ReactNode;
|
|
20
23
|
runtimeInfo: AgentRuntimeInfo;
|
|
21
24
|
scrollViewportRef: React.RefObject<HTMLDivElement | null>;
|
|
@@ -34,5 +37,14 @@ export interface AgentPanelProps {
|
|
|
34
37
|
panelBorderRadius?: number | string;
|
|
35
38
|
zIndex?: number;
|
|
36
39
|
panelTopOffset?: number;
|
|
40
|
+
chatPopupOpened?: boolean;
|
|
41
|
+
onChatPopupClose?: () => void;
|
|
42
|
+
chatPopupMessage?: AgentMessage;
|
|
43
|
+
chatPopupSize?: ModalProps['size'] | '2xl';
|
|
44
|
+
hostContainerSelector?: string;
|
|
45
|
+
showBusyCancel?: boolean;
|
|
46
|
+
onCancelBusy?: () => void;
|
|
47
|
+
showResetChat?: boolean;
|
|
48
|
+
onResetChat?: () => void;
|
|
37
49
|
}
|
|
38
|
-
export declare function AgentPanel({ visible, onClose, messages, composerText, onComposerTextChange, isLoading, error, canSend, onSubmit, isListening, isVoiceSupported, onToggleVoice, actions, onActionClick, panelTitle, runtimeInfo, scrollViewportRef, actualWidth, floatingTop, floatingHeight, floatingMaxHeight, shellGap, panelHeaderHeight, panelResizableWidth, panelBorder, panelBorderRadius, zIndex, }: AgentPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
50
|
+
export declare function AgentPanel({ visible, onClose, messages, composerText, onComposerTextChange, isLoading, isAssistantStreaming, error, canSend, onSubmit, isListening, isVoiceSupported, onToggleVoice, actions, onActionClick, assistantDisplayName, panelTitle, runtimeInfo, scrollViewportRef, actualWidth, floatingTop, floatingHeight, floatingMaxHeight, shellGap, panelHeaderHeight, panelResizableWidth, panelBorder, panelBorderRadius, zIndex, chatPopupOpened, onChatPopupClose, chatPopupMessage, chatPopupSize, hostContainerSelector, showBusyCancel, onCancelBusy, showResetChat, onResetChat, }: AgentPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -2,9 +2,10 @@ import { WidgetEvent } from '@markdown-ui/react';
|
|
|
2
2
|
import { AgentMessage } from '@/types/models/agent-chat-message';
|
|
3
3
|
export interface AgentPanelContentBodyProps {
|
|
4
4
|
messages: AgentMessage[];
|
|
5
|
+
assistantDisplayName: string;
|
|
5
6
|
isLoading: boolean;
|
|
6
7
|
error: string | null;
|
|
7
8
|
scrollViewportRef: React.RefObject<HTMLDivElement | null>;
|
|
8
9
|
onWidgetEvent?: (event: WidgetEvent) => void;
|
|
9
10
|
}
|
|
10
|
-
export declare function AgentPanelContentBody({ messages, isLoading, error, scrollViewportRef, onWidgetEvent, }: AgentPanelContentBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function AgentPanelContentBody({ messages, assistantDisplayName, isLoading, error, scrollViewportRef, onWidgetEvent, }: AgentPanelContentBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,9 +2,10 @@ import { WidgetEvent } from '@markdown-ui/react';
|
|
|
2
2
|
import { AgentMessage } from '@/types/models/agent-chat-message';
|
|
3
3
|
export interface AgentPanelContentBodyProps {
|
|
4
4
|
messages: AgentMessage[];
|
|
5
|
+
assistantDisplayName: string;
|
|
5
6
|
isLoading: boolean;
|
|
6
7
|
error: string | null;
|
|
7
8
|
scrollViewportRef: React.RefObject<HTMLDivElement | null>;
|
|
8
9
|
onWidgetEvent?: (event: WidgetEvent) => void;
|
|
9
10
|
}
|
|
10
|
-
export declare function AgentPanelContentBody({ messages, isLoading, error, scrollViewportRef, onWidgetEvent, }: AgentPanelContentBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function AgentPanelContentBody({ messages, assistantDisplayName, isLoading, error, scrollViewportRef, onWidgetEvent, }: AgentPanelContentBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,5 +7,7 @@ export interface AgentPanelFooterProps {
|
|
|
7
7
|
canSend: boolean;
|
|
8
8
|
onSubmit: () => void;
|
|
9
9
|
onToggleVoice: () => void;
|
|
10
|
+
showBusyCancel?: boolean;
|
|
11
|
+
onCancelBusy?: () => void;
|
|
10
12
|
}
|
|
11
|
-
export declare function AgentPanelFooter({ composerText, onComposerTextChange, isLoading, isListening, isVoiceSupported, canSend, onSubmit, onToggleVoice, }: AgentPanelFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function AgentPanelFooter({ composerText, onComposerTextChange, isLoading, isListening, isVoiceSupported, canSend, onSubmit, onToggleVoice, showBusyCancel, onCancelBusy, }: AgentPanelFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,5 +7,7 @@ export interface AgentPanelFooterProps {
|
|
|
7
7
|
canSend: boolean;
|
|
8
8
|
onSubmit: () => void;
|
|
9
9
|
onToggleVoice: () => void;
|
|
10
|
+
showBusyCancel?: boolean;
|
|
11
|
+
onCancelBusy?: () => void;
|
|
10
12
|
}
|
|
11
|
-
export declare function AgentPanelFooter({ composerText, onComposerTextChange, isLoading, isListening, isVoiceSupported, canSend, onSubmit, onToggleVoice, }: AgentPanelFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function AgentPanelFooter({ composerText, onComposerTextChange, isLoading, isListening, isVoiceSupported, canSend, onSubmit, onToggleVoice, showBusyCancel, onCancelBusy, }: AgentPanelFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,8 @@ export interface AgentPanelHeaderProps {
|
|
|
2
2
|
panelTitle: React.ReactNode;
|
|
3
3
|
isLoading: boolean;
|
|
4
4
|
isOnline: boolean;
|
|
5
|
+
showResetChat?: boolean;
|
|
6
|
+
onResetChat?: () => void;
|
|
5
7
|
onClose: () => void;
|
|
6
8
|
}
|
|
7
|
-
export declare function AgentPanelHeader({ panelTitle, isLoading, isOnline, onClose, }: AgentPanelHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function AgentPanelHeader({ panelTitle, isLoading, isOnline, showResetChat, onResetChat, onClose, }: AgentPanelHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,8 @@ export interface AgentPanelHeaderProps {
|
|
|
2
2
|
panelTitle: React.ReactNode;
|
|
3
3
|
isLoading: boolean;
|
|
4
4
|
isOnline: boolean;
|
|
5
|
+
showResetChat?: boolean;
|
|
6
|
+
onResetChat?: () => void;
|
|
5
7
|
onClose: () => void;
|
|
6
8
|
}
|
|
7
|
-
export declare function AgentPanelHeader({ panelTitle, isLoading, isOnline, onClose, }: AgentPanelHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function AgentPanelHeader({ panelTitle, isLoading, isOnline, showResetChat, onResetChat, onClose, }: AgentPanelHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type AgentChatSendMessage = (text: string, options?: {
|
|
2
|
+
showUserBubble?: boolean;
|
|
3
|
+
}) => Promise<void>;
|
|
4
|
+
interface AgentChatActionsContextValue {
|
|
5
|
+
sendMessage?: AgentChatSendMessage;
|
|
6
|
+
}
|
|
7
|
+
export declare const AgentChatActionsContext: import("react").Context<AgentChatActionsContextValue>;
|
|
8
|
+
export declare function useAgentChatActions(): AgentChatActionsContextValue;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type AgentChatSendMessage = (text: string, options?: {
|
|
2
|
+
showUserBubble?: boolean;
|
|
3
|
+
}) => Promise<void>;
|
|
4
|
+
interface AgentChatActionsContextValue {
|
|
5
|
+
sendMessage?: AgentChatSendMessage;
|
|
6
|
+
}
|
|
7
|
+
export declare const AgentChatActionsContext: import("react").Context<AgentChatActionsContextValue>;
|
|
8
|
+
export declare function useAgentChatActions(): AgentChatActionsContextValue;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum MarkdownRendererRenderAs {
|
|
2
|
+
ACTION_BUTTONS = "actionButtons",
|
|
3
|
+
ACTIONS = "actions",
|
|
4
|
+
CHART = "chart",
|
|
5
|
+
USAGE_CHART = "usageChart",
|
|
6
|
+
OFFER_CARD = "offerCard",
|
|
7
|
+
ADDON_CARD = "addonCard",
|
|
8
|
+
OVERVIEW_CARD = "overviewCard",
|
|
9
|
+
ACCOUNT_OVERVIEW = "accountOverview",
|
|
10
|
+
TABLE = "table",
|
|
11
|
+
HIGHLIGHT_BOX = "highlightBox",
|
|
12
|
+
INFO_BOX = "infoBox"
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum MarkdownRendererRenderAs {
|
|
2
|
+
ACTION_BUTTONS = "actionButtons",
|
|
3
|
+
ACTIONS = "actions",
|
|
4
|
+
CHART = "chart",
|
|
5
|
+
USAGE_CHART = "usageChart",
|
|
6
|
+
OFFER_CARD = "offerCard",
|
|
7
|
+
ADDON_CARD = "addonCard",
|
|
8
|
+
OVERVIEW_CARD = "overviewCard",
|
|
9
|
+
ACCOUNT_OVERVIEW = "accountOverview",
|
|
10
|
+
TABLE = "table",
|
|
11
|
+
HIGHLIGHT_BOX = "highlightBox",
|
|
12
|
+
INFO_BOX = "infoBox"
|
|
13
|
+
}
|
|
@@ -5,12 +5,21 @@ export declare function useAgent(): {
|
|
|
5
5
|
composerText: string;
|
|
6
6
|
setComposerText: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
7
7
|
isLoading: boolean;
|
|
8
|
+
isAssistantStreaming: boolean;
|
|
8
9
|
error: string | null;
|
|
9
10
|
sendMessage: (text: string, options?: {
|
|
10
11
|
showUserBubble?: boolean;
|
|
12
|
+
userBubbleText?: string;
|
|
13
|
+
cancellable?: boolean;
|
|
11
14
|
}) => Promise<void>;
|
|
12
15
|
sendInitialMessage: () => Promise<boolean>;
|
|
13
16
|
resetChat: () => void;
|
|
17
|
+
cancelAgentOperation: () => void;
|
|
18
|
+
canCancelBusyTurn: boolean;
|
|
14
19
|
agentDisplayName: string;
|
|
15
20
|
canSend: boolean;
|
|
21
|
+
streamingMessageId: string | null;
|
|
22
|
+
chatPopupOpen: boolean;
|
|
23
|
+
chatPopupMessage: AgentMessage | undefined;
|
|
24
|
+
closeChatPopup: () => void;
|
|
16
25
|
};
|
|
@@ -5,12 +5,21 @@ export declare function useAgent(): {
|
|
|
5
5
|
composerText: string;
|
|
6
6
|
setComposerText: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
7
7
|
isLoading: boolean;
|
|
8
|
+
isAssistantStreaming: boolean;
|
|
8
9
|
error: string | null;
|
|
9
10
|
sendMessage: (text: string, options?: {
|
|
10
11
|
showUserBubble?: boolean;
|
|
12
|
+
userBubbleText?: string;
|
|
13
|
+
cancellable?: boolean;
|
|
11
14
|
}) => Promise<void>;
|
|
12
15
|
sendInitialMessage: () => Promise<boolean>;
|
|
13
16
|
resetChat: () => void;
|
|
17
|
+
cancelAgentOperation: () => void;
|
|
18
|
+
canCancelBusyTurn: boolean;
|
|
14
19
|
agentDisplayName: string;
|
|
15
20
|
canSend: boolean;
|
|
21
|
+
streamingMessageId: string | null;
|
|
22
|
+
chatPopupOpen: boolean;
|
|
23
|
+
chatPopupMessage: AgentMessage | undefined;
|
|
24
|
+
closeChatPopup: () => void;
|
|
16
25
|
};
|
|
@@ -3,4 +3,6 @@ import { AgentMessage } from '@/types/models/agent-chat-message';
|
|
|
3
3
|
export declare function useAgentActions(messages: AgentMessage[], setComposerText: (text: string) => void): {
|
|
4
4
|
actions: AgentAction[];
|
|
5
5
|
handleActionClick: (action: AgentAction) => void;
|
|
6
|
+
handleComposerTextChange: (text: string) => void;
|
|
7
|
+
clearSelectedAction: () => void;
|
|
6
8
|
};
|
|
@@ -3,4 +3,6 @@ import { AgentMessage } from '@/types/models/agent-chat-message';
|
|
|
3
3
|
export declare function useAgentActions(messages: AgentMessage[], setComposerText: (text: string) => void): {
|
|
4
4
|
actions: AgentAction[];
|
|
5
5
|
handleActionClick: (action: AgentAction) => void;
|
|
6
|
+
handleComposerTextChange: (text: string) => void;
|
|
7
|
+
clearSelectedAction: () => void;
|
|
6
8
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AgentChatPopupComparisonColumn, AgentChatPopupComparisonValue } from '@/types/models/agent-chat-popup-comparison';
|
|
2
|
+
declare function formatLabel(key: string): string;
|
|
3
|
+
declare function formatValue(value: AgentChatPopupComparisonValue | undefined): string;
|
|
4
|
+
declare function getTone(column: AgentChatPopupComparisonColumn): string;
|
|
5
|
+
declare function toHref(value: AgentChatPopupComparisonValue | undefined): string | undefined;
|
|
6
|
+
export declare function useAgentChatPopupComparison(columns: AgentChatPopupComparisonColumn[]): {
|
|
7
|
+
formatLabel: typeof formatLabel;
|
|
8
|
+
formatValue: typeof formatValue;
|
|
9
|
+
getTone: typeof getTone;
|
|
10
|
+
toHref: typeof toHref;
|
|
11
|
+
specKeys: string[];
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AgentChatPopupComparisonColumn, AgentChatPopupComparisonValue } from '@/types/models/agent-chat-popup-comparison';
|
|
2
|
+
declare function formatLabel(key: string): string;
|
|
3
|
+
declare function formatValue(value: AgentChatPopupComparisonValue | undefined): string;
|
|
4
|
+
declare function getTone(column: AgentChatPopupComparisonColumn): string;
|
|
5
|
+
declare function toHref(value: AgentChatPopupComparisonValue | undefined): string | undefined;
|
|
6
|
+
export declare function useAgentChatPopupComparison(columns: AgentChatPopupComparisonColumn[]): {
|
|
7
|
+
formatLabel: typeof formatLabel;
|
|
8
|
+
formatValue: typeof formatValue;
|
|
9
|
+
getTone: typeof getTone;
|
|
10
|
+
toHref: typeof toHref;
|
|
11
|
+
specKeys: string[];
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AgentMessage } from '@/types/models/agent-chat-message';
|
|
2
|
+
import { AgentRuntimeInfo } from '@/types/models/agent-chat-runtime-info';
|
|
3
|
+
export interface UseAgentConnectionStatusParams {
|
|
4
|
+
messages: AgentMessage[];
|
|
5
|
+
runtimeInfo: AgentRuntimeInfo;
|
|
6
|
+
error: string | null;
|
|
7
|
+
}
|
|
8
|
+
export declare function useAgentConnectionStatus({ messages, runtimeInfo, error, }: UseAgentConnectionStatusParams): {
|
|
9
|
+
hasCredentials: boolean;
|
|
10
|
+
hasAssistantResponse: boolean;
|
|
11
|
+
isOnline: boolean;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AgentMessage } from '@/types/models/agent-chat-message';
|
|
2
|
+
import { AgentRuntimeInfo } from '@/types/models/agent-chat-runtime-info';
|
|
3
|
+
export interface UseAgentConnectionStatusParams {
|
|
4
|
+
messages: AgentMessage[];
|
|
5
|
+
runtimeInfo: AgentRuntimeInfo;
|
|
6
|
+
error: string | null;
|
|
7
|
+
}
|
|
8
|
+
export declare function useAgentConnectionStatus({ messages, runtimeInfo, error, }: UseAgentConnectionStatusParams): {
|
|
9
|
+
hasCredentials: boolean;
|
|
10
|
+
hasAssistantResponse: boolean;
|
|
11
|
+
isOnline: boolean;
|
|
12
|
+
};
|
|
@@ -7,6 +7,7 @@ export declare function useAgentUiOptions(ui?: WidgetUiOptions): {
|
|
|
7
7
|
panelGap: string | number | undefined;
|
|
8
8
|
panelBorder: string | undefined;
|
|
9
9
|
panelBorderRadius: string | number | undefined;
|
|
10
|
+
hostContainerSelector: string | undefined;
|
|
10
11
|
zIndex: number;
|
|
11
12
|
fabPosition: {
|
|
12
13
|
left: number;
|
|
@@ -7,6 +7,7 @@ export declare function useAgentUiOptions(ui?: WidgetUiOptions): {
|
|
|
7
7
|
panelGap: string | number | undefined;
|
|
8
8
|
panelBorder: string | undefined;
|
|
9
9
|
panelBorderRadius: string | number | undefined;
|
|
10
|
+
hostContainerSelector: string | undefined;
|
|
10
11
|
zIndex: number;
|
|
11
12
|
fabPosition: {
|
|
12
13
|
left: number;
|
|
@@ -2,13 +2,16 @@ interface UseAgentVoiceHandlersParams {
|
|
|
2
2
|
isListening: boolean;
|
|
3
3
|
stopListening: () => void;
|
|
4
4
|
reset: () => void;
|
|
5
|
-
sendMessage: (text: string
|
|
5
|
+
sendMessage: (text: string, options?: {
|
|
6
|
+
showUserBubble?: boolean;
|
|
7
|
+
}) => Promise<void>;
|
|
6
8
|
composerText: string;
|
|
7
9
|
setComposerText: (text: string) => void;
|
|
8
10
|
startListening: () => void;
|
|
9
11
|
close: () => void;
|
|
12
|
+
onSubmitComplete?: () => void;
|
|
10
13
|
}
|
|
11
|
-
export declare function useAgentVoiceHandlers({ isListening, stopListening, reset, sendMessage, composerText, setComposerText, startListening, close, }: UseAgentVoiceHandlersParams): {
|
|
14
|
+
export declare function useAgentVoiceHandlers({ isListening, stopListening, reset, sendMessage, composerText, setComposerText, startListening, close, onSubmitComplete, }: UseAgentVoiceHandlersParams): {
|
|
12
15
|
handleSubmit: () => void;
|
|
13
16
|
handleToggleVoice: () => void;
|
|
14
17
|
handleClose: () => void;
|
|
@@ -2,13 +2,16 @@ interface UseAgentVoiceHandlersParams {
|
|
|
2
2
|
isListening: boolean;
|
|
3
3
|
stopListening: () => void;
|
|
4
4
|
reset: () => void;
|
|
5
|
-
sendMessage: (text: string
|
|
5
|
+
sendMessage: (text: string, options?: {
|
|
6
|
+
showUserBubble?: boolean;
|
|
7
|
+
}) => Promise<void>;
|
|
6
8
|
composerText: string;
|
|
7
9
|
setComposerText: (text: string) => void;
|
|
8
10
|
startListening: () => void;
|
|
9
11
|
close: () => void;
|
|
12
|
+
onSubmitComplete?: () => void;
|
|
10
13
|
}
|
|
11
|
-
export declare function useAgentVoiceHandlers({ isListening, stopListening, reset, sendMessage, composerText, setComposerText, startListening, close, }: UseAgentVoiceHandlersParams): {
|
|
14
|
+
export declare function useAgentVoiceHandlers({ isListening, stopListening, reset, sendMessage, composerText, setComposerText, startListening, close, onSubmitComplete, }: UseAgentVoiceHandlersParams): {
|
|
12
15
|
handleSubmit: () => void;
|
|
13
16
|
handleToggleVoice: () => void;
|
|
14
17
|
handleClose: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetConfig } from '@/types/models/widget-config';
|
|
2
|
-
export declare function useGenaiLogin(forceReAuth?: boolean): {
|
|
2
|
+
export declare function useGenaiLogin(forceReAuth?: boolean, reAuthTrigger?: number): {
|
|
3
3
|
isLoggingIn: boolean;
|
|
4
4
|
loginError: string | null;
|
|
5
5
|
loginToken: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetConfig } from '@/types/models/widget-config';
|
|
2
|
-
export declare function useGenaiLogin(forceReAuth?: boolean): {
|
|
2
|
+
export declare function useGenaiLogin(forceReAuth?: boolean, reAuthTrigger?: number): {
|
|
3
3
|
isLoggingIn: boolean;
|
|
4
4
|
loginError: string | null;
|
|
5
5
|
loginToken: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function useGenaiTenantSwitch(loginToken: string | null, tenantId: number | undefined, forceReAuth?: boolean): {
|
|
1
|
+
export declare function useGenaiTenantSwitch(loginToken: string | null, tenantId: number | undefined, forceReAuth?: boolean, reAuthTrigger?: number, isLoggingIn?: boolean): {
|
|
2
2
|
isSwitching: boolean;
|
|
3
3
|
switchError: string | null;
|
|
4
4
|
hasToken: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function useGenaiTenantSwitch(loginToken: string | null, tenantId: number | undefined, forceReAuth?: boolean): {
|
|
1
|
+
export declare function useGenaiTenantSwitch(loginToken: string | null, tenantId: number | undefined, forceReAuth?: boolean, reAuthTrigger?: number, isLoggingIn?: boolean): {
|
|
2
2
|
isSwitching: boolean;
|
|
3
3
|
switchError: string | null;
|
|
4
4
|
hasToken: boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ModalProps } from '@mantine/core';
|
|
2
|
+
import { type CSSProperties } from 'react';
|
|
3
|
+
interface UsePopupPortalLayoutOptions {
|
|
4
|
+
hostContainerSelector?: string;
|
|
5
|
+
opened: boolean;
|
|
6
|
+
hasComparison: boolean;
|
|
7
|
+
hasContent: boolean;
|
|
8
|
+
size?: ModalProps['size'] | '2xl';
|
|
9
|
+
zIndex?: number;
|
|
10
|
+
layoutTop?: number | string;
|
|
11
|
+
layoutHeight?: number | string;
|
|
12
|
+
layoutLeftOffset?: number | string;
|
|
13
|
+
layoutRightOffset?: number | string;
|
|
14
|
+
}
|
|
15
|
+
export declare function usePopupPortalLayout({ hostContainerSelector, opened, hasComparison, hasContent, size, zIndex, layoutTop, layoutHeight, layoutLeftOffset, layoutRightOffset, }: UsePopupPortalLayoutOptions): {
|
|
16
|
+
portalTarget: HTMLElement | null;
|
|
17
|
+
resolvedSize: number | import("@mantine/core").MantineSize | (string & {}) | "2xl";
|
|
18
|
+
shellStyle: CSSProperties;
|
|
19
|
+
shouldRender: boolean;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ModalProps } from '@mantine/core';
|
|
2
|
+
import { type CSSProperties } from 'react';
|
|
3
|
+
interface UsePopupPortalLayoutOptions {
|
|
4
|
+
hostContainerSelector?: string;
|
|
5
|
+
opened: boolean;
|
|
6
|
+
hasComparison: boolean;
|
|
7
|
+
hasContent: boolean;
|
|
8
|
+
size?: ModalProps['size'] | '2xl';
|
|
9
|
+
zIndex?: number;
|
|
10
|
+
layoutTop?: number | string;
|
|
11
|
+
layoutHeight?: number | string;
|
|
12
|
+
layoutLeftOffset?: number | string;
|
|
13
|
+
layoutRightOffset?: number | string;
|
|
14
|
+
}
|
|
15
|
+
export declare function usePopupPortalLayout({ hostContainerSelector, opened, hasComparison, hasContent, size, zIndex, layoutTop, layoutHeight, layoutLeftOffset, layoutRightOffset, }: UsePopupPortalLayoutOptions): {
|
|
16
|
+
portalTarget: HTMLElement | null;
|
|
17
|
+
resolvedSize: number | import("@mantine/core").MantineSize | (string & {}) | "2xl";
|
|
18
|
+
shellStyle: CSSProperties;
|
|
19
|
+
shouldRender: boolean;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -6,6 +6,7 @@ interface SendChatMessageParams {
|
|
|
6
6
|
customerId?: string;
|
|
7
7
|
customerToken: string;
|
|
8
8
|
chatId: number | null;
|
|
9
|
+
signal?: AbortSignal;
|
|
9
10
|
}
|
|
10
11
|
export declare function useSendChatMessage(): {
|
|
11
12
|
sendChatMessage: (params: SendChatMessageParams) => Promise<import("../types/dto/genai-agent-message-response.dto").GenaiAgentMessageResponse>;
|
|
@@ -6,6 +6,7 @@ interface SendChatMessageParams {
|
|
|
6
6
|
customerId?: string;
|
|
7
7
|
customerToken: string;
|
|
8
8
|
chatId: number | null;
|
|
9
|
+
signal?: AbortSignal;
|
|
9
10
|
}
|
|
10
11
|
export declare function useSendChatMessage(): {
|
|
11
12
|
sendChatMessage: (params: SendChatMessageParams) => Promise<import("../types/dto/genai-agent-message-response.dto").GenaiAgentMessageResponse>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IconRefreshProps extends Omit<React.SVGProps<SVGSVGElement>, 'size'> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconRefresh({ size, ...props }: IconRefreshProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|