@marketrix.ai/widget 3.8.134 → 3.8.137

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.
Files changed (31) hide show
  1. package/dist/src/components/chat/SimulationStatusIcon.d.ts +6 -0
  2. package/dist/src/components/navigation/MessengerShell.d.ts +1 -1
  3. package/dist/src/components/views/ChatView.d.ts +1 -1
  4. package/dist/src/context/{ConversationContext.d.ts → ChatContext.d.ts} +16 -16
  5. package/dist/src/context/WidgetProviders.d.ts +2 -2
  6. package/dist/src/context/sseReducer.d.ts +7 -10
  7. package/dist/src/hooks/useWidget.d.ts +4 -4
  8. package/dist/src/index.d.ts +2 -2
  9. package/dist/src/sdk/contract.d.ts +16 -18
  10. package/dist/src/sdk/contracts/activityLog.d.ts +32 -32
  11. package/dist/src/sdk/contracts/application.d.ts +2 -2
  12. package/dist/src/sdk/contracts/common.d.ts +1 -12
  13. package/dist/src/sdk/contracts/entities.d.ts +24 -130
  14. package/dist/src/sdk/contracts/widget.d.ts +21 -26
  15. package/dist/src/sdk/index.d.ts +16 -18
  16. package/dist/src/services/ApiService.d.ts +2 -2
  17. package/dist/src/services/{ToolService.d.ts → BrowserToolService.d.ts} +4 -4
  18. package/dist/src/services/ChatService.d.ts +2 -2
  19. package/dist/src/services/{SessionManager.d.ts → ChatSessionManager.d.ts} +3 -3
  20. package/dist/src/services/DomService.d.ts +1 -1
  21. package/dist/src/services/{SessionRecorder.d.ts → RrwebSessionRecorder.d.ts} +3 -3
  22. package/dist/src/services/ShowModeService.d.ts +1 -1
  23. package/dist/src/services/StorageService.d.ts +5 -5
  24. package/dist/src/services/WidgetService.d.ts +1 -1
  25. package/dist/src/types/browserTools.d.ts +1 -1
  26. package/dist/src/types/index.d.ts +6 -6
  27. package/dist/src/utils/chat.d.ts +7 -7
  28. package/dist/widget.mjs +62 -62
  29. package/dist/widget.mjs.map +1 -1
  30. package/package.json +7 -7
  31. package/dist/src/components/chat/TaskStatusIcon.d.ts +0 -6
@@ -9,7 +9,7 @@ export declare class WidgetService {
9
9
  * Always returns default settings merged with existing widget settings if found
10
10
  * Returns null if no credentials provided (for preview mode)
11
11
  */
12
- fetchWidgetSettings(): Promise<WidgetData | null>;
12
+ widgetSettingsGet(): Promise<WidgetData | null>;
13
13
  /**
14
14
  * Get widget settings from widget data
15
15
  * Settings are always objects (current API format)
@@ -2,7 +2,7 @@
2
2
  * Browser Use Tools - widget tool registry.
3
3
  *
4
4
  * IMPORTANT: This file is the single source of truth for widget tool metadata.
5
- * ALLOWED_TOOLS in ConversationContext.tsx and TOOL_NAME_MAPPING in chat.ts are
5
+ * ALLOWED_TOOLS in ChatContext.tsx and TOOL_NAME_MAPPING in chat.ts are
6
6
  * derived from BROWSER_TOOLS below.
7
7
  */
8
8
  interface BrowserToolMetadata {
@@ -46,13 +46,13 @@ export interface ChatMessage {
46
46
  isPlaceholder?: boolean;
47
47
  placeholderState?: 'thinking' | 'waiting-for-user';
48
48
  parts?: MessagePart[];
49
- taskStatus?: 'ongoing' | 'done' | 'failed' | 'stopped';
49
+ simulationStatus?: 'ongoing' | 'done' | 'failed' | 'stopped';
50
50
  }
51
51
  export interface MessagePart {
52
52
  type: 'text' | 'progress';
53
53
  content: string;
54
54
  status?: 'in_progress' | 'completed' | 'failed' | 'stopped';
55
- toolName?: string;
55
+ browserToolName?: string;
56
56
  hideIcon?: boolean;
57
57
  textStyle?: 'default' | 'muted';
58
58
  }
@@ -65,11 +65,11 @@ export interface WidgetState {
65
65
  currentMode: InstructionType;
66
66
  agentAvailable: boolean;
67
67
  error?: string;
68
- activeTaskId: string | null;
69
- isTaskRunning: boolean;
68
+ activeSimulationId: string | null;
69
+ isSimulationRunning: boolean;
70
70
  activeView: WidgetView;
71
71
  }
72
- export interface SendMessageRequest {
72
+ export interface MessageDispatchRequest {
73
73
  message?: string;
74
74
  mode?: InstructionType;
75
75
  mtxId?: string;
@@ -78,7 +78,7 @@ export interface SendMessageRequest {
78
78
  question?: string;
79
79
  requestId?: string;
80
80
  }
81
- export interface SendMessageResponse {
81
+ export interface MessageDispatchResponse {
82
82
  messageId: string;
83
83
  response: string;
84
84
  mode: InstructionType;
@@ -18,7 +18,7 @@ export declare function addThinkingMarker(content: string): string;
18
18
  */
19
19
  export interface FindMessageOptions {
20
20
  messages: ChatMessage[];
21
- isTaskRunning: boolean;
21
+ isSimulationRunning: boolean;
22
22
  currentMode: InstructionType;
23
23
  requireContent?: boolean;
24
24
  }
@@ -41,13 +41,13 @@ export declare function findMessageForProgress(options: FindMessageOptions): {
41
41
  /**
42
42
  * Tools that, in `show` mode, pause for the user to perform the action
43
43
  * themselves (DOM-mutating "mouse and keyboard" actions, minus `scroll`).
44
- * Also the set that requires element highlighting in ToolService.
44
+ * Also the set that requires element highlighting in BrowserToolService.
45
45
  */
46
46
  export declare const WAIT_FOR_USER_TOOLS: Set<string>;
47
- export declare function addProgressLine(message: ChatMessage, toolName: string, explanation: string): ChatMessage;
48
- export declare function markProgressLineComplete(message: ChatMessage, toolName?: string): ChatMessage;
49
- export declare function markProgressLineFailed(message: ChatMessage, toolName: string, error: string): ChatMessage;
50
- export declare function updateThinkingMarker(message: ChatMessage, isTaskRunning: boolean, currentMode: 'show' | 'tell' | 'do', isWaitingForUser?: boolean): ChatMessage;
47
+ export declare function addProgressLine(message: ChatMessage, browserToolName: string, explanation: string): ChatMessage;
48
+ export declare function markProgressLineComplete(message: ChatMessage, browserToolName?: string): ChatMessage;
49
+ export declare function markProgressLineFailed(message: ChatMessage, browserToolName: string, error: string): ChatMessage;
50
+ export declare function updateThinkingMarker(message: ChatMessage, isSimulationRunning: boolean, currentMode: 'show' | 'tell' | 'do', isWaitingForUser?: boolean): ChatMessage;
51
51
  /**
52
52
  * Tool Name Mapping — derived from BROWSER_TOOLS (single source of truth).
53
53
  * Provides friendly display names for technical tool names.
@@ -57,4 +57,4 @@ export declare const TOOL_NAME_MAPPING: Record<string, string>;
57
57
  * Get a friendly display name for a tool
58
58
  * Converts snake_case to Title Case if no mapping exists
59
59
  */
60
- export declare function getFriendlyToolName(toolName: string): string;
60
+ export declare function getFriendlyToolName(browserToolName: string): string;