babel-plugin-react-docgen
Advanced tools
Comparing version 1.4.1 to 1.4.2
# ChangeLog | ||
### v1.4.2 | ||
03-January-2017 | ||
Add support for hypen propTypes. | ||
### v1.4.1 | ||
@@ -4,0 +9,0 @@ 03-November-2016 |
@@ -144,3 +144,3 @@ 'use strict'; | ||
if (!obj.hasOwnProperty(key) || _.isUndefined(obj[key])) continue; | ||
children.push(t.objectProperty(t.identifier(key), buildObjectExpression(obj[key], t))); | ||
children.push(t.objectProperty(t.stringLiteral(key), buildObjectExpression(obj[key], t))); | ||
} | ||
@@ -147,0 +147,0 @@ return t.objectExpression(children); |
{ | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"name": "babel-plugin-react-docgen", | ||
@@ -4,0 +4,0 @@ "description": "Babel plugin to add react-docgen info into your code", |
@@ -19,2 +19,3 @@ import React, { PropTypes } from 'react'; | ||
onDayTouchTap: PropTypes.func, | ||
'hypen-dash': PropTypes.string, | ||
}; | ||
@@ -33,2 +34,3 @@ | ||
onDayTouchTap() {}, | ||
'hypen-dash': 'hello' | ||
}; | ||
@@ -35,0 +37,0 @@ |
@@ -46,3 +46,4 @@ 'use strict'; | ||
onDayTouchEnd: _react.PropTypes.func, | ||
onDayTouchTap: _react.PropTypes.func | ||
onDayTouchTap: _react.PropTypes.func, | ||
'hypen-dash': _react.PropTypes.string | ||
}; | ||
@@ -60,3 +61,5 @@ | ||
onDayTouchEnd: function onDayTouchEnd() {}, | ||
onDayTouchTap: function onDayTouchTap() {} | ||
onDayTouchTap: function onDayTouchTap() {}, | ||
'hypen-dash': 'hello' | ||
}; | ||
@@ -187,117 +190,128 @@ | ||
CalendarDay.__docgenInfo = { | ||
description: '', | ||
props: { | ||
day: { | ||
type: { | ||
name: 'custom', | ||
raw: 'momentPropTypes.momentObj' | ||
'description': '', | ||
'props': { | ||
'day': { | ||
'type': { | ||
'name': 'custom', | ||
'raw': 'momentPropTypes.momentObj' | ||
}, | ||
required: false, | ||
description: '', | ||
defaultValue: { | ||
value: 'moment()', | ||
computed: true | ||
'required': false, | ||
'description': '', | ||
'defaultValue': { | ||
'value': 'moment()', | ||
'computed': true | ||
} | ||
}, | ||
modifiers: { | ||
type: { | ||
name: 'arrayOf', | ||
value: { | ||
name: 'string' | ||
'modifiers': { | ||
'type': { | ||
'name': 'arrayOf', | ||
'value': { | ||
'name': 'string' | ||
} | ||
}, | ||
required: false, | ||
description: '', | ||
defaultValue: { | ||
value: '[]', | ||
computed: false | ||
'required': false, | ||
'description': '', | ||
'defaultValue': { | ||
'value': '[]', | ||
'computed': false | ||
} | ||
}, | ||
onDayClick: { | ||
type: { | ||
name: 'func' | ||
'onDayClick': { | ||
'type': { | ||
'name': 'func' | ||
}, | ||
required: false, | ||
description: '', | ||
defaultValue: { | ||
value: 'function() {}', | ||
computed: false | ||
'required': false, | ||
'description': '', | ||
'defaultValue': { | ||
'value': 'function() {}', | ||
'computed': false | ||
} | ||
}, | ||
onDayMouseDown: { | ||
type: { | ||
name: 'func' | ||
'onDayMouseDown': { | ||
'type': { | ||
'name': 'func' | ||
}, | ||
required: false, | ||
description: '', | ||
defaultValue: { | ||
value: 'function() {}', | ||
computed: false | ||
'required': false, | ||
'description': '', | ||
'defaultValue': { | ||
'value': 'function() {}', | ||
'computed': false | ||
} | ||
}, | ||
onDayMouseUp: { | ||
type: { | ||
name: 'func' | ||
'onDayMouseUp': { | ||
'type': { | ||
'name': 'func' | ||
}, | ||
required: false, | ||
description: '', | ||
defaultValue: { | ||
value: 'function() {}', | ||
computed: false | ||
'required': false, | ||
'description': '', | ||
'defaultValue': { | ||
'value': 'function() {}', | ||
'computed': false | ||
} | ||
}, | ||
onDayMouseEnter: { | ||
type: { | ||
name: 'func' | ||
'onDayMouseEnter': { | ||
'type': { | ||
'name': 'func' | ||
}, | ||
required: false, | ||
description: '', | ||
defaultValue: { | ||
value: 'function() {}', | ||
computed: false | ||
'required': false, | ||
'description': '', | ||
'defaultValue': { | ||
'value': 'function() {}', | ||
'computed': false | ||
} | ||
}, | ||
onDayMouseLeave: { | ||
type: { | ||
name: 'func' | ||
'onDayMouseLeave': { | ||
'type': { | ||
'name': 'func' | ||
}, | ||
required: false, | ||
description: '', | ||
defaultValue: { | ||
value: 'function() {}', | ||
computed: false | ||
'required': false, | ||
'description': '', | ||
'defaultValue': { | ||
'value': 'function() {}', | ||
'computed': false | ||
} | ||
}, | ||
onDayTouchStart: { | ||
type: { | ||
name: 'func' | ||
'onDayTouchStart': { | ||
'type': { | ||
'name': 'func' | ||
}, | ||
required: false, | ||
description: '', | ||
defaultValue: { | ||
value: 'function() {}', | ||
computed: false | ||
'required': false, | ||
'description': '', | ||
'defaultValue': { | ||
'value': 'function() {}', | ||
'computed': false | ||
} | ||
}, | ||
onDayTouchEnd: { | ||
type: { | ||
name: 'func' | ||
'onDayTouchEnd': { | ||
'type': { | ||
'name': 'func' | ||
}, | ||
required: false, | ||
description: '', | ||
defaultValue: { | ||
value: 'function() {}', | ||
computed: false | ||
'required': false, | ||
'description': '', | ||
'defaultValue': { | ||
'value': 'function() {}', | ||
'computed': false | ||
} | ||
}, | ||
onDayTouchTap: { | ||
type: { | ||
name: 'func' | ||
'onDayTouchTap': { | ||
'type': { | ||
'name': 'func' | ||
}, | ||
required: false, | ||
description: '', | ||
defaultValue: { | ||
value: 'function() {}', | ||
computed: false | ||
'required': false, | ||
'description': '', | ||
'defaultValue': { | ||
'value': 'function() {}', | ||
'computed': false | ||
} | ||
}, | ||
'hypen-dash': { | ||
'type': { | ||
'name': 'string' | ||
}, | ||
'required': false, | ||
'description': '', | ||
'defaultValue': { | ||
'value': '\'hello\'', | ||
'computed': false | ||
} | ||
} | ||
@@ -304,0 +318,0 @@ } |
@@ -55,10 +55,10 @@ 'use strict'; | ||
ErrorBox.__docgenInfo = { | ||
description: '', | ||
props: { | ||
children: { | ||
type: { | ||
name: 'node' | ||
'description': '', | ||
'props': { | ||
'children': { | ||
'type': { | ||
'name': 'node' | ||
}, | ||
required: true, | ||
description: '' | ||
'required': true, | ||
'description': '' | ||
} | ||
@@ -65,0 +65,0 @@ } |
@@ -46,27 +46,27 @@ 'use strict'; | ||
Button.__docgenInfo = { | ||
description: '', | ||
props: { | ||
children: { | ||
type: { | ||
name: 'string' | ||
'description': '', | ||
'props': { | ||
'children': { | ||
'type': { | ||
'name': 'string' | ||
}, | ||
required: true, | ||
description: '' | ||
'required': true, | ||
'description': '' | ||
}, | ||
onClick: { | ||
type: { | ||
name: 'func' | ||
'onClick': { | ||
'type': { | ||
'name': 'func' | ||
}, | ||
required: false, | ||
description: '' | ||
'required': false, | ||
'description': '' | ||
}, | ||
style: { | ||
type: { | ||
name: 'object' | ||
'style': { | ||
'type': { | ||
'name': 'object' | ||
}, | ||
required: false, | ||
description: '', | ||
defaultValue: { | ||
value: '{}', | ||
computed: false | ||
'required': false, | ||
'description': '', | ||
'defaultValue': { | ||
'value': '{}', | ||
'computed': false | ||
} | ||
@@ -73,0 +73,0 @@ } |
@@ -47,27 +47,27 @@ 'use strict'; | ||
Button.__docgenInfo = { | ||
description: '', | ||
props: { | ||
children: { | ||
type: { | ||
name: 'string' | ||
'description': '', | ||
'props': { | ||
'children': { | ||
'type': { | ||
'name': 'string' | ||
}, | ||
required: true, | ||
description: '' | ||
'required': true, | ||
'description': '' | ||
}, | ||
onClick: { | ||
type: { | ||
name: 'func' | ||
'onClick': { | ||
'type': { | ||
'name': 'func' | ||
}, | ||
required: false, | ||
description: '' | ||
'required': false, | ||
'description': '' | ||
}, | ||
style: { | ||
type: { | ||
name: 'object' | ||
'style': { | ||
'type': { | ||
'name': 'object' | ||
}, | ||
required: false, | ||
description: '', | ||
defaultValue: { | ||
value: '{}', | ||
computed: false | ||
'required': false, | ||
'description': '', | ||
'defaultValue': { | ||
'value': '{}', | ||
'computed': false | ||
} | ||
@@ -74,0 +74,0 @@ } |
@@ -37,10 +37,10 @@ 'use strict'; | ||
First.__docgenInfo = { | ||
description: '', | ||
props: { | ||
children: { | ||
type: { | ||
name: 'node' | ||
'description': '', | ||
'props': { | ||
'children': { | ||
'type': { | ||
'name': 'node' | ||
}, | ||
required: false, | ||
description: '' | ||
'required': false, | ||
'description': '' | ||
} | ||
@@ -47,0 +47,0 @@ } |
@@ -38,10 +38,10 @@ 'use strict'; | ||
First.__docgenInfo = { | ||
description: '', | ||
props: { | ||
children: { | ||
type: { | ||
name: 'node' | ||
'description': '', | ||
'props': { | ||
'children': { | ||
'type': { | ||
'name': 'node' | ||
}, | ||
required: false, | ||
description: '' | ||
'required': false, | ||
'description': '' | ||
} | ||
@@ -48,0 +48,0 @@ } |
@@ -63,10 +63,10 @@ "use strict"; | ||
Wrapper.__docgenInfo = { | ||
description: "", | ||
props: { | ||
children: { | ||
type: { | ||
name: "node" | ||
"description": "", | ||
"props": { | ||
"children": { | ||
"type": { | ||
"name": "node" | ||
}, | ||
required: true, | ||
description: "" | ||
"required": true, | ||
"description": "" | ||
} | ||
@@ -73,0 +73,0 @@ } |
@@ -72,3 +72,3 @@ 'use strict'; | ||
App.__docgenInfo = { | ||
description: '' | ||
'description': '' | ||
}; | ||
@@ -75,0 +75,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138587
1330