@jupyterlab/apputils 4.7.0-alpha.1 → 4.7.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/lib/commandlinker.d.ts +4 -4
  2. package/lib/commandlinker.js.map +1 -1
  3. package/lib/commandpalette.d.ts +3 -2
  4. package/lib/commandpalette.js.map +1 -1
  5. package/lib/dialog.d.ts +2 -2
  6. package/lib/dialog.js.map +1 -1
  7. package/lib/index.d.ts +1 -1
  8. package/lib/kernelstatuses.d.ts +3 -3
  9. package/lib/kernelstatuses.js.map +1 -1
  10. package/lib/licenses.d.ts +7 -6
  11. package/lib/licenses.js.map +1 -1
  12. package/lib/mainareawidget.d.ts +3 -3
  13. package/lib/mainareawidget.js.map +1 -1
  14. package/lib/menufactory.d.ts +2 -2
  15. package/lib/notification.d.ts +3 -3
  16. package/lib/notification.js.map +1 -1
  17. package/lib/printing.d.ts +1 -1
  18. package/lib/runningSessions.d.ts +3 -3
  19. package/lib/runningSessions.js.map +1 -1
  20. package/lib/sanitizer.d.ts +1 -1
  21. package/lib/semanticCommand.d.ts +1 -1
  22. package/lib/sessioncontext.d.ts +6 -6
  23. package/lib/sessioncontext.js.map +1 -1
  24. package/lib/thememanager.d.ts +7 -7
  25. package/lib/thememanager.js +29 -8
  26. package/lib/thememanager.js.map +1 -1
  27. package/lib/tokens.d.ts +8 -8
  28. package/lib/toolbar/factory.d.ts +6 -6
  29. package/lib/toolbar/factory.js.map +1 -1
  30. package/lib/toolbar/registry.d.ts +4 -3
  31. package/lib/toolbar/registry.js +1 -1
  32. package/lib/toolbar/registry.js.map +1 -1
  33. package/lib/toolbar/widget.d.ts +2 -2
  34. package/lib/toolbar/widget.js.map +1 -1
  35. package/lib/widgettracker.d.ts +4 -4
  36. package/lib/widgettracker.js.map +1 -1
  37. package/lib/windowresolver.d.ts +1 -1
  38. package/package.json +13 -13
  39. package/src/commandlinker.ts +5 -4
  40. package/src/commandpalette.ts +3 -2
  41. package/src/dialog.tsx +4 -2
  42. package/src/index.ts +1 -1
  43. package/src/inputdialog.ts +1 -1
  44. package/src/kernelstatuses.tsx +8 -9
  45. package/src/licenses.tsx +10 -9
  46. package/src/mainareawidget.ts +6 -3
  47. package/src/menufactory.ts +2 -2
  48. package/src/notification.ts +5 -3
  49. package/src/printing.ts +1 -1
  50. package/src/runningSessions.tsx +5 -7
  51. package/src/sanitizer.ts +1 -1
  52. package/src/semanticCommand.ts +1 -1
  53. package/src/sessioncontext.tsx +10 -13
  54. package/src/thememanager.ts +39 -21
  55. package/src/tokens.ts +8 -8
  56. package/src/toolbar/factory.ts +10 -7
  57. package/src/toolbar/registry.ts +6 -4
  58. package/src/toolbar/widget.tsx +4 -6
  59. package/src/widgettracker.ts +7 -4
  60. package/src/windowresolver.ts +1 -1
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * @module apputils
6
6
  */
7
7
  import { Toolbar as UIToolbar } from '@jupyterlab/ui-components';
8
- import { Widget } from '@lumino/widgets';
8
+ import type { Widget } from '@lumino/widgets';
9
9
  import { Toolbar as ApputilsToolbar } from './toolbar';
10
10
 
11
11
  /**
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { Message } from '@lumino/messaging';
4
+ import type { Message } from '@lumino/messaging';
5
5
  import { Widget } from '@lumino/widgets';
6
6
  import { Dialog, showDialog } from './dialog';
7
7
 
@@ -1,17 +1,16 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { Session } from '@jupyterlab/services';
4
+ import type { Session } from '@jupyterlab/services';
5
5
  import { TextItem } from '@jupyterlab/statusbar';
6
- import {
7
- ITranslator,
8
- nullTranslator,
9
- TranslationBundle
10
- } from '@jupyterlab/translation';
6
+ import type { ITranslator, TranslationBundle } from '@jupyterlab/translation';
7
+ import { nullTranslator } from '@jupyterlab/translation';
11
8
  import { VDomModel, VDomRenderer } from '@jupyterlab/ui-components';
12
- import { JSONArray, JSONExt } from '@lumino/coreutils';
13
- import React, { KeyboardEvent } from 'react';
14
- import { ISessionContext } from './sessioncontext';
9
+ import type { JSONArray } from '@lumino/coreutils';
10
+ import { JSONExt } from '@lumino/coreutils';
11
+ import type { KeyboardEvent } from 'react';
12
+ import React from 'react';
13
+ import type { ISessionContext } from './sessioncontext';
15
14
 
16
15
  /**
17
16
  * Helper function to translate kernel statuses mapping by using
package/src/licenses.tsx CHANGED
@@ -2,21 +2,24 @@
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
4
  import { ServerConnection } from '@jupyterlab/services';
5
- import { TranslationBundle } from '@jupyterlab/translation';
5
+ import type { TranslationBundle } from '@jupyterlab/translation';
6
+ import type { LabIcon } from '@jupyterlab/ui-components';
6
7
  import {
7
8
  jsonIcon,
8
- LabIcon,
9
9
  markdownIcon,
10
10
  spreadsheetIcon,
11
11
  VDomModel,
12
12
  VDomRenderer
13
13
  } from '@jupyterlab/ui-components';
14
- import { PromiseDelegate, ReadonlyJSONObject } from '@lumino/coreutils';
15
- import { ISignal, Signal } from '@lumino/signaling';
16
- import { h, VirtualElement } from '@lumino/virtualdom';
14
+ import type { ReadonlyJSONObject } from '@lumino/coreutils';
15
+ import { PromiseDelegate } from '@lumino/coreutils';
16
+ import type { ISignal } from '@lumino/signaling';
17
+ import { Signal } from '@lumino/signaling';
18
+ import type { VirtualElement } from '@lumino/virtualdom';
19
+ import { h } from '@lumino/virtualdom';
17
20
  import { Panel, SplitPanel, TabBar, Widget } from '@lumino/widgets';
18
21
  import * as React from 'react';
19
- import { ILicensesClient } from './tokens';
22
+ import type { ILicensesClient } from './tokens';
20
23
  import { PageConfig, URLExt } from '@jupyterlab/coreutils';
21
24
 
22
25
  const FILTER_SECTION_TITLE_CLASS = 'jp-Licenses-Filters-title';
@@ -498,9 +501,7 @@ export namespace Licenses {
498
501
  }
499
502
 
500
503
  get title(): string {
501
- return `${this._currentBundleName || ''} ${this._trans.__(
502
- 'Licenses'
503
- )}`.trim();
504
+ return `${this._currentBundleName || ''} ${this._trans.__('Licenses')}`.trim();
504
505
  }
505
506
 
506
507
  /**
@@ -1,9 +1,12 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { ITranslator, nullTranslator } from '@jupyterlab/translation';
5
- import { ReactiveToolbar, Spinner, Toolbar } from '@jupyterlab/ui-components';
6
- import { Message, MessageLoop } from '@lumino/messaging';
4
+ import type { ITranslator } from '@jupyterlab/translation';
5
+ import { nullTranslator } from '@jupyterlab/translation';
6
+ import type { Toolbar } from '@jupyterlab/ui-components';
7
+ import { ReactiveToolbar, Spinner } from '@jupyterlab/ui-components';
8
+ import type { Message } from '@lumino/messaging';
9
+ import { MessageLoop } from '@lumino/messaging';
7
10
  import { BoxLayout, BoxPanel, Widget } from '@lumino/widgets';
8
11
  import { DOMUtils } from './domutils';
9
12
  import { Printing } from './printing';
@@ -4,10 +4,10 @@
4
4
  */
5
5
 
6
6
  import { Text } from '@jupyterlab/coreutils';
7
- import { ISettingRegistry } from '@jupyterlab/settingregistry';
7
+ import type { ISettingRegistry } from '@jupyterlab/settingregistry';
8
8
  import { LabIcon } from '@jupyterlab/ui-components';
9
9
  import { JSONExt } from '@lumino/coreutils';
10
- import { ContextMenu, Menu } from '@lumino/widgets';
10
+ import type { ContextMenu, Menu } from '@lumino/widgets';
11
11
 
12
12
  /**
13
13
  * Helper functions to build a menu from the settings
@@ -3,9 +3,11 @@
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
5
 
6
- import { ReadonlyJSONValue, UUID } from '@lumino/coreutils';
7
- import { IDisposable } from '@lumino/disposable';
8
- import { ISignal, Signal } from '@lumino/signaling';
6
+ import type { ReadonlyJSONValue } from '@lumino/coreutils';
7
+ import { UUID } from '@lumino/coreutils';
8
+ import type { IDisposable } from '@lumino/disposable';
9
+ import type { ISignal } from '@lumino/signaling';
10
+ import { Signal } from '@lumino/signaling';
9
11
 
10
12
  /**
11
13
  * Notification manager
package/src/printing.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
4
  import { ServerConnection } from '@jupyterlab/services';
5
- import { Widget } from '@lumino/widgets';
5
+ import type { Widget } from '@lumino/widgets';
6
6
 
7
7
  /**
8
8
  * Any object is "printable" if it implements the `IPrintable` interface.
@@ -1,25 +1,23 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import {
4
+ import type {
5
5
  ServiceManager,
6
6
  Session,
7
7
  SessionManager,
8
8
  Terminal,
9
9
  TerminalManager
10
10
  } from '@jupyterlab/services';
11
- import {
12
- ITranslator,
13
- nullTranslator,
14
- TranslationBundle
15
- } from '@jupyterlab/translation';
11
+ import type { ITranslator, TranslationBundle } from '@jupyterlab/translation';
12
+ import { nullTranslator } from '@jupyterlab/translation';
16
13
  import {
17
14
  kernelIcon,
18
15
  terminalIcon,
19
16
  VDomModel,
20
17
  VDomRenderer
21
18
  } from '@jupyterlab/ui-components';
22
- import React, { KeyboardEvent } from 'react';
19
+ import type { KeyboardEvent } from 'react';
20
+ import React from 'react';
23
21
  import { GroupItem, TextItem } from '@jupyterlab/statusbar';
24
22
 
25
23
  /**
package/src/sanitizer.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // Distributed under the terms of the Modified BSD License.
4
4
 
5
5
  import sanitize from 'sanitize-html';
6
- import { IRenderMime } from '@jupyterlab/rendermime-interfaces';
6
+ import type { IRenderMime } from '@jupyterlab/rendermime-interfaces';
7
7
 
8
8
  /**
9
9
  * Helper class that contains regular expressions for inline CSS style validation.
@@ -3,7 +3,7 @@
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
5
 
6
- import { Widget } from '@lumino/widgets';
6
+ import type { Widget } from '@lumino/widgets';
7
7
 
8
8
  /**
9
9
  * Options when add a command to a semantic group.
@@ -1,24 +1,23 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { IChangedArgs, PathExt } from '@jupyterlab/coreutils';
5
- import {
4
+ import type { IChangedArgs } from '@jupyterlab/coreutils';
5
+ import { PathExt } from '@jupyterlab/coreutils';
6
+ import type {
6
7
  Kernel,
7
8
  KernelMessage,
8
9
  KernelSpec,
9
10
  ServerConnection,
10
11
  Session
11
12
  } from '@jupyterlab/services';
12
- import { ISettingRegistry } from '@jupyterlab/settingregistry';
13
- import {
14
- ITranslator,
15
- nullTranslator,
16
- TranslationBundle
17
- } from '@jupyterlab/translation';
13
+ import type { ISettingRegistry } from '@jupyterlab/settingregistry';
14
+ import type { ITranslator, TranslationBundle } from '@jupyterlab/translation';
15
+ import { nullTranslator } from '@jupyterlab/translation';
18
16
  import { find } from '@lumino/algorithm';
19
17
  import { JSONExt, PromiseDelegate, UUID } from '@lumino/coreutils';
20
- import { IDisposable, IObservableDisposable } from '@lumino/disposable';
21
- import { ISignal, Signal } from '@lumino/signaling';
18
+ import type { IDisposable, IObservableDisposable } from '@lumino/disposable';
19
+ import type { ISignal } from '@lumino/signaling';
20
+ import { Signal } from '@lumino/signaling';
22
21
  import { Widget } from '@lumino/widgets';
23
22
  import * as React from 'react';
24
23
  import { Dialog, showDialog } from './dialog';
@@ -1858,9 +1857,7 @@ namespace Private {
1858
1857
 
1859
1858
  const body = document.createElement('div');
1860
1859
  const text = document.createElement('label');
1861
- text.textContent = `${trans.__('Select kernel for:')} "${
1862
- sessionContext.name
1863
- }"`;
1860
+ text.textContent = `${trans.__('Select kernel for:')} "${sessionContext.name}"`;
1864
1861
  body.appendChild(text);
1865
1862
 
1866
1863
  const select = document.createElement('select');
@@ -1,18 +1,18 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { IChangedArgs, URLExt } from '@jupyterlab/coreutils';
5
- import { ISettingRegistry } from '@jupyterlab/settingregistry';
6
- import {
7
- ITranslator,
8
- nullTranslator,
9
- TranslationBundle
10
- } from '@jupyterlab/translation';
11
- import { DisposableDelegate, IDisposable } from '@lumino/disposable';
12
- import { ISignal, Signal } from '@lumino/signaling';
13
- import { Widget } from '@lumino/widgets';
4
+ import type { IChangedArgs } from '@jupyterlab/coreutils';
5
+ import { URLExt } from '@jupyterlab/coreutils';
6
+ import type { ISettingRegistry } from '@jupyterlab/settingregistry';
7
+ import type { ITranslator, TranslationBundle } from '@jupyterlab/translation';
8
+ import { nullTranslator } from '@jupyterlab/translation';
9
+ import type { IDisposable } from '@lumino/disposable';
10
+ import { DisposableDelegate } from '@lumino/disposable';
11
+ import type { ISignal } from '@lumino/signaling';
12
+ import { Signal } from '@lumino/signaling';
13
+ import type { Widget } from '@lumino/widgets';
14
14
  import { Dialog, showDialog } from './dialog';
15
- import { ISplashScreen, IThemeManager } from './tokens';
15
+ import type { ISplashScreen, IThemeManager } from './tokens';
16
16
 
17
17
  /**
18
18
  * The number of milliseconds between theme loading attempts.
@@ -395,23 +395,35 @@ export class ThemeManager implements IThemeManager {
395
395
  const overidesSchema = definitions.cssOverrides.properties;
396
396
 
397
397
  Object.keys(overidesSchema).forEach(key => {
398
- // override validation is against the CSS property in the description
399
- // field. Example: for key ui-font-family, .description is font-family
400
- let description;
398
+ // Map each override key to its corresponding CSS property for
399
+ // validation via CSS.supports(). These must be hardcoded rather
400
+ // than read from schema description fields, which get translated
401
+ // by the i18n system and break CSS validation in non-English locales.
402
+ let cssProp;
401
403
  switch (key) {
404
+ case 'code-font-family':
405
+ case 'content-font-family':
406
+ case 'ui-font-family':
407
+ cssProp = 'font-family';
408
+ break;
402
409
  case 'code-font-size':
403
410
  case 'content-font-size1':
404
411
  case 'ui-font-size1':
405
- description = 'font-size';
412
+ cssProp = 'font-size';
406
413
  break;
407
414
  case 'rendermime-error-background':
408
- description = 'background';
415
+ cssProp = 'background';
409
416
  break;
410
417
  default:
411
- description = overidesSchema[key].description;
418
+ console.warn(
419
+ `No CSS property mapping for override key '${key}'. ` +
420
+ 'CSS validation will be skipped for this key.'
421
+ );
412
422
  break;
413
423
  }
414
- this._overrideProps[key] = description;
424
+ if (cssProp) {
425
+ this._overrideProps[key] = cssProp;
426
+ }
415
427
  });
416
428
  }
417
429
 
@@ -519,9 +531,15 @@ export class ThemeManager implements IThemeManager {
519
531
 
520
532
  const themeProps = this._settings.schema.properties?.theme;
521
533
  if (themeProps) {
522
- themeProps.enum = Object.keys(themes).map(
523
- value => themes[value].displayName ?? value
524
- );
534
+ // Use oneOf with const/title so the stored value is always the
535
+ // untranslated theme name while the dropdown shows the translated
536
+ // displayName. Using enum with displayNames broke validation in
537
+ // non-English locales (see #18543).
538
+ delete themeProps.enum;
539
+ themeProps.oneOf = Object.keys(themes).map(value => ({
540
+ const: value,
541
+ title: themes[value].displayName ?? value
542
+ }));
525
543
  }
526
544
 
527
545
  // Unload the previously loaded theme.
package/src/tokens.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { IChangedArgs } from '@jupyterlab/coreutils';
5
- import { IRenderMime } from '@jupyterlab/rendermime-interfaces';
6
- import { ISettingRegistry } from '@jupyterlab/settingregistry';
4
+ import type { IChangedArgs } from '@jupyterlab/coreutils';
5
+ import type { IRenderMime } from '@jupyterlab/rendermime-interfaces';
6
+ import type { ISettingRegistry } from '@jupyterlab/settingregistry';
7
7
  import { Token } from '@lumino/coreutils';
8
- import { IDisposable } from '@lumino/disposable';
9
- import { ISignal } from '@lumino/signaling';
10
- import { CommandPalette, Widget } from '@lumino/widgets';
11
- import { ISessionContext } from './sessioncontext';
12
- import { Licenses } from './licenses';
8
+ import type { IDisposable } from '@lumino/disposable';
9
+ import type { ISignal } from '@lumino/signaling';
10
+ import type { CommandPalette, Widget } from '@lumino/widgets';
11
+ import type { ISessionContext } from './sessioncontext';
12
+ import type { Licenses } from './licenses';
13
13
 
14
14
  /**
15
15
  * The command palette token.
@@ -3,15 +3,18 @@
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
5
 
6
- import { IObservableList, ObservableList } from '@jupyterlab/observables';
7
- import { ISettingRegistry, SettingRegistry } from '@jupyterlab/settingregistry';
8
- import { ITranslator, TranslationBundle } from '@jupyterlab/translation';
9
- import { Toolbar } from '@jupyterlab/ui-components';
6
+ import type { IObservableList } from '@jupyterlab/observables';
7
+ import { ObservableList } from '@jupyterlab/observables';
8
+ import type { ISettingRegistry } from '@jupyterlab/settingregistry';
9
+ import { SettingRegistry } from '@jupyterlab/settingregistry';
10
+ import type { ITranslator, TranslationBundle } from '@jupyterlab/translation';
11
+ import type { Toolbar } from '@jupyterlab/ui-components';
10
12
  import { findIndex } from '@lumino/algorithm';
11
- import { JSONExt, PartialJSONObject } from '@lumino/coreutils';
12
- import { Widget } from '@lumino/widgets';
13
+ import type { PartialJSONObject } from '@lumino/coreutils';
14
+ import { JSONExt } from '@lumino/coreutils';
15
+ import type { Widget } from '@lumino/widgets';
13
16
  import { Dialog, showDialog } from '../dialog';
14
- import { IToolbarWidgetRegistry, ToolbarRegistry } from '../tokens';
17
+ import type { IToolbarWidgetRegistry, ToolbarRegistry } from '../tokens';
15
18
 
16
19
  /**
17
20
  * Default toolbar item rank
@@ -8,10 +8,11 @@ import {
8
8
  LabIcon,
9
9
  Toolbar
10
10
  } from '@jupyterlab/ui-components';
11
- import { CommandRegistry } from '@lumino/commands';
11
+ import type { CommandRegistry } from '@lumino/commands';
12
12
  import { Widget } from '@lumino/widgets';
13
- import { IToolbarWidgetRegistry, ToolbarRegistry } from '../tokens';
14
- import { ISignal, Signal } from '@lumino/signaling';
13
+ import type { IToolbarWidgetRegistry, ToolbarRegistry } from '../tokens';
14
+ import type { ISignal } from '@lumino/signaling';
15
+ import { Signal } from '@lumino/signaling';
15
16
 
16
17
  /**
17
18
  * Concrete implementation of IToolbarWidgetRegistry interface
@@ -154,7 +155,8 @@ export function createDefaultFactory(
154
155
 
155
156
  // If there is an icon, undefined label will results in no label
156
157
  // otherwise the label will be set using the setting or the command label
157
- const label = icon ?? commands.icon(id, args) ? tLabel ?? '' : tLabel;
158
+ const label =
159
+ (icon ?? commands.icon(id, args)) ? (tLabel ?? '') : tLabel;
158
160
  return new CommandToolbarButton({
159
161
  commands,
160
162
  id,
@@ -1,11 +1,8 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import {
5
- ITranslator,
6
- nullTranslator,
7
- TranslationBundle
8
- } from '@jupyterlab/translation';
4
+ import type { ITranslator, TranslationBundle } from '@jupyterlab/translation';
5
+ import { nullTranslator } from '@jupyterlab/translation';
9
6
  import {
10
7
  circleEmptyIcon,
11
8
  circleIcon,
@@ -20,7 +17,8 @@ import {
20
17
  } from '@jupyterlab/ui-components';
21
18
  import { Widget } from '@lumino/widgets';
22
19
  import * as React from 'react';
23
- import { ISessionContext, SessionContextDialogs } from '../sessioncontext';
20
+ import type { ISessionContext } from '../sessioncontext';
21
+ import { SessionContextDialogs } from '../sessioncontext';
24
22
  import { translateKernelStatuses } from '../kernelstatuses';
25
23
  /**
26
24
  * The class name added to toolbar kernel name text.
@@ -1,10 +1,13 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { IRestorable, RestorablePool } from '@jupyterlab/statedb';
5
- import { IDisposable } from '@lumino/disposable';
6
- import { ISignal, Signal } from '@lumino/signaling';
7
- import { FocusTracker, Widget } from '@lumino/widgets';
4
+ import type { IRestorable } from '@jupyterlab/statedb';
5
+ import { RestorablePool } from '@jupyterlab/statedb';
6
+ import type { IDisposable } from '@lumino/disposable';
7
+ import type { ISignal } from '@lumino/signaling';
8
+ import { Signal } from '@lumino/signaling';
9
+ import type { Widget } from '@lumino/widgets';
10
+ import { FocusTracker } from '@lumino/widgets';
8
11
 
9
12
  /**
10
13
  * A tracker that tracks widgets.
@@ -2,7 +2,7 @@
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
4
  import { PromiseDelegate } from '@lumino/coreutils';
5
- import { IWindowResolver } from './tokens';
5
+ import type { IWindowResolver } from './tokens';
6
6
 
7
7
  /**
8
8
  * A concrete implementation of a window name resolver.