jupyterlab-tour 4.0.0 → 4.0.1

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.
@@ -1,6 +1,7 @@
1
1
  import { Notebook, NotebookModel, NotebookPanel } from '@jupyterlab/notebook';
2
2
  import { CommandRegistry } from '@lumino/commands';
3
3
  import { DocumentRegistry } from '@jupyterlab/docregistry';
4
+ import { ServerConnection } from '@jupyterlab/services';
4
5
  import { CodeMirrorEditorFactory, CodeMirrorMimeTypeService, EditorLanguageRegistry } from '@jupyterlab/codemirror';
5
6
  import { Signal } from '@lumino/signaling';
6
7
  import 'jest';
@@ -13,7 +14,8 @@ function mockApp() {
13
14
  return {
14
15
  commands: new CommandRegistry(),
15
16
  restored: Promise.resolve(),
16
- docRegistry: new DocumentRegistry()
17
+ docRegistry: new DocumentRegistry(),
18
+ serviceManager: { serverSettings: ServerConnection.makeSettings() }
17
19
  };
18
20
  }
19
21
  function aTour() {
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab-tour",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "A JupyterLab UI Tour.",
5
5
  "keywords": [
6
6
  "jupyter",
package/lib/plugin.js CHANGED
@@ -28,11 +28,12 @@ const corePlugin = {
28
28
  };
29
29
  function activate(app, palette, menu, translator) {
30
30
  const CONFIG_SECTION_NAME = corePlugin.id.replace(/[^\w]/g, '');
31
- const { commands } = app;
31
+ const { commands, serviceManager } = app;
32
32
  translator = translator !== null && translator !== void 0 ? translator : nullTranslator;
33
33
  const restoreState = new PromiseDelegate();
34
34
  const configReady = ConfigSection.create({
35
- name: CONFIG_SECTION_NAME
35
+ name: CONFIG_SECTION_NAME,
36
+ serverSettings: serviceManager.serverSettings
36
37
  }).catch(error => {
37
38
  console.error('Failed to fetch state for jupyterlab-tour.', error);
38
39
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab-tour",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "A JupyterLab UI Tour.",
5
5
  "keywords": [
6
6
  "jupyter",