Skip to content

Commit

Permalink
Merge pull request #6447 from backbone87/vue-sb5-migration
Browse files Browse the repository at this point in the history
update migration.md with vue changes introduced in sb5
  • Loading branch information
shilman authored Apr 7, 2019
2 parents 4f18a8b + f8b8a8e commit 704756e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- [Addon a11y uses parameters](#addon-a11y-uses-parameters-decorator-renamed)
- [New keyboard shortcuts defaults](#new-keyboard-shortcuts-defaults)
- [New URL structure](#new-url-structure)
- [Vue integration](#vue-integration)
- [From version 4.0.x to 4.1.x](#from-version-40x-to-41x)
- [Private addon config](#private-addon-config)
- [React 15.x](#react-15x)
Expand Down Expand Up @@ -191,7 +192,7 @@ Here is the mapping from old options to new:

Storybook v5 removes the search dialog box in favor of a quick search in the navigation view, so `showSearchBox` has been removed.

Storybook v5 introduce a new tool bar above the story view and you can show\hide it with the new `isToolshown` option.
Storybook v5 introduce a new tool bar above the story view and you can show\hide it with the new `isToolshown` option.

## Individual story decorators

Expand Down Expand Up @@ -351,6 +352,12 @@ https://url-of-storybook?path=/story/<storyId>

The structure of `storyId` is a slugified `<selectedKind>--<selectedStory>` (slugified = lowercase, hyphen-separated). Each `storyId` must be unique. We plan to build more features into Storybook in upcoming versions based on this new structure.

## Vue integration

The Vue integration was updated, so that every story returned from a story or decorator function is now being normalized with `Vue.extend` **and** is being wrapped by a functional component. Returning a string from a story or decorator function is still supported and is treated as a component with the returned string as the template.

Currently there is no recommended way of accessing the component options of a story inside a decorator.

## From version 4.0.x to 4.1.x

There are are a few migrations you should be aware of in 4.1, including one unintentionally breaking change for advanced addon usage.
Expand Down

0 comments on commit 704756e

Please sign in to comment.