wimui 0.65.2 → 0.66.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/ai.cjs +1 -1
- package/dist/ai.js +3 -3
- package/dist/components/ai/ChatUI/ChatUI.cjs +1 -1
- package/dist/components/ai/ChatUI/ChatUI.d.ts +83 -1
- package/dist/components/ai/ChatUI/ChatUI.js +184 -81
- package/dist/components/ai/ChatUI/chat-ui.module.cjs +1 -1
- package/dist/components/ai/ChatUI/chat-ui.module.js +46 -26
- package/dist/i18n/generated/common.cjs +1 -1
- package/dist/i18n/generated/common.d.ts +1 -1
- package/dist/i18n/generated/common.js +9 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +9 -9
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/locales/en/common.json +3 -1
- package/dist/locales/ja/common.json +3 -1
- package/dist/locales/pt/common.json +3 -1
- package/dist/styles.css +1 -1
- package/dist/wimui.umd.css +1 -1
- package/dist/wimui.umd.js +5 -5
- package/package.json +2 -2
package/dist/ai.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./components/ai/PromptInput/PromptInput.cjs"),t=require("./components/ai/ThoughtProcess/ThoughtProcess.cjs"),n=require("./components/ai/AIResponseFeedback/AIResponseFeedback.cjs"),r=require("./components/ai/SourceCitation/SourceCitation.cjs"),i=require("./components/ai/CodeBlock/CodeBlock.cjs"),a=require("./components/ai/Terminal/Terminal.cjs"),o=require("./components/ai/AgentStatus/AgentStatus.cjs"),s=require("./components/ai/VoiceVisualizer/VoiceVisualizer.cjs"),c=require("./components/ai/ModelSelector/ModelSelector.cjs"),l=require("./components/ai/ThreadList/ThreadList.cjs"),u=require("./components/ai/UsageMeter/UsageMeter.cjs"),d=require("./components/ai/ChatUI/ChatUI.cjs"),f=require("./components/ai/ArtifactsOverlay/ArtifactsOverlay.cjs");exports.AIResponseFeedback=n.AIResponseFeedback,exports.AgentStatus=o.AgentStatus,exports.ArtifactsOverlay=f.ArtifactsOverlay,exports.ChatAvatar=d.ChatAvatar,exports.ChatContainer=d.ChatContainer,exports.ChatInput=d.ChatInput,exports.ChatInputArea=d.ChatInputArea,exports.ChatMessage=d.ChatMessage,exports.ChatMessageList=d.ChatMessageList,exports.CodeBlock=i.CodeBlock,exports.ConversationList=l.ConversationList,exports.ModelSelector=c.ModelSelector,exports.PromptInput=e.PromptInput,exports.SourceCitation=r.SourceCitation,exports.SourceCitationList=r.SourceCitationList,exports.Terminal=a.Terminal,exports.ThoughtProcess=t.ThoughtProcess,exports.ThoughtStep=t.ThoughtStep,exports.ThreadList=l.ThreadList,exports.TokenCounter=u.TokenCounter,exports.UsageMeter=u.UsageMeter,exports.VoiceVisualizer=s.VoiceVisualizer;
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./components/ai/PromptInput/PromptInput.cjs"),t=require("./components/ai/ThoughtProcess/ThoughtProcess.cjs"),n=require("./components/ai/AIResponseFeedback/AIResponseFeedback.cjs"),r=require("./components/ai/SourceCitation/SourceCitation.cjs"),i=require("./components/ai/CodeBlock/CodeBlock.cjs"),a=require("./components/ai/Terminal/Terminal.cjs"),o=require("./components/ai/AgentStatus/AgentStatus.cjs"),s=require("./components/ai/VoiceVisualizer/VoiceVisualizer.cjs"),c=require("./components/ai/ModelSelector/ModelSelector.cjs"),l=require("./components/ai/ThreadList/ThreadList.cjs"),u=require("./components/ai/UsageMeter/UsageMeter.cjs"),d=require("./components/ai/ChatUI/ChatUI.cjs"),f=require("./components/ai/ArtifactsOverlay/ArtifactsOverlay.cjs");exports.AIResponseFeedback=n.AIResponseFeedback,exports.AgentStatus=o.AgentStatus,exports.ArtifactsOverlay=f.ArtifactsOverlay,exports.ChatAvatar=d.ChatAvatar,exports.ChatContainer=d.ChatContainer,exports.ChatInput=d.ChatInput,exports.ChatInputArea=d.ChatInputArea,exports.ChatMessage=d.ChatMessage,exports.ChatMessageList=d.ChatMessageList,exports.ChatSystemMessage=d.ChatSystemMessage,exports.ChatToolCall=d.ChatToolCall,exports.CodeBlock=i.CodeBlock,exports.ConversationList=l.ConversationList,exports.ModelSelector=c.ModelSelector,exports.PromptInput=e.PromptInput,exports.SourceCitation=r.SourceCitation,exports.SourceCitationList=r.SourceCitationList,exports.Terminal=a.Terminal,exports.ThoughtProcess=t.ThoughtProcess,exports.ThoughtStep=t.ThoughtStep,exports.ThreadList=l.ThreadList,exports.TokenCounter=u.TokenCounter,exports.UsageMeter=u.UsageMeter,exports.VoiceVisualizer=s.VoiceVisualizer;
|
package/dist/ai.js
CHANGED
|
@@ -10,6 +10,6 @@ import { VoiceVisualizer as l } from "./components/ai/VoiceVisualizer/VoiceVisua
|
|
|
10
10
|
import { ModelSelector as u } from "./components/ai/ModelSelector/ModelSelector.js";
|
|
11
11
|
import { ConversationList as d, ThreadList as f } from "./components/ai/ThreadList/ThreadList.js";
|
|
12
12
|
import { TokenCounter as p, UsageMeter as m } from "./components/ai/UsageMeter/UsageMeter.js";
|
|
13
|
-
import { ChatAvatar as h, ChatContainer as g, ChatInput as _, ChatInputArea as v, ChatMessage as y, ChatMessageList as b } from "./components/ai/ChatUI/ChatUI.js";
|
|
14
|
-
import { ArtifactsOverlay as
|
|
15
|
-
export { r as AIResponseFeedback, c as AgentStatus,
|
|
13
|
+
import { ChatAvatar as h, ChatContainer as g, ChatInput as _, ChatInputArea as v, ChatMessage as y, ChatMessageList as b, ChatSystemMessage as x, ChatToolCall as S } from "./components/ai/ChatUI/ChatUI.js";
|
|
14
|
+
import { ArtifactsOverlay as C } from "./components/ai/ArtifactsOverlay/ArtifactsOverlay.js";
|
|
15
|
+
export { r as AIResponseFeedback, c as AgentStatus, C as ArtifactsOverlay, h as ChatAvatar, g as ChatContainer, _ as ChatInput, v as ChatInputArea, y as ChatMessage, b as ChatMessageList, x as ChatSystemMessage, S as ChatToolCall, o as CodeBlock, d as ConversationList, u as ModelSelector, e as PromptInput, i as SourceCitation, a as SourceCitationList, s as Terminal, t as ThoughtProcess, n as ThoughtStep, f as ThreadList, p as TokenCounter, m as UsageMeter, l as VoiceVisualizer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../i18n/useWimTranslation.cjs"),n=require("../../../i18n/generated/common.cjs"),r=require("../../_internal/composeEventHandlers.cjs"),i=require("../../../icon/
|
|
2
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../i18n/useWimTranslation.cjs"),n=require("../../../i18n/generated/common.cjs"),r=require("../../_internal/composeEventHandlers.cjs"),i=require("../../../icon/alert-circle.cjs"),a=require("../../../icon/alert-triangle.cjs"),o=require("../../../icon/check.cjs"),s=require("../../../icon/chevron-right.cjs"),c=require("../../../icon/hourglass.cjs"),l=require("../../../icon/paperclip.cjs"),u=require("../../../icon/send.cjs"),d=require("../../media/Icon/Icon.cjs"),f=require("../../../i18n/generated/form.cjs"),p=require("../../../hooks/useAutoResize.cjs"),m=require("./chat-ui.module.cjs");let h=require("react");h=e.__toESM(h,1);let g=require("classnames");g=e.__toESM(g,1);let _=require("react/jsx-runtime");var v=({children:e,className:t,...n})=>(0,_.jsx)(`div`,{className:(0,g.default)(`wim-chat-ui`,m.default.container,t),...n,children:e}),y=(0,h.forwardRef)(({children:e,className:t,...n},r)=>(0,_.jsx)(`div`,{ref:r,className:(0,g.default)(m.default.messageList,t),...n,children:e}));y.displayName=`ChatMessageList`;var b=({children:e,position:t=`left`,variant:n=`default`,showAvatar:r=!0,avatar:i,timestamp:a,metadata:o,senderName:s,isTyping:c=!1,actions:l,actionsVisible:u=!0,className:d,...f})=>(0,_.jsxs)(`div`,{className:(0,g.default)(m.default.message,m.default[t],m.default[n],{[m.default.hasAvatar]:r},d),...f,children:[r&&t===`left`&&(0,_.jsx)(`div`,{className:m.default.messageAvatar,children:i}),(0,_.jsxs)(`div`,{className:m.default.contentWrapper,children:[s&&(0,_.jsx)(`div`,{className:m.default.sender,children:s}),(0,_.jsx)(`div`,{className:(0,g.default)(m.default.bubble,{[m.default.typing]:c}),children:c?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`span`,{className:m.default.typingDot}),(0,_.jsx)(`span`,{className:m.default.typingDot}),(0,_.jsx)(`span`,{className:m.default.typingDot})]}):e}),l&&(0,_.jsx)(`div`,{className:(0,g.default)(m.default.actions,{[m.default.hoverOnly]:!u}),children:l}),(a||o)&&(0,_.jsxs)(`div`,{className:m.default.timestamp,children:[a,a&&o&&` · `,o]})]}),r&&t===`right`&&(0,_.jsx)(`div`,{className:m.default.messageAvatar,children:i})]}),x={waiting:c.default,done:o.default,error:i.default},S=({name:e,status:r=`done`,summary:i,input:a,output:o,defaultExpanded:c=!1,className:l,...u})=>{let{t:p}=t.useWimTranslation([n.commonNs,f.formNs]),[v,y]=h.default.useState(c),b=(0,h.useId)(),S=a!=null||o!=null,C=r===`running`?null:x[r],w=(0,_.jsxs)(_.Fragment,{children:[S&&(0,_.jsx)(d.Icon,{component:s.default,size:`sm`,className:(0,g.default)(m.default.toolChevron,v&&m.default.expanded),"aria-hidden":`true`}),(0,_.jsx)(`code`,{className:m.default.toolName,children:e}),i&&(0,_.jsx)(`span`,{className:m.default.toolSummary,children:i}),(0,_.jsxs)(`span`,{className:(0,g.default)(m.default.toolStatus,m.default[r]),children:[C?(0,_.jsx)(d.Icon,{component:C,size:`xs`,"aria-hidden":`true`}):(0,_.jsx)(`span`,{className:m.default.toolSpinner,"aria-hidden":`true`}),p(`agent_status.${r}`)]})]});return(0,_.jsxs)(`div`,{className:(0,g.default)(m.default.toolCall,l),"aria-busy":r===`running`||void 0,...u,children:[S?(0,_.jsx)(`button`,{type:`button`,className:m.default.toolHeader,"aria-expanded":v,"aria-controls":b,onClick:()=>y(e=>!e),children:w}):(0,_.jsx)(`div`,{className:m.default.toolHeader,children:w}),S&&(0,_.jsxs)(`div`,{id:b,className:m.default.toolBody,hidden:!v,children:[a!=null&&(0,_.jsxs)(`div`,{className:m.default.toolSection,children:[(0,_.jsx)(`div`,{className:m.default.toolLabel,children:p(`chat.tool_input`)}),typeof a==`string`?(0,_.jsx)(`pre`,{className:m.default.toolCode,tabIndex:0,children:a}):a]}),o!=null&&(0,_.jsxs)(`div`,{className:m.default.toolSection,children:[(0,_.jsx)(`div`,{className:m.default.toolLabel,children:p(`chat.tool_output`)}),typeof o==`string`?(0,_.jsx)(`pre`,{className:m.default.toolCode,tabIndex:0,children:o}):o]})]})]})},C={warning:a.default,danger:i.default},w=({children:e,intent:t=`default`,action:n,className:r,...i})=>{let a=C[t];return(0,_.jsxs)(`div`,{className:(0,g.default)(m.default.system,m.default[t],r),...i,children:[(0,_.jsxs)(`span`,{className:m.default.systemText,children:[a&&(0,_.jsx)(d.Icon,{component:a,size:`xs`,"aria-hidden":`true`}),(0,_.jsx)(`span`,{children:e})]}),n&&(0,_.jsx)(`span`,{className:m.default.systemAction,children:n})]})},T=({children:e,className:t,...n})=>(0,_.jsx)(`div`,{className:(0,g.default)(m.default.inputArea,t),...n,children:e}),E=(0,h.forwardRef)(({onSend:e,onAttach:i,sendButtonLabel:a,sendButtonIcon:o=u.default,showSendButton:s=!0,showAttach:c=!1,maxRows:f=8,className:g,...v},y)=>{let{t:b}=t.useWimTranslation(n.commonNs),[x,S]=h.default.useState(``),C=v.value!==void 0,w=C?v.value:x,E=p.useAutoResize(w,f);h.default.useImperativeHandle(y,()=>E.current);let D=!!a,O=()=>{e&&(e(w),C||S(``))},k=e=>{C||S(e.target.value),v.onChange?.(e)},A=e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),O())};return(0,_.jsx)(T,{className:g,children:(0,_.jsxs)(`div`,{className:m.default.fieldContainer,children:[c&&(0,_.jsx)(`button`,{type:`button`,className:m.default.attachButton,onClick:i,"aria-label":b(`a11y.attach_file`),children:(0,_.jsx)(d.Icon,{component:l.default,size:`sm`})}),(0,_.jsx)(`textarea`,{ref:E,className:m.default.field,value:w,placeholder:v.placeholder||`Type a message...`,rows:1,...v,onChange:k,onKeyDown:r.composeEventHandlers(v.onKeyDown,A)}),s&&(0,_.jsx)(`button`,{className:m.default.sendButton,onClick:O,disabled:!w.trim(),type:`button`,"aria-label":a||b(`chat.send`),children:D?a:(0,_.jsx)(d.Icon,{component:o,size:`sm`})})]})})});E.displayName=`ChatInput`;var D=({src:e,alt:r,fallback:i,size:a=`md`,tone:o=`s18`,className:s,...c})=>{let[l,u]=h.default.useState(!1),{t:d}=t.useWimTranslation(n.commonNs),f=r||d(`chat.user_avatar`);return(0,_.jsx)(`div`,{className:(0,g.default)(m.default.avatar,m.default[a],m.default[o],s),...c,children:e&&!l?(0,_.jsx)(`img`,{src:e,alt:f,className:m.default.image,onError:()=>u(!0)}):(0,_.jsx)(`div`,{className:m.default.fallback,children:i||f.charAt(0).toUpperCase()})})};exports.ChatAvatar=D,exports.ChatContainer=v,exports.ChatInput=E,exports.ChatInputArea=T,exports.ChatMessage=b,exports.ChatMessageList=y,exports.ChatSystemMessage=w,exports.ChatToolCall=S;
|
|
@@ -33,6 +33,11 @@ export interface ChatMessageProps extends React.ComponentPropsWithoutRef<"div">
|
|
|
33
33
|
avatar?: React.ReactNode;
|
|
34
34
|
/** Timestamp text shown below the message */
|
|
35
35
|
timestamp?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Details about how the message was produced (model, token count, latency),
|
|
38
|
+
* shown on the same line as `timestamp` in the same small, secondary text.
|
|
39
|
+
*/
|
|
40
|
+
metadata?: React.ReactNode;
|
|
36
41
|
/** Sender name shown above the message */
|
|
37
42
|
senderName?: string;
|
|
38
43
|
/** Whether to show the typing indicator instead of content */
|
|
@@ -56,7 +61,84 @@ export interface ChatMessageProps extends React.ComponentPropsWithoutRef<"div">
|
|
|
56
61
|
/** Additional class names */
|
|
57
62
|
className?: string;
|
|
58
63
|
}
|
|
59
|
-
export declare const ChatMessage: ({ children, position, variant, showAvatar, avatar, timestamp, senderName, isTyping, actions, actionsVisible, className, ...props }: ChatMessageProps) => React.ReactElement;
|
|
64
|
+
export declare const ChatMessage: ({ children, position, variant, showAvatar, avatar, timestamp, metadata, senderName, isTyping, actions, actionsVisible, className, ...props }: ChatMessageProps) => React.ReactElement;
|
|
65
|
+
/**
|
|
66
|
+
* 状態の語は `AgentStatus` と同じ(T363)。ツールの呼び出しに「考え中」「待機」は無いので外す。
|
|
67
|
+
* `Extract<AgentStatusValue, …>` と書くと、docgen と prop の API スナップショットが型の式を
|
|
68
|
+
* そのまま記録して、値の一覧が出ない。同じファイルに値を書き、部分集合であることは下の型で保つ。
|
|
69
|
+
*/
|
|
70
|
+
export type ChatToolCallStatus = "waiting" | "running" | "done" | "error";
|
|
71
|
+
export interface ChatToolCallProps extends Omit<React.ComponentPropsWithoutRef<"div">, "children"> {
|
|
72
|
+
/** Name of the tool that was called, shown in a monospace face (e.g. `search_incidents`) */
|
|
73
|
+
name: string;
|
|
74
|
+
/**
|
|
75
|
+
* State of the call. Uses the same words as `AgentStatus`; `waiting` is a call
|
|
76
|
+
* that is waiting on something before it runs, such as the user's approval.
|
|
77
|
+
* @default "done"
|
|
78
|
+
*/
|
|
79
|
+
status?: ChatToolCallStatus;
|
|
80
|
+
/** One-line summary shown next to the name (e.g. "6 incidents found") */
|
|
81
|
+
summary?: React.ReactNode;
|
|
82
|
+
/**
|
|
83
|
+
* Arguments the tool was called with. Shown when expanded. A string is shown
|
|
84
|
+
* as preformatted monospace text; pass a `CodeBlock` for highlighting or a copy
|
|
85
|
+
* button (it brings its own frame inside this one).
|
|
86
|
+
*/
|
|
87
|
+
input?: React.ReactNode;
|
|
88
|
+
/** What the tool returned, or the error it failed with. Shown when expanded. Strings are shown as for `input`. */
|
|
89
|
+
output?: React.ReactNode;
|
|
90
|
+
/** Whether `input` and `output` are shown on first render. */
|
|
91
|
+
defaultExpanded?: boolean;
|
|
92
|
+
/** Additional class names */
|
|
93
|
+
className?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* One call the assistant made to a tool, with its arguments and result.
|
|
97
|
+
*
|
|
98
|
+
* Where it sits next to its neighbours: `ThoughtProcess` is the model's own
|
|
99
|
+
* reasoning written as steps, `AgentStatus` is the whole agent's state on one
|
|
100
|
+
* line, and `ChatToolCall` is one action against the outside world and what
|
|
101
|
+
* came back. Place it inside a `ChatMessage` or directly in `ChatMessageList`.
|
|
102
|
+
*
|
|
103
|
+
* The status is part of the toggle's name ("search_incidents … Done"). A change
|
|
104
|
+
* of status is not announced: it is not something the user did, and a run of
|
|
105
|
+
* tool calls would keep talking over the conversation.
|
|
106
|
+
*
|
|
107
|
+
* Composition Contract:
|
|
108
|
+
* - Managed by: App consumption
|
|
109
|
+
* - Scroll lock: No
|
|
110
|
+
*/
|
|
111
|
+
export declare const ChatToolCall: ({ name, status, summary, input, output, defaultExpanded, className, ...props }: ChatToolCallProps) => React.ReactElement;
|
|
112
|
+
/** `FeedbackIntent` の部分集合(上の `ChatToolCallStatus` と同じ理由で、値を書いて型で保つ)。 */
|
|
113
|
+
export type ChatSystemMessageIntent = "default" | "warning" | "danger";
|
|
114
|
+
export interface ChatSystemMessageProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
115
|
+
/** The notice (e.g. "Switched to a faster model", "No answer arrived") */
|
|
116
|
+
children: React.ReactNode;
|
|
117
|
+
/**
|
|
118
|
+
* `warning` and `danger` add an icon as well as colour, so the difference does
|
|
119
|
+
* not rest on colour alone.
|
|
120
|
+
* @default "default"
|
|
121
|
+
*/
|
|
122
|
+
intent?: ChatSystemMessageIntent;
|
|
123
|
+
/** An action that belongs next to the notice, such as a retry button */
|
|
124
|
+
action?: React.ReactNode;
|
|
125
|
+
/** Additional class names */
|
|
126
|
+
className?: string;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* A notice in the transcript that nobody said: the conversation started, the
|
|
130
|
+
* model changed, an answer never arrived. A `ChatMessage` would put it in a
|
|
131
|
+
* speech bubble with a sender, which is wrong for something nobody said.
|
|
132
|
+
*
|
|
133
|
+
* Place it in `ChatMessageList` between messages so it shares the list's
|
|
134
|
+
* spacing. It does not announce itself; when the notice is the result of
|
|
135
|
+
* something the user did, announce it from the app.
|
|
136
|
+
*
|
|
137
|
+
* Composition Contract:
|
|
138
|
+
* - Managed by: App consumption
|
|
139
|
+
* - Scroll lock: No
|
|
140
|
+
*/
|
|
141
|
+
export declare const ChatSystemMessage: ({ children, intent, action, className, ...props }: ChatSystemMessageProps) => React.ReactElement;
|
|
60
142
|
export interface ChatInputAreaProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
61
143
|
children: React.ReactNode;
|
|
62
144
|
className?: string;
|
|
@@ -2,111 +2,214 @@
|
|
|
2
2
|
import { useWimTranslation as e } from "../../../i18n/useWimTranslation.js";
|
|
3
3
|
import { commonNs as t } from "../../../i18n/generated/common.js";
|
|
4
4
|
import { composeEventHandlers as n } from "../../_internal/composeEventHandlers.js";
|
|
5
|
-
import r from "../../../icon/
|
|
6
|
-
import i from "../../../icon/
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import s from "
|
|
10
|
-
import c
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
5
|
+
import r from "../../../icon/alert-circle.js";
|
|
6
|
+
import i from "../../../icon/alert-triangle.js";
|
|
7
|
+
import a from "../../../icon/check.js";
|
|
8
|
+
import o from "../../../icon/chevron-right.js";
|
|
9
|
+
import s from "../../../icon/hourglass.js";
|
|
10
|
+
import c from "../../../icon/paperclip.js";
|
|
11
|
+
import l from "../../../icon/send.js";
|
|
12
|
+
import { Icon as u } from "../../media/Icon/Icon.js";
|
|
13
|
+
import { formNs as d } from "../../../i18n/generated/form.js";
|
|
14
|
+
import { useAutoResize as f } from "../../../hooks/useAutoResize.js";
|
|
15
|
+
import p from "./chat-ui.module.js";
|
|
16
|
+
import m, { forwardRef as h, useId as g } from "react";
|
|
17
|
+
import _ from "classnames";
|
|
18
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
13
19
|
//#region src/components/ai/ChatUI/ChatUI.tsx
|
|
14
|
-
var
|
|
15
|
-
className:
|
|
20
|
+
var x = ({ children: e, className: t, ...n }) => /* @__PURE__ */ y("div", {
|
|
21
|
+
className: _("wim-chat-ui", p.container, t),
|
|
16
22
|
...n,
|
|
17
23
|
children: e
|
|
18
|
-
}),
|
|
24
|
+
}), S = h(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ y("div", {
|
|
19
25
|
ref: r,
|
|
20
|
-
className:
|
|
26
|
+
className: _(p.messageList, t),
|
|
21
27
|
...n,
|
|
22
28
|
children: e
|
|
23
29
|
}));
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
className:
|
|
27
|
-
...
|
|
30
|
+
S.displayName = "ChatMessageList";
|
|
31
|
+
var C = ({ children: e, position: t = "left", variant: n = "default", showAvatar: r = !0, avatar: i, timestamp: a, metadata: o, senderName: s, isTyping: c = !1, actions: l, actionsVisible: u = !0, className: d, ...f }) => /* @__PURE__ */ b("div", {
|
|
32
|
+
className: _(p.message, p[t], p[n], { [p.hasAvatar]: r }, d),
|
|
33
|
+
...f,
|
|
28
34
|
children: [
|
|
29
|
-
r && t === "left" && /* @__PURE__ */
|
|
30
|
-
className:
|
|
35
|
+
r && t === "left" && /* @__PURE__ */ y("div", {
|
|
36
|
+
className: p.messageAvatar,
|
|
31
37
|
children: i
|
|
32
38
|
}),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
className:
|
|
39
|
+
/* @__PURE__ */ b("div", {
|
|
40
|
+
className: p.contentWrapper,
|
|
35
41
|
children: [
|
|
36
|
-
|
|
37
|
-
className:
|
|
38
|
-
children:
|
|
42
|
+
s && /* @__PURE__ */ y("div", {
|
|
43
|
+
className: p.sender,
|
|
44
|
+
children: s
|
|
39
45
|
}),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
className:
|
|
42
|
-
children: c ? /* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ y("div", {
|
|
47
|
+
className: _(p.bubble, { [p.typing]: c }),
|
|
48
|
+
children: c ? /* @__PURE__ */ b(v, { children: [
|
|
49
|
+
/* @__PURE__ */ y("span", { className: p.typingDot }),
|
|
50
|
+
/* @__PURE__ */ y("span", { className: p.typingDot }),
|
|
51
|
+
/* @__PURE__ */ y("span", { className: p.typingDot })
|
|
46
52
|
] }) : e
|
|
47
53
|
}),
|
|
48
|
-
l && /* @__PURE__ */
|
|
49
|
-
className:
|
|
54
|
+
l && /* @__PURE__ */ y("div", {
|
|
55
|
+
className: _(p.actions, { [p.hoverOnly]: !u }),
|
|
50
56
|
children: l
|
|
51
57
|
}),
|
|
52
|
-
a && /* @__PURE__ */
|
|
53
|
-
className:
|
|
54
|
-
children:
|
|
58
|
+
(a || o) && /* @__PURE__ */ b("div", {
|
|
59
|
+
className: p.timestamp,
|
|
60
|
+
children: [
|
|
61
|
+
a,
|
|
62
|
+
a && o && " · ",
|
|
63
|
+
o
|
|
64
|
+
]
|
|
55
65
|
})
|
|
56
66
|
]
|
|
57
67
|
}),
|
|
58
|
-
r && t === "right" && /* @__PURE__ */
|
|
59
|
-
className:
|
|
68
|
+
r && t === "right" && /* @__PURE__ */ y("div", {
|
|
69
|
+
className: p.messageAvatar,
|
|
60
70
|
children: i
|
|
61
71
|
})
|
|
62
72
|
]
|
|
63
|
-
}),
|
|
64
|
-
|
|
73
|
+
}), w = {
|
|
74
|
+
waiting: s,
|
|
75
|
+
done: a,
|
|
76
|
+
error: r
|
|
77
|
+
}, T = ({ name: n, status: r = "done", summary: i, input: a, output: s, defaultExpanded: c = !1, className: l, ...f }) => {
|
|
78
|
+
let { t: h } = e([t, d]), [x, S] = m.useState(c), C = g(), T = a != null || s != null, E = r === "running" ? null : w[r], D = /* @__PURE__ */ b(v, { children: [
|
|
79
|
+
T && /* @__PURE__ */ y(u, {
|
|
80
|
+
component: o,
|
|
81
|
+
size: "sm",
|
|
82
|
+
className: _(p.toolChevron, x && p.expanded),
|
|
83
|
+
"aria-hidden": "true"
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ y("code", {
|
|
86
|
+
className: p.toolName,
|
|
87
|
+
children: n
|
|
88
|
+
}),
|
|
89
|
+
i && /* @__PURE__ */ y("span", {
|
|
90
|
+
className: p.toolSummary,
|
|
91
|
+
children: i
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ b("span", {
|
|
94
|
+
className: _(p.toolStatus, p[r]),
|
|
95
|
+
children: [E ? /* @__PURE__ */ y(u, {
|
|
96
|
+
component: E,
|
|
97
|
+
size: "xs",
|
|
98
|
+
"aria-hidden": "true"
|
|
99
|
+
}) : /* @__PURE__ */ y("span", {
|
|
100
|
+
className: p.toolSpinner,
|
|
101
|
+
"aria-hidden": "true"
|
|
102
|
+
}), h(`agent_status.${r}`)]
|
|
103
|
+
})
|
|
104
|
+
] });
|
|
105
|
+
return /* @__PURE__ */ b("div", {
|
|
106
|
+
className: _(p.toolCall, l),
|
|
107
|
+
"aria-busy": r === "running" || void 0,
|
|
108
|
+
...f,
|
|
109
|
+
children: [T ? /* @__PURE__ */ y("button", {
|
|
110
|
+
type: "button",
|
|
111
|
+
className: p.toolHeader,
|
|
112
|
+
"aria-expanded": x,
|
|
113
|
+
"aria-controls": C,
|
|
114
|
+
onClick: () => S((e) => !e),
|
|
115
|
+
children: D
|
|
116
|
+
}) : /* @__PURE__ */ y("div", {
|
|
117
|
+
className: p.toolHeader,
|
|
118
|
+
children: D
|
|
119
|
+
}), T && /* @__PURE__ */ b("div", {
|
|
120
|
+
id: C,
|
|
121
|
+
className: p.toolBody,
|
|
122
|
+
hidden: !x,
|
|
123
|
+
children: [a != null && /* @__PURE__ */ b("div", {
|
|
124
|
+
className: p.toolSection,
|
|
125
|
+
children: [/* @__PURE__ */ y("div", {
|
|
126
|
+
className: p.toolLabel,
|
|
127
|
+
children: h("chat.tool_input")
|
|
128
|
+
}), typeof a == "string" ? /* @__PURE__ */ y("pre", {
|
|
129
|
+
className: p.toolCode,
|
|
130
|
+
tabIndex: 0,
|
|
131
|
+
children: a
|
|
132
|
+
}) : a]
|
|
133
|
+
}), s != null && /* @__PURE__ */ b("div", {
|
|
134
|
+
className: p.toolSection,
|
|
135
|
+
children: [/* @__PURE__ */ y("div", {
|
|
136
|
+
className: p.toolLabel,
|
|
137
|
+
children: h("chat.tool_output")
|
|
138
|
+
}), typeof s == "string" ? /* @__PURE__ */ y("pre", {
|
|
139
|
+
className: p.toolCode,
|
|
140
|
+
tabIndex: 0,
|
|
141
|
+
children: s
|
|
142
|
+
}) : s]
|
|
143
|
+
})]
|
|
144
|
+
})]
|
|
145
|
+
});
|
|
146
|
+
}, E = {
|
|
147
|
+
warning: i,
|
|
148
|
+
danger: r
|
|
149
|
+
}, D = ({ children: e, intent: t = "default", action: n, className: r, ...i }) => {
|
|
150
|
+
let a = E[t];
|
|
151
|
+
return /* @__PURE__ */ b("div", {
|
|
152
|
+
className: _(p.system, p[t], r),
|
|
153
|
+
...i,
|
|
154
|
+
children: [/* @__PURE__ */ b("span", {
|
|
155
|
+
className: p.systemText,
|
|
156
|
+
children: [a && /* @__PURE__ */ y(u, {
|
|
157
|
+
component: a,
|
|
158
|
+
size: "xs",
|
|
159
|
+
"aria-hidden": "true"
|
|
160
|
+
}), /* @__PURE__ */ y("span", { children: e })]
|
|
161
|
+
}), n && /* @__PURE__ */ y("span", {
|
|
162
|
+
className: p.systemAction,
|
|
163
|
+
children: n
|
|
164
|
+
})]
|
|
165
|
+
});
|
|
166
|
+
}, O = ({ children: e, className: t, ...n }) => /* @__PURE__ */ y("div", {
|
|
167
|
+
className: _(p.inputArea, t),
|
|
65
168
|
...n,
|
|
66
169
|
children: e
|
|
67
|
-
}),
|
|
68
|
-
let { t:
|
|
69
|
-
|
|
70
|
-
let
|
|
71
|
-
|
|
170
|
+
}), k = h(({ onSend: r, onAttach: i, sendButtonLabel: a, sendButtonIcon: o = l, showSendButton: s = !0, showAttach: d = !1, maxRows: h = 8, className: g, ..._ }, v) => {
|
|
171
|
+
let { t: x } = e(t), [S, C] = m.useState(""), w = _.value !== void 0, T = w ? _.value : S, E = f(T, h);
|
|
172
|
+
m.useImperativeHandle(v, () => E.current);
|
|
173
|
+
let D = !!a, k = () => {
|
|
174
|
+
r && (r(T), w || C(""));
|
|
72
175
|
}, A = (e) => {
|
|
73
|
-
|
|
176
|
+
w || C(e.target.value), _.onChange?.(e);
|
|
74
177
|
}, j = (e) => {
|
|
75
178
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), k());
|
|
76
179
|
};
|
|
77
|
-
return /* @__PURE__ */
|
|
78
|
-
className:
|
|
79
|
-
children: /* @__PURE__ */
|
|
80
|
-
className:
|
|
180
|
+
return /* @__PURE__ */ y(O, {
|
|
181
|
+
className: g,
|
|
182
|
+
children: /* @__PURE__ */ b("div", {
|
|
183
|
+
className: p.fieldContainer,
|
|
81
184
|
children: [
|
|
82
|
-
|
|
185
|
+
d && /* @__PURE__ */ y("button", {
|
|
83
186
|
type: "button",
|
|
84
|
-
className:
|
|
85
|
-
onClick:
|
|
86
|
-
"aria-label":
|
|
87
|
-
children: /* @__PURE__ */
|
|
88
|
-
component:
|
|
187
|
+
className: p.attachButton,
|
|
188
|
+
onClick: i,
|
|
189
|
+
"aria-label": x("a11y.attach_file"),
|
|
190
|
+
children: /* @__PURE__ */ y(u, {
|
|
191
|
+
component: c,
|
|
89
192
|
size: "sm"
|
|
90
193
|
})
|
|
91
194
|
}),
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
ref:
|
|
94
|
-
className:
|
|
95
|
-
value:
|
|
96
|
-
placeholder:
|
|
195
|
+
/* @__PURE__ */ y("textarea", {
|
|
196
|
+
ref: E,
|
|
197
|
+
className: p.field,
|
|
198
|
+
value: T,
|
|
199
|
+
placeholder: _.placeholder || "Type a message...",
|
|
97
200
|
rows: 1,
|
|
98
|
-
...
|
|
201
|
+
..._,
|
|
99
202
|
onChange: A,
|
|
100
|
-
onKeyDown: n(
|
|
203
|
+
onKeyDown: n(_.onKeyDown, j)
|
|
101
204
|
}),
|
|
102
|
-
|
|
103
|
-
className:
|
|
205
|
+
s && /* @__PURE__ */ y("button", {
|
|
206
|
+
className: p.sendButton,
|
|
104
207
|
onClick: k,
|
|
105
|
-
disabled: !
|
|
208
|
+
disabled: !T.trim(),
|
|
106
209
|
type: "button",
|
|
107
|
-
"aria-label":
|
|
108
|
-
children:
|
|
109
|
-
component:
|
|
210
|
+
"aria-label": a || x("chat.send"),
|
|
211
|
+
children: D ? a : /* @__PURE__ */ y(u, {
|
|
212
|
+
component: o,
|
|
110
213
|
size: "sm"
|
|
111
214
|
})
|
|
112
215
|
})
|
|
@@ -114,22 +217,22 @@ var g = ({ children: e, position: t = "left", variant: n = "default", showAvatar
|
|
|
114
217
|
})
|
|
115
218
|
});
|
|
116
219
|
});
|
|
117
|
-
|
|
118
|
-
var
|
|
119
|
-
let [
|
|
120
|
-
return /* @__PURE__ */
|
|
121
|
-
className:
|
|
122
|
-
...
|
|
123
|
-
children: n && !
|
|
220
|
+
k.displayName = "ChatInput";
|
|
221
|
+
var A = ({ src: n, alt: r, fallback: i, size: a = "md", tone: o = "s18", className: s, ...c }) => {
|
|
222
|
+
let [l, u] = m.useState(!1), { t: d } = e(t), f = r || d("chat.user_avatar");
|
|
223
|
+
return /* @__PURE__ */ y("div", {
|
|
224
|
+
className: _(p.avatar, p[a], p[o], s),
|
|
225
|
+
...c,
|
|
226
|
+
children: n && !l ? /* @__PURE__ */ y("img", {
|
|
124
227
|
src: n,
|
|
125
|
-
alt:
|
|
126
|
-
className:
|
|
127
|
-
onError: () =>
|
|
128
|
-
}) : /* @__PURE__ */
|
|
129
|
-
className:
|
|
130
|
-
children: i ||
|
|
228
|
+
alt: f,
|
|
229
|
+
className: p.image,
|
|
230
|
+
onError: () => u(!0)
|
|
231
|
+
}) : /* @__PURE__ */ y("div", {
|
|
232
|
+
className: p.fallback,
|
|
233
|
+
children: i || f.charAt(0).toUpperCase()
|
|
131
234
|
})
|
|
132
235
|
});
|
|
133
236
|
};
|
|
134
237
|
//#endregion
|
|
135
|
-
export {
|
|
238
|
+
export { A as ChatAvatar, x as ChatContainer, k as ChatInput, O as ChatInputArea, C as ChatMessage, S as ChatMessageList, D as ChatSystemMessage, T as ChatToolCall };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_container_1pjll_49`,t=`_messageList_1pjll_65`,n=`_message_1pjll_65`,r=`_left_1pjll_97`,i=`_right_1pjll_102`,a=`_contentWrapper_1pjll_107`,o=`_sent_1pjll_110`,s=`_received_1pjll_113`,c=`_messageAvatar_1pjll_116`,l=`_sender_1pjll_125`,u=`_bubble_1pjll_130`,d=`_typing_1pjll_141`,f=`_typingDot_1pjll_148`,p=`_actions_1pjll_172`,m=`_hoverOnly_1pjll_179`,h=`_hasAvatar_1pjll_197`,g=`_timestamp_1pjll_237`,_=`_toolCall_1pjll_244`,v=`_toolHeader_1pjll_250`,y=`_toolChevron_1pjll_289`,b=`_expanded_1pjll_294`,x=`_toolName_1pjll_297`,S=`_toolSummary_1pjll_307`,C=`_toolStatus_1pjll_314`,w=`_done_1pjll_322`,T=`_error_1pjll_325`,E=`_toolSpinner_1pjll_328`,D=`_toolBody_1pjll_346`,O=`_toolSection_1pjll_356`,k=`_toolCode_1pjll_363`,A=`_toolLabel_1pjll_384`,j=`_system_1pjll_390`,M=`_warning_1pjll_402`,N=`_danger_1pjll_405`,P=`_systemText_1pjll_408`,F=`_systemAction_1pjll_413`,I=`_inputArea_1pjll_416`,L=`_fieldContainer_1pjll_429`,R=`_field_1pjll_429`,z=`_sendButton_1pjll_478`,B=`_attachButton_1pjll_505`,V=`_avatar_1pjll_527`,H=`_sm_1pjll_540`,U=`_md_1pjll_545`,W=`_lg_1pjll_550`,G=`_s1_1pjll_558`,K=`_s3_1pjll_562`,q=`_s5_1pjll_566`,J=`_s7_1pjll_570`,Y=`_s10_1pjll_574`,X=`_s12_1pjll_578`,Z=`_s14_1pjll_582`,Q=`_s16_1pjll_586`,$=`_s18_1pjll_590`,ee=`_s20_1pjll_594`,te=`_s22_1pjll_598`,ne=`_s24_1pjll_602`,re=`_image_1pjll_606`,ie=`_fallback_1pjll_611`,ae={container:e,messageList:t,message:n,left:r,right:i,contentWrapper:a,sent:o,received:s,messageAvatar:c,sender:l,bubble:u,typing:d,typingDot:f,"chat-typing":`_chat-typing_1pjll_1`,actions:p,hoverOnly:m,hasAvatar:h,timestamp:g,toolCall:_,toolHeader:v,toolChevron:y,expanded:b,toolName:x,toolSummary:S,toolStatus:C,done:w,error:T,toolSpinner:E,"chat-tool-spin":`_chat-tool-spin_1pjll_1`,toolBody:D,toolSection:O,toolCode:k,toolLabel:A,system:j,warning:M,danger:N,systemText:P,systemAction:F,inputArea:I,fieldContainer:L,field:R,sendButton:z,attachButton:B,avatar:V,sm:H,md:U,lg:W,s1:G,s3:K,s5:q,s7:J,s10:Y,s12:X,s14:Z,s16:Q,s18:$,s20:ee,s22:te,s24:ne,image:re,fallback:ie};exports.actions=p,exports.attachButton=B,exports.avatar=V,exports.bubble=u,exports.container=e,exports.contentWrapper=a,exports.danger=N,exports.default=ae,exports.done=w,exports.error=T,exports.expanded=b,exports.fallback=ie,exports.field=R,exports.fieldContainer=L,exports.hasAvatar=h,exports.hoverOnly=m,exports.image=re,exports.inputArea=I,exports.left=r,exports.lg=W,exports.md=U,exports.message=n,exports.messageAvatar=c,exports.messageList=t,exports.received=s,exports.right=i,exports.s1=G,exports.s10=Y,exports.s12=X,exports.s14=Z,exports.s16=Q,exports.s18=$,exports.s20=ee,exports.s22=te,exports.s24=ne,exports.s3=K,exports.s5=q,exports.s7=J,exports.sendButton=z,exports.sender=l,exports.sent=o,exports.sm=H,exports.system=j,exports.systemAction=F,exports.systemText=P,exports.timestamp=g,exports.toolBody=D,exports.toolCall=_,exports.toolChevron=y,exports.toolCode=k,exports.toolHeader=v,exports.toolLabel=A,exports.toolName=x,exports.toolSection=O,exports.toolSpinner=E,exports.toolStatus=C,exports.toolSummary=S,exports.typing=d,exports.typingDot=f,exports.warning=M;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/ai/ChatUI/chat-ui.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_container_1pjll_49", t = "_messageList_1pjll_65", n = "_message_1pjll_65", r = "_left_1pjll_97", i = "_right_1pjll_102", a = "_contentWrapper_1pjll_107", o = "_sent_1pjll_110", s = "_received_1pjll_113", c = "_messageAvatar_1pjll_116", l = "_sender_1pjll_125", u = "_bubble_1pjll_130", d = "_typing_1pjll_141", f = "_typingDot_1pjll_148", p = "_actions_1pjll_172", m = "_hoverOnly_1pjll_179", h = "_hasAvatar_1pjll_197", g = "_timestamp_1pjll_237", _ = "_toolCall_1pjll_244", v = "_toolHeader_1pjll_250", y = "_toolChevron_1pjll_289", b = "_expanded_1pjll_294", x = "_toolName_1pjll_297", S = "_toolSummary_1pjll_307", C = "_toolStatus_1pjll_314", w = "_done_1pjll_322", T = "_error_1pjll_325", E = "_toolSpinner_1pjll_328", D = "_toolBody_1pjll_346", O = "_toolSection_1pjll_356", k = "_toolCode_1pjll_363", A = "_toolLabel_1pjll_384", j = "_system_1pjll_390", M = "_warning_1pjll_402", N = "_danger_1pjll_405", P = "_systemText_1pjll_408", F = "_systemAction_1pjll_413", I = "_inputArea_1pjll_416", L = "_fieldContainer_1pjll_429", R = "_field_1pjll_429", z = "_sendButton_1pjll_478", B = "_attachButton_1pjll_505", V = "_avatar_1pjll_527", H = "_sm_1pjll_540", U = "_md_1pjll_545", W = "_lg_1pjll_550", G = "_s1_1pjll_558", K = "_s3_1pjll_562", q = "_s5_1pjll_566", J = "_s7_1pjll_570", Y = "_s10_1pjll_574", X = "_s12_1pjll_578", Z = "_s14_1pjll_582", Q = "_s16_1pjll_586", $ = "_s18_1pjll_590", ee = "_s20_1pjll_594", te = "_s22_1pjll_598", ne = "_s24_1pjll_602", re = "_image_1pjll_606", ie = "_fallback_1pjll_611", ae = {
|
|
4
4
|
container: e,
|
|
5
5
|
messageList: t,
|
|
6
6
|
message: n,
|
|
@@ -14,34 +14,54 @@ var e = "_container_774t4_23", t = "_messageList_774t4_39", n = "_message_774t4_
|
|
|
14
14
|
bubble: u,
|
|
15
15
|
typing: d,
|
|
16
16
|
typingDot: f,
|
|
17
|
-
"chat-typing": "_chat-
|
|
17
|
+
"chat-typing": "_chat-typing_1pjll_1",
|
|
18
18
|
actions: p,
|
|
19
19
|
hoverOnly: m,
|
|
20
20
|
hasAvatar: h,
|
|
21
21
|
timestamp: g,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
22
|
+
toolCall: _,
|
|
23
|
+
toolHeader: v,
|
|
24
|
+
toolChevron: y,
|
|
25
|
+
expanded: b,
|
|
26
|
+
toolName: x,
|
|
27
|
+
toolSummary: S,
|
|
28
|
+
toolStatus: C,
|
|
29
|
+
done: w,
|
|
30
|
+
error: T,
|
|
31
|
+
toolSpinner: E,
|
|
32
|
+
"chat-tool-spin": "_chat-tool-spin_1pjll_1",
|
|
33
|
+
toolBody: D,
|
|
34
|
+
toolSection: O,
|
|
35
|
+
toolCode: k,
|
|
36
|
+
toolLabel: A,
|
|
37
|
+
system: j,
|
|
38
|
+
warning: M,
|
|
39
|
+
danger: N,
|
|
40
|
+
systemText: P,
|
|
41
|
+
systemAction: F,
|
|
42
|
+
inputArea: I,
|
|
43
|
+
fieldContainer: L,
|
|
44
|
+
field: R,
|
|
45
|
+
sendButton: z,
|
|
46
|
+
attachButton: B,
|
|
47
|
+
avatar: V,
|
|
48
|
+
sm: H,
|
|
49
|
+
md: U,
|
|
50
|
+
lg: W,
|
|
51
|
+
s1: G,
|
|
52
|
+
s3: K,
|
|
53
|
+
s5: q,
|
|
54
|
+
s7: J,
|
|
55
|
+
s10: Y,
|
|
56
|
+
s12: X,
|
|
57
|
+
s14: Z,
|
|
58
|
+
s16: Q,
|
|
59
|
+
s18: $,
|
|
60
|
+
s20: ee,
|
|
61
|
+
s22: te,
|
|
62
|
+
s24: ne,
|
|
63
|
+
image: re,
|
|
64
|
+
fallback: ie
|
|
45
65
|
};
|
|
46
66
|
//#endregion
|
|
47
|
-
export { p as actions,
|
|
67
|
+
export { p as actions, B as attachButton, V as avatar, u as bubble, e as container, a as contentWrapper, N as danger, ae as default, w as done, T as error, b as expanded, ie as fallback, R as field, L as fieldContainer, h as hasAvatar, m as hoverOnly, re as image, I as inputArea, r as left, W as lg, U as md, n as message, c as messageAvatar, t as messageList, s as received, i as right, G as s1, Y as s10, X as s12, Z as s14, Q as s16, $ as s18, ee as s20, te as s22, ne as s24, K as s3, q as s5, J as s7, z as sendButton, l as sender, o as sent, H as sm, j as system, F as systemAction, P as systemText, g as timestamp, D as toolBody, _ as toolCall, y as toolChevron, k as toolCode, v as toolHeader, A as toolLabel, x as toolName, O as toolSection, E as toolSpinner, C as toolStatus, S as toolSummary, d as typing, f as typingDot, M as warning };
|