chore(client/ts): port toc

This commit is contained in:
Elian Doran
2025-02-02 19:44:18 +02:00
parent d901a0f787
commit d0317f4bb6
4 changed files with 71 additions and 32 deletions

View File

@@ -77,6 +77,7 @@ export type CommandMappings = {
searchString?: string;
ancestorNoteId?: string | null;
};
closeTocCommand: CommandData;
showLaunchBarSubtree: CommandData;
showOptions: CommandData & {
section: string;
@@ -206,6 +207,8 @@ export type CommandMappings = {
zoomFactor: string;
}
reEvaluateRightPaneVisibility: CommandData;
// Geomap
deleteFromMap: { noteId: string },
openGeoLocation: { noteId: string, event: JQuery.MouseDownEvent }
@@ -266,6 +269,9 @@ type EventMappings = {
reEvaluateHighlightsListWidgetVisibility: {
noteId: string | undefined;
};
reEvaluateTocWidgetVisibility: {
noteId: string | undefined;
};
showHighlightsListWidget: {
noteId: string;
};
@@ -301,7 +307,10 @@ type EventMappings = {
};
refreshNoteList: {
noteId: string;
}
};
showToc: {
noteId: string;
};
};
export type EventListener<T extends EventNames> = {