@jupyter/docprovider-extension 3.0.1 → 3.1.0-alpha.0

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.
@@ -0,0 +1,3 @@
1
+ import { IForkManager } from '@jupyter/docprovider';
2
+ import { JupyterFrontEndPlugin } from '@jupyterlab/application';
3
+ export declare const forkManagerPlugin: JupyterFrontEndPlugin<IForkManager>;
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright (c) Jupyter Development Team.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ import { ICollaborativeDrive } from '@jupyter/collaborative-drive';
6
+ import { ForkManager, IForkManagerToken } from '@jupyter/docprovider';
7
+ export const forkManagerPlugin = {
8
+ id: '@jupyter/docprovider-extension:forkManager',
9
+ autoStart: true,
10
+ requires: [ICollaborativeDrive],
11
+ provides: IForkManagerToken,
12
+ activate: (app, drive) => {
13
+ const eventManager = app.serviceManager.events;
14
+ const manager = new ForkManager({ drive, eventManager });
15
+ return manager;
16
+ }
17
+ };
package/lib/index.js CHANGED
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import { drive, yfile, ynotebook, defaultFileBrowser, logger, statusBarTimeline } from './filebrowser';
8
8
  import { notebookCellExecutor } from './executor';
9
+ import { forkManagerPlugin } from './forkManager';
9
10
  /**
10
11
  * Export the plugins as default.
11
12
  */
@@ -16,6 +17,7 @@ const plugins = [
16
17
  defaultFileBrowser,
17
18
  logger,
18
19
  notebookCellExecutor,
19
- statusBarTimeline
20
+ statusBarTimeline,
21
+ forkManagerPlugin
20
22
  ];
21
23
  export default plugins;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter/docprovider-extension",
3
- "version": "3.0.1",
3
+ "version": "3.1.0-alpha.0",
4
4
  "description": "JupyterLab - Collaborative Shared Models",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -53,8 +53,8 @@
53
53
  "watch:labextension": "jupyter labextension watch ."
54
54
  },
55
55
  "dependencies": {
56
- "@jupyter/collaborative-drive": "^3.0.1",
57
- "@jupyter/docprovider": "^3.0.1",
56
+ "@jupyter/collaborative-drive": "^3.1.0-alpha.0",
57
+ "@jupyter/docprovider": "^3.1.0-alpha.0",
58
58
  "@jupyter/ydoc": "^2.0.0 || ^3.0.0",
59
59
  "@jupyterlab/application": "^4.2.0",
60
60
  "@jupyterlab/apputils": "^4.2.0",