You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Composer menus on ChatInput, AgentPanel, and AgentChatbox via triggers. A marker such as / or @ opens that item's menu. useChatSuggest reads the live query. ChatSuggestOption inserts a chip.
inputRef on those three. insertChip adds a chip at the caret (label shown, value sent, optional title and color). focus and clear are on the same handle.
ChatChip, ChatInputHandle, ChatSuggest, ChatTrigger, ChatSuggestOption, and useChatSuggest from devnonla-ui/chat.
Changed
ReactCodeSandbox builds its own frame. Pass code only. The frame can import react, devnonla-ui, devnonla-ui/chat, devnonla-ui/markdown, and react-hook-form.
ReactCodeSandboxshowHeader defaults to false.
MarkdownViewer runs live-react fences when sandbox is set. It no longer takes a runner URL.
ChatWelcome shows the first letter of the name when avatar is omitted.
Upgrade notes
Remove AgentAvatar, AgentBody, AGENT_AVATAR_PARTS, AGENT_BODY_PARTS, and their types. Pass any node as avatar, or omit it for the letter.
Replace sandboxSrc="/sandbox.html" with sandbox. Drop the host page that called mountReactCodeRunner.
Drop src on ReactCodeSandbox. Pass showHeader where you still want the Preview / Code bar.