1313// limitations under the License.
1414
1515import {
16- ILayoutRestorer , JupyterLab , JupyterLabPlugin
16+ ILayoutRestorer , JupyterLab , JupyterFrontEndPlugin
1717} from '@jupyterlab/application' ;
1818
1919import {
20- ICommandPalette , InstanceTracker , IInstanceTracker
20+ ICommandPalette , WidgetTracker , IWidgetTracker
2121} from '@jupyterlab/apputils' ;
2222
2323import {
@@ -45,15 +45,15 @@ import {
4545 */
4646const FACTORY = 'Drawio' ;
4747
48- interface IDrawioTracker extends IInstanceTracker < DrawioWidget > { }
48+ interface IDrawioTracker extends IWidgetTracker < DrawioWidget > { }
4949
5050export
5151const IDrawioTracker = new Token < IDrawioTracker > ( 'drawio/tracki' ) ;
5252
5353/**
5454 * The editor tracker extension.
5555 */
56- const plugin : JupyterLabPlugin < IDrawioTracker > = {
56+ const plugin : JupyterFrontEndPlugin < IDrawioTracker > = {
5757 activate,
5858 id : '@jupyterlab/drawio-extension:plugin' ,
5959 requires : [ IFileBrowserFactory , ILayoutRestorer , IMainMenu , ICommandPalette ] ,
@@ -74,7 +74,7 @@ function activate(app: JupyterLab,
7474 const namespace = 'drawio' ;
7575 const factory = new DrawioFactory ( { name : FACTORY , fileTypes : [ 'dio' ] , defaultFor : [ 'dio' ] } ) ;
7676 const { commands } = app ;
77- const tracker = new InstanceTracker < DrawioWidget > ( { namespace } ) ;
77+ const tracker = new WidgetTracker < DrawioWidget > ( { namespace } ) ;
7878
7979 /**
8080 * Whether there is an active DrawIO editor.
0 commit comments