@marketrix.ai/widget 3.8.459 → 3.8.461

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.
@@ -158,8 +158,6 @@ export declare const sdk: {
158
158
  widget_enabled: import("zod").ZodBoolean;
159
159
  widget_appearance: import("zod").ZodEnum<{
160
160
  default: "default";
161
- compact: "compact";
162
- full: "full";
163
161
  hidden: "hidden";
164
162
  }>;
165
163
  widget_position: import("zod").ZodEnum<{
@@ -168,11 +166,6 @@ export declare const sdk: {
168
166
  top_left: "top_left";
169
167
  top_right: "top_right";
170
168
  }>;
171
- widget_device: import("zod").ZodEnum<{
172
- desktop: "desktop";
173
- mobile: "mobile";
174
- desktop_mobile: "desktop_mobile";
175
- }>;
176
169
  widget_header: import("zod").ZodString;
177
170
  widget_body: import("zod").ZodString;
178
171
  widget_greeting: import("zod").ZodString;
@@ -181,7 +174,6 @@ export declare const sdk: {
181
174
  widget_feature_tell: import("zod").ZodBoolean;
182
175
  widget_feature_show: import("zod").ZodBoolean;
183
176
  widget_feature_do: import("zod").ZodBoolean;
184
- widget_feature_human: import("zod").ZodBoolean;
185
177
  widget_background_color: import("zod").ZodString;
186
178
  widget_text_color: import("zod").ZodString;
187
179
  widget_border_color: import("zod").ZodString;
@@ -191,10 +183,8 @@ export declare const sdk: {
191
183
  widget_font_size: import("zod").ZodString;
192
184
  widget_width: import("zod").ZodString;
193
185
  widget_height: import("zod").ZodString;
194
- widget_shadow: import("zod").ZodString;
195
186
  widget_animation_duration: import("zod").ZodString;
196
187
  widget_fade_duration: import("zod").ZodString;
197
- widget_bounce_effect: import("zod").ZodBoolean;
198
188
  widget_chips: import("zod").ZodArray<import("zod").ZodObject<{
199
189
  chip_mode: import("zod").ZodEnum<{
200
190
  tell: "tell";
@@ -223,8 +213,6 @@ export declare const sdk: {
223
213
  widget_enabled: import("zod").ZodBoolean;
224
214
  widget_appearance: import("zod").ZodEnum<{
225
215
  default: "default";
226
- compact: "compact";
227
- full: "full";
228
216
  hidden: "hidden";
229
217
  }>;
230
218
  widget_position: import("zod").ZodEnum<{
@@ -233,11 +221,6 @@ export declare const sdk: {
233
221
  top_left: "top_left";
234
222
  top_right: "top_right";
235
223
  }>;
236
- widget_device: import("zod").ZodEnum<{
237
- desktop: "desktop";
238
- mobile: "mobile";
239
- desktop_mobile: "desktop_mobile";
240
- }>;
241
224
  widget_header: import("zod").ZodString;
242
225
  widget_body: import("zod").ZodString;
243
226
  widget_greeting: import("zod").ZodString;
@@ -246,7 +229,6 @@ export declare const sdk: {
246
229
  widget_feature_tell: import("zod").ZodBoolean;
247
230
  widget_feature_show: import("zod").ZodBoolean;
248
231
  widget_feature_do: import("zod").ZodBoolean;
249
- widget_feature_human: import("zod").ZodBoolean;
250
232
  widget_background_color: import("zod").ZodString;
251
233
  widget_text_color: import("zod").ZodString;
252
234
  widget_border_color: import("zod").ZodString;
@@ -256,10 +238,8 @@ export declare const sdk: {
256
238
  widget_font_size: import("zod").ZodString;
257
239
  widget_width: import("zod").ZodString;
258
240
  widget_height: import("zod").ZodString;
259
- widget_shadow: import("zod").ZodString;
260
241
  widget_animation_duration: import("zod").ZodString;
261
242
  widget_fade_duration: import("zod").ZodString;
262
- widget_bounce_effect: import("zod").ZodBoolean;
263
243
  widget_chips: import("zod").ZodArray<import("zod").ZodObject<{
264
244
  chip_mode: import("zod").ZodEnum<{
265
245
  tell: "tell";
@@ -291,8 +271,6 @@ export declare const sdk: {
291
271
  widget_enabled: import("zod").ZodBoolean;
292
272
  widget_appearance: import("zod").ZodEnum<{
293
273
  default: "default";
294
- compact: "compact";
295
- full: "full";
296
274
  hidden: "hidden";
297
275
  }>;
298
276
  widget_position: import("zod").ZodEnum<{
@@ -301,11 +279,6 @@ export declare const sdk: {
301
279
  top_left: "top_left";
302
280
  top_right: "top_right";
303
281
  }>;
304
- widget_device: import("zod").ZodEnum<{
305
- desktop: "desktop";
306
- mobile: "mobile";
307
- desktop_mobile: "desktop_mobile";
308
- }>;
309
282
  widget_header: import("zod").ZodString;
310
283
  widget_body: import("zod").ZodString;
311
284
  widget_greeting: import("zod").ZodString;
@@ -314,7 +287,6 @@ export declare const sdk: {
314
287
  widget_feature_tell: import("zod").ZodBoolean;
315
288
  widget_feature_show: import("zod").ZodBoolean;
316
289
  widget_feature_do: import("zod").ZodBoolean;
317
- widget_feature_human: import("zod").ZodBoolean;
318
290
  widget_background_color: import("zod").ZodString;
319
291
  widget_text_color: import("zod").ZodString;
320
292
  widget_border_color: import("zod").ZodString;
@@ -324,10 +296,8 @@ export declare const sdk: {
324
296
  widget_font_size: import("zod").ZodString;
325
297
  widget_width: import("zod").ZodString;
326
298
  widget_height: import("zod").ZodString;
327
- widget_shadow: import("zod").ZodString;
328
299
  widget_animation_duration: import("zod").ZodString;
329
300
  widget_fade_duration: import("zod").ZodString;
330
- widget_bounce_effect: import("zod").ZodBoolean;
331
301
  widget_chips: import("zod").ZodArray<import("zod").ZodObject<{
332
302
  chip_mode: import("zod").ZodEnum<{
333
303
  tell: "tell";
@@ -7,7 +7,6 @@ export type StoredMessage = Omit<ChatMessage, 'videoStream' | 'timestamp'> & {
7
7
  export interface ChatSnapshot {
8
8
  messages: ChatMessage[];
9
9
  isTaskRunning: boolean;
10
- activeTaskId: string | null;
11
10
  currentMode: InstructionType;
12
11
  isOpen: boolean;
13
12
  }
@@ -24,6 +24,13 @@ export declare class StreamClient {
24
24
  addCallbacks(callbacks: StreamClientCallbacks): void;
25
25
  removeCallbacks(callbacks: StreamClientCallbacks): void;
26
26
  isConnected(): boolean;
27
+ /** Whether a user-driven retry can achieve anything: there is a chat to rejoin and the stream is not
28
+ * auth-latched (reconnecting on a rejected credential just re-earns the same 401). */
29
+ canReconnect(): boolean;
30
+ /** The user asked to retry. `scheduleReconnect` gives up permanently at `maxReconnectAttempts` and only
31
+ * `registered` resets the counters, so without this reset the widget's Retry button had nothing it
32
+ * could do — which is why it was wired to plain dismiss. */
33
+ reconnectNow(): void;
27
34
  waitUntilRegistered(): Promise<void>;
28
35
  connect(chatId: string): Promise<void>;
29
36
  private consumeEvents;
@@ -43,7 +43,6 @@ export interface WidgetState {
43
43
  messages: ChatMessage[];
44
44
  currentMode: InstructionType;
45
45
  error?: string;
46
- activeTaskId: string | null;
47
46
  isTaskRunning: boolean;
48
47
  activeView: WidgetView;
49
48
  }
@@ -1,4 +1,5 @@
1
1
  import { type Root } from 'react-dom/client';
2
+ import type { NotificationTone } from '../design-system/component-tokens';
2
3
  import type { MarketrixConfig } from '../types';
3
4
  export declare const widgetState: {
4
5
  instance: Root | null;
@@ -12,6 +13,8 @@ export declare const createWidgetContainer: (parentContainer?: HTMLElement) => {
12
13
  export declare const mountWidgetToContainer: (mountEl: HTMLElement, config: MarketrixConfig, previewMode?: boolean) => Root;
13
14
  export declare const isWidgetInitialized: () => boolean;
14
15
  export declare const getCurrentConfig: () => MarketrixConfig | null;
15
- export declare const showWidgetSettingsLoader: (message: string) => void;
16
+ /** ``tone`` because this one surface carries both the loading notice and the two hard init failures, and
17
+ * a failure painted in the neutral palette reads as an informational notice on the host's page. */
18
+ export declare const showWidgetSettingsLoader: (message: string, tone?: NotificationTone) => void;
16
19
  export declare const hideWidgetSettingsLoader: () => void;
17
20
  export declare const autoInitializeWidget: (initWidget: (config: MarketrixConfig) => Promise<void>) => void;
@@ -18,4 +18,4 @@ export declare const markProgressLineComplete: (message: ChatMessage) => ChatMes
18
18
  export declare function markProgressLineFailed(message: ChatMessage, browserToolName: string, error: string): ChatMessage;
19
19
  /** Tool id -> the phrase shown in the activity log. Also the allowlist of tools the agent may call. */
20
20
  export declare const BROWSER_TOOLS: Map<string, string>;
21
- export declare function getFriendlyToolName(browserToolName: string): string;
21
+ export declare const getFriendlyToolName: (browserToolName: string) => string;
@@ -1,8 +1,2 @@
1
- export declare function hexToRgb(hex: string): {
2
- r: number;
3
- g: number;
4
- b: number;
5
- } | null;
6
1
  export declare function getContrastingColor(color: string): string;
7
2
  export declare function addOpacity(color: string, opacity: number): string;
8
- export declare function darkenColor(color: string, amount: number): string;