react-highlight-words
Advanced tools
Comparing version 0.19.0 to 0.20.0
@@ -113,2 +113,3 @@ module.exports = | ||
textToHighlight: _propTypes2['default'].string.isRequired, | ||
unhighlightTag: _propTypes2['default'].oneOfType([_propTypes2['default'].node, _propTypes2['default'].func, _propTypes2['default'].string]), | ||
unhighlightClassName: _propTypes2['default'].string, | ||
@@ -143,2 +144,4 @@ unhighlightStyle: _propTypes2['default'].object | ||
var textToHighlight = _ref.textToHighlight; | ||
var _ref$unhighlightTag = _ref.unhighlightTag; | ||
var unhighlightTag = _ref$unhighlightTag === undefined ? 'span' : _ref$unhighlightTag; | ||
var _ref$unhighlightClassName = _ref.unhighlightClassName; | ||
@@ -148,3 +151,3 @@ var unhighlightClassName = _ref$unhighlightClassName === undefined ? '' : _ref$unhighlightClassName; | ||
var rest = _objectWithoutProperties(_ref, ['activeClassName', 'activeIndex', 'activeStyle', 'autoEscape', 'caseSensitive', 'className', 'findChunks', 'highlightClassName', 'highlightStyle', 'highlightTag', 'sanitize', 'searchWords', 'textToHighlight', 'unhighlightClassName', 'unhighlightStyle']); | ||
var rest = _objectWithoutProperties(_ref, ['activeClassName', 'activeIndex', 'activeStyle', 'autoEscape', 'caseSensitive', 'className', 'findChunks', 'highlightClassName', 'highlightStyle', 'highlightTag', 'sanitize', 'searchWords', 'textToHighlight', 'unhighlightTag', 'unhighlightClassName', 'unhighlightStyle']); | ||
@@ -214,3 +217,3 @@ var chunks = (0, _highlightWordsCore.findAll)({ | ||
} else { | ||
return (0, _react.createElement)('span', { | ||
return (0, _react.createElement)(unhighlightTag, { | ||
children: text, | ||
@@ -217,0 +220,0 @@ className: unhighlightClassName, |
@@ -122,2 +122,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
textToHighlight: _propTypes2['default'].string.isRequired, | ||
unhighlightTag: _propTypes2['default'].oneOfType([_propTypes2['default'].node, _propTypes2['default'].func, _propTypes2['default'].string]), | ||
unhighlightClassName: _propTypes2['default'].string, | ||
@@ -152,2 +153,4 @@ unhighlightStyle: _propTypes2['default'].object | ||
var textToHighlight = _ref.textToHighlight; | ||
var _ref$unhighlightTag = _ref.unhighlightTag; | ||
var unhighlightTag = _ref$unhighlightTag === undefined ? 'span' : _ref$unhighlightTag; | ||
var _ref$unhighlightClassName = _ref.unhighlightClassName; | ||
@@ -157,3 +160,3 @@ var unhighlightClassName = _ref$unhighlightClassName === undefined ? '' : _ref$unhighlightClassName; | ||
var rest = _objectWithoutProperties(_ref, ['activeClassName', 'activeIndex', 'activeStyle', 'autoEscape', 'caseSensitive', 'className', 'findChunks', 'highlightClassName', 'highlightStyle', 'highlightTag', 'sanitize', 'searchWords', 'textToHighlight', 'unhighlightClassName', 'unhighlightStyle']); | ||
var rest = _objectWithoutProperties(_ref, ['activeClassName', 'activeIndex', 'activeStyle', 'autoEscape', 'caseSensitive', 'className', 'findChunks', 'highlightClassName', 'highlightStyle', 'highlightTag', 'sanitize', 'searchWords', 'textToHighlight', 'unhighlightTag', 'unhighlightClassName', 'unhighlightStyle']); | ||
@@ -223,3 +226,3 @@ var chunks = (0, _highlightWordsCore.findAll)({ | ||
} else { | ||
return (0, _react.createElement)('span', { | ||
return (0, _react.createElement)(unhighlightTag, { | ||
children: text, | ||
@@ -226,0 +229,0 @@ className: unhighlightClassName, |
{ | ||
"name": "react-highlight-words", | ||
"version": "0.19.0", | ||
"version": "0.20.0", | ||
"description": "React component to highlight words within a larger body of text", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1604911
3888