@jupyterlab/inspector 4.7.0-alpha.0 → 4.7.0-alpha.1
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/inspector.d.ts +2 -2
- package/lib/inspector.js +0 -1
- package/lib/inspector.js.map +1 -1
- package/lib/tokens.d.ts +3 -3
- package/lib/tokens.js +0 -1
- package/lib/tokens.js.map +1 -1
- package/package.json +14 -14
- package/src/inspector.ts +5 -4
- package/src/tokens.ts +3 -5
package/lib/inspector.d.ts
CHANGED
|
@@ -26,11 +26,11 @@ export declare class InspectorPanel extends Panel implements IInspector, Printin
|
|
|
26
26
|
/**
|
|
27
27
|
* Handle inspector update signals.
|
|
28
28
|
*/
|
|
29
|
-
protected onInspectorUpdate(sender:
|
|
29
|
+
protected onInspectorUpdate(sender: IInspector.IInspectable, args: IInspector.IInspectorUpdate): void;
|
|
30
30
|
/**
|
|
31
31
|
* Handle source disposed signals.
|
|
32
32
|
*/
|
|
33
|
-
protected onSourceDisposed(sender:
|
|
33
|
+
protected onSourceDisposed(sender: IInspector.IInspectable, args: void): void;
|
|
34
34
|
/**
|
|
35
35
|
* Generate content widget from string
|
|
36
36
|
*/
|
package/lib/inspector.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Copyright (c) Jupyter Development Team.
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
3
|
import { Printing } from '@jupyterlab/apputils';
|
|
5
4
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
6
5
|
import { Panel, Widget } from '@lumino/widgets';
|
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;AAC3D,
|
|
1
|
+
{"version":3,"file":"inspector.js","sourceRoot":"","sources":["../src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AO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,OAAO;QACT,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,KAAK,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC;IAED;;OAEG;IACO,iBAAiB,CACzB,MAA+B,EAC/B,IAAiC;QAEjC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAEzB,8CAA8C;QAC9C,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;YAC1C,OAAO;QACT,CAAC;QACD,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QAExB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAsB,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACO,gBAAgB,CACxB,MAA+B,EAC/B,IAAU;QAEV,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACrB,CAAC;IAED;;OAEG;IACK,MAAM,CAAC,sBAAsB,CAAC,OAAe;QACnD,MAAM,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QAC5B,MAAM,CAAC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC;QAChC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC/B,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;QAEvC,OAAO,MAAM,CAAC;IAChB,CAAC;CAMF"}
|
package/lib/tokens.d.ts
CHANGED
|
@@ -25,15 +25,15 @@ export declare namespace IInspector {
|
|
|
25
25
|
/**
|
|
26
26
|
* A signal emitted when the inspector should clear all items.
|
|
27
27
|
*/
|
|
28
|
-
cleared: ISignal<
|
|
28
|
+
cleared: ISignal<IInspectable, void>;
|
|
29
29
|
/**
|
|
30
30
|
* A signal emitted when the inspectable is disposed.
|
|
31
31
|
*/
|
|
32
|
-
disposed: ISignal<
|
|
32
|
+
disposed: ISignal<IInspectable, void>;
|
|
33
33
|
/**
|
|
34
34
|
* A signal emitted when an inspector value is generated.
|
|
35
35
|
*/
|
|
36
|
-
inspected: ISignal<
|
|
36
|
+
inspected: ISignal<IInspectable, IInspectorUpdate>;
|
|
37
37
|
/**
|
|
38
38
|
* Test whether the inspectable has been disposed.
|
|
39
39
|
*/
|
package/lib/tokens.js
CHANGED
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;AAC3D,
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,KAAK,CACjC,kCAAkC,EAClC;sEACoE,CACrE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/inspector",
|
|
3
|
-
"version": "4.7.0-alpha.
|
|
3
|
+
"version": "4.7.0-alpha.1",
|
|
4
4
|
"description": "JupyterLab - Code Inspector",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
"watch": "tsc -b --watch"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@jupyterlab/apputils": "^4.8.0-alpha.
|
|
45
|
-
"@jupyterlab/codeeditor": "^4.7.0-alpha.
|
|
46
|
-
"@jupyterlab/coreutils": "^6.7.0-alpha.
|
|
47
|
-
"@jupyterlab/rendermime": "^4.7.0-alpha.
|
|
48
|
-
"@jupyterlab/services": "^7.7.0-alpha.
|
|
49
|
-
"@jupyterlab/statedb": "^4.7.0-alpha.
|
|
50
|
-
"@jupyterlab/translation": "^4.7.0-alpha.
|
|
51
|
-
"@lumino/coreutils": "^2.2.
|
|
52
|
-
"@lumino/disposable": "^2.1.
|
|
53
|
-
"@lumino/polling": "^2.1.
|
|
54
|
-
"@lumino/signaling": "^2.1.
|
|
55
|
-
"@lumino/widgets": "^2.
|
|
44
|
+
"@jupyterlab/apputils": "^4.8.0-alpha.1",
|
|
45
|
+
"@jupyterlab/codeeditor": "^4.7.0-alpha.1",
|
|
46
|
+
"@jupyterlab/coreutils": "^6.7.0-alpha.1",
|
|
47
|
+
"@jupyterlab/rendermime": "^4.7.0-alpha.1",
|
|
48
|
+
"@jupyterlab/services": "^7.7.0-alpha.1",
|
|
49
|
+
"@jupyterlab/statedb": "^4.7.0-alpha.1",
|
|
50
|
+
"@jupyterlab/translation": "^4.7.0-alpha.1",
|
|
51
|
+
"@lumino/coreutils": "^2.2.3",
|
|
52
|
+
"@lumino/disposable": "^2.1.6",
|
|
53
|
+
"@lumino/polling": "^2.1.6",
|
|
54
|
+
"@lumino/signaling": "^2.1.6",
|
|
55
|
+
"@lumino/widgets": "^2.9.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@jupyterlab/testing": "^4.7.0-alpha.
|
|
58
|
+
"@jupyterlab/testing": "^4.7.0-alpha.1",
|
|
59
59
|
"@types/jest": "^29.2.0",
|
|
60
60
|
"jest": "^29.2.0",
|
|
61
61
|
"rimraf": "~5.0.5",
|
package/src/inspector.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// Copyright (c) Jupyter Development Team.
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
|
-
|
|
5
3
|
import { Printing } from '@jupyterlab/apputils';
|
|
6
4
|
import type { ITranslator, TranslationBundle } from '@jupyterlab/translation';
|
|
7
5
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
@@ -116,7 +114,7 @@ export class InspectorPanel
|
|
|
116
114
|
* Handle inspector update signals.
|
|
117
115
|
*/
|
|
118
116
|
protected onInspectorUpdate(
|
|
119
|
-
sender:
|
|
117
|
+
sender: IInspector.IInspectable,
|
|
120
118
|
args: IInspector.IInspectorUpdate
|
|
121
119
|
): void {
|
|
122
120
|
const { content } = args;
|
|
@@ -135,7 +133,10 @@ export class InspectorPanel
|
|
|
135
133
|
/**
|
|
136
134
|
* Handle source disposed signals.
|
|
137
135
|
*/
|
|
138
|
-
protected onSourceDisposed(
|
|
136
|
+
protected onSourceDisposed(
|
|
137
|
+
sender: IInspector.IInspectable,
|
|
138
|
+
args: void
|
|
139
|
+
): void {
|
|
139
140
|
this.source = null;
|
|
140
141
|
}
|
|
141
142
|
|
package/src/tokens.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// Copyright (c) Jupyter Development Team.
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
|
-
|
|
5
3
|
import { Token } from '@lumino/coreutils';
|
|
6
4
|
import type { ISignal } from '@lumino/signaling';
|
|
7
5
|
import type { Widget } from '@lumino/widgets';
|
|
@@ -36,17 +34,17 @@ export namespace IInspector {
|
|
|
36
34
|
/**
|
|
37
35
|
* A signal emitted when the inspector should clear all items.
|
|
38
36
|
*/
|
|
39
|
-
cleared: ISignal<
|
|
37
|
+
cleared: ISignal<IInspectable, void>;
|
|
40
38
|
|
|
41
39
|
/**
|
|
42
40
|
* A signal emitted when the inspectable is disposed.
|
|
43
41
|
*/
|
|
44
|
-
disposed: ISignal<
|
|
42
|
+
disposed: ISignal<IInspectable, void>;
|
|
45
43
|
|
|
46
44
|
/**
|
|
47
45
|
* A signal emitted when an inspector value is generated.
|
|
48
46
|
*/
|
|
49
|
-
inspected: ISignal<
|
|
47
|
+
inspected: ISignal<IInspectable, IInspectorUpdate>;
|
|
50
48
|
|
|
51
49
|
/**
|
|
52
50
|
* Test whether the inspectable has been disposed.
|