Skip to content

Releases: histoire-dev/histoire

v0.10.2

13 Aug 12:39
Compare
Choose a tag to compare

Bug Fixes

v0.10.1

13 Aug 00:20
Compare
Choose a tag to compare

Bug Fixes

  • broken tailwind tokens (626176a)
  • exclude @histoire/vendors from optimize (a9171d4)

v0.10.0

12 Aug 23:00
Compare
Choose a tag to compare

Highlights

Svelte support

histoire-x-svelte

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

Read more: Vue | Svelte

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

10 Aug 18:13
Compare
Choose a tag to compare

Bug Fixes

  • add key to generic render/mount, fix #231 (203f7a9)
  • iframe: variant.previewReady wasn't reeset to false (4f52b45)
  • state preset: use structured cloning when applying (10b1b4b)
  • state preset: wait for controls render (e31002d)

v0.9.5

10 Aug 17:27
Compare
Choose a tag to compare

Bug Fixes

v0.9.4

10 Aug 17:24
Compare
Choose a tag to compare

Bug Fixes

  • remove shiki deps from direct deps (70f36c9)

v0.9.3

10 Aug 15:47
Compare
Choose a tag to compare

Bug Fixes

v0.9.2

10 Aug 15:35
Compare
Choose a tag to compare

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

02 Aug 23:31
Compare
Choose a tag to compare

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

30 Jul 21:22
Compare
Choose a tag to compare

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" />