November 2026 — newtui 2.5.0, @newtui/mcp 0.1.1, @newtui/nuxt 1.0.2
fix(deps): update all non-major dependencies
newtui 2.5.0
-
fix(deps): update all non-major dependencies
-
Components a message feed needs can now be read-only, translated and themed.
Mentiontakesas="span"for a mention that opens nothing (not focusable, no hover), andas="a"orhreffor one that navigates.Reactiontakesreadonlyto show a count without a toggle,emojiSrcfor a server emoji image withemojiAltfor its name, andformatLabelto translate its accessible name.MessageGroupBotTagtakesaria-label(React) /ariaLabel(Vue) to replace “Application”.Buttonrenders a link withhref, or any element or router link withas. A disabled link drops itshrefand setsaria-disabled.MessageGrouptakesas, so a post can be an<article>or an<li>.- Fixed colours are tokens now:
--newt-on-accent(text and marks on brand fills),--newt-overlay(the modal scrim) and--newt-bg-message-hover(a message row on hover) replacetext-white,bg-white,bg-black/60andbg-black/[0.06], so these parts follow a light theme and token overrides.
-
newtui initno longer restyles the app it is added to, and its light theme now applies.- The stylesheet gets one complete light
:root, and the dark values go under a selector you choose with--dark-selector:class(.dark, the default),data-theme([data-theme="dark"]),media(the system preference) or any selector. The choice is saved astailwind.darkSelectorincomponents.json, and the printed Tailwind v3 preset setsdarkModeto match. Before this, two:rootblocks were written and the dark one won on every page. - The
@themeblock maps onlynewtnames. It no longer redefines--radius-sm/md/lg/full,--font-sansor--font-mono, so an existing app keeps its own radii and fonts. Components now use Tailwind’s ownrounded-*andfont-*scale; the raw--newt-radius-*and--newt-font-*variables are still written. - When
--cssnames a new token file and another stylesheet already loads Tailwind,initleaves@import "tailwindcss"out and prints the line to import the token file from that entry.
- The stylesheet gets one complete light
-
New
markdownitem: renders a message written in chat markdown with the library’s own parts.<Markdown content="**Deploy** done — ping <@1001> in <#2002> ||tomorrow|| at <t:1767225600:t>" resolveMention={(kind, id) => names.get(`${kind}:${id}`)} />It reads bold, italic, underline, strike, spoilers, inline and fenced code,
#–###headings,-#subtext, lists,>and>>>quotes, links, and the<@id>,<@&id>,<#id>,</command:id>,<:emoji:id>and<t:…>tokens, and renders them asMention,InlineCode,CodeBlock,Spoiler,CustomEmojiandTimestamp. The source is parsed into a tree, never injected as HTML, and onlyhttp(s)addresses become links. A masked link ([text](url)) shows its address in a dialog before it opens. Mention names and server emoji images come from theresolveMentionandresolveEmojicallbacks; every label can be translated throughlabels. The parser is exported asmarkdown-syntaxfor code that wants the tree without rendering it.
@newtui/mcp 0.1.1
- fix(deps): update all non-major dependencies
@newtui/nuxt 1.0.2
- fix(deps): update all non-major dependencies