@docusaurus/theme-search-algolia 0.0.0-4625 → 0.0.0-4628
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/lib/theme/SearchBar/index.d.ts +1 -2
- package/lib/theme/SearchBar/index.js +1 -2
- package/lib/theme/SearchPage/index.d.ts +1 -2
- package/lib/theme/SearchPage/index.js +1 -2
- package/package.json +9 -9
- package/src/theme/SearchBar/index.tsx +1 -3
- package/src/theme/SearchPage/index.tsx +1 -3
- package/src/theme-search-algolia.d.ts +2 -4
|
@@ -206,8 +206,7 @@ function DocSearch({contextualSearch, externalUrlRegex, ...props}) {
|
|
|
206
206
|
</>
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
|
-
function SearchBar() {
|
|
209
|
+
export default function SearchBar() {
|
|
210
210
|
const {siteConfig} = useDocusaurusContext();
|
|
211
211
|
return <DocSearch {...siteConfig.themeConfig.algolia} />;
|
|
212
212
|
}
|
|
213
|
-
export default SearchBar;
|
|
@@ -109,7 +109,7 @@ function SearchVersionSelectList({docsSearchVersionsHelpers}) {
|
|
|
109
109
|
</div>
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
|
-
function SearchPage() {
|
|
112
|
+
export default function SearchPage() {
|
|
113
113
|
const {
|
|
114
114
|
siteConfig: {themeConfig},
|
|
115
115
|
i18n: {currentLocale},
|
|
@@ -453,4 +453,3 @@ function SearchPage() {
|
|
|
453
453
|
</Layout>
|
|
454
454
|
);
|
|
455
455
|
}
|
|
456
|
-
export default SearchPage;
|
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-4628",
|
|
4
4
|
"description": "Algolia search component for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@docsearch/react": "^3.0.0-alpha.50",
|
|
29
|
-
"@docusaurus/core": "0.0.0-
|
|
30
|
-
"@docusaurus/logger": "0.0.0-
|
|
31
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
32
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
33
|
-
"@docusaurus/utils": "0.0.0-
|
|
34
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
29
|
+
"@docusaurus/core": "0.0.0-4628",
|
|
30
|
+
"@docusaurus/logger": "0.0.0-4628",
|
|
31
|
+
"@docusaurus/theme-common": "0.0.0-4628",
|
|
32
|
+
"@docusaurus/theme-translations": "0.0.0-4628",
|
|
33
|
+
"@docusaurus/utils": "0.0.0-4628",
|
|
34
|
+
"@docusaurus/utils-validation": "0.0.0-4628",
|
|
35
35
|
"algoliasearch": "^4.12.1",
|
|
36
36
|
"algoliasearch-helper": "^3.7.0",
|
|
37
37
|
"clsx": "^1.1.1",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"utility-types": "^3.10.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
45
|
+
"@docusaurus/module-type-aliases": "0.0.0-4628"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": "^16.8.4 || ^17.0.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=14"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "dbe66880af93183a5a691dd1e1397df004e0b0de"
|
|
55
55
|
}
|
|
@@ -270,9 +270,7 @@ function DocSearch({
|
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
function SearchBar(): JSX.Element {
|
|
273
|
+
export default function SearchBar(): JSX.Element {
|
|
274
274
|
const {siteConfig} = useDocusaurusContext();
|
|
275
275
|
return <DocSearch {...(siteConfig.themeConfig.algolia as DocSearchProps)} />;
|
|
276
276
|
}
|
|
277
|
-
|
|
278
|
-
export default SearchBar;
|
|
@@ -149,7 +149,7 @@ type ResultDispatcher =
|
|
|
149
149
|
| {type: 'update'; value: ResultDispatcherState}
|
|
150
150
|
| {type: 'advance'; value?: undefined};
|
|
151
151
|
|
|
152
|
-
function SearchPage(): JSX.Element {
|
|
152
|
+
export default function SearchPage(): JSX.Element {
|
|
153
153
|
const {
|
|
154
154
|
siteConfig: {themeConfig},
|
|
155
155
|
i18n: {currentLocale},
|
|
@@ -516,5 +516,3 @@ function SearchPage(): JSX.Element {
|
|
|
516
516
|
</Layout>
|
|
517
517
|
);
|
|
518
518
|
}
|
|
519
|
-
|
|
520
|
-
export default SearchPage;
|
|
@@ -27,11 +27,9 @@ declare module '@docusaurus/theme-search-algolia/client' {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
declare module '@theme/SearchPage' {
|
|
30
|
-
|
|
31
|
-
export default SearchPage;
|
|
30
|
+
export default function SearchPage(): JSX.Element;
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
declare module '@theme/SearchBar' {
|
|
35
|
-
|
|
36
|
-
export default SearchBar;
|
|
34
|
+
export default function SearchBar(): JSX.Element;
|
|
37
35
|
}
|