Skip to content

v0.9.0

Compare
Choose a tag to compare
@github-actions github-actions released this 30 Jul 21:22
· 477 commits to main since this release

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