chore(client/ts): port tab_row

This commit is contained in:
Elian Doran
2025-01-09 20:20:06 +02:00
parent 2080ce5123
commit 5111f1760d
5 changed files with 110 additions and 48 deletions

View File

@@ -179,6 +179,16 @@ export type CommandMappings = {
setActiveScreen: CommandData & {
screen: Screen;
};
closeTab: CommandData;
closeOtherTabs: CommandData;
closeRightTabs: CommandData;
closeAllTabs: CommandData;
reopenLastTab: CommandData;
moveTabToNewWindow: CommandData;
copyTabToNewWindow: CommandData;
closeActiveTab: CommandData & {
$el: JQuery<HTMLElement>
}
};
type EventMappings = {
@@ -233,6 +243,23 @@ type EventMappings = {
showHighlightsListWidget: {
noteId: string;
};
hoistedNoteChanged: {
ntxId: string;
};
contextsReopenedEvent: {
mainNtxId: string;
tabPosition: number;
};
noteContextReorderEvent: {
oldMainNtxId: string;
newMainNtxId: string;
};
newNoteContextCreated: {
noteContext: NoteContext;
};
noteContextRemovedEvent: {
ntxIds: string[];
}
};
export type EventListener<T extends EventNames> = {