histoire

⚡ Fast and beautiful interactive component playgrounds, powered by Vite

MIT License

Downloads
1.2M
Stars
3.2K

Bot releases are visible (Hide)

histoire - v0.10.2

Published by github-actions[bot] about 2 years ago

Bug Fixes

histoire - v0.10.1

Published by github-actions[bot] about 2 years ago

Bug Fixes

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

Published by github-actions[bot] about 2 years ago

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

histoire - v0.9.6

Published by github-actions[bot] about 2 years ago

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)
histoire - v0.9.5

Published by github-actions[bot] about 2 years ago

Bug Fixes

histoire - v0.9.4

Published by github-actions[bot] about 2 years ago

Bug Fixes

  • remove shiki deps from direct deps (70f36c9)
histoire - v0.9.3

Published by github-actions[bot] about 2 years ago

Bug Fixes

histoire - v0.9.2

Published by github-actions[bot] about 2 years ago

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)
histoire - v0.9.1

Published by github-actions[bot] about 2 years ago

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)
histoire - v0.9.0

Published by github-actions[bot] about 2 years ago

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" />
histoire - v0.8.4

Published by github-actions[bot] about 2 years ago

Bug Fixes

  • Added questionmark to possibly undefined userViteConfig (#196) (64e306a)
  • show empty state faster (8289eb8)

Features

  • dim 'Docs' tab if no docs available (81871a8)
  • dim 'Events' tab if empty (be697e4)
histoire - v0.8.3

Published by github-actions[bot] about 2 years ago

Bug Fixes

  • mark auto prop internal state as non-enumerable (20678c8)
  • too much recursion with circular data (df81aac)
  • vue3: state sync hang (7c399fd)
histoire - v0.8.2

Published by github-actions[bot] over 2 years ago

Bug Fixes

  • config: disable vite internal config file loading (8ca4362)
  • config: merge function vite (f52c05c)
  • config: remove vite:legacy, fix #156 (f057330)
  • HstSelect: allow any type of value (1e198a8)
  • pin shiki version on cdn (8f69bbf)
  • vue3: codegen: remove undefined props (b0dc96d)
  • vue3: falsy auto props overrides not applied, fix #164 (0a53656)
  • vue3: global components not resolved, fix #158 (855103b)
  • vue3: script setup refs not synced, fix #190 (780967d)
  • vue3: shared auto props (dbcf87b)
  • vue3: toRawDeep emptying duplicate objects/arrays, fix #183 (bba7711)
histoire - v0.8.1

Published by github-actions[bot] over 2 years ago

Bug Fixes

  • server: set content-type on html during dev (d805861)
  • shiki not found (6a71d64)
histoire - v0.8.0

Published by github-actions[bot] over 2 years ago

Bug Fixes

  • add min and max attrs to the input (#173) (cc5ead5)
  • auto props value override not working after vendor bundling (a663735)
  • skip app setups while collecting (5fff544)
  • vue3: detect type of shorthand prop def, fix #155 (cc8e06a)
  • vue3: hot reload not triggered (c747458)

Features

histoire - v0.7.9

Published by github-actions[bot] over 2 years ago

Bug Fixes

Features

histoire - v0.7.8

Published by github-actions[bot] over 2 years ago

Bug Fixes

  • build: force no externalize, fix #137 (a760adf)
  • collect: autostub components in child vnodes, fix #138 (5f6d29b)
  • prevent vite from restarting two times when changing vite config (f00143c)
  • ts: global component types, fix #146 (fbec6bf)
  • vue3: components not skipped for implicit state, causing clone error (86e580f)
  • vue3: double sandbox mounting, fix #144 (a788feb)
  • vue3: improve sandbox mounting logic (f851658)
  • vue3: state sync breaking after loading story 2nd time, fix #128 (58ecf07)

Features

  • vue3: scan for auto props in child vnodes, fix #145 (c39f6a3)
histoire - v0.7.7

Published by github-actions[bot] over 2 years ago

Bug Fixes

Features

histoire - v0.7.6

Published by github-actions[bot] over 2 years ago

Bug Fixes

histoire - v0.7.5

Published by github-actions[bot] over 2 years ago

Bug Fixes