@docsearch/react
Advanced tools
Comparing version 3.0.0-alpha.34 to 3.0.0-alpha.35
@@ -33,3 +33,3 @@ function _extends() { _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; }; return _extends.apply(this, arguments); } | ||
import { useTrapFocus } from './useTrapFocus'; | ||
import { groupBy, identity, noop } from './utils'; | ||
import { groupBy, identity, noop, removeHighlightTags } from './utils'; | ||
export function DocSearchModal(_ref) { | ||
@@ -205,3 +205,3 @@ var _ref$appId = _ref.appId, | ||
var sources = groupBy(hits, function (hit) { | ||
return hit.hierarchy.lvl0; | ||
return removeHighlightTags(hit.hierarchy.lvl0); | ||
}); // We store the `lvl0`s to display them as search suggestions | ||
@@ -208,0 +208,0 @@ // in the “no results“ screen. |
@@ -6,2 +6,3 @@ function _extends() { _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; }; return _extends.apply(this, arguments); } | ||
import { Results } from './Results'; | ||
import { removeHighlightTags } from './utils'; | ||
export function ResultsScreen(props) { | ||
@@ -15,3 +16,3 @@ return /*#__PURE__*/React.createElement("div", { | ||
var title = collection.items[0].hierarchy.lvl0; | ||
var title = removeHighlightTags(collection.items[0]._highlightResult.hierarchy.lvl0.value); | ||
return /*#__PURE__*/React.createElement(Results, _extends({}, props, { | ||
@@ -18,0 +19,0 @@ key: index, |
export * from './groupBy'; | ||
export * from './identity'; | ||
export * from './noop'; | ||
export * from './removeHighlightTags'; |
export * from './groupBy'; | ||
export * from './identity'; | ||
export * from './noop'; | ||
export * from './noop'; | ||
export * from './removeHighlightTags'; |
@@ -1,1 +0,1 @@ | ||
export declare const version = "3.0.0-alpha.34"; | ||
export declare const version = "3.0.0-alpha.35"; |
@@ -1,1 +0,1 @@ | ||
export var version = '3.0.0-alpha.34'; | ||
export var version = '3.0.0-alpha.35'; |
{ | ||
"name": "@docsearch/react", | ||
"description": "React package for DocSearch, the best search experience for docs.", | ||
"version": "3.0.0-alpha.34", | ||
"version": "3.0.0-alpha.35", | ||
"license": "MIT", | ||
@@ -39,3 +39,3 @@ "homepage": "https://docsearch.algolia.com", | ||
"@algolia/autocomplete-preset-algolia": "1.0.0-alpha.44", | ||
"@docsearch/css": "3.0.0-alpha.34", | ||
"@docsearch/css": "3.0.0-alpha.35", | ||
"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
374002
98
1937
+ Added@docsearch/css@3.0.0-alpha.35(transitive)
- Removed@docsearch/css@3.0.0-alpha.34(transitive)