react-tag-input
Advanced tools
Comparing version 3.0.6 to 4.0.0
'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _react = require('react'); | ||
@@ -17,6 +19,2 @@ | ||
var _merge = require('lodash/fp/merge'); | ||
var _merge2 = _interopRequireDefault(_merge); | ||
var _Suggestions = require('./Suggestions'); | ||
@@ -91,3 +89,3 @@ | ||
this.setState({ | ||
classNames: (0, _merge2.default)(DefaultClassNames, this.props.classNames) | ||
classNames: _extends({}, DefaultClassNames, this.props.classNames) | ||
}); | ||
@@ -117,3 +115,3 @@ }, | ||
suggestions: suggestions, | ||
classNames: (0, _merge2.default)(DefaultClassNames, props.classNames) | ||
classNames: _extends({}, DefaultClassNames, props.classNames) | ||
}); | ||
@@ -120,0 +118,0 @@ }, |
@@ -13,5 +13,5 @@ 'use strict'; | ||
var _flow = require('lodash/fp/flow'); | ||
var _lodash = require('lodash.flow'); | ||
var _flow2 = _interopRequireDefault(_flow); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
@@ -132,2 +132,2 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
}; | ||
exports.default = (0, _flow2.default)((0, _reactDnd.DragSource)(ItemTypes.TAG, tagSource, dragSource), (0, _reactDnd.DropTarget)(ItemTypes.TAG, tagTarget, dropCollect))(Tag); | ||
exports.default = (0, _lodash2.default)((0, _reactDnd.DragSource)(ItemTypes.TAG, tagSource, dragSource), (0, _reactDnd.DropTarget)(ItemTypes.TAG, tagTarget, dropCollect))(Tag); |
@@ -5,3 +5,2 @@ import React from 'react'; | ||
import HTML5Backend from 'react-dnd-html5-backend'; | ||
import merge from 'lodash/fp/merge'; | ||
import Suggestions from './Suggestions'; | ||
@@ -67,3 +66,3 @@ import Tag from './Tag'; | ||
this.setState({ | ||
classNames: merge(DefaultClassNames, this.props.classNames) | ||
classNames: {...DefaultClassNames, ...this.props.classNames} | ||
}); | ||
@@ -93,3 +92,3 @@ }, | ||
suggestions: suggestions, | ||
classNames: merge(DefaultClassNames, props.classNames) | ||
classNames: {...DefaultClassNames, ...props.classNames} | ||
}); | ||
@@ -96,0 +95,0 @@ }, |
import React, { Component } from 'react'; | ||
import { DragSource, DropTarget } from 'react-dnd'; | ||
import flow from 'lodash/fp/flow'; | ||
import flow from 'lodash.flow'; | ||
@@ -5,0 +5,0 @@ const ItemTypes = { TAG: 'tag' }; |
{ | ||
"name": "react-tag-input", | ||
"version": "3.0.6", | ||
"version": "4.0.0", | ||
"description": "React tags is a fantastically simple tagging component for your React projects", | ||
@@ -24,9 +24,13 @@ "main": "dist-modules/reactTags.js", | ||
"dependencies": { | ||
"lodash": "^4.12.0", | ||
"lodash.flow": "^3.3.0", | ||
"react-dnd": "^2.0.2", | ||
"react-dnd-html5-backend": "^2.0.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^15.1.0", | ||
"react-dnd": "^2.0.2", | ||
"react-dnd-html5-backend": "^2.0.0", | ||
"react-dom": "^15.1.0" | ||
}, | ||
"devDependencies": { | ||
"react": "^15.1.0", | ||
"react-dom": "^15.1.0", | ||
"babel-cli": "^6.9.0", | ||
@@ -33,0 +37,0 @@ "babel-core": "^6.0.20", |
Sorry, the diff of this file is too big to display
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
1038447
19
15245
+ Addedlodash.flow@^3.3.0
+ Addedlodash.flow@3.5.0(transitive)
- Removedlodash@^4.12.0
- Removedreact@^15.1.0
- Removedreact-dom@^15.1.0