@jupyterlab/debugger 4.2.3 → 4.3.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/panels/sources/index.js +1 -1
- package/lib/panels/sources/index.js.map +1 -1
- package/lib/panels/sources/sourcepath.d.ts +3 -1
- package/lib/panels/sources/sourcepath.js +6 -2
- package/lib/panels/sources/sourcepath.js.map +1 -1
- package/package.json +18 -18
- package/src/panels/sources/index.tsx +1 -1
- package/src/panels/sources/sourcepath.tsx +10 -2
- package/style/sources.css +1 -0
|
@@ -35,7 +35,7 @@ export class Sources extends PanelWithToolbar {
|
|
|
35
35
|
onClick: () => model.open(),
|
|
36
36
|
tooltip: trans.__('Open in the Main Area')
|
|
37
37
|
}));
|
|
38
|
-
const sourcePath = ReactWidget.create(React.createElement(SourcePathComponent, { model: model }));
|
|
38
|
+
const sourcePath = ReactWidget.create(React.createElement(SourcePathComponent, { model: model, trans: trans }));
|
|
39
39
|
this.toolbar.addItem('sourcePath', sourcePath);
|
|
40
40
|
this.addClass('jp-DebuggerSources-header');
|
|
41
41
|
this.addWidget(body);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/panels/sources/index.tsx"],"names":[],"mappings":"AAAA;;;+EAG+E;AAG/E,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,gBA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TranslationBundle } from '@jupyterlab/translation';
|
|
1
2
|
import { IDebugger } from '../../tokens';
|
|
2
3
|
/**
|
|
3
4
|
* A React component to display the path to a source.
|
|
@@ -5,6 +6,7 @@ import { IDebugger } from '../../tokens';
|
|
|
5
6
|
* @param {object} props The component props.
|
|
6
7
|
* @param props.model The model for the sources.
|
|
7
8
|
*/
|
|
8
|
-
export declare const SourcePathComponent: ({ model }: {
|
|
9
|
+
export declare const SourcePathComponent: ({ model, trans }: {
|
|
9
10
|
model: IDebugger.Model.ISources;
|
|
11
|
+
trans: TranslationBundle;
|
|
10
12
|
}) => JSX.Element;
|
|
@@ -8,10 +8,14 @@ import React from 'react';
|
|
|
8
8
|
* @param {object} props The component props.
|
|
9
9
|
* @param props.model The model for the sources.
|
|
10
10
|
*/
|
|
11
|
-
export const SourcePathComponent = ({ model }) => {
|
|
11
|
+
export const SourcePathComponent = ({ model, trans }) => {
|
|
12
12
|
return (React.createElement(UseSignal, { signal: model.currentSourceChanged, initialSender: model }, (model) => {
|
|
13
13
|
var _a, _b;
|
|
14
|
-
return (React.createElement("span", { onClick: () =>
|
|
14
|
+
return (React.createElement("span", { onClick: (event) => {
|
|
15
|
+
if (event.ctrlKey) {
|
|
16
|
+
model === null || model === void 0 ? void 0 : model.open();
|
|
17
|
+
}
|
|
18
|
+
}, title: trans.__('Ctrl + click to open in the Main Area'), className: "jp-DebuggerSources-header-path" }, (_b = (_a = model === null || model === void 0 ? void 0 : model.currentSource) === null || _a === void 0 ? void 0 : _a.path) !== null && _b !== void 0 ? _b : ''));
|
|
15
19
|
}));
|
|
16
20
|
};
|
|
17
21
|
//# sourceMappingURL=sourcepath.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourcepath.js","sourceRoot":"","sources":["../../../src/panels/sources/sourcepath.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"sourcepath.js","sourceRoot":"","sources":["../../../src/panels/sources/sourcepath.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,KAAK,EACL,KAAK,EAIN,EAAe,EAAE;IAChB,OAAO,CACL,oBAAC,SAAS,IAAC,MAAM,EAAE,KAAK,CAAC,oBAAoB,EAAE,aAAa,EAAE,KAAK,IAChE,CAAC,KAAK,EAAe,EAAE;;QAAC,OAAA,CACvB,8BACE,OAAO,EAAE,CAAC,KAAK,EAAQ,EAAE;gBACvB,IAAI,KAAK,CAAC,OAAO,EAAE;oBACjB,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,CAAC;iBACf;YACH,CAAC,EACD,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,uCAAuC,CAAC,EACxD,SAAS,EAAC,gCAAgC,IAEzC,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,0CAAE,IAAI,mCAAI,EAAE,CAC5B,CACR,CAAA;KAAA,CACS,CACb,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/debugger",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0-alpha.1",
|
|
4
4
|
"description": "JupyterLab - Debugger Extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -49,24 +49,24 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@codemirror/state": "^6.4.1",
|
|
52
|
-
"@codemirror/view": "^6.26.
|
|
52
|
+
"@codemirror/view": "^6.26.3",
|
|
53
53
|
"@jupyter/react-components": "^0.15.3",
|
|
54
54
|
"@jupyter/ydoc": "^2.0.1",
|
|
55
|
-
"@jupyterlab/application": "^4.
|
|
56
|
-
"@jupyterlab/apputils": "^4.
|
|
57
|
-
"@jupyterlab/cells": "^4.
|
|
58
|
-
"@jupyterlab/codeeditor": "^4.
|
|
59
|
-
"@jupyterlab/codemirror": "^4.
|
|
60
|
-
"@jupyterlab/console": "^4.
|
|
61
|
-
"@jupyterlab/coreutils": "^6.
|
|
62
|
-
"@jupyterlab/docregistry": "^4.
|
|
63
|
-
"@jupyterlab/fileeditor": "^4.
|
|
64
|
-
"@jupyterlab/notebook": "^4.
|
|
65
|
-
"@jupyterlab/observables": "^5.
|
|
66
|
-
"@jupyterlab/rendermime": "^4.
|
|
67
|
-
"@jupyterlab/services": "^7.
|
|
68
|
-
"@jupyterlab/translation": "^4.
|
|
69
|
-
"@jupyterlab/ui-components": "^4.
|
|
55
|
+
"@jupyterlab/application": "^4.3.0-alpha.1",
|
|
56
|
+
"@jupyterlab/apputils": "^4.4.0-alpha.1",
|
|
57
|
+
"@jupyterlab/cells": "^4.3.0-alpha.1",
|
|
58
|
+
"@jupyterlab/codeeditor": "^4.3.0-alpha.1",
|
|
59
|
+
"@jupyterlab/codemirror": "^4.3.0-alpha.1",
|
|
60
|
+
"@jupyterlab/console": "^4.3.0-alpha.1",
|
|
61
|
+
"@jupyterlab/coreutils": "^6.3.0-alpha.1",
|
|
62
|
+
"@jupyterlab/docregistry": "^4.3.0-alpha.1",
|
|
63
|
+
"@jupyterlab/fileeditor": "^4.3.0-alpha.1",
|
|
64
|
+
"@jupyterlab/notebook": "^4.3.0-alpha.1",
|
|
65
|
+
"@jupyterlab/observables": "^5.3.0-alpha.1",
|
|
66
|
+
"@jupyterlab/rendermime": "^4.3.0-alpha.1",
|
|
67
|
+
"@jupyterlab/services": "^7.3.0-alpha.1",
|
|
68
|
+
"@jupyterlab/translation": "^4.3.0-alpha.1",
|
|
69
|
+
"@jupyterlab/ui-components": "^4.3.0-alpha.1",
|
|
70
70
|
"@lumino/algorithm": "^2.0.1",
|
|
71
71
|
"@lumino/commands": "^2.3.0",
|
|
72
72
|
"@lumino/coreutils": "^2.1.2",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"react": "^18.2.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@jupyterlab/testing": "^4.
|
|
83
|
+
"@jupyterlab/testing": "^4.3.0-alpha.1",
|
|
84
84
|
"@types/jest": "^29.2.0",
|
|
85
85
|
"jest": "^29.2.0",
|
|
86
86
|
"jest-canvas-mock": "^2.5.2",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
3
|
|
|
4
4
|
import { UseSignal } from '@jupyterlab/ui-components';
|
|
5
|
+
import { TranslationBundle } from '@jupyterlab/translation';
|
|
5
6
|
import React from 'react';
|
|
6
7
|
import { IDebugger } from '../../tokens';
|
|
7
8
|
|
|
@@ -12,15 +13,22 @@ import { IDebugger } from '../../tokens';
|
|
|
12
13
|
* @param props.model The model for the sources.
|
|
13
14
|
*/
|
|
14
15
|
export const SourcePathComponent = ({
|
|
15
|
-
model
|
|
16
|
+
model,
|
|
17
|
+
trans
|
|
16
18
|
}: {
|
|
17
19
|
model: IDebugger.Model.ISources;
|
|
20
|
+
trans: TranslationBundle;
|
|
18
21
|
}): JSX.Element => {
|
|
19
22
|
return (
|
|
20
23
|
<UseSignal signal={model.currentSourceChanged} initialSender={model}>
|
|
21
24
|
{(model): JSX.Element => (
|
|
22
25
|
<span
|
|
23
|
-
onClick={(): void =>
|
|
26
|
+
onClick={(event): void => {
|
|
27
|
+
if (event.ctrlKey) {
|
|
28
|
+
model?.open();
|
|
29
|
+
}
|
|
30
|
+
}}
|
|
31
|
+
title={trans.__('Ctrl + click to open in the Main Area')}
|
|
24
32
|
className="jp-DebuggerSources-header-path"
|
|
25
33
|
>
|
|
26
34
|
{model?.currentSource?.path ?? ''}
|