@rspress-theme-anatole/theme-default 0.7.53 → 0.7.55

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 +13 -13
  2. package/package.json +3 -3
package/dist/bundle.js CHANGED
@@ -395,8 +395,8 @@ function isItemLocked(item, userContext) {
395
395
  const requiredRoles = normalizeRoleList(item?.roles);
396
396
  // No roles required = public content (not locked)
397
397
  if (!requiredRoles.length) return false;
398
- // User is authenticated with valid userId = unlocked (regardless of roles)
399
- if (userContext?.isAuthenticated && userContext?.userId) return false;
398
+ // User is authenticated = unlocked (regardless of roles)
399
+ if (userContext?.isAuthenticated) return false;
400
400
  // Has roles required but user is not authenticated = locked
401
401
  return true;
402
402
  }
@@ -7229,18 +7229,18 @@ function SearchPanel({ focused, setFocused }) {
7229
7229
  });
7230
7230
  };
7231
7231
  const getScopedPlaceholder = () => {
7232
- if (!searchScope || !searchScope.scopeType) return searchPlaceholderText;
7232
+ // if (!searchScope || !searchScope.scopeType) return searchPlaceholderText;
7233
7233
 
7234
- if (searchScope.scopeType === 'product') {
7235
- return `${scopedSearchPrefixText} ${searchScope.productName.toUpperCase()}...`;
7236
- }
7237
- if (searchScope.scopeType === 'solution') {
7238
- const formattedName = searchScope.solutionName
7239
- .split('-')
7240
- .map(word => word.charAt(0).toUpperCase() + word.slice(1))
7241
- .join(' ');
7242
- return `${scopedSearchPrefixText} ${formattedName}...`;
7243
- }
7234
+ // if (searchScope.scopeType === 'product') {
7235
+ // return `${scopedSearchPrefixText} ${searchScope.productName.toUpperCase()}...`;
7236
+ // }
7237
+ // if (searchScope.scopeType === 'solution') {
7238
+ // const formattedName = searchScope.solutionName
7239
+ // .split('-')
7240
+ // .map(word => word.charAt(0).toUpperCase() + word.slice(1))
7241
+ // .join(' ');
7242
+ // return `${scopedSearchPrefixText} ${formattedName}...`;
7243
+ // }
7244
7244
  return searchPlaceholderText;
7245
7245
  };
7246
7246
  return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
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.53",
4
+ "version": "0.7.55",
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.53",
25
- "@rspress-theme-anatole/shared": "0.7.53",
24
+ "@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.55",
25
+ "@rspress-theme-anatole/shared": "0.7.55",
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",