@jupyterlab/debugger 4.2.0-beta.2 → 4.2.0-rc.0
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/kernelSources/body.js +1 -1
- package/lib/panels/kernelSources/body.js.map +1 -1
- package/lib/panels/kernelSources/filter.d.ts +5 -0
- package/lib/panels/kernelSources/filter.js +2 -2
- package/lib/panels/kernelSources/filter.js.map +1 -1
- package/package.json +17 -17
- package/src/panels/kernelSources/body.tsx +1 -1
- package/src/panels/kernelSources/filter.tsx +8 -2
|
@@ -44,7 +44,7 @@ export class KernelSourcesBody extends ReactWidget {
|
|
|
44
44
|
}
|
|
45
45
|
return (React.createElement(React.Fragment, null,
|
|
46
46
|
React.createElement("div", { className: filterClass, key: 'filter' },
|
|
47
|
-
React.createElement(KernelSourcesFilter, { model: this._model })),
|
|
47
|
+
React.createElement(KernelSourcesFilter, { model: this._model, trans: this._trans })),
|
|
48
48
|
React.createElement(UseSignal, { signal: this._model.changed }, (_, kernelSources) => {
|
|
49
49
|
const keymap = {};
|
|
50
50
|
return (kernelSources !== null && kernelSources !== void 0 ? kernelSources : []).map(module => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"body.js","sourceRoot":"","sources":["../../../src/panels/kernelSources/body.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,C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ACpB,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC;CAMF"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { IDebugger } from '../../tokens';
|
|
2
|
+
import { TranslationBundle } from '@jupyterlab/translation';
|
|
2
3
|
/**
|
|
3
4
|
* The class name added to the filebrowser crumbs node.
|
|
4
5
|
*/
|
|
5
6
|
export interface IFilterBoxProps {
|
|
6
7
|
model: IDebugger.Model.IKernelSources;
|
|
8
|
+
/**
|
|
9
|
+
* The language bundle.
|
|
10
|
+
*/
|
|
11
|
+
trans: TranslationBundle;
|
|
7
12
|
}
|
|
8
13
|
/**
|
|
9
14
|
* A widget which hosts a input textbox to filter on file names.
|
|
@@ -8,12 +8,12 @@ const FilterBox = (props) => {
|
|
|
8
8
|
const filter = e.target.value;
|
|
9
9
|
props.model.filter = filter;
|
|
10
10
|
};
|
|
11
|
-
return (React.createElement(Search, { onChange: onFilterChange, placeholder:
|
|
11
|
+
return (React.createElement(Search, { onChange: onFilterChange, placeholder: props.trans.__('Filter the kernel sources'), value: props.model.filter }));
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* A widget which hosts a input textbox to filter on file names.
|
|
15
15
|
*/
|
|
16
16
|
export const KernelSourcesFilter = (props) => {
|
|
17
|
-
return (React.createElement(UseSignal, { signal: props.model.filterChanged, initialArgs: props.model.filter }, model => React.createElement(FilterBox, { model: props.model })));
|
|
17
|
+
return (React.createElement(UseSignal, { signal: props.model.filterChanged, initialArgs: props.model.filter }, model => React.createElement(FilterBox, { model: props.model, trans: props.trans })));
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=filter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../src/panels/kernelSources/filter.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO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1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/debugger",
|
|
3
|
-
"version": "4.2.0-
|
|
3
|
+
"version": "4.2.0-rc.0",
|
|
4
4
|
"description": "JupyterLab - Debugger Extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -52,21 +52,21 @@
|
|
|
52
52
|
"@codemirror/view": "^6.26.0",
|
|
53
53
|
"@jupyter/react-components": "^0.15.3",
|
|
54
54
|
"@jupyter/ydoc": "^2.0.1",
|
|
55
|
-
"@jupyterlab/application": "^4.2.0-
|
|
56
|
-
"@jupyterlab/apputils": "^4.3.0-
|
|
57
|
-
"@jupyterlab/cells": "^4.2.0-
|
|
58
|
-
"@jupyterlab/codeeditor": "^4.2.0-
|
|
59
|
-
"@jupyterlab/codemirror": "^4.2.0-
|
|
60
|
-
"@jupyterlab/console": "^4.2.0-
|
|
61
|
-
"@jupyterlab/coreutils": "^6.2.0-
|
|
62
|
-
"@jupyterlab/docregistry": "^4.2.0-
|
|
63
|
-
"@jupyterlab/fileeditor": "^4.2.0-
|
|
64
|
-
"@jupyterlab/notebook": "^4.2.0-
|
|
65
|
-
"@jupyterlab/observables": "^5.2.0-
|
|
66
|
-
"@jupyterlab/rendermime": "^4.2.0-
|
|
67
|
-
"@jupyterlab/services": "^7.2.0-
|
|
68
|
-
"@jupyterlab/translation": "^4.2.0-
|
|
69
|
-
"@jupyterlab/ui-components": "^4.2.0-
|
|
55
|
+
"@jupyterlab/application": "^4.2.0-rc.0",
|
|
56
|
+
"@jupyterlab/apputils": "^4.3.0-rc.0",
|
|
57
|
+
"@jupyterlab/cells": "^4.2.0-rc.0",
|
|
58
|
+
"@jupyterlab/codeeditor": "^4.2.0-rc.0",
|
|
59
|
+
"@jupyterlab/codemirror": "^4.2.0-rc.0",
|
|
60
|
+
"@jupyterlab/console": "^4.2.0-rc.0",
|
|
61
|
+
"@jupyterlab/coreutils": "^6.2.0-rc.0",
|
|
62
|
+
"@jupyterlab/docregistry": "^4.2.0-rc.0",
|
|
63
|
+
"@jupyterlab/fileeditor": "^4.2.0-rc.0",
|
|
64
|
+
"@jupyterlab/notebook": "^4.2.0-rc.0",
|
|
65
|
+
"@jupyterlab/observables": "^5.2.0-rc.0",
|
|
66
|
+
"@jupyterlab/rendermime": "^4.2.0-rc.0",
|
|
67
|
+
"@jupyterlab/services": "^7.2.0-rc.0",
|
|
68
|
+
"@jupyterlab/translation": "^4.2.0-rc.0",
|
|
69
|
+
"@jupyterlab/ui-components": "^4.2.0-rc.0",
|
|
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.2.0-
|
|
83
|
+
"@jupyterlab/testing": "^4.2.0-rc.0",
|
|
84
84
|
"@types/jest": "^29.2.0",
|
|
85
85
|
"canvas": "^2.11.2",
|
|
86
86
|
"jest": "^29.2.0",
|
|
@@ -58,7 +58,7 @@ export class KernelSourcesBody extends ReactWidget {
|
|
|
58
58
|
return (
|
|
59
59
|
<React.Fragment>
|
|
60
60
|
<div className={filterClass} key={'filter'}>
|
|
61
|
-
<KernelSourcesFilter model={this._model} />
|
|
61
|
+
<KernelSourcesFilter model={this._model} trans={this._trans} />
|
|
62
62
|
</div>
|
|
63
63
|
<UseSignal signal={this._model.changed}>
|
|
64
64
|
{(_, kernelSources) => {
|
|
@@ -8,12 +8,18 @@ import React from 'react';
|
|
|
8
8
|
import { IDebugger } from '../../tokens';
|
|
9
9
|
|
|
10
10
|
import { Search } from '@jupyter/react-components';
|
|
11
|
+
import { TranslationBundle } from '@jupyterlab/translation';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* The class name added to the filebrowser crumbs node.
|
|
14
15
|
*/
|
|
15
16
|
export interface IFilterBoxProps {
|
|
16
17
|
model: IDebugger.Model.IKernelSources;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The language bundle.
|
|
21
|
+
*/
|
|
22
|
+
trans: TranslationBundle;
|
|
17
23
|
}
|
|
18
24
|
|
|
19
25
|
const FilterBox = (props: IFilterBoxProps) => {
|
|
@@ -24,7 +30,7 @@ const FilterBox = (props: IFilterBoxProps) => {
|
|
|
24
30
|
return (
|
|
25
31
|
<Search
|
|
26
32
|
onChange={onFilterChange}
|
|
27
|
-
placeholder=
|
|
33
|
+
placeholder={props.trans.__('Filter the kernel sources')}
|
|
28
34
|
value={props.model.filter}
|
|
29
35
|
/>
|
|
30
36
|
);
|
|
@@ -39,7 +45,7 @@ export const KernelSourcesFilter = (props: IFilterBoxProps) => {
|
|
|
39
45
|
signal={props.model.filterChanged}
|
|
40
46
|
initialArgs={props.model.filter}
|
|
41
47
|
>
|
|
42
|
-
{model => <FilterBox model={props.model} />}
|
|
48
|
+
{model => <FilterBox model={props.model} trans={props.trans} />}
|
|
43
49
|
</UseSignal>
|
|
44
50
|
);
|
|
45
51
|
};
|