Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into upgrade-events
Browse files Browse the repository at this point in the history
# Conflicts:
#	lib/core/package.json
  • Loading branch information
Hypnosphi committed Feb 27, 2018
2 parents 2b11bd6 + e000d4a commit 7516d7f
Show file tree
Hide file tree
Showing 115 changed files with 502 additions and 1,097 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ const ignore = 0;
module.exports = {
root: true,
extends: [
'eslint-config-airbnb',
'airbnb',
'plugin:jest/recommended',
'plugin:import/react-native',
'prettier',
'prettier/react',
],
plugins: ['prettier', 'jest', 'react', 'json'],
plugins: ['prettier', 'jest', 'import', 'react', 'jsx-a11y', 'json'],
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
Expand Down
2 changes: 1 addition & 1 deletion ADDONS_SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
|[info](addons/info) |+| | | | |
|[jest](addons/jest) |+| | | | |
|[knobs](addons/knobs) |+|+|+|+|+|
|[links](addons/links) |+|+|+|+| |
|[links](addons/links) |+|+|+|+|+|
|[notes](addons/notes) |+| |+|+|+|
|[options](addons/options) |+|+|+|+|+|
|[storyshots](addons/storyshots) |+|+|+|+| |
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
- Addon Storysource improvements [#3040](https://github.com/storybooks/storybook/pull/3040)
- #3029 use @storybook/podda to fix npm engine version in podda [#3033](https://github.com/storybooks/storybook/pull/3033)
- Add moduleMetdata decorator for supplying common Angular metadata [#2959](https://github.com/storybooks/storybook/pull/2959)
- [Addon Storysource] Add auto scrolling to the selected story [#3025](https://github.com/storybooks/storybook/pull/3025)
- `Addon Storysource` Add auto scrolling to the selected story [#3025](https://github.com/storybooks/storybook/pull/3025)
- add GitHub flavored markdown notes [#2946](https://github.com/storybooks/storybook/pull/2946)
- Added beforeScreenshot config option to addons/storyshots, to allow testing of components with mounting animations [#2972](https://github.com/storybooks/storybook/pull/2972)
- Enable groupId option for knobs to be organized into sub panels. [#2661](https://github.com/storybooks/storybook/pull/2661)
Expand Down
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build Status on CircleCI](https://circleci.com/gh/storybooks/storybook.svg?style=shield)](https://circleci.com/gh/storybooks/storybook)
[![CodeFactor](https://www.codefactor.io/repository/github/storybooks/storybook/badge)](https://www.codefactor.io/repository/github/storybooks/storybook)
[![Known Vulnerabilities](https://snyk.io/test/github/storybooks/storybook/8f36abfd6697e58cd76df3526b52e4b9dc894847/badge.svg)](https://snyk.io/test/github/storybooks/storybook/8f36abfd6697e58cd76df3526b52e4b9dc894847)
[![BCH compliance](https://bettercodehub.com/edge/badge/storybooks/storybook)](https://bettercodehub.com/results/storybooks/storybook) [![codecov](https://codecov.io/gh/storybooks/storybook/branch/master/graph/badge.svg)](https://codecov.io/gh/storybooks/storybook)
[![BCH compliance](https://bettercodehub.com/edge/badge/storybooks/storybook)](https://bettercodehub.com/results/storybooks/storybook) [![codecov](https://codecov.io/gh/storybooks/storybook/branch/master/graph/badge.svg)](https://codecov.io/gh/storybooks/storybook)
[![Storybook Slack](https://now-examples-slackin-rrirkqohko.now.sh/badge.svg)](https://now-examples-slackin-rrirkqohko.now.sh/)
[![Backers on Open Collective](https://opencollective.com/storybook/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/storybook/sponsors/badge.svg)](#sponsors)

Expand Down Expand Up @@ -80,15 +80,21 @@ For additional help, join us [in our Slack](https://now-examples-slackin-rrirkqo

### Addons

- [storyshots](addons/storyshots) - Easy snapshot testing for storybook
- [actions](addons/actions/) - Log actions as users interact with components in storybook
- [links](addons/links/) - Create links between stories
- [comments](addons/comments/) - Comment on storybook stories
- [a11y](addons/a11y/) - Test components for user accessibility in Storybook
- [actions](addons/actions/) - Log actions as users interact with components in the Storybook UI
- [background](addons/background/) - Let users choose backgrounds in the Storybook UI
- [centered](addons/centered/) - Center the alignment of your components within the Storybook UI
- [events](addons/events/) - Interactively fire events to components that respond to EventEmitter
- [graphql](addons/graphql/) - Query a GraphQL server within Storybook stories
- [info](addons/info/) - Annotate stories with extra component usage information
- [jest](addons/jest/) - View the results of components' unit tests in Storybook
- [knobs](addons/knobs/) - Interactively edit component prop data in the Storybook UI
- [notes](addons/notes/) - Annotate storybook stories with notes
- [options](addons/options/) - Customize the storybook UI in code
- [links](addons/links/) - Create links between stories
- [notes](addons/notes/) - Annotate Storybook stories with notes
- [options](addons/options/) - Customize the Storybook UI in code
- [storyshots](addons/storyshots/) - Easy snapshot testing for components in Storybook
- [storysource](addons/storysource/) - View the code of your stories within the Storybook UI
- [viewport](addons/viewport/) - Change display sizes and layouts for responsive components using Storybook

See [Addon / Framework Support Table](ADDONS_SUPPORT.md)

Expand Down
4 changes: 3 additions & 1 deletion addons/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
"dependencies": {
"@storybook/components": "^3.4.0-alpha.9",
"axe-core": "^2.6.1",
"babel-runtime": "^6.26.0",
"glamor": "^2.20.40",
"glamorous": "^4.11.6",
"prop-types": "^15.6.0"
"prop-types": "^15.6.1"
},
"devDependencies": {
"@storybook/react": "^3.4.0-alpha.9",
Expand Down
4 changes: 3 additions & 1 deletion addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
},
"dependencies": {
"@storybook/components": "^3.4.0-alpha.9",
"babel-runtime": "^6.26.0",
"deep-equal": "^1.0.1",
"glamor": "^2.20.40",
"glamorous": "^4.11.6",
"global": "^4.3.2",
"make-error": "^1.3.4",
"prop-types": "^15.6.0",
"prop-types": "^15.6.1",
"react-inspector": "^2.2.2",
"uuid": "^3.2.1"
},
Expand Down
6 changes: 3 additions & 3 deletions addons/background/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
[![Build Status on CircleCI](https://circleci.com/gh/storybooks/storybook.svg?style=shield)](https://circleci.com/gh/storybooks/storybook)
[![CodeFactor](https://www.codefactor.io/repository/github/storybooks/storybook/badge)](https://www.codefactor.io/repository/github/storybooks/storybook)
[![Known Vulnerabilities](https://snyk.io/test/github/storybooks/storybook/8f36abfd6697e58cd76df3526b52e4b9dc894847/badge.svg)](https://snyk.io/test/github/storybooks/storybook/8f36abfd6697e58cd76df3526b52e4b9dc894847)
[![BCH compliance](https://bettercodehub.com/edge/badge/storybooks/storybook)](https://bettercodehub.com/results/storybooks/storybook) [![codecov](https://codecov.io/gh/storybooks/storybook/branch/master/graph/badge.svg)](https://codecov.io/gh/storybooks/storybook)
[![BCH compliance](https://bettercodehub.com/edge/badge/storybooks/storybook)](https://bettercodehub.com/results/storybooks/storybook) [![codecov](https://codecov.io/gh/storybooks/storybook/branch/master/graph/badge.svg)](https://codecov.io/gh/storybooks/storybook)
[![Storybook Slack](https://now-examples-slackin-rrirkqohko.now.sh/badge.svg)](https://now-examples-slackin-rrirkqohko.now.sh/)
[![Backers on Open Collective](https://opencollective.com/storybook/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/storybook/sponsors/badge.svg)](#sponsors)

* * *

Storybook Centered Decorator can be used to center components inside the preview in [Storybook](https://storybook.js.org).
Storybook Background Addon can be used to change background colors inside the preview in [Storybook](https://storybook.js.org).

[Framework Support](https://github.com/storybooks/storybook/blob/master/ADDONS_SUPPORT.md)

Expand All @@ -18,7 +18,7 @@ Storybook Centered Decorator can be used to center components inside the preview
## Installation

```sh
npm i --save @storybook/addon-backgrounds
npm i -D @storybook/addon-backgrounds
```

## Configuration
Expand Down
3 changes: 2 additions & 1 deletion addons/background/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"babel-runtime": "^6.26.0",
"global": "^4.3.2",
"prop-types": "^15.6.0"
"prop-types": "^15.6.1"
},
"peerDependencies": {
"@storybook/addons": "^3.3.0",
Expand Down
1 change: 1 addition & 0 deletions addons/centered/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"babel-runtime": "^6.26.0",
"global": "^4.3.2"
},
"devDependencies": {
Expand Down
Binary file removed addons/events/docs/.DS_Store
Binary file not shown.
5 changes: 2 additions & 3 deletions addons/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
"dependencies": {
"babel-runtime": "^6.26.0",
"format-json": "^1.0.3",
"prop-types": "^15.6.0",
"react-textarea-autosize": "^5.2.1",
"uuid": "^3.2.1"
"prop-types": "^15.6.1",
"react-textarea-autosize": "^5.2.1"
},
"peerDependencies": {
"@storybook/addons": "^3.3.0",
Expand Down
2 changes: 1 addition & 1 deletion addons/events/src/components/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class Events extends Component {
const { events } = this.state;
return (
<div style={styles.wrapper}>
{events.map(event => <Event key={event.id} {...event} onEmit={this.onEmit} />)}
{events.map(event => <Event key={event.name} {...event} onEmit={this.onEmit} />)}
</div>
);
}
Expand Down
3 changes: 2 additions & 1 deletion addons/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
"storybook": "start-storybook -p 9001"
},
"dependencies": {
"babel-runtime": "^6.26.0",
"global": "^4.3.2",
"graphiql": "^0.11.11",
"graphql": "^0.13.1",
"prop-types": "^15.6.0"
"prop-types": "^15.6.1"
},
"devDependencies": {
"@storybook/react": "^3.4.0-alpha.9"
Expand Down
3 changes: 2 additions & 1 deletion addons/info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
"@storybook/client-logger": "^3.4.0-alpha.9",
"@storybook/components": "^3.4.0-alpha.9",
"babel-runtime": "^6.26.0",
"glamor": "^2.20.40",
"glamorous": "^4.11.6",
"global": "^4.3.2",
"marksy": "^6.0.3",
"nested-object-assign": "^1.0.1",
"prop-types": "^15.6.0",
"prop-types": "^15.6.1",
"react-addons-create-fragment": "^15.5.3",
"util-deprecate": "^1.0.2"
},
Expand Down
4 changes: 1 addition & 3 deletions addons/info/src/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ containing **bold**, *cursive* text, \`code\` and [a link](https://github.com)"
>
<div>
<h1>
function func(x) {
return x + 1;
}
function func(x) {return x + 1;}
</h1>
<h2>
[object Object]
Expand Down
3 changes: 2 additions & 1 deletion addons/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
},
"dependencies": {
"@storybook/components": "^3.4.0-alpha.9",
"babel-runtime": "^6.26.0",
"glamor": "^2.20.40",
"glamorous": "^4.11.6",
"global": "^4.3.2",
"prop-types": "^15.6.0"
"prop-types": "^15.6.1"
},
"peerDependencies": {
"@storybook/addons": "^3.3.0",
Expand Down
2 changes: 1 addition & 1 deletion addons/knobs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"insert-css": "^2.0.0",
"lodash.debounce": "^4.0.8",
"moment": "^2.20.1",
"prop-types": "^15.6.0",
"prop-types": "^15.6.1",
"react-color": "^2.11.4",
"react-datetime": "^2.14.0",
"react-textarea-autosize": "^5.2.1",
Expand Down
6 changes: 3 additions & 3 deletions addons/links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
},
"dependencies": {
"@storybook/components": "^3.4.0-alpha.9",
"babel-runtime": "^6.26.0",
"global": "^4.3.2",
"prop-types": "^15.5.10"
"prop-types": "^15.6.1"
},
"devDependencies": {
"@storybook/react": "^3.4.0-alpha.9",
"enzyme": "^3.3.0",
"react": "^16.1.0",
"react-dom": "^16.1.0",
"shelljs": "^0.8.1"
"react-dom": "^16.1.0"
},
"peerDependencies": {
"@storybook/addons": "^3.3.0",
Expand Down
4 changes: 2 additions & 2 deletions addons/notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
},
"dependencies": {
"babel-runtime": "^6.26.0",
"marked": "^0.3.16",
"prop-types": "^15.6.0",
"marked": "^0.3.17",
"prop-types": "^15.6.1",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions addons/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"prepare": "node ../../scripts/prepare.js",
"storybook": "start-storybook -p 9001"
},
"dependencies": {
"babel-runtime": "^6.26.0"
},
"devDependencies": {
"@storybook/react": "^3.4.0-alpha.9"
},
Expand Down
6 changes: 0 additions & 6 deletions addons/storyshots/.babelrc

This file was deleted.

10 changes: 1 addition & 9 deletions addons/storyshots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,15 @@
"global": "^4.3.2",
"jest-image-snapshot": "^2.3.0",
"jest-specific-snapshot": "^0.3.0",
"prop-types": "^15.6.0",
"puppeteer": "^1.1.1",
"read-pkg-up": "^3.0.0"
},
"devDependencies": {
"@storybook/addon-actions": "^3.4.0-alpha.9",
"@storybook/addon-links": "^3.4.0-alpha.9",
"@storybook/addons": "^3.4.0-alpha.9",
"@storybook/react": "^3.4.0-alpha.9",
"babel-cli": "^6.26.0",
"babel-jest": "^22.4.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"enzyme-to-json": "^3.3.1",
"jest": "^22.4.2",
"jest-cli": "^22.4.2",
"react": "^16.1.0",
"react-dom": "^16.1.0"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';

import { storiesOf } from '@storybook/react'; // eslint-disable-line
import { linkTo } from '@storybook/addon-links'; // eslint-disable-line
import { storiesOf } from '@storybook/react';
import { linkTo } from '@storybook/addon-links';
import { Welcome } from '@storybook/react/demo';

storiesOf('Welcome', module).add('to Storybook', () => <Welcome showApp={linkTo('Button')} />);
9 changes: 5 additions & 4 deletions addons/storysource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"acorn": "^5.3.0",
"acorn": "^5.5.0",
"acorn-es7": "^0.1.0",
"acorn-jsx": "^4.1.1",
"acorn-stage3": "^0.5.0",
"acorn-stage3": "^0.6.0",
"babel-runtime": "^6.26.0",
"estraverse": "^4.2.0",
"loader-utils": "^1.1.0",
"prettier": "^1.10.2",
"prop-types": "^15.5.10",
"prettier": "^1.11.0",
"prop-types": "^15.6.1",
"react-syntax-highlighter": "^7.0.1"
},
"peerDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion addons/viewport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
},
"dependencies": {
"@storybook/components": "^3.4.0-alpha.9",
"babel-runtime": "^6.26.0",
"global": "^4.3.2",
"prop-types": "^15.5.10"
"prop-types": "^15.6.1"
},
"peerDependencies": {
"@storybook/addons": "^3.3.0",
Expand Down
3 changes: 0 additions & 3 deletions app/angular/.babelrc

This file was deleted.

Loading

0 comments on commit 7516d7f

Please sign in to comment.