@rspress/plugin-algolia 2.0.0-rc.2 → 2.0.0-rc.4
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/dist/runtime/Search.css
CHANGED
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
--docsearch-subtle-color: var(--rp-c-divider-light);
|
|
7
7
|
--docsearch-container-background: #3c3c3c66;
|
|
8
8
|
--docsearch-modal-background: var(--rp-c-bg);
|
|
9
|
+
--docsearch-search-button-background: color-mix(in srgb, var(--rp-c-bg) 30%, transparent);
|
|
10
|
+
--docsearch-search-button-text-color: var(--rp-c-text-2);
|
|
9
11
|
--docsearch-searchbox-background: var(--rp-c-bg-soft);
|
|
10
12
|
--docsearch-searchbox-focus-background: var(--rp-c-bg);
|
|
11
13
|
--docsearch-hit-highlight-color: var(--rp-c-brand-tint);
|
|
12
|
-
--docsearch-hit-
|
|
14
|
+
--docsearch-hit-color: var(--rp-c-text-1);
|
|
13
15
|
--docsearch-hit-background: var(--rp-c-bg-soft);
|
|
14
16
|
--docsearch-hit-shadow: var(--rp-shadow-2);
|
|
15
17
|
--docsearch-footer-background: var(--rp-c-bg);
|
|
@@ -18,11 +20,13 @@
|
|
|
18
20
|
--docsearch-highlight-color: var(--rp-c-brand);
|
|
19
21
|
--docsearch-icon-color: var(--rp-c-text-1);
|
|
20
22
|
--docsearch-background-color: var(--rp-c-bg-mute);
|
|
23
|
+
--docsearch-focus-color: var(--rp-c-brand);
|
|
24
|
+
--docsearch-dropdown-menu-background: var(--rp-c-bg-soft);
|
|
25
|
+
--docsearch-dropdown-menu-item-hover-background: var(--rp-c-bg);
|
|
21
26
|
}
|
|
22
27
|
|
|
23
28
|
.DocSearch {
|
|
24
29
|
border-radius: var(--rp-radius-small);
|
|
25
|
-
--docsearch-searchbox-background: color-mix(in srgb, var(--rp-c-bg) 30%, transparent);
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
.DocSearch-Button-Container > .DocSearch-Button-Placeholder {
|
package/dist/runtime/Search.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { DocSearch } from "@docsearch/react";
|
|
3
|
-
import { useLang, useNavigate } from "@rspress/core/runtime";
|
|
3
|
+
import { removeBase, useLang, useNavigate } from "@rspress/core/runtime";
|
|
4
4
|
import { Link } from "@theme";
|
|
5
5
|
import "@docsearch/css";
|
|
6
6
|
import "./Search.css";
|
|
@@ -41,7 +41,7 @@ function Search({ locales = {}, docSearchProps }) {
|
|
|
41
41
|
const url = new URL(item.url);
|
|
42
42
|
return {
|
|
43
43
|
...item,
|
|
44
|
-
url: item.url.replace(url.origin, '')
|
|
44
|
+
url: removeBase(item.url.replace(url.origin, ''))
|
|
45
45
|
};
|
|
46
46
|
}),
|
|
47
47
|
hitComponent: Hit,
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { type Locales, ZH_LOCALES } from './locales.js';
|
|
1
|
+
export { type Locales, RU_LOCALES, ZH_LOCALES } from './locales.js';
|
|
2
2
|
export { Search, type SearchProps } from './Search.js';
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ZH_LOCALES } from "./locales.js";
|
|
1
|
+
import { RU_LOCALES, ZH_LOCALES } from "./locales.js";
|
|
2
2
|
import { Search } from "./Search.js";
|
|
3
|
-
export { Search, ZH_LOCALES };
|
|
3
|
+
export { RU_LOCALES, Search, ZH_LOCALES };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-algolia",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.4",
|
|
4
4
|
"description": "A plugin for rspress to search with algolia in docs.",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
6
|
"repository": {
|
|
@@ -34,26 +34,26 @@
|
|
|
34
34
|
"static"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@docsearch/css": "^4.
|
|
38
|
-
"@docsearch/react": "^4.
|
|
37
|
+
"@docsearch/css": "^4.4.0",
|
|
38
|
+
"@docsearch/react": "^4.4.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@microsoft/api-extractor": "^7.55.2",
|
|
42
42
|
"@rsbuild/plugin-react": "~1.4.2",
|
|
43
|
-
"@rslib/core": "0.18.
|
|
43
|
+
"@rslib/core": "0.18.6",
|
|
44
44
|
"@types/node": "^22.8.1",
|
|
45
45
|
"@types/react": "^19.2.7",
|
|
46
46
|
"@types/react-dom": "^19.2.3",
|
|
47
|
-
"react": "^19.2.
|
|
47
|
+
"react": "^19.2.3",
|
|
48
48
|
"rsbuild-plugin-publint": "^0.3.3",
|
|
49
49
|
"typescript": "^5.8.2",
|
|
50
50
|
"@rspress/config": "1.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@rspress/core": "^2.0.0-rc.
|
|
53
|
+
"@rspress/core": "^2.0.0-rc.4"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
|
-
"node": ">=
|
|
56
|
+
"node": ">=20.9.0"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public",
|