@docusaurus/theme-search-algolia 0.0.0-4518 → 0.0.0-4524

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,7 +96,8 @@ function DocSearch({ contextualSearch, externalUrlRegex, ...props }) {
96
96
  },
97
97
  }).current;
98
98
  const transformItems = useRef((items) => items.map((item) => {
99
- // If Algolia contains a external domain, we should navigate without relative URL
99
+ // If Algolia contains a external domain, we should navigate without
100
+ // relative URL
100
101
  if (isRegexpStringMatch(externalUrlRegex, item.url)) {
101
102
  return item;
102
103
  }
@@ -8,8 +8,8 @@ import React from 'react';
8
8
  import Head from '@docusaurus/Head';
9
9
  // Override default/agnostic SearchMetadata to use Algolia-specific metadata
10
10
  function SearchMetadata({ locale, version, tag }) {
11
- // Seems safe to consider here the locale is the language,
12
- // as the existing docsearch:language filter is afaik a regular string-based filter
11
+ // Seems safe to consider here the locale is the language, as the existing
12
+ // docsearch:language filter is afaik a regular string-based filter
13
13
  const language = locale;
14
14
  return (<Head>
15
15
  {language && <meta name="docsearch:language" content={language}/>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-search-algolia",
3
- "version": "0.0.0-4518",
3
+ "version": "0.0.0-4524",
4
4
  "description": "Algolia search component for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "exports": {
@@ -25,12 +25,12 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@docsearch/react": "^3.0.0-alpha.39",
28
- "@docusaurus/core": "0.0.0-4518",
29
- "@docusaurus/logger": "0.0.0-4518",
30
- "@docusaurus/theme-common": "0.0.0-4518",
31
- "@docusaurus/theme-translations": "0.0.0-4518",
32
- "@docusaurus/utils": "0.0.0-4518",
33
- "@docusaurus/utils-validation": "0.0.0-4518",
28
+ "@docusaurus/core": "0.0.0-4524",
29
+ "@docusaurus/logger": "0.0.0-4524",
30
+ "@docusaurus/theme-common": "0.0.0-4524",
31
+ "@docusaurus/theme-translations": "0.0.0-4524",
32
+ "@docusaurus/utils": "0.0.0-4524",
33
+ "@docusaurus/utils-validation": "0.0.0-4524",
34
34
  "algoliasearch": "^4.10.5",
35
35
  "algoliasearch-helper": "^3.5.5",
36
36
  "clsx": "^1.1.1",
@@ -40,7 +40,7 @@
40
40
  "utility-types": "^3.10.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@docusaurus/module-type-aliases": "0.0.0-4518",
43
+ "@docusaurus/module-type-aliases": "0.0.0-4524",
44
44
  "fs-extra": "^10.0.0"
45
45
  },
46
46
  "peerDependencies": {
@@ -53,5 +53,5 @@
53
53
  "engines": {
54
54
  "node": ">=14"
55
55
  },
56
- "gitHead": "734bca0f3ea8d04fa3b908d56ea0fb159ab47ab3"
56
+ "gitHead": "41a6bff3a67446f7d2a2972cbe4d05fec7378a15"
57
57
  }
@@ -168,7 +168,8 @@ function DocSearch({
168
168
  const transformItems = useRef<DocSearchModalProps['transformItems']>(
169
169
  (items) =>
170
170
  items.map((item) => {
171
- // If Algolia contains a external domain, we should navigate without relative URL
171
+ // If Algolia contains a external domain, we should navigate without
172
+ // relative URL
172
173
  if (isRegexpStringMatch(externalUrlRegex, item.url)) {
173
174
  return item;
174
175
  }
@@ -12,8 +12,8 @@ import type {Props} from '@theme/SearchMetadata';
12
12
 
13
13
  // Override default/agnostic SearchMetadata to use Algolia-specific metadata
14
14
  function SearchMetadata({locale, version, tag}: Props): JSX.Element {
15
- // Seems safe to consider here the locale is the language,
16
- // as the existing docsearch:language filter is afaik a regular string-based filter
15
+ // Seems safe to consider here the locale is the language, as the existing
16
+ // docsearch:language filter is afaik a regular string-based filter
17
17
  const language = locale;
18
18
 
19
19
  return (
package/src/types.d.ts CHANGED
@@ -8,7 +8,3 @@
8
8
  /// <reference types="@docusaurus/module-type-aliases" />
9
9
  /// <reference types="@docusaurus/theme-common" />
10
10
  /// <reference types="@docusaurus/theme-classic" />
11
-
12
- export type FacetFilters = Required<
13
- Required<DocSearchProps>['searchParameters']
14
- >['facetFilters'];