@marketrix.ai/widget 3.8.449 → 3.8.453
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/src/components/chat/ProgressLine.d.ts +0 -3
- package/dist/src/components/navigation/MessengerShell.d.ts +1 -1
- package/dist/src/components/views/ChatView.d.ts +1 -1
- package/dist/src/context/ChatContext.d.ts +1 -1
- package/dist/src/design-system/component-tokens.d.ts +0 -9
- package/dist/src/design-system/layers.d.ts +0 -3
- package/dist/src/hooks/useScreenShare.d.ts +1 -4
- package/dist/src/hooks/useWidget.d.ts +1 -1
- package/dist/src/sdk/contract.d.ts +2 -2
- package/dist/src/sdk/contracts/entities.d.ts +0 -2171
- package/dist/src/sdk/contracts/widget.d.ts +5 -5
- package/dist/src/sdk/index.d.ts +2 -7
- package/dist/src/services/BrowserToolService.d.ts +2 -11
- package/dist/src/services/ChatService.d.ts +0 -4
- package/dist/src/services/ChatSessionManager.d.ts +1 -3
- package/dist/src/services/ConfigManager.d.ts +0 -3
- package/dist/src/services/DomService.d.ts +1 -25
- package/dist/src/services/ShowModeService.d.ts +0 -3
- package/dist/src/services/StorageService.d.ts +1 -3
- package/dist/src/services/StreamClient.d.ts +0 -2
- package/dist/src/types/index.d.ts +0 -3
- package/dist/src/utils/chat.d.ts +3 -2
- package/dist/widget.mjs +60 -61
- package/dist/widget.mjs.map +1 -1
- package/package.json +2 -4
- package/dist/src/types/browserTools.d.ts +0 -11
- package/dist/src/utils/logger.d.ts +0 -6
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface ProgressLineProps {
|
|
3
3
|
content: string;
|
|
4
|
-
status?: 'in_progress' | 'completed' | 'failed' | 'stopped';
|
|
5
|
-
hideIcon?: boolean;
|
|
6
|
-
textStyle?: 'default' | 'muted';
|
|
7
4
|
}
|
|
8
5
|
export declare const ProgressLine: React.FC<ProgressLineProps>;
|
|
9
6
|
export {};
|
|
@@ -9,7 +9,7 @@ export interface MessengerShellProps {
|
|
|
9
9
|
isTaskRunning?: boolean;
|
|
10
10
|
activeView: WidgetView;
|
|
11
11
|
onClose: () => void;
|
|
12
|
-
onSendMessage: (message: string, mode?: InstructionType,
|
|
12
|
+
onSendMessage: (message: string, mode?: InstructionType, skipUserMessage?: boolean) => void;
|
|
13
13
|
onSetMode: (mode: InstructionType) => void;
|
|
14
14
|
onAddMessage: (message: ChatMessage) => void;
|
|
15
15
|
onUpdateMessage: (messageId: string, updates: Partial<ChatMessage>) => void;
|
|
@@ -6,7 +6,7 @@ export interface ChatViewProps {
|
|
|
6
6
|
messages: ChatMessage[];
|
|
7
7
|
currentMode: InstructionType;
|
|
8
8
|
isTaskRunning?: boolean;
|
|
9
|
-
onSendMessage: (message: string, mode?: InstructionType,
|
|
9
|
+
onSendMessage: (message: string, mode?: InstructionType, skipUserMessage?: boolean) => void;
|
|
10
10
|
onSetMode: (mode: InstructionType) => void;
|
|
11
11
|
onAddMessage: (message: ChatMessage) => void;
|
|
12
12
|
onUpdateMessage: (messageId: string, updates: Partial<ChatMessage>) => void;
|
|
@@ -14,7 +14,7 @@ export interface ChatActions {
|
|
|
14
14
|
removeMessage: (messageId: string) => void;
|
|
15
15
|
setMessages: (messages: ChatMessage[]) => void;
|
|
16
16
|
clearMessages: () => void;
|
|
17
|
-
messageDispatch: (content: string, mode?: InstructionType,
|
|
17
|
+
messageDispatch: (content: string, mode?: InstructionType, skipUserMessage?: boolean) => Promise<void>;
|
|
18
18
|
}
|
|
19
19
|
export interface TaskActions {
|
|
20
20
|
setTaskState: (payload: {
|
|
@@ -14,14 +14,6 @@ export declare const controlSizeStyles: {
|
|
|
14
14
|
tabBar: {
|
|
15
15
|
height: number;
|
|
16
16
|
};
|
|
17
|
-
launcher: {
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
};
|
|
21
|
-
launcherCore: {
|
|
22
|
-
width: number;
|
|
23
|
-
height: number;
|
|
24
|
-
};
|
|
25
17
|
};
|
|
26
18
|
export declare const notificationToneStyles: Record<NotificationTone, {
|
|
27
19
|
background: string;
|
|
@@ -29,7 +21,6 @@ export declare const notificationToneStyles: Record<NotificationTone, {
|
|
|
29
21
|
titleColor: string;
|
|
30
22
|
bodyColor: string;
|
|
31
23
|
closeColor: string;
|
|
32
|
-
closeHoverColor: string;
|
|
33
24
|
actionBackground: string;
|
|
34
25
|
}>;
|
|
35
26
|
export declare function getElevationStyle(token?: ShadowToken | null): CSSProperties | undefined;
|
|
@@ -3,8 +3,6 @@ import type { ChatMessage } from '../types';
|
|
|
3
3
|
export interface PendingMessage {
|
|
4
4
|
content: string;
|
|
5
5
|
mode?: InstructionType;
|
|
6
|
-
applicationId?: number;
|
|
7
|
-
question?: string;
|
|
8
6
|
alreadyAdded?: boolean;
|
|
9
7
|
}
|
|
10
8
|
export interface UseScreenShareOptions {
|
|
@@ -14,13 +12,12 @@ export interface UseScreenShareOptions {
|
|
|
14
12
|
onAddMessage: (message: ChatMessage) => void;
|
|
15
13
|
onUpdateMessage: (messageId: string, updates: Partial<ChatMessage>) => void;
|
|
16
14
|
onRemoveMessage?: (messageId: string) => void;
|
|
17
|
-
onSendMessage: (message: string, mode?: InstructionType,
|
|
15
|
+
onSendMessage: (message: string, mode?: InstructionType, skipUserMessage?: boolean) => void;
|
|
18
16
|
pendingMessage: PendingMessage | null;
|
|
19
17
|
setPendingMessage: (message: PendingMessage | null) => void;
|
|
20
18
|
}
|
|
21
19
|
export interface UseScreenShareReturn {
|
|
22
20
|
isScreenSharing: boolean;
|
|
23
|
-
screenStream: MediaStream | null;
|
|
24
21
|
showScreenAccessDialog: boolean;
|
|
25
22
|
handleScreenAccessDialogAllow: () => Promise<void>;
|
|
26
23
|
handleScreenAccessDialogDeny: () => void;
|
|
@@ -22,7 +22,7 @@ interface UseWidgetActions {
|
|
|
22
22
|
setMessages: (messages: ChatMessage[]) => void;
|
|
23
23
|
stopTask: () => Promise<void>;
|
|
24
24
|
clearChatHistory: () => void;
|
|
25
|
-
messageDispatch: (content: string, mode?: InstructionType,
|
|
25
|
+
messageDispatch: (content: string, mode?: InstructionType, skipUserMessage?: boolean) => Promise<void>;
|
|
26
26
|
}
|
|
27
27
|
export declare const useWidget: ({ config }?: UseWidgetProps) => {
|
|
28
28
|
state: WidgetState;
|
|
@@ -427,7 +427,7 @@ export declare const widgetContract: {
|
|
|
427
427
|
error: string;
|
|
428
428
|
} | {
|
|
429
429
|
type: "task/status";
|
|
430
|
-
status: "running" | "
|
|
430
|
+
status: "running" | "completed" | "failed" | "stopped" | "has_question";
|
|
431
431
|
message?: string | undefined;
|
|
432
432
|
task_id?: string | undefined;
|
|
433
433
|
timestamp?: number | undefined;
|
|
@@ -458,7 +458,7 @@ export declare const widgetContract: {
|
|
|
458
458
|
error: string;
|
|
459
459
|
} | {
|
|
460
460
|
type: "task/status";
|
|
461
|
-
status: "running" | "
|
|
461
|
+
status: "running" | "completed" | "failed" | "stopped" | "has_question";
|
|
462
462
|
message?: string | undefined;
|
|
463
463
|
task_id?: string | undefined;
|
|
464
464
|
timestamp?: number | undefined;
|