@rspress/shared 1.21.1 → 1.23.0
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/index.d.ts +11 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
@@ -210,6 +210,14 @@ interface Config$1 {
|
|
210
210
|
* The placeholder of search input
|
211
211
|
*/
|
212
212
|
searchPlaceholderText?: string;
|
213
|
+
/**
|
214
|
+
* The text of no search result
|
215
|
+
*/
|
216
|
+
searchNoResultsText?: string;
|
217
|
+
/**
|
218
|
+
* The text of suggested query text when no search result
|
219
|
+
*/
|
220
|
+
searchSuggestedQueryText?: string;
|
213
221
|
/**
|
214
222
|
* The behavior of hiding navbar
|
215
223
|
*/
|
@@ -254,6 +262,8 @@ interface LocaleConfig {
|
|
254
262
|
sourceCodeText?: string;
|
255
263
|
langRoutePrefix?: string;
|
256
264
|
searchPlaceholderText?: string;
|
265
|
+
searchNoResultsText?: string;
|
266
|
+
searchSuggestedQueryText?: string;
|
257
267
|
}
|
258
268
|
type Nav = NavItem[] | {
|
259
269
|
[key: string]: NavItem[];
|
@@ -682,6 +692,7 @@ type RemoteSearchOptions = SearchHooks & {
|
|
682
692
|
domain?: string;
|
683
693
|
indexName: string;
|
684
694
|
searchIndexes?: RemoteSearchIndexInfo[];
|
695
|
+
searchLoading?: boolean;
|
685
696
|
};
|
686
697
|
type SearchOptions = LocalSearchOptions | RemoteSearchOptions | false;
|
687
698
|
interface MdxRsOptions {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/shared",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.23.0",
|
4
4
|
"types": "./dist/index.d.ts",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"module": "./dist/index.mjs",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
}
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@rsbuild/core": "0.
|
45
|
+
"@rsbuild/core": "0.7.0",
|
46
46
|
"unified": "^10.1.2",
|
47
47
|
"chalk": "4.1.2",
|
48
48
|
"execa": "5.1.1",
|