Skip to content

v0.19.0

Choose a tag to compare

@phamvanquyit phamvanquyit released this 16 Oct 10:25
· 6 commits to main since this release

Added

  • 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.
  • ReactCodeSandbox showHeader 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.