0.3.0 (2022-05-02)
Migrating from v0.2
-
The default dist folder is now .histoire/dist
from histoire-dist
-> If you didn't customize it: either takes this into account or add outDir: 'histoire-dist'
to your config.
-
The setup function export for Vue 3 has been changed from default
to setupVue3
and the type handler has been renamed from defineVue3StorySetup
to defineSetupVue3
Before:
import { defineVue3StorySetup } from 'histoire/client'
export default defineVue3StorySetup(({ app }) => {
app.provide('demo', 42)
})
After:
import { defineSetupVue3 } from 'histoire/client'
export const setupVue3 = defineSetupVue3(({ app }) => {
app.provide('demo', 42)
})
Bug Fixes
- add names to apps (28f3448)
- build preload links (ebcf1d3)
- build: disable minify to preserve function/variable names (db84feb)
- collect story loader not clearing vite cache (a6bbc53)
- controls css missing component style (921073a)
- dev: favicon respects base (439f5fb)
- docs: dark: hr (351e4dd)
- folder issue when selecting nested story (e24357a)
- grid, use manual CSS var (a3accb0)
- handle viteConfig.base, fix #69 (959d06c)
- init host variant state (a752bcc)
- renamed api (da5e34a)
- search: loading ux (9348009)
- search: new search didn't include story title for variants (95943d5)
- split controls dist style in two (4c248ec)
- Story: docsOnly shouldn't display variant number (4fe00e6)
- tailwind: dark: better drop shadow design (3993802)
- vue: Anonymous components (a81fef6)
- vue: codegen append text with no leading space to previous line (f0f4816)
- vue: codegen cleanup
$setup.
more (b234c9e) - vue: codegen content on new line if at least one attribute (9c89037)
- vue: codegen: improved event listeners (fee85a0)
- vue: codegen: only put content on same line if it's text (ca13bc5)
- vue: godegen custom directives (be1b287)
Features
Performance Improvements
- faster design tokens initial render (c18d457)