mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
Merge branch 'master' into master
This commit is contained in:
commit
9cc35565bc
115
CHANGELOG.md
115
CHANGELOG.md
@ -1,3 +1,118 @@
|
||||
# 3.2.17
|
||||
|
||||
2017-December-03
|
||||
|
||||
#### Features
|
||||
|
||||
- Add dotenv support for storybook in vue and react [#2345](https://github.com/storybooks/storybook/pull/2345)
|
||||
- Add addon jest [#2295](https://github.com/storybooks/storybook/pull/2295)
|
||||
- Addon-knobs: add number config options [#2371](https://github.com/storybooks/storybook/pull/2371)
|
||||
- Addon-info: Expose style for customization [#2370](https://github.com/storybooks/storybook/pull/2370)
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
- Fix addon-actions in legacy Android browser [#2365](https://github.com/storybooks/storybook/pull/2365)
|
||||
- Remove superfluous vertical scrollbar in fullscreen [#2394](https://github.com/storybooks/storybook/pull/2394)
|
||||
- Made jest test file extension name optional [#2373](https://github.com/storybooks/storybook/pull/2373)
|
||||
- Render navigation and addons panels even when they are hidden [#2336](https://github.com/storybooks/storybook/pull/2336)
|
||||
- Fix wrong "withTests" examples + add documentation [#2398](https://github.com/storybooks/storybook/pull/2398)
|
||||
|
||||
#### Maintenance
|
||||
|
||||
- Issue #2196 - Set console.warn and console.error to throw in tests [#2297](https://github.com/storybooks/storybook/pull/2297)
|
||||
- Optimize CI workflow [#2331](https://github.com/storybooks/storybook/pull/2331)
|
||||
- Ignore shelljs in bithound [#2322](https://github.com/storybooks/storybook/pull/2322)
|
||||
- Fix netlify vue instance [#2386](https://github.com/storybooks/storybook/pull/2386)
|
||||
- Keep examples' deps up to date [#2353](https://github.com/storybooks/storybook/pull/2353)
|
||||
- Separate netlify instances [#2340](https://github.com/storybooks/storybook/pull/2340)
|
||||
- Issue 2196 fix unittest warnings [#2343](https://github.com/storybooks/storybook/pull/2343)
|
||||
|
||||
#### Documentation
|
||||
|
||||
- Document return type of `date` knob (see #1489) [#2332](https://github.com/storybooks/storybook/pull/2332)
|
||||
|
||||
#### Dependency Upgrades
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
72 PRs
|
||||
</summary>
|
||||
|
||||
- Update gatsby in /docs from 1.9.127 to 1.9.128 [#2420](https://github.com/storybooks/storybook/pull/2420)
|
||||
- Update marked in /docs from 0.3.6 to 0.3.7 [#2416](https://github.com/storybooks/storybook/pull/2416)
|
||||
- Upgraded `gatsby` in `docs` from "1.9.126" to "1.9.127" [#2406](https://github.com/storybooks/storybook/pull/2406)
|
||||
- Upgraded `gatsby-transformer-remark` in `docs` from "1.7.22" to "1.7.23" [#2406](https://github.com/storybooks/storybook/pull/2406)
|
||||
- Upgraded `gatsby` in `docs` from "1.9.125" to "1.9.126" [#2399](https://github.com/storybooks/storybook/pull/2399)
|
||||
- Upgraded `gatsby-link` in `docs` from "1.6.29" to "1.6.30" [#2399](https://github.com/storybooks/storybook/pull/2399)
|
||||
- Upgraded `gatsby` in `docs` from "1.9.119" to "1.9.125" [#2392](https://github.com/storybooks/storybook/pull/2392)
|
||||
- Upgraded `gatsby-link` in `docs` from "1.6.28" to "1.6.29" [#2392](https://github.com/storybooks/storybook/pull/2392)
|
||||
- Upgraded `gatsby-plugin-sharp` in `docs` from "1.6.21" to "1.6.22" [#2392](https://github.com/storybooks/storybook/pull/2392)
|
||||
- Upgraded `gatsby-remark-autolink-headers` in `docs` from "1.4.8" to "1.4.9" [#2392](https://github.com/storybooks/storybook/pull/2392)
|
||||
- Upgraded `gatsby-remark-copy-linked-files` in `docs` from "1.5.21" to "1.5.22" [#2392](https://github.com/storybooks/storybook/pull/2392)
|
||||
- Upgraded `gatsby-remark-images` in `docs` from "1.5.32" to "1.5.33" [#2392](https://github.com/storybooks/storybook/pull/2392)
|
||||
- Upgraded `gatsby-remark-smartypants` in `docs` from "1.4.8" to "1.4.9" [#2392](https://github.com/storybooks/storybook/pull/2392)
|
||||
- Upgraded `gatsby-source-filesystem` in `docs` from "1.5.8" to "1.5.9" [#2392](https://github.com/storybooks/storybook/pull/2392)
|
||||
- Upgraded `gatsby-transformer-remark` in `docs` from "1.7.21" to "1.7.22" [#2392](https://github.com/storybooks/storybook/pull/2392)
|
||||
- Upgraded `webpack-dev-middleware` in `app/react-native` from "1.12.1" to "1.12.2" [#2385](https://github.com/storybooks/storybook/pull/2385)
|
||||
- Upgraded `webpack-hot-middleware` in `app/react-native` from "2.20.0" to "2.21.0" [#2385](https://github.com/storybooks/storybook/pull/2385)
|
||||
- Upgraded `webpack-dev-middleware` in `app/react` from "1.12.1" to "1.12.2" [#2385](https://github.com/storybooks/storybook/pull/2385)
|
||||
- Upgraded `webpack-hot-middleware` in `app/react` from "2.20.0" to "2.21.0" [#2385](https://github.com/storybooks/storybook/pull/2385)
|
||||
- Upgraded `webpack-dev-middleware` in `app/vue` from "1.12.1" to "1.12.2" [#2385](https://github.com/storybooks/storybook/pull/2385)
|
||||
- Upgraded `webpack-hot-middleware` in `app/vue` from "2.20.0" to "2.21.0" [#2385](https://github.com/storybooks/storybook/pull/2385)
|
||||
- Upgraded `danger` in `/` from "2.0.1" to "2.0.3" [#2380](https://github.com/storybooks/storybook/pull/2380)
|
||||
- Upgraded `eslint` in `/` from "4.11.0" to "4.12.0" [#2380](https://github.com/storybooks/storybook/pull/2380)
|
||||
- Upgraded `eslint-config-prettier` in `/` from "2.8.0" to "2.9.0" [#2380](https://github.com/storybooks/storybook/pull/2380)
|
||||
- Upgraded `react-modal` in `lib/ui` from "3.1.3" to "3.1.4" [#2364](https://github.com/storybooks/storybook/pull/2364)
|
||||
- Upgraded `postcss-loader` in `app/react-native` from "2.0.8" to "2.0.9" [#2364](https://github.com/storybooks/storybook/pull/2364)
|
||||
- Upgraded `react-native` in `app/react-native` from "0.50.3" to "0.50.4" [#2364](https://github.com/storybooks/storybook/pull/2364)
|
||||
- Upgraded `common-tags` in `app/react` from "1.4.0" to "1.5.1" [#2364](https://github.com/storybooks/storybook/pull/2364)
|
||||
- Upgraded `postcss-loader` in `app/react` from "2.0.8" to "2.0.9" [#2364](https://github.com/storybooks/storybook/pull/2364)
|
||||
- Upgraded `common-tags` in `app/vue` from "1.4.0" to "1.5.1" [#2364](https://github.com/storybooks/storybook/pull/2364)
|
||||
- Upgraded `postcss-loader` in `app/vue` from "2.0.8" to "2.0.9" [#2364](https://github.com/storybooks/storybook/pull/2364)
|
||||
- Upgraded `commander` in `/` from "2.11.0" to "2.12.1" [#2359](https://github.com/storybooks/storybook/pull/2359)
|
||||
- Upgraded `commander` in `lib/cli` from "2.11.0" to "2.12.1" [#2359](https://github.com/storybooks/storybook/pull/2359)
|
||||
- Upgraded `react-modal` in `lib/ui` from "3.1.2" to "3.1.3" [#2359](https://github.com/storybooks/storybook/pull/2359)
|
||||
- Upgraded `commander` in `app/react-native` from "2.11.0" to "2.12.1" [#2359](https://github.com/storybooks/storybook/pull/2359)
|
||||
- Upgraded `webpack-dev-middleware` in `app/react-native` from "1.12.0" to "1.12.1" [#2359](https://github.com/storybooks/storybook/pull/2359)
|
||||
- Upgraded `commander` in `app/react` from "2.11.0" to "2.12.1" [#2359](https://github.com/storybooks/storybook/pull/2359)
|
||||
- Upgraded `webpack-dev-middleware` in `app/react` from "1.12.0" to "1.12.1" [#2359](https://github.com/storybooks/storybook/pull/2359)
|
||||
- Upgraded `commander` in `app/vue` from "2.11.0" to "2.12.1" [#2359](https://github.com/storybooks/storybook/pull/2359)
|
||||
- Upgraded `webpack-dev-middleware` in `app/vue` from "1.12.0" to "1.12.1" [#2359](https://github.com/storybooks/storybook/pull/2359)
|
||||
- Update gatsby in docs from 1.9.118 to 1.9.119 [#2354](https://github.com/storybooks/storybook/pull/2354)
|
||||
- Upgraded `vue` in `addons/knobs` from "2.5.6" to "2.5.8" [#2344](https://github.com/storybooks/storybook/pull/2344)
|
||||
- Upgraded `ws` in `app/react-native` from "3.3.1" to "3.3.2" [#2344](https://github.com/storybooks/storybook/pull/2344)
|
||||
- Upgraded `vue` in `app/vue` from "2.5.6" to "2.5.8" [#2344](https://github.com/storybooks/storybook/pull/2344)
|
||||
- Upgraded `vue-template-compiler` in `app/vue` from "2.5.6" to "2.5.8" [#2344](https://github.com/storybooks/storybook/pull/2344)
|
||||
- Upgraded `vue` in `examples/vue-kitchen-sink` from "2.5.6" to "2.5.8" [#2344](https://github.com/storybooks/storybook/pull/2344)
|
||||
- Upgraded `vue-template-compiler` in `examples/vue-kitchen-sink` from "2.5.6" to "2.5.8" [#2344](https://github.com/storybooks/storybook/pull/2344)
|
||||
- Upgraded `eslint-config-prettier` in `/` from "2.7.0" to "2.8.0" [#2342](https://github.com/storybooks/storybook/pull/2342)
|
||||
- Upgraded `eslint-plugin-react` in `/` from "7.4.0" to "7.5.0" [#2342](https://github.com/storybooks/storybook/pull/2342)
|
||||
- Upgraded `vue` in `addons/knobs` from "2.5.5" to "2.5.6" [#2342](https://github.com/storybooks/storybook/pull/2342)
|
||||
- Upgraded `vue` in `app/vue` from "2.5.5" to "2.5.6" [#2342](https://github.com/storybooks/storybook/pull/2342)
|
||||
- Upgraded `vue-template-compiler` in `app/vue` from "2.5.5" to "2.5.6" [#2342](https://github.com/storybooks/storybook/pull/2342)
|
||||
- Upgraded `vue` in `examples/vue-kitchen-sink` from "2.5.5" to "2.5.6" [#2342](https://github.com/storybooks/storybook/pull/2342)
|
||||
- Upgraded `vue-template-compiler` in `examples/vue-kitchen-sink` from "2.5.5" to "2.5.6" [#2342](https://github.com/storybooks/storybook/pull/2342)
|
||||
- Update gatsby in docs from 1.9.117 to 1.9.118 [#2341](https://github.com/storybooks/storybook/pull/2341)
|
||||
- Upgraded `gatsby` in `docs` from "1.9.114" to "1.9.117" [#2338](https://github.com/storybooks/storybook/pull/2338)
|
||||
- Upgraded `gh-pages` in `docs` from "1.0.0" to "1.1.0" [#2338](https://github.com/storybooks/storybook/pull/2338)
|
||||
- Update gh-pages in / from 1.0.0 to 1.1.0 [#2339](https://github.com/storybooks/storybook/pull/2339)
|
||||
- Upgraded `@types/react` in `addons/knobs` from "16.0.23" to "16.0.25" [#2334](https://github.com/storybooks/storybook/pull/2334)
|
||||
- Upgraded `vue` in `addons/knobs` from "2.5.3" to "2.5.5" [#2334](https://github.com/storybooks/storybook/pull/2334)
|
||||
- Upgraded `vue-hot-reload-api` in `app/vue` from "2.2.3" to "2.2.4" [#2334](https://github.com/storybooks/storybook/pull/2334)
|
||||
- Upgraded `vue` in `app/vue` from "2.5.3" to "2.5.5" [#2334](https://github.com/storybooks/storybook/pull/2334)
|
||||
- Upgraded `vue-template-compiler` in `app/vue` from "2.5.3" to "2.5.5" [#2334](https://github.com/storybooks/storybook/pull/2334)
|
||||
- Upgraded `vue` in `examples/vue-kitchen-sink` from "2.5.3" to "2.5.5" [#2334](https://github.com/storybooks/storybook/pull/2334)
|
||||
- Upgraded `vue-hot-reload-api` in `examples/vue-kitchen-sink` from "2.2.3" to "2.2.4" [#2334](https://github.com/storybooks/storybook/pull/2334)
|
||||
- Upgraded `vue-template-compiler` in `examples/vue-kitchen-sink` from "2.5.3" to "2.5.5" [#2334](https://github.com/storybooks/storybook/pull/2334)
|
||||
- Update gatsby in docs from 1.9.112 to 1.9.114 [#2333](https://github.com/storybooks/storybook/pull/2333)
|
||||
- Upgraded `@storybook/addon-actions` in `docs` from "3.2.15" to "3.2.16" [#2327](https://github.com/storybooks/storybook/pull/2327)
|
||||
- Upgraded `@storybook/addon-links` in `docs` from "3.2.15" to "3.2.16" [#2327](https://github.com/storybooks/storybook/pull/2327)
|
||||
- Upgraded `@storybook/addons` in `docs` from "3.2.15" to "3.2.16" [#2327](https://github.com/storybooks/storybook/pull/2327)
|
||||
- Upgraded `@storybook/react` in `docs` from "3.2.15" to "3.2.16" [#2327](https://github.com/storybooks/storybook/pull/2327)
|
||||
- Update @types/node in addons/knobs from 8.0.52 to 8.0.53 [#2326](https://github.com/storybooks/storybook/pull/2326)
|
||||
|
||||
</details>
|
||||
|
||||
# 3.2.16
|
||||
|
||||
2017-November-15
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-a11y",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "a11y addon for storybook",
|
||||
"keywords": [
|
||||
"a11y",
|
||||
@ -24,8 +24,8 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/components": "^3.2.16",
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"@storybook/components": "^3.2.17",
|
||||
"axe-core": "^2.0.7",
|
||||
"prop-types": "^15.6.0"
|
||||
},
|
||||
|
@ -1 +0,0 @@
|
||||
import '../register';
|
@ -1,2 +0,0 @@
|
||||
import * as storybook from '@storybook/react';
|
||||
storybook.configure(() => require('./stories'), module);
|
@ -1,27 +0,0 @@
|
||||
import React from 'react';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
import { action, decorateAction } from '../src';
|
||||
|
||||
const pickFirst = decorateAction([
|
||||
args => args.slice(0, 1)
|
||||
]);
|
||||
|
||||
storiesOf('Button', module)
|
||||
.add('Hello World', () => (
|
||||
<button onClick={action('hello-world')}>Hello World</button>
|
||||
))
|
||||
.add('Decorated Action', () => (
|
||||
<button onClick={pickFirst('decorated')}>First Argument</button>
|
||||
))
|
||||
.add('Circular Payload', () => {
|
||||
const circular = {foo: {}};
|
||||
circular.foo.circular = circular;
|
||||
return <button
|
||||
onClick={() => action('circular')(circular)}>
|
||||
Circular Payload
|
||||
</button>;
|
||||
})
|
||||
.add('Function Name', () => {
|
||||
const fn = action('fnName');
|
||||
return <button onClick={fn}>Action.name: {fn.name}</button>
|
||||
});
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-actions",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Action Logger addon for storybook",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -16,12 +16,10 @@
|
||||
"url": "https://github.com/storybooks/storybook.git"
|
||||
},
|
||||
"scripts": {
|
||||
"deploy-storybook": "storybook-to-ghpages",
|
||||
"prepare": "node ../../scripts/prepare.js",
|
||||
"storybook": "start-storybook -p 9001"
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"deep-equal": "^1.0.1",
|
||||
"json-stringify-safe": "^5.0.1",
|
||||
"prop-types": "^15.6.0",
|
||||
|
@ -13,9 +13,9 @@ function _format(arg) {
|
||||
}
|
||||
|
||||
export function action(name) {
|
||||
// eslint-disable-next-line no-unused-vars, func-names
|
||||
const handler = function(..._args) {
|
||||
const args = Array.from(_args).map(_format);
|
||||
// eslint-disable-next-line no-shadow
|
||||
const handler = function action(..._args) {
|
||||
const args = _args.map(_format);
|
||||
const channel = addons.getChannel();
|
||||
const id = uuid();
|
||||
channel.emit(EVENT_ID, {
|
||||
@ -24,8 +24,12 @@ export function action(name) {
|
||||
});
|
||||
};
|
||||
|
||||
const fnName = name && typeof name === 'string' ? name.replace(/\W+/g, '_') : 'action';
|
||||
Object.defineProperty(handler, 'name', { value: fnName });
|
||||
// This condition is true in modern browsers that implement Function#name properly
|
||||
const canConfigureName = Object.getOwnPropertyDescriptor(handler, 'name').configurable;
|
||||
|
||||
if (canConfigureName && name && typeof name === 'string') {
|
||||
Object.defineProperty(handler, 'name', { value: name });
|
||||
}
|
||||
return handler;
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-backgrounds",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "A storybook addon to show different backgrounds for your preview",
|
||||
"keywords": [
|
||||
"addon",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-centered",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Storybook decorator to center components",
|
||||
"license": "MIT",
|
||||
"author": "Muhammed Thanish <mnmtanish@gmail.com>",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-comments",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Comments addon for Storybook",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -23,7 +23,7 @@
|
||||
"storybook-remote": "start-storybook -p 3006"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"deep-equal": "^1.0.1",
|
||||
"events": "^1.1.1",
|
||||
@ -38,8 +38,8 @@
|
||||
"devDependencies": {
|
||||
"@kadira/storybook-database-cloud": "*",
|
||||
"@kadira/storybook-deployer": "*",
|
||||
"@storybook/addon-actions": "^3.2.16",
|
||||
"@storybook/react": "^3.2.16"
|
||||
"@storybook/addon-actions": "^3.2.17",
|
||||
"@storybook/react": "^3.2.17"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-events",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Add events to your Storybook stories.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -20,7 +20,7 @@
|
||||
"storybook": "start-storybook -p 6006"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"format-json": "^1.0.3",
|
||||
"prop-types": "^15.6.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-graphql",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Storybook addon to display the GraphiQL IDE",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-info",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "A Storybook addon to show additional information for your stories.",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
@ -14,8 +14,8 @@
|
||||
"storybook": "start-storybook -p 9010"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/components": "^3.2.16",
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"@storybook/components": "^3.2.17",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"global": "^4.3.2",
|
||||
"marksy": "^2.0.0",
|
||||
|
@ -77,11 +77,11 @@ Assuming that you have created a test files `MyComponent.test.js` and `MyOtherCo
|
||||
In your `story.js`
|
||||
|
||||
```js
|
||||
import jestTestResults from '../.jest-test-results.json';
|
||||
import results from '../.jest-test-results.json';
|
||||
import { withTests } from '@storybook/addon-jest';
|
||||
|
||||
storiesOf('MyComponent', module)
|
||||
.addDecorator(withTests(jestTestResults, { filesExt: '.test.js' })('MyComponent', 'MyOtherComponent'))
|
||||
.addDecorator(withTests({ results })('MyComponent', 'MyOtherComponent'))
|
||||
.add('This story shows test results from MyComponent.test.js and MyOtherComponent.test.js', () => (
|
||||
<div>Jest results in storybook</div>
|
||||
));
|
||||
@ -90,11 +90,11 @@ storiesOf('MyComponent', module)
|
||||
Or in order to avoid importing `.jest-test-results.json` in each story, you can create a simple file `withTests.js`:
|
||||
|
||||
```js
|
||||
import jestTestResults from '../.jest-test-results.json';
|
||||
import results from '../.jest-test-results.json';
|
||||
import { withTests } from '@storybook/addon-jest';
|
||||
|
||||
export default withTests(jestTestResults, {
|
||||
filesExt: '.test.js',
|
||||
export default withTests({
|
||||
results,
|
||||
});
|
||||
```
|
||||
|
||||
@ -111,6 +111,11 @@ storiesOf('MyComponent', module)
|
||||
));
|
||||
```
|
||||
|
||||
### withTests(options)
|
||||
|
||||
- **options.results**: [OBJECT] jest output results. *mandatory*
|
||||
- **filteExt**: [STRING] test file extention. *optionnal*. This allow you to write "MyComponent" and not "MyComponent.test.js". It will be used as regex to find your file results. Default value is `((\\.specs?)|(\\.tests?))?(\\.js)?$`. That mean it will match: MyComponent.js, MyComponent.test.js, MyComponent.tests.js, MyComponent.spec.js, MyComponent.specs.js...
|
||||
|
||||
## TODO
|
||||
|
||||
- [ ] Add coverage
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-jest",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "React storybook addon that show component jest report",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -24,11 +24,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/components": "^3.2.16",
|
||||
"global": "^4.3.2",
|
||||
"prop-types": "^15.6.0",
|
||||
"@storybook/components": "^3.2.17",
|
||||
"glamor": "^2.20.40",
|
||||
"glamorous": "^4.11.0"
|
||||
"glamorous": "^4.11.0",
|
||||
"global": "^4.3.2",
|
||||
"prop-types": "^15.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"react": "^16.1.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
import addons from '@storybook/addons';
|
||||
|
||||
const findTestResults = (testFiles, jestTestResults, jestTestFilesExt = '') =>
|
||||
const findTestResults = (testFiles, jestTestResults, jestTestFilesExt) =>
|
||||
testFiles.map(name => {
|
||||
if (jestTestResults && jestTestResults.testResults) {
|
||||
return {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-knobs",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Storybook Addon Prop Editor Component",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
@ -14,7 +14,7 @@
|
||||
"storybook": "start-storybook -p 9010"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"deep-equal": "^1.0.1",
|
||||
"global": "^4.3.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-links",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Story Links addon for storybook",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -21,7 +21,7 @@
|
||||
"storybook": "start-storybook -p 9001"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "^3.2.16"
|
||||
"@storybook/addons": "^3.2.17"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-notes",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Write notes for your Storybook stories.",
|
||||
"keywords": [
|
||||
"addon",
|
||||
@ -19,7 +19,7 @@
|
||||
"storybook": "start-storybook -p 9010"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"prop-types": "^15.6.0",
|
||||
"util-deprecate": "^1.0.2"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-options",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Options addon for storybook",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -20,7 +20,7 @@
|
||||
"storybook": "start-storybook -p 9001"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addons": "^3.2.16"
|
||||
"@storybook/addons": "^3.2.17"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storyshots",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "StoryShots is a Jest Snapshot Testing Addon for Storybook.",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
@ -20,14 +20,14 @@
|
||||
"read-pkg-up": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/channels": "^3.2.16",
|
||||
"@storybook/react": "^3.2.16"
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"@storybook/channels": "^3.2.17",
|
||||
"@storybook/react": "^3.2.17"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/channels": "^3.2.16",
|
||||
"@storybook/react": "^3.2.16",
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"@storybook/channels": "^3.2.17",
|
||||
"@storybook/react": "^3.2.17",
|
||||
"babel-core": "^6.26.0",
|
||||
"react": "*",
|
||||
"react-test-renderer": "*"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react-native",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "A better way to develop React Native Components for your app",
|
||||
"keywords": [
|
||||
"react",
|
||||
@ -24,11 +24,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-actions": "^3.2.16",
|
||||
"@storybook/addon-links": "^3.2.16",
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/channel-websocket": "^3.2.16",
|
||||
"@storybook/ui": "^3.2.16",
|
||||
"@storybook/addon-actions": "^3.2.17",
|
||||
"@storybook/addon-links": "^3.2.17",
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"@storybook/channel-websocket": "^3.2.17",
|
||||
"@storybook/ui": "^3.2.17",
|
||||
"autoprefixer": "^7.1.6",
|
||||
"babel-core": "^6.26.0",
|
||||
"babel-loader": "^7.1.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
||||
"homepage": "https://github.com/storybooks/storybook/tree/master/app/react",
|
||||
"bugs": {
|
||||
@ -22,11 +22,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-actions": "^3.2.16",
|
||||
"@storybook/addon-links": "^3.2.16",
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/channel-postmessage": "^3.2.16",
|
||||
"@storybook/ui": "^3.2.16",
|
||||
"@storybook/addon-actions": "^3.2.17",
|
||||
"@storybook/addon-links": "^3.2.17",
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"@storybook/channel-postmessage": "^3.2.17",
|
||||
"@storybook/ui": "^3.2.17",
|
||||
"airbnb-js-shims": "^1.3.0",
|
||||
"autoprefixer": "^7.1.6",
|
||||
"babel-core": "^6.26.0",
|
||||
|
@ -27,6 +27,9 @@ getstorybook
|
||||
|
||||
For more information visit: [storybook.js.org](https://storybook.js.org)
|
||||
|
||||
## Starter Storybook-for-Vue Boilerplate project with [Vuetify](https://github.com/vuetifyjs/vuetify) Material Component Framework
|
||||
https://github.com/white-rabbit-japan/vuetify-storyboard-boilerplate
|
||||
|
||||
* * *
|
||||
|
||||
Storybook also comes with a lot of [addons](https://storybook.js.org/addons/introduction) and a great API to customize as you wish.
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/vue",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.",
|
||||
"homepage": "https://github.com/storybooks/storybook/tree/master/apps/vue",
|
||||
"bugs": {
|
||||
@ -22,11 +22,11 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/addon-actions": "^3.2.16",
|
||||
"@storybook/addon-links": "^3.2.16",
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/channel-postmessage": "^3.2.16",
|
||||
"@storybook/ui": "^3.2.16",
|
||||
"@storybook/addon-actions": "^3.2.17",
|
||||
"@storybook/addon-links": "^3.2.17",
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"@storybook/channel-postmessage": "^3.2.17",
|
||||
"@storybook/ui": "^3.2.17",
|
||||
"airbnb-js-shims": "^1.3.0",
|
||||
"autoprefixer": "^7.1.6",
|
||||
"babel-core": "^6.26.0",
|
||||
|
@ -30,20 +30,20 @@
|
||||
"babel-preset-react": "^6.24.1",
|
||||
"babel-preset-stage-0": "^6.24.1",
|
||||
"bootstrap": "^3.3.7",
|
||||
"gatsby": "^1.9.119",
|
||||
"gatsby-link": "^1.6.28",
|
||||
"gatsby-plugin-sharp": "^1.6.21",
|
||||
"gatsby-remark-autolink-headers": "^1.4.8",
|
||||
"gatsby-remark-copy-linked-files": "^1.5.21",
|
||||
"gatsby-remark-images": "^1.5.32",
|
||||
"gatsby-remark-smartypants": "^1.4.8",
|
||||
"gatsby-source-filesystem": "^1.5.8",
|
||||
"gatsby-transformer-remark": "^1.7.21",
|
||||
"gatsby": "^1.9.128",
|
||||
"gatsby-link": "^1.6.30",
|
||||
"gatsby-plugin-sharp": "^1.6.22",
|
||||
"gatsby-remark-autolink-headers": "^1.4.9",
|
||||
"gatsby-remark-copy-linked-files": "^1.5.22",
|
||||
"gatsby-remark-images": "^1.5.33",
|
||||
"gatsby-remark-smartypants": "^1.4.9",
|
||||
"gatsby-source-filesystem": "^1.5.9",
|
||||
"gatsby-transformer-remark": "^1.7.23",
|
||||
"gh-pages": "^1.1.0",
|
||||
"global": "^4.3.2",
|
||||
"highlight.js": "^9.12.0",
|
||||
"lodash": "^4.17.2",
|
||||
"marked": "^0.3.6",
|
||||
"marked": "^0.3.7",
|
||||
"prop-types": "^15.6.0",
|
||||
"react": "^15.6.1",
|
||||
"react-document-title": "^2.0.3",
|
||||
|
@ -9,7 +9,7 @@ const getEditUrl = (selectedSectionId, selectedItemId) => {
|
||||
const gitHubRepoUrl = 'https://github.com/storybooks/storybook';
|
||||
const docPath = `${selectedSectionId}/${selectedItemId}`;
|
||||
|
||||
return `${gitHubRepoUrl}/tree/master/docs/pages/${docPath}/index.md`;
|
||||
return `${gitHubRepoUrl}/blob/master/docs/src/pages/${docPath}/index.md`;
|
||||
};
|
||||
|
||||
const Container = ({ sections, selectedItem, selectedSectionId, selectedItemId }) => (
|
||||
|
@ -9,7 +9,7 @@ const Examples = ({ items }) => (
|
||||
<h1>Storybook Examples</h1>
|
||||
<a
|
||||
className="edit-link"
|
||||
href="https://github.com/storybooks/storybook/edit/master/docs/pages/examples/_examples.yml"
|
||||
href="https://github.com/storybooks/storybook/blob/master/docs/src/pages/examples/_examples.yml"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
|
102
docs/yarn.lock
102
docs/yarn.lock
@ -4169,15 +4169,15 @@ fuse.js@^3.0.1:
|
||||
version "3.1.0"
|
||||
resolved "https://registry.yarnpkg.com/fuse.js/-/fuse.js-3.1.0.tgz#9062146c471552189b0f678b4f5a155731ae3b3c"
|
||||
|
||||
gatsby-1-config-css-modules@^1.0.6:
|
||||
version "1.0.6"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-1-config-css-modules/-/gatsby-1-config-css-modules-1.0.6.tgz#c758a2302339b15538dbacac66a3b631d0290fd8"
|
||||
gatsby-1-config-css-modules@^1.0.7:
|
||||
version "1.0.7"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-1-config-css-modules/-/gatsby-1-config-css-modules-1.0.7.tgz#c280ecdaf6f44ade490b4b87b6ed496addac9488"
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
|
||||
gatsby-cli@^1.1.23:
|
||||
version "1.1.23"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-cli/-/gatsby-cli-1.1.23.tgz#8681aefa6efefe0abfbd3b267c2358c2c1f3d9bd"
|
||||
gatsby-cli@^1.1.25:
|
||||
version "1.1.25"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-cli/-/gatsby-cli-1.1.25.tgz#767899c351711870a3b08a9758da94e224abbfe7"
|
||||
dependencies:
|
||||
babel-code-frame "^6.26.0"
|
||||
babel-runtime "^6.26.0"
|
||||
@ -4196,24 +4196,24 @@ gatsby-cli@^1.1.23:
|
||||
yargs "^8.0.2"
|
||||
yurnalist "^0.2.1"
|
||||
|
||||
gatsby-link@^1.6.28:
|
||||
version "1.6.28"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-link/-/gatsby-link-1.6.28.tgz#12b799aa12663ae22f626195ab258e0ee5dddc9c"
|
||||
gatsby-link@^1.6.30:
|
||||
version "1.6.30"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-link/-/gatsby-link-1.6.30.tgz#d75a7ceaa9e138b5f4f64cc6dbf1e0632876bd09"
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
prop-types "^15.5.8"
|
||||
ric "^1.3.0"
|
||||
|
||||
gatsby-module-loader@^1.0.8:
|
||||
version "1.0.8"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-module-loader/-/gatsby-module-loader-1.0.8.tgz#426800c29b9b67cae2b6181317cd300d823e7428"
|
||||
gatsby-module-loader@^1.0.9:
|
||||
version "1.0.9"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-module-loader/-/gatsby-module-loader-1.0.9.tgz#a33f3496589577749d2fbb680f7bab9ddcc86172"
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
loader-utils "^0.2.16"
|
||||
|
||||
gatsby-plugin-sharp@^1.6.21:
|
||||
version "1.6.21"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-plugin-sharp/-/gatsby-plugin-sharp-1.6.21.tgz#990e856153b65be28316c23ab29b4e78dd5634de"
|
||||
gatsby-plugin-sharp@^1.6.22:
|
||||
version "1.6.22"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-plugin-sharp/-/gatsby-plugin-sharp-1.6.22.tgz#7d1c71a881e89c4327450b15820d4614eb72e6e3"
|
||||
dependencies:
|
||||
async "^2.1.2"
|
||||
babel-runtime "^6.26.0"
|
||||
@ -4228,26 +4228,26 @@ gatsby-plugin-sharp@^1.6.21:
|
||||
sharp "^0.17.3"
|
||||
svgo "^0.7.2"
|
||||
|
||||
gatsby-react-router-scroll@^1.0.5:
|
||||
version "1.0.5"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-react-router-scroll/-/gatsby-react-router-scroll-1.0.5.tgz#377b03e0320866f40b6c2234d38b19d1b035c353"
|
||||
gatsby-react-router-scroll@^1.0.6:
|
||||
version "1.0.6"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-react-router-scroll/-/gatsby-react-router-scroll-1.0.6.tgz#7cf83afec00ed5441522c3db3b84ec4a12df509a"
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
scroll-behavior "^0.9.1"
|
||||
warning "^3.0.0"
|
||||
|
||||
gatsby-remark-autolink-headers@^1.4.8:
|
||||
version "1.4.8"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-remark-autolink-headers/-/gatsby-remark-autolink-headers-1.4.8.tgz#94e5f5014087d8205e33389e6a4f2fd7ff6e4fd8"
|
||||
gatsby-remark-autolink-headers@^1.4.9:
|
||||
version "1.4.9"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-remark-autolink-headers/-/gatsby-remark-autolink-headers-1.4.9.tgz#2eb6c0497d43a1b2600683913fa3288e7be8ac25"
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
github-slugger "^1.1.1"
|
||||
mdast-util-to-string "^1.0.2"
|
||||
unist-util-visit "^1.1.1"
|
||||
|
||||
gatsby-remark-copy-linked-files@^1.5.21:
|
||||
version "1.5.21"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-remark-copy-linked-files/-/gatsby-remark-copy-linked-files-1.5.21.tgz#5933aef21cc905320090464efcd3a7d756c25e3e"
|
||||
gatsby-remark-copy-linked-files@^1.5.22:
|
||||
version "1.5.22"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-remark-copy-linked-files/-/gatsby-remark-copy-linked-files-1.5.22.tgz#00fcc9f9809441dc350201b66905f33a28fc3e8f"
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
cheerio "^1.0.0-rc.2"
|
||||
@ -4258,30 +4258,30 @@ gatsby-remark-copy-linked-files@^1.5.21:
|
||||
path-is-inside "^1.0.2"
|
||||
unist-util-visit "^1.1.1"
|
||||
|
||||
gatsby-remark-images@^1.5.32:
|
||||
version "1.5.32"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-remark-images/-/gatsby-remark-images-1.5.32.tgz#1e6bbc5991343f082f224869ffb14abb4a02c6ba"
|
||||
gatsby-remark-images@^1.5.33:
|
||||
version "1.5.33"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-remark-images/-/gatsby-remark-images-1.5.33.tgz#41f3a7eb68d4f59f5868401242ef217c3a7f2189"
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
cheerio "^1.0.0-rc.2"
|
||||
gatsby-plugin-sharp "^1.6.21"
|
||||
gatsby-plugin-sharp "^1.6.22"
|
||||
is-relative-url "^2.0.0"
|
||||
lodash "^4.17.4"
|
||||
slash "^1.0.0"
|
||||
unist-util-select "^1.5.0"
|
||||
|
||||
gatsby-remark-smartypants@^1.4.8:
|
||||
version "1.4.8"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-remark-smartypants/-/gatsby-remark-smartypants-1.4.8.tgz#84496ff59c0540bd4c1cb6f924ddf6e88fce740a"
|
||||
gatsby-remark-smartypants@^1.4.9:
|
||||
version "1.4.9"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-remark-smartypants/-/gatsby-remark-smartypants-1.4.9.tgz#ed48782849bc4fbac44e1365822b436f9766c2ae"
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
retext "^4.0.0"
|
||||
retext-smartypants "^2.0.0"
|
||||
unist-util-visit "^1.1.1"
|
||||
|
||||
gatsby-source-filesystem@^1.5.8:
|
||||
version "1.5.8"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-source-filesystem/-/gatsby-source-filesystem-1.5.8.tgz#9f4312b28cc63da8f4130a0f38291c4cd726a28e"
|
||||
gatsby-source-filesystem@^1.5.9:
|
||||
version "1.5.9"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-source-filesystem/-/gatsby-source-filesystem-1.5.9.tgz#f732d9e51be1b622e8416695c8cf1acd9483e822"
|
||||
dependencies:
|
||||
babel-cli "^6.26.0"
|
||||
babel-runtime "^6.26.0"
|
||||
@ -4295,9 +4295,9 @@ gatsby-source-filesystem@^1.5.8:
|
||||
slash "^1.0.0"
|
||||
valid-url "^1.0.9"
|
||||
|
||||
gatsby-transformer-remark@^1.7.21:
|
||||
version "1.7.21"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-transformer-remark/-/gatsby-transformer-remark-1.7.21.tgz#07e9cdec46197ed834ae211b74c9fc2c88cf479a"
|
||||
gatsby-transformer-remark@^1.7.23:
|
||||
version "1.7.23"
|
||||
resolved "https://registry.yarnpkg.com/gatsby-transformer-remark/-/gatsby-transformer-remark-1.7.23.tgz#a0510889334223340f39244348b391be36806f6b"
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
bluebird "^3.5.0"
|
||||
@ -4317,9 +4317,9 @@ gatsby-transformer-remark@^1.7.21:
|
||||
unist-util-select "^1.5.0"
|
||||
unist-util-visit "^1.1.1"
|
||||
|
||||
gatsby@^1.9.119:
|
||||
version "1.9.119"
|
||||
resolved "https://registry.yarnpkg.com/gatsby/-/gatsby-1.9.119.tgz#753b212330d3391761a0cc5257fe3220fc0a1195"
|
||||
gatsby@^1.9.128:
|
||||
version "1.9.128"
|
||||
resolved "https://registry.yarnpkg.com/gatsby/-/gatsby-1.9.128.tgz#9b78bee5cf160886610f53ef203c645b698454d4"
|
||||
dependencies:
|
||||
async "^2.1.2"
|
||||
babel-code-frame "^6.22.0"
|
||||
@ -4357,14 +4357,14 @@ gatsby@^1.9.119:
|
||||
friendly-errors-webpack-plugin "^1.6.1"
|
||||
front-matter "^2.1.0"
|
||||
fs-extra "^4.0.1"
|
||||
gatsby-1-config-css-modules "^1.0.6"
|
||||
gatsby-cli "^1.1.23"
|
||||
gatsby-module-loader "^1.0.8"
|
||||
gatsby-react-router-scroll "^1.0.5"
|
||||
gatsby-1-config-css-modules "^1.0.7"
|
||||
gatsby-cli "^1.1.25"
|
||||
gatsby-module-loader "^1.0.9"
|
||||
gatsby-react-router-scroll "^1.0.6"
|
||||
glob "^7.1.1"
|
||||
graphql "^0.11.7"
|
||||
graphql-relay "^0.5.1"
|
||||
graphql-skip-limit "^1.0.7"
|
||||
graphql-skip-limit "^1.0.8"
|
||||
history "^4.6.2"
|
||||
invariant "^2.2.2"
|
||||
is-relative "^0.2.1"
|
||||
@ -4726,9 +4726,9 @@ graphql-relay@^0.5.1:
|
||||
version "0.5.3"
|
||||
resolved "https://registry.yarnpkg.com/graphql-relay/-/graphql-relay-0.5.3.tgz#56a78ac07c87d89795a34db6b8e9681b827be5b5"
|
||||
|
||||
graphql-skip-limit@^1.0.7:
|
||||
version "1.0.7"
|
||||
resolved "https://registry.yarnpkg.com/graphql-skip-limit/-/graphql-skip-limit-1.0.7.tgz#c64d5e6c0c3fac935ab87b17d928c39211ccd86e"
|
||||
graphql-skip-limit@^1.0.8:
|
||||
version "1.0.8"
|
||||
resolved "https://registry.yarnpkg.com/graphql-skip-limit/-/graphql-skip-limit-1.0.8.tgz#c2a51254070f58cac60ac42868f1a0010c6e2c26"
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
graphql "^0.11.7"
|
||||
@ -6409,9 +6409,9 @@ markdown-table@^1.1.0:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-1.1.1.tgz#4b3dd3a133d1518b8ef0dbc709bf2a1b4824bc8c"
|
||||
|
||||
marked@^0.3.6:
|
||||
version "0.3.6"
|
||||
resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7"
|
||||
marked@^0.3.7:
|
||||
version "0.3.7"
|
||||
resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.7.tgz#80ef3bbf1bd00d1c9cfebe42ba1b8c85da258d0d"
|
||||
|
||||
math-expression-evaluator@^1.2.14:
|
||||
version "1.2.17"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cra-kitchen-sink",
|
||||
"version": "1.0.0",
|
||||
"version": "3.2.17",
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
"build-storybook": "build-storybook -s public",
|
||||
@ -22,21 +22,21 @@
|
||||
"uuid": "^3.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-a11y": "^3.2.16",
|
||||
"@storybook/addon-actions": "^3.2.16",
|
||||
"@storybook/addon-backgrounds": "^3.2.16",
|
||||
"@storybook/addon-centered": "^3.2.16",
|
||||
"@storybook/addon-events": "^3.2.16",
|
||||
"@storybook/addon-info": "^3.2.16",
|
||||
"@storybook/addon-jest": "^3.2.16",
|
||||
"@storybook/addon-knobs": "^3.2.16",
|
||||
"@storybook/addon-links": "^3.2.16",
|
||||
"@storybook/addon-notes": "^3.2.16",
|
||||
"@storybook/addon-options": "^3.2.16",
|
||||
"@storybook/addon-storyshots": "^3.2.16",
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/components": "^3.2.16",
|
||||
"@storybook/react": "^3.2.16",
|
||||
"@storybook/addon-a11y": "^3.2.17",
|
||||
"@storybook/addon-actions": "^3.2.17",
|
||||
"@storybook/addon-backgrounds": "^3.2.17",
|
||||
"@storybook/addon-centered": "^3.2.17",
|
||||
"@storybook/addon-events": "^3.2.17",
|
||||
"@storybook/addon-info": "^3.2.17",
|
||||
"@storybook/addon-jest": "^3.2.17",
|
||||
"@storybook/addon-knobs": "^3.2.17",
|
||||
"@storybook/addon-links": "^3.2.17",
|
||||
"@storybook/addon-notes": "^3.2.17",
|
||||
"@storybook/addon-options": "^3.2.17",
|
||||
"@storybook/addon-storyshots": "^3.2.17",
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"@storybook/components": "^3.2.17",
|
||||
"@storybook/react": "^3.2.17",
|
||||
"babel-jest": "^21.2.0",
|
||||
"jest": "^21.2.1",
|
||||
"react-scripts": "1.0.17"
|
||||
|
@ -1,5 +1,51 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Storyshots Addon Actions Circular Payload 1`] = `
|
||||
<button
|
||||
className="css-1yjiefr"
|
||||
onClick={[Function]}
|
||||
>
|
||||
Circular Payload
|
||||
</button>
|
||||
`;
|
||||
|
||||
exports[`Storyshots Addon Actions Decorated Action 1`] = `
|
||||
<button
|
||||
className="css-1yjiefr"
|
||||
onClick={[Function]}
|
||||
>
|
||||
First Argument
|
||||
</button>
|
||||
`;
|
||||
|
||||
exports[`Storyshots Addon Actions Function Name 1`] = `
|
||||
<button
|
||||
className="css-1yjiefr"
|
||||
onClick={[Function]}
|
||||
>
|
||||
Action.name:
|
||||
fnName
|
||||
</button>
|
||||
`;
|
||||
|
||||
exports[`Storyshots Addon Actions Hello World 1`] = `
|
||||
<button
|
||||
className="css-1yjiefr"
|
||||
onClick={[Function]}
|
||||
>
|
||||
Hello World
|
||||
</button>
|
||||
`;
|
||||
|
||||
exports[`Storyshots Addon Actions Reserved keyword as name 1`] = `
|
||||
<button
|
||||
className="css-1yjiefr"
|
||||
onClick={[Function]}
|
||||
>
|
||||
Delete
|
||||
</button>
|
||||
`;
|
||||
|
||||
exports[`Storyshots Addon Backgrounds story 1 1`] = `
|
||||
<div
|
||||
style={
|
||||
@ -5571,15 +5617,6 @@ exports[`Storyshots Button addons composition 1`] = `
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`Storyshots Button delete 1`] = `
|
||||
<button
|
||||
className="css-1yjiefr"
|
||||
onClick={[Function]}
|
||||
>
|
||||
Delete
|
||||
</button>
|
||||
`;
|
||||
|
||||
exports[`Storyshots Button with new info 1`] = `
|
||||
<div>
|
||||
<div
|
||||
|
@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
import { action, decorateAction } from '@storybook/addon-actions';
|
||||
import { Button } from '@storybook/react/demo';
|
||||
|
||||
const pickFirst = decorateAction([args => args.slice(0, 1)]);
|
||||
|
||||
storiesOf('Addon Actions', module)
|
||||
.add('Hello World', () => <Button onClick={action('hello-world')}>Hello World</Button>)
|
||||
.add('Decorated Action', () => <Button onClick={pickFirst('decorated')}>First Argument</Button>)
|
||||
.add('Circular Payload', () => {
|
||||
const circular = { foo: {} };
|
||||
circular.foo.circular = circular;
|
||||
return <Button onClick={() => action('circular')(circular)}>Circular Payload</Button>;
|
||||
})
|
||||
.add('Function Name', () => {
|
||||
const fn = action('fnName');
|
||||
return <Button onClick={fn}>Action.name: {fn.name}</Button>;
|
||||
})
|
||||
.add('Reserved keyword as name', () => <Button onClick={action('delete')}>Delete</Button>);
|
@ -55,12 +55,6 @@ storiesOf('Button', module)
|
||||
😀 😎 👍 💯
|
||||
</Button>
|
||||
))
|
||||
.add('delete', () => (
|
||||
<Button onClick={action('delete')}>
|
||||
{setOptions({ selectedAddonPanel: 'storybook/actions/actions-panel' })}
|
||||
Delete
|
||||
</Button>
|
||||
))
|
||||
.add('with notes', () => (
|
||||
// deprecated usage
|
||||
<WithNotes notes="A very simple button">
|
||||
|
@ -1,15 +1,15 @@
|
||||
{
|
||||
"name": "vue-example",
|
||||
"version": "0.1.0",
|
||||
"version": "3.2.17",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@storybook/addon-actions": "^3.2.16",
|
||||
"@storybook/addon-centered": "^3.2.16",
|
||||
"@storybook/addon-knobs": "^3.2.16",
|
||||
"@storybook/addon-links": "^3.2.16",
|
||||
"@storybook/addon-notes": "^3.2.16",
|
||||
"@storybook/addons": "^3.2.16",
|
||||
"@storybook/vue": "^3.2.16",
|
||||
"@storybook/addon-actions": "^3.2.17",
|
||||
"@storybook/addon-centered": "^3.2.17",
|
||||
"@storybook/addon-knobs": "^3.2.17",
|
||||
"@storybook/addon-links": "^3.2.17",
|
||||
"@storybook/addon-notes": "^3.2.17",
|
||||
"@storybook/addons": "^3.2.17",
|
||||
"@storybook/vue": "^3.2.17",
|
||||
"babel-core": "^6.26.0",
|
||||
"babel-loader": "^7.1.2",
|
||||
"babel-preset-env": "^1.6.0",
|
||||
|
@ -8,5 +8,5 @@
|
||||
}
|
||||
},
|
||||
"concurrency": 1,
|
||||
"version": "3.2.16"
|
||||
"version": "3.2.17"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addons",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Storybook addons store",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channel-postmessage",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
@ -8,7 +8,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "^3.2.16",
|
||||
"@storybook/channels": "^3.2.17",
|
||||
"global": "^4.3.2",
|
||||
"json-stringify-safe": "^5.0.1"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channel-websocket",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
@ -8,7 +8,7 @@
|
||||
"prepare": "node ../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/channels": "^3.2.16",
|
||||
"@storybook/channels": "^3.2.17",
|
||||
"global": "^4.3.2"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channels",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/cli",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Storybook's CLI - easiest method of adding storybook to your projects",
|
||||
"keywords": [
|
||||
"cli",
|
||||
@ -21,7 +21,7 @@
|
||||
"url": "https://github.com/storybooks/storybook.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/codemod": "^3.2.16",
|
||||
"@storybook/codemod": "^3.2.17",
|
||||
"chalk": "^2.3.0",
|
||||
"child-process-promise": "^2.2.1",
|
||||
"commander": "^2.12.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/codemod",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "A collection of codemod scripts written with JSCodeshift",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/components",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Core Storybook Components",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/ui",
|
||||
"version": "3.2.16",
|
||||
"version": "3.2.17",
|
||||
"description": "Core Storybook UI",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
@ -15,7 +15,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@hypnosphi/fuse.js": "^3.0.9",
|
||||
"@storybook/components": "^3.2.16",
|
||||
"@storybook/components": "^3.2.17",
|
||||
"@storybook/mantra-core": "^1.7.0",
|
||||
"@storybook/react-fuzzy": "^0.4.3",
|
||||
"@storybook/react-komposer": "^2.0.0",
|
||||
|
@ -75,7 +75,6 @@ const fullScreenPreviewStyle = {
|
||||
border: 0,
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
overflow: 'auto',
|
||||
WebkitOverflowScrolling: 'touch',
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user