@rspress-theme-anatole/shared 0.7.19 → 0.7.21
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 +17 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -691,6 +691,7 @@ export declare interface SidebarGroup {
|
|
|
691
691
|
_fileKey?: string;
|
|
692
692
|
overviewHeaders?: number[];
|
|
693
693
|
context?: string;
|
|
694
|
+
roles?: string[];
|
|
694
695
|
}
|
|
695
696
|
|
|
696
697
|
export declare type SidebarItem = {
|
|
@@ -703,6 +704,7 @@ export declare type SidebarItem = {
|
|
|
703
704
|
_fileKey?: string;
|
|
704
705
|
overviewHeaders?: number[];
|
|
705
706
|
context?: string;
|
|
707
|
+
roles?: string[];
|
|
706
708
|
};
|
|
707
709
|
|
|
708
710
|
export declare type SidebarSectionHeader = {
|
|
@@ -759,7 +761,21 @@ export declare type SSGConfig = boolean | {
|
|
|
759
761
|
};
|
|
760
762
|
|
|
761
763
|
export declare type AuthConfig = {
|
|
762
|
-
|
|
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;
|
|
763
779
|
}
|
|
764
780
|
export declare interface UserConfig<ThemeConfig = DefaultThemeConfig> {
|
|
765
781
|
/**
|