Releases: histoire-dev/histoire
Releases · histoire-dev/histoire
v0.10.2
v0.10.1
v0.10.0
Highlights
Svelte support
- Read the new documentation about Svelte here.
- Check out the live demo.
- Edit the Stackblitz
Markdown files
You can now create .story.md
files to either:
- Attach markdown to the
Docs
tab of a story - Create a standalone page directly
Vite 3
Histoire is now officially compatible with Vite 3! ⚡
Bug Fixes
- do not add target blank to urls that start with # in markdown (#235) (4abb77f)
- escape paths on Windows (976eae8)
- types: ServerStory.layout (6eaf15c)
Features
v0.9.6
v0.9.5
v0.9.4
v0.9.3
v0.9.2
Bug Fixes
- allow require.resolve @histoire/controls (2717442)
- import of flexsearch, fix #227 (1b44bb6)
- plugin: initialize context before calling onDev (ed0d5b8)
- remove forced deps optimize (234c8c1)
- rename tailwind plugin with builtin: prefix (295fc59)
- sourcecode pane crashing if no generated source code (1517832)
- vanilla: inherit options (55162e0)
Features
- vanilla js (no-framework) support plugin (31f1bce)
v0.9.1
Bug Fixes
- build: force external = [] to rollup options, fix #214 (45f7ba5)
- build: force lib:false, fix #219 (6cca1e1)
- grid: remove prevent modifier, fix #221 (8ca882b)
- resize story responsive preview (#181) (0999c54)
- resolve plugin correctly on windows (#218) (3544713)
- update floating-vue, fix #206 (d3b0061)
- vue2: HMR adding new variants not updating grid layout (d8a8b55)
Features
- add
process.env.HISTOIRE = 'true'
in cli bin to help adding conditions in vite.config.js (94339d9)
v0.9.0
Bug Fixes
- controls: design tokens slots not working (297f62f)
- floating-vue not bundled (3b77a87)
- replace VUE_OPTIONS_API in bluded vue (4f77909)
- revert non-enumerable internal state props (645509f)
- vue2: codegen: skip slots key starting with _ (47ae607)
- vue2: missing moveSlotContent (38d1f97)
Features
- cleaner histoire package, moved client to
@histoire/app
(0b788a3) - support plugins (3357c46)
- Vue 2.7 support (e54694a)
Migrate from v0.8
Install the vue3 plugin:
pnpm i -D @histoire/plugin-vue
# OR
npm i -D @histoire/plugin-vue
# OR
yarn add -D @histoire/plugin-vue
Create or update your histoire config file (histoire.config.js
or histoire.config.ts
):
import { defineConfig } from 'histoire'
import { HstVue } from '@histoire/plugin-vue' // New
export default defineConfig({
plugins: [
HstVue(), // New
],
})
Update imports:
import { defineSetupVue3 } from 'histoire'
=>import { defineSetupVue3 } from '@histoire/plugin-vue'
/// <reference types="histoire/vue" />
=>/// <reference types="@histoire/plugin-vue/components" />