@rspress-theme-anatole/theme-default 0.7.48 → 0.7.49
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/bundle.js +11 -5
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -6667,7 +6667,7 @@ function SearchPanel({ focused, setFocused }) {
|
|
|
6667
6667
|
}
|
|
6668
6668
|
};
|
|
6669
6669
|
const { siteData, page: { lang, version, frontmatter, routePath } } = (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.usePageData)();
|
|
6670
|
-
const { searchPlaceholderText = 'Search Docs', scopedSearchPrefixText = 'Search in' } = useLocaleSiteData();
|
|
6670
|
+
const { searchPlaceholderText = 'Search Docs', scopedSearchPrefixText = 'Search in', searchingText = 'Searching...' } = useLocaleSiteData();
|
|
6671
6671
|
const { search, title: siteTitle, base } = siteData;
|
|
6672
6672
|
const versionedSearch = search && 'remote' !== search.mode && search.versioned;
|
|
6673
6673
|
const DEFAULT_RESULT = [
|
|
@@ -7107,10 +7107,16 @@ function SearchPanel({ focused, setFocused }) {
|
|
|
7107
7107
|
const renderSearchResultItem = (suggestionList, query, isSearching) => {
|
|
7108
7108
|
if (isSearching) return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
7109
7109
|
className: "flex flex-col items-center",
|
|
7110
|
-
children:
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7110
|
+
children: [
|
|
7111
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(SvgWrapper, {
|
|
7112
|
+
icon: __WEBPACK_EXTERNAL_MODULE__theme_assets_loading_5f550a25__["default"],
|
|
7113
|
+
className: "m-8 opacity-80"
|
|
7114
|
+
}),
|
|
7115
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
7116
|
+
className: "text-sm opacity-60 -mt-4 mb-8",
|
|
7117
|
+
children: searchingText
|
|
7118
|
+
})
|
|
7119
|
+
]
|
|
7114
7120
|
});
|
|
7115
7121
|
if (0 === suggestionList.length && 'inited' === initStatus) return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(NoSearchResult, {
|
|
7116
7122
|
query: query
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress-theme-anatole/theme-default",
|
|
3
3
|
"author": "Anatole Tong",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.49",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.css",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"types": "./dist/bundle.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@mdx-js/react": "2.3.0",
|
|
24
|
-
"@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.
|
|
25
|
-
"@rspress-theme-anatole/shared": "0.7.
|
|
24
|
+
"@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.49",
|
|
25
|
+
"@rspress-theme-anatole/shared": "0.7.49",
|
|
26
26
|
"@rspress/runtime": "1.43.8",
|
|
27
27
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
28
28
|
"copy-to-clipboard": "^3.3.3",
|