Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit f40b46c

Browse files
committed
UPGRADE to react 16, Proptypes
1 parent a1f6be0 commit f40b46c

File tree

4 files changed

+1797
-884
lines changed

4 files changed

+1797
-884
lines changed

example/stories/SmartKnobedComponent.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react'
1+
import React from 'react'
2+
import PropTypes from 'prop-types'
23

34
import './SmartKnobedComponent.css'
45

example/stories/SmartKnobedComponentMissingProps.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable react/prop-types */
2-
import React, { PropTypes } from 'react'
2+
import React from 'react'
3+
import PropTypes from 'prop-types'
34

45
const SmartKnobedComponentMissingProps = ({
56
foo = '',

package.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "storybook-addon-smart-knobs",
3-
"version": "3.2.10",
3+
"version": "3.3.0",
44
"description": "Automatically created knobs for storybook.",
55
"main": "dist/index.js",
66
"scripts": {
@@ -10,7 +10,7 @@
1010
"storybook": "start-storybook -p 9010",
1111
"prepublish": "npm run clean && npm run compile"
1212
},
13-
"author": "",
13+
"author": "Storybook Team",
1414
"license": "MIT",
1515
"peerDependencies": {
1616
"@storybook/addon-knobs": "^3.2.10",
@@ -19,19 +19,22 @@
1919
"react": "^15.6.2"
2020
},
2121
"devDependencies": {
22-
"@storybook/addon-info": "^3.2.10",
23-
"@storybook/addon-knobs": "^3.2.10",
24-
"@storybook/addon-options": "^3.2.10",
25-
"@storybook/react": "^3.2.10",
22+
"@storybook/addon-info": "^3.3.10",
23+
"@storybook/addon-knobs": "^3.3.10",
24+
"@storybook/addon-options": "^3.3.10",
25+
"@storybook/react": "^3.3.10",
2626
"babel-cli": "^6.26.0",
27-
"babel-plugin-react-docgen": "^1.8.0",
27+
"babel-core": "^6.26.0",
28+
"babel-plugin-react-docgen": "^1.8.2",
2829
"babel-preset-es2015": "^6.24.1",
2930
"babel-preset-react": "^6.24.1",
3031
"babel-preset-stage-0": "^6.24.1",
31-
"css-loader": "^0.28.7",
32+
"babel-runtime": "^6.26.0",
33+
"css-loader": "^0.28.9",
3234
"eslint-config-taller": "^1.0.4",
33-
"jest": "^21.1.0",
34-
"react": "^15.6.2",
35-
"react-dom": "^15.6.2"
35+
"jest": "^22.1.4",
36+
"prop-types": "^15.6.0",
37+
"react": "^16.2.0",
38+
"react-dom": "^16.2.0"
3639
}
3740
}

0 commit comments

Comments
 (0)