Added in 1.2.1
- Added an opt-in collapsible toolbar. A new
toggleToolbarbutton collapses
and expands the remaining controls, and a newcollapsedmode option sets the
initial state. Both are configurable per display mode throughsetToolbar(). toggleToolbardefaults todisabledandcollapseddefaults toexpanded
in every mode, so existing toolbars look and behave exactly as before until
the button is explicitly enabled.- Added
toggleToolbarExpandandtoggleToolbarCollapseto the toolbar i18n
tooltip table, with English, Turkish, and Chinese documentation. - Added CSS design tokens for toolbar button geometry and colour:
--mermaid-control-text-active,--mermaid-control-button-radius,
--mermaid-control-button-padding,--mermaid-control-button-min-size, and
--mermaid-control-icon-size.
Changed in 1.2.1
- Unified the mobile and desktop toolbars into a single set of CSS rules. Mobile
no longer restyles the toolbar; it only raises--mermaid-control-padding,
--mermaid-control-gap,--mermaid-control-button-min-size, and
--mermaid-control-icon-sizefor touch. Overriding a token on
.mermaid-containernow changes both toolbars at once. - Mobile toolbar buttons are borderless like their desktop counterparts, and
their 44px touch target comes frommin-width/min-heightinstead of a
fixed 40x40 box.--mermaid-control-bordernow defaults totransparentand
applies to both modes; set it to a visible colour for outlined buttons. - Mobile toolbar icons follow
currentColorinstead of a hard-codedstroke,
so--mermaid-control-textand the hover colour apply on mobile too. - The toolbar now wraps instead of overflowing when a full button set is wider
than the diagram container. - Corrected the documented defaults for
--mermaid-control-gap,
--mermaid-spinner-duration,--mermaid-error-bg,--mermaid-error-border,
and--mermaid-error-text, which had drifted from the stylesheet.
Fixed in 1.2.1
- Fixed diagrams drifting off-center when the container was resized. The
fit-to-container baseline is now recalculated on resize without resetting the
user's zoom or pan, which also covers sidebar toggles and layout changes, not
just window resizes. - Fixed the mobile toolbar rendering below the error overlay. Its
z-indexwas
8while the error container sits at10; both toolbars now use20. - Fixed the mobile zoom-level badge being reordered to the front of the toolbar
and carrying an extra margin, so both modes read in the same order. - Removed a
flex-direction: columnrule that silently overrode the mobile
toolbar's intended row layout, along with the unused.mobile-onlyand
hover-only visibility rules.
Docs site in 1.2.1
These changes affect the documentation site only and are not part of the
published package.
- Published machine-readable agent discovery resources under
/.well-known/: an
AI catalog, an API catalog, agent skills, an OpenAPI description, OAuth and
OpenID configuration documents, and a JWKS endpoint. - Added
auth.md, an MCP Server Card, an Agent Skills index with SHA-256
digests, and an ARD capability manifest for automated discovery. - Added a WebMCP script exposing documentation search and navigation as browser
tools, plus a Markdownagent-home.mdserved from/for clients that
requesttext/markdown. - Added RFC 8288 Link headers for the API catalog, OpenAPI description,
documentation, and discovery metadata. - Added the Vercel rewrites and content-type/CORS headers backing those
resources, and advertised the AI catalog and Content Signals fromrobots.txt
and the page<head>. - Added a DNS-AID zone reference with
_index._agentsand_a2a._agentsSVCB
records and DNSSEC deployment guidance for the authoritative DNS provider.