Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit bfae7ae

Browse files
authored
Merge pull request #5 from kunyan/upgrade-react
Upgrade devDependencies, fix React warning
2 parents 65195cb + ec46653 commit bfae7ae

6 files changed

Lines changed: 1420 additions & 1160 deletions

File tree

package.json

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,39 +33,41 @@
3333
},
3434
"homepage": "https://github.com/kunyan/react-bootstrap-xeditable#readme",
3535
"devDependencies": {
36-
"ava": "^0.18.2",
37-
"babel-cli": "^6.23.0",
38-
"babel-core": "^6.23.1",
39-
"babel-eslint": "^7.1.1",
40-
"babel-loader": "^6.4.0",
36+
"ava": "^0.19.1",
37+
"babel-cli": "^6.24.1",
38+
"babel-core": "^6.24.1",
39+
"babel-eslint": "^7.2.3",
40+
"babel-loader": "^7.0.0",
4141
"babel-plugin-add-module-exports": "^0.2.1",
4242
"babel-plugin-dev-expression": "^0.2.1",
43-
"babel-plugin-transform-class-properties": "^6.23.0",
44-
"babel-plugin-transform-es2015-modules-umd": "^6.23.0",
43+
"babel-plugin-istanbul": "^4.1.3",
44+
"babel-plugin-transform-class-properties": "^6.24.1",
45+
"babel-plugin-transform-es2015-modules-umd": "^6.24.1",
4546
"babel-plugin-transform-es3-member-expression-literals": "^6.22.0",
4647
"babel-plugin-transform-es3-property-literals": "^6.22.0",
4748
"babel-plugin-transform-runtime": "^6.23.0",
48-
"babel-preset-es2015": "^6.22.0",
49-
"babel-preset-react": "^6.23.0",
50-
"babel-preset-stage-1": "^6.22.0",
51-
"babel-register": "^6.23.0",
52-
"cross-env": "^3.2.3",
53-
"css-loader": "^0.26.2",
54-
"enzyme": "^2.7.1",
55-
"eslint": "^3.17.1",
56-
"eslint-loader": "^1.6.3",
57-
"eslint-plugin-react": "^6.10.0",
49+
"babel-preset-es2015": "^6.24.1",
50+
"babel-preset-react": "^6.24.1",
51+
"babel-preset-stage-1": "^6.24.1",
52+
"babel-register": "^6.24.1",
53+
"cross-env": "^5.0.0",
54+
"css-loader": "^0.28.1",
55+
"enzyme": "^2.8.2",
56+
"eslint": "^3.19.0",
57+
"eslint-loader": "^1.7.1",
58+
"eslint-plugin-react": "^7.0.1",
5859
"extract-text-webpack-plugin": "^2.1.0",
5960
"html-webpack-plugin": "^2.28.0",
60-
"react": "^15.4.2",
61-
"react-addons-test-utils": "^15.4.2",
62-
"react-dom": "^15.4.2",
61+
"prop-types": "^15.5.10",
62+
"react": "^15.5.4",
63+
"react-addons-test-utils": "^15.5.1",
64+
"react-dom": "^15.5.4",
6365
"rimraf": "^2.6.1",
64-
"source-map-loader": "^0.1.6",
65-
"style-loader": "^0.13.2",
66-
"webpack": "^2.2.1",
67-
"webpack-dev-server": "^2.4.1",
68-
"webpack-merge": "^4.0.0"
66+
"source-map-loader": "^0.2.1",
67+
"style-loader": "^0.17.0",
68+
"webpack": "^2.5.1",
69+
"webpack-dev-server": "^2.4.5",
70+
"webpack-merge": "^4.1.0"
6971
},
7072
"ava": {
7173
"require": [

src/EditableSelect.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import XEditable from './XEditable';
34

45
export default class EditableSelect extends React.Component {
56
static propTypes = {
6-
id: React.PropTypes.string,
7-
name: React.PropTypes.string,
8-
className: React.PropTypes.string,
9-
value: React.PropTypes.node,
10-
onUpdate: React.PropTypes.func.isRequired,
11-
options: React.PropTypes.array,
12-
defaultText: React.PropTypes.node,
7+
id: PropTypes.string,
8+
name: PropTypes.string,
9+
className: PropTypes.string,
10+
value: PropTypes.node,
11+
onUpdate: PropTypes.func.isRequired,
12+
options: PropTypes.array,
13+
defaultText: PropTypes.node,
1314
}
1415

1516
constructor(props) {

src/EditableTextArea.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import XEditable from './XEditable';
34

45
export default class EditableTextArea extends React.Component {
56
static propTypes = {
6-
id: React.PropTypes.string,
7-
name: React.PropTypes.string,
8-
className: React.PropTypes.string,
9-
value: React.PropTypes.node,
10-
rows: React.PropTypes.number,
11-
cols: React.PropTypes.number,
12-
placeholder: React.PropTypes.string,
13-
onUpdate: React.PropTypes.func.isRequired,
14-
defaultText: React.PropTypes.node
7+
id: PropTypes.string,
8+
name: PropTypes.string,
9+
className: PropTypes.string,
10+
value: PropTypes.node,
11+
rows: PropTypes.number,
12+
cols: PropTypes.number,
13+
placeholder: PropTypes.string,
14+
onUpdate: PropTypes.func.isRequired,
15+
defaultText: PropTypes.node
1516
};
1617
constructor(props) {
1718
super(props);

src/EditableTextField.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import XEditable from './XEditable';
34

45
export default class EditableTextField extends React.Component {
56
static propTypes = {
6-
id: React.PropTypes.string,
7-
name: React.PropTypes.string,
8-
className: React.PropTypes.string,
9-
value: React.PropTypes.node,
10-
placeholder: React.PropTypes.string,
11-
onUpdate: React.PropTypes.func.isRequired,
12-
defaultText: React.PropTypes.node,
7+
id: PropTypes.string,
8+
name: PropTypes.string,
9+
className: PropTypes.string,
10+
value: PropTypes.node,
11+
placeholder: PropTypes.string,
12+
onUpdate: PropTypes.func.isRequired,
13+
defaultText: PropTypes.node,
1314
};
1415
constructor(props) {
1516
super(props);

src/XEditable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
23

34
export default class XEditable extends React.Component {
45
static defaultProps = {
56
isLoading: false
67
};
78
static propTypes = {
8-
isLoading: React.PropTypes.bool
9+
isLoading: PropTypes.bool
910
};
1011

1112
constructor(props) {

0 commit comments

Comments
 (0)