feat: allow user to set TOC display preference (#6943)
Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
@@ -184,6 +184,11 @@ export type PublicTeam = {
|
||||
customTheme: Partial<CustomTheme>;
|
||||
};
|
||||
|
||||
export enum TOCPosition {
|
||||
Left = "left",
|
||||
Right = "right",
|
||||
}
|
||||
|
||||
export enum TeamPreference {
|
||||
/** Whether documents have a separate edit mode instead of always editing. */
|
||||
SeamlessEdit = "seamlessEdit",
|
||||
@@ -199,6 +204,8 @@ export enum TeamPreference {
|
||||
Commenting = "commenting",
|
||||
/** The custom theme for the team. */
|
||||
CustomTheme = "customTheme",
|
||||
/** Side to display the document's table of contents in relation to the main content. */
|
||||
TocPosition = "tocPosition",
|
||||
}
|
||||
|
||||
export type TeamPreferences = {
|
||||
@@ -209,6 +216,7 @@ export type TeamPreferences = {
|
||||
[TeamPreference.MembersCanCreateApiKey]?: boolean;
|
||||
[TeamPreference.Commenting]?: boolean;
|
||||
[TeamPreference.CustomTheme]?: Partial<CustomTheme>;
|
||||
[TeamPreference.TocPosition]?: TOCPosition;
|
||||
};
|
||||
|
||||
export enum NavigationNodeType {
|
||||
|
||||
Reference in New Issue
Block a user