Back to the changelog
0.3.0
A new preview page, and a static build of it
unframework preview lets you see a component on every target at once while you work on it. It has a new page in this release, and unframework preview build writes it as a static site, so the people who use your components can browse them too.
New
- The sidebar holds your examples as a tree of their categories, with a filter, and your components below them. The canvas shows every target side by side or one at a time, and a docked panel holds the controls. Press
?to list the keyboard shortcuts. - A doc comment on an example gives it a description, and
@category,@titleand@orderset where the preview lists it, under what name and in what order. Without one, an example takes its category from its directory and its title from its file name. Code that builds anExampleby hand now needs to setcategoryandtitle. unframework preview buildwrites the preview as a static site that any static host serves at any path.
Fixed
- Svelte's server render marks the radio, or the checkbox in a group, whose value the
v-modelholds aschecked, as every other target does. This fix first shipped in 0.2.1. unframework build --packageworks on TypeScript 7.1 again for React and Solid, with declarations namedCard.d.tsrather thanCard.d.d.ts. On TypeScript 7.1, install tsdown0.23.7or later. This fix first shipped in 0.2.2.