Skip to content

Commit f7be20f

Browse files
authored
Merge branch 'master' into bug/3658-add-enzyme-test-for-objectmodel
2 parents 1f11b3e + fdc8313 commit f7be20f

File tree

8 files changed

+12
-9
lines changed

8 files changed

+12
-9
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@
6161
"react-addons-perf": "^15.4.0",
6262
"react-addons-shallow-compare": "0.14.8",
6363
"react-addons-test-utils": "^15.6.2",
64-
"react-collapse": "2.3.1",
64+
"react-collapse": "^4.0.3",
6565
"react-dom": "^15.6.2",
6666
"react-height": "^2.0.0",
6767
"react-hot-loader": "1.3.1",
6868
"react-immutable-proptypes": "2.1.0",
6969
"react-markdown": "^2.5.0",
70-
"react-motion": "0.4.4",
70+
"react-motion": "^0.5.2",
7171
"react-object-inspector": "0.2.1",
7272
"react-redux": "^4.x.x",
7373
"react-split-pane": "0.1.57",

src/core/components/content-type.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class ContentType extends React.Component {
3737

3838
return (
3939
<div className={ "content-type-wrapper " + ( className || "" ) }>
40-
<select className="content-type" value={value} onChange={this.onChangeWrapper} >
40+
<select className="content-type" value={value || ""} onChange={this.onChangeWrapper} >
4141
{ contentTypes.map( (val) => {
4242
return <option key={ val } value={ val }>{ val }</option>
4343
}).toArray()}

src/core/components/debug.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react"
22
import PropTypes from "prop-types"
3-
import Collapse from "react-collapse"
3+
import { Collapse } from "react-collapse"
44
import { presets } from "react-motion"
55
import ObjectInspector from "react-object-inspector"
66
import Perf from "react-addons-perf"

src/core/components/errors.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react"
22
import PropTypes from "prop-types"
33
import { List } from "immutable"
4-
import Collapse from "react-collapse"
4+
import { Collapse } from "react-collapse"
55

66
export default class Errors extends React.Component {
77

src/core/components/layout-utils.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react"
22
import PropTypes from "prop-types"
3-
import OriCollapse from "react-collapse"
3+
import { Collapse as OriCollapse } from "react-collapse"
44

55
function xclass(...args) {
66
return args.filter(a => !!a).join(" ").trim()

src/core/plugins/oas3/components/request-body.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ RequestBody.propTypes = {
5050
getComponent: PropTypes.func.isRequired,
5151
getConfigs: PropTypes.func.isRequired,
5252
specSelectors: PropTypes.object.isRequired,
53-
contentType: PropTypes.string.isRequired,
53+
contentType: PropTypes.string,
5454
isExecute: PropTypes.bool.isRequired,
5555
onChange: PropTypes.func.isRequired
5656
}

src/core/plugins/oas3/wrap-components/parameters.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class Parameters extends Component {
2222
specActions: PropTypes.object.isRequired,
2323
operation: PropTypes.object.isRequired,
2424
getComponent: PropTypes.func.isRequired,
25+
getConfigs: PropTypes.func.isRequired,
2526
specSelectors: PropTypes.object.isRequired,
2627
oas3Actions: PropTypes.object.isRequired,
2728
oas3Selectors: PropTypes.object.isRequired,
@@ -86,6 +87,7 @@ class Parameters extends Component {
8687

8788
fn,
8889
getComponent,
90+
getConfigs,
8991
specSelectors,
9092
oas3Actions,
9193
oas3Selectors,
@@ -137,6 +139,7 @@ class Parameters extends Component {
137139
eachMap(parameters, (parameter) => (
138140
<ParameterRow fn={ fn }
139141
getComponent={ getComponent }
142+
getConfigs={ getConfigs }
140143
param={ parameter }
141144
key={ parameter.get( "name" ) }
142145
onChange={ this.onChange }

src/plugins/topbar/topbar.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react"
1+
import React, { cloneElement } from "react"
22
import PropTypes from "prop-types"
33

44
//import "./topbar.less"
@@ -134,7 +134,7 @@ export default class Topbar extends React.Component {
134134
<span>swagger</span>
135135
</Link>
136136
<form className="download-url-wrapper" onSubmit={formOnSubmit}>
137-
{control}
137+
{control.map((el, i) => cloneElement(el, { key: i }))}
138138
</form>
139139
</div>
140140
</div>

0 commit comments

Comments
 (0)