Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@docsearch/react

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docsearch/react - npm Package Compare versions

Comparing version 3.0.0-alpha.34 to 3.0.0-alpha.35

dist/esm/utils/removeHighlightTags.d.ts

4

dist/esm/DocSearchModal.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc