Merge branch 'master' into tech/replace-html-webpack-plugin

# Conflicts:
#	lib/core/package.json
This commit is contained in:
Norbert de Langen 2018-08-05 18:02:22 +02:00
commit 7ce9178b4e
No known key found for this signature in database
GPG Key ID: 976651DA156C2825
66 changed files with 1972 additions and 1671 deletions

View File

@ -1,3 +1,48 @@
# 4.0.0-alpha.15
2018-August-03
#### Breaking Changes
- dependencies(vue): Update vue-loader to 15.x.x [#3911](https://github.com/storybooks/storybook/pull/3911)
#### Features
- Horizontal display for addon-knobs radios UI [#3922](https://github.com/storybooks/storybook/pull/3922)
- Add customizePage method to imageSnapshot [#3930](https://github.com/storybooks/storybook/pull/3930)
- Add additional device options to addon-viewport [#3918](https://github.com/storybooks/storybook/pull/3918)
- Support different extensions for "config" and "addons" files [#3913](https://github.com/storybooks/storybook/pull/3913)
- Add radio buttons knob type #3872 [#3894](https://github.com/storybooks/storybook/pull/3894)
- Added arrow to a11y addon HeaderBar [#3788](https://github.com/storybooks/storybook/pull/3788)
- Fix addons panel when using preact [#3882](https://github.com/storybooks/storybook/pull/3882)
#### Bug Fixes
- Fix typo in addon-viewport [#3942](https://github.com/storybooks/storybook/pull/3942)
- Fix knobs for React < 16.3 [#3866](https://github.com/storybooks/storybook/pull/3866)
#### Maintenance
- Improve BettercodeHub [#3941](https://github.com/storybooks/storybook/pull/3941)
- REFACTOR layout and REMOVE usplit component [#3914](https://github.com/storybooks/storybook/pull/3914)
- Group deprecated stories [#3846](https://github.com/storybooks/storybook/pull/3846)
- MOVE ui into it's own group [#3884](https://github.com/storybooks/storybook/pull/3884)
#### Dependency Upgrades
- Use react-dev-utils@next [#3852](https://github.com/storybooks/storybook/pull/3852)
# 3.4.10
2018-August-03
NOTE: `3.4.9` publish failed
#### Bug Fixes
- addons-jest: bug with the jest parameter [#3923](https://github.com/storybooks/storybook/pull/3923)
- addon-info: fix copy button styling [#3896](https://github.com/storybooks/storybook/pull/3896)
# 4.0.0-alpha.14
2018-July-11

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-a11y",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "a11y addon for storybook",
"keywords": [
"a11y",
@ -25,15 +25,15 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/client-logger": "4.0.0-alpha.14",
"@storybook/components": "4.0.0-alpha.14",
"@storybook/core-events": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/client-logger": "4.0.0-alpha.15",
"@storybook/components": "4.0.0-alpha.15",
"@storybook/core-events": "4.0.0-alpha.15",
"axe-core": "^3.0.3",
"babel-runtime": "^6.26.0",
"global": "^4.3.2",
"prop-types": "^15.6.1",
"react-emotion": "^9.1.3",
"prop-types": "^15.6.2",
"react-emotion": "^9.2.6",
"react-icons": "^2.2.7"
},
"peerDependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-actions",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Action Logger addon for storybook",
"keywords": [
"storybook"
@ -20,19 +20,19 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/components": "4.0.0-alpha.14",
"@storybook/core-events": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/components": "4.0.0-alpha.15",
"@storybook/core-events": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"deep-equal": "^1.0.1",
"emotion-theming": "^9.1.2",
"emotion-theming": "^9.2.6",
"global": "^4.3.2",
"lodash.isequal": "^4.5.0",
"make-error": "^1.3.4",
"prop-types": "^15.6.1",
"react-emotion": "^9.1.3",
"prop-types": "^15.6.2",
"react-emotion": "^9.2.6",
"react-inspector": "^2.3.0",
"uuid": "^3.2.1"
"uuid": "^3.3.2"
},
"peerDependencies": {
"react": "*"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-backgrounds",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "A storybook addon to show different backgrounds for your preview",
"keywords": [
"addon",
@ -24,16 +24,16 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/core-events": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/core-events": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"global": "^4.3.2",
"prop-types": "^15.6.1",
"react-emotion": "^9.1.3",
"prop-types": "^15.6.2",
"react-emotion": "^9.2.6",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"vue": "^2.5.16"
"vue": "^2.5.17"
},
"peerDependencies": {
"react": "*"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-centered",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook decorator to center components",
"license": "MIT",
"author": "Muhammed Thanish <mnmtanish@gmail.com>",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-events",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Add events to your Storybook stories.",
"keywords": [
"addon",
@ -19,12 +19,12 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/core-events": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/core-events": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"format-json": "^1.0.3",
"prop-types": "^15.6.1",
"react-emotion": "^9.1.3",
"prop-types": "^15.6.2",
"react-emotion": "^9.2.6",
"react-lifecycles-compat": "^3.0.4",
"react-textarea-autosize": "^6.1.0",
"util-deprecate": "^1.0.2"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-graphql",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook addon to display the GraphiQL IDE",
"keywords": [
"storybook"
@ -24,7 +24,7 @@
"global": "^4.3.2",
"graphiql": "^0.11.11",
"graphql": "^0.13.2",
"prop-types": "^15.6.1"
"prop-types": "^15.6.2"
},
"peerDependencies": {
"react": "*"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-info",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "A Storybook addon to show additional information for your stories.",
"repository": {
"type": "git",
@ -13,22 +13,22 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/client-logger": "4.0.0-alpha.14",
"@storybook/components": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/client-logger": "4.0.0-alpha.15",
"@storybook/components": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"core-js": "2.5.7",
"global": "^4.3.2",
"marksy": "^6.0.3",
"nested-object-assign": "^1.0.1",
"prop-types": "^15.6.1",
"prop-types": "^15.6.2",
"react-addons-create-fragment": "^15.5.3",
"react-emotion": "^9.1.3",
"react-emotion": "^9.2.6",
"react-lifecycles-compat": "^3.0.4",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"react-test-renderer": "^16.4.0"
"react-test-renderer": "^16.4.2"
},
"peerDependencies": {
"react": "*"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-jest",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "React storybook addon that show component jest report",
"keywords": [
"addon",
@ -25,12 +25,12 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/components": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/components": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"global": "^4.3.2",
"prop-types": "^15.6.1",
"react-emotion": "^9.1.3",
"prop-types": "^15.6.2",
"react-emotion": "^9.2.6",
"util-deprecate": "^1.0.2"
},
"peerDependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-knobs",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook Addon Prop Editor Component",
"repository": {
"type": "git",
@ -13,24 +13,24 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/components": "4.0.0-alpha.14",
"@storybook/core-events": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/components": "4.0.0-alpha.15",
"@storybook/core-events": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"copy-to-clipboard": "^3.0.8",
"escape-html": "^1.0.3",
"fast-deep-equal": "^2.0.1",
"global": "^4.3.2",
"prop-types": "^15.6.1",
"prop-types": "^15.6.2",
"qs": "^6.5.2",
"react-color": "^2.14.1",
"react-datetime": "^2.14.0",
"react-emotion": "^9.1.3",
"react-datetime": "^2.15.0",
"react-emotion": "^9.2.6",
"react-lifecycles-compat": "^3.0.4",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"vue": "^2.5.16"
"vue": "^2.5.17"
},
"peerDependencies": {
"react": "*"

View File

@ -6,6 +6,11 @@ const styles = {
fontSize: 11,
padding: '5px',
},
group: {
display: 'flex',
flexWrap: 'wrap',
alignItems: 'center',
},
};
class RadiosType extends Component {
@ -42,7 +47,7 @@ class RadiosType extends Component {
render() {
const { knob, onChange } = this.props;
return <div>{this.renderRadioButtonList(knob, onChange)}</div>;
return <div style={styles.group}>{this.renderRadioButtonList(knob, onChange)}</div>;
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-links",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Story Links addon for storybook",
"keywords": [
"storybook"
@ -20,12 +20,12 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/components": "4.0.0-alpha.14",
"@storybook/core-events": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/components": "4.0.0-alpha.15",
"@storybook/core-events": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"global": "^4.3.2",
"prop-types": "^15.6.1"
"prop-types": "^15.6.2"
},
"peerDependencies": {
"react": "*"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-notes",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Write notes for your Storybook stories.",
"keywords": [
"addon",
@ -18,11 +18,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"marked": "^0.4.0",
"prop-types": "^15.6.1",
"react-emotion": "^9.1.3"
"prop-types": "^15.6.2",
"react-emotion": "^9.2.6"
},
"peerDependencies": {
"react": "*"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-options",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Options addon for storybook",
"keywords": [
"storybook"
@ -19,7 +19,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0"
},
"peerDependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-storyshots",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "StoryShots is a Jest Snapshot Testing Addon for Storybook.",
"repository": {
"type": "git",
@ -16,7 +16,7 @@
"storybook": "start-storybook -p 6006"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"glob": "^7.1.2",
"global": "^4.3.2",
@ -24,11 +24,11 @@
"read-pkg-up": "^3.0.0"
},
"devDependencies": {
"@storybook/addon-actions": "4.0.0-alpha.14",
"@storybook/addon-links": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/react": "4.0.0-alpha.14",
"@storybook/addon-actions": "4.0.0-alpha.15",
"@storybook/addon-links": "4.0.0-alpha.15",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/react": "4.0.0-alpha.15",
"enzyme-to-json": "^3.3.4",
"react": "^16.4.0"
"react": "^16.4.2"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-storyshots-puppeteer",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Image snappshots addition to StoryShots base on puppeteer",
"repository": {
"type": "git",
@ -13,10 +13,10 @@
"prepare": "node ../../../scripts/prepare.js"
},
"dependencies": {
"@storybook/node-logger": "4.0.0-alpha.14",
"@storybook/node-logger": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"jest-image-snapshot": "^2.4.2",
"puppeteer": "^1.4.0"
"jest-image-snapshot": "^2.4.3",
"puppeteer": "^1.6.2"
},
"peerDependencies": {
"@storybook/addon-storyshots": "4.0.0-alpha.9"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-storysource",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Stories addon for storybook",
"keywords": [
"storybook"
@ -20,13 +20,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/components": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/components": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"estraverse": "^4.2.0",
"loader-utils": "^1.1.0",
"prettier": "^1.13.4",
"prop-types": "^15.6.1",
"prettier": "^1.14.0",
"prop-types": "^15.6.2",
"react-syntax-highlighter": "^7.0.4"
},
"peerDependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addon-viewport",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook addon to change the viewport size to mobile",
"keywords": [
"storybook"
@ -11,13 +11,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/components": "4.0.0-alpha.14",
"@storybook/core-events": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/components": "4.0.0-alpha.15",
"@storybook/core-events": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"global": "^4.3.2",
"prop-types": "^15.6.1",
"react-emotion": "^9.1.3",
"prop-types": "^15.6.2",
"react-emotion": "^9.2.6",
"util-deprecate": "^1.0.2"
},
"peerDependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/angular",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook for Angular: Develop Angular Components in isolation with Hot Reloading.",
"homepage": "https://github.com/storybooks/storybook/tree/master/apps/angular",
"bugs": {
@ -22,16 +22,16 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/core": "4.0.0-alpha.14",
"@storybook/node-logger": "4.0.0-alpha.14",
"@storybook/core": "4.0.0-alpha.15",
"@storybook/node-logger": "4.0.0-alpha.15",
"angular2-template-loader": "^0.6.2",
"babel-runtime": "^6.23.0",
"core-js": "^2.5.7",
"global": "^4.3.2",
"react": "^16.4.0",
"react-dom": "^16.4.0",
"sass-loader": "^7.0.2",
"ts-loader": "^4.3.1",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"sass-loader": "^7.1.0",
"ts-loader": "^4.4.2",
"zone.js": "^0.8.26"
},
"peerDependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/html",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
"homepage": "https://github.com/storybooks/storybook/tree/master/apps/html",
"bugs": {
@ -21,11 +21,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/core": "4.0.0-alpha.14",
"@storybook/core": "4.0.0-alpha.15",
"common-tags": "^1.8.0",
"global": "^4.3.2",
"html-loader": "^0.5.5",
"react": "^16.4.0",
"react-dom": "^16.4.0"
"react": "^16.4.2",
"react-dom": "^16.4.2"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/marko",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook for Marko: Develop Marko Component in isolation with Hot Reloading.",
"homepage": "https://github.com/storybooks/storybook/tree/master/app/marko",
"bugs": {
@ -22,13 +22,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/core": "4.0.0-alpha.14",
"@storybook/core": "4.0.0-alpha.15",
"common-tags": "^1.8.0",
"global": "^4.3.2",
"marko-loader": "^1.3.3",
"raw-loader": "^0.5.1",
"react": "^16.4.0",
"react-dom": "^16.4.0"
"react": "^16.4.2",
"react-dom": "^16.4.2"
},
"peerDependencies": {
"marko": "^4.10.0",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/mithril",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook for Mithril: Develop Mithril Component in isolation.",
"homepage": "https://github.com/storybooks/storybook/tree/master/app/mithril",
"bugs": {
@ -22,11 +22,11 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/core": "4.0.0-alpha.14",
"@storybook/core": "4.0.0-alpha.15",
"common-tags": "^1.8.0",
"global": "^4.3.2",
"react": "^16.4.0",
"react-dom": "^16.4.0"
"react": "^16.4.2",
"react-dom": "^16.4.2"
},
"devDependencies": {
"mithril": "^1.1.6"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/polymer",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook for Polymer: Develop Polymer components in isolation with Hot Reloading.",
"homepage": "https://github.com/storybooks/storybook/tree/master/apps/polymer",
"bugs": {
@ -21,17 +21,17 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/core": "4.0.0-alpha.14",
"@storybook/core": "4.0.0-alpha.15",
"@webcomponents/webcomponentsjs": "^1.2.0",
"babel-polyfill": "^6.26.0",
"common-tags": "^1.8.0",
"global": "^4.3.2",
"react": "^16.4.0",
"react-dom": "^16.4.0"
"react": "^16.4.2",
"react-dom": "^16.4.2"
},
"devDependencies": {
"lit-html": "^0.10.0",
"polymer-webpack-loader": "^2.0.2"
"lit-html": "^0.10.2",
"polymer-webpack-loader": "^2.0.3"
},
"peerDependencies": {
"lit-html": "0.10.0",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/react-native",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "A better way to develop React Native Components for your app",
"keywords": [
"react",
@ -25,13 +25,13 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/channel-websocket": "4.0.0-alpha.14",
"@storybook/core": "4.0.0-alpha.14",
"@storybook/core-events": "4.0.0-alpha.14",
"@storybook/ui": "4.0.0-alpha.14",
"babel-loader": "^7.1.4",
"babel-plugin-macros": "^2.2.2",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/channel-websocket": "4.0.0-alpha.15",
"@storybook/core": "4.0.0-alpha.15",
"@storybook/core-events": "4.0.0-alpha.15",
"@storybook/ui": "4.0.0-alpha.15",
"babel-loader": "^7.1.5",
"babel-plugin-macros": "^2.3.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",
@ -45,7 +45,7 @@
"babel-register": "^6.26.0",
"babel-runtime": "^6.26.0",
"case-sensitive-paths-webpack-plugin": "^2.1.2",
"commander": "^2.15.1",
"commander": "^2.16.0",
"dotenv-webpack": "^1.5.7",
"ejs": "^2.6.1",
"express": "^4.16.3",
@ -53,18 +53,18 @@
"generate-page-webpack-plugin": "^1.0.0",
"global": "^4.3.2",
"json5": "^1.0.1",
"prop-types": "^15.6.1",
"prop-types": "^15.6.2",
"raw-loader": "^0.5.1",
"react-dev-utils": "^6.0.0-next.3e165448",
"react-native-compat": "^1.0.0",
"react-native-iphone-x-helper": "^1.0.3",
"shelljs": "^0.8.2",
"universal-dotenv": "^1.8.0",
"url-parse": "^1.4.0",
"uuid": "^3.2.1",
"webpack": "^4.10.2",
"universal-dotenv": "^1.8.2",
"url-parse": "^1.4.3",
"uuid": "^3.3.2",
"webpack": "^4.16.4",
"webpack-dev-middleware": "^3.1.3",
"webpack-hot-middleware": "^2.22.2",
"webpack-hot-middleware": "^2.22.3",
"ws": "^5.2.0"
},
"devDependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/react",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
"homepage": "https://github.com/storybooks/storybook/tree/master/app/react",
"bugs": {
@ -22,16 +22,16 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/core": "4.0.0-alpha.14",
"@storybook/core": "4.0.0-alpha.15",
"babel-plugin-react-docgen": "^2.0.0-rc.1",
"babel-preset-react": "^6.24.1",
"common-tags": "^1.8.0",
"emotion": "^9.1.3",
"emotion": "^9.2.6",
"global": "^4.3.2",
"lodash.flattendeep": "^4.4.0",
"prop-types": "^15.6.1",
"prop-types": "^15.6.2",
"react-dev-utils": "^6.0.0-next.3e165448",
"react-emotion": "^9.1.3"
"react-emotion": "^9.2.6"
},
"peerDependencies": {
"react": ">=15.0.0",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/vue",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook for Vue: Develop Vue Component in isolation with Hot Reloading.",
"homepage": "https://github.com/storybooks/storybook/tree/master/apps/vue",
"bugs": {
@ -22,16 +22,16 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/core": "4.0.0-alpha.14",
"@storybook/core": "4.0.0-alpha.15",
"common-tags": "^1.8.0",
"global": "^4.3.2",
"react": "^16.4.0",
"react-dom": "^16.4.0"
"react": "^16.4.2",
"react-dom": "^16.4.2"
},
"devDependencies": {
"vue": "^2.5.16",
"vue": "^2.5.17",
"vue-loader": "15.x.x",
"vue-template-compiler": "^2.5.16"
"vue-template-compiler": "^2.5.17"
},
"peerDependencies": {
"vue": "2.5.16",

View File

@ -1,6 +1,6 @@
{
"name": "angular-cli",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"private": true,
"license": "MIT",
"scripts": {
@ -38,34 +38,34 @@
}
},
"dependencies": {
"@angular/common": "^6.0.3",
"@angular/compiler": "^6.0.3",
"@angular/core": "^6.0.3",
"@angular/forms": "^6.0.3",
"@angular/platform-browser": "^6.0.3",
"@angular/platform-browser-dynamic": "^6.0.3",
"@ngrx/store": "^6.0.1",
"@angular/common": "^6.1.1",
"@angular/compiler": "^6.1.1",
"@angular/core": "^6.1.1",
"@angular/forms": "^6.1.1",
"@angular/platform-browser": "^6.1.1",
"@angular/platform-browser-dynamic": "^6.1.1",
"@ngrx/store": "^6.1.0",
"core-js": "^2.5.7",
"rxjs": "^6.2.0",
"rxjs-compat": "^6.2.0",
"rxjs": "^6.2.2",
"rxjs-compat": "^6.2.2",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.6.0",
"@angular/cli": "^6.0.7",
"@angular/compiler-cli": "^6.0.3",
"@storybook/addon-actions": "4.0.0-alpha.14",
"@storybook/addon-backgrounds": "4.0.0-alpha.14",
"@storybook/addon-centered": "4.0.0-alpha.14",
"@storybook/addon-jest": "4.0.0-alpha.14",
"@storybook/addon-knobs": "4.0.0-alpha.14",
"@storybook/addon-links": "4.0.0-alpha.14",
"@storybook/addon-notes": "4.0.0-alpha.14",
"@storybook/addon-options": "4.0.0-alpha.14",
"@storybook/addon-storyshots": "4.0.0-alpha.14",
"@storybook/addon-storysource": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/angular": "4.0.0-alpha.14",
"@angular/cli": "^6.1.2",
"@angular/compiler-cli": "^6.1.1",
"@storybook/addon-actions": "4.0.0-alpha.15",
"@storybook/addon-backgrounds": "4.0.0-alpha.15",
"@storybook/addon-centered": "4.0.0-alpha.15",
"@storybook/addon-jest": "4.0.0-alpha.15",
"@storybook/addon-knobs": "4.0.0-alpha.15",
"@storybook/addon-links": "4.0.0-alpha.15",
"@storybook/addon-notes": "4.0.0-alpha.15",
"@storybook/addon-options": "4.0.0-alpha.15",
"@storybook/addon-storyshots": "4.0.0-alpha.15",
"@storybook/addon-storysource": "4.0.0-alpha.15",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/angular": "4.0.0-alpha.15",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "^2.0.3",
"@types/jest": "^22.2.3",
@ -78,7 +78,7 @@
"jasmine-spec-reporter": "~4.2.1",
"jest": "^22.4.4",
"jest-preset-angular": "^5.2.2",
"protractor": "~5.3.2",
"protractor": "~5.4.0",
"ts-node": "~6.1.0",
"typescript": "^2.9.1"
}

View File

@ -16,9 +16,9 @@ exports[`Storyshots Custom|Dependencies inputs and inject dependencies 1`] = `
</div>
<div>
Injector: function Injector_(view, elDef) {
this.view = view;
this.elDef = elDef;
}
this.view = view;
this.elDef = elDef;
}
</div>
<div>
ElementRef: {"nativeElement":{}}
@ -47,9 +47,9 @@ exports[`Storyshots Custom|Dependencies inputs and inject dependencies with knob
</div>
<div>
Injector: function Injector_(view, elDef) {
this.view = view;
this.elDef = elDef;
}
this.view = view;
this.elDef = elDef;
}
</div>
<div>
ElementRef: {"nativeElement":{}}

View File

@ -1,6 +1,6 @@
{
"name": "cra-kitchen-sink",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"private": true,
"scripts": {
"build": "react-scripts build",
@ -12,33 +12,33 @@
},
"dependencies": {
"global": "^4.3.2",
"prop-types": "^15.6.1",
"react": "^16.4.0",
"react-dom": "^16.4.0",
"prop-types": "^15.6.2",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"react-lifecycles-compat": "^3.0.4"
},
"devDependencies": {
"@storybook/addon-a11y": "4.0.0-alpha.14",
"@storybook/addon-actions": "4.0.0-alpha.14",
"@storybook/addon-backgrounds": "4.0.0-alpha.14",
"@storybook/addon-centered": "4.0.0-alpha.14",
"@storybook/addon-events": "4.0.0-alpha.14",
"@storybook/addon-info": "4.0.0-alpha.14",
"@storybook/addon-jest": "4.0.0-alpha.14",
"@storybook/addon-knobs": "4.0.0-alpha.14",
"@storybook/addon-links": "4.0.0-alpha.14",
"@storybook/addon-notes": "4.0.0-alpha.14",
"@storybook/addon-options": "4.0.0-alpha.14",
"@storybook/addon-storyshots": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/client-logger": "4.0.0-alpha.14",
"@storybook/react": "4.0.0-alpha.14",
"@storybook/addon-a11y": "4.0.0-alpha.15",
"@storybook/addon-actions": "4.0.0-alpha.15",
"@storybook/addon-backgrounds": "4.0.0-alpha.15",
"@storybook/addon-centered": "4.0.0-alpha.15",
"@storybook/addon-events": "4.0.0-alpha.15",
"@storybook/addon-info": "4.0.0-alpha.15",
"@storybook/addon-jest": "4.0.0-alpha.15",
"@storybook/addon-knobs": "4.0.0-alpha.15",
"@storybook/addon-links": "4.0.0-alpha.15",
"@storybook/addon-notes": "4.0.0-alpha.15",
"@storybook/addon-options": "4.0.0-alpha.15",
"@storybook/addon-storyshots": "4.0.0-alpha.15",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/client-logger": "4.0.0-alpha.15",
"@storybook/react": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.0",
"enzyme-to-json": "^3.3.4",
"jest": "^20.0.4",
"react-scripts": "^1.1.4",
"webpack": "^4.10.2"
"webpack": "^4.16.4"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "html-kitchen-sink",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"private": true,
"description": "",
"keywords": [],
@ -13,24 +13,24 @@
"storybook": "start-storybook -p 9006"
},
"devDependencies": {
"@storybook/addon-a11y": "4.0.0-alpha.14",
"@storybook/addon-actions": "4.0.0-alpha.14",
"@storybook/addon-backgrounds": "4.0.0-alpha.14",
"@storybook/addon-centered": "4.0.0-alpha.14",
"@storybook/addon-events": "4.0.0-alpha.14",
"@storybook/addon-jest": "4.0.0-alpha.14",
"@storybook/addon-knobs": "4.0.0-alpha.14",
"@storybook/addon-links": "4.0.0-alpha.14",
"@storybook/addon-notes": "4.0.0-alpha.14",
"@storybook/addon-options": "4.0.0-alpha.14",
"@storybook/addon-storyshots": "4.0.0-alpha.14",
"@storybook/addon-storysource": "4.0.0-alpha.14",
"@storybook/addon-viewport": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/core": "4.0.0-alpha.14",
"@storybook/core-events": "4.0.0-alpha.14",
"@storybook/html": "4.0.0-alpha.14",
"babel-core": "^6.26.0",
"@storybook/addon-a11y": "4.0.0-alpha.15",
"@storybook/addon-actions": "4.0.0-alpha.15",
"@storybook/addon-backgrounds": "4.0.0-alpha.15",
"@storybook/addon-centered": "4.0.0-alpha.15",
"@storybook/addon-events": "4.0.0-alpha.15",
"@storybook/addon-jest": "4.0.0-alpha.15",
"@storybook/addon-knobs": "4.0.0-alpha.15",
"@storybook/addon-links": "4.0.0-alpha.15",
"@storybook/addon-notes": "4.0.0-alpha.15",
"@storybook/addon-options": "4.0.0-alpha.15",
"@storybook/addon-storyshots": "4.0.0-alpha.15",
"@storybook/addon-storysource": "4.0.0-alpha.15",
"@storybook/addon-viewport": "4.0.0-alpha.15",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/core": "4.0.0-alpha.15",
"@storybook/core-events": "4.0.0-alpha.15",
"@storybook/html": "4.0.0-alpha.15",
"babel-core": "^6.26.3",
"babel-runtime": "^6.26.0",
"eventemitter3": "^3.1.0",
"format-json": "^1.0.3",

View File

@ -1,6 +1,6 @@
{
"name": "marko-cli",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"private": true,
"description": "Demo of how to build an app using marko-starter",
"repository": {
@ -18,19 +18,19 @@
"prettier": "prettier src/**/*.{js,css,less} *.js --write"
},
"dependencies": {
"marko": "^4.10.0",
"marko": "^4.12.4",
"marko-starter": "^1.0.0",
"marko-widgets": "^7.0.1"
},
"devDependencies": {
"@storybook/addon-actions": "4.0.0-alpha.14",
"@storybook/addon-knobs": "4.0.0-alpha.14",
"@storybook/addon-options": "4.0.0-alpha.14",
"@storybook/addon-storysource": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/marko": "4.0.0-alpha.14",
"babel-core": "^6.26.0",
"prettier": "^1.13.4",
"webpack": "^4.10.2"
"@storybook/addon-actions": "4.0.0-alpha.15",
"@storybook/addon-knobs": "4.0.0-alpha.15",
"@storybook/addon-options": "4.0.0-alpha.15",
"@storybook/addon-storysource": "4.0.0-alpha.15",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/marko": "4.0.0-alpha.15",
"babel-core": "^6.26.3",
"prettier": "^1.14.0",
"webpack": "^4.16.4"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "mithril-example",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"private": true,
"scripts": {
"build-storybook": "build-storybook",
@ -10,20 +10,20 @@
"mithril": "^1.1.6"
},
"devDependencies": {
"@storybook/addon-actions": "4.0.0-alpha.14",
"@storybook/addon-backgrounds": "4.0.0-alpha.14",
"@storybook/addon-centered": "4.0.0-alpha.14",
"@storybook/addon-knobs": "4.0.0-alpha.14",
"@storybook/addon-links": "4.0.0-alpha.14",
"@storybook/addon-notes": "4.0.0-alpha.14",
"@storybook/addon-options": "4.0.0-alpha.14",
"@storybook/addon-storyshots": "4.0.0-alpha.14",
"@storybook/addon-storysource": "4.0.0-alpha.14",
"@storybook/addon-viewport": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/mithril": "4.0.0-alpha.14",
"@storybook/addon-actions": "4.0.0-alpha.15",
"@storybook/addon-backgrounds": "4.0.0-alpha.15",
"@storybook/addon-centered": "4.0.0-alpha.15",
"@storybook/addon-knobs": "4.0.0-alpha.15",
"@storybook/addon-links": "4.0.0-alpha.15",
"@storybook/addon-notes": "4.0.0-alpha.15",
"@storybook/addon-options": "4.0.0-alpha.15",
"@storybook/addon-storyshots": "4.0.0-alpha.15",
"@storybook/addon-storysource": "4.0.0-alpha.15",
"@storybook/addon-viewport": "4.0.0-alpha.15",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/mithril": "4.0.0-alpha.15",
"babel-core": "^6.26.3",
"babel-plugin-transform-react-jsx": "^6.24.1",
"webpack": "^4.10.2"
"webpack": "^4.16.4"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "official-storybook",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"private": true,
"scripts": {
"build-storybook": "build-storybook -c ./ -s built-storybooks",
@ -12,31 +12,31 @@
"storybook": "start-storybook -p 9011 -c ./ -s built-storybooks"
},
"devDependencies": {
"@storybook/addon-a11y": "4.0.0-alpha.14",
"@storybook/addon-actions": "4.0.0-alpha.14",
"@storybook/addon-backgrounds": "4.0.0-alpha.14",
"@storybook/addon-centered": "4.0.0-alpha.14",
"@storybook/addon-events": "4.0.0-alpha.14",
"@storybook/addon-graphql": "4.0.0-alpha.14",
"@storybook/addon-info": "4.0.0-alpha.14",
"@storybook/addon-jest": "4.0.0-alpha.14",
"@storybook/addon-knobs": "4.0.0-alpha.14",
"@storybook/addon-links": "4.0.0-alpha.14",
"@storybook/addon-notes": "4.0.0-alpha.14",
"@storybook/addon-options": "4.0.0-alpha.14",
"@storybook/addon-storyshots": "4.0.0-alpha.14",
"@storybook/addon-storyshots-puppeteer": "4.0.0-alpha.14",
"@storybook/addon-storysource": "4.0.0-alpha.14",
"@storybook/addon-viewport": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/components": "4.0.0-alpha.14",
"@storybook/core-events": "4.0.0-alpha.14",
"@storybook/node-logger": "4.0.0-alpha.14",
"@storybook/react": "4.0.0-alpha.14",
"@storybook/addon-a11y": "4.0.0-alpha.15",
"@storybook/addon-actions": "4.0.0-alpha.15",
"@storybook/addon-backgrounds": "4.0.0-alpha.15",
"@storybook/addon-centered": "4.0.0-alpha.15",
"@storybook/addon-events": "4.0.0-alpha.15",
"@storybook/addon-graphql": "4.0.0-alpha.15",
"@storybook/addon-info": "4.0.0-alpha.15",
"@storybook/addon-jest": "4.0.0-alpha.15",
"@storybook/addon-knobs": "4.0.0-alpha.15",
"@storybook/addon-links": "4.0.0-alpha.15",
"@storybook/addon-notes": "4.0.0-alpha.15",
"@storybook/addon-options": "4.0.0-alpha.15",
"@storybook/addon-storyshots": "4.0.0-alpha.15",
"@storybook/addon-storyshots-puppeteer": "4.0.0-alpha.15",
"@storybook/addon-storysource": "4.0.0-alpha.15",
"@storybook/addon-viewport": "4.0.0-alpha.15",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/components": "4.0.0-alpha.15",
"@storybook/core-events": "4.0.0-alpha.15",
"@storybook/node-logger": "4.0.0-alpha.15",
"@storybook/react": "4.0.0-alpha.15",
"babel-runtime": "^6.26.0",
"cors": "^2.8.4",
"emotion": "^9.1.3",
"emotion-theming": "^9.1.2",
"emotion": "^9.2.6",
"emotion-theming": "^9.2.6",
"enzyme-to-json": "^3.3.4",
"eventemitter3": "^3.1.0",
"express": "^4.16.3",
@ -45,12 +45,12 @@
"global": "^4.3.2",
"graphql": "^0.13.2",
"paths.macro": "^2.0.2",
"prop-types": "^15.6.1",
"react": "^16.4.0",
"react-chromatic": "^0.8.3",
"react-dom": "^16.4.0",
"react-emotion": "^9.1.3",
"uuid": "^3.2.1",
"webpack": "^4.10.2"
"prop-types": "^15.6.2",
"react": "^16.4.2",
"react-chromatic": "^0.8.4",
"react-dom": "^16.4.2",
"react-emotion": "^9.2.6",
"uuid": "^3.3.2",
"webpack": "^4.16.4"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "polymer-cli",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"private": true,
"scripts": {
"build-storybook": "build-storybook",
@ -9,27 +9,27 @@
},
"dependencies": {
"@polymer/polymer": "^2.6.0",
"@storybook/addon-actions": "4.0.0-alpha.14",
"@storybook/addon-backgrounds": "4.0.0-alpha.14",
"@storybook/addon-knobs": "4.0.0-alpha.14",
"@storybook/addon-links": "4.0.0-alpha.14",
"@storybook/addon-notes": "4.0.0-alpha.14",
"@storybook/addon-options": "4.0.0-alpha.14",
"@storybook/addon-storysource": "4.0.0-alpha.14",
"@storybook/addon-viewport": "4.0.0-alpha.14",
"@storybook/polymer": "4.0.0-alpha.14",
"@storybook/addon-actions": "4.0.0-alpha.15",
"@storybook/addon-backgrounds": "4.0.0-alpha.15",
"@storybook/addon-knobs": "4.0.0-alpha.15",
"@storybook/addon-links": "4.0.0-alpha.15",
"@storybook/addon-notes": "4.0.0-alpha.15",
"@storybook/addon-options": "4.0.0-alpha.15",
"@storybook/addon-storysource": "4.0.0-alpha.15",
"@storybook/addon-viewport": "4.0.0-alpha.15",
"@storybook/polymer": "4.0.0-alpha.15",
"@webcomponents/webcomponentsjs": "^1.2.0",
"global": "^4.3.2",
"lit-html": "^0.10.0",
"polymer-webpack-loader": "^2.0.2",
"webpack": "^4.10.2"
"lit-html": "^0.10.2",
"polymer-webpack-loader": "^2.0.3",
"webpack": "^4.16.4"
},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-loader": "^7.1.5",
"babel-runtime": "^6.26.0",
"copy-webpack-plugin": "^4.5.1",
"copy-webpack-plugin": "^4.5.2",
"html-webpack-plugin": "^3.2.0",
"webpack-dev-server": "^3.1.4"
"webpack-dev-server": "^3.1.5"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "vue-example",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"private": true,
"scripts": {
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
@ -9,31 +9,31 @@
"storybook": "start-storybook -p 9009 -s public"
},
"dependencies": {
"vue": "^2.5.16",
"vue": "^2.5.17",
"vuex": "^3.0.0"
},
"devDependencies": {
"@storybook/addon-actions": "4.0.0-alpha.14",
"@storybook/addon-backgrounds": "4.0.0-alpha.14",
"@storybook/addon-centered": "4.0.0-alpha.14",
"@storybook/addon-knobs": "4.0.0-alpha.14",
"@storybook/addon-links": "4.0.0-alpha.14",
"@storybook/addon-notes": "4.0.0-alpha.14",
"@storybook/addon-options": "4.0.0-alpha.14",
"@storybook/addon-storyshots": "4.0.0-alpha.14",
"@storybook/addon-storysource": "4.0.0-alpha.14",
"@storybook/addon-viewport": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/vue": "4.0.0-alpha.14",
"@storybook/addon-actions": "4.0.0-alpha.15",
"@storybook/addon-backgrounds": "4.0.0-alpha.15",
"@storybook/addon-centered": "4.0.0-alpha.15",
"@storybook/addon-knobs": "4.0.0-alpha.15",
"@storybook/addon-links": "4.0.0-alpha.15",
"@storybook/addon-notes": "4.0.0-alpha.15",
"@storybook/addon-options": "4.0.0-alpha.15",
"@storybook/addon-storyshots": "4.0.0-alpha.15",
"@storybook/addon-storysource": "4.0.0-alpha.15",
"@storybook/addon-viewport": "4.0.0-alpha.15",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/vue": "4.0.0-alpha.15",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-loader": "^7.1.5",
"babel-preset-env": "^1.7.0",
"babel-preset-vue": "^2.0.2",
"cross-env": "^5.1.6",
"cross-env": "^5.2.0",
"file-loader": "^1.1.11",
"svg-url-loader": "^2.3.2",
"vue-loader": "^15.2.4",
"webpack": "^4.10.2",
"webpack-dev-server": "^3.1.4"
"webpack": "^4.16.4",
"webpack-dev-server": "^3.1.5"
}
}

View File

@ -7,5 +7,5 @@
}
},
"concurrency": 1,
"version": "4.0.0-alpha.14"
"version": "4.0.0-alpha.15"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/addons",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook addons store",
"keywords": [
"storybook"
@ -20,8 +20,8 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/channels": "4.0.0-alpha.14",
"@storybook/components": "4.0.0-alpha.14",
"@storybook/channels": "4.0.0-alpha.15",
"@storybook/components": "4.0.0-alpha.15",
"global": "^4.3.2",
"util-deprecate": "^1.0.2"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/channel-postmessage",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "",
"license": "MIT",
"main": "dist/index.js",
@ -9,7 +9,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/channels": "4.0.0-alpha.14",
"@storybook/channels": "4.0.0-alpha.15",
"global": "^4.3.2",
"json-stringify-safe": "^5.0.1"
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/channel-websocket",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "",
"license": "MIT",
"main": "dist/index.js",
@ -9,7 +9,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/channels": "4.0.0-alpha.14",
"@storybook/channels": "4.0.0-alpha.15",
"global": "^4.3.2"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/channels",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "",
"license": "MIT",
"main": "dist/index.js",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/cli",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook's CLI - easiest method of adding storybook to your projects",
"keywords": [
"cli",
@ -25,16 +25,16 @@
"test-latest-cra": "cd test && ./test_latest_cra.sh"
},
"dependencies": {
"@storybook/codemod": "4.0.0-alpha.14",
"@storybook/codemod": "4.0.0-alpha.15",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-register": "^6.26.0",
"babel-runtime": "^6.26.0",
"chalk": "^2.4.1",
"child-process-promise": "^2.2.1",
"commander": "^2.15.1",
"commander": "^2.16.0",
"cross-spawn": "^6.0.5",
"jscodeshift": "^0.5.0",
"jscodeshift": "^0.5.1",
"json5": "^1.0.1",
"merge-dirs": "^0.2.1",
"semver": "^5.5.0",
@ -42,28 +42,28 @@
"update-notifier": "^2.5.0"
},
"devDependencies": {
"@storybook/addon-actions": "4.0.0-alpha.14",
"@storybook/addon-centered": "4.0.0-alpha.14",
"@storybook/addon-graphql": "4.0.0-alpha.14",
"@storybook/addon-info": "4.0.0-alpha.14",
"@storybook/addon-knobs": "4.0.0-alpha.14",
"@storybook/addon-links": "4.0.0-alpha.14",
"@storybook/addon-notes": "4.0.0-alpha.14",
"@storybook/addon-options": "4.0.0-alpha.14",
"@storybook/addon-storyshots": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/angular": "4.0.0-alpha.14",
"@storybook/channel-postmessage": "4.0.0-alpha.14",
"@storybook/channel-websocket": "4.0.0-alpha.14",
"@storybook/channels": "4.0.0-alpha.14",
"@storybook/html": "4.0.0-alpha.14",
"@storybook/marko": "4.0.0-alpha.14",
"@storybook/mithril": "4.0.0-alpha.14",
"@storybook/polymer": "4.0.0-alpha.14",
"@storybook/react": "4.0.0-alpha.14",
"@storybook/react-native": "4.0.0-alpha.14",
"@storybook/ui": "4.0.0-alpha.14",
"@storybook/vue": "4.0.0-alpha.14",
"@storybook/addon-actions": "4.0.0-alpha.15",
"@storybook/addon-centered": "4.0.0-alpha.15",
"@storybook/addon-graphql": "4.0.0-alpha.15",
"@storybook/addon-info": "4.0.0-alpha.15",
"@storybook/addon-knobs": "4.0.0-alpha.15",
"@storybook/addon-links": "4.0.0-alpha.15",
"@storybook/addon-notes": "4.0.0-alpha.15",
"@storybook/addon-options": "4.0.0-alpha.15",
"@storybook/addon-storyshots": "4.0.0-alpha.15",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/angular": "4.0.0-alpha.15",
"@storybook/channel-postmessage": "4.0.0-alpha.15",
"@storybook/channel-websocket": "4.0.0-alpha.15",
"@storybook/channels": "4.0.0-alpha.15",
"@storybook/html": "4.0.0-alpha.15",
"@storybook/marko": "4.0.0-alpha.15",
"@storybook/mithril": "4.0.0-alpha.15",
"@storybook/polymer": "4.0.0-alpha.15",
"@storybook/react": "4.0.0-alpha.15",
"@storybook/react-native": "4.0.0-alpha.15",
"@storybook/ui": "4.0.0-alpha.15",
"@storybook/vue": "4.0.0-alpha.15",
"check-node-version": "3.2.0",
"npx": "10.2.0"
}

View File

@ -44,10 +44,10 @@
"ts-node": "1.2.1",
"tslint": "^4.3.0",
"typescript": "~2.4.0",
"@storybook/angular": "^4.0.0-alpha.14",
"@storybook/addon-notes": "^4.0.0-alpha.14",
"@storybook/addon-actions": "^4.0.0-alpha.14",
"@storybook/addon-links": "^4.0.0-alpha.14",
"@storybook/addons": "^4.0.0-alpha.14"
"@storybook/angular": "^4.0.0-alpha.15",
"@storybook/addon-notes": "^4.0.0-alpha.15",
"@storybook/addon-actions": "^4.0.0-alpha.15",
"@storybook/addon-links": "^4.0.0-alpha.15",
"@storybook/addons": "^4.0.0-alpha.15"
}
}

View File

@ -7,9 +7,9 @@
"marko": "^4.9.7"
},
"devDependencies": {
"@storybook/marko": "^4.0.0-alpha.14",
"@storybook/addon-actions": "^4.0.0-alpha.14",
"@storybook/addon-knobs": "^4.0.0-alpha.14",
"@storybook/marko": "^4.0.0-alpha.15",
"@storybook/addon-actions": "^4.0.0-alpha.15",
"@storybook/addon-knobs": "^4.0.0-alpha.15",
"babel-core": "^6.26.3",
"babel-runtime": "^6.26.0"
},

View File

@ -19,9 +19,9 @@
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
"babel-root-slash-import": "^1.1.0",
"@storybook/react": "^4.0.0-alpha.14",
"@storybook/addon-actions": "^4.0.0-alpha.14",
"@storybook/addon-links": "^4.0.0-alpha.14",
"@storybook/addons": "^4.0.0-alpha.14"
"@storybook/react": "^4.0.0-alpha.15",
"@storybook/addon-actions": "^4.0.0-alpha.15",
"@storybook/addon-links": "^4.0.0-alpha.15",
"@storybook/addons": "^4.0.0-alpha.15"
}
}

View File

@ -12,10 +12,10 @@
"mithril": "^1.1.6"
},
"devDependencies": {
"@storybook/addon-actions": "^4.0.0-alpha.14",
"@storybook/addon-links": "^4.0.0-alpha.14",
"@storybook/addons": "^4.0.0-alpha.14",
"@storybook/mithril": "^4.0.0-alpha.14",
"@storybook/addon-actions": "^4.0.0-alpha.15",
"@storybook/addon-links": "^4.0.0-alpha.15",
"@storybook/addons": "^4.0.0-alpha.15",
"@storybook/mithril": "^4.0.0-alpha.15",
"babel-core": "^6.26.3",
"babel-plugin-transform-react-jsx": "^6.24.1"
}

View File

@ -12,7 +12,7 @@
"@polymer/polymer": "^2.2.0"
},
"devDependencies": {
"@storybook/polymer": "^4.0.0-alpha.14",
"@storybook/polymer": "^4.0.0-alpha.15",
"babel-core": "^6.26.3",
"babel-runtime": "^6.26.0",
"polymer-webpack-loader": "^2.0.3"

View File

@ -20,10 +20,10 @@
"rollup-plugin-commonjs": "^8.2.0",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-replace": "^1.1.1",
"@storybook/react": "^4.0.0-alpha.14",
"@storybook/addon-actions": "^4.0.0-alpha.14",
"@storybook/addon-links": "^4.0.0-alpha.14",
"@storybook/addons": "^4.0.0-alpha.14",
"@storybook/react": "^4.0.0-alpha.15",
"@storybook/addon-actions": "^4.0.0-alpha.15",
"@storybook/addon-links": "^4.0.0-alpha.15",
"@storybook/addons": "^4.0.0-alpha.15",
"babel-core": "^6.26.3",
"babel-runtime": "^6.26.0"
}

View File

@ -16,10 +16,10 @@
"babel-preset-react-native": "3.0.1",
"jest": "20.0.4",
"react-test-renderer": "16.0.0-alpha.12",
"@storybook/react-native": "^4.0.0-alpha.14",
"@storybook/addon-actions": "^4.0.0-alpha.14",
"@storybook/addon-links": "^4.0.0-alpha.14",
"@storybook/addons": "^4.0.0-alpha.14",
"@storybook/react-native": "^4.0.0-alpha.15",
"@storybook/addon-actions": "^4.0.0-alpha.15",
"@storybook/addon-links": "^4.0.0-alpha.15",
"@storybook/addons": "^4.0.0-alpha.15",
"babel-core": "^6.26.3",
"babel-runtime": "^6.26.0",
"react-dom": "16.0.0-alpha.12",

View File

@ -6,10 +6,10 @@
"react-native-scripts": "1.3.1",
"jest-expo": "~20.0.0",
"react-test-renderer": "16.0.0-alpha.12",
"@storybook/react-native": "^4.0.0-alpha.14",
"@storybook/addon-actions": "^4.0.0-alpha.14",
"@storybook/addon-links": "^4.0.0-alpha.14",
"@storybook/addons": "^4.0.0-alpha.14",
"@storybook/react-native": "^4.0.0-alpha.15",
"@storybook/addon-actions": "^4.0.0-alpha.15",
"@storybook/addon-links": "^4.0.0-alpha.15",
"@storybook/addons": "^4.0.0-alpha.15",
"babel-core": "^6.26.3",
"babel-runtime": "^6.26.0",
"react-dom": "16.0.0-alpha.12",

View File

@ -13,10 +13,10 @@
"babel-preset-react": "^6.24.1",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"@storybook/react": "^4.0.0-alpha.14",
"@storybook/addon-actions": "^4.0.0-alpha.14",
"@storybook/addon-links": "^4.0.0-alpha.14",
"@storybook/addons": "^4.0.0-alpha.14",
"@storybook/react": "^4.0.0-alpha.15",
"@storybook/addon-actions": "^4.0.0-alpha.15",
"@storybook/addon-links": "^4.0.0-alpha.15",
"@storybook/addons": "^4.0.0-alpha.15",
"babel-core": "^6.26.3",
"babel-runtime": "^6.26.0"
},

View File

@ -16,10 +16,10 @@
"build-storybook": "build-storybook -s public"
},
"devDependencies": {
"@storybook/react": "^4.0.0-alpha.14",
"@storybook/addon-actions": "^4.0.0-alpha.14",
"@storybook/addon-links": "^4.0.0-alpha.14",
"@storybook/addons": "^4.0.0-alpha.14",
"@storybook/react": "^4.0.0-alpha.15",
"@storybook/addon-actions": "^4.0.0-alpha.15",
"@storybook/addon-links": "^4.0.0-alpha.15",
"@storybook/addons": "^4.0.0-alpha.15",
"babel-core": "^6.26.3",
"babel-runtime": "^6.26.0"
}

View File

@ -49,10 +49,10 @@
"webpack-dev-middleware": "^1.10.0",
"webpack-hot-middleware": "^2.18.0",
"webpack-merge": "^4.1.0",
"@storybook/vue": "^4.0.0-alpha.14",
"@storybook/addon-actions": "^4.0.0-alpha.14",
"@storybook/addon-links": "^4.0.0-alpha.14",
"@storybook/addons": "^4.0.0-alpha.14",
"@storybook/vue": "^4.0.0-alpha.15",
"@storybook/addon-actions": "^4.0.0-alpha.15",
"@storybook/addon-links": "^4.0.0-alpha.15",
"@storybook/addons": "^4.0.0-alpha.15",
"babel-preset-vue": "^2.0.2"
},
"engines": {

View File

@ -8,8 +8,8 @@
"react-scripts": "0.9.x"
},
"devDependencies": {
"@storybook/react": "^4.0.0-alpha.14",
"@storybook/addons": "^4.0.0-alpha.14",
"@storybook/react": "^4.0.0-alpha.15",
"@storybook/addons": "^4.0.0-alpha.15",
"babel-core": "^6.26.3",
"babel-runtime": "^6.26.0"
},

View File

@ -34,10 +34,10 @@
"rollup-plugin-serve": "^0.4.0",
"rollup-plugin-vue": "^2.4.0",
"rollup-watch": "^4.0.0",
"@storybook/vue": "^4.0.0-alpha.14",
"@storybook/addon-actions": "^4.0.0-alpha.14",
"@storybook/addon-links": "^4.0.0-alpha.14",
"@storybook/addons": "^4.0.0-alpha.14",
"@storybook/vue": "^4.0.0-alpha.15",
"@storybook/addon-actions": "^4.0.0-alpha.15",
"@storybook/addon-links": "^4.0.0-alpha.15",
"@storybook/addons": "^4.0.0-alpha.15",
"babel-preset-vue": "^2.0.2"
}
}

View File

@ -17,10 +17,10 @@
"babel-loader": "^7.1.2",
"babel-preset-react": "^6.24.1",
"webpack": "^3.5.5",
"@storybook/react": "^4.0.0-alpha.14",
"@storybook/addon-actions": "^4.0.0-alpha.14",
"@storybook/addon-links": "^4.0.0-alpha.14",
"@storybook/addons": "^4.0.0-alpha.14",
"@storybook/react": "^4.0.0-alpha.15",
"@storybook/addon-actions": "^4.0.0-alpha.15",
"@storybook/addon-links": "^4.0.0-alpha.15",
"@storybook/addons": "^4.0.0-alpha.15",
"babel-runtime": "^6.26.0"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/client-logger",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "",
"license": "MIT",
"main": "dist/index.js",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/codemod",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "A collection of codemod scripts written with JSCodeshift",
"repository": {
"type": "git",
@ -13,6 +13,6 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"jscodeshift": "^0.5.0"
"jscodeshift": "^0.5.1"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/components",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Core Storybook Components",
"repository": {
"type": "git",
@ -15,22 +15,22 @@
"storybook": "start-storybook -p 6006"
},
"dependencies": {
"emotion": "^9.1.3",
"emotion-theming": "^9.1.2",
"emotion": "^9.2.6",
"emotion-theming": "^9.2.6",
"global": "^4.3.2",
"lodash.pick": "^4.4.0",
"lodash.throttle": "^4.1.1",
"prop-types": "^15.6.1",
"react-emotion": "^9.1.3",
"prop-types": "^15.6.2",
"react-emotion": "^9.2.6",
"react-inspector": "^2.3.0",
"react-split-pane": "^0.1.77",
"react-split-pane": "^0.1.82",
"react-textarea-autosize": "^6.1.0",
"render-fragment": "^0.1.1"
},
"devDependencies": {
"@storybook/addon-actions": "4.0.0-alpha.14",
"@storybook/addon-knobs": "4.0.0-alpha.14",
"@storybook/react": "4.0.0-alpha.14"
"@storybook/addon-actions": "4.0.0-alpha.15",
"@storybook/addon-knobs": "4.0.0-alpha.15",
"@storybook/react": "4.0.0-alpha.15"
},
"peerDependencies": {
"react": "*",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/core-events",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Event names used in storybook core",
"license": "MIT",
"main": "index.js"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/core",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Storybook framework-agnostic API",
"homepage": "https://github.com/storybooks/storybook/tree/master/lib/core",
"bugs": {
@ -16,30 +16,30 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "4.0.0-alpha.14",
"@storybook/channel-postmessage": "4.0.0-alpha.14",
"@storybook/client-logger": "4.0.0-alpha.14",
"@storybook/core-events": "4.0.0-alpha.14",
"@storybook/node-logger": "4.0.0-alpha.14",
"@storybook/ui": "4.0.0-alpha.14",
"@storybook/addons": "4.0.0-alpha.15",
"@storybook/channel-postmessage": "4.0.0-alpha.15",
"@storybook/client-logger": "4.0.0-alpha.15",
"@storybook/core-events": "4.0.0-alpha.15",
"@storybook/node-logger": "4.0.0-alpha.15",
"@storybook/ui": "4.0.0-alpha.15",
"airbnb-js-shims": "^1.6.0",
"autoprefixer": "^8.6.0",
"babel-loader": "^7.1.4",
"babel-plugin-macros": "^2.2.2",
"babel-loader": "^7.1.5",
"babel-plugin-macros": "^2.3.0",
"babel-plugin-transform-regenerator": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-minify": "0.4.1",
"babel-preset-minify": "canary",
"babel-preset-stage-0": "^6.24.1",
"babel-runtime": "^6.26.0",
"case-sensitive-paths-webpack-plugin": "^2.1.2",
"chalk": "^2.4.1",
"commander": "^2.15.1",
"commander": "^2.16.0",
"core-js": "^2.5.7",
"css-loader": "^0.28.11",
"dotenv-webpack": "^1.5.7",
"ejs": "^2.6.1",
"emotion": "^9.1.3",
"emotion": "^9.2.6",
"express": "^4.16.3",
"file-loader": "^1.1.11",
"find-cache-dir": "^1.0.0",
@ -48,22 +48,22 @@
"interpret": "^1.1.0",
"json5": "^1.0.1",
"postcss-flexbugs-fixes": "^3.3.1",
"postcss-loader": "^2.1.5",
"prop-types": "^15.6.1",
"postcss-loader": "^2.1.6",
"prop-types": "^15.6.2",
"qs": "^6.5.2",
"raw-loader": "^0.5.1",
"react-dev-utils": "^6.0.0-next.3e165448",
"react-emotion": "^9.1.3",
"react-emotion": "^9.2.6",
"redux": "^4.0.0",
"serve-favicon": "^2.5.0",
"shelljs": "^0.8.2",
"style-loader": "^0.21.0",
"svg-url-loader": "^2.3.2",
"universal-dotenv": "^1.8.0",
"universal-dotenv": "^1.8.2",
"url-loader": "^1.0.1",
"webpack": "^4.10.2",
"webpack": "^4.16.4",
"webpack-dev-middleware": "^3.1.3",
"webpack-hot-middleware": "^2.22.2"
"webpack-hot-middleware": "^2.22.3"
},
"devDependencies": {
"mock-fs": "^4.5.0"

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/node-logger",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "",
"license": "MIT",
"main": "dist/index.js",

View File

@ -1,6 +1,6 @@
{
"name": "@storybook/ui",
"version": "4.0.0-alpha.14",
"version": "4.0.0-alpha.15",
"description": "Core Storybook UI",
"repository": {
"type": "git",
@ -16,34 +16,34 @@
},
"dependencies": {
"@ndelangen/react-treebeard": "^2.1.0",
"@storybook/components": "4.0.0-alpha.14",
"@storybook/core-events": "4.0.0-alpha.14",
"@storybook/components": "4.0.0-alpha.15",
"@storybook/core-events": "4.0.0-alpha.15",
"@storybook/mantra-core": "^1.7.2",
"@storybook/podda": "^1.2.3",
"@storybook/react-komposer": "^2.0.4",
"babel-runtime": "^6.26.0",
"deep-equal": "^1.0.1",
"emotion": "^9.1.3",
"emotion-theming": "^9.1.2",
"emotion": "^9.2.6",
"emotion-theming": "^9.2.6",
"events": "^2.1.0",
"fuse.js": "^3.2.0",
"fuse.js": "^3.2.1",
"global": "^4.3.2",
"keycode": "^2.2.0",
"lodash.debounce": "^4.0.8",
"lodash.pick": "^4.4.0",
"lodash.sortby": "^4.7.0",
"lodash.throttle": "^4.1.1",
"prop-types": "^15.6.1",
"prop-types": "^15.6.2",
"qs": "^6.5.2",
"react-emotion": "^9.1.3",
"react-emotion": "^9.2.6",
"react-fuzzy": "^0.5.2",
"react-icons": "^2.2.7",
"react-lifecycles-compat": "^3.0.4",
"react-modal": "^3.4.5"
"react-modal": "^3.5.1"
},
"devDependencies": {
"@storybook/addon-actions": "4.0.0-alpha.14",
"@storybook/react": "4.0.0-alpha.14"
"@storybook/addon-actions": "4.0.0-alpha.15",
"@storybook/react": "4.0.0-alpha.15"
},
"peerDependencies": {
"react": "*",

View File

@ -63,30 +63,6 @@ const suggestionTemplate = (props, state, styles, clickHandler) =>
));
class SearchBox extends React.Component {
state = {};
static getDerivedStateFromProps({ theme }) {
return {
modalClass: css({
fontSize: theme.mainTextColor,
fontFamily: theme.mainTextFace,
color: theme.mainTextColor,
}),
overlayClass: css({
position: 'fixed',
height: '100vh',
width: '100vw',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
top: 0,
left: 0,
right: 0,
bottom: 0,
background: theme.overlayBackground,
zIndex: 1,
}),
};
}
onSelect = selected => {
const { onClose } = this.props;
@ -119,16 +95,32 @@ class SearchBox extends React.Component {
};
render() {
const { showSearchBox, onClose } = this.props;
const { overlayClass, modalClass } = this.state;
const { showSearchBox, onClose, theme } = this.props;
return (
<ReactModal
isOpen={showSearchBox}
onAfterOpen={this.onModalOpen}
onRequestClose={onClose}
className={modalClass}
overlayClassName={overlayClass}
className={css({
fontSize: theme.mainTextColor,
fontFamily: theme.mainTextFace,
color: theme.mainTextColor,
})}
overlayClassName={css({
position: 'fixed',
height: '100vh',
width: '100vw',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
top: 0,
left: 0,
right: 0,
bottom: 0,
background: theme.overlayBackground,
zIndex: 1,
})}
contentLabel="Search"
shouldReturnFocusAfterClose={false}
>
@ -149,6 +141,7 @@ class SearchBox extends React.Component {
SearchBox.defaultProps = { stories: [] };
SearchBox.propTypes = {
theme: PropTypes.shape({}).isRequired,
showSearchBox: PropTypes.bool.isRequired,
stories: PropTypes.arrayOf(PropTypes.object),
onSelectStory: PropTypes.func.isRequired,

View File

@ -1,9 +1,8 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import React from 'react';
import styled from 'react-emotion';
import { css } from 'emotion';
import { withTheme } from 'emotion-theming';
import { polyfill } from 'react-lifecycles-compat';
import ReactModal from 'react-modal';
@ -136,11 +135,12 @@ Shortcuts.propTypes = {
).isRequired,
};
class ShortcutsHelp extends Component {
state = {};
static getDerivedStateFromProps({ theme }) {
return {
modalClass: css({
function ShortcutsHelp({ isOpen, onClose, platform, theme }) {
return (
<ReactModal
isOpen={isOpen}
onRequestClose={onClose}
className={css({
position: 'absolute',
border: theme.mainBorder,
borderRadius: theme.mainBorderRadius,
@ -156,8 +156,8 @@ class ShortcutsHelp extends Component {
fontSize: theme.mainTextColor,
fontFamily: theme.mainTextFace,
color: theme.mainTextColor,
}),
overlayClass: css({
})}
overlayClassName={css({
position: 'fixed',
top: 0,
left: 0,
@ -165,28 +165,16 @@ class ShortcutsHelp extends Component {
bottom: 0,
background: theme.overlayBackground,
zIndex: 1,
}),
};
}
render() {
const { isOpen, onClose, platform } = this.props;
const { overlayClass, modalClass } = this.state;
return (
<ReactModal
isOpen={isOpen}
onRequestClose={onClose}
className={modalClass}
overlayClassName={overlayClass}
contentLabel="Shortcuts"
>
<Shortcuts appShortcuts={getShortcuts(platform)} />
</ReactModal>
);
}
})}
contentLabel="Shortcuts"
>
<Shortcuts appShortcuts={getShortcuts(platform)} />
</ReactModal>
);
}
ShortcutsHelp.propTypes = {
theme: PropTypes.shape({}).isRequired,
isOpen: PropTypes.bool,
onClose: PropTypes.func,
platform: PropTypes.string.isRequired,
@ -196,5 +184,4 @@ ShortcutsHelp.defaultProps = {
onClose: () => {},
};
polyfill(ShortcutsHelp);
export default withTheme(ShortcutsHelp);

View File

@ -41,45 +41,45 @@
"chromatic": "npm --prefix examples/official-storybook run chromatic"
},
"devDependencies": {
"@angular/common": "^6.0.3",
"@angular/compiler": "^6.0.3",
"@angular/core": "^6.0.3",
"@angular/forms": "^6.0.3",
"@angular/platform-browser": "^6.0.3",
"@angular/platform-browser-dynamic": "^6.0.3",
"@angular/common": "^6.1.1",
"@angular/compiler": "^6.1.1",
"@angular/core": "^6.1.1",
"@angular/forms": "^6.1.1",
"@angular/platform-browser": "^6.1.1",
"@angular/platform-browser-dynamic": "^6.1.1",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.3",
"babel-eslint": "^8.2.6",
"babel-jest": "^22.4.4",
"babel-plugin-emotion": "^9.1.2",
"babel-plugin-macros": "^2.2.2",
"babel-plugin-emotion": "^9.2.6",
"babel-plugin-macros": "^2.3.0",
"babel-plugin-require-context-hook": "^1.0.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"chalk": "^2.4.1",
"codecov": "^3.0.2",
"codelyzer": "^4.3.0",
"commander": "^2.15.1",
"concurrently": "^3.5.1",
"cross-env": "^5.1.6",
"danger": "^3.7.15",
"emotion": "^9.1.3",
"emotion-theming": "^9.1.2",
"codecov": "^3.0.4",
"codelyzer": "^4.4.2",
"commander": "^2.16.0",
"concurrently": "^3.6.1",
"cross-env": "^5.2.0",
"danger": "^3.8.3",
"emotion": "^9.2.6",
"emotion-theming": "^9.2.6",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jest": "^21.17.0",
"eslint-plugin-json": "^1.2.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-react": "^7.9.1",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jest": "^21.18.0",
"eslint-plugin-json": "^1.2.1",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-prettier": "^2.6.2",
"eslint-plugin-react": "^7.10.0",
"eslint-teamcity": "^2.0.1",
"github-release-from-changelog": "^1.3.1",
"github-release-from-changelog": "^1.3.2",
"glob": "^7.1.2",
"husky": "^0.14.3",
"inquirer": "^5.2.0",
@ -87,33 +87,33 @@
"jest-cli": "^22.4.4",
"jest-config": "^22.4.4",
"jest-diff": "^22.4.3",
"jest-emotion": "^9.1.3",
"jest-emotion": "^9.2.7",
"jest-environment-jsdom": "^22.4.3",
"jest-enzyme": "^6.0.1",
"jest-glamor-react": "^4.3.0",
"jest-image-snapshot": "^2.4.2",
"jest-enzyme": "^6.0.2",
"jest-glamor-react": "^4.3.1",
"jest-image-snapshot": "^2.4.3",
"jest-jasmine2": "^22.4.4",
"jest-preset-angular": "^5.2.2",
"jest-teamcity-reporter": "^0.9.0",
"jest-vue-preprocessor": "^1.4.0",
"lerna": "2.11.0",
"lint-staged": "^7.1.3",
"lint-staged": "^7.2.0",
"lodash": "^4.17.10",
"marko": "^4.10.0",
"marko": "^4.12.4",
"marko-widgets": "^7.0.1",
"npmlog": "^4.1.2",
"polymer-webpack-loader": "^2.0.2",
"prettier": "^1.13.4",
"polymer-webpack-loader": "^2.0.3",
"prettier": "^1.14.0",
"raf": "^3.4.0",
"react": "^16.4.0",
"react-dom": "^16.4.0",
"react-test-renderer": "^16.4.0",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"react-test-renderer": "^16.4.2",
"remark-cli": "^5.0.0",
"remark-lint": "^6.0.2",
"remark-preset-lint-recommended": "^3.0.2",
"shelljs": "^0.8.2",
"tslint": "~5.10.0",
"tslint-config-prettier": "^1.13.0",
"tslint": "~5.11.0",
"tslint-config-prettier": "^1.14.0",
"tslint-plugin-prettier": "^1.3.0",
"typescript": "^2.9.1"
},

2579
yarn.lock

File diff suppressed because it is too large Load Diff