@docsearch/react
Advanced tools
Comparing version 3.0.0-alpha.39 to 3.0.0-alpha.40
var regexHighlightTags = /(<mark>|<\/mark>)/g; | ||
var regexHasHighlightTags = RegExp(regexHighlightTags.source); | ||
export function removeHighlightTags(hit) { | ||
if (!hit.__docsearch_parent && !hit._highlightResult) { | ||
var _internalDocSearchHit, _internalDocSearchHit2, _internalDocSearchHit3, _hit$_highlightResult, _hit$_highlightResult2; | ||
var internalDocSearchHit = hit; | ||
if (!internalDocSearchHit.__docsearch_parent && !hit._highlightResult) { | ||
return hit.hierarchy.lvl0; | ||
} | ||
var _ref = hit._highlightResult ? hit._highlightResult.hierarchy.lvl0 : hit.__docsearch_parent._highlightResult.hierarchy.lvl0, | ||
var _ref = (internalDocSearchHit.__docsearch_parent ? (_internalDocSearchHit = internalDocSearchHit.__docsearch_parent) === null || _internalDocSearchHit === void 0 ? void 0 : (_internalDocSearchHit2 = _internalDocSearchHit._highlightResult) === null || _internalDocSearchHit2 === void 0 ? void 0 : (_internalDocSearchHit3 = _internalDocSearchHit2.hierarchy) === null || _internalDocSearchHit3 === void 0 ? void 0 : _internalDocSearchHit3.lvl0 : (_hit$_highlightResult = hit._highlightResult) === null || _hit$_highlightResult === void 0 ? void 0 : (_hit$_highlightResult2 = _hit$_highlightResult.hierarchy) === null || _hit$_highlightResult2 === void 0 ? void 0 : _hit$_highlightResult2.lvl0) || {}, | ||
value = _ref.value; | ||
@@ -10,0 +14,0 @@ |
@@ -1,1 +0,1 @@ | ||
export declare const version = "3.0.0-alpha.39"; | ||
export declare const version = "3.0.0-alpha.40"; |
@@ -1,1 +0,1 @@ | ||
export var version = '3.0.0-alpha.39'; | ||
export var version = '3.0.0-alpha.40'; |
{ | ||
"name": "@docsearch/react", | ||
"description": "React package for DocSearch, the best search experience for docs.", | ||
"version": "3.0.0-alpha.39", | ||
"version": "3.0.0-alpha.40", | ||
"license": "MIT", | ||
@@ -37,5 +37,5 @@ "homepage": "https://docsearch.algolia.com", | ||
"dependencies": { | ||
"@algolia/autocomplete-core": "1.2.1", | ||
"@algolia/autocomplete-preset-algolia": "1.2.1", | ||
"@docsearch/css": "3.0.0-alpha.39", | ||
"@algolia/autocomplete-core": "1.2.2", | ||
"@algolia/autocomplete-preset-algolia": "1.2.2", | ||
"@docsearch/css": "3.0.0-alpha.40", | ||
"algoliasearch": "^4.0.0" | ||
@@ -42,0 +42,0 @@ }, |
Sorry, the diff of this file is too big to display
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
385068
1944
+ Added@algolia/autocomplete-core@1.2.2(transitive)
+ Added@algolia/autocomplete-preset-algolia@1.2.2(transitive)
+ Added@algolia/autocomplete-shared@1.2.2(transitive)
+ Added@docsearch/css@3.0.0-alpha.40(transitive)
- Removed@algolia/autocomplete-core@1.2.1(transitive)
- Removed@algolia/autocomplete-preset-algolia@1.2.1(transitive)
- Removed@algolia/autocomplete-shared@1.2.1(transitive)
- Removed@docsearch/css@3.0.0-alpha.39(transitive)