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

Allow for custom tab bar and nb toolbar item ids #48

Merged
merged 1 commit into from
Jun 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/galata/src/galata.ts
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export namespace galata {


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


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


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

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


export type NotebookToolbarItemId = DefaultNotebookToolbarItemId | string;

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