@jupyter/docprovider-extension 4.0.1 → 4.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.
@@ -23,8 +23,8 @@ export const rtcContentProvider = {
23
23
  description: 'The RTC content provider',
24
24
  provides: ICollaborativeContentProvider,
25
25
  requires: [ITranslator],
26
- optional: [IGlobalAwareness],
27
- activate: (app, translator, globalAwareness) => {
26
+ optional: [IGlobalAwareness, ISettingRegistry],
27
+ activate: async (app, translator, globalAwareness, settingRegistry) => {
28
28
  const trans = translator.load('jupyter_collaboration');
29
29
  const defaultDrive = app.serviceManager.contents
30
30
  .defaultDrive;
@@ -35,12 +35,16 @@ export const rtcContentProvider = {
35
35
  if (!registry) {
36
36
  throw Error('Cannot initialize content provider: no content provider registry.');
37
37
  }
38
+ const docmanagerSettings = settingRegistry
39
+ ? await settingRegistry.load('@jupyterlab/docmanager-extension:plugin')
40
+ : null;
38
41
  const rtcContentProvider = new RtcContentProvider({
39
42
  apiEndpoint: '/api/contents',
40
43
  serverSettings: defaultDrive.serverSettings,
41
44
  user: app.serviceManager.user,
42
45
  trans,
43
- globalAwareness
46
+ globalAwareness,
47
+ docmanagerSettings
44
48
  });
45
49
  registry.register('rtc', rtcContentProvider);
46
50
  return rtcContentProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter/docprovider-extension",
3
- "version": "4.0.1",
3
+ "version": "4.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": "^4.0.1",
57
- "@jupyter/docprovider": "^4.0.1",
56
+ "@jupyter/collaborative-drive": "^4.1.0-alpha.0",
57
+ "@jupyter/docprovider": "^4.1.0-alpha.0",
58
58
  "@jupyter/ydoc": "^2.1.3 || ^3.0.0",
59
59
  "@jupyterlab/application": "^4.4.0",
60
60
  "@jupyterlab/apputils": "^4.4.0",