Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-cimpress-comment

Package Overview
Dependencies
Maintainers
3
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cimpress-comment - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

10

lib/Comment.js

@@ -276,10 +276,6 @@ 'use strict';

{ className: classes, value: this.state.editedComment || this.state.comment, onChange: this.change.bind(this),
displayTransform: function displayTransform(id, display, type) {
return '@' + display + ' ';
}, allowSpaceInQuery: true },
_react2.default.createElement(_reactMentions.Mention, { trigger: '@',
data: function data(search, callback) {
allowSpaceInQuery: true },
_react2.default.createElement(_reactMentions.Mention, { trigger: '@', data: function data(search, callback) {
_this6.mentionsClient.fetchMatchingMentions(search).then(callback);
},
appendSpaceOnAdd: true
}
})

@@ -286,0 +282,0 @@ ),

@@ -119,7 +119,3 @@ 'use strict';

value: function onInputChange(event, newValue, newPlainTextValue, mentions) {
if (event.keyCode && event.keyCode === 13) {
// The "Enter" key was pressed.
this.postComment(this.state.commentToAdd);
}
this.setState({ commentToAdd: event.target.value });
this.setState({ commentToAdd: newPlainTextValue });
}

@@ -274,10 +270,7 @@ }, {

{ className: 'mentions mentions-min-height', value: this.state.commentToAdd, onChange: this.onInputChange.bind(this),
displayTransform: function displayTransform(id, display, type) {
return '@' + display + ' ';
}, allowSpaceInQuery: true },
allowSpaceInQuery: true },
_react2.default.createElement(_reactMentions.Mention, { trigger: '@',
data: function data(search, callback) {
_this6.mentionsClient.fetchMatchingMentions(search).then(callback);
},
appendSpaceOnAdd: true
}
})

@@ -284,0 +277,0 @@ ),

{
"name": "react-cimpress-comment",
"version": "0.2.2",
"version": "0.2.3",
"description": "Visualizes comment(s) for a particular platform resource",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc