Skip to content

Commit

Permalink
Merge pull request #5 from stoplightio/fix/SL-139/story-info
Browse files Browse the repository at this point in the history
SL-139 Remove info decorator
  • Loading branch information
P0lip authored Feb 5, 2019
2 parents dc141fd + 19e5abd commit 19a3d07
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 79 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"dependencies": {
"@babel/core": "7.x.x",
"@storybook/addon-actions": "4.0.x",
"@storybook/addon-info": "4.0.x",
"@storybook/addon-knobs": "4.0.x",
"@storybook/addon-links": "4.0.x",
"@storybook/addon-options": "4.0.x",
Expand Down
20 changes: 0 additions & 20 deletions src/config.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// @ts-ignore
import { withInfo } from '@storybook/addon-info';
// @ts-ignore
import { withOptions } from '@storybook/addon-options';
import { addDecorator, configure } from '@storybook/react';
import * as React from 'react';
Expand All @@ -24,24 +22,6 @@ addDecorator(
})
);

addDecorator(
withInfo({
header: false,
inline: true,
source: false, // not that helpful?
styles: {
infoBody: {
backgroundColor: 'white',
margin: '50px 0 0 0',
padding: '0 25px 25px 25px',
lineHeight: '2',
width: 800,
fontSize: 12,
},
},
})
);

addDecorator(withThemes);

addDecorator(storyFn => <div>{storyFn()}</div>);
Expand Down
60 changes: 2 additions & 58 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1247,24 +1247,6 @@
react-inspector "^2.3.0"
uuid "^3.3.2"

"@storybook/[email protected]":
version "4.0.12"
resolved "https://registry.yarnpkg.com/@storybook/addon-info/-/addon-info-4.0.12.tgz#7d11dd941fa47ba9a0147732ac4dd93d373db2c2"
integrity sha512-hrF0tzHa5axoJGmuale+CZtBnYrrPAXonByXZ1SY6y2/iRSWug5Af3JaKDorcPZaP1JJ0PK+dJCOKD74mjGXWQ==
dependencies:
"@emotion/styled" "^0.10.6"
"@storybook/addons" "4.0.12"
"@storybook/client-logger" "4.0.12"
"@storybook/components" "4.0.12"
core-js "2.5.7"
global "^4.3.2"
marksy "^6.1.0"
nested-object-assign "^1.0.1"
prop-types "^15.6.2"
react-addons-create-fragment "^15.5.3"
react-lifecycles-compat "^3.0.4"
util-deprecate "^1.0.2"

"@storybook/[email protected]":
version "4.0.12"
resolved "https://registry.yarnpkg.com/@storybook/addon-knobs/-/addon-knobs-4.0.12.tgz#3441145c8a83f7e09c2c615fbe9215bad4958dd4"
Expand Down Expand Up @@ -2645,11 +2627,6 @@ [email protected], [email protected], babel-runtime@^6.11.6, babel-runtime@
core-js "^2.4.0"
regenerator-runtime "^0.11.0"

babel-standalone@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-standalone/-/babel-standalone-6.26.0.tgz#15fb3d35f2c456695815ebf1ed96fe7f015b6886"
integrity sha1-Ffs9NfLEVmlYFevx7Zb+fwFbaIY=

babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02"
Expand Down Expand Up @@ -3676,11 +3653,6 @@ copy-to-clipboard@^3.0.8:
dependencies:
toggle-selection "^1.0.3"

[email protected]:
version "2.5.7"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e"
integrity sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==

core-js@^1.0.0:
version "1.2.7"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"
Expand Down Expand Up @@ -4828,7 +4800,7 @@ fb-watchman@^2.0.0:
dependencies:
bser "^2.0.0"

fbjs@^0.8.4, fbjs@^0.8.9:
fbjs@^0.8.9:
version "0.8.17"
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd"
integrity sha1-xNWY6taUkRJlPWWIsBpc3Nn5D90=
Expand Down Expand Up @@ -5560,7 +5532,7 @@ hash.js@^1.0.0, hash.js@^1.0.3:
inherits "^2.0.3"
minimalistic-assert "^1.0.1"

[email protected], he@^1.1.1:
[email protected]:
version "1.2.0"
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
Expand Down Expand Up @@ -7531,11 +7503,6 @@ marked-terminal@^3.0.0:
lodash.assign "^4.2.0"
node-emoji "^1.4.1"

marked@^0.3.12:
version "0.3.19"
resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.19.tgz#5d47f709c4c9fc3c216b6d46127280f40b39d790"
integrity sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg==

marked@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/marked/-/marked-0.4.0.tgz#9ad2c2a7a1791f10a852e0112f77b571dce10c66"
Expand All @@ -7546,15 +7513,6 @@ marked@^0.5.0:
resolved "https://registry.yarnpkg.com/marked/-/marked-0.5.2.tgz#3efdb27b1fd0ecec4f5aba362bddcd18120e5ba9"
integrity sha512-fdZvBa7/vSQIZCi4uuwo2N3q+7jJURpMVCcbaX0S1Mg65WZ5ilXvC67MviJAsdjqqgD+CEq4RKo5AYGgINkVAA==

marksy@^6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/marksy/-/marksy-6.1.0.tgz#36482148a1115cc78570855f7ebd744bb453d5cc"
integrity sha512-xVAuJQxwdAljvFVqlY7CIRewn5YHGvCqeJkY1bbcTBfZV4dNDSZpHWTREb1MNu/oXYzKgg5pmTfE1DIW6M1zrA==
dependencies:
babel-standalone "^6.26.0"
he "^1.1.1"
marked "^0.3.12"

matcher@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/matcher/-/matcher-1.1.1.tgz#51d8301e138f840982b338b116bb0c09af62c1c2"
Expand Down Expand Up @@ -7946,11 +7904,6 @@ nerf-dart@^1.0.0:
resolved "https://registry.yarnpkg.com/nerf-dart/-/nerf-dart-1.0.0.tgz#e6dab7febf5ad816ea81cf5c629c5a0ebde72c1a"
integrity sha1-5tq3/r9a2Bbqgc9cYpxaDr3nLBo=

nested-object-assign@^1.0.1:
version "1.0.3"
resolved "https://registry.yarnpkg.com/nested-object-assign/-/nested-object-assign-1.0.3.tgz#5aca69390d9affe5a612152b5f0843ae399ac597"
integrity sha512-kgq1CuvLyUcbcIuTiCA93cQ2IJFSlRwXcN+hLcb2qLJwC2qrePHGZZa7IipyWqaWF6tQjdax2pQnVxdq19Zzwg==

nice-try@^1.0.4:
version "1.0.5"
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
Expand Down Expand Up @@ -9384,15 +9337,6 @@ rc@^1.0.1, rc@^1.1.6, rc@^1.2.7, rc@^1.2.8:
minimist "^1.2.0"
strip-json-comments "~2.0.1"

react-addons-create-fragment@^15.5.3:
version "15.6.2"
resolved "https://registry.yarnpkg.com/react-addons-create-fragment/-/react-addons-create-fragment-15.6.2.tgz#a394de7c2c7becd6b5475ba1b97ac472ce7c74f8"
integrity sha1-o5TefCx77Na1R1uhuXrEcs58dPg=
dependencies:
fbjs "^0.8.4"
loose-envify "^1.3.1"
object-assign "^4.1.0"

react-color@^2.14.1:
version "2.14.1"
resolved "https://registry.yarnpkg.com/react-color/-/react-color-2.14.1.tgz#db8ad4f45d81e74896fc2e1c99508927c6d084e0"
Expand Down

0 comments on commit 19a3d07

Please sign in to comment.