@docusaurus/theme-search-algolia 0.0.0-4864 → 0.0.0-4865
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.
|
@@ -15,7 +15,6 @@ import {isRegexpStringMatch, useSearchPage} from '@docusaurus/theme-common';
|
|
|
15
15
|
import {DocSearchButton, useDocSearchKeyboardEvents} from '@docsearch/react';
|
|
16
16
|
import {useAlgoliaContextualFacetFilters} from '@docusaurus/theme-search-algolia/client';
|
|
17
17
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
18
|
-
import styles from './styles.module.css';
|
|
19
18
|
let DocSearchModal = null;
|
|
20
19
|
function Hit({hit, children}) {
|
|
21
20
|
return <Link to={hit.url}>{children}</Link>;
|
|
@@ -159,19 +158,17 @@ function DocSearch({contextualSearch, externalUrlRegex, ...props}) {
|
|
|
159
158
|
/>
|
|
160
159
|
</Head>
|
|
161
160
|
|
|
162
|
-
<
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
/>
|
|
174
|
-
</div>
|
|
161
|
+
<DocSearchButton
|
|
162
|
+
onTouchStart={importDocSearchModalIfNeeded}
|
|
163
|
+
onFocus={importDocSearchModalIfNeeded}
|
|
164
|
+
onMouseOver={importDocSearchModalIfNeeded}
|
|
165
|
+
onClick={onOpen}
|
|
166
|
+
ref={searchButtonRef}
|
|
167
|
+
translations={{
|
|
168
|
+
buttonText: translatedSearchLabel,
|
|
169
|
+
buttonAriaLabel: translatedSearchLabel,
|
|
170
|
+
}}
|
|
171
|
+
/>
|
|
175
172
|
|
|
176
173
|
{isOpen &&
|
|
177
174
|
DocSearchModal &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-search-algolia",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4865",
|
|
4
4
|
"description": "Algolia search component for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"sideEffects": [
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@docsearch/react": "^3.0.0",
|
|
32
|
-
"@docusaurus/core": "0.0.0-
|
|
33
|
-
"@docusaurus/logger": "0.0.0-
|
|
34
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
35
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
36
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
37
|
-
"@docusaurus/utils": "0.0.0-
|
|
38
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
32
|
+
"@docusaurus/core": "0.0.0-4865",
|
|
33
|
+
"@docusaurus/logger": "0.0.0-4865",
|
|
34
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4865",
|
|
35
|
+
"@docusaurus/theme-common": "0.0.0-4865",
|
|
36
|
+
"@docusaurus/theme-translations": "0.0.0-4865",
|
|
37
|
+
"@docusaurus/utils": "0.0.0-4865",
|
|
38
|
+
"@docusaurus/utils-validation": "0.0.0-4865",
|
|
39
39
|
"algoliasearch": "^4.13.0",
|
|
40
40
|
"algoliasearch-helper": "^3.8.2",
|
|
41
41
|
"clsx": "^1.1.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"utility-types": "^3.10.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
49
|
+
"@docusaurus/module-type-aliases": "0.0.0-4865"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^16.8.4 || ^17.0.0",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=14"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "3bfec620587180f9e7dad2bf2a2713172be65fe7"
|
|
59
59
|
}
|
|
@@ -17,7 +17,6 @@ import {DocSearchButton, useDocSearchKeyboardEvents} from '@docsearch/react';
|
|
|
17
17
|
import type {SearchClient} from 'algoliasearch/lite';
|
|
18
18
|
import {useAlgoliaContextualFacetFilters} from '@docusaurus/theme-search-algolia/client';
|
|
19
19
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
20
|
-
import styles from './styles.module.css';
|
|
21
20
|
|
|
22
21
|
import type {
|
|
23
22
|
DocSearchModal as DocSearchModalType,
|
|
@@ -233,19 +232,17 @@ function DocSearch({
|
|
|
233
232
|
/>
|
|
234
233
|
</Head>
|
|
235
234
|
|
|
236
|
-
<
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
/>
|
|
248
|
-
</div>
|
|
235
|
+
<DocSearchButton
|
|
236
|
+
onTouchStart={importDocSearchModalIfNeeded}
|
|
237
|
+
onFocus={importDocSearchModalIfNeeded}
|
|
238
|
+
onMouseOver={importDocSearchModalIfNeeded}
|
|
239
|
+
onClick={onOpen}
|
|
240
|
+
ref={searchButtonRef}
|
|
241
|
+
translations={{
|
|
242
|
+
buttonText: translatedSearchLabel,
|
|
243
|
+
buttonAriaLabel: translatedSearchLabel,
|
|
244
|
+
}}
|
|
245
|
+
/>
|
|
249
246
|
|
|
250
247
|
{isOpen &&
|
|
251
248
|
DocSearchModal &&
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
@media (max-width: 996px) {
|
|
9
|
-
.searchBox {
|
|
10
|
-
position: absolute;
|
|
11
|
-
right: var(--ifm-navbar-padding-horizontal);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@media (min-width: 997px) {
|
|
16
|
-
.searchBox {
|
|
17
|
-
padding: var(--ifm-navbar-item-padding-vertical)
|
|
18
|
-
var(--ifm-navbar-item-padding-horizontal);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
@media (max-width: 996px) {
|
|
9
|
-
.searchBox {
|
|
10
|
-
position: absolute;
|
|
11
|
-
right: var(--ifm-navbar-padding-horizontal);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@media (min-width: 997px) {
|
|
16
|
-
.searchBox {
|
|
17
|
-
padding: var(--ifm-navbar-item-padding-vertical)
|
|
18
|
-
var(--ifm-navbar-item-padding-horizontal);
|
|
19
|
-
}
|
|
20
|
-
}
|