@docusaurus/theme-search-algolia 4.0.0-canary-7002 → 4.0.0-canary-7027

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.
@@ -22,7 +22,7 @@ export function useSearchLinkCreator() {
22
22
  const { siteConfig: { baseUrl }, } = useDocusaurusContext();
23
23
  const { algolia: { searchPagePath }, } = useAlgoliaThemeConfig();
24
24
  return useCallback(function createSearchLink(searchValue) {
25
- // Refer to https://github.com/facebook/docusaurus/pull/2838
25
+ // Refer to https://github.com/meta/docusaurus/pull/2838
26
26
  // Note: if searchPagePath is falsy, useSearchPage() will not be called
27
27
  return `${baseUrl}${searchPagePath}?${SEARCH_PARAM_QUERY}=${encodeURIComponent(searchValue)}`;
28
28
  }, [baseUrl, searchPagePath]);
@@ -16,6 +16,6 @@ export function mergeFacetFilters(f1, f2) {
16
16
  // TODO I'm pretty sure this is incorrect
17
17
  // see https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/?client=javascript
18
18
  // Note: Algolia is working to provide a reliable facet merging strategy
19
- // see https://github.com/facebook/docusaurus/pull/11327#issuecomment-3284742923
19
+ // see https://github.com/meta/docusaurus/pull/11327#issuecomment-3284742923
20
20
  return [...normalize(f1), ...normalize(f2)];
21
21
  }
@@ -224,7 +224,7 @@ export default function SearchBar(props) {
224
224
  const docSearchProps = {
225
225
  ...siteConfig.themeConfig.algolia,
226
226
  // Let props override theme config
227
- // See https://github.com/facebook/docusaurus/pull/11581
227
+ // See https://github.com/meta/docusaurus/pull/11581
228
228
  ...props,
229
229
  };
230
230
  return <DocSearch {...docSearchProps} />;
@@ -371,7 +371,7 @@ function SearchPageContent() {
371
371
  <Head>
372
372
  {/*
373
373
  We should not index search pages
374
- See https://github.com/facebook/docusaurus/pull/3233
374
+ See https://github.com/meta/docusaurus/pull/3233
375
375
  */}
376
376
  <meta property="robots" content="noindex, follow" />
377
377
  </Head>
@@ -12,7 +12,7 @@ const utils_validation_1 = require("@docusaurus/utils-validation");
12
12
  const docSearchVersion_1 = require("./docSearchVersion");
13
13
  exports.DEFAULT_CONFIG = {
14
14
  // Enabled by default, as it makes sense in most cases
15
- // see also https://github.com/facebook/docusaurus/issues/5880
15
+ // see also https://github.com/meta/docusaurus/issues/5880
16
16
  contextualSearch: true,
17
17
  searchParameters: {},
18
18
  searchPagePath: 'search',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-search-algolia",
3
- "version": "4.0.0-canary-7002",
3
+ "version": "4.0.0-canary-7027",
4
4
  "description": "Algolia search component for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "sideEffects": [
@@ -22,21 +22,21 @@
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
25
- "url": "https://github.com/facebook/docusaurus.git",
25
+ "url": "https://github.com/meta/docusaurus.git",
26
26
  "directory": "packages/docusaurus-theme-search-algolia"
27
27
  },
28
28
  "license": "MIT",
29
29
  "dependencies": {
30
30
  "@algolia/autocomplete-core": "^1.19.10",
31
31
  "@docsearch/react": "^4.7.0",
32
- "@docusaurus/core": "4.0.0-canary-7002",
33
- "@docusaurus/fs": "4.0.0-canary-7002",
34
- "@docusaurus/plugin-content-docs": "4.0.0-canary-7002",
35
- "@docusaurus/theme-classic": "4.0.0-canary-7002",
36
- "@docusaurus/theme-common": "4.0.0-canary-7002",
37
- "@docusaurus/theme-translations": "4.0.0-canary-7002",
38
- "@docusaurus/utils": "4.0.0-canary-7002",
39
- "@docusaurus/utils-validation": "4.0.0-canary-7002",
32
+ "@docusaurus/core": "4.0.0-canary-7027",
33
+ "@docusaurus/fs": "4.0.0-canary-7027",
34
+ "@docusaurus/plugin-content-docs": "4.0.0-canary-7027",
35
+ "@docusaurus/theme-classic": "4.0.0-canary-7027",
36
+ "@docusaurus/theme-common": "4.0.0-canary-7027",
37
+ "@docusaurus/theme-translations": "4.0.0-canary-7027",
38
+ "@docusaurus/utils": "4.0.0-canary-7027",
39
+ "@docusaurus/utils-validation": "4.0.0-canary-7027",
40
40
  "algoliasearch": "^5.57.0",
41
41
  "algoliasearch-helper": "^3.29.3",
42
42
  "clsx": "^2.1.1",
@@ -46,8 +46,8 @@
46
46
  "utility-types": "^3.11.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@docusaurus/module-type-aliases": "4.0.0-canary-7002",
50
- "@docusaurus/types": "4.0.0-canary-7002",
49
+ "@docusaurus/module-type-aliases": "4.0.0-canary-7027",
50
+ "@docusaurus/types": "4.0.0-canary-7027",
51
51
  "@types/react-dom": "^19.3.0"
52
52
  },
53
53
  "peerDependencies": {
@@ -55,7 +55,7 @@
55
55
  "react-dom": "^19.3.0"
56
56
  },
57
57
  "engines": {
58
- "node": ">=24.21"
58
+ "node": ">=26.13"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "tsc --build && copy-untyped-files && format-gitignored-files \"lib/theme/**/*.js\"",
@@ -32,7 +32,7 @@ export function useSearchLinkCreator(): (searchValue: string) => string {
32
32
 
33
33
  return useCallback(
34
34
  function createSearchLink(searchValue: string) {
35
- // Refer to https://github.com/facebook/docusaurus/pull/2838
35
+ // Refer to https://github.com/meta/docusaurus/pull/2838
36
36
  // Note: if searchPagePath is falsy, useSearchPage() will not be called
37
37
  return `${baseUrl}${
38
38
  searchPagePath as string
@@ -35,6 +35,6 @@ export function mergeFacetFilters(
35
35
  // TODO I'm pretty sure this is incorrect
36
36
  // see https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/?client=javascript
37
37
  // Note: Algolia is working to provide a reliable facet merging strategy
38
- // see https://github.com/facebook/docusaurus/pull/11327#issuecomment-3284742923
38
+ // see https://github.com/meta/docusaurus/pull/11327#issuecomment-3284742923
39
39
  return [...normalize(f1), ...normalize(f2)];
40
40
  }
@@ -315,7 +315,7 @@ export default function SearchBar(props: Partial<DocSearchV4Props>): ReactNode {
315
315
  const docSearchProps: DocSearchV4Props = {
316
316
  ...(siteConfig.themeConfig.algolia as DocSearchV4Props),
317
317
  // Let props override theme config
318
- // See https://github.com/facebook/docusaurus/pull/11581
318
+ // See https://github.com/meta/docusaurus/pull/11581
319
319
  ...props,
320
320
  };
321
321
 
@@ -440,7 +440,7 @@ function SearchPageContent(): ReactNode {
440
440
  <Head>
441
441
  {/*
442
442
  We should not index search pages
443
- See https://github.com/facebook/docusaurus/pull/3233
443
+ See https://github.com/meta/docusaurus/pull/3233
444
444
  */}
445
445
  <meta property="robots" content="noindex, follow" />
446
446
  </Head>
@@ -15,7 +15,7 @@ import type {
15
15
 
16
16
  export const DEFAULT_CONFIG = {
17
17
  // Enabled by default, as it makes sense in most cases
18
- // see also https://github.com/facebook/docusaurus/issues/5880
18
+ // see also https://github.com/meta/docusaurus/issues/5880
19
19
  contextualSearch: true,
20
20
  searchParameters: {},
21
21
  searchPagePath: 'search',