@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.
@@ -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, applicationId?: number, question?: string, skipUserMessage?: boolean) => void;
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, applicationId?: number, question?: string, skipUserMessage?: boolean) => void;
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, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
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;
@@ -1,9 +1,6 @@
1
1
  export type LayerTokens = {
2
- launcher: number;
3
2
  panel: number;
4
3
  overlay: number;
5
- modal: number;
6
4
  toast: number;
7
- debug: number;
8
5
  };
9
6
  export declare const LAYER_TOKENS: LayerTokens;
@@ -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, applicationId?: number, question?: string, skipUserMessage?: boolean) => void;
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, applicationId?: number, question?: string, skipUserMessage?: boolean) => Promise<void>;
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" | "has_question" | "completed" | "failed" | "stopped";
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" | "has_question" | "completed" | "failed" | "stopped";
461
+ status: "running" | "completed" | "failed" | "stopped" | "has_question";
462
462
  message?: string | undefined;
463
463
  task_id?: string | undefined;
464
464
  timestamp?: number | undefined;