Skip to content

Tags: poteirard/react-styleguidist

Tags

v11.0.5

Toggle v11.0.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix: Fix missing FlowType enum values in prop description (styleguidi…

…st#1571)

In `ef4c109b`, the file `PropsRenderer.js` (located at
`src/client/rsg-components/Props/PropsRenderer.js`) was removed. In
`PropsRenderer.js`, the `renderExtra` method checked whether `getType`
for the argument to `renderExtra` was present:

```es6
function renderExtra(prop) {
  const type = getType(prop);
  if (!type) {
    return null;
  }
  ...
}
```

However, in `ef4c109b`, this method was replaced with `renderExtra.tsx`
and the condition was changed to:

```typescript
export default function renderExtra(prop: PropDescriptorWithFlow): React.ReactNode {
  const type = getType(prop);
  if (!prop.type || !type) {
    return null;
  }
```

Unfortunately, this extra condition has resulted in this method always
returning `null` for a Flow typed prop as `prop.type` is always `null`
as `prop.type` is never set.

This commit reverts the condition to what it was before the migration to
TypeScript.

v11.0.4

Toggle v11.0.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix: Correct Usage of CleanWebpackPlugin (styleguidist#1565)

I was still using an option that no longer exists. Fixed to mimic the original behavior. The option `root` was removed in v2, but wasn't changed during the upgrade in styleguidist@9804259

It's deleting everything in the styleguidistDir folder which isn't the way it was before.
After this change it only deletes files in build/.

v11.0.3

Toggle v11.0.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix: Sections with href were always open in new tab, regardless of th…

…e external option (styleguidist#1564)

Fixes styleguidist#1559

v11.0.2

Toggle v11.0.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix: Prop types are missing for TypeScript (styleguidist#1563)

Closes styleguidist#1551

v11.0.1

Toggle v11.0.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix: Exported TypeScript typings (styleguidist#1550)

v11.0.0

Toggle v11.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Breaking: Drop Node.js 8 support (styleguidist#1545)

The minimum supported Node.js version is 10.

v10.6.2

Toggle v10.6.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix: Open all sections when searching (styleguidist#1537)

When searching with the option tocmode: 'collapse' the sections do not open automatically (because they keep their state). The found section or page is therefore not visible nor clickable.

v10.6.1

Toggle v10.6.1's commit message
Build: Make sure compile works on windows (styleguidist#1522)

v10.6.0

Toggle v10.6.0's commit message
Build(deps): Bump lodash from 4.17.11 to 4.17.13 in /examples/webpack (

…styleguidist#1518)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.13.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.11...4.17.13)

Signed-off-by: dependabot[bot] <[email protected]>

v10.5.0

Toggle v10.5.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
New: Add hot module reloading for theme and styles (styleguidist#1489)

* make theme hmr loadable

* try making a theme hmr tool

* add an example for it

* add styles in the mix

* fix example

* fix typings

* fix modulenamemapper fo jest tests

* update snapshots

* Add tests for the new behavior

* prevent eslint from being mean to jest mock

* remove rsg styles type

* reorder imports

* make better tests

* make example filenames more explicit

* remove eslint exception in example

* fix webpack and add comments

* update snapshots

* add tests for make webpack config

* augment coverage over make-webpack-config

* remove useless ependency

* document styles and themes hmr

* fix typings

* remove eslintrc changes

* fix resolving of path from configDir

* update docs and example

* remove compile change

* make better style file path

* cookbook clarification

* fix typings

* fix typo in docs

Co-Authored-By: Artem Sapegin <[email protected]>

* Update case in the note docs

Co-Authored-By: Artem Sapegin <[email protected]>

* remove added chevrons in cookbook

* update examples package and lock

* remove modifications from webpack config

* clean eslint changes

* simplify themed example

* fix redme for left button

* update themed

* improve types

*  use the styleguide-loader instead

* remove all chanegs from make webpack config

* make the HMR of theme work

* optimize performance when not using  style files

* rollback unwanted changes to eslint

* update whitespace

* replace tabs with spaces

* fix es5 export of styles and themes

* update createssheet tests

* remove unwanted changes

* fix optimization

* add various comments

* add tests on styleguide-loader

* more code coverage

* replace RE by regExp in tests

Co-Authored-By: Artem Sapegin <[email protected]>

* complete the test clarification

* remove custom state documentation

* move all changes to styleguide-loader

* avoid compiling test files

* add comments regarding optimization

* fix tests and styleguide loader

* can't deal with default this way...

* resolve es6 in loader side

* ue has-sum intead of custom md5

* better case conventions for constants

* rename resolve esmodule

* fix typings

* rename es6 test file

* use destructured theme and styles

* fix test name

* fix types

* remove hmrStyles

* update comments of styleguide-loader

* add comments and test

* update comments

Co-authored-by: Artem Sapegin <[email protected]>