NOTE:
@@ -82,7 +82,7 @@ exports[`Storyshots Welcome to Storybook 1`] = `
Have a look at the
.storybook/webpack.config.js
diff --git a/examples/cra-kitchen-sink/src/stories/index.stories.js b/examples/cra-kitchen-sink/src/stories/index.stories.js
index bb57baa5f5d..719c97b5810 100644
--- a/examples/cra-kitchen-sink/src/stories/index.stories.js
+++ b/examples/cra-kitchen-sink/src/stories/index.stories.js
@@ -1,5 +1,3 @@
-/* eslint-disable react/destructuring-assignment */
-
import React from 'react';
import { storiesOf } from '@storybook/react';
diff --git a/examples/crna-kitchen-sink/package.json b/examples/crna-kitchen-sink/package.json
index baead971ee8..c527b840b4a 100644
--- a/examples/crna-kitchen-sink/package.json
+++ b/examples/crna-kitchen-sink/package.json
@@ -2,6 +2,24 @@
"name": "crna-kitchen-sink",
"version": "0.1.0",
"private": true,
+ "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
+ "scripts": {
+ "android": "react-native-scripts android",
+ "eject": "react-native-scripts eject",
+ "ios": "react-native-scripts ios",
+ "start": "react-native-scripts start",
+ "storybook": "storybook start -p 7007",
+ "test": "node node_modules/jest/bin/jest.js --watch"
+ },
+ "jest": {
+ "preset": "jest-expo"
+ },
+ "dependencies": {
+ "expo": "^24.0.2",
+ "prop-types": "^15.6.0",
+ "react": "^16.2.0",
+ "react-native": "^0.51.0"
+ },
"devDependencies": {
"@storybook/addon-actions": "file:../../packs/storybook-addon-actions.tgz",
"@storybook/addon-knobs": "file:../../packs/storybook-addon-knobs.tgz",
@@ -18,27 +36,9 @@
"@storybook/node-logger": "file:../../packs/storybook-node-logger.tgz",
"@storybook/react-native": "file:../../packs/storybook-react-native.tgz",
"@storybook/ui": "file:../../packs/storybook-ui.tgz",
- "babel-runtime": "^6.26.0",
"jest-expo": "^24.0.0",
+ "react-dom": "^16.2.0",
"react-native-scripts": "^1.8.1",
"react-test-renderer": "~16.2.0"
- },
- "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
- "scripts": {
- "start": "react-native-scripts start",
- "eject": "react-native-scripts eject",
- "android": "react-native-scripts android",
- "ios": "react-native-scripts ios",
- "test": "node node_modules/jest/bin/jest.js --watch",
- "storybook": "storybook start -p 7007"
- },
- "jest": {
- "preset": "jest-expo"
- },
- "dependencies": {
- "expo": "^24.0.2",
- "prop-types": "^15.6.0",
- "react": "^16.2.0",
- "react-native": "^0.51.0"
}
}
diff --git a/examples/html-kitchen-sink/package.json b/examples/html-kitchen-sink/package.json
index 77018dbad6d..79060a955c9 100644
--- a/examples/html-kitchen-sink/package.json
+++ b/examples/html-kitchen-sink/package.json
@@ -1,6 +1,6 @@
{
"name": "html-kitchen-sink",
- "version": "4.0.0-alpha.16",
+ "version": "4.0.0-alpha.17",
"private": true,
"description": "",
"keywords": [],
@@ -13,25 +13,23 @@
"storybook": "start-storybook -p 9006"
},
"devDependencies": {
- "@storybook/addon-a11y": "4.0.0-alpha.16",
- "@storybook/addon-actions": "4.0.0-alpha.16",
- "@storybook/addon-backgrounds": "4.0.0-alpha.16",
- "@storybook/addon-centered": "4.0.0-alpha.16",
- "@storybook/addon-events": "4.0.0-alpha.16",
- "@storybook/addon-jest": "4.0.0-alpha.16",
- "@storybook/addon-knobs": "4.0.0-alpha.16",
- "@storybook/addon-links": "4.0.0-alpha.16",
- "@storybook/addon-notes": "4.0.0-alpha.16",
- "@storybook/addon-options": "4.0.0-alpha.16",
- "@storybook/addon-storyshots": "4.0.0-alpha.16",
- "@storybook/addon-storysource": "4.0.0-alpha.16",
- "@storybook/addon-viewport": "4.0.0-alpha.16",
- "@storybook/addons": "4.0.0-alpha.16",
- "@storybook/core": "4.0.0-alpha.16",
- "@storybook/core-events": "4.0.0-alpha.16",
- "@storybook/html": "4.0.0-alpha.16",
- "babel-core": "^6.26.3",
- "babel-runtime": "^6.26.0",
+ "@storybook/addon-a11y": "4.0.0-alpha.17",
+ "@storybook/addon-actions": "4.0.0-alpha.17",
+ "@storybook/addon-backgrounds": "4.0.0-alpha.17",
+ "@storybook/addon-centered": "4.0.0-alpha.17",
+ "@storybook/addon-events": "4.0.0-alpha.17",
+ "@storybook/addon-jest": "4.0.0-alpha.17",
+ "@storybook/addon-knobs": "4.0.0-alpha.17",
+ "@storybook/addon-links": "4.0.0-alpha.17",
+ "@storybook/addon-notes": "4.0.0-alpha.17",
+ "@storybook/addon-options": "4.0.0-alpha.17",
+ "@storybook/addon-storyshots": "4.0.0-alpha.17",
+ "@storybook/addon-storysource": "4.0.0-alpha.17",
+ "@storybook/addon-viewport": "4.0.0-alpha.17",
+ "@storybook/addons": "4.0.0-alpha.17",
+ "@storybook/core": "4.0.0-alpha.17",
+ "@storybook/core-events": "4.0.0-alpha.17",
+ "@storybook/html": "4.0.0-alpha.17",
"eventemitter3": "^3.1.0",
"format-json": "^1.0.3",
"global": "^4.3.2",
diff --git a/examples/html-kitchen-sink/stories/index.stories.js b/examples/html-kitchen-sink/stories/index.stories.js
index e0cae017c02..1dcedbdb352 100644
--- a/examples/html-kitchen-sink/stories/index.stories.js
+++ b/examples/html-kitchen-sink/stories/index.stories.js
@@ -1,5 +1,3 @@
-/* eslint-disable react/button-has-type */
-
import { document } from 'global';
import { storiesOf } from '@storybook/html';
import { action } from '@storybook/addon-actions';
diff --git a/examples/marko-cli/package.json b/examples/marko-cli/package.json
index bc7021e6de1..7ce1606d071 100644
--- a/examples/marko-cli/package.json
+++ b/examples/marko-cli/package.json
@@ -1,6 +1,6 @@
{
"name": "marko-cli",
- "version": "4.0.0-alpha.16",
+ "version": "4.0.0-alpha.17",
"private": true,
"description": "Demo of how to build an app using marko-starter",
"repository": {
@@ -23,13 +23,12 @@
"marko-widgets": "^7.0.1"
},
"devDependencies": {
- "@storybook/addon-actions": "4.0.0-alpha.16",
- "@storybook/addon-knobs": "4.0.0-alpha.16",
- "@storybook/addon-options": "4.0.0-alpha.16",
- "@storybook/addon-storysource": "4.0.0-alpha.16",
- "@storybook/addons": "4.0.0-alpha.16",
- "@storybook/marko": "4.0.0-alpha.16",
- "babel-core": "^6.26.3",
+ "@storybook/addon-actions": "4.0.0-alpha.17",
+ "@storybook/addon-knobs": "4.0.0-alpha.17",
+ "@storybook/addon-options": "4.0.0-alpha.17",
+ "@storybook/addon-storysource": "4.0.0-alpha.17",
+ "@storybook/addons": "4.0.0-alpha.17",
+ "@storybook/marko": "4.0.0-alpha.17",
"prettier": "^1.14.0",
"webpack": "^4.16.4"
}
diff --git a/examples/mithril-kitchen-sink/.babelrc b/examples/mithril-kitchen-sink/.babelrc
deleted file mode 100644
index 5e1d82404dd..00000000000
--- a/examples/mithril-kitchen-sink/.babelrc
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "plugins": [
- "transform-react-jsx"
- ]
-}
diff --git a/examples/mithril-kitchen-sink/package.json b/examples/mithril-kitchen-sink/package.json
index a7a5eaeaa92..03018517d6a 100644
--- a/examples/mithril-kitchen-sink/package.json
+++ b/examples/mithril-kitchen-sink/package.json
@@ -1,6 +1,6 @@
{
"name": "mithril-example",
- "version": "4.0.0-alpha.16",
+ "version": "4.0.0-alpha.17",
"private": true,
"scripts": {
"build-storybook": "build-storybook",
@@ -10,20 +10,18 @@
"mithril": "^1.1.6"
},
"devDependencies": {
- "@storybook/addon-actions": "4.0.0-alpha.16",
- "@storybook/addon-backgrounds": "4.0.0-alpha.16",
- "@storybook/addon-centered": "4.0.0-alpha.16",
- "@storybook/addon-knobs": "4.0.0-alpha.16",
- "@storybook/addon-links": "4.0.0-alpha.16",
- "@storybook/addon-notes": "4.0.0-alpha.16",
- "@storybook/addon-options": "4.0.0-alpha.16",
- "@storybook/addon-storyshots": "4.0.0-alpha.16",
- "@storybook/addon-storysource": "4.0.0-alpha.16",
- "@storybook/addon-viewport": "4.0.0-alpha.16",
- "@storybook/addons": "4.0.0-alpha.16",
- "@storybook/mithril": "4.0.0-alpha.16",
- "babel-core": "^6.26.3",
- "babel-plugin-transform-react-jsx": "^6.24.1",
+ "@storybook/addon-actions": "4.0.0-alpha.17",
+ "@storybook/addon-backgrounds": "4.0.0-alpha.17",
+ "@storybook/addon-centered": "4.0.0-alpha.17",
+ "@storybook/addon-knobs": "4.0.0-alpha.17",
+ "@storybook/addon-links": "4.0.0-alpha.17",
+ "@storybook/addon-notes": "4.0.0-alpha.17",
+ "@storybook/addon-options": "4.0.0-alpha.17",
+ "@storybook/addon-storyshots": "4.0.0-alpha.17",
+ "@storybook/addon-storysource": "4.0.0-alpha.17",
+ "@storybook/addon-viewport": "4.0.0-alpha.17",
+ "@storybook/addons": "4.0.0-alpha.17",
+ "@storybook/mithril": "4.0.0-alpha.17",
"webpack": "^4.16.4"
}
}
diff --git a/examples/official-storybook/components/ImportedPropsButton.js b/examples/official-storybook/components/ImportedPropsButton.js
index e12a73b6c95..a394f33a777 100644
--- a/examples/official-storybook/components/ImportedPropsButton.js
+++ b/examples/official-storybook/components/ImportedPropsButton.js
@@ -1,5 +1,3 @@
-/* eslint-disable react/prop-types */
-
import React from 'react';
import DocgenButton from './DocgenButton';
diff --git a/examples/official-storybook/config.js b/examples/official-storybook/config.js
index 7ba49608848..ef9842a7e62 100644
--- a/examples/official-storybook/config.js
+++ b/examples/official-storybook/config.js
@@ -18,7 +18,14 @@ setOptions({
theme: themes.dark,
});
-addDecorator(story => {story()});
+addDecorator(
+ (story, { kind }) =>
+ kind === 'Core|Errors' ? (
+ story()
+ ) : (
+ {story()}
+ )
+);
configureViewport({
viewports: {
diff --git a/examples/official-storybook/package.json b/examples/official-storybook/package.json
index 2a7a76d1e93..8ede91930ac 100644
--- a/examples/official-storybook/package.json
+++ b/examples/official-storybook/package.json
@@ -1,6 +1,6 @@
{
"name": "official-storybook",
- "version": "4.0.0-alpha.16",
+ "version": "4.0.0-alpha.17",
"private": true,
"scripts": {
"build-storybook": "build-storybook -c ./ -s built-storybooks",
@@ -12,28 +12,27 @@
"storybook": "start-storybook -p 9011 -c ./ -s built-storybooks"
},
"devDependencies": {
- "@storybook/addon-a11y": "4.0.0-alpha.16",
- "@storybook/addon-actions": "4.0.0-alpha.16",
- "@storybook/addon-backgrounds": "4.0.0-alpha.16",
- "@storybook/addon-centered": "4.0.0-alpha.16",
- "@storybook/addon-events": "4.0.0-alpha.16",
- "@storybook/addon-graphql": "4.0.0-alpha.16",
- "@storybook/addon-info": "4.0.0-alpha.16",
- "@storybook/addon-jest": "4.0.0-alpha.16",
- "@storybook/addon-knobs": "4.0.0-alpha.16",
- "@storybook/addon-links": "4.0.0-alpha.16",
- "@storybook/addon-notes": "4.0.0-alpha.16",
- "@storybook/addon-options": "4.0.0-alpha.16",
- "@storybook/addon-storyshots": "4.0.0-alpha.16",
- "@storybook/addon-storyshots-puppeteer": "4.0.0-alpha.16",
- "@storybook/addon-storysource": "4.0.0-alpha.16",
- "@storybook/addon-viewport": "4.0.0-alpha.16",
- "@storybook/addons": "4.0.0-alpha.16",
- "@storybook/components": "4.0.0-alpha.16",
- "@storybook/core-events": "4.0.0-alpha.16",
- "@storybook/node-logger": "4.0.0-alpha.16",
- "@storybook/react": "4.0.0-alpha.16",
- "babel-runtime": "^6.26.0",
+ "@storybook/addon-a11y": "4.0.0-alpha.17",
+ "@storybook/addon-actions": "4.0.0-alpha.17",
+ "@storybook/addon-backgrounds": "4.0.0-alpha.17",
+ "@storybook/addon-centered": "4.0.0-alpha.17",
+ "@storybook/addon-events": "4.0.0-alpha.17",
+ "@storybook/addon-graphql": "4.0.0-alpha.17",
+ "@storybook/addon-info": "4.0.0-alpha.17",
+ "@storybook/addon-jest": "4.0.0-alpha.17",
+ "@storybook/addon-knobs": "4.0.0-alpha.17",
+ "@storybook/addon-links": "4.0.0-alpha.17",
+ "@storybook/addon-notes": "4.0.0-alpha.17",
+ "@storybook/addon-options": "4.0.0-alpha.17",
+ "@storybook/addon-storyshots": "4.0.0-alpha.17",
+ "@storybook/addon-storyshots-puppeteer": "4.0.0-alpha.17",
+ "@storybook/addon-storysource": "4.0.0-alpha.17",
+ "@storybook/addon-viewport": "4.0.0-alpha.17",
+ "@storybook/addons": "4.0.0-alpha.17",
+ "@storybook/components": "4.0.0-alpha.17",
+ "@storybook/core-events": "4.0.0-alpha.17",
+ "@storybook/node-logger": "4.0.0-alpha.17",
+ "@storybook/react": "4.0.0-alpha.17",
"cors": "^2.8.4",
"emotion": "^9.2.6",
"emotion-theming": "^9.2.6",
diff --git a/examples/official-storybook/stories/__snapshots__/addon-actions.stories.storyshot b/examples/official-storybook/stories/__snapshots__/addon-actions.stories.storyshot
index 74b0823d8e6..f46a5aa2a95 100644
--- a/examples/official-storybook/stories/__snapshots__/addon-actions.stories.storyshot
+++ b/examples/official-storybook/stories/__snapshots__/addon-actions.stories.storyshot
@@ -3,102 +3,102 @@
exports[`Storyshots Addons|Actions All types 1`] = `
@@ -107,7 +107,7 @@ exports[`Storyshots Addons|Actions All types 1`] = `
exports[`Storyshots Addons|Actions Circular Payload 1`] = `
@@ -115,7 +115,7 @@ exports[`Storyshots Addons|Actions Circular Payload 1`] = `
exports[`Storyshots Addons|Actions Decorated action + config 1`] = `
@@ -123,7 +123,7 @@ exports[`Storyshots Addons|Actions Decorated action + config 1`] = `
exports[`Storyshots Addons|Actions Decorated action 1`] = `
@@ -131,7 +131,7 @@ exports[`Storyshots Addons|Actions Decorated action 1`] = `
exports[`Storyshots Addons|Actions Decorated actions + config 1`] = `
@@ -139,7 +139,7 @@ exports[`Storyshots Addons|Actions Decorated actions + config 1`] = `
exports[`Storyshots Addons|Actions Decorated actions 1`] = `
@@ -147,7 +147,7 @@ exports[`Storyshots Addons|Actions Decorated actions 1`] = `
exports[`Storyshots Addons|Actions Function Name 1`] = `
@@ -155,7 +155,7 @@ exports[`Storyshots Addons|Actions Function Name 1`] = `
exports[`Storyshots Addons|Actions Hello World 1`] = `
@@ -164,12 +164,12 @@ exports[`Storyshots Addons|Actions Hello World 1`] = `
exports[`Storyshots Addons|Actions Limit Action Output 1`] = `
@@ -178,7 +178,7 @@ exports[`Storyshots Addons|Actions Limit Action Output 1`] = `
exports[`Storyshots Addons|Actions Multiple actions + config 1`] = `
@@ -186,7 +186,7 @@ exports[`Storyshots Addons|Actions Multiple actions + config 1`] = `
exports[`Storyshots Addons|Actions Multiple actions 1`] = `
@@ -194,7 +194,7 @@ exports[`Storyshots Addons|Actions Multiple actions 1`] = `
exports[`Storyshots Addons|Actions Multiple actions, object + config 1`] = `
@@ -202,7 +202,7 @@ exports[`Storyshots Addons|Actions Multiple actions, object + config 1`] = `
exports[`Storyshots Addons|Actions Multiple actions, object 1`] = `
@@ -214,7 +214,7 @@ exports[`Storyshots Addons|Actions Persisting the action logger 1`] = `
Moving away from this story will persist the action logger
@@ -223,7 +223,7 @@ exports[`Storyshots Addons|Actions Persisting the action logger 1`] = `
exports[`Storyshots Addons|Actions Reserved keyword as name 1`] = `
@@ -231,7 +231,7 @@ exports[`Storyshots Addons|Actions Reserved keyword as name 1`] = `
exports[`Storyshots Addons|Actions configureActionsDepth 1`] = `
@@ -239,7 +239,7 @@ exports[`Storyshots Addons|Actions configureActionsDepth 1`] = `
exports[`Storyshots Addons|Actions.deprecated Decorated Action 1`] = `
diff --git a/examples/official-storybook/stories/__snapshots__/addon-events.stories.storyshot b/examples/official-storybook/stories/__snapshots__/addon-events.stories.storyshot
index 33ebbe96475..c2f4ff454e2 100644
--- a/examples/official-storybook/stories/__snapshots__/addon-events.stories.storyshot
+++ b/examples/official-storybook/stories/__snapshots__/addon-events.stories.storyshot
@@ -2,10 +2,10 @@
exports[`Storyshots Addons|Events Logger 1`] = `
Logger
@@ -15,10 +15,10 @@ exports[`Storyshots Addons|Events Logger 1`] = `
exports[`Storyshots Addons|Events.deprecated Logger 1`] = `
Logger
diff --git a/examples/official-storybook/stories/__snapshots__/addon-info.stories.storyshot b/examples/official-storybook/stories/__snapshots__/addon-info.stories.storyshot
index 493cb024a8b..d80f08c7b50 100644
--- a/examples/official-storybook/stories/__snapshots__/addon-info.stories.storyshot
+++ b/examples/official-storybook/stories/__snapshots__/addon-info.stories.storyshot
@@ -60,7 +60,7 @@ exports[`Storyshots Addons|Info.Decorator Use Info as story decorator 1`] = `
Story Source