@jupyterlab/codeeditor 4.0.5 → 4.0.7

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/mimetype.d.ts CHANGED
@@ -12,6 +12,8 @@ export interface IEditorMimeTypeService {
12
12
  *
13
13
  * #### Notes
14
14
  * If a mime type cannot be found returns the default mime type `text/plain`, never `null`.
15
+ * There may be more than one mime type, but only the first one will be returned.
16
+ * To access all mime types, use `IEditorLanguageRegistry` instead.
15
17
  */
16
18
  getMimeTypeByLanguage(info: nbformat.ILanguageInfoMetadata): string;
17
19
  /**
@@ -23,6 +25,8 @@ export interface IEditorMimeTypeService {
23
25
  *
24
26
  * #### Notes
25
27
  * If a mime type cannot be found returns the default mime type `text/plain`, never `null`.
28
+ * There may be more than one mime type, but only the first one will be returned.
29
+ * To access all mime types, use `IEditorLanguageRegistry` instead.
26
30
  */
27
31
  getMimeTypeByFilePath(filePath: string): string;
28
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mimetype.js","sourceRoot":"","sources":["../src/mimetype.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAiC3D;;GAEG;AACH,MAAM,KAAW,sBAAsB,CAKtC;AALD,WAAiB,sBAAsB;IACrC;;OAEG;IACU,sCAAe,GAAW,YAAY,CAAC;AACtD,CAAC,EALgB,sBAAsB,KAAtB,sBAAsB,QAKtC"}
1
+ {"version":3,"file":"mimetype.js","sourceRoot":"","sources":["../src/mimetype.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAqC3D;;GAEG;AACH,MAAM,KAAW,sBAAsB,CAKtC;AALD,WAAiB,sBAAsB;IACrC;;OAEG;IACU,sCAAe,GAAW,YAAY,CAAC;AACtD,CAAC,EALgB,sBAAsB,KAAtB,sBAAsB,QAKtC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/codeeditor",
3
- "version": "4.0.5",
3
+ "version": "4.0.7",
4
4
  "description": "JupyterLab - Abstract Code Editor",
5
5
  "homepage": "https://github.com/jupyterlab/jupyterlab",
6
6
  "bugs": {
@@ -44,12 +44,12 @@
44
44
  "dependencies": {
45
45
  "@codemirror/state": "^6.2.0",
46
46
  "@jupyter/ydoc": "^1.0.2",
47
- "@jupyterlab/coreutils": "^6.0.5",
48
- "@jupyterlab/nbformat": "^4.0.5",
49
- "@jupyterlab/observables": "^5.0.5",
50
- "@jupyterlab/statusbar": "^4.0.5",
51
- "@jupyterlab/translation": "^4.0.5",
52
- "@jupyterlab/ui-components": "^4.0.5",
47
+ "@jupyterlab/coreutils": "^6.0.7",
48
+ "@jupyterlab/nbformat": "^4.0.7",
49
+ "@jupyterlab/observables": "^5.0.7",
50
+ "@jupyterlab/statusbar": "^4.0.7",
51
+ "@jupyterlab/translation": "^4.0.7",
52
+ "@jupyterlab/ui-components": "^4.0.7",
53
53
  "@lumino/coreutils": "^2.1.2",
54
54
  "@lumino/disposable": "^2.1.2",
55
55
  "@lumino/dragdrop": "^2.1.3",
@@ -59,7 +59,7 @@
59
59
  "react": "^18.2.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@jupyterlab/testing": "^4.0.5",
62
+ "@jupyterlab/testing": "^4.0.7",
63
63
  "@types/jest": "^29.2.0",
64
64
  "jest": "^29.2.0",
65
65
  "rimraf": "~3.0.0",
package/src/mimetype.ts CHANGED
@@ -16,6 +16,8 @@ export interface IEditorMimeTypeService {
16
16
  *
17
17
  * #### Notes
18
18
  * If a mime type cannot be found returns the default mime type `text/plain`, never `null`.
19
+ * There may be more than one mime type, but only the first one will be returned.
20
+ * To access all mime types, use `IEditorLanguageRegistry` instead.
19
21
  */
20
22
  getMimeTypeByLanguage(info: nbformat.ILanguageInfoMetadata): string;
21
23
 
@@ -28,6 +30,8 @@ export interface IEditorMimeTypeService {
28
30
  *
29
31
  * #### Notes
30
32
  * If a mime type cannot be found returns the default mime type `text/plain`, never `null`.
33
+ * There may be more than one mime type, but only the first one will be returned.
34
+ * To access all mime types, use `IEditorLanguageRegistry` instead.
31
35
  */
32
36
  getMimeTypeByFilePath(filePath: string): string;
33
37
  }