@marketrix.ai/widget 3.8.458 → 3.8.460

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.
@@ -2,8 +2,8 @@ import { type ElementType } from 'react';
2
2
  import { type RadiusToken } from '../../design-system/component-tokens';
3
3
  import type { ShadowToken } from '../../design-system/shadows';
4
4
  import { type LayoutProps } from './layoutProps';
5
- export type SurfaceBackground = 'default' | 'card' | 'transparent' | 'muted' | 'secondary' | 'primary';
6
- export type SurfacePadding = 'none' | 'compact' | 'card' | 'dialog' | 'toast';
5
+ export type SurfaceBackground = 'default' | 'card';
6
+ export type SurfacePadding = 'none' | 'card' | 'toast';
7
7
  export interface SurfaceProps extends LayoutProps, Omit<React.HTMLAttributes<HTMLElement>, 'className'> {
8
8
  as?: ElementType;
9
9
  background?: SurfaceBackground;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
+ import { type NotificationTone } from '../../design-system/component-tokens';
2
3
  export interface NotificationToastProps {
3
- tone: 'info' | 'error';
4
+ tone: NotificationTone;
4
5
  title: string;
5
6
  body?: string;
6
7
  onDismiss: () => void;
@@ -1,9 +1,9 @@
1
1
  import type { CSSProperties } from 'react';
2
2
  import { type ShadowToken } from './shadows';
3
3
  export type RadiusToken = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'theme' | 'pill' | 'circle';
4
- export type TextTone = 'default' | 'muted' | 'faint' | 'primary' | 'success' | 'warning' | 'inherit';
4
+ export type TextTone = 'default' | 'muted' | 'faint' | 'primary' | 'inherit';
5
5
  export type TextLeading = 'tight' | 'snug' | 'normal' | 'relaxed';
6
- export type NotificationTone = 'info' | 'error';
6
+ export type NotificationTone = 'info' | 'error' | 'neutral';
7
7
  export declare const radiusClasses: Record<RadiusToken, string>;
8
8
  export declare const textToneClasses: Record<TextTone, string>;
9
9
  export declare const textLeadingClasses: Record<TextLeading, string>;
@@ -6,11 +6,9 @@ type SemanticTokens = {
6
6
  foregroundMuted: string;
7
7
  foregroundFaint: string;
8
8
  border: string;
9
- borderMuted: string;
10
9
  primary: string;
11
10
  primaryForeground: string;
12
11
  primaryHover: string;
13
- primaryMuted: string;
14
12
  secondary: string;
15
13
  secondaryForeground: string;
16
14
  secondaryBg: string;
@@ -22,10 +20,6 @@ type SemanticTokens = {
22
20
  durationAnimation: string;
23
21
  durationFade: string;
24
22
  };
25
- size: {
26
- widgetWidth: string;
27
- widgetHeight: string;
28
- };
29
23
  };
30
24
  export declare function createSemanticTokens(settings?: Partial<WidgetSettingsData>): SemanticTokens;
31
25
  export declare function semanticTokensToCssCustomProperties(tokens: SemanticTokens): Record<string, string>;
@@ -465,6 +465,6 @@ export declare const sdk: {
465
465
  };
466
466
  export { WidgetSettingsDataSchema } from './contracts/entities';
467
467
  export { WidgetEventSchema } from './contracts/widget';
468
- export type { ApplicationData, InstructionType, UserData, WidgetChip, WidgetData, WidgetSettingsData, WorkspaceData, } from './contracts/entities';
469
- export type { WidgetCommand, WidgetEvent, WidgetSettingsKey } from './contracts/widget';
468
+ export type { InstructionType, WidgetData, WidgetSettingsData } from './contracts/entities';
469
+ export type { WidgetCommand, WidgetEvent } from './contracts/widget';
470
470
  export type { widgetContract } from './contract';
@@ -21,53 +21,6 @@ export interface ToolExecutionResult<T = TextData> {
21
21
  data: T;
22
22
  error?: string;
23
23
  }
24
- export interface NavigateParams {
25
- url: string;
26
- new_tab?: boolean;
27
- }
28
- export interface SearchParams {
29
- query: string;
30
- engine?: 'duckduckgo' | 'google' | 'bing';
31
- }
32
- export interface ClickElementParams {
33
- index: number;
34
- }
35
- export interface TypeTextParams {
36
- index: number;
37
- text: string;
38
- clear?: boolean;
39
- }
40
- export interface ScrollParams {
41
- direction: 'up' | 'down' | 'left' | 'right';
42
- }
43
- export interface ScrollToTextParams {
44
- text: string;
45
- }
46
- export interface SendKeysParams {
47
- index: number;
48
- keys: string;
49
- }
50
- export interface SelectDropdownOptionParams {
51
- index: number;
52
- option: string;
53
- }
54
- export interface GetDropdownOptionsParams {
55
- index: number;
56
- }
57
- export interface UploadFileParams {
58
- index: number;
59
- path: string;
60
- }
61
- export interface DoneParams {
62
- success: boolean;
63
- message?: string;
64
- }
65
- export interface WaitParams {
66
- seconds: number;
67
- }
68
- export interface ExtractParams {
69
- extract_links?: boolean;
70
- }
71
24
  export declare class BrowserToolService {
72
25
  executeTool(browserToolName: string, args: Record<string, unknown>, mode?: string, explanation?: string): Promise<ToolExecutionResult<unknown>>;
73
26
  private navigate;
@@ -12,7 +12,6 @@ export declare const createWidgetContainer: (parentContainer?: HTMLElement) => {
12
12
  export declare const mountWidgetToContainer: (mountEl: HTMLElement, config: MarketrixConfig, previewMode?: boolean) => Root;
13
13
  export declare const isWidgetInitialized: () => boolean;
14
14
  export declare const getCurrentConfig: () => MarketrixConfig | null;
15
- export declare const showWidgetSettingsLoader: (message?: string) => void;
15
+ export declare const showWidgetSettingsLoader: (message: string) => void;
16
16
  export declare const hideWidgetSettingsLoader: () => void;
17
- export declare const autoInitializeWidget: () => void;
18
- export declare const registerAutoInit: (initWidget: (config: MarketrixConfig) => Promise<void>) => void;
17
+ export declare const autoInitializeWidget: (initWidget: (config: MarketrixConfig) => Promise<void>) => void;