Repository navigation
workbench/v0.13.1
·
347 commits
to main
since this release
- 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