react-text-illuminator
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -1,2 +0,2 @@ | ||
import React from 'react'; | ||
/// <reference types="react" /> | ||
interface ReactTextIlluminatorProps { | ||
@@ -7,3 +7,3 @@ textContent: string; | ||
} | ||
declare const ReactTextIlluminator: React.FC<ReactTextIlluminatorProps>; | ||
export default ReactTextIlluminator; | ||
export default function ReactTextIlluminator({ textContent, highlightTerm, highlightColor, }: ReactTextIlluminatorProps): JSX.Element; | ||
export {}; |
@@ -9,3 +9,3 @@ 'use strict'; | ||
var ReactTextIlluminator = function ReactTextIlluminator(_ref) { | ||
function ReactTextIlluminator(_ref) { | ||
var textContent = _ref.textContent, | ||
@@ -40,5 +40,5 @@ _ref$highlightTerm = _ref.highlightTerm, | ||
return React.createElement("p", null, highlight(textContent, highlightTerm)); | ||
}; | ||
} | ||
exports.default = ReactTextIlluminator; | ||
//# sourceMappingURL=react-text-illuminator.cjs.development.js.map |
import React from 'react'; | ||
var ReactTextIlluminator = function ReactTextIlluminator(_ref) { | ||
function ReactTextIlluminator(_ref) { | ||
var textContent = _ref.textContent, | ||
@@ -33,5 +33,5 @@ _ref$highlightTerm = _ref.highlightTerm, | ||
return React.createElement("p", null, highlight(textContent, highlightTerm)); | ||
}; | ||
} | ||
export default ReactTextIlluminator; | ||
//# sourceMappingURL=react-text-illuminator.esm.js.map |
{ | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "main": "dist/index.js", |
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
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
17687
125