diff --git a/addons/actions/package.json b/addons/actions/package.json index ee42c14dd09..a3f0d64017f 100644 --- a/addons/actions/package.json +++ b/addons/actions/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-actions", - "version": "3.1.6", + "version": "3.2.0-alpha.7", "description": "Action Logger addon for storybook", "keywords": [ "storybook" @@ -25,7 +25,7 @@ "deep-equal": "^1.0.1", "json-stringify-safe": "^5.0.1", "prop-types": "^15.5.8", - "react-inspector": "^2.0.0", + "react-inspector": "^2.1.1", "uuid": "^3.1.0" }, "devDependencies": { diff --git a/addons/knobs/README.md b/addons/knobs/README.md index 9d5d53f8cd7..4a2947f0dd3 100644 --- a/addons/knobs/README.md +++ b/addons/knobs/README.md @@ -230,6 +230,17 @@ const defaultValue = new Date('Jan 20 2017'); const value = date(label, defaultValue); ``` +### withKnobs vs withKnobsOptions + +If you feel like this addon is not performing well enough there is an option to use `withKnobsOptions` instead of `withKnobs`. +Usage: +``` +story.addDecorator(withKnobsOptions({ + debounce: { wait: number, leading: boolean}, // Same as lodash debounce. + timestamps: true // Doesn't emit events while user is typing. +})); +``` + ## Typescript If you are using typescript, make sure you have the type definitions installed for the following libs: diff --git a/addons/knobs/package.json b/addons/knobs/package.json index 54a85cf920d..3769785eb9d 100644 --- a/addons/knobs/package.json +++ b/addons/knobs/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-knobs", - "version": "3.2.0-alpha.5", + "version": "3.2.0-alpha.7", "description": "Storybook Addon Prop Editor Component", "license": "MIT", "main": "dist/index.js", diff --git a/addons/storyshots/package.json b/addons/storyshots/package.json index 0bec738d32f..e066b92c25c 100644 --- a/addons/storyshots/package.json +++ b/addons/storyshots/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-storyshots", - "version": "3.2.0-alpha.5", + "version": "3.2.0-alpha.7", "description": "StoryShots is a Jest Snapshot Testing Addon for Storybook.", "license": "MIT", "main": "dist/index.js", @@ -22,7 +22,7 @@ "devDependencies": { "@storybook/addons": "^3.1.6", "@storybook/channels": "^3.1.6", - "@storybook/react": "^3.2.0-alpha.5", + "@storybook/react": "^3.2.0-alpha.7", "babel-cli": "^6.24.1", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-es2015": "^6.24.1", @@ -33,7 +33,7 @@ "peerDependencies": { "@storybook/addons": "^3.1.6", "@storybook/channels": "^3.1.6", - "@storybook/react": "^3.2.0-alpha.5", + "@storybook/react": "^3.2.0-alpha.7", "babel-core": "^6.24.1", "react": "*", "react-test-renderer": "*" diff --git a/app/react-native/package.json b/app/react-native/package.json index 4f9bf8b5666..44d730da883 100644 --- a/app/react-native/package.json +++ b/app/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-native", - "version": "3.2.0-alpha.5", + "version": "3.2.0-alpha.7", "description": "A better way to develop React Native Components for your app", "keywords": [ "react", @@ -24,11 +24,11 @@ "prepublish": "node ../../scripts/prepublish.js" }, "dependencies": { - "@storybook/addon-actions": "^3.1.6", + "@storybook/addon-actions": "^3.2.0-alpha.7", "@storybook/addon-links": "^3.2.0-alpha.5", "@storybook/addons": "^3.1.6", "@storybook/channel-websocket": "^3.1.6", - "@storybook/ui": "^3.2.0-alpha.5", + "@storybook/ui": "^3.2.0-alpha.7", "autoprefixer": "^7.0.1", "babel-core": "^6.24.1", "babel-loader": "^7.0.0", diff --git a/app/react-native/src/server/config/webpack.config.prod.js b/app/react-native/src/server/config/webpack.config.prod.js index f1601b63bfa..841459f0c83 100644 --- a/app/react-native/src/server/config/webpack.config.prod.js +++ b/app/react-native/src/server/config/webpack.config.prod.js @@ -2,15 +2,12 @@ import path from 'path'; import webpack from 'webpack'; import { OccurenceOrderPlugin, includePaths, excludePaths } from './utils'; -const entries = { - preview: [], - manager: [path.resolve(__dirname, '../../manager')], -}; - const config = { bail: true, devtool: '#cheap-module-source-map', - entry: entries, + entry: { + manager: [path.resolve(__dirname, '../../manager')], + }, output: { path: path.join(__dirname, 'dist'), filename: 'static/[name].bundle.js', diff --git a/app/react/package.json b/app/react/package.json index dcef88d722d..764f72fba87 100644 --- a/app/react/package.json +++ b/app/react/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react", - "version": "3.2.0-alpha.5", + "version": "3.2.0-alpha.7", "description": "Storybook for React: Develop React Component in isolation with Hot Reloading.", "homepage": "https://github.com/storybooks/storybook/tree/master/apps/react", "bugs": { @@ -22,11 +22,11 @@ "prepublish": "node ../../scripts/prepublish.js" }, "dependencies": { - "@storybook/addon-actions": "^3.1.6", + "@storybook/addon-actions": "^3.2.0-alpha.7", "@storybook/addon-links": "^3.2.0-alpha.5", "@storybook/addons": "^3.1.6", "@storybook/channel-postmessage": "^3.1.6", - "@storybook/ui": "^3.2.0-alpha.5", + "@storybook/ui": "^3.2.0-alpha.7", "airbnb-js-shims": "^1.1.1", "autoprefixer": "^7.1.1", "babel-core": "^6.24.1", @@ -67,7 +67,7 @@ "url-loader": "^0.5.8", "util-deprecate": "^1.0.2", "uuid": "^3.0.1", - "webpack": "^2.5.1", + "webpack": "^2.5.1 || ^3.0.0", "webpack-dev-middleware": "^1.10.2", "webpack-hot-middleware": "^2.18.0" }, diff --git a/app/vue/package.json b/app/vue/package.json index 487b01693e0..a43afacecce 100644 --- a/app/vue/package.json +++ b/app/vue/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/vue", - "version": "3.2.0-alpha.6", + "version": "3.2.0-alpha.7", "description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.", "homepage": "https://github.com/storybooks/storybook/tree/master/apps/vue", "bugs": { diff --git a/lerna.json b/lerna.json index bd8c50a77d6..0aed3b368e4 100644 --- a/lerna.json +++ b/lerna.json @@ -13,7 +13,8 @@ "test-cra", "react-native-vanilla", "vue-example", - "@storybook/components" + "@storybook/components", + "@storybook/vue" ] } }, @@ -24,5 +25,5 @@ "examples/*" ], "concurrency": 1, - "version": "3.2.0-alpha.5" + "version": "3.2.0-alpha.7" } diff --git a/lib/ui/package.json b/lib/ui/package.json index 89f8585fa46..3263144ea0f 100644 --- a/lib/ui/package.json +++ b/lib/ui/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/ui", - "version": "3.2.0-alpha.5", + "version": "3.2.0-alpha.7", "description": "Core Storybook UI", "license": "MIT", "main": "dist/index.js",