@rspress-theme-anatole/theme-default 0.7.43 → 0.7.45

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.
Files changed (2) hide show
  1. package/dist/bundle.js +3 -3
  2. package/package.json +3 -3
package/dist/bundle.js CHANGED
@@ -6644,7 +6644,7 @@ function SearchPanel({ focused, setFocused }) {
6644
6644
  }
6645
6645
  };
6646
6646
  const { siteData, page: { lang, version, frontmatter, routePath } } = (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.usePageData)();
6647
- const { searchPlaceholderText = 'Search Docs' } = useLocaleSiteData();
6647
+ const { searchPlaceholderText = 'Search Docs', scopedSearchPrefixText = 'Search in' } = useLocaleSiteData();
6648
6648
  const { search, title: siteTitle, base } = siteData;
6649
6649
  const versionedSearch = search && 'remote' !== search.mode && search.versioned;
6650
6650
  const DEFAULT_RESULT = [
@@ -7123,14 +7123,14 @@ function SearchPanel({ focused, setFocused }) {
7123
7123
  if (!searchScope || !searchScope.scopeType) return searchPlaceholderText;
7124
7124
 
7125
7125
  if (searchScope.scopeType === 'product') {
7126
- return `Search in ${searchScope.productName.toUpperCase()}...`;
7126
+ return `${scopedSearchPrefixText} ${searchScope.productName.toUpperCase()}...`;
7127
7127
  }
7128
7128
  if (searchScope.scopeType === 'solution') {
7129
7129
  const formattedName = searchScope.solutionName
7130
7130
  .split('-')
7131
7131
  .map(word => word.charAt(0).toUpperCase() + word.slice(1))
7132
7132
  .join(' ');
7133
- return `Search in ${formattedName}...`;
7133
+ return `${scopedSearchPrefixText} ${formattedName}...`;
7134
7134
  }
7135
7135
  return searchPlaceholderText;
7136
7136
  };
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.43",
4
+ "version": "0.7.45",
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.43",
25
- "@rspress-theme-anatole/shared": "0.7.43",
24
+ "@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.45",
25
+ "@rspress-theme-anatole/shared": "0.7.45",
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",