Skip to content

Tags: webdesign2be/react-styleguidist

Tags

v7.0.8

Toggle v7.0.8's commit message
Fix: Add `reduce_funcs: false` to Uglify for Preact compatibility (st…

…yleguidist#940)

v7.0.7

Toggle v7.0.7's commit message
Fix: Don't report 'On your network' on localhost (styleguidist#934)

When explicitly setting the serverHost to 127.0.0.1 or localhost,
urls.lanUrlForTerminal is undefined. It makes no sense to print out
undefined, therefore only show the 'On your network' line when it's
defined.

v7.0.6

Toggle v7.0.6's commit message
Fix: Ignore mini-html-webpack-plugin (styleguidist#938)

Fixes styleguidist#937

v7.0.5

Toggle v7.0.5's commit message
Fix: Downgrade markdown-to-jsx (styleguidist#925)

Newer versions have regressions with rendering HTML.

v7.0.4

Toggle v7.0.4's commit message
Fix: Use more user-friendly message for the EADDRINUSE error (stylegu…

…idist#924)

v7.0.3

Toggle v7.0.3's commit message
Fix: Correct tag name for Fragment (div) wrapping in React before 16.2

v7.0.2

Toggle v7.0.2's commit message
Fix: find() compatibility with IE11 (styleguidist#912)

v7.0.1

Toggle v7.0.1's commit message
Fix: Downgrade webpack-dev-server to support webpack 3 too

v7.0.0

Toggle v7.0.0's commit message
Changelog: 🚀

👋 **[Support Styleguidist](https://opencollective.com/styleguidist) on Open Collective** 👋

## Breaking changes

### Node 6 is the lowest supported version

Styleguidist doesn’t support Node 4 anymore.

(styleguidist#744 styleguidist#839 by @kohgpat)

### New format of template option

We’re now using [mini-html-webpack-plugin](https://github.com/styleguidist/mini-html-webpack-plugin) and [@vxna/mini-html-webpack-template](https://github.com/vxna/mini-html-webpack-template) instead of [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin).

This will make things like [adding a favicon](https://react-styleguidist.js.org/docs/cookbook#how-to-add-a-favicon) or fonts from [Google Fonts](https://react-styleguidist.js.org/docs/cookbook#how-to-add-fonts-from-google-fonts) much easier.

If you’re using a custom HTML template, you need to update your style guide config.

```js
// 6.x
module.exports = {
  template: './styleguie/template.html'
}

// 7.x
module.exports = {
  template: {
    // This is just an example, there are many more available options
    favicon: 'https://assets-cdn.github.com/favicon.ico'
  }
}
```

See more [in the docs](https://react-styleguidist.js.org/docs/configuration#template).

(styleguidist#896 styleguidist#907 by @sapegin)

### Changed Node API

`server` method now returns an object containing a webpack `Compiler` instance and the Styleguidist server, see examples [in the docs](https://react-styleguidist.js.org/docs/api.html#servercallback).

(styleguidist#828 by @cmswalker)

## New features

### Webpack 4 support

Webpack 3 is still supported too.

(styleguidist#857 by @kontrollanten, styleguidist#900 styleguidist#901 by @rubenmoya)

### Examples are wrapped in React.Fragment

You don’t need to wrap multiple JSX tags in a div anymore.

```jsx
// 6.x
<div>
  <Button primary>Primary button</Button>
  <Button secondary>Secondary button</Button>
</div>

// 7.x
<Button primary>Primary button</Button>
<Button secondary>Secondary button</Button>
```

(styleguidist#840 styleguidist#842 by @tizmagik)

## Bug fixes

* `components` option should accept arrays.
* Do not convert URLs in Markdown to auto links (styleguidist#793).
* Improved accessibility (styleguidist#893 by @gergely-nagy).

---

❤️ Huge thanks to @okonet to help with this release, [CI](styleguidist#904) and [docs](styleguidist#905) improvements.️ ❤️

v6.5.3

Toggle v6.5.3's commit message
Fix: Ensure that all Styleguidist components can be overriden by the …

…user