@datalayer/jupyter-react 0.20.0 → 0.20.2

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 (64) hide show
  1. package/lib/app/JupyterReact.d.ts +1 -1
  2. package/lib/app/JupyterReact.js +1 -1
  3. package/lib/app/JupyterReact.js.map +1 -1
  4. package/lib/app/index.d.ts +1 -0
  5. package/lib/{jupyter/lab → app}/index.js +1 -1
  6. package/lib/app/index.js.map +1 -0
  7. package/lib/components/kernel/inspector/widget.js +2 -1
  8. package/lib/components/kernel/inspector/widget.js.map +1 -1
  9. package/lib/components/notebook/BaseNotebook.js +2 -3
  10. package/lib/components/notebook/BaseNotebook.js.map +1 -1
  11. package/lib/examples/JupyterLabApp.js +0 -2
  12. package/lib/examples/JupyterLabApp.js.map +1 -1
  13. package/lib/index.d.ts +1 -0
  14. package/lib/index.js +1 -0
  15. package/lib/index.js.map +1 -1
  16. package/lib/jupyter/index.d.ts +0 -1
  17. package/lib/jupyter/index.js +0 -1
  18. package/lib/jupyter/index.js.map +1 -1
  19. package/lib/jupyter/services/ServiceManagerLess.d.ts +1 -0
  20. package/lib/jupyter/services/ServiceManagerLess.js +1 -0
  21. package/lib/jupyter/services/ServiceManagerLess.js.map +1 -1
  22. package/lib/utils/cursorExtension.d.ts +23 -0
  23. package/lib/utils/cursorExtension.js +292 -0
  24. package/lib/utils/cursorExtension.js.map +1 -0
  25. package/lib/utils/index.d.ts +1 -0
  26. package/lib/utils/index.js +1 -0
  27. package/lib/utils/index.js.map +1 -1
  28. package/package.json +29 -75
  29. package/lib/jupyter/lab/__tests__/datalayer.spec.d.ts +0 -0
  30. package/lib/jupyter/lab/__tests__/datalayer.spec.js +0 -11
  31. package/lib/jupyter/lab/__tests__/datalayer.spec.js.map +0 -1
  32. package/lib/jupyter/lab/index.d.ts +0 -1
  33. package/lib/jupyter/lab/index.js.map +0 -1
  34. package/lib/jupyter/lab/notebook/content/CountdownContentFactory.d.ts +0 -6
  35. package/lib/jupyter/lab/notebook/content/CountdownContentFactory.js +0 -17
  36. package/lib/jupyter/lab/notebook/content/CountdownContentFactory.js.map +0 -1
  37. package/lib/jupyter/lab/notebook/content/index.d.ts +0 -0
  38. package/lib/jupyter/lab/notebook/content/index.js +0 -6
  39. package/lib/jupyter/lab/notebook/content/index.js.map +0 -1
  40. package/lib/jupyter/lab/notebook/content/plugin.d.ts +0 -7
  41. package/lib/jupyter/lab/notebook/content/plugin.js +0 -24
  42. package/lib/jupyter/lab/notebook/content/plugin.js.map +0 -1
  43. package/lib/jupyter/lab/notebook/editor/history.d.ts +0 -193
  44. package/lib/jupyter/lab/notebook/editor/history.js +0 -304
  45. package/lib/jupyter/lab/notebook/editor/history.js.map +0 -1
  46. package/lib/jupyter/lab/notebook/editor/index.d.ts +0 -0
  47. package/lib/jupyter/lab/notebook/editor/index.js +0 -6
  48. package/lib/jupyter/lab/notebook/editor/index.js.map +0 -1
  49. package/lib/jupyter/lab/notebook/editor/plugin.d.ts +0 -7
  50. package/lib/jupyter/lab/notebook/editor/plugin.js +0 -62
  51. package/lib/jupyter/lab/notebook/editor/plugin.js.map +0 -1
  52. package/lib/jupyter/lab/notebook/editor/widgetfactory.d.ts +0 -96
  53. package/lib/jupyter/lab/notebook/editor/widgetfactory.js +0 -89
  54. package/lib/jupyter/lab/notebook/editor/widgetfactory.js.map +0 -1
  55. package/lib/jupyter/lab/notebook/index.d.ts +0 -0
  56. package/lib/jupyter/lab/notebook/index.js +0 -6
  57. package/lib/jupyter/lab/notebook/index.js.map +0 -1
  58. package/lib/jupyter/lab/plugin.d.ts +0 -4
  59. package/lib/jupyter/lab/plugin.js +0 -104
  60. package/lib/jupyter/lab/plugin.js.map +0 -1
  61. package/lib/jupyter/lab/widget.d.ts +0 -8
  62. package/lib/jupyter/lab/widget.js +0 -15
  63. package/lib/jupyter/lab/widget.js.map +0 -1
  64. package/schema/plugin.json +0 -52
@@ -1,96 +0,0 @@
1
- import { IEditorMimeTypeService } from '@jupyterlab/codeeditor';
2
- import { ABCWidgetFactory, DocumentRegistry } from '@jupyterlab/docregistry';
3
- import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
4
- import { ITranslator } from '@jupyterlab/translation';
5
- import { INotebookModel, NotebookPanel, StaticNotebook } from '@jupyterlab/notebook';
6
- /**
7
- * A widget factory for notebook panels.
8
- */
9
- export declare class NotebookWidgetFactory extends ABCWidgetFactory<NotebookPanel, INotebookModel> {
10
- /**
11
- * Construct a new notebook widget factory.
12
- *
13
- * @param options - The options used to construct the factory.
14
- */
15
- constructor(options: NotebookWidgetFactory.IOptions<NotebookPanel>);
16
- readonly rendermime: IRenderMimeRegistry;
17
- /**
18
- * The content factory used by the widget factory.
19
- */
20
- readonly contentFactory: NotebookPanel.IContentFactory;
21
- /**
22
- * The service used to look up mime types.
23
- */
24
- readonly mimeTypeService: IEditorMimeTypeService;
25
- /**
26
- * A configuration object for cell editor settings.
27
- */
28
- get editorConfig(): StaticNotebook.IEditorConfig;
29
- set editorConfig(value: StaticNotebook.IEditorConfig);
30
- /**
31
- * A configuration object for notebook settings.
32
- */
33
- get notebookConfig(): StaticNotebook.INotebookConfig;
34
- set notebookConfig(value: StaticNotebook.INotebookConfig);
35
- /**
36
- * Create a new widget.
37
- *
38
- * #### Notes
39
- * The factory will start the appropriate kernel.
40
- */
41
- protected createNewWidget(context: DocumentRegistry.IContext<INotebookModel>, source?: NotebookPanel): NotebookPanel;
42
- private _editorConfig;
43
- private _notebookConfig;
44
- }
45
- /**
46
- * The namespace for `NotebookWidgetFactory` statics.
47
- */
48
- export declare namespace NotebookWidgetFactory {
49
- /**
50
- * The options used to construct a `NotebookWidgetFactory`.
51
- */
52
- interface IOptions<T extends NotebookPanel> extends DocumentRegistry.IWidgetFactoryOptions<T> {
53
- rendermime: IRenderMimeRegistry;
54
- /**
55
- * A notebook panel content factory.
56
- */
57
- contentFactory: NotebookPanel.IContentFactory;
58
- /**
59
- * The service used to look up mime types.
60
- */
61
- mimeTypeService: IEditorMimeTypeService;
62
- /**
63
- * The notebook cell editor configuration.
64
- */
65
- editorConfig?: StaticNotebook.IEditorConfig;
66
- /**
67
- * The notebook configuration.
68
- */
69
- notebookConfig?: StaticNotebook.INotebookConfig;
70
- /**
71
- * The application language translator.
72
- */
73
- translator?: ITranslator;
74
- }
75
- /**
76
- * The interface for a notebook widget factory.
77
- */
78
- interface IFactory extends DocumentRegistry.IWidgetFactory<NotebookPanel, INotebookModel> {
79
- /**
80
- * Whether to automatically start the preferred kernel.
81
- */
82
- autoStartDefault: boolean;
83
- /**
84
- * A configuration object for cell editor settings.
85
- */
86
- editorConfig: StaticNotebook.IEditorConfig;
87
- /**
88
- * A configuration object for notebook settings.
89
- */
90
- notebookConfig: StaticNotebook.INotebookConfig;
91
- /**
92
- * Whether the kernel should be shutdown when the widget is closed.
93
- */
94
- shutdownOnClose: boolean;
95
- }
96
- }
@@ -1,89 +0,0 @@
1
- /*
2
- * Copyright (c) 2021-2023 Datalayer, Inc.
3
- *
4
- * MIT License
5
- */
6
- import { ABCWidgetFactory } from '@jupyterlab/docregistry';
7
- import { NotebookPanel, StaticNotebook } from '@jupyterlab/notebook';
8
- import { NotebookHistory } from './history';
9
- /**
10
- * A widget factory for notebook panels.
11
- */
12
- export class NotebookWidgetFactory extends ABCWidgetFactory {
13
- /**
14
- * Construct a new notebook widget factory.
15
- *
16
- * @param options - The options used to construct the factory.
17
- */
18
- constructor(options) {
19
- super(options);
20
- this.rendermime = options.rendermime;
21
- this.contentFactory = options.contentFactory;
22
- this.mimeTypeService = options.mimeTypeService;
23
- this._editorConfig =
24
- options.editorConfig || StaticNotebook.defaultEditorConfig;
25
- this._notebookConfig =
26
- options.notebookConfig || StaticNotebook.defaultNotebookConfig;
27
- }
28
- /*
29
- * The rendermime instance.
30
- */
31
- rendermime;
32
- /**
33
- * The content factory used by the widget factory.
34
- */
35
- contentFactory;
36
- /**
37
- * The service used to look up mime types.
38
- */
39
- mimeTypeService;
40
- /**
41
- * A configuration object for cell editor settings.
42
- */
43
- get editorConfig() {
44
- return this._editorConfig;
45
- }
46
- set editorConfig(value) {
47
- this._editorConfig = value;
48
- }
49
- /**
50
- * A configuration object for notebook settings.
51
- */
52
- get notebookConfig() {
53
- return this._notebookConfig;
54
- }
55
- set notebookConfig(value) {
56
- this._notebookConfig = value;
57
- }
58
- /**
59
- * Create a new widget.
60
- *
61
- * #### Notes
62
- * The factory will start the appropriate kernel.
63
- */
64
- createNewWidget(context, source) {
65
- const translator = context.translator;
66
- const kernelHistory = new NotebookHistory({
67
- sessionContext: context.sessionContext,
68
- translator: translator
69
- });
70
- const nbOptions = {
71
- rendermime: source
72
- ? source.content.rendermime
73
- : this.rendermime.clone({ resolver: context.urlResolver }),
74
- contentFactory: this.contentFactory,
75
- mimeTypeService: this.mimeTypeService,
76
- editorConfig: source ? source.content.editorConfig : this._editorConfig,
77
- notebookConfig: source
78
- ? source.content.notebookConfig
79
- : this._notebookConfig,
80
- translator,
81
- kernelHistory
82
- };
83
- const content = this.contentFactory.createNotebook(nbOptions);
84
- return new NotebookPanel({ context, content });
85
- }
86
- _editorConfig;
87
- _notebookConfig;
88
- }
89
- //# sourceMappingURL=widgetfactory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"widgetfactory.js","sourceRoot":"","sources":["../../../../../src/jupyter/lab/notebook/editor/widgetfactory.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,gBAAgB,EAAoB,MAAM,yBAAyB,CAAC;AAG7E,OAAO,EAAkB,aAAa,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,gBAG1C;IACC;;;;OAIG;IACH,YAAY,OAAsD;QAChE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QACrC,IAAI,CAAC,cAA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M,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa;YACvE,cAAc,EAAE,MAAM;gBACpB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc;gBAC/B,CAAC,CAAC,IAAI,CAAC,eAAe;YACxB,UAAU;YACV,aAAa;SACd,CAAC;QACF,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;QAC9D,OAAO,IAAI,aAAa,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IACjD,CAAC;IAEO,aAAa,CAA+B;IAC5C,eAAe,CAAiC;CACzD"}
File without changes
@@ -1,6 +0,0 @@
1
- /*
2
- * Copyright (c) 2021-2023 Datalayer, Inc.
3
- *
4
- * MIT License
5
- */
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/jupyter/lab/notebook/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -1,4 +0,0 @@
1
- import { JupyterFrontEndPlugin } from '@jupyterlab/application';
2
- import '../../../style/index.css';
3
- declare const _default: (JupyterFrontEndPlugin<void> | JupyterFrontEndPlugin<import("@jupyterlab/notebook").NotebookPanel.IContentFactory> | JupyterFrontEndPlugin<import("@jupyterlab/notebook").NotebookWidgetFactory.IFactory>)[];
4
- export default _default;
@@ -1,104 +0,0 @@
1
- /*
2
- * Copyright (c) 2021-2023 Datalayer, Inc.
3
- *
4
- * MIT License
5
- */
6
- import { ILayoutRestorer } from '@jupyterlab/application';
7
- import { MainAreaWidget, ICommandPalette, WidgetTracker } from '@jupyterlab/apputils';
8
- import { ILauncher } from '@jupyterlab/launcher';
9
- import { ISettingRegistry } from '@jupyterlab/settingregistry';
10
- import { ServerConnection } from '@jupyterlab/services';
11
- import icon from '@datalayer/icons-react/data2/AtomSymbolIconJupyterLab';
12
- import { requestAPI } from './../JupyterHandlers';
13
- import { JupyterReactWidget } from './widget';
14
- import { contentFactoryPlugin as notebookContentFactoryPlugin } from './notebook/content/plugin';
15
- import { widgetFactoryPlugin as notebookWidgetFactoryPlugin } from './notebook/editor/plugin';
16
- import '../../../style/index.css';
17
- /**
18
- * The command IDs used by the plugin.
19
- */
20
- var CommandIDs;
21
- (function (CommandIDs) {
22
- CommandIDs.create = 'create-jupyter-react-widget';
23
- })(CommandIDs || (CommandIDs = {}));
24
- /**
25
- * Initialization data for the @datalayer/jupyter-react extension.
26
- */
27
- const jupyterReactPlugin = {
28
- id: '@datalayer/jupyter-react:plugin',
29
- autoStart: true,
30
- requires: [ICommandPalette],
31
- optional: [ISettingRegistry, ILauncher, ILayoutRestorer],
32
- activate: (app, palette, settingRegistry, launcher, restorer) => {
33
- const { commands } = app;
34
- const command = CommandIDs.create;
35
- const tracker = new WidgetTracker({
36
- namespace: 'jupyter-react',
37
- });
38
- if (restorer) {
39
- void restorer.restore(tracker, {
40
- command,
41
- name: () => 'jupyter-react',
42
- });
43
- }
44
- commands.addCommand(command, {
45
- caption: 'Show Jupyter React',
46
- label: 'Jupyter React',
47
- icon,
48
- execute: () => {
49
- const content = new JupyterReactWidget(app);
50
- const widget = new MainAreaWidget({ content });
51
- widget.title.label = 'Jupyter React';
52
- widget.title.icon = icon;
53
- app.shell.add(widget, 'main');
54
- tracker.add(widget);
55
- },
56
- });
57
- const category = 'Datalayer';
58
- palette.addItem({ command, category, args: { origin: 'from palette' } });
59
- if (launcher) {
60
- launcher.add({
61
- command,
62
- category,
63
- rank: 2.4,
64
- });
65
- }
66
- const settingsUpdated = (settings) => {
67
- const showInLauncher = settings.get('showInLauncher')
68
- .composite;
69
- if (launcher && showInLauncher) {
70
- launcher.add({
71
- command,
72
- category,
73
- rank: 2.4,
74
- });
75
- }
76
- };
77
- if (settingRegistry) {
78
- settingRegistry
79
- .load(jupyterReactPlugin.id)
80
- .then(settings => {
81
- console.log('@datalayer/jupyter-react settings loaded:', settings.composite);
82
- settingsUpdated(settings);
83
- settings.changed.connect(settingsUpdated);
84
- })
85
- .catch(reason => {
86
- console.error('Failed to load settings for @datalayer/jupyter-react.', reason);
87
- });
88
- }
89
- requestAPI(ServerConnection.makeSettings(), 'jupyter_react', 'config')
90
- .then(data => {
91
- console.log(data);
92
- })
93
- .catch(reason => {
94
- console.error(`The Jupyter Server jupyter_react extension extension.\n${reason}`);
95
- });
96
- console.log('JupyterLab plugin @datalayer/jupyter-react is activated.');
97
- },
98
- };
99
- export default [
100
- jupyterReactPlugin,
101
- notebookContentFactoryPlugin,
102
- notebookWidgetFactoryPlugin,
103
- ];
104
- //# sourceMappingURL=plugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/jupyter/lab/plugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAA0C,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,IAAI,MAAM,uDAAuD,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,oBAAoB,IAAI,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AACjG,OAAO,EAAE,mBAAmB,IAAI,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAE9F,OAAO,0BAA0B,CAAC;AAElC;;GAEG;AACH,IAAU,UAAU,CAEnB;AAFD,WAAU,UAAU;IACL,iBAAM,GAAG,6BAA6B,CAAC;AACtD,CAAC,EAFS,UAAU,KAAV,UAAU,QAEnB;AAED;;G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,CAAC,CAAC;QACL,OAAO,CAAC,GAAG,CAAC,0DAA0D,CAAC,CAAC;IAC1E,CAAC;CACF,CAAC;AAEF,eAAe;IACb,kBAAkB;IAClB,4BAA4B;IAC5B,2BAA2B;CAC5B,CAAC"}
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { JupyterFrontEnd } from '@jupyterlab/application';
3
- import { ReactWidget } from '@jupyterlab/apputils';
4
- export declare class JupyterReactWidget extends ReactWidget {
5
- private _app;
6
- constructor(app: JupyterFrontEnd);
7
- render(): JSX.Element;
8
- }
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ReactWidget } from '@jupyterlab/apputils';
3
- import JupyterReact from '../../app/JupyterReact';
4
- export class JupyterReactWidget extends ReactWidget {
5
- _app;
6
- constructor(app) {
7
- super();
8
- this._app = app;
9
- this.addClass('dla-Container');
10
- }
11
- render() {
12
- return _jsx(JupyterReact, { app: this._app });
13
- }
14
- }
15
- //# sourceMappingURL=widget.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"widget.js","sourceRoot":"","sources":["../../../src/jupyter/lab/widget.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACzC,IAAI,CAAkB;IAE9B,YAAY,GAAoB;QAC9B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC;IAED,MAAM;QACJ,OAAO,KAAC,YAAY,IAAC,GAAG,EAAE,IAAI,CAAC,IAAI,GAAI,CAAC;IAC1C,CAAC;CACF"}
@@ -1,52 +0,0 @@
1
- {
2
- "title": "Jupyter React",
3
- "description": "Jupyter React settings.",
4
- "type": "object",
5
- "properties": {
6
- "showInLauncher": {
7
- "title": "Show Jupyter React in the launcher",
8
- "description": "Show Jupyter React in the launcher",
9
- "default": false,
10
- "type": "boolean"
11
- }
12
- },
13
- "additionalProperties": false,
14
- "_jupyter.lab.toolbars": {
15
- "Cell": [
16
- {
17
- "name": "run",
18
- "icon": "ui-components:react",
19
- "command": "runmenu:run"
20
- }
21
- ],
22
- "Notebook": [
23
- {
24
- "name": "run",
25
- "icon": "ui-components:react",
26
- "command": "runmenu:run"
27
- }
28
- ]
29
- },
30
- "_jupyter.lab.shortcuts": [
31
- {
32
- "command": "my-command",
33
- "keys": ["Accel T"],
34
- "selector": ".jp-mod-searchable"
35
- }
36
- ],
37
- "_jupyter.lab.menus": {
38
- "main": [
39
- {
40
- "id": "jp-mainmenu-myextension",
41
- "label": "My Menu",
42
- "items": [
43
- {
44
- "command": "my-command",
45
- "rank": 500
46
- }
47
- ],
48
- "rank": 100
49
- }
50
- ]
51
- }
52
- }