@marketrix.ai/widget 3.8.481 → 3.8.483

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.
@@ -8,7 +8,7 @@ export interface AvatarProps extends Omit<ComponentPropsWithRef<'img'>, 'size'>
8
8
  elevation?: ShadowToken;
9
9
  fit?: 'contain' | 'cover';
10
10
  size?: AvatarSize | number;
11
- rounded?: boolean | 'full' | 'theme' | RadiusToken;
11
+ rounded?: boolean | RadiusToken;
12
12
  }
13
13
  export declare function Avatar(props: AvatarProps): import("react").JSX.Element;
14
14
  export {};
@@ -2,7 +2,7 @@ import type { ComponentPropsWithRef } from 'react';
2
2
  import type { ShadowToken } from '../../design-system/shadows';
3
3
  type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'bare' | 'chip' | 'tab';
4
4
  type ButtonSize = 'sm' | 'md';
5
- type ButtonShape = 'default' | 'theme' | 'pill';
5
+ type ButtonShape = 'default' | 'pill';
6
6
  export interface ButtonProps extends ComponentPropsWithRef<'button'> {
7
7
  elevation?: ShadowToken;
8
8
  size?: ButtonSize;
@@ -1,4 +1,5 @@
1
1
  import type { CSSProperties, ElementType } from 'react';
2
+ import { type RadiusToken } from '../../design-system/component-tokens';
2
3
  export type SpacingToken = 'none' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
3
4
  export declare const SPACING_SCALE: Record<SpacingToken, string>;
4
5
  declare const ALIGN: {
@@ -40,7 +41,7 @@ export interface LayoutProps {
40
41
  height?: 'full' | 'auto';
41
42
  minWidth?: '0';
42
43
  border?: boolean | keyof typeof BORDER_SIDE;
43
- rounded?: boolean | 'none' | 'sm' | 'full' | 'lg' | 'theme' | 'md' | 'xl' | 'pill' | 'circle';
44
+ rounded?: boolean | RadiusToken;
44
45
  animate?: 'spin' | 'ping' | 'pulse' | 'fadeIn' | 'none';
45
46
  hidden?: boolean;
46
47
  as?: ElementType;
@@ -1,5 +1,5 @@
1
1
  import type { WidgetEvent } from '../sdk';
2
- import type { ChatMessage, InstructionType } from '../types';
2
+ import { type ChatMessage, type InstructionType } from '../types';
3
3
  export interface TaskState {
4
4
  isTaskRunning: boolean;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import type { CSSProperties } from 'react';
2
2
  import { type ShadowToken } from './shadows';
3
- export type RadiusToken = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'theme' | 'pill' | 'circle';
3
+ export type RadiusToken = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'pill';
4
4
  export type TextTone = 'default' | 'muted' | 'faint' | 'primary' | 'inherit';
5
5
  export type TextLeading = 'tight' | 'snug' | 'normal' | 'relaxed';
6
6
  export type NotificationTone = 'info' | 'error' | 'neutral';
@@ -38,6 +38,9 @@ export interface MessagePart {
38
38
  /** chat/delta fragments accumulate into this part; the final chat/response replaces it. */
39
39
  streaming?: boolean;
40
40
  }
41
+ /** A message's text is the text it shows: its text parts joined. `content` is this value, kept by the
42
+ * writers, so a reader never has to know which of the two fields is authoritative. */
43
+ export declare const messageText: (parts: MessagePart[]) => string;
41
44
  export type WidgetView = 'home' | 'chat';
42
45
  export interface WidgetState {
43
46
  isOpen: boolean;