@marketrix.ai/widget 3.8.456 → 3.8.457
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/base/Stack.d.ts +3 -15
- package/dist/src/components/base/icons.d.ts +0 -32
- package/dist/src/components/blocks/HeaderBar.d.ts +2 -2
- package/dist/src/components/blocks/WidgetFab.d.ts +2 -15
- package/dist/src/components/chat/MessageList.d.ts +3 -7
- package/dist/src/components/chat/SuggestedActions.d.ts +3 -9
- package/dist/src/components/chat/TaskStatusIcon.d.ts +4 -5
- package/dist/src/components/navigation/MessengerShell.d.ts +1 -21
- package/dist/src/components/views/ChatView.d.ts +6 -18
- package/dist/src/components/views/HomeView.d.ts +0 -3
- package/dist/src/context/ChatContext.d.ts +3 -11
- package/dist/src/context/UIStateContext.d.ts +2 -9
- package/dist/src/context/sseReducer.d.ts +2 -2
- package/dist/src/design-system/component-tokens.d.ts +1 -8
- package/dist/src/hooks/useResize.d.ts +1 -1
- package/dist/src/hooks/useWidget.d.ts +4 -10
- package/dist/src/sdk/contract.d.ts +0 -10
- package/dist/src/sdk/contracts/activityLog.d.ts +0 -30
- package/dist/src/sdk/contracts/entities.d.ts +0 -15
- package/dist/src/sdk/index.d.ts +0 -10
- package/dist/src/services/ApiService.d.ts +4 -3
- package/dist/src/services/ChatService.d.ts +5 -5
- package/dist/src/services/DomService.d.ts +2 -20
- package/dist/src/services/StorageService.d.ts +2 -1
- package/dist/src/services/StreamClient.d.ts +0 -2
- package/dist/src/types/index.d.ts +3 -10
- package/dist/src/utils/chat.d.ts +3 -0
- package/dist/src/utils/color.d.ts +0 -2
- package/dist/src/utils/suggestedActions.d.ts +0 -3
- package/dist/widget.mjs +63 -60
- package/dist/widget.mjs.map +1 -1
- package/package.json +1 -1
package/dist/src/utils/chat.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { ChatMessage, InstructionType } from '../types';
|
|
2
|
+
export declare const getModeDisplayName: (mode: InstructionType) => string;
|
|
3
|
+
export declare const formatMessageTime: (date: Date | undefined) => string;
|
|
2
4
|
export declare function removeThinkingMarkers(content: string): string;
|
|
3
5
|
export declare function removeThinkingMarkerFromEnd(content: string): string;
|
|
4
6
|
export declare function hasThinkingMarker(content: string): boolean;
|
|
@@ -15,6 +17,7 @@ export declare function findMessageForProgress({ messages, isTaskRunning, curren
|
|
|
15
17
|
message: ChatMessage;
|
|
16
18
|
} | null;
|
|
17
19
|
export declare const WAIT_FOR_USER_TOOLS: Set<string>;
|
|
20
|
+
export declare function filterCancellationText(content: string): string;
|
|
18
21
|
export declare function addProgressLine(message: ChatMessage, browserToolName: string, explanation: string): ChatMessage;
|
|
19
22
|
export declare function markProgressLineComplete(message: ChatMessage): ChatMessage;
|
|
20
23
|
export declare function markProgressLineFailed(message: ChatMessage, browserToolName: string, error: string): ChatMessage;
|
|
@@ -6,5 +6,3 @@ export declare function hexToRgb(hex: string): {
|
|
|
6
6
|
export declare function getContrastingColor(color: string): string;
|
|
7
7
|
export declare function addOpacity(color: string, opacity: number): string;
|
|
8
8
|
export declare function darkenColor(color: string, amount: number): string;
|
|
9
|
-
export declare const formatMessageTime: (date: Date | undefined) => string;
|
|
10
|
-
export declare const getModeDisplayName: (mode: "show" | "tell" | "do") => string;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { MarketrixConfig } from '../types';
|
|
3
2
|
export interface SuggestedActionItem {
|
|
4
3
|
id: string;
|
|
5
4
|
text: string;
|
|
6
|
-
icon: React.ReactElement;
|
|
7
5
|
type: 'tell' | 'show' | 'do';
|
|
8
|
-
isShow: boolean;
|
|
9
6
|
}
|
|
10
7
|
export declare function getSuggestedActionsFromConfig(config: MarketrixConfig): SuggestedActionItem[];
|