Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Allow custom sidebar and notebook tool id
Browse files Browse the repository at this point in the history
Fixes #46
  • Loading branch information
fcollonval committed Jun 14, 2021
1 parent 72a1c2a commit af62619
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/galata/src/galata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export namespace galata {

export type SidebarPosition = 'left' | 'right';

export type SidebarTabId =
export type DefaultSidebarTabId =
| 'filebrowser'
| 'jp-running-sessions'
| 'tab-manager'
Expand All @@ -116,7 +116,9 @@ export namespace galata {
| 'extensionmanager.main-view'
| 'jp-debugger-sidebar';

export type NotebookToolbarItemId =
export type SidebarTabId = DefaultSidebarTabId | string;

export type DefaultNotebookToolbarItemId =
| 'save'
| 'insert'
| 'cut'
Expand All @@ -130,6 +132,8 @@ export namespace galata {
| 'kernelName'
| 'kernelStatus';

export type NotebookToolbarItemId = DefaultNotebookToolbarItemId | string;

export function xpContainsClass(className: string): string {
return `contains(concat(" ", normalize-space(@class), " "), " ${className} ")`;
}
Expand Down

0 comments on commit af62619

Please sign in to comment.