@rspress-theme-anatole/shared 0.7.20 → 0.7.21-alpha

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/index.d.ts +15 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -761,7 +761,21 @@ export declare type SSGConfig = boolean | {
761
761
  };
762
762
 
763
763
  export declare type AuthConfig = {
764
- signInUrl: string;
764
+ /**
765
+ * Enable/disable auth UI entirely.
766
+ * When false, avatar and Sign in button are both hidden.
767
+ * @default true
768
+ */
769
+ enabled?: boolean;
770
+ /**
771
+ * Sign in page URL.
772
+ */
773
+ signInUrl?: string;
774
+ /**
775
+ * Show/hide the "Sign in" button when user is not logged in.
776
+ * @default true
777
+ */
778
+ showSignInButton?: boolean;
765
779
  }
766
780
  export declare interface UserConfig<ThemeConfig = DefaultThemeConfig> {
767
781
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rspress-theme-anatole/shared",
3
3
  "author": "Anatole Tong",
4
- "version": "0.7.20",
4
+ "version": "0.7.21-alpha",
5
5
  "license": "MIT",
6
6
  "exports": {
7
7
  ".": {