@jupyterlab/inspector 4.6.0-alpha.2 → 4.6.0-alpha.4
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/handler.d.ts +7 -7
- package/lib/handler.js.map +1 -1
- package/lib/inspector.d.ts +2 -2
- package/lib/inspector.js.map +1 -1
- package/lib/kernelconnector.d.ts +2 -2
- package/lib/tokens.d.ts +2 -2
- package/package.json +11 -11
- package/src/handler.ts +10 -7
- package/src/inspector.ts +6 -10
- package/src/kernelconnector.ts +3 -3
- package/src/tokens.ts +2 -2
package/lib/handler.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CodeEditor } from '@jupyterlab/codeeditor';
|
|
2
|
-
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
|
|
3
|
-
import { IDataConnector } from '@jupyterlab/statedb';
|
|
4
|
-
import { ReadonlyJSONObject } from '@lumino/coreutils';
|
|
5
|
-
import { IDisposable } from '@lumino/disposable';
|
|
6
|
-
import { ISignal } from '@lumino/signaling';
|
|
7
|
-
import { IInspector } from './tokens';
|
|
1
|
+
import type { CodeEditor } from '@jupyterlab/codeeditor';
|
|
2
|
+
import type { IRenderMimeRegistry } from '@jupyterlab/rendermime';
|
|
3
|
+
import type { IDataConnector } from '@jupyterlab/statedb';
|
|
4
|
+
import type { ReadonlyJSONObject } from '@lumino/coreutils';
|
|
5
|
+
import type { IDisposable } from '@lumino/disposable';
|
|
6
|
+
import type { ISignal } from '@lumino/signaling';
|
|
7
|
+
import type { IInspector } from './tokens';
|
|
8
8
|
/**
|
|
9
9
|
* An object that handles code inspection.
|
|
10
10
|
*/
|
package/lib/handler.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAG3D,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC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AE,IAAI,CAAC,EACjD,CAAC;gBACD,OAAO;YACT,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAC1D,IAAI,QAAQ,EAAE,CAAC;gBACb,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;gBACzD,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;gBAEtC,KAAK,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;gBAC/B,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;YAC1B,CAAC;YAED,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,IAAI,CAAC;YACtC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC,CAAC;aACD,KAAK,CAAC,MAAM,CAAC,EAAE;YACd,uDAAuD;YACvD,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;YAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACK,SAAS;QACf,KAAK,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;IAChC,CAAC;CAiBF"}
|
package/lib/inspector.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Printing } from '@jupyterlab/apputils';
|
|
2
|
-
import { ITranslator } from '@jupyterlab/translation';
|
|
2
|
+
import type { ITranslator } from '@jupyterlab/translation';
|
|
3
3
|
import { Panel, Widget } from '@lumino/widgets';
|
|
4
|
-
import { IInspector } from './tokens';
|
|
4
|
+
import type { IInspector } from './tokens';
|
|
5
5
|
/**
|
|
6
6
|
* A panel which contains a set of inspectors.
|
|
7
7
|
*/
|
package/lib/inspector.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspector.js","sourceRoot":"","sources":["../src/inspector.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"inspector.js","sourceRoot":"","sources":["../src/inspector.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGhD;;GAEG;AACH,MAAM,WAAW,GAAG,cAAc,CAAC;AAEnC;;GAEG;AACH,MAAM,aAAa,GAAG,sBAAsB,CAAC;AAE7C;;GAEG;AACH,MAAM,qBAAqB,GAAG,iCAAiC,CAAC;AAEhE;;GAEG;AACH,MAAM,OAAO,cACX,SAAQ,KAAK;IAGb;;OAEG;IACH,YAAY,UAAmC,EAAE;QAC/C,KAAK,EAAE,CAAC;QAuHF,YAAO,GAAmC,IAAI,CAAC;QAtHrD,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,cAAc,CAAC;QACvD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAEjD,IAAI,OAAO,CAAC,cAAc,YAAY,MAAM,EAAE,CAAC;YAC7C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC;QACzC,CAAC;aAAM,IAAI,OAAO,OAAO,CAAC,cAAc,KAAK,QAAQ,EAAE,CAAC;YACtD,IAAI,CAAC,QAAQ,GAAG,cAAc,CAAC,sBAAsB,CACnD,MAAM,OAAO,CAAC,cAAc,MAAM,CACnC,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,MAAM,mBAAmB,GAAG,OAAO,IAAI,CAAC,MAAM,C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AQ,CAAC,qBAAqB,CAAC,CAAC;QAEvC,OAAO,MAAM,CAAC;IAChB,CAAC;CAMF"}
|
package/lib/kernelconnector.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ISessionContext } from '@jupyterlab/apputils';
|
|
1
|
+
import type { ISessionContext } from '@jupyterlab/apputils';
|
|
2
2
|
import { DataConnector } from '@jupyterlab/statedb';
|
|
3
|
-
import { InspectionHandler } from './handler';
|
|
3
|
+
import type { InspectionHandler } from './handler';
|
|
4
4
|
/**
|
|
5
5
|
* The default connector for making inspection requests from the Jupyter API.
|
|
6
6
|
*/
|
package/lib/tokens.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Token } from '@lumino/coreutils';
|
|
2
|
-
import { ISignal } from '@lumino/signaling';
|
|
3
|
-
import { Widget } from '@lumino/widgets';
|
|
2
|
+
import type { ISignal } from '@lumino/signaling';
|
|
3
|
+
import type { Widget } from '@lumino/widgets';
|
|
4
4
|
/**
|
|
5
5
|
* The inspector panel token.
|
|
6
6
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/inspector",
|
|
3
|
-
"version": "4.6.0-alpha.
|
|
3
|
+
"version": "4.6.0-alpha.4",
|
|
4
4
|
"description": "JupyterLab - Code Inspector",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -41,25 +41,25 @@
|
|
|
41
41
|
"watch": "tsc -b --watch"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@jupyterlab/apputils": "^4.7.0-alpha.
|
|
45
|
-
"@jupyterlab/codeeditor": "^4.6.0-alpha.
|
|
46
|
-
"@jupyterlab/coreutils": "^6.6.0-alpha.
|
|
47
|
-
"@jupyterlab/rendermime": "^4.6.0-alpha.
|
|
48
|
-
"@jupyterlab/services": "^7.6.0-alpha.
|
|
49
|
-
"@jupyterlab/statedb": "^4.6.0-alpha.
|
|
50
|
-
"@jupyterlab/translation": "^4.6.0-alpha.
|
|
44
|
+
"@jupyterlab/apputils": "^4.7.0-alpha.4",
|
|
45
|
+
"@jupyterlab/codeeditor": "^4.6.0-alpha.4",
|
|
46
|
+
"@jupyterlab/coreutils": "^6.6.0-alpha.4",
|
|
47
|
+
"@jupyterlab/rendermime": "^4.6.0-alpha.4",
|
|
48
|
+
"@jupyterlab/services": "^7.6.0-alpha.4",
|
|
49
|
+
"@jupyterlab/statedb": "^4.6.0-alpha.4",
|
|
50
|
+
"@jupyterlab/translation": "^4.6.0-alpha.4",
|
|
51
51
|
"@lumino/coreutils": "^2.2.2",
|
|
52
52
|
"@lumino/disposable": "^2.1.5",
|
|
53
53
|
"@lumino/polling": "^2.1.5",
|
|
54
54
|
"@lumino/signaling": "^2.1.5",
|
|
55
|
-
"@lumino/widgets": "^2.7.
|
|
55
|
+
"@lumino/widgets": "^2.7.5"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@jupyterlab/testing": "^4.6.0-alpha.
|
|
58
|
+
"@jupyterlab/testing": "^4.6.0-alpha.4",
|
|
59
59
|
"@types/jest": "^29.2.0",
|
|
60
60
|
"jest": "^29.2.0",
|
|
61
61
|
"rimraf": "~5.0.5",
|
|
62
|
-
"typescript": "~5.
|
|
62
|
+
"typescript": "~5.9.3"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
package/src/handler.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
// Copyright (c) Jupyter Development Team.
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
3
|
|
|
4
|
-
import { CodeEditor } from '@jupyterlab/codeeditor';
|
|
4
|
+
import type { CodeEditor } from '@jupyterlab/codeeditor';
|
|
5
5
|
import { Text } from '@jupyterlab/coreutils';
|
|
6
|
-
import { IRenderMimeRegistry
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import type { IRenderMimeRegistry } from '@jupyterlab/rendermime';
|
|
7
|
+
import { MimeModel } from '@jupyterlab/rendermime';
|
|
8
|
+
import type { IDataConnector } from '@jupyterlab/statedb';
|
|
9
|
+
import type { ReadonlyJSONObject } from '@lumino/coreutils';
|
|
10
|
+
import { JSONExt } from '@lumino/coreutils';
|
|
11
|
+
import type { IDisposable } from '@lumino/disposable';
|
|
10
12
|
import { Debouncer } from '@lumino/polling';
|
|
11
|
-
import { ISignal
|
|
12
|
-
import {
|
|
13
|
+
import type { ISignal } from '@lumino/signaling';
|
|
14
|
+
import { Signal } from '@lumino/signaling';
|
|
15
|
+
import type { IInspector } from './tokens';
|
|
13
16
|
|
|
14
17
|
/**
|
|
15
18
|
* An object that handles code inspection.
|
package/src/inspector.ts
CHANGED
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
3
|
|
|
4
4
|
import { Printing } from '@jupyterlab/apputils';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from '
|
|
10
|
-
import { Panel, PanelLayout, Widget } from '@lumino/widgets';
|
|
11
|
-
import { IInspector } from './tokens';
|
|
5
|
+
import type { ITranslator, TranslationBundle } from '@jupyterlab/translation';
|
|
6
|
+
import { nullTranslator } from '@jupyterlab/translation';
|
|
7
|
+
import type { PanelLayout } from '@lumino/widgets';
|
|
8
|
+
import { Panel, Widget } from '@lumino/widgets';
|
|
9
|
+
import type { IInspector } from './tokens';
|
|
12
10
|
|
|
13
11
|
/**
|
|
14
12
|
* The class name added to inspector panels.
|
|
@@ -47,9 +45,7 @@ export class InspectorPanel
|
|
|
47
45
|
`<p>${options.initialContent}</p>`
|
|
48
46
|
);
|
|
49
47
|
} else {
|
|
50
|
-
const placeholderHeadline = `<h3>${this._trans.__(
|
|
51
|
-
'No Documentation'
|
|
52
|
-
)}</h3>`;
|
|
48
|
+
const placeholderHeadline = `<h3>${this._trans.__('No Documentation')}</h3>`;
|
|
53
49
|
const placeholderText = `<p>${this._trans.__(
|
|
54
50
|
'Move the cursor to a code fragment (e.g. function or object) to request information about it from the kernel attached to the editor.'
|
|
55
51
|
)}</p>`;
|
package/src/kernelconnector.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Copyright (c) Jupyter Development Team.
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
3
|
|
|
4
|
-
import { ISessionContext } from '@jupyterlab/apputils';
|
|
5
|
-
import { KernelMessage } from '@jupyterlab/services';
|
|
4
|
+
import type { ISessionContext } from '@jupyterlab/apputils';
|
|
5
|
+
import type { KernelMessage } from '@jupyterlab/services';
|
|
6
6
|
import { DataConnector } from '@jupyterlab/statedb';
|
|
7
|
-
import { InspectionHandler } from './handler';
|
|
7
|
+
import type { InspectionHandler } from './handler';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* The default connector for making inspection requests from the Jupyter API.
|
package/src/tokens.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
3
|
|
|
4
4
|
import { Token } from '@lumino/coreutils';
|
|
5
|
-
import { ISignal } from '@lumino/signaling';
|
|
6
|
-
import { Widget } from '@lumino/widgets';
|
|
5
|
+
import type { ISignal } from '@lumino/signaling';
|
|
6
|
+
import type { Widget } from '@lumino/widgets';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The inspector panel token.
|