mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 05:11:07 +08:00
Merge remote-tracking branch 'origin/release/3.2' into 151-story-hierarchy
This commit is contained in:
commit
3607ed5fa2
@ -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": {
|
||||
|
@ -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:
|
||||
|
@ -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",
|
||||
|
@ -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": "*"
|
||||
|
@ -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",
|
||||
|
@ -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',
|
||||
|
@ -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"
|
||||
},
|
||||
|
@ -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": {
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user