@jupyterlab/fileeditor 4.2.0-beta.1 → 4.2.0-beta.3

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.
@@ -11,7 +11,7 @@ import React from 'react';
11
11
  /**
12
12
  * A pure function that returns a tsx component for an editor syntax item.
13
13
  *
14
- * @param props: the props for the component.
14
+ * @param props the props for the component.
15
15
  *
16
16
  * @returns an editor syntax component.
17
17
  */
@@ -1,36 +1,6 @@
1
1
  import { ITranslator } from '@jupyterlab/translation';
2
2
  import { VDomModel, VDomRenderer } from '@jupyterlab/ui-components';
3
3
  import { Menu } from '@lumino/widgets';
4
- import React from 'react';
5
- /**
6
- * A namespace for TabSpaceComponent statics.
7
- */
8
- declare namespace TabSpaceComponent {
9
- /**
10
- * The props for TabSpaceComponent.
11
- */
12
- interface IProps {
13
- /**
14
- * The number of spaces for indentation.
15
- *
16
- * `null` means use tab character for indentation.
17
- */
18
- tabSpace: number | null;
19
- /**
20
- * The application language translator.
21
- */
22
- translator?: ITranslator;
23
- /**
24
- * A click handler for the TabSpace component. By default
25
- * opens a menu allowing the user to select tabs vs spaces.
26
- */
27
- handleClick: () => void;
28
- }
29
- }
30
- /**
31
- * A pure functional component for rendering the TabSpace status.
32
- */
33
- declare function TabSpaceComponent(props: TabSpaceComponent.IProps): React.ReactElement<TabSpaceComponent.IProps>;
34
4
  /**
35
5
  * A VDomRenderer for a tabs vs. spaces status item.
36
6
  */
@@ -42,7 +12,7 @@ export declare class TabSpaceStatus extends VDomRenderer<TabSpaceStatus.Model> {
42
12
  /**
43
13
  * Render the TabSpace status item.
44
14
  */
45
- render(): React.ReactElement<TabSpaceComponent.IProps> | null;
15
+ render(): JSX.Element | null;
46
16
  /**
47
17
  * Handle a click on the status item.
48
18
  */
@@ -82,4 +52,3 @@ export declare namespace TabSpaceStatus {
82
52
  translator?: ITranslator;
83
53
  }
84
54
  }
85
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/fileeditor",
3
- "version": "4.2.0-beta.1",
3
+ "version": "4.2.0-beta.3",
4
4
  "description": "JupyterLab - Editor Widget",
5
5
  "homepage": "https://github.com/jupyterlab/jupyterlab",
6
6
  "bugs": {
@@ -32,7 +32,6 @@
32
32
  "build": "tsc -b",
33
33
  "build:test": "tsc --build tsconfig.test.json",
34
34
  "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo",
35
- "docs": "typedoc src",
36
35
  "test": "jest",
37
36
  "test:cov": "jest --collect-coverage",
38
37
  "test:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand",
@@ -41,17 +40,17 @@
41
40
  },
42
41
  "dependencies": {
43
42
  "@jupyter/ydoc": "^2.0.1",
44
- "@jupyterlab/apputils": "^4.3.0-beta.1",
45
- "@jupyterlab/codeeditor": "^4.2.0-beta.1",
46
- "@jupyterlab/codemirror": "^4.2.0-beta.1",
47
- "@jupyterlab/coreutils": "^6.2.0-beta.1",
48
- "@jupyterlab/docregistry": "^4.2.0-beta.1",
49
- "@jupyterlab/documentsearch": "^4.2.0-beta.1",
50
- "@jupyterlab/lsp": "^4.2.0-beta.1",
51
- "@jupyterlab/statusbar": "^4.2.0-beta.1",
52
- "@jupyterlab/toc": "^6.2.0-beta.1",
53
- "@jupyterlab/translation": "^4.2.0-beta.1",
54
- "@jupyterlab/ui-components": "^4.2.0-beta.1",
43
+ "@jupyterlab/apputils": "^4.3.0-beta.3",
44
+ "@jupyterlab/codeeditor": "^4.2.0-beta.3",
45
+ "@jupyterlab/codemirror": "^4.2.0-beta.3",
46
+ "@jupyterlab/coreutils": "^6.2.0-beta.3",
47
+ "@jupyterlab/docregistry": "^4.2.0-beta.3",
48
+ "@jupyterlab/documentsearch": "^4.2.0-beta.3",
49
+ "@jupyterlab/lsp": "^4.2.0-beta.3",
50
+ "@jupyterlab/statusbar": "^4.2.0-beta.3",
51
+ "@jupyterlab/toc": "^6.2.0-beta.3",
52
+ "@jupyterlab/translation": "^4.2.0-beta.3",
53
+ "@jupyterlab/ui-components": "^4.2.0-beta.3",
55
54
  "@lumino/commands": "^2.3.0",
56
55
  "@lumino/coreutils": "^2.1.2",
57
56
  "@lumino/messaging": "^2.0.1",
@@ -60,11 +59,10 @@
60
59
  "regexp-match-indices": "^1.0.2"
61
60
  },
62
61
  "devDependencies": {
63
- "@jupyterlab/testing": "^4.2.0-beta.1",
62
+ "@jupyterlab/testing": "^4.2.0-beta.3",
64
63
  "@types/jest": "^29.2.0",
65
64
  "jest": "^29.2.0",
66
65
  "rimraf": "~5.0.5",
67
- "typedoc": "~0.24.7",
68
66
  "typescript": "~5.1.6"
69
67
  },
70
68
  "publishConfig": {
@@ -39,7 +39,7 @@ namespace EditorSyntaxComponent {
39
39
  /**
40
40
  * A pure function that returns a tsx component for an editor syntax item.
41
41
  *
42
- * @param props: the props for the component.
42
+ * @param props the props for the component.
43
43
  *
44
44
  * @returns an editor syntax component.
45
45
  */
@@ -77,7 +77,7 @@ export class TabSpaceStatus extends VDomRenderer<TabSpaceStatus.Model> {
77
77
  /**
78
78
  * Render the TabSpace status item.
79
79
  */
80
- render(): React.ReactElement<TabSpaceComponent.IProps> | null {
80
+ render(): JSX.Element | null {
81
81
  if (!this.model?.indentUnit) {
82
82
  return null;
83
83
  } else {