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

react-tagsinput

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tagsinput - npm Package Compare versions

Comparing version 3.16.0 to 3.16.1

2

bower.json

@@ -7,3 +7,3 @@ {

],
"version": "3.16.0",
"version": "3.16.1",
"homepage": "https://github.com/olahol/react-tagsinput",

@@ -10,0 +10,0 @@ "description": "Highly customizable React component for inputing tags",

{
"name": "react-tagsinput",
"version": "3.16.0",
"version": "3.16.1",
"description": "Highly customizable React component for inputing tags",

@@ -15,2 +15,3 @@ "main": "react-tagsinput.js",

"babel-plugin-transform-es2015-modules-umd": "^6.8.0",
"babel-plugin-transform-react-remove-prop-types": "^0.3.3",
"babel-preset-es2015": "^6.6.0",

@@ -17,0 +18,0 @@ "babel-preset-react": "^6.5.0",

@@ -161,10 +161,2 @@ (function (global, factory) {

defaultRenderTag.propTypes = {
key: _react2.default.PropTypes.number,
tag: _react2.default.PropTypes.string,
onRemove: _react2.default.PropTypes.func,
classNameRemove: _react2.default.PropTypes.string,
getTagDisplayValue: _react2.default.PropTypes.func
};
function defaultRenderInput(_ref) {

@@ -181,8 +173,2 @@ var addTag = _ref.addTag,

defaultRenderInput.propTypes = {
value: _react2.default.PropTypes.string,
onChange: _react2.default.PropTypes.func,
addTag: _react2.default.PropTypes.func
};
function defaultRenderLayout(tagComponents, inputComponent) {

@@ -629,26 +615,2 @@ return _react2.default.createElement(

TagsInput.propTypes = {
focusedClassName: _react2.default.PropTypes.string,
addKeys: _react2.default.PropTypes.array,
addOnBlur: _react2.default.PropTypes.bool,
addOnPaste: _react2.default.PropTypes.bool,
currentValue: _react2.default.PropTypes.string,
inputValue: _react2.default.PropTypes.string,
inputProps: _react2.default.PropTypes.object,
onChange: _react2.default.PropTypes.func.isRequired,
onChangeInput: _react2.default.PropTypes.func,
removeKeys: _react2.default.PropTypes.array,
renderInput: _react2.default.PropTypes.func,
renderTag: _react2.default.PropTypes.func,
renderLayout: _react2.default.PropTypes.func,
pasteSplit: _react2.default.PropTypes.func,
tagProps: _react2.default.PropTypes.object,
onlyUnique: _react2.default.PropTypes.bool,
value: _react2.default.PropTypes.array.isRequired,
maxTags: _react2.default.PropTypes.number,
validationRegex: _react2.default.PropTypes.instanceOf(RegExp),
disabled: _react2.default.PropTypes.bool,
tagDisplayProp: _react2.default.PropTypes.string,
preventSubmit: _react2.default.PropTypes.bool
};
TagsInput.defaultProps = {

@@ -655,0 +617,0 @@ className: 'react-tagsinput',

@@ -9,3 +9,3 @@ const jsdom = require("jsdom");

const React = require("react");
const TestUtils = require("react-addons-test-utils");
const TestUtils = require("react-dom/test-utils");
const assert = require("assert");

@@ -610,14 +610,14 @@ const sinon = require('sinon');

it("updates the state", () => {
const TestParent = React.createFactory(React.createClass({
getInitialState() {
return {
currentValue: "init"
};
},
class TestParent extends React.Component {
constructor() {
super()
this.state = {currentValue: "init"};
}
render() {
return <TestComponent ref="testComp" currentValue={this.state.currentValue} />
}
}));
}
let parent = TestUtils.renderIntoDocument(TestParent());
let parent = TestUtils.renderIntoDocument(<TestParent />);
parent.setState({

@@ -631,15 +631,14 @@ currentValue: "test"

it("does not modify the state", () => {
const TestParent = React.createFactory(React.createClass({
getInitialState() {
return {
currentValue: "init",
fake: "fake"
};
},
class TestParent extends React.Component {
constructor() {
super()
this.state = {currentValue: "init", fake: "fake"};
}
render() {
return <TestComponent ref="testComp" fake={this.state.fake} currentValue={this.state.currentValue} />
}
}));
}
let parent = TestUtils.renderIntoDocument(TestParent());
let parent = TestUtils.renderIntoDocument(<TestParent />);
parent.setState({

@@ -686,4 +685,4 @@ fake: "test"

it("should not focus on an input that does not have focus method", () => {
let Empty = React.createClass({
render: function () {
class Empty extends React.Component {
render () {
return (

@@ -695,3 +694,3 @@ <span>

}
})
}

@@ -698,0 +697,0 @@ function renderInput (props) {

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