@jupyterlab/git
Version:
A JupyterLab extension for version control using git
40 lines (39 loc) • 1.28 kB
TypeScript
/// <reference types="react" />
import { ReactWidget } from '@jupyterlab/apputils';
import { ISettingRegistry } from '@jupyterlab/settingregistry';
import { IStatusBar } from '@jupyterlab/statusbar';
import { TranslationBundle } from '@jupyterlab/translation';
import { IGitExtension } from '../tokens';
export declare class StatusWidget extends ReactWidget {
/**
* Returns a status bar widget.
* @param trans - The language translator
* @returns widget
*/
constructor(model: IGitExtension, trans: TranslationBundle);
/**
* Sets the current status.
*/
set status(text: string);
render(): JSX.Element;
_showGitOperationDialog(): Promise<void>;
/**
* Locks the status widget to prevent updates.
*
* ## Notes
*
* - This is used to throttle updates in order to prevent "flashing" messages.
*/
_animate(): Promise<void>;
/**
* Boolean indicating whether the status widget is accepting updates.
*/
private _locked;
/**
* Status string.
*/
private _status;
private _model;
private _trans;
}
export declare function addStatusBarWidget(statusBar: IStatusBar, model: IGitExtension, settings: ISettingRegistry.ISettings, trans: TranslationBundle): void;