@jupyterlab/debugger 3.3.0-alpha.14 → 3.3.0-alpha.18
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/debugger.d.ts +2 -1
- package/lib/debugger.js +3 -2
- package/lib/debugger.js.map +1 -1
- package/lib/handler.d.ts +1 -1
- package/lib/handler.js +11 -3
- package/lib/handler.js.map +1 -1
- package/lib/handlers/editor.d.ts +8 -0
- package/lib/handlers/editor.js +12 -0
- package/lib/handlers/editor.js.map +1 -1
- package/lib/handlers/file.d.ts +1 -0
- package/lib/handlers/file.js +6 -1
- package/lib/handlers/file.js.map +1 -1
- package/lib/handlers/notebook.js +12 -2
- package/lib/handlers/notebook.js.map +1 -1
- package/lib/icons.d.ts +2 -0
- package/lib/icons.js +10 -0
- package/lib/icons.js.map +1 -1
- package/lib/model.d.ts +5 -0
- package/lib/model.js +3 -0
- package/lib/model.js.map +1 -1
- package/lib/panels/breakpoints/body.d.ts +1 -1
- package/lib/panels/breakpoints/body.js +1 -1
- package/lib/panels/breakpoints/body.js.map +1 -1
- package/lib/panels/breakpoints/header.d.ts +16 -0
- package/lib/panels/breakpoints/header.js +30 -0
- package/lib/panels/breakpoints/header.js.map +1 -0
- package/lib/panels/breakpoints/index.d.ts +19 -2
- package/lib/panels/breakpoints/index.js +23 -12
- package/lib/panels/breakpoints/index.js.map +1 -1
- package/lib/panels/callstack/body.d.ts +1 -1
- package/lib/panels/callstack/body.js +2 -2
- package/lib/panels/callstack/body.js.map +1 -1
- package/lib/panels/callstack/header.d.ts +16 -0
- package/lib/panels/callstack/header.js +30 -0
- package/lib/panels/callstack/header.js.map +1 -0
- package/lib/panels/callstack/index.d.ts +1 -2
- package/lib/panels/callstack/index.js +21 -23
- package/lib/panels/callstack/index.js.map +1 -1
- package/lib/panels/kernelSources/body.d.ts +47 -0
- package/lib/panels/kernelSources/body.js +86 -0
- package/lib/panels/kernelSources/body.js.map +1 -0
- package/lib/panels/kernelSources/filter.d.ts +13 -0
- package/lib/panels/kernelSources/filter.js +17 -0
- package/lib/panels/kernelSources/filter.js.map +1 -0
- package/lib/panels/kernelSources/header.d.ts +19 -0
- package/lib/panels/kernelSources/header.js +33 -0
- package/lib/panels/kernelSources/header.js.map +1 -0
- package/lib/panels/kernelSources/index.d.ts +39 -0
- package/lib/panels/kernelSources/index.js +59 -0
- package/lib/panels/kernelSources/index.js.map +1 -0
- package/lib/panels/kernelSources/model.d.ts +56 -0
- package/lib/panels/kernelSources/model.js +86 -0
- package/lib/panels/kernelSources/model.js.map +1 -0
- package/lib/panels/sources/header.d.ts +19 -0
- package/lib/panels/sources/header.js +48 -0
- package/lib/panels/sources/header.js.map +1 -0
- package/lib/panels/sources/index.d.ts +2 -2
- package/lib/panels/sources/index.js +12 -15
- package/lib/panels/sources/index.js.map +1 -1
- package/lib/panels/variables/grid.d.ts +0 -9
- package/lib/panels/variables/grid.js +11 -30
- package/lib/panels/variables/grid.js.map +1 -1
- package/lib/panels/variables/header.d.ts +16 -0
- package/lib/panels/variables/header.js +30 -0
- package/lib/panels/variables/header.js.map +1 -0
- package/lib/panels/variables/index.d.ts +2 -10
- package/lib/panels/variables/index.js +17 -34
- package/lib/panels/variables/index.js.map +1 -1
- package/lib/panels/variables/mimerenderer.d.ts +15 -2
- package/lib/panels/variables/mimerenderer.js +48 -17
- package/lib/panels/variables/mimerenderer.js.map +1 -1
- package/lib/panels/variables/model.d.ts +3 -0
- package/lib/panels/variables/model.js +7 -0
- package/lib/panels/variables/model.js.map +1 -1
- package/lib/panels/variables/scope.d.ts +1 -1
- package/lib/panels/variables/scope.js +2 -1
- package/lib/panels/variables/scope.js.map +1 -1
- package/lib/panels/variables/tree.d.ts +2 -6
- package/lib/panels/variables/tree.js +13 -11
- package/lib/panels/variables/tree.js.map +1 -1
- package/lib/service.d.ts +17 -7
- package/lib/service.js +99 -15
- package/lib/service.js.map +1 -1
- package/lib/session.d.ts +23 -1
- package/lib/session.js +39 -5
- package/lib/session.js.map +1 -1
- package/lib/sidebar.d.ts +9 -0
- package/lib/sidebar.js +11 -6
- package/lib/sidebar.js.map +1 -1
- package/lib/tokens.d.ts +89 -25
- package/lib/tokens.js.map +1 -1
- package/package.json +27 -27
- package/style/base.css +1 -1
- package/style/breakpoints.css +0 -2
- package/style/callstack.css +0 -2
- package/style/icons/open-kernel-source.svg +6 -0
- package/style/icons/pause.svg +6 -0
- package/style/icons.css +10 -0
- package/style/kernelSources.css +42 -0
- package/style/sidebar.css +5 -16
- package/style/sources.css +1 -6
- package/style/variables.css +15 -3
- package/lib/panels/panelbody.d.ts +0 -27
- package/lib/panels/panelbody.js +0 -47
- package/lib/panels/panelbody.js.map +0 -1
- package/lib/panels/panelwithtoolbar.d.ts +0 -57
- package/lib/panels/panelwithtoolbar.js +0 -55
- package/lib/panels/panelwithtoolbar.js.map +0 -1
- package/lib/panels/sources/sourcepath.d.ts +0 -11
- package/lib/panels/sources/sourcepath.js +0 -17
- package/lib/panels/sources/sourcepath.js.map +0 -1
- package/style/accordionpanel.css +0 -40
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
5
|
-
import { Panel } from '@lumino/widgets';
|
|
6
|
-
/**
|
|
7
|
-
* A base class for debugger panel element.
|
|
8
|
-
*/
|
|
9
|
-
export class PanelWithToolbar extends Panel {
|
|
10
|
-
/**
|
|
11
|
-
* Instantiate a new Panel.
|
|
12
|
-
*
|
|
13
|
-
* @param options The instantiation options for a Debugger Panel.
|
|
14
|
-
*/
|
|
15
|
-
constructor(options) {
|
|
16
|
-
super(options);
|
|
17
|
-
const translator = options.translator || nullTranslator;
|
|
18
|
-
this.trans = translator.load('jupyterlab');
|
|
19
|
-
this._toolbar = new Toolbar();
|
|
20
|
-
this._toolbar.addClass('jp-stack-panel-header');
|
|
21
|
-
// Add toolbar as widget to get notified by the lumino widget
|
|
22
|
-
this.addWidget(this._toolbar);
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Handler to notify `AccordionPanel` title that its child widget is expanded.
|
|
26
|
-
* We can not rely on `lm-mod-expanded` class of Lumino to detect this event
|
|
27
|
-
* since this class is added to the target of `onClick` event, which is not
|
|
28
|
-
* always the title of `AccordionPanel`.
|
|
29
|
-
*
|
|
30
|
-
* @param {Message} msg
|
|
31
|
-
*
|
|
32
|
-
* TODO remove when @lumino/widgets 1.26.3 is released
|
|
33
|
-
*/
|
|
34
|
-
onAfterShow(msg) {
|
|
35
|
-
var _a;
|
|
36
|
-
(_a = this.toolbar.node.parentElement) === null || _a === void 0 ? void 0 : _a.classList.add('jp-DebuggerPanel-expanded');
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Handler to notify `AccordionPanel`'s title that its child widget is closed.
|
|
40
|
-
* @param {Message} msg
|
|
41
|
-
*
|
|
42
|
-
* TODO remove when @lumino/widgets 1.26.3 is released
|
|
43
|
-
*/
|
|
44
|
-
onAfterHide(msg) {
|
|
45
|
-
var _a;
|
|
46
|
-
(_a = this.toolbar.node.parentElement) === null || _a === void 0 ? void 0 : _a.classList.remove('jp-DebuggerPanel-expanded');
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Widget toolbar
|
|
50
|
-
*/
|
|
51
|
-
get toolbar() {
|
|
52
|
-
return this._toolbar;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=panelwithtoolbar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"panelwithtoolbar.js","sourceRoot":"","sources":["../../src/panels/panelwithtoolbar.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAEL,cAAc,EAEf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC;;;;OAIG;IACH,YAAY,OAAkC;QAC5C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,cAAc,CAAC;QACxD,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE3C,IAAI,CAAC,QAAQ,GAAG,IAAI,OAAO,EAAE,CAAC;QAC9B,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;QAChD,6DAA6D;QAC7D,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;IAED;;;;;;;;;OASG;IACO,WAAW,CAAC,GAAY;;QAChC,MAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,0CAAE,SAAS,CAAC,GAAG,CAAC,2BAA2B,EAAE;IAC9E,CAAC;IAED;;;;;OAKG;IACO,WAAW,CAAC,GAAY;;QAChC,MAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,0CAAE,SAAS,CAAC,MAAM,CAC/C,2BAA2B,EAC3B;IACJ,CAAC;IAED;;OAEG;IACH,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CASF"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IDebugger } from '../../tokens';
|
|
3
|
-
/**
|
|
4
|
-
* A React component to display the path to a source.
|
|
5
|
-
*
|
|
6
|
-
* @param {object} props The component props.
|
|
7
|
-
* @param props.model The model for the sources.
|
|
8
|
-
*/
|
|
9
|
-
export declare const SourcePathComponent: ({ model }: {
|
|
10
|
-
model: IDebugger.Model.ISources;
|
|
11
|
-
}) => JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { UseSignal } from '@jupyterlab/ui-components';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
/**
|
|
6
|
-
* A React component to display the path to a source.
|
|
7
|
-
*
|
|
8
|
-
* @param {object} props The component props.
|
|
9
|
-
* @param props.model The model for the sources.
|
|
10
|
-
*/
|
|
11
|
-
export const SourcePathComponent = ({ model }) => {
|
|
12
|
-
return (React.createElement(UseSignal, { signal: model.currentSourceChanged, initialSender: model }, (model) => {
|
|
13
|
-
var _a, _b;
|
|
14
|
-
return (React.createElement("span", { onClick: () => model === null || model === void 0 ? void 0 : model.open() }, (_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
|
-
}));
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=sourcepath.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,KAAK,EAGN,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,8BAAM,OAAO,EAAE,GAAS,EAAE,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,gBACrC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,0CAAE,IAAI,mCAAI,EAAE,CAC5B,CACR,CAAA;KAAA,CACS,CACb,CAAC;AACJ,CAAC,CAAC"}
|
package/style/accordionpanel.css
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
.lm-AccordionPanel .jp-AccordionPanel-title {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
background: #e5e5e500;
|
|
4
|
-
border-bottom: none;
|
|
5
|
-
font: 12px Helvetica, Arial, sans-serif;
|
|
6
|
-
min-height: 22px;
|
|
7
|
-
max-height: 22px;
|
|
8
|
-
min-width: 35px;
|
|
9
|
-
line-height: 25px;
|
|
10
|
-
margin: 0px;
|
|
11
|
-
display: flex;
|
|
12
|
-
background-color: var(--jp-layout-color2);
|
|
13
|
-
border-bottom: solid var(--jp-border-width) var(--jp-border-color1);
|
|
14
|
-
border-top: solid var(--jp-border-width) var(--jp-border-color1);
|
|
15
|
-
box-shadow: var(--jp-toolbar-box-shadow);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.jp-AccordionPanel-title .lm-AccordionPanel-titleCollapser {
|
|
19
|
-
transform: rotate(-90deg);
|
|
20
|
-
margin-top: 3px;
|
|
21
|
-
height: 16px;
|
|
22
|
-
}
|
|
23
|
-
/* TODO remove first selector when @lumino/widgets 1.26.3 is released */
|
|
24
|
-
.jp-AccordionPanel-title.jp-DebuggerPanel-expanded
|
|
25
|
-
.lm-AccordionPanel-titleCollapser
|
|
26
|
-
/* .jp-AccordionPanel-title.lm-mod-expanded .lm-AccordionPanel-titleCollapser */ {
|
|
27
|
-
transform: rotate(0deg);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.lm-AccordionPanel[data-orientation='horizontal'] > .jp-AccordionPanel-title {
|
|
31
|
-
/* Title is rotated for horizontal accordion panel using CSS */
|
|
32
|
-
display: block;
|
|
33
|
-
transform-origin: top left;
|
|
34
|
-
transform: rotate(-90deg) translate(-100%);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.jp-AccordionPanel-title .lm-AccordionPanel-titleLabel {
|
|
38
|
-
user-select: none;
|
|
39
|
-
line-height: 22px;
|
|
40
|
-
}
|