Skip to content
Permalink
fbbc58f270
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
1377 lines (729 sloc) 81.9 KB

0.12.4 (2022-12-23)

Bug Fixes

  • custom controls taking too much space (59d1153)

0.12.3 (2022-12-23)

Bug Fixes

  • tree: minus icon not displayed on Firefox (e12c81f)

0.12.2 (2022-12-20)

Bug Fixes

  • folder icon size (118dc47)
  • vite client resolve error (temporary fix) (155ac88), closes #409

0.12.1 (2022-12-20)

Bug Fixes

  • docs: header anchors with routerMode hash (c729f6b)
  • docs: scroll to top (18b0353)
  • docs: scroll to URL anchor (68de7e2)

0.12.0 (2022-12-19)

Bug Fixes

Features

  • complete transition to shiki-es (7c2133d)
  • config: collectMaxThreads (5008ecb)
  • config: resolve theme files + check exist (3e85496)
  • sveltekit: upgraded sveltekit support to svelltekit v1.0.0 (fix #392, #397) (#402) (e7e5993)
  • tree: new folder and group design (afa305e)
  • upgrade to rollup 3 and vite 4 (#404) (e389cb0)

0.11.9 (2022-12-03)

Bug Fixes

  • grid: scroll not loading additional variants (58fe7e5)
  • state not syncing in iframe mode, fix #361 (4b7fe0c)
  • switch to shiki-es (2a63502)

0.11.8 (2022-12-03)

Bug Fixes

Features

Reverts

0.11.7 (2022-11-12)

Bug Fixes

  • build error (91b48a1)
  • config changes not applied on auto restart (a54efad)
  • grid scroll height not being reset when switcing story (875cf7d)
  • grid with % size glitching (ef51ccc)
  • not restarting on vite config change (c5fb953)
  • percy: puppeteer import, fix #330 (c199ad4)
  • remove overflow tailwind classes from sandbox, fix #351 (a326a6a)
  • remove vite-plugin-inspect (df6a7fb)
  • setupFile.browser only being also applied to server, related to #323 (833d086)
  • svelte: dynamic source, fix #344 (11e0432)
  • svelte: state sync: ignore undefined, HTMLElement and SvelteComponents, fix #346 (755ac0d)

0.11.6 (2022-10-26)

Bug Fixes

  • grid: update column count when content size changes (0786a57)
  • prevent collecting loop (ad6c652)
  • svelte: controls not rendering in variant > controls slot (c88c5d8)

Features

0.11.5 (2022-10-14)

Bug Fixes

  • add optimize shiki in case of pnpm shamefully hoist (a1014ab)

0.11.4 (2022-10-12)

Bug Fixes

0.11.3 (2022-10-09)

Bug Fixes

  • config dev port (fix #317) (#318) (095d516)
  • missing dark class when layout.iframe option is false (#267) (e0d1854)
  • sveltekit: md file broken rendering, fix #321 (082ad07)
  • svelte: variantState should not be modified by component internal state (#271) (af78b46)

Features

Performance Improvements

  • collect performance improvements (e39d958)
  • improve startup time (19e9309)

0.11.2 (2022-10-06)

Bug Fixes

  • grid: gradient is cut off (7aa006a)

0.11.1 (2022-10-06)

Bug Fixes

  • controls: display toolbar when no custom controls (51d0f26)
  • missing gradient in grid view (d6431de)

Features

0.11.0 (2022-10-03)

Bug Fixes

  • add client exports to histoire package (b2547ce)
  • changed generated id because of switch to change-case (710f0dd)
  • config: enable ESM resolve for jiti (0ce9796)
  • config: handle plugins undefined (5b03c05)
  • force optimize vscode-textmate, fix #285 (84f6467)
  • improve story/md deletion handling (e85af38)
  • md: adding new markdown files HMR (709ee34)
  • md: cannot resolve markdown file (b92641c)
  • screenshot overwritten, use size in filename (#299) (d50608a)
  • use jitsi to load config (e819ce4)

Features

  • call setupFile on server + auto-inline deps in vite-node (49546dc)
  • config: allow different setupFile for server-side (3103374)
  • config: defaultStoryProps (c7e39b8)
  • isCollecting(), fix #233 (e3cd92a)
  • md: change default md file icon (a3894cd)
  • md: improved inline code style (b9a1e82)
  • nuxt: add stubs for useNuxtApp and NuxtLink (#307) (8aca3c2)
  • rename hstEvent to logEvent (b1cb7d0)
  • static source code, fix #238 (8887c70)
  • svelte: Hst prop typing (287193b), closes #289
  • updated design (afcb244)

Performance Improvements

  • improve story list updates speed (5c4347d)

Reverts

  • switch back to non-conventional virtual ids (dc4e83b)

0.10.7 (2022-08-23)

Bug Fixes

  • vue3: codegen: custom directive breaking, fix #258 (37d983a)

0.10.6 (2022-08-23)

Bug Fixes

  • supress 'dynamic import cannot be analyzed' warning (4f8b422)
  • svelte3: Class constructors cannot be invoked without 'new' (fc10cd8)
  • vue2: syncing refs (29ac9a1)
  • vue: vue 2 docs custom blocks, fix #251 (709d0b8)

Features

0.10.5 (2022-08-23)

Bug Fixes

  • compatible with nested tailwind color (fix #200) (#253) (fb23942)
  • plugin: replace : with _ to prevent issue on Windows, fix #256 (69c41c5)

0.10.4 (2022-08-17)

Bug Fixes

  • nuxt: resolve vite config after all modules have injected plugins (#246) (cefa4f9)
  • postMessage error, fix #250 (0f5b400)

0.10.3 (2022-08-16)

Bug Fixes

0.10.2 (2022-08-13)

Bug Fixes

0.10.1 (2022-08-13)

Bug Fixes

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

0.10.0 (2022-08-12)

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

0.9.6 (2022-08-10)

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)

0.9.5 (2022-08-10)

Bug Fixes

0.9.4 (2022-08-10)

Bug Fixes

  • remove shiki deps from direct deps (70f36c9)

0.9.3 (2022-08-10)

Bug Fixes

0.9.2 (2022-08-10)

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)

0.9.1 (2022-08-02)

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)

0.9.0 (2022-07-30)

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

0.8.4 (2022-07-22)

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)

0.8.3 (2022-07-22)

Bug Fixes

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

0.8.2 (2022-07-21)

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)

0.8.1 (2022-07-20)

Bug Fixes

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

0.8.0 (2022-07-19)

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

0.7.9 (2022-07-06)

Bug Fixes

Features

0.7.8 (2022-06-22)

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)

0.7.7 (2022-06-20)

Bug Fixes

Features

0.7.6 (2022-06-09)

Bug Fixes

0.7.5 (2022-06-09)

Bug Fixes

0.7.4 (2022-06-08)

Bug Fixes

  • mapping: reuse existing objects, fix #128 (81ebe39)
  • mock CSS.supports when collecting, fix #122 (8a7d16f)
  • Symbol can't be cloned (eba5122)
  • vue3: collect: inline vuetify packages (8958ac5)

0.7.3 (2022-06-06)

Bug Fixes

Features

0.7.2 (2022-06-05)

Bug Fixes

  • a11y: make font-size follow user brower settings (#115) (e525332)

0.7.1 (2022-06-05)

Bug Fixes

  • nuxt: add additional sections of nuxt vite config (#109) (e31f543), closes #107
  • plugin: removeStory not working, fix #110 (b7c9171)
  • tailwind tokens Story not invalidated in the cache (5032945)
  • vue3: stub RouterLink, fix #107 (95e3f73)
  • vue3: auto stub components on node Story (8c27265)
  • vue3: check if vnodes is an array (3a49ffa)

Features

0.7.0 (2022-06-03)

Features

  • vue3: defineExpose is no longer needed (ad6e6b9)

0.6.6 (2022-06-03)

Bug Fixes

  • handle undefined viteNodeInlineDeps (1425599)
  • inline @vue/devtools-api in vite-node, fix #99 (8c83692)

Features

  • config: viteNodeInlineDeps (0ad6f33)

0.6.5 (2022-06-03)

Bug Fixes

  • mobile select variant select not working (cd37575)

0.6.4 (2022-06-03)

Bug Fixes

0.6.3 (2022-06-03)

Bug Fixes

  • prop override when no props are passed from the template (bcfd8ff)

0.6.2 (2022-06-03)

Bug Fixes

  • Failed to load /virtual:$histoire-generated-global-setup-resolved (e147acd)
  • leaking histoire styling in sandbox, fix #101 (c068a5d)
  • prop overriding not working in built version (5323b70)
  • setupFile not found, fix #102 (66c70f0)

Features

  • nuxt: support CSS + retrieve PostCSS config, fix #100 (10e4927)
  • plugin: allow export setupVue3 in setupCode (9cc651f)

0.6.1 (2022-06-02)

Bug Fixes

  • build: don't include histoire/dist/bundlded in vendor chunk (ee1a8f3)

0.6.0 (2022-06-02)

Bug Fixes

  • build with undefined base (53ca34e)

Features

0.5.4 (2022-05-31)

Bug Fixes

  • reduce flash of content when initial loading is shown (a796e1b)
  • use vite mode = 'development' to prevent production optimizations (bf0fc7e)

0.5.3 (2022-05-31)

Bug Fixes

0.5.2 (2022-05-31)

Bug Fixes

0.5.1 (2022-05-31)

Features

  • register global components types, fix #94 (56971fb)

0.5.0 (2022-05-30)

Bug Fixes

  • serialize js: 1 object in array (d2abaad)
  • state preset: clone when applying (479da6d)
  • vue3: filter out auto components without props (75640e0)

Features

Performance Improvements

  • better max thread count logic (6b565de)
  • collection was not done in parallel (4a0c22a)

0.4.6 (2022-05-11)

Features

0.4.5 (2022-05-09)

Bug Fixes

  • chunk not found errors on first dev (b06eab4)
  • HMR on variant props not working (3b4eaf5)
  • preserve import.meta in bundled client (3c0dbea)

Features

0.4.4 (2022-05-09)

Bug Fixes

  • resolveComponent can only be used in render() or setup() (70f44c3)

0.4.3 (2022-05-09)

Bug Fixes

  • config: replace arrays by default instead of merging (95c29dd)
  • mark all vue packages as external (4d31997)

0.4.2 (2022-05-09)

Bug Fixes

  • revert vue back to peer dep (737fa16)

0.4.1 (2022-05-09)

Bug Fixes

  • missing @types/markdown-it peer dep (549e5bf)

0.4.0 (2022-05-09)

Bug Fixes

  • remove import to @vue/runtime-core (e8e81c9)
  • sandbox style included in main app (bce793d)
  • single layout no iframe => couldn't scroll (6afdd25)
  • slot optimization in overflow menu (0b11e00)

Features

  • full text search in markdown docs, fix #70 (d6e23ce)
  • initial work to pre-bundle the client (#87) (9e8cba9)
  • remove mandatory vue3 vite plugin (fde0929)
  • tailwind: disable iframe (08401bd)

0.3.3 (2022-05-08)

Bug Fixes

  • don't optimize histoire/client, fix #79 (ea22d1b)
  • search: duplicate keys (d94c778)
  • search: remove no result animation (649490e)

Features

  • search: greatly reduce index download size (305e560)

0.3.2 (2022-05-06)

Features

0.3.1 (2022-05-02)

Bug Fixes

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)

0.2.5 (2022-04-20)

Bug Fixes

  • HstColorShades: handle long names (03974ea)
  • remove outline on dropdowns (67cb60d)
  • vue3: codegen: convert " to ' in function props (0a7b0ae)

Features

0.2.4 (2022-04-19)

Bug Fixes

0.2.3 (2022-04-10)

Bug Fixes

  • missing vite html transforms during dev (d77c42c)
  • preview bg not working (e7d4134)
  • preview settings not updated (5691f48)
  • remove unnecessary gap between header and story list (b319bb5)
  • story: inherit props to variants (23fa903)
  • vue3: codegen function as prop value (5ec9955)

Features

0.2.2 (2022-04-04)

Bug Fixes

Features

  • Add documentation (fix #44) (#60) (a1a3b3a)
  • grid: auto scroll to selected variant (60bf849)
  • grid: select variant on click or keyup inside (17e9204)
  • optimize big grids (488bda0)

Performance Improvements

0.2.1 (2022-03-22)

Features

0.2.0 (2022-03-20)

Bug Fixes

  • improve controls border colors (e76c1f6)
  • move server-side story exec to worker, closes #56 (d0a2cc9)
  • search: initial focus (3a19f8b)

Features

0.1.5 (2022-03-17)

Features

0.1.4 (2022-03-17)

Bug Fixes

  • mobile: bigger hit targets in select lists (9af124a)

Features

0.1.3 (2022-03-16)

Bug Fixes

  • responsive view settings update (4e4bfe4)
  • responsive: resizing while rotated (9e53d83)
  • storage glitch (upgrade vueuse) (8f99248)

0.1.2 (2022-03-16)

Bug Fixes

  • build: default vite chunks not correct (b05a35a)
  • remove unnecessary peer dep (7a4c333)

0.1.1 (2022-03-16)

Bug Fixes

0.1.0 (2022-03-16)

Bug Fixes

0.0.5 (2022-03-15)

Features

  • build: optimize scripts loading (65ee5e5)

0.0.4 (2022-03-15)

Bug Fixes

  • build: not handling custom blocks (2f60fd8)
  • checkbox size (59ea8df)
  • codegen: dynamicProps can be null (eaeb919)
  • controls component not found warnings on server (b16d7ad)
  • controls components name (dab555a)
  • controls: book dark text color (419cb1b)
  • display loading while variant is not ready (6488c6b)
  • docs: support dark mode (cba01f1)
  • improved ready state (1bb0d3f)
  • infinite sync loop (59512a6)
  • selected item colors (c99eea0)
  • simpler css bind (a9c8122)
  • state with nested objects (e9108df)
  • unwanted scroll on Firefox (7f6f898)

Features

  • auto scroll list item into view (3e11dda)
  • build: result logs (0648d58)
  • codegen: improved v-model (ce40e8e)
  • config: vite as function to mutate config (d39ca90)
  • initial builtin controls package, #30 (eb47193)
  • logoHref (d6ef6f2)
  • new responsive view with height (5f49d67)
  • optional , closes #38 (1c3af6c)
  • preview background + checkerboard (23f2808)
  • preview dark mode class + transparent bg (56a5ec3)
  • search: improve auto scroll (29c20fe)
  • story markdown docs (403e0b7)
  • variant.ready (efd56b3)

0.0.3 (2022-02-23)

Bug Fixes

  • responsive selected dark style (771bdfb)
  • restore last selected variant on stories HMR (bf25e84)
  • search dark style (d598906)

Features

0.0.2 (2022-02-22)

Features

0.0.1 (2022-02-18)

Bug Fixes

  • a11y: improve tree a11y (476e448)
  • active link color (3fecd68)
  • Add absolude import using pathe (#3) (2ed7d42)
  • add fille to built components to infer tag name (a1ace24)
  • allow both config file + vite config (c275413)
  • better default responsive width (fbda1c5)
  • build: support custom logos (7c7eec6)
  • center responsive dragger (cc0154f)
  • codegen (db89569)
  • console log override first arg can be a non-string (2126965)
  • dark mode fixes (73a80e8)
  • disable text select for a and button (f107c9c)
  • disable text selection in folder item (3057a8d)
  • grid variant item text not selectable (3a96827)
  • import path (7abc630)
  • include default tailwind colors (15261d6)
  • init state sometimes not being taken into account (fb9c775)
  • input style (563daf6)
  • Leaking absolute path (fix #4) (#11) (204e06b)
  • list items shrinking (9cee043)
  • min responsive width (b00e50d)
  • null error (40f1582)
  • reset keys on window blur (112519f)
  • respect vite root + no duplicate vue plugin (ec2001c)
  • router used before declaration (20b4c56)
  • search: prevent default keyboard shortcut (55db756)
  • source code textarea overflowing (13a8d0b)
  • story item right padding (0005160)
  • story list overflow (2f338d2)
  • use JSON.stringify for dynamic prop (036654b)
  • wrong serialize js indent size (3096e90)

Features