@jupyterlab/fileeditor 4.4.0-alpha.1 → 4.4.0-alpha.2

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.
package/lib/tokens.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { IWidgetTracker } from '@jupyterlab/apputils';
2
2
  import { IDocumentWidget } from '@jupyterlab/docregistry';
3
3
  import { Token } from '@lumino/coreutils';
4
- import { FileEditor } from './widget';
4
+ import { FileEditor, FileEditorFactory } from './widget';
5
5
  /**
6
6
  * A class that tracks editor widgets.
7
7
  */
@@ -11,3 +11,7 @@ export interface IEditorTracker extends IWidgetTracker<IDocumentWidget<FileEdito
11
11
  * The editor tracker token.
12
12
  */
13
13
  export declare const IEditorTracker: Token<IEditorTracker>;
14
+ /**
15
+ * The editor widget factory token.
16
+ */
17
+ export declare const IEditorWidgetFactory: Token<FileEditorFactory.IFactory>;
package/lib/tokens.js CHANGED
@@ -7,4 +7,8 @@ import { Token } from '@lumino/coreutils';
7
7
  export const IEditorTracker = new Token('@jupyterlab/fileeditor:IEditorTracker', `A widget tracker for file editors.
8
8
  Use this if you want to be able to iterate over and interact with file editors
9
9
  created by the application.`);
10
+ /**
11
+ * The editor widget factory token.
12
+ */
13
+ export const IEditorWidgetFactory = new Token('@jupyterlab/fileeditor:IEditorWidgetFactory', 'A factory for creating file editors.');
10
14
  //# sourceMappingURL=tokens.js.map
package/lib/tokens.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAI3D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAS1C;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,KAAK,CACrC,uCAAuC,EACvC;;8BAE4B,CAC7B,CAAC"}
1
+ {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAI3D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAS1C;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,KAAK,CACrC,uCAAuC,EACvC;;8BAE4B,CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,KAAK,CAC3C,6CAA6C,EAC7C,sCAAsC,CACvC,CAAC"}
package/lib/widget.d.ts CHANGED
@@ -126,4 +126,9 @@ export declare namespace FileEditorFactory {
126
126
  */
127
127
  factoryOptions: DocumentRegistry.IWidgetFactoryOptions<IDocumentWidget<FileEditor>>;
128
128
  }
129
+ /**
130
+ * The interface for a file editor widget factory.
131
+ */
132
+ interface IFactory extends DocumentRegistry.IWidgetFactory<IDocumentWidget<FileEditor>, DocumentRegistry.ICodeModel> {
133
+ }
129
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/fileeditor",
3
- "version": "4.4.0-alpha.1",
3
+ "version": "4.4.0-alpha.2",
4
4
  "description": "JupyterLab - Editor Widget",
5
5
  "homepage": "https://github.com/jupyterlab/jupyterlab",
6
6
  "bugs": {
@@ -40,17 +40,17 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@jupyter/ydoc": "^3.0.0",
43
- "@jupyterlab/apputils": "^4.5.0-alpha.1",
44
- "@jupyterlab/codeeditor": "^4.4.0-alpha.1",
45
- "@jupyterlab/codemirror": "^4.4.0-alpha.1",
46
- "@jupyterlab/coreutils": "^6.4.0-alpha.1",
47
- "@jupyterlab/docregistry": "^4.4.0-alpha.1",
48
- "@jupyterlab/documentsearch": "^4.4.0-alpha.1",
49
- "@jupyterlab/lsp": "^4.4.0-alpha.1",
50
- "@jupyterlab/statusbar": "^4.4.0-alpha.1",
51
- "@jupyterlab/toc": "^6.4.0-alpha.1",
52
- "@jupyterlab/translation": "^4.4.0-alpha.1",
53
- "@jupyterlab/ui-components": "^4.4.0-alpha.1",
43
+ "@jupyterlab/apputils": "^4.5.0-alpha.2",
44
+ "@jupyterlab/codeeditor": "^4.4.0-alpha.2",
45
+ "@jupyterlab/codemirror": "^4.4.0-alpha.2",
46
+ "@jupyterlab/coreutils": "^6.4.0-alpha.2",
47
+ "@jupyterlab/docregistry": "^4.4.0-alpha.2",
48
+ "@jupyterlab/documentsearch": "^4.4.0-alpha.2",
49
+ "@jupyterlab/lsp": "^4.4.0-alpha.2",
50
+ "@jupyterlab/statusbar": "^4.4.0-alpha.2",
51
+ "@jupyterlab/toc": "^6.4.0-alpha.2",
52
+ "@jupyterlab/translation": "^4.4.0-alpha.2",
53
+ "@jupyterlab/ui-components": "^4.4.0-alpha.2",
54
54
  "@lumino/commands": "^2.3.1",
55
55
  "@lumino/coreutils": "^2.2.0",
56
56
  "@lumino/messaging": "^2.0.2",
@@ -59,7 +59,7 @@
59
59
  "regexp-match-indices": "^1.0.2"
60
60
  },
61
61
  "devDependencies": {
62
- "@jupyterlab/testing": "^4.4.0-alpha.1",
62
+ "@jupyterlab/testing": "^4.4.0-alpha.2",
63
63
  "@types/jest": "^29.2.0",
64
64
  "jest": "^29.2.0",
65
65
  "rimraf": "~5.0.5",
package/src/tokens.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  import { IWidgetTracker } from '@jupyterlab/apputils';
5
5
  import { IDocumentWidget } from '@jupyterlab/docregistry';
6
6
  import { Token } from '@lumino/coreutils';
7
- import { FileEditor } from './widget';
7
+ import { FileEditor, FileEditorFactory } from './widget';
8
8
 
9
9
  /**
10
10
  * A class that tracks editor widgets.
@@ -21,3 +21,11 @@ export const IEditorTracker = new Token<IEditorTracker>(
21
21
  Use this if you want to be able to iterate over and interact with file editors
22
22
  created by the application.`
23
23
  );
24
+
25
+ /**
26
+ * The editor widget factory token.
27
+ */
28
+ export const IEditorWidgetFactory = new Token<FileEditorFactory.IFactory>(
29
+ '@jupyterlab/fileeditor:IEditorWidgetFactory',
30
+ 'A factory for creating file editors.'
31
+ );
package/src/widget.ts CHANGED
@@ -301,4 +301,15 @@ export namespace FileEditorFactory {
301
301
  IDocumentWidget<FileEditor>
302
302
  >;
303
303
  }
304
+
305
+ /**
306
+ * The interface for a file editor widget factory.
307
+ */
308
+ export interface IFactory
309
+ extends DocumentRegistry.IWidgetFactory<
310
+ IDocumentWidget<FileEditor>,
311
+ DocumentRegistry.ICodeModel
312
+ > {
313
+ // no extra options.
314
+ }
304
315
  }