Repository navigation
Releases
Releases · canonic2/canonic
workbench/v0.23.0
- Panning and zooming the canvas use less CPU. Artboard labels stay visible during zoom, and previews recover after the Workbench server restarts.
- Open canvases in VS Code and browsers update their page lists when you save project settings or add, rename, or remove previews and scenarios. Newly added scenarios open without a manual refresh. If a scenario is missing, the canvas names it so you can check the preview definition.
- Screenshots use the display’s pixel density and wait for stylesheets to load, so they capture the page with its intended fonts and styling. Screenshots, handoffs, and design-system exports require the Intel macOS package and macOS 15 or later.
- Coding agents can capture, compare, and interact with pages, and inspect their layout, accessibility, and console output through MCP or the
workbenchcommand. Supported chat clients show screenshots with zoom and refresh. Agents can also read the current canvas, select an artboard, and retrieve annotations with their artboard targets. - Inspect images for dimensions, format, transparency, and display-size problems. The new image tools can crop, resize, and convert assets, write multiple output sizes, and show how an edited image looks in place on the page.
- Run
workbench mcp setupto connect coding agents. In Claude Code and Codex, setup adds the current canvas reference to prompts while a canvas is open. Existing tool approvals stay in effect. New setups select all Workbench tools for approval by default. To review those defaults on an existing setup, use--reset-tool-permissions. - Preview authors can replace modules with mocks for the whole project, for one adapter, or for an individual preview.
- Workbench also finds
.config/workbench.yaml. To use a different manifest, pass--config <path>to a CLI command that reads project configuration or toworkbench mcp serve. - Update scripts that pass paths as positional arguments. Use
--project <path>withworkbench init,list,check, andbuild, and use--out <folder>for the build destination. Useworkbench config show --problemsin place of--problems only. Run any command with--helpfor its options. - Remove
ios-simulatorandwindowlenses from your Workbench configuration. Review native apps in their simulator or emulator.
workbench/v0.17.0
- Action needed when updating from 0.13.1: a page's alternative conditions are now called scenarios. Rename
statestoscenariosinworkbench.yamland preview definitions,context.statetocontext.scenario, link targets to{ preview, scenario }, URL parameters to?scenario=<id>, and HTML attributes todata-wb-scenario,data-wb-scenario-onlyanddata-wb-scenario-not. There is no fallback for the old names. Also rename an implementation calleddesign, which is now reserved for a page's own lens. - The canvas renders background artboards from cached pictures and static HTML copies, keeping readable artboards sharp as you zoom. Selecting an artboard starts its interactive page; nearby pages load in the background.
- Artboards you use keep their application state, with up to eight pinned apps. Release keeps an image and ends the app; Restart begins a fresh page. When a ninth app is pinned, Workbench releases the oldest one after capturing it successfully.
- Closing a page cleans up its running artboards without reporting a cleanup timeout.
- Docs recovery waits for the requested page before showing a replacement document after example cleanup fails.
- Leaving an artboard keeps an image of its last visible state, including typed text and open modals. That image stays visible when you zoom in, and builds mark it Stale until you return or restart. Captures last for the canvas session; background captures cannot evict an image whose app has ended. A changed artboard size shows the new layout instead of stretching the old image.
- The canvas opens while implementation services become ready. Closing it cancels the readiness wait, and pages refresh when the services are ready.
- Workbench starts a project's Storybook on demand when its implementation has no
url, using a private local socket. Astro docs examples render on the canvas, and concurrent Astro renders keep request mocks isolated. - Pages open on their docs when available. Docs reuse loaded resources, preserve reading position on refresh, and colour code examples in a background worker. A preview's own lens is called Preview, with
lensLabelavailable to rename it. - Page and space selection updates immediately while replacement content loads. Changing page size keeps the old content at its own size until the replacement is ready, and the native page index avoids waiting for the preview compiler.
- CSS modules preserve custom property names so other stylesheets and SVG sprites can read them.
workbench/v0.13.1
- Action needed: pages and preview definitions list their supported sizes under
sizes, with the valuesfit,laptop,mobile, andresizable. Renameviewportstosizes,desktoptolaptop, andresponsivetoresizable, inworkbench.yaml,workbench.local.yaml, and your.workbench.tsand.workbench.tsxfiles. In the browser viewer of a design-system export, the Viewport menu is the Size menu and theviewportaddress parameter issize; incanonic-export.json, screenshot records name their size insizeandsizeLabel. See Sizes in Pages and states. - Action needed: implementations that render docs examples use
kind: docs. Changekind: examplestokind: docsinworkbench.yamlandworkbench.local.yaml. Handoffs through docs say- Docs:where they said- Docs page:. See Docs. - Docs are a lens of any page. Give a page
docswith a Markdown file, and its docs appear in the lens switcher beside its design and other implementations: one docs lens for eachdocsimplementation the page maps, or the built-in Docs lens when it maps none. A page whosesrcis a Markdown file is still its own docs, with no design lens. The design lens keeps the page's size while you read its docs, and the lens you choose stays when you open another page that has it. See Docs. - A space can define its own artboard sizes under
sizes, with a width and height (either of which can fill the canvas), a label, an icon, and whether it is a button in the size switcher; a page can list which of them it supports and add its own. The size switcher has a menu with Custom size… and Edit sizes…, which write those sizes toworkbench.yaml. - More › Export… replaces Download design-system ZIP. Export the current page, the pages selected in the page list, a collection, or the whole space, as a source ZIP, a PDF, PNG or JPEG images, or a portable browser viewer. A single-page PDF or image export defaults to the current state, size, and lens. PDFs keep each design's dimensions and full height, and paginate docs on A4 or Letter paper. See Design-system export.
- Docs show their Markdown before their examples finish building, and Workbench builds docs in the background when a session starts.
- In React Native Web previews and docs examples, a root view with
flex: 1fills its frame or panel without a stylesheet. The React Native Web guide also covers previewing a screen inside its app layout and safe areas. - The top bar shows the size switcher before the Actions switch.
Full Changelog: workbench/v0.13.0...workbench/v0.13.1
workbench/v0.12.2
- Action needed:
workbench.yamluses new names. Renamesectionstocollections,folder:togroup:, andprojectstospaces, inworkbench.yamland inworkbench.local.yaml. A file that still uses the old names shows an empty sidebar and reports no problem. See the workbench.yaml reference. - Action needed: Workbench requires VS Code 1.123 or later, and running
server.jsfrom the command line requires Node 24 or later. - Docs pages document a component or part of your design system in Markdown, with live examples rendered by your own components, each example's code, and props tables. A docs page fills the canvas on white and scrolls like a web page. Add one by giving a page a Markdown
srcand anexamplesimplementation. See Docs pages. - The interface uses the same words as the file. The switcher at the top of the sidebar changes spaces, the sidebar lists collections, groups, pages, and states, and what you draw on a page is an annotation. The commands are Workbench: Switch Space…, Workbench: Add Space…, and Workbench: Refresh Pages; update any keybindings for the old command IDs. Spaces you added from elsewhere on disk with Add a project… aren't carried over: add them again with Add a space…. See Several spaces and Annotations and handoff.
- Agents and scripts that read
/_workbench/configor the handoff prompt get the same new words, such ascollectionsandpages. - Recenter view, beside the zoom buttons, brings the artboard back to the middle of the canvas without changing the zoom level or the page's scroll position. See Using the canvas.
- TypeScript previews compile faster: each platform's extension carries a native compiler, and compiled previews are kept on disk between sessions.
- A preview and a Storybook story whose titles name the same collection and group appear together in that group, with your
workbench.yamlpages. - SVG icon sprites a preview registers when it loads stay available when you switch states or come back to the preview.
- Workbench is also published on Open VSX, for editors that install extensions from there.
- Workbench is distributed under the Canonic Proprietary License instead of the MIT license. See
LICENSEin the extension.
Full Changelog: workbench/v0.12.1...workbench/v0.12.2
workbench/v0.11.1
- Workbench is on the Visual Studio Marketplace as Canonic Workbench. Install it from the Extensions view in VS Code. Existing installs from a VSIX file are the same extension, so the Marketplace updates them from now on.
- The Extensions view lists the extension as Canonic Workbench. The activity bar, views, and commands still say Workbench. Nothing else changes.
Full Changelog: workbench/v0.11.0...workbench/v0.11.1
workbench/v0.11.0
- Preview definitions type-check in your project. Install the types with
npm install --save-dev @canonic2/workbench, andtscand your editor resolveimport { definePreview } from '@canonic2/workbench'. Workbench still compiles previews with its own copy, so the installed version affects types only. See Types in TypeScript Workbench previews. - Action needed: preview definitions and
workbench.config.tsimport from@canonic2/workbench. Changefrom '@canonic/workbench'tofrom '@canonic2/workbench'in your.workbench.tsand.workbench.tsxfiles; previews that still import the old name fail to build. If you use aworkbench-env.d.tsfrominit, delete it and runinitagain, or install the package instead. - Workbench is on the Visual Studio Marketplace: search for Workbench in the Extensions view, or update from there from now on. The VSIX files stay on GitHub Releases.
Full Changelog: workbench/v0.10.0...workbench/v0.11.0
workbench/v0.10.0
- Workbench previews behave like Storybook stories: they stay on the canvas. Map the addresses a preview links to in its definition's new
links, and with Actions on those links open the mapped preview. Every other link and form, including routes without a preview, other sites, and downloads, is recorded under Actions instead of followed.context.navigateopens a preview from a script. See Links and navigation in Preview data, mocks, and actions. - Links to a spot on the same page, such as
#features, scroll to it whether Actions is on or off. - Previews can answer the requests their page makes. A definition's new
requestsmocksfetchand XMLHttpRequest calls by method and path, or by GraphQL operation name, with per-state overrides for empty, loading, error, and offline states. It works with any adapter, and withfetchin Astro frontmatter. See Preview data, mocks, and actions. environmentinworkbench.config.tswraps every preview in shared providers and setup, like Storybook's global decorators. Projects that mix frameworks can give each adapter its own.- A new guide, Preview data, mocks, and actions, covers inputs and controls, fixtures, environments, request mocks, the action log, and links, with recipes for common kinds of screens.
- One window can switch between several projects, such as a product and its design system. A switcher at the top of the Workbench view lists every folder of the window that has a
workbench.yaml, plus projects you add from elsewhere on disk with Add a project…, which every window remembers. With more than one project, the canvas toolbar starts with the project too. Each project keeps its own server, port, and settings, and starts the first time you open it. A window with one project works as before. See Several projects. - One
workbench.yamlcan describe several projects underprojects, each with its own name, mark, screens, and implementations, sharing the file's folder or serving its ownroot. Keys outsideprojectsare shared by all of them. See Projects in the workbench.yaml reference. - A multi-root workspace lists the projects of every folder with a
workbench.yaml, instead of serving only the first folder. - New commands: Workbench: Switch Project… and Workbench: Add Project….
colorandiconat the top ofworkbench.yamlmark the project in the switcher, beside itsname. A color is a named color or a hex value; an icon is a Lucide icon name or an image in the project. Set them inworkbench.local.yamlto mark a project differently on your machine. See Name, color, and icon in Several projects.server.jstakes several project folders and serves each on its own port, with the same switcher in the browser.- Agents can see the screen you have open without a paste. Every open canvas tells the Workbench server what it shows, and
GET /_workbench/viewreturns the reference Copy reference would copy, from the canvas you changed most recently. In a project with a.canonicfolder, the server writes its address to.canonic/.workbench/server.jsonwhile it runs; add that folder to.gitignore. See Copy a reference in Using the canvas.
Full Changelog: workbench/v0.9.0...workbench/v0.10.0
workbench/v0.9.0
- Screenshots and handoffs of Storybook and URL lenses show the page as you see it: an opened modal or menu, typed text, and scroll positions. Workbench loads those pages through a local proxy that adds its preview bridge, so your Storybook and app need no changes. If you added the bridge loader to
.storybook/previewyourself, you can remove it. See Storybook and Lenses and URL implementations. - Handoffs through a lens name the element under each mark as it is on the page you see.
- Lens pages load even when the app sends
X-Frame-Optionsor aframe-ancestorspolicy. - Sign-in through an identity provider (OAuth or SSO) doesn't stay signed in inside a lens, because the provider returns to your app's own address rather than the proxy. Use a sign-in your development build serves itself. See Embedding and sign-in in Lenses and URL implementations.
Full Changelog: workbench/v0.8.0...workbench/v0.9.0
workbench/v0.8.0
- Screenshots and handoffs come only from the capture helper bundled with the extension. Workbench no longer falls back to Chrome, and the
canonic.capture.chromePathsetting is gone; you can remove it from your settings. - On a host that can't run the helper (macOS 12 or earlier, or Linux without a display), screenshots fail with that reason instead of opening Chrome. See The VS Code extension guide.
- New guides for previewing React, React Native Web, Vue, Astro, and HTML, and for registering custom adapters. The extension guide now covers which files Workbench writes, its network access, updating, and uninstalling.
Full Changelog: workbench/v0.7.0...workbench/v0.8.0
workbench/v0.7.0
- Define screens and components in
.workbench.tsor.workbench.tsxfiles, with named states and adapters for HTML, React, Vue, Astro, and React Native Web. See the TypeScript Workbench previews guide. - Use Preview controls to edit inputs, reset a state, inspect actions, and read documentation. Edits stay temporary.
- Compare a design with a TypeScript preview using a
workbenchlens. - Export compiled previews in the design-system ZIP, or build a standalone browser viewer with the included command-line tool. The viewer includes states, viewports, controls, actions, and documentation; Astro exports include authored states without editable inputs.
- The canvas opens with a loading indicator while services start, and the sidebar identifies pending catalogs and preview discovery.
- Screen switching keeps the current screen visible while the next loads, reuses managed preview renderers, and avoids waiting for offscreen lazy images.
Full Changelog: workbench/v0.6.0...workbench/v0.7.0