@jupyterlab/notebook 4.2.0-beta.1 → 4.2.0-beta.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/actions.d.ts CHANGED
@@ -502,7 +502,7 @@ export declare namespace NotebookActions {
502
502
  /**
503
503
  * Show the code on all code cells.
504
504
  *
505
- * @param widget - The target notebook widget.
505
+ * @param notebook The target notebook widget.
506
506
  */
507
507
  function showAllCode(notebook: Notebook): void;
508
508
  /**
package/lib/actions.js CHANGED
@@ -1284,7 +1284,7 @@ export class NotebookActions {
1284
1284
  /**
1285
1285
  * Show the code on all code cells.
1286
1286
  *
1287
- * @param widget - The target notebook widget.
1287
+ * @param notebook The target notebook widget.
1288
1288
  */
1289
1289
  function showAllCode(notebook) {
1290
1290
  if (!notebook.model || !notebook.activeCell) {
@@ -1,6 +1,5 @@
1
1
  import { ISessionContext } from '@jupyterlab/apputils';
2
2
  import { ITranslator } from '@jupyterlab/translation';
3
- import React from 'react';
4
3
  import { VDomModel, VDomRenderer } from '@jupyterlab/ui-components';
5
4
  import { Notebook } from './widget';
6
5
  import { NotebookPanel } from './panel';
@@ -9,7 +8,7 @@ import { Widget } from '@lumino/widgets';
9
8
  /**
10
9
  * A react functional component for rendering execution indicator.
11
10
  */
12
- export declare function ExecutionIndicatorComponent(props: ExecutionIndicatorComponent.IProps): React.ReactElement<ExecutionIndicatorComponent.IProps>;
11
+ export declare function ExecutionIndicatorComponent(props: ExecutionIndicatorComponent.IProps): JSX.Element;
13
12
  /**
14
13
  * A namespace for ExecutionIndicatorComponent statics.
15
14
  */
package/lib/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './cellexecutor';
7
7
  export * from './celllist';
8
8
  export * from './default-toolbar';
9
9
  export * from './executionindicator';
10
+ export * from './history';
10
11
  export * from './model';
11
12
  export * from './modelfactory';
12
13
  export * from './modestatus';
package/lib/index.js CHANGED
@@ -9,6 +9,7 @@ export * from './cellexecutor';
9
9
  export * from './celllist';
10
10
  export * from './default-toolbar';
11
11
  export * from './executionindicator';
12
+ export * from './history';
12
13
  export * from './model';
13
14
  export * from './modelfactory';
14
15
  export * from './modestatus';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D;;;GAGG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D;;;GAGG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
@@ -45,7 +45,7 @@ export declare class NotebookModelFactory implements DocumentRegistry.IModelFact
45
45
  /**
46
46
  * Create a new model for a given path.
47
47
  *
48
- * @param languagePreference - An optional kernel language preference.
48
+ * @param options Model options.
49
49
  *
50
50
  * @returns A new document model.
51
51
  */
@@ -66,7 +66,7 @@ export class NotebookModelFactory {
66
66
  /**
67
67
  * Create a new model for a given path.
68
68
  *
69
- * @param languagePreference - An optional kernel language preference.
69
+ * @param options Model options.
70
70
  *
71
71
  * @returns A new document model.
72
72
  */
package/lib/modestatus.js CHANGED
@@ -9,7 +9,7 @@ import * as React from 'react';
9
9
  /**
10
10
  * A pure function for rendering a Command/Edit mode component.
11
11
  *
12
- * @param props: the props for rendering the component.
12
+ * @param props the props for rendering the component.
13
13
  *
14
14
  * @returns a tsx component for command/edit mode.
15
15
  */
@@ -25,7 +25,7 @@ function cellTrust(props, translator) {
25
25
  /**
26
26
  * A pure function for a notebook trust status component.
27
27
  *
28
- * @param props: the props for the component.
28
+ * @param props the props for the component.
29
29
  *
30
30
  * @returns a tsx component for notebook trust.
31
31
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/notebook",
3
- "version": "4.2.0-beta.1",
3
+ "version": "4.2.0-beta.2",
4
4
  "description": "JupyterLab - Notebook",
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 -i",
37
36
  "test:cov": "jest -i --collect-coverage",
38
37
  "test:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand",
@@ -42,23 +41,23 @@
42
41
  },
43
42
  "dependencies": {
44
43
  "@jupyter/ydoc": "^2.0.1",
45
- "@jupyterlab/apputils": "^4.3.0-beta.1",
46
- "@jupyterlab/cells": "^4.2.0-beta.1",
47
- "@jupyterlab/codeeditor": "^4.2.0-beta.1",
48
- "@jupyterlab/codemirror": "^4.2.0-beta.1",
49
- "@jupyterlab/coreutils": "^6.2.0-beta.1",
50
- "@jupyterlab/docregistry": "^4.2.0-beta.1",
51
- "@jupyterlab/documentsearch": "^4.2.0-beta.1",
52
- "@jupyterlab/lsp": "^4.2.0-beta.1",
53
- "@jupyterlab/nbformat": "^4.2.0-beta.1",
54
- "@jupyterlab/observables": "^5.2.0-beta.1",
55
- "@jupyterlab/rendermime": "^4.2.0-beta.1",
56
- "@jupyterlab/services": "^7.2.0-beta.1",
57
- "@jupyterlab/settingregistry": "^4.2.0-beta.1",
58
- "@jupyterlab/statusbar": "^4.2.0-beta.1",
59
- "@jupyterlab/toc": "^6.2.0-beta.1",
60
- "@jupyterlab/translation": "^4.2.0-beta.1",
61
- "@jupyterlab/ui-components": "^4.2.0-beta.1",
44
+ "@jupyterlab/apputils": "^4.3.0-beta.2",
45
+ "@jupyterlab/cells": "^4.2.0-beta.2",
46
+ "@jupyterlab/codeeditor": "^4.2.0-beta.2",
47
+ "@jupyterlab/codemirror": "^4.2.0-beta.2",
48
+ "@jupyterlab/coreutils": "^6.2.0-beta.2",
49
+ "@jupyterlab/docregistry": "^4.2.0-beta.2",
50
+ "@jupyterlab/documentsearch": "^4.2.0-beta.2",
51
+ "@jupyterlab/lsp": "^4.2.0-beta.2",
52
+ "@jupyterlab/nbformat": "^4.2.0-beta.2",
53
+ "@jupyterlab/observables": "^5.2.0-beta.2",
54
+ "@jupyterlab/rendermime": "^4.2.0-beta.2",
55
+ "@jupyterlab/services": "^7.2.0-beta.2",
56
+ "@jupyterlab/settingregistry": "^4.2.0-beta.2",
57
+ "@jupyterlab/statusbar": "^4.2.0-beta.2",
58
+ "@jupyterlab/toc": "^6.2.0-beta.2",
59
+ "@jupyterlab/translation": "^4.2.0-beta.2",
60
+ "@jupyterlab/ui-components": "^4.2.0-beta.2",
62
61
  "@lumino/algorithm": "^2.0.1",
63
62
  "@lumino/coreutils": "^2.1.2",
64
63
  "@lumino/disposable": "^2.1.2",
@@ -73,11 +72,10 @@
73
72
  "react": "^18.2.0"
74
73
  },
75
74
  "devDependencies": {
76
- "@jupyterlab/testing": "^4.2.0-beta.1",
75
+ "@jupyterlab/testing": "^4.2.0-beta.2",
77
76
  "@types/jest": "^29.2.0",
78
77
  "jest": "^29.2.0",
79
78
  "rimraf": "~5.0.5",
80
- "typedoc": "~0.24.7",
81
79
  "typescript": "~5.1.6"
82
80
  },
83
81
  "publishConfig": {
package/src/actions.tsx CHANGED
@@ -1583,7 +1583,7 @@ export namespace NotebookActions {
1583
1583
  /**
1584
1584
  * Show the code on all code cells.
1585
1585
  *
1586
- * @param widget - The target notebook widget.
1586
+ * @param notebook The target notebook widget.
1587
1587
  */
1588
1588
  export function showAllCode(notebook: Notebook): void {
1589
1589
  if (!notebook.model || !notebook.activeCell) {
@@ -32,7 +32,7 @@ import { IChangedArgs } from '@jupyterlab/coreutils';
32
32
  */
33
33
  export function ExecutionIndicatorComponent(
34
34
  props: ExecutionIndicatorComponent.IProps
35
- ): React.ReactElement<ExecutionIndicatorComponent.IProps> {
35
+ ): JSX.Element {
36
36
  const translator = props.translator || nullTranslator;
37
37
  const kernelStatuses = translateKernelStatuses(translator);
38
38
  const trans = translator.load('jupyterlab');
package/src/index.ts CHANGED
@@ -10,6 +10,7 @@ export * from './cellexecutor';
10
10
  export * from './celllist';
11
11
  export * from './default-toolbar';
12
12
  export * from './executionindicator';
13
+ export * from './history';
13
14
  export * from './model';
14
15
  export * from './modelfactory';
15
16
  export * from './modestatus';
@@ -79,7 +79,7 @@ export class NotebookModelFactory
79
79
  /**
80
80
  * Create a new model for a given path.
81
81
  *
82
- * @param languagePreference - An optional kernel language preference.
82
+ * @param options Model options.
83
83
  *
84
84
  * @returns A new document model.
85
85
  */
@@ -16,7 +16,7 @@ import { Notebook, NotebookMode } from '.';
16
16
  /**
17
17
  * A pure function for rendering a Command/Edit mode component.
18
18
  *
19
- * @param props: the props for rendering the component.
19
+ * @param props the props for rendering the component.
20
20
  *
21
21
  * @returns a tsx component for command/edit mode.
22
22
  */
@@ -50,7 +50,7 @@ function cellTrust(
50
50
  /**
51
51
  * A pure function for a notebook trust status component.
52
52
  *
53
- * @param props: the props for the component.
53
+ * @param props the props for the component.
54
54
  *
55
55
  * @returns a tsx component for notebook trust.
56
56
  */