@aintela/chat 0.2.16 → 0.2.17

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.
@@ -66,6 +66,7 @@ export interface AiChatContextState {
66
66
  }) => {
67
67
  label: string;
68
68
  initials?: string;
69
+ picture?: string;
69
70
  };
70
71
  /** Custom renderer for the user-message body (the persona row is still shown above it). */
71
72
  userMessageRenderer?: ComponentType<UserMessageRendererProps>;
@@ -162,6 +162,7 @@ export interface AiChatProps extends AiChatStyleProps {
162
162
  }) => {
163
163
  label: string;
164
164
  initials?: string;
165
+ picture?: string;
165
166
  };
166
167
  /**
167
168
  * Custom renderer for the BODY of a user message. The persona row (when `showPersona`) still
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ export type AgentIconVariant = 'luzes' | 'pista' | 'marshaller' | 'radar' | 'spark' | 'chevrons' | 'marca';
3
+ export interface AgentIconProps {
4
+ variant?: AgentIconVariant;
5
+ size?: number;
6
+ strokeWidth?: number;
7
+ color?: string;
8
+ style?: React.CSSProperties;
9
+ }
10
+ export declare function AgentIcon({ variant, size, strokeWidth, color, style, }: AgentIconProps): import("react/jsx-runtime").JSX.Element;
11
+ export type AgentAvatarTone = 'lime' | 'ink' | 'chrome';
12
+ export interface AgentAvatarProps {
13
+ variant?: AgentIconVariant;
14
+ tone?: AgentAvatarTone;
15
+ size?: number;
16
+ style?: React.CSSProperties;
17
+ }
18
+ export declare function AgentAvatar({ variant, tone, size, style, }: AgentAvatarProps): import("react/jsx-runtime").JSX.Element;
19
+ export default AgentAvatar;
@@ -3,7 +3,14 @@ import { Interaction } from '../../../models/Interaction';
3
3
  interface MessagePersonaProps {
4
4
  isUser: boolean;
5
5
  message: Interaction;
6
+ tone: 'chrome' | 'light';
6
7
  }
8
+ /**
9
+ * Left indent (px) that aligns a message body under the persona label instead of the avatar:
10
+ * avatar width (30) + the persona row `gap: 1` (8px). Message bodies apply this when `showPersona`
11
+ * is on so the paragraph text starts after the avatar, matching the header row.
12
+ */
13
+ export declare const PERSONA_CONTENT_INDENT = 38;
7
14
  /**
8
15
  * Persona header row above a message — an avatar + "{NAME} · {time}". Rendered only when the host
9
16
  * enables `showPersona`. The label/initials come from `resolvePersona` (default: generic
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aintela/chat",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"