@storybook/addon-comments
Advanced tools
Comparing version 3.2.14 to 3.2.15
@@ -104,4 +104,4 @@ 'use strict'; | ||
return _react2.default.createElement( | ||
'a', | ||
{ style: _style2.default.commentDelete, onClick: this.deleteComment, role: 'button', tabIndex: '0' }, | ||
'button', | ||
{ type: 'button', style: _style2.default.commentDelete, onClick: this.deleteComment }, | ||
'delete' | ||
@@ -114,2 +114,3 @@ ); | ||
var comment = this.props.comment; | ||
var commentStyle = _style2.default.commentItem; | ||
@@ -116,0 +117,0 @@ if (comment.loading) { |
@@ -65,4 +65,7 @@ 'use strict'; | ||
fontSize: 11, | ||
color: 'rgb(200, 200, 200)' | ||
color: 'rgb(200, 200, 200)', | ||
border: 'none', | ||
background: 'transparent', | ||
padding: 0 | ||
} | ||
}; |
@@ -72,2 +72,3 @@ 'use strict'; | ||
var comments = item.comments; | ||
var invalidated = false; | ||
@@ -74,0 +75,0 @@ |
@@ -69,3 +69,2 @@ 'use strict'; | ||
user: null, | ||
users: [], | ||
comments: [], | ||
@@ -72,0 +71,0 @@ loading: true |
{ | ||
"name": "@storybook/addon-comments", | ||
"version": "3.2.14", | ||
"version": "3.2.15", | ||
"description": "Comments addon for Storybook", | ||
@@ -22,7 +22,7 @@ "keywords": [ | ||
"storybook": "start-storybook -p 3006", | ||
"storybook-local": "STORYBOOK_CLOUD_SERVER='http://localhost:3003/graphql' start-storybook -p 9010", | ||
"storybook-local": "cross-env STORYBOOK_CLOUD_SERVER='http://localhost:3003/graphql' start-storybook -p 9010", | ||
"storybook-remote": "start-storybook -p 3006" | ||
}, | ||
"dependencies": { | ||
"@storybook/addons": "^3.2.14", | ||
"@storybook/addons": "^3.2.15", | ||
"babel-runtime": "^6.26.0", | ||
@@ -32,3 +32,3 @@ "deep-equal": "^1.0.1", | ||
"global": "^4.3.2", | ||
"insert-css": "^1.0.0", | ||
"insert-css": "^2.0.0", | ||
"marked": "^0.3.6", | ||
@@ -38,3 +38,3 @@ "moment": "^2.19.0", | ||
"react-render-html": "^0.5.2", | ||
"react-textarea-autosize": "^4.3.0" | ||
"react-textarea-autosize": "^5.2.0" | ||
}, | ||
@@ -44,5 +44,4 @@ "devDependencies": { | ||
"@kadira/storybook-deployer": "*", | ||
"@storybook/addon-actions": "^3.2.14", | ||
"@storybook/react": "^3.2.14", | ||
"git-url-parse": "^6.2.2", | ||
"@storybook/addon-actions": "^3.2.15", | ||
"@storybook/react": "^3.2.15", | ||
"react": "^16.0.0", | ||
@@ -49,0 +48,0 @@ "react-dom": "^16.0.0", |
@@ -38,5 +38,5 @@ import PropTypes from 'prop-types'; | ||
return ( | ||
<a style={style.commentDelete} onClick={this.deleteComment} role="button" tabIndex="0"> | ||
<button type="button" style={style.commentDelete} onClick={this.deleteComment}> | ||
delete | ||
</a> | ||
</button> | ||
); | ||
@@ -46,3 +46,3 @@ } | ||
render() { | ||
const comment = this.props.comment; | ||
const { comment } = this.props; | ||
let commentStyle = style.commentItem; | ||
@@ -49,0 +49,0 @@ if (comment.loading) { |
@@ -57,3 +57,6 @@ const commentItem = { | ||
color: 'rgb(200, 200, 200)', | ||
border: 'none', | ||
background: 'transparent', | ||
padding: 0, | ||
}, | ||
}; |
@@ -35,3 +35,3 @@ import deepEquals from 'deep-equal'; | ||
const comments = item.comments; | ||
const { comments } = item; | ||
let invalidated = false; | ||
@@ -38,0 +38,0 @@ |
@@ -12,3 +12,2 @@ import PropTypes from 'prop-types'; | ||
user: null, | ||
users: [], | ||
comments: [], | ||
@@ -15,0 +14,0 @@ loading: true, |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
222850
8
2035
0
+ Addedinsert-css@2.0.0(transitive)
+ Addedreact@16.14.0(transitive)
+ Addedreact-textarea-autosize@5.2.1(transitive)
- Removedinsert-css@1.1.0(transitive)
- Removedreact-textarea-autosize@4.3.2(transitive)
Updated@storybook/addons@^3.2.15
Updatedinsert-css@^2.0.0