Skip to content

Commit

Permalink
Merge branch 'master' into addon-storysource-select-story-from-the-panel
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-dv authored Mar 6, 2018
2 parents f6965c0 + cad6153 commit 43057b7
Show file tree
Hide file tree
Showing 27 changed files with 142 additions and 107 deletions.
2 changes: 1 addition & 1 deletion addons/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"axe-core": "^2.6.1",
"babel-runtime": "^6.26.0",
"glamor": "^2.20.40",
"glamorous": "^4.11.6",
"glamorous": "^4.12.0",
"prop-types": "^15.6.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"babel-runtime": "^6.26.0",
"deep-equal": "^1.0.1",
"glamor": "^2.20.40",
"glamorous": "^4.11.6",
"glamorous": "^4.12.0",
"global": "^4.3.2",
"make-error": "^1.3.4",
"prop-types": "^15.6.1",
Expand Down
1 change: 1 addition & 0 deletions addons/background/src/BackgroundPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default class BackgroundPanel extends Component {
this.channel.on('background-unset', () => {
this.setState({ backgrounds: [] });
api.setQueryParams({ background: null });
this.updateIframe('none');
});
}

Expand Down
2 changes: 1 addition & 1 deletion addons/info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@storybook/components": "^3.4.0-alpha.9",
"babel-runtime": "^6.26.0",
"glamor": "^2.20.40",
"glamorous": "^4.11.6",
"glamorous": "^4.12.0",
"global": "^4.3.2",
"marksy": "^6.0.3",
"nested-object-assign": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion addons/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@storybook/components": "^3.4.0-alpha.9",
"babel-runtime": "^6.26.0",
"glamor": "^2.20.40",
"glamorous": "^4.11.6",
"glamorous": "^4.12.0",
"global": "^4.3.2",
"prop-types": "^15.6.1"
},
Expand Down
2 changes: 1 addition & 1 deletion addons/knobs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"global": "^4.3.2",
"insert-css": "^2.0.0",
"lodash.debounce": "^4.0.8",
"moment": "^2.20.1",
"moment": "^2.21.0",
"prop-types": "^15.6.1",
"react-color": "^2.14.0",
"react-datetime": "^2.14.0",
Expand Down
2 changes: 1 addition & 1 deletion addons/storyshots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"glob": "^7.1.2",
"global": "^4.3.2",
"jest-image-snapshot": "^2.3.0",
"jest-specific-snapshot": "^0.4.0",
"jest-specific-snapshot": "^0.5.0",
"puppeteer": "^1.1.1",
"read-pkg-up": "^3.0.0"
},
Expand Down
6 changes: 3 additions & 3 deletions app/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"airbnb-js-shims": "^1.4.1",
"angular2-template-loader": "^0.6.2",
"babel-loader": "^7.1.3",
"babel-plugin-macros": "^2.1.0",
"babel-plugin-macros": "^2.2.0",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-0": "^6.24.1",
"babel-runtime": "^6.23.0",
Expand All @@ -50,12 +50,12 @@
"react-dev-utils": "^5.0.0",
"react-dom": "^16.0.0",
"redux": "^3.6.0",
"sass-loader": "^6.0.6",
"sass-loader": "^6.0.7",
"ts-loader": "^3.5.0",
"uglifyjs-webpack-plugin": "^1.2.2",
"util-deprecate": "^1.0.2",
"webpack": "^3.11.0",
"webpack-hot-middleware": "^2.21.1",
"webpack-hot-middleware": "^2.21.2",
"zone.js": "^0.8.20"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion app/angular/src/server/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import path from 'path';
import webpack from 'webpack';
import Dotenv from 'dotenv-webpack';
import InterpolateHtmlPlugin from 'react-dev-utils/InterpolateHtmlPlugin';
import WatchMissingNodeModulesPlugin from 'react-dev-utils/WatchMissingNodeModulesPlugin';
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import { WatchMissingNodeModulesPlugin, managerPath } from '@storybook/core/server';
import { managerPath } from '@storybook/core/server';

import { includePaths, excludePaths, nodeModulesPaths, loadEnv, nodePaths } from './utils';
import babelLoaderConfig from './babel';
Expand Down
4 changes: 2 additions & 2 deletions app/polymer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@webcomponents/webcomponentsjs": "^1.1.0",
"airbnb-js-shims": "^1.4.1",
"babel-loader": "^7.1.3",
"babel-plugin-macros": "^2.1.0",
"babel-plugin-macros": "^2.2.0",
"babel-plugin-transform-regenerator": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
Expand All @@ -56,7 +56,7 @@
"uglifyjs-webpack-plugin": "^1.2.2",
"util-deprecate": "^1.0.2",
"webpack": "^3.11.0",
"webpack-hot-middleware": "^2.21.1"
"webpack-hot-middleware": "^2.21.2"
},
"devDependencies": {
"nodemon": "^1.17.1"
Expand Down
3 changes: 2 additions & 1 deletion app/polymer/src/server/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import path from 'path';
import webpack from 'webpack';
import Dotenv from 'dotenv-webpack';
import InterpolateHtmlPlugin from 'react-dev-utils/InterpolateHtmlPlugin';
import WatchMissingNodeModulesPlugin from 'react-dev-utils/WatchMissingNodeModulesPlugin';
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import CopyWebpackPlugin from 'copy-webpack-plugin';
import { WatchMissingNodeModulesPlugin, managerPath } from '@storybook/core/server';
import { managerPath } from '@storybook/core/server';

import { includePaths, excludePaths, nodeModulesPaths, loadEnv, nodePaths } from './utils';
import { getPreviewHeadHtml, getManagerHeadHtml } from '../utils';
Expand Down
5 changes: 3 additions & 2 deletions app/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@storybook/core": "^3.4.0-alpha.9",
"@storybook/ui": "^3.4.0-alpha.9",
"babel-loader": "^7.1.3",
"babel-plugin-macros": "^2.1.0",
"babel-plugin-macros": "^2.2.0",
"babel-plugin-syntax-async-functions": "^6.13.0",
"babel-plugin-syntax-trailing-function-commas": "^6.22.0",
"babel-plugin-transform-class-properties": "^6.24.1",
Expand All @@ -53,6 +53,7 @@
"json5": "^0.5.1",
"markdown-loader": "^2.0.2",
"prop-types": "^15.6.1",
"react-dev-utils": "^5.0.0",
"react-native-compat": "^1.0.0",
"react-native-iphone-x-helper": "^1.0.2",
"shelljs": "^0.8.1",
Expand All @@ -62,7 +63,7 @@
"uuid": "^3.2.1",
"webpack": "^3.11.0",
"webpack-dev-middleware": "^1.12.2",
"webpack-hot-middleware": "^2.21.1",
"webpack-hot-middleware": "^2.21.2",
"ws": "^4.1.0"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions app/react-native/src/server/config/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ export const OccurenceOrderPlugin =
export const includePaths = [path.resolve('./')];

export const excludePaths = [path.resolve('./node_modules')];

export const nodeModulesPaths = path.resolve('./node_modules');
4 changes: 3 additions & 1 deletion app/react-native/src/server/config/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import path from 'path';
import webpack from 'webpack';
import WatchMissingNodeModulesPlugin from 'react-dev-utils/WatchMissingNodeModulesPlugin';
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import { OccurenceOrderPlugin, includePaths, excludePaths } from './utils';
import { OccurenceOrderPlugin, includePaths, excludePaths, nodeModulesPaths } from './utils';

const getConfig = options => ({
devtool: '#cheap-module-eval-source-map',
Expand All @@ -25,6 +26,7 @@ const getConfig = options => ({
new OccurenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
new CaseSensitivePathsPlugin(),
new WatchMissingNodeModulesPlugin(nodeModulesPaths),
],
module: {
rules: [
Expand Down
6 changes: 3 additions & 3 deletions app/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@storybook/ui": "^3.4.0-alpha.9",
"airbnb-js-shims": "^1.4.1",
"babel-loader": "^7.1.3",
"babel-plugin-macros": "^2.1.0",
"babel-plugin-macros": "^2.2.0",
"babel-plugin-react-docgen": "^1.8.3",
"babel-plugin-transform-regenerator": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
Expand All @@ -48,7 +48,7 @@
"dotenv-webpack": "^1.5.5",
"find-cache-dir": "^1.0.0",
"glamor": "^2.20.40",
"glamorous": "^4.11.6",
"glamorous": "^4.12.0",
"global": "^4.3.2",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^2.30.1",
Expand All @@ -61,7 +61,7 @@
"uglifyjs-webpack-plugin": "^1.2.2",
"util-deprecate": "^1.0.2",
"webpack": "^3.11.0",
"webpack-hot-middleware": "^2.21.1"
"webpack-hot-middleware": "^2.21.2"
},
"devDependencies": {
"nodemon": "^1.17.1"
Expand Down
3 changes: 2 additions & 1 deletion app/react/src/server/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import path from 'path';
import webpack from 'webpack';
import Dotenv from 'dotenv-webpack';
import InterpolateHtmlPlugin from 'react-dev-utils/InterpolateHtmlPlugin';
import WatchMissingNodeModulesPlugin from 'react-dev-utils/WatchMissingNodeModulesPlugin';
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import { WatchMissingNodeModulesPlugin, managerPath } from '@storybook/core/server';
import { managerPath } from '@storybook/core/server';

import { includePaths, excludePaths, nodeModulesPaths, loadEnv, nodePaths } from './utils';
import babelLoaderConfig from './babel';
Expand Down
4 changes: 2 additions & 2 deletions app/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@storybook/ui": "^3.4.0-alpha.9",
"airbnb-js-shims": "^1.4.1",
"babel-loader": "^7.1.3",
"babel-plugin-macros": "^2.1.0",
"babel-plugin-macros": "^2.2.0",
"babel-plugin-transform-regenerator": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.0",
Expand All @@ -53,7 +53,7 @@
"uglifyjs-webpack-plugin": "^1.2.2",
"util-deprecate": "^1.0.2",
"webpack": "^3.11.0",
"webpack-hot-middleware": "^2.21.1"
"webpack-hot-middleware": "^2.21.2"
},
"devDependencies": {
"nodemon": "^1.17.1",
Expand Down
3 changes: 2 additions & 1 deletion app/vue/src/server/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import path from 'path';
import webpack from 'webpack';
import Dotenv from 'dotenv-webpack';
import InterpolateHtmlPlugin from 'react-dev-utils/InterpolateHtmlPlugin';
import WatchMissingNodeModulesPlugin from 'react-dev-utils/WatchMissingNodeModulesPlugin';
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import { WatchMissingNodeModulesPlugin, managerPath } from '@storybook/core/server';
import { managerPath } from '@storybook/core/server';

import { includePaths, excludePaths, nodeModulesPaths, loadEnv, nodePaths } from './utils';
import { getPreviewHeadHtml, getManagerHeadHtml } from '../utils';
Expand Down
8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"@storybook/react": "^3.3.14",
"babel-loader": "^6.4.1",
"bootstrap": "^3.3.7",
"gatsby": "^1.9.222",
"gatsby": "^1.9.223",
"gatsby-link": "^1.6.38",
"gatsby-plugin-sharp": "^1.6.37",
"gatsby-plugin-sharp": "^1.6.38",
"gatsby-remark-autolink-headers": "^1.4.13",
"gatsby-remark-copy-linked-files": "^1.5.30",
"gatsby-remark-images": "^1.5.53",
"gatsby-remark-images": "^1.5.54",
"gatsby-remark-smartypants": "^1.4.12",
"gatsby-source-filesystem": "^1.5.25",
"gatsby-source-filesystem": "^1.5.26",
"gatsby-transformer-remark": "^1.7.34",
"gh-pages": "^1.1.0",
"global": "^4.3.2",
Expand Down
26 changes: 13 additions & 13 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4410,9 +4410,9 @@ gatsby-module-loader@^1.0.11:
babel-runtime "^6.26.0"
loader-utils "^0.2.16"

gatsby-plugin-sharp@^1.6.37:
version "1.6.37"
resolved "https://registry.yarnpkg.com/gatsby-plugin-sharp/-/gatsby-plugin-sharp-1.6.37.tgz#26801f6a7075508b10aaf1a016acf74b7be20aa2"
gatsby-plugin-sharp@^1.6.38:
version "1.6.38"
resolved "https://registry.yarnpkg.com/gatsby-plugin-sharp/-/gatsby-plugin-sharp-1.6.38.tgz#4906b236b846b383adbd30359493f76cf3bfefbd"
dependencies:
async "^2.1.2"
babel-runtime "^6.26.0"
Expand Down Expand Up @@ -4457,13 +4457,13 @@ gatsby-remark-copy-linked-files@^1.5.30:
probe-image-size "^3.2.0"
unist-util-visit "^1.1.1"

gatsby-remark-images@^1.5.53:
version "1.5.53"
resolved "https://registry.yarnpkg.com/gatsby-remark-images/-/gatsby-remark-images-1.5.53.tgz#9fb3883748e680c88ad6c42598a7e08b64c27f57"
gatsby-remark-images@^1.5.54:
version "1.5.54"
resolved "https://registry.yarnpkg.com/gatsby-remark-images/-/gatsby-remark-images-1.5.54.tgz#d3a30dee378570b301c88bf3a0b8c47adaca0cd6"
dependencies:
babel-runtime "^6.26.0"
cheerio "^1.0.0-rc.2"
gatsby-plugin-sharp "^1.6.37"
gatsby-plugin-sharp "^1.6.38"
is-relative-url "^2.0.0"
lodash "^4.17.4"
slash "^1.0.0"
Expand All @@ -4478,9 +4478,9 @@ gatsby-remark-smartypants@^1.4.12:
retext-smartypants "^2.0.0"
unist-util-visit "^1.1.1"

gatsby-source-filesystem@^1.5.25:
version "1.5.25"
resolved "https://registry.yarnpkg.com/gatsby-source-filesystem/-/gatsby-source-filesystem-1.5.25.tgz#51c08f9812d3d8554721df4e32a0cdd12eccb0cd"
gatsby-source-filesystem@^1.5.26:
version "1.5.26"
resolved "https://registry.yarnpkg.com/gatsby-source-filesystem/-/gatsby-source-filesystem-1.5.26.tgz#1901649fddf31e8fab35b94aefb9e16af81f01a0"
dependencies:
babel-cli "^6.26.0"
babel-runtime "^6.26.0"
Expand Down Expand Up @@ -4519,9 +4519,9 @@ gatsby-transformer-remark@^1.7.34:
unist-util-select "^1.5.0"
unist-util-visit "^1.1.1"

gatsby@^1.9.222:
version "1.9.222"
resolved "https://registry.yarnpkg.com/gatsby/-/gatsby-1.9.222.tgz#691af7d75f3baa4a15610d9c636eb36a050c140c"
gatsby@^1.9.223:
version "1.9.223"
resolved "https://registry.yarnpkg.com/gatsby/-/gatsby-1.9.223.tgz#1bf9416cd6a6ceccb1f74da7f0eb10f16fb8010b"
dependencies:
async "^2.1.2"
babel-code-frame "^6.22.0"
Expand Down
4 changes: 2 additions & 2 deletions lib/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"babel-preset-env": "^1.6.0",
"babel-register": "^6.26.0",
"babel-runtime": "^6.26.0",
"chalk": "^2.3.1",
"chalk": "^2.3.2",
"child-process-promise": "^2.2.1",
"commander": "^2.14.1",
"cross-spawn": "^6.0.4",
"cross-spawn": "^6.0.5",
"jscodeshift": "^0.4.1",
"json5": "^0.5.1",
"latest-version": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion lib/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"dependencies": {
"glamor": "^2.20.40",
"glamorous": "^4.11.6",
"glamorous": "^4.12.0",
"prop-types": "^15.6.1"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions lib/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@storybook/ui": "^3.4.0-alpha.9",
"autoprefixer": "^7.2.6",
"babel-runtime": "^6.26.0",
"chalk": "^2.3.1",
"chalk": "^2.3.2",
"commander": "^2.14.1",
"css-loader": "^0.28.10",
"dotenv": "^5.0.1",
Expand All @@ -45,6 +45,6 @@
"url-loader": "^0.6.2",
"webpack": "^3.11.0",
"webpack-dev-middleware": "^1.12.2",
"webpack-hot-middleware": "^2.21.1"
"webpack-hot-middleware": "^2.21.2"
}
}
2 changes: 0 additions & 2 deletions lib/core/server.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
const assign = require('babel-runtime/core-js/object/assign').default;
const defaultWebpackConfig = require('./dist/server/config/defaults/webpack.config');
const WatchMissingNodeModulesPlugin = require('./dist/server/config/WatchMissingNodeModulesPlugin');
const buildStatic = require('./dist/server/build-static');
const buildDev = require('./dist/server/build-dev');

module.exports = assign({}, defaultWebpackConfig, buildStatic, buildDev, {
WatchMissingNodeModulesPlugin,
managerPath: require.resolve('./dist/client/manager'),
});
Loading

0 comments on commit 43057b7

Please sign in to comment.