Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
danielduan authored Jul 26, 2017
2 parents 52b4dd1 + 548a5bf commit 5a2d0b6
Show file tree
Hide file tree
Showing 31 changed files with 110 additions and 101 deletions.
3 changes: 3 additions & 0 deletions .eslintrc-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ module.exports = {
'react/react-in-jsx-scope': ignore,
'react/jsx-filename-extension': ignore,
'jsx-a11y/accessible-emoji': ignore,
'jsx-a11y/href-no-hash': ignore,
'jsx-a11y/label-has-for': ignore,
'jsx-a11y/anchor-is-valid': ['warn', { aspects: ['invalidHref'] }],
'react/no-unescaped-entities': ignore,
},
};
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ module.exports = {
},
],
'jsx-a11y/accessible-emoji': ignore,
'jsx-a11y/href-no-hash': ignore,
'jsx-a11y/label-has-for': ignore,
'jsx-a11y/anchor-is-valid': ['warn', { aspects: ['invalidHref'] }],
'react/no-unescaped-entities': ignore,
},
};
8 changes: 4 additions & 4 deletions addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"uuid": "^3.1.0"
},
"devDependencies": {
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-test-renderer": "^15.5.4",
"shelljs": "^0.7.7"
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-test-renderer": "^15.6.1",
"shelljs": "^0.7.8"
},
"peerDependencies": {
"react": "*",
Expand Down
8 changes: 4 additions & 4 deletions addons/comments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
"@kadira/storybook-database-cloud": "*",
"@kadira/storybook-deployer": "*",
"git-url-parse": "^6.2.2",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-test-renderer": "^15.5.4",
"shelljs": "^0.7.7"
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-test-renderer": "^15.6.1",
"shelljs": "^0.7.8"
},
"peerDependencies": {
"react": "*"
Expand Down
4 changes: 2 additions & 2 deletions addons/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"uuid": "^3.1.0"
},
"devDependencies": {
"react": "^15.5.4",
"react-dom": "^15.5.4"
"react": "^15.6.1",
"react-dom": "^15.6.1"
},
"peerDependencies": {
"react": "*"
Expand Down
6 changes: 3 additions & 3 deletions addons/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"prop-types": "^15.5.10"
},
"devDependencies": {
"react": "^15.5.4",
"react-dom": "^15.5.4",
"shelljs": "^0.7.7"
"react": "^15.6.1",
"react-dom": "^15.6.1",
"shelljs": "^0.7.8"
},
"peerDependencies": {
"react": "*"
Expand Down
6 changes: 3 additions & 3 deletions addons/info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
},
"devDependencies": {
"git-url-parse": "^6.2.2",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-test-renderer": "^15.5.4"
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-test-renderer": "^15.6.1"
},
"peerDependencies": {
"react": "*"
Expand Down
4 changes: 2 additions & 2 deletions addons/knobs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"@types/react": "^15.0.21",
"git-url-parse": "^6.2.2",
"raw-loader": "^0.5.1",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"style-loader": "^0.17.0",
"typescript": "^2.2.2",
"typescript-definition-tester": "^0.0.5"
Expand Down
6 changes: 3 additions & 3 deletions addons/links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"@storybook/addons": "^3.1.6"
},
"devDependencies": {
"react": "^15.5.4",
"react-dom": "^15.5.4",
"shelljs": "^0.7.7"
"react": "^15.6.1",
"react-dom": "^15.6.1",
"shelljs": "^0.7.8"
},
"peerDependencies": {
"react": "*",
Expand Down
4 changes: 2 additions & 2 deletions addons/notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
},
"devDependencies": {
"git-url-parse": "^6.2.2",
"react": "^15.5.4",
"react": "^15.6.1",
"react-addons-test-utils": "^15.5.1",
"react-dom": "^15.5.4"
"react-dom": "^15.6.1"
},
"peerDependencies": {
"react": "*"
Expand Down
8 changes: 4 additions & 4 deletions addons/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"@storybook/addons": "^3.1.6"
},
"devDependencies": {
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-test-renderer": "^15.5.4",
"shelljs": "^0.7.7"
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-test-renderer": "^15.6.1",
"shelljs": "^0.7.8"
},
"peerDependencies": {
"react": "*",
Expand Down
6 changes: 3 additions & 3 deletions addons/storyshots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"react": "^15.5.4",
"react-dom": "^15.5.4"
"react": "^15.6.1",
"react-dom": "^15.6.1"
},
"peerDependencies": {
"@storybook/addons": "^3.1.6",
"@storybook/channels": "^3.1.6",
"@storybook/react": "^3.1.9",
"babel-core": "^6.24.1",
"babel-core": "^6.25.0",
"react": "*",
"react-test-renderer": "*"
}
Expand Down
8 changes: 4 additions & 4 deletions app/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@storybook/channel-websocket": "^3.1.6",
"@storybook/ui": "^3.1.9",
"autoprefixer": "^7.1.1",
"babel-core": "^6.24.1",
"babel-core": "^6.25.0",
"babel-loader": "^7.0.0",
"babel-plugin-syntax-async-functions": "^6.13.0",
"babel-plugin-syntax-trailing-function-commas": "^6.22.0",
Expand All @@ -56,7 +56,7 @@
"json-loader": "^0.5.4",
"json5": "^0.5.1",
"postcss-loader": "^2.0.5",
"shelljs": "^0.7.7",
"shelljs": "^0.7.8",
"style-loader": "^0.17.0",
"url-loader": "^0.5.8",
"util-deprecate": "^1.0.2",
Expand All @@ -68,8 +68,8 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-native": "^0.43.3"
},
"peerDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions app/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@storybook/ui": "^3.1.9",
"airbnb-js-shims": "^1.1.1",
"autoprefixer": "^7.1.1",
"babel-core": "^6.24.1",
"babel-core": "^6.25.0",
"babel-loader": "^7.0.0",
"babel-plugin-react-docgen": "^1.5.0",
"babel-preset-es2015": "^6.24.1",
Expand Down Expand Up @@ -63,7 +63,7 @@
"redux": "^3.6.0",
"request": "^2.81.0",
"serve-favicon": "^2.4.3",
"shelljs": "^0.7.7",
"shelljs": "^0.7.8",
"style-loader": "^0.17.0",
"url-loader": "^0.5.8",
"util-deprecate": "^1.0.2",
Expand All @@ -76,8 +76,8 @@
"babel-cli": "^6.24.1",
"mock-fs": "^4.3.0",
"nodemon": "^1.11.0",
"react": "^15.5.4",
"react-dom": "^15.5.4"
"react": "^15.6.1",
"react-dom": "^15.6.1"
},
"peerDependencies": {
"react": "*",
Expand Down
6 changes: 3 additions & 3 deletions docs/components/Homepage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ import Footer from '../Footer';
const Homepage = ({ users }) =>
<div className="container">
<Helmet title="Storybook - UI dev environment you'll love to use" />
{/* <Header currentSection="home" />*/}
{/* <Header currentSection="home" /> */}
<Heading />
<Demo />
{/* <Platforms />*/}
{/* <Platforms /> */}
<MainLinks />
<UsedBy users={users} />
{/* <Featured featuredStorybooks={featuredStorybooks} />*/}
{/* <Featured featuredStorybooks={featuredStorybooks} /> */}
<Footer />
</div>;

Expand Down
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@storybook/addons": "latest",
"@storybook/react": "latest",
"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
"babel-core": "^6.25.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.23.0",
"babel-preset-env": "^1.4.0",
Expand All @@ -44,9 +44,9 @@
"markdown-it-replace-link": "^1.0.1",
"marked": "^0.3.6",
"prop-types": "^15.5.10",
"react": "^15.5.4",
"react": "^15.6.1",
"react-document-title": "^2.0.3",
"react-dom": "^15.5.4",
"react-dom": "^15.6.1",
"react-helmet": "^5.0.3",
"react-motion": "^0.1.0",
"react-responsive-grid": "^0.3.3",
Expand Down
4 changes: 2 additions & 2 deletions examples/cra-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"format-json": "^1.0.3",
"global": "^4.3.2",
"prop-types": "^15.5.10",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"uuid": "^3.1.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/react-native-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"@storybook/channel-postmessage": "file:../../lib/channel-postmessage",
"@storybook/react-native": "file:../../app/react-native",
"@storybook/ui": "file:../../lib/ui",
"react-dom": "^15.5.4"
"react-dom": "^15.6.1"
}
}
4 changes: 2 additions & 2 deletions examples/test-cra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"dependencies": {
"global": "^4.3.2",
"prop-types": "^15.5.10",
"react": "^15.5.4",
"react-dom": "^15.5.4"
"react": "^15.6.1",
"react-dom": "^15.6.1"
},
"devDependencies": {
"@storybook/addon-actions": "file:../../packs/storybook-addon-actions.tgz",
Expand Down
8 changes: 7 additions & 1 deletion examples/test-cra/src/stories/ComponentWithRef.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ class ComponentWithRef extends Component {
}
scrollWidth = 0;
render() {
return <div ref={r => (this.ref = r)} />;
return (
<div
ref={r => {
this.ref = r;
}}
/>
);
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/addons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"prepublish": "node ../../scripts/prepublish.js"
},
"devDependencies": {
"shelljs": "^0.7.7"
"shelljs": "^0.7.8"
}
}
11 changes: 3 additions & 8 deletions lib/addons/src/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
function channelError() {
throw new Error(
'Accessing nonexistent addons channel, see https://storybook.js.org/basics/faq/#why-is-there-no-addons-channel'
);
}

export class AddonStore {
constructor() {
this.loaders = {};
this.panels = {};
// this.channel should get overwritten by setChannel if package versions are
// correct and AddonStore is a proper singleton. If not, throw an error.
this.channel = { on: channelError, emit: channelError };
// correct and AddonStore is a proper singleton. If not, this will be null
// (currently required by @storybook/react-native getStorybookUI)
this.channel = null;
this.preview = null;
this.database = null;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/channel-postmessage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"json-stringify-safe": "^5.0.1"
},
"devDependencies": {
"shelljs": "^0.7.7"
"shelljs": "^0.7.8"
}
}
2 changes: 1 addition & 1 deletion lib/channel-websocket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"global": "^4.3.2"
},
"devDependencies": {
"shelljs": "^0.7.7"
"shelljs": "^0.7.8"
}
}
2 changes: 1 addition & 1 deletion lib/channels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"prepublish": "node ../../scripts/prepublish.js"
},
"devDependencies": {
"shelljs": "^0.7.7"
"shelljs": "^0.7.8"
}
}
2 changes: 1 addition & 1 deletion lib/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"json5": "^0.5.1",
"merge-dirs": "^0.2.1",
"opencollective": "^1.0.3",
"shelljs": "^0.7.7",
"shelljs": "^0.7.8",
"update-notifier": "^2.1.0"
}
}
2 changes: 1 addition & 1 deletion lib/codemod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"jscodeshift": "^0.3.30"
},
"devDependencies": {
"shelljs": "^0.7.7"
"shelljs": "^0.7.8"
}
}
4 changes: 2 additions & 2 deletions lib/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"prop-types": "^15.5.10"
},
"devDependencies": {
"react": "^15.5.4",
"react-dom": "^15.5.4"
"react": "^15.6.1",
"react-dom": "^15.6.1"
},
"peerDependencies": {
"react": "*",
Expand Down
6 changes: 3 additions & 3 deletions lib/ui/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"babel-core": "^6.24.1",
"babel-core": "^6.25.0",
"babel-eslint": "^7.2.2",
"babel-loader": "^6.4.1",
"babel-preset-es2015": "^6.24.1",
Expand All @@ -19,7 +19,7 @@
},
"dependencies": {
"keycode": "^2.1.8",
"react": "^15.5.4",
"react-dom": "^15.5.4"
"react": "^15.6.1",
"react-dom": "^15.6.1"
}
}
Loading

0 comments on commit 5a2d0b6

Please sign in to comment.