@miiflow/assistant-ui 0.3.2 → 0.5.0
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/{WelcomeScreen-DAa22X9b.d.ts → WelcomeScreen-88hzx0rD.d.ts} +11 -3
- package/dist/{avatar-BgjqLv1r.d.ts → avatar-B6YLvJt3.d.ts} +1 -1
- package/dist/{chunk-SDMQ6AEH.js → chunk-DEH5ET5U.js} +9 -9
- package/dist/chunk-DEH5ET5U.js.map +1 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +5 -5
- package/dist/client/index.js.map +1 -1
- package/dist/context/index.d.ts +2 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/index.d.ts +20 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{message-4-BaKes3.d.ts → message-BnGtSz1P.d.ts} +3 -1
- package/dist/primitives/index.d.ts +3 -3
- package/dist/{streaming-CF63E6iS.d.ts → streaming-DrnCgnnh.d.ts} +14 -2
- package/dist/styled/index.d.ts +6 -6
- package/dist/styled/index.js +1 -1
- package/dist/styles-no-preflight.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +92 -92
- package/dist/chunk-SDMQ6AEH.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import { A as Attachment, M as MessageData, P as ParticipantRole, d as SuggestedAction, S as SourceReference } from './message-
|
|
4
|
-
import { h as AvatarProps$1 } from './avatar-
|
|
5
|
-
import { S as StreamingChunk, V as VisualizationChunkData, C as ClarificationData } from './streaming-
|
|
3
|
+
import { A as Attachment, M as MessageData, P as ParticipantRole, d as SuggestedAction, S as SourceReference } from './message-BnGtSz1P.js';
|
|
4
|
+
import { h as AvatarProps$1 } from './avatar-B6YLvJt3.js';
|
|
5
|
+
import { S as StreamingChunk, V as VisualizationChunkData, M as MediaChunkData, C as ClarificationData } from './streaming-DrnCgnnh.js';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
interface AttachmentPreviewProps {
|
|
@@ -86,6 +86,8 @@ interface MessageProps {
|
|
|
86
86
|
citations?: SourceReference[];
|
|
87
87
|
/** Inline visualizations to render within message content */
|
|
88
88
|
visualizations?: VisualizationChunkData[];
|
|
89
|
+
/** Inline media (images/videos) to render within message content */
|
|
90
|
+
medias?: MediaChunkData[];
|
|
89
91
|
/** Base font size multiplier for markdown rendering */
|
|
90
92
|
baselineFontSize?: number;
|
|
91
93
|
/** Total execution time in seconds (persisted from streaming wall-clock) */
|
|
@@ -125,6 +127,8 @@ interface MessageComposerProps {
|
|
|
125
127
|
className?: string;
|
|
126
128
|
/** Whether a message is currently being submitted */
|
|
127
129
|
isSubmitting?: boolean;
|
|
130
|
+
/** Centered/welcome mode: bigger radius, more padding, nicer shadow (used inside WelcomeScreen) */
|
|
131
|
+
centered?: boolean;
|
|
128
132
|
}
|
|
129
133
|
/**
|
|
130
134
|
* MessageComposer with textarea, attachment support,
|
|
@@ -288,6 +292,10 @@ interface WelcomeScreenProps {
|
|
|
288
292
|
composerSlot?: ReactNode;
|
|
289
293
|
/** Additional CSS classes for the outer wrapper */
|
|
290
294
|
className?: string;
|
|
295
|
+
/** Assistant avatar image URL — when provided, welcome text renders in message format */
|
|
296
|
+
assistantAvatar?: string;
|
|
297
|
+
/** Assistant display name (shown alongside avatar) */
|
|
298
|
+
assistantName?: string;
|
|
291
299
|
}
|
|
292
300
|
/**
|
|
293
301
|
* Full-screen empty state with rotating placeholder input and suggestion cards.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { HTMLAttributes, ReactNode, TextareaHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import { M as MessageData, P as ParticipantRole } from './message-
|
|
3
|
+
import { M as MessageData, P as ParticipantRole } from './message-BnGtSz1P.js';
|
|
4
4
|
|
|
5
5
|
interface MessageContextValue {
|
|
6
6
|
message: MessageData;
|