Repository navigation
v0.18.0
Write stories for SolidJS components, renderer only, and use Poveste with SvelteKit 3.
It is a minor, because the Solid plugin and SvelteKit 3 support are new features. Nothing is deprecated, renamed or removed, no configuration key changed and no version floor moved, so a Vue, Nuxt, Svelte, SvelteKit or Quasar book upgrades with nothing to do.
🚀 Enhancements
-
Write stories for SolidJS components with
@poveste/plugin-solid, renderer only for now (#61, #1123, #1125, #1126, #1172).- What works: a story is a
.story.tsxfile. Its variants render JSX.initStategives a variant the state panel, andrenderreceives that state as a Solid store, so an edit in the panel reaches the story without runningrenderagain.setupSolidruns before a story mounts, and itsaddWrapperputs a component around it. The source panel shows the story'ssourceif it sets one, and the story file otherwise. - Not here yet: controls built from your components, and generated per-variant source. Solid compiles JSX to DOM operations and keeps no render tree to read either from. A variant without
initStatesays why its panel is empty. - Requirements:
solid-js@^1.9.0andvite-plugin-solid@^2.11.0. - Add
'**/*.story.tsx'tostoryMatchin your Poveste config. The defaults look only for.story.vueand.story.svelte, so without it a Solid-only book builds empty. SettingstoryMatchreplaces those defaults, so in a book that also has Vue or Svelte stories, list their patterns too:storyMatch: ['**/*.story.vue', '**/*.story.tsx']. Otherwise those stories drop out of the book with no message. - The Solid guide walks through all of it, including the
story:devandstory:buildscripts, and Getting started has a Solid Try it live starter that opens a working book in StackBlitz (#1221, #1223).
- What works: a story is a
-
SvelteKit 3 is supported, alongside SvelteKit 2 (#1200, #1207). A project created with
npx sv createsince SvelteKit 3.0.0 came out on 1 October is on Kit 3, and installing Poveste into it failed withERESOLVE, because@poveste/plugin-sveltepeered on@sveltejs/kit ^2.53.0. The peer is now^2.53.0 || ^3.0.0, andpoveste dev,poveste buildandpoveste previewwork on Kit 3. The plugin now runssvelte-kit syncitself on either major, as SvelteKit's own dev server does, because Kit 3 keeps what it generates undernode_modules, where a package install deletes it. A Kit 2 book needs no changes. It now also runssvelte-kit syncwhen Poveste starts, as SvelteKit's own dev server does. Your Kit config stays where it is:svelte.config.json Kit 2, insidesveltekit({ ... })on Kit 3. One exception: Poveste reads a customfiles.assetsonly fromsvelte.config.js, so a Kit 3 book's static files come fromstatic/.
🩹 Fixes
@poveste/appships Poveste's licence (#936, #1147). It packed its bundled font's licence and, because of that, not Poveste's own MIT licence, the only published package without it. It now carries both, and the release gate checks that every package's tarball carries Poveste's licence.
📖 Documentation
-
/llms.txtand/llms-full.txton poveste.dev (#1127, #1144). They give an AI agent a map of the docs, generated from the site's own navigation and each page's description, so they cannot drift from it. They went live on poveste.dev just after 0.17.2. From this release they list Solid as renderer only. -
Solid is named, as renderer only, wherever Poveste lists its frameworks (#1133, #1145): the README, the supported-versions table and the npm descriptions.
↩️ Pulled before release
Two fixes landed during this cycle and were reverted before the release. The generated commit list below still names both under Bug Fixes, because it doesn't list reverts: neither is in 0.18.0, which behaves as 0.17.2 does for both. Both are planned for 0.19.
- Native widgets in a dark preview are still painted light (#991). The fix (#1148, reverted by #1173) made a preview paint opaque whenever its colour scheme differed from Poveste's interface, and it overrode a book's own
color-scheme(#1167). - In
poveste dev, the "generate story" component picker still lists nothing (#1064). The fix (#1146, reverted by #1179) made the picker reach two paths that stop the dev server (#1170, #1176).
🚀 Features
- solid: Add
@poveste/plugin-solid, a renderer for Solid stories - by @50rayn in #1123 (4f528) - svelte: Support SvelteKit 3 alongside Kit 2 - by @50rayn in #1207 (cebeb)
🐞 Bug Fixes
- app:
- repo:
- svelte: