@jupyterlab/debugger 3.3.0-alpha.9 → 4.0.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.
Files changed (70) hide show
  1. package/lib/handler.js +7 -3
  2. package/lib/handler.js.map +1 -1
  3. package/lib/handlers/editor.d.ts +4 -0
  4. package/lib/handlers/editor.js +6 -0
  5. package/lib/handlers/editor.js.map +1 -1
  6. package/lib/handlers/file.js.map +1 -1
  7. package/lib/handlers/notebook.js +7 -1
  8. package/lib/handlers/notebook.js.map +1 -1
  9. package/lib/panels/breakpoints/body.d.ts +0 -1
  10. package/lib/panels/breakpoints/body.js.map +1 -1
  11. package/lib/panels/breakpoints/index.d.ts +2 -1
  12. package/lib/panels/breakpoints/index.js +7 -10
  13. package/lib/panels/breakpoints/index.js.map +1 -1
  14. package/lib/panels/breakpoints/model.js.map +1 -1
  15. package/lib/panels/callstack/body.d.ts +0 -1
  16. package/lib/panels/callstack/body.js.map +1 -1
  17. package/lib/panels/callstack/index.d.ts +2 -1
  18. package/lib/panels/callstack/index.js +24 -20
  19. package/lib/panels/callstack/index.js.map +1 -1
  20. package/lib/panels/sources/body.js.map +1 -1
  21. package/lib/panels/sources/index.d.ts +2 -2
  22. package/lib/panels/sources/index.js +14 -9
  23. package/lib/panels/sources/index.js.map +1 -1
  24. package/lib/panels/sources/sourcepath.d.ts +10 -0
  25. package/lib/panels/sources/sourcepath.js +17 -0
  26. package/lib/panels/sources/sourcepath.js.map +1 -0
  27. package/lib/panels/variables/grid.d.ts +0 -4
  28. package/lib/panels/variables/grid.js +4 -16
  29. package/lib/panels/variables/grid.js.map +1 -1
  30. package/lib/panels/variables/index.d.ts +2 -10
  31. package/lib/panels/variables/index.js +10 -26
  32. package/lib/panels/variables/index.js.map +1 -1
  33. package/lib/panels/variables/mimerenderer.d.ts +15 -2
  34. package/lib/panels/variables/mimerenderer.js +48 -17
  35. package/lib/panels/variables/mimerenderer.js.map +1 -1
  36. package/lib/panels/variables/model.d.ts +3 -0
  37. package/lib/panels/variables/model.js +7 -0
  38. package/lib/panels/variables/model.js.map +1 -1
  39. package/lib/panels/variables/scope.d.ts +0 -1
  40. package/lib/panels/variables/tree.d.ts +1 -6
  41. package/lib/panels/variables/tree.js +11 -10
  42. package/lib/panels/variables/tree.js.map +1 -1
  43. package/lib/service.d.ts +1 -1
  44. package/lib/service.js.map +1 -1
  45. package/lib/session.js.map +1 -1
  46. package/lib/sidebar.d.ts +3 -40
  47. package/lib/sidebar.js +13 -60
  48. package/lib/sidebar.js.map +1 -1
  49. package/lib/sources.js.map +1 -1
  50. package/lib/tokens.d.ts +14 -34
  51. package/lib/tokens.js.map +1 -1
  52. package/package.json +29 -29
  53. package/style/breakpoints.css +2 -0
  54. package/style/callstack.css +2 -0
  55. package/style/icons.css +7 -7
  56. package/style/sidebar.css +5 -52
  57. package/style/sources.css +6 -1
  58. package/style/variables.css +16 -4
  59. package/lib/panels/breakpoints/header.d.ts +0 -16
  60. package/lib/panels/breakpoints/header.js +0 -30
  61. package/lib/panels/breakpoints/header.js.map +0 -1
  62. package/lib/panels/callstack/header.d.ts +0 -16
  63. package/lib/panels/callstack/header.js +0 -30
  64. package/lib/panels/callstack/header.js.map +0 -1
  65. package/lib/panels/sources/header.d.ts +0 -19
  66. package/lib/panels/sources/header.js +0 -48
  67. package/lib/panels/sources/header.js.map +0 -1
  68. package/lib/panels/variables/header.d.ts +0 -16
  69. package/lib/panels/variables/header.js +0 -30
  70. package/lib/panels/variables/header.js.map +0 -1
@@ -1,30 +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 { PanelLayout, Widget } from '@lumino/widgets';
6
- /**
7
- * The header for a Callstack Panel.
8
- */
9
- export class CallstackHeader extends Widget {
10
- /**
11
- * Instantiate a new CallstackHeader.
12
- */
13
- constructor(translator) {
14
- super({ node: document.createElement('div') });
15
- /**
16
- * The toolbar for the callstack header.
17
- */
18
- this.toolbar = new Toolbar();
19
- this.node.classList.add('jp-stack-panel-header');
20
- translator = translator || nullTranslator;
21
- const trans = translator.load('jupyterlab');
22
- const title = new Widget({ node: document.createElement('h2') });
23
- title.node.textContent = trans.__('Callstack');
24
- const layout = new PanelLayout();
25
- layout.addWidget(title);
26
- layout.addWidget(this.toolbar);
27
- this.layout = layout;
28
- }
29
- }
30
- //# sourceMappingURL=header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/callstack/header.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,MAAM;IACzC;;OAEG;IACH,YAAY,UAAwB;QAClC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAejD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAjB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QAE/C,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAMF"}
@@ -1,19 +0,0 @@
1
- import { ITranslator } from '@jupyterlab/translation';
2
- import { Toolbar } from '@jupyterlab/ui-components';
3
- import { Widget } from '@lumino/widgets';
4
- import { IDebugger } from '../../tokens';
5
- /**
6
- * The header for a Source Panel.
7
- */
8
- export declare class SourcesHeader extends Widget {
9
- /**
10
- * Instantiate a new SourcesHeader.
11
- *
12
- * @param model The model for the Sources.
13
- */
14
- constructor(model: IDebugger.Model.ISources, translator?: ITranslator);
15
- /**
16
- * The toolbar for the sources header.
17
- */
18
- readonly toolbar: Toolbar<Widget>;
19
- }
@@ -1,48 +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 { ReactWidget, Toolbar, UseSignal } from '@jupyterlab/ui-components';
5
- import { PanelLayout, Widget } from '@lumino/widgets';
6
- import React from 'react';
7
- /**
8
- * The header for a Source Panel.
9
- */
10
- export class SourcesHeader extends Widget {
11
- /**
12
- * Instantiate a new SourcesHeader.
13
- *
14
- * @param model The model for the Sources.
15
- */
16
- constructor(model, translator) {
17
- super({ node: document.createElement('div') });
18
- /**
19
- * The toolbar for the sources header.
20
- */
21
- this.toolbar = new Toolbar();
22
- this.node.classList.add('jp-stack-panel-header');
23
- translator = translator || nullTranslator;
24
- const trans = translator.load('jupyterlab');
25
- const layout = new PanelLayout();
26
- this.layout = layout;
27
- const title = new Widget({ node: document.createElement('h2') });
28
- title.node.textContent = trans.__('Source');
29
- const sourcePath = ReactWidget.create(React.createElement(SourcePathComponent, { model: model }));
30
- layout.addWidget(title);
31
- layout.addWidget(this.toolbar);
32
- layout.addWidget(sourcePath);
33
- this.addClass('jp-DebuggerSources-header');
34
- }
35
- }
36
- /**
37
- * A React component to display the path to a source.
38
- *
39
- * @param {object} props The component props.
40
- * @param props.model The model for the sources.
41
- */
42
- const SourcePathComponent = ({ model }) => {
43
- return (React.createElement(UseSignal, { signal: model.currentSourceChanged, initialSender: model }, (model) => {
44
- var _a, _b;
45
- 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 : ''));
46
- }));
47
- };
48
- //# sourceMappingURL=header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/sources/header.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,MAAM;IACvC;;;;OAIG;IACH,YAAY,KAA+B,EAAE,UAAwB;QACnE,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAuBjD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAzB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;QAE5C,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CACnC,oBAAC,mBAAmB,IAAC,KAAK,EAAE,KAAK,GAAI,CACtC,CAAC;QAEF,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAE7B,IAAI,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC;IAC7C,CAAC;CAMF;AAED;;;;;GAKG;AACH,MAAM,mBAAmB,GAAG,CAAC,EAC3B,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"}
@@ -1,16 +0,0 @@
1
- import { ITranslator } from '@jupyterlab/translation';
2
- import { Toolbar } from '@jupyterlab/ui-components';
3
- import { Widget } from '@lumino/widgets';
4
- /**
5
- * The header for a Variables Panel.
6
- */
7
- export declare class VariablesHeader extends Widget {
8
- /**
9
- * Instantiate a new VariablesHeader.
10
- */
11
- constructor(translator?: ITranslator);
12
- /**
13
- * The toolbar for the callstack header.
14
- */
15
- readonly toolbar: Toolbar<Widget>;
16
- }
@@ -1,30 +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 { PanelLayout, Widget } from '@lumino/widgets';
6
- /**
7
- * The header for a Variables Panel.
8
- */
9
- export class VariablesHeader extends Widget {
10
- /**
11
- * Instantiate a new VariablesHeader.
12
- */
13
- constructor(translator) {
14
- super({ node: document.createElement('div') });
15
- /**
16
- * The toolbar for the callstack header.
17
- */
18
- this.toolbar = new Toolbar();
19
- this.node.classList.add('jp-stack-panel-header');
20
- translator = translator || nullTranslator;
21
- const trans = translator.load('jupyterlab');
22
- const title = new Widget({ node: document.createElement('h2') });
23
- title.node.textContent = trans.__('Variables');
24
- const layout = new PanelLayout();
25
- layout.addWidget(title);
26
- layout.addWidget(this.toolbar);
27
- this.layout = layout;
28
- }
29
- }
30
- //# sourceMappingURL=header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/variables/header.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,MAAM;IACzC;;OAEG;IACH,YAAY,UAAwB;QAClC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAejD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAjB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QAE/C,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAMF"}