@apify/docs-theme 1.0.157 → 1.0.158
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/docs-theme",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.158",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
"@apify/docs-search-modal": "^1.2.0",
|
|
23
23
|
"@docusaurus/theme-common": "3.7.0",
|
|
24
24
|
"@stackql/docusaurus-plugin-hubspot": "^1.1.0",
|
|
25
|
+
"algoliasearch": "^5.19.0",
|
|
26
|
+
"algoliasearch-helper": "^3.22.6",
|
|
25
27
|
"axios": "^1.7.9",
|
|
26
28
|
"babel-loader": "^9.2.1",
|
|
27
29
|
"docusaurus-gtm-plugin": "^0.0.2",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import React, { useEffect, useReducer, useRef, useState } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
+
import { liteClient } from 'algoliasearch/lite';
|
|
4
5
|
import algoliaSearchHelper from 'algoliasearch-helper';
|
|
5
|
-
import algoliaSearch from 'algoliasearch/lite';
|
|
6
6
|
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
|
7
7
|
import Head from '@docusaurus/Head';
|
|
8
8
|
import { useAllDocsData } from '@docusaurus/plugin-content-docs/client';
|
|
@@ -117,7 +117,6 @@ function SearchPageContent() {
|
|
|
117
117
|
const {
|
|
118
118
|
algolia: { appId, apiKey, indexName },
|
|
119
119
|
} = useAlgoliaThemeConfig();
|
|
120
|
-
const processSearchResultUrl = useSearchResultUrlProcessor();
|
|
121
120
|
const documentsFoundPlural = useDocumentsFoundPlural();
|
|
122
121
|
const docsSearchVersionsHelpers = useDocsSearchVersionsHelpers();
|
|
123
122
|
const [searchQuery, setSearchQuery] = useSearchQueryString();
|
|
@@ -167,7 +166,7 @@ function SearchPageContent() {
|
|
|
167
166
|
},
|
|
168
167
|
initialSearchResultState,
|
|
169
168
|
);
|
|
170
|
-
const algoliaClient =
|
|
169
|
+
const algoliaClient = liteClient(appId, apiKey);
|
|
171
170
|
const algoliaHelper = algoliaSearchHelper(algoliaClient, indexName, {
|
|
172
171
|
hitsPerPage: 15,
|
|
173
172
|
advancedSyntax: true,
|