@difizen/libro-jupyter 0.3.4 → 1.0.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/es/add-between-cell/add-between-cell-command-contribution.d.ts +2 -2
- package/es/add-between-cell/add-between-cell-command-contribution.d.ts.map +1 -1
- package/es/add-between-cell/add-between-cell-command-contribution.js +1 -1
- package/es/add-between-cell/add-between-cell.js +2 -2
- package/es/add-between-cell/module.d.ts +1 -1
- package/es/add-between-cell/module.d.ts.map +1 -1
- package/es/add-between-cell/module.js +1 -1
- package/es/cell/jupyter-code-cell-model.d.ts +1 -1
- package/es/cell/jupyter-code-cell-model.d.ts.map +1 -1
- package/es/cell/jupyter-code-cell-model.js +2 -2
- package/es/cell/jupyter-code-cell-view.js +4 -4
- package/es/command/command-contribution.d.ts +2 -2
- package/es/command/command-contribution.d.ts.map +1 -1
- package/es/command/command-contribution.js +1 -1
- package/es/command/keybinding-contribution.d.ts +1 -1
- package/es/command/keybinding-contribution.d.ts.map +1 -1
- package/es/command/keybinding-contribution.js +1 -1
- package/es/components/cell-execution-tip.js +2 -2
- package/es/components/cell-input-bottom-blank.js +1 -1
- package/es/components/cell-output-bottom-blank.js +1 -1
- package/es/components/icons.d.ts +1 -1
- package/es/components/icons.d.ts.map +1 -1
- package/es/components/icons.js +1 -1
- package/es/config/config-contribution.d.ts +3 -3
- package/es/config/config-contribution.d.ts.map +1 -1
- package/es/config/config-contribution.js +3 -3
- package/es/config/config.d.ts +1 -1
- package/es/config/config.d.ts.map +1 -1
- package/es/config/config.js +1 -1
- package/es/contents/content-contribution.js +2 -2
- package/es/contents/save-content-contribution.d.ts +1 -1
- package/es/contents/save-content-contribution.d.ts.map +1 -1
- package/es/contents/save-content-contribution.js +1 -1
- package/es/file/file-color-registry.d.ts +2 -2
- package/es/file/file-color-registry.d.ts.map +1 -1
- package/es/file/file-color-registry.js +2 -2
- package/es/file/file-command.d.ts +3 -3
- package/es/file/file-command.d.ts.map +1 -1
- package/es/file/file-command.js +3 -3
- package/es/file/file-create-modal-contribution.d.ts +2 -2
- package/es/file/file-create-modal-contribution.d.ts.map +1 -1
- package/es/file/file-create-modal-contribution.js +1 -1
- package/es/file/file-create-modal.d.ts +1 -1
- package/es/file/file-create-modal.d.ts.map +1 -1
- package/es/file/file-create-modal.js +4 -4
- package/es/file/file-createdir-modal-contribution.d.ts +2 -2
- package/es/file/file-createdir-modal-contribution.d.ts.map +1 -1
- package/es/file/file-createdir-modal-contribution.js +1 -1
- package/es/file/file-createdir-modal.d.ts +1 -1
- package/es/file/file-createdir-modal.d.ts.map +1 -1
- package/es/file/file-createdir-modal.js +5 -5
- package/es/file/file-name-alias.d.ts +1 -1
- package/es/file/file-name-alias.d.ts.map +1 -1
- package/es/file/file-name-alias.js +1 -1
- package/es/file/file-rename-modal-contribution.d.ts +2 -2
- package/es/file/file-rename-modal-contribution.d.ts.map +1 -1
- package/es/file/file-rename-modal-contribution.js +1 -1
- package/es/file/file-rename-modal.d.ts +1 -1
- package/es/file/file-rename-modal.d.ts.map +1 -1
- package/es/file/file-rename-modal.js +2 -2
- package/es/file/file-service.d.ts +3 -3
- package/es/file/file-service.d.ts.map +1 -1
- package/es/file/file-service.js +3 -3
- package/es/file/file-tree-label-provider.d.ts +2 -2
- package/es/file/file-tree-label-provider.d.ts.map +1 -1
- package/es/file/file-tree-label-provider.js +1 -1
- package/es/file/file-view/index.d.ts +2 -2
- package/es/file/file-view/index.d.ts.map +1 -1
- package/es/file/file-view/index.js +3 -3
- package/es/file/module.d.ts +1 -1
- package/es/file/module.d.ts.map +1 -1
- package/es/file/module.js +1 -1
- package/es/file/navigatable-view.d.ts +5 -5
- package/es/file/navigatable-view.d.ts.map +1 -1
- package/es/file/navigatable-view.js +3 -3
- package/es/file/open-handler-contribution.d.ts +3 -3
- package/es/file/open-handler-contribution.d.ts.map +1 -1
- package/es/file/open-handler-contribution.js +2 -2
- package/es/file/utils.js +1 -1
- package/es/index.d.ts +73 -0
- package/es/index.d.ts.map +1 -1
- package/es/index.js +12 -1
- package/es/keybind-instructions/keybind-instructions-contribution.d.ts +4 -4
- package/es/keybind-instructions/keybind-instructions-contribution.d.ts.map +1 -1
- package/es/keybind-instructions/keybind-instructions-contribution.js +4 -4
- package/es/keybind-instructions/keybind-instructions-icon.js +1 -1
- package/es/keybind-instructions/keybind-instructions-items.js +2 -2
- package/es/keybind-instructions/keybind-instructions-view.d.ts +2 -2
- package/es/keybind-instructions/keybind-instructions-view.d.ts.map +1 -1
- package/es/keybind-instructions/keybind-instructions-view.js +3 -3
- package/es/keybind-instructions/module.d.ts +1 -1
- package/es/keybind-instructions/module.d.ts.map +1 -1
- package/es/keybind-instructions/module.js +1 -1
- package/es/libro-jupyter-file-service.d.ts +3 -3
- package/es/libro-jupyter-file-service.d.ts.map +1 -1
- package/es/libro-jupyter-file-service.js +2 -2
- package/es/libro-jupyter-model.d.ts +2 -2
- package/es/libro-jupyter-model.d.ts.map +1 -1
- package/es/libro-jupyter-model.js +4 -4
- package/es/libro-jupyter-protocol.d.ts +1 -1
- package/es/libro-jupyter-protocol.d.ts.map +1 -1
- package/es/libro-jupyter-server-launch-manager.js +1 -1
- package/es/libro-jupyter-view.d.ts +1 -1
- package/es/libro-jupyter-view.d.ts.map +1 -1
- package/es/libro-jupyter-view.js +2 -2
- package/es/libro-jupyter-workspace.d.ts +2 -2
- package/es/libro-jupyter-workspace.d.ts.map +1 -1
- package/es/libro-jupyter-workspace.js +3 -3
- package/es/module-noeditor.d.ts +1 -1
- package/es/module-noeditor.d.ts.map +1 -1
- package/es/module-noeditor.js +1 -1
- package/es/module.d.ts +1 -1
- package/es/module.d.ts.map +1 -1
- package/es/module.js +1 -1
- package/es/output/libro-jupyter-outputarea.js +1 -1
- package/es/rendermime/module.d.ts +1 -1
- package/es/rendermime/module.d.ts.map +1 -1
- package/es/rendermime/module.js +1 -1
- package/es/rendermime/plotly-render.js +1 -1
- package/es/rendermime/plotly-rendermime-contribution.js +1 -1
- package/es/theme/color-registry.d.ts +2 -2
- package/es/theme/color-registry.d.ts.map +1 -1
- package/es/theme/color-registry.js +2 -2
- package/es/toolbar/kernel-selector-dropdown.d.ts.map +1 -1
- package/es/toolbar/kernel-selector-dropdown.js +2 -2
- package/es/toolbar/kernel-status-and-selector.js +2 -2
- package/es/toolbar/run-selector.js +2 -2
- package/es/toolbar/save-file-error-contribution.d.ts +2 -2
- package/es/toolbar/save-file-error-contribution.d.ts.map +1 -1
- package/es/toolbar/save-file-error-contribution.js +1 -1
- package/es/toolbar/save-file-error.d.ts +1 -1
- package/es/toolbar/save-file-error.d.ts.map +1 -1
- package/es/toolbar/save-file-error.js +2 -2
- package/es/toolbar/side-toolbar-run-selector.d.ts.map +1 -1
- package/es/toolbar/side-toolbar-run-selector.js +2 -2
- package/es/toolbar/toolbar-contribution.d.ts +2 -2
- package/es/toolbar/toolbar-contribution.d.ts.map +1 -1
- package/es/toolbar/toolbar-contribution.js +4 -4
- package/es/utils/index.js +1 -1
- package/es/widget/box/contribution.d.ts +1 -1
- package/es/widget/box/contribution.d.ts.map +1 -1
- package/es/widget/box/contribution.js +1 -1
- package/es/widget/box/view.js +1 -1
- package/es/widget/comm.js +1 -1
- package/es/widget/instance-progress/contribution.d.ts +1 -1
- package/es/widget/instance-progress/contribution.d.ts.map +1 -1
- package/es/widget/instance-progress/contribution.js +1 -1
- package/es/widget/instance-progress/view.js +1 -1
- package/es/widget/libro-widgets.d.ts +3 -3
- package/es/widget/libro-widgets.d.ts.map +1 -1
- package/es/widget/libro-widgets.js +2 -2
- package/es/widget/module.d.ts +1 -1
- package/es/widget/module.d.ts.map +1 -1
- package/es/widget/module.js +1 -1
- package/es/widget/progress/contribution.d.ts +1 -1
- package/es/widget/progress/contribution.d.ts.map +1 -1
- package/es/widget/progress/contribution.js +1 -1
- package/es/widget/progress/view.js +1 -1
- package/es/widget/protocol.d.ts +1 -1
- package/es/widget/protocol.d.ts.map +1 -1
- package/es/widget/protocol.js +1 -1
- package/es/widget/widget-manager.d.ts +1 -1
- package/es/widget/widget-manager.d.ts.map +1 -1
- package/es/widget/widget-manager.js +1 -1
- package/es/widget/widget-render.js +1 -1
- package/es/widget/widget-rendermime-contribution.js +1 -1
- package/es/widget/widget-view-contribution.d.ts +1 -1
- package/es/widget/widget-view-contribution.d.ts.map +1 -1
- package/es/widget/widget-view-contribution.js +1 -1
- package/es/widget/widget-view.d.ts +2 -2
- package/es/widget/widget-view.d.ts.map +1 -1
- package/es/widget/widget-view.js +1 -1
- package/package.json +17 -19
- package/src/add-between-cell/add-between-cell-command-contribution.ts +2 -2
- package/src/add-between-cell/add-between-cell.tsx +2 -2
- package/src/add-between-cell/module.ts +1 -1
- package/src/cell/jupyter-code-cell-model.ts +2 -2
- package/src/cell/jupyter-code-cell-view.tsx +4 -4
- package/src/command/command-contribution.ts +2 -2
- package/src/command/keybinding-contribution.ts +1 -1
- package/src/components/cell-execution-tip.tsx +2 -2
- package/src/components/cell-input-bottom-blank.tsx +1 -1
- package/src/components/cell-output-bottom-blank.tsx +1 -1
- package/src/components/icons.tsx +1 -1
- package/src/config/config-contribution.ts +6 -3
- package/src/config/config.ts +2 -2
- package/src/contents/content-contribution.ts +2 -2
- package/src/contents/save-content-contribution.ts +1 -1
- package/src/file/file-color-registry.ts +3 -3
- package/src/file/file-command.tsx +4 -4
- package/src/file/file-create-modal-contribution.ts +1 -1
- package/src/file/file-create-modal.tsx +5 -5
- package/src/file/file-createdir-modal-contribution.ts +1 -1
- package/src/file/file-createdir-modal.tsx +6 -6
- package/src/file/file-name-alias.ts +2 -2
- package/src/file/file-rename-modal-contribution.ts +1 -1
- package/src/file/file-rename-modal.tsx +3 -3
- package/src/file/file-service.ts +4 -4
- package/src/file/file-tree-label-provider.ts +2 -2
- package/src/file/file-view/index.tsx +4 -4
- package/src/file/module.ts +1 -1
- package/src/file/navigatable-view.tsx +4 -4
- package/src/file/open-handler-contribution.ts +3 -3
- package/src/file/utils.ts +1 -1
- package/src/index.ts +10 -0
- package/src/keybind-instructions/keybind-instructions-contribution.tsx +5 -5
- package/src/keybind-instructions/keybind-instructions-icon.tsx +1 -1
- package/src/keybind-instructions/keybind-instructions-items.tsx +2 -2
- package/src/keybind-instructions/keybind-instructions-view.tsx +5 -5
- package/src/keybind-instructions/module.ts +1 -1
- package/src/libro-jupyter-file-service.ts +4 -4
- package/src/libro-jupyter-model.ts +4 -4
- package/src/libro-jupyter-protocol.ts +1 -1
- package/src/libro-jupyter-server-launch-manager.ts +1 -1
- package/src/libro-jupyter-view.tsx +2 -2
- package/src/libro-jupyter-workspace.ts +3 -3
- package/src/module-noeditor.ts +1 -1
- package/src/module.ts +1 -1
- package/src/output/libro-jupyter-outputarea.tsx +1 -1
- package/src/rendermime/module.ts +1 -1
- package/src/rendermime/plotly-render.tsx +1 -1
- package/src/rendermime/plotly-rendermime-contribution.ts +1 -1
- package/src/theme/color-registry.ts +3 -3
- package/src/toolbar/kernel-selector-dropdown.tsx +6 -2
- package/src/toolbar/kernel-status-and-selector.tsx +2 -2
- package/src/toolbar/run-selector.tsx +3 -3
- package/src/toolbar/save-file-error-contribution.ts +1 -1
- package/src/toolbar/save-file-error.tsx +3 -3
- package/src/toolbar/side-toolbar-run-selector.tsx +6 -2
- package/src/toolbar/toolbar-contribution.tsx +5 -5
- package/src/utils/index.ts +1 -1
- package/src/widget/box/contribution.ts +1 -1
- package/src/widget/box/view.tsx +1 -1
- package/src/widget/comm.ts +1 -1
- package/src/widget/instance-progress/contribution.ts +1 -1
- package/src/widget/instance-progress/view.tsx +1 -1
- package/src/widget/libro-widgets.ts +3 -3
- package/src/widget/module.ts +1 -1
- package/src/widget/progress/contribution.ts +1 -1
- package/src/widget/progress/view.tsx +1 -1
- package/src/widget/protocol.ts +1 -1
- package/src/widget/widget-manager.ts +6 -1
- package/src/widget/widget-render.tsx +1 -1
- package/src/widget/widget-rendermime-contribution.ts +1 -1
- package/src/widget/widget-view-contribution.ts +1 -1
- package/src/widget/widget-view.tsx +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { INotebookContent } from '@difizen/libro-common';
|
|
2
2
|
import type { IContentsModel } from '@difizen/libro-kernel';
|
|
3
3
|
import { ServerManager, ContentsManager } from '@difizen/libro-kernel';
|
|
4
|
-
import { Emitter } from '@difizen/
|
|
5
|
-
import { inject, singleton } from '@difizen/
|
|
6
|
-
import type { URI } from '@difizen/
|
|
7
|
-
import type { Event as ManaEvent } from '@difizen/
|
|
4
|
+
import { Emitter } from '@difizen/libro-common/app';
|
|
5
|
+
import { inject, singleton } from '@difizen/libro-common/app';
|
|
6
|
+
import type { URI } from '@difizen/libro-common/app';
|
|
7
|
+
import type { Event as ManaEvent } from '@difizen/libro-common/app';
|
|
8
8
|
|
|
9
9
|
import { LibroFileService } from './libro-jupyter-protocol.js';
|
|
10
10
|
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from '@difizen/libro-kernel';
|
|
11
11
|
import type { IKernelConnection, ExecutableNotebookModel } from '@difizen/libro-kernel';
|
|
12
12
|
import type { IContentsCheckpointModel, IContentsModel } from '@difizen/libro-kernel';
|
|
13
|
-
import { getOrigin, ModalService, prop } from '@difizen/
|
|
14
|
-
import { Deferred } from '@difizen/
|
|
15
|
-
import { inject, transient } from '@difizen/
|
|
16
|
-
import { l10n } from '@difizen/
|
|
13
|
+
import { getOrigin, ModalService, prop } from '@difizen/libro-common/app';
|
|
14
|
+
import { Deferred } from '@difizen/libro-common/app';
|
|
15
|
+
import { inject, transient } from '@difizen/libro-common/app';
|
|
16
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
17
17
|
|
|
18
18
|
import {
|
|
19
19
|
ExecutedWithKernelCellModel,
|
|
@@ -7,7 +7,7 @@ import type {
|
|
|
7
7
|
} from '@difizen/libro-common';
|
|
8
8
|
import { ExecutableCellModel } from '@difizen/libro-core';
|
|
9
9
|
import type { IContentsModel } from '@difizen/libro-kernel';
|
|
10
|
-
import type { Event as ManaEvent, Emitter } from '@difizen/
|
|
10
|
+
import type { Event as ManaEvent, Emitter } from '@difizen/libro-common/app';
|
|
11
11
|
|
|
12
12
|
export interface ExecutionMeta extends PartialJSONObject {
|
|
13
13
|
'shell.execute_reply.started': string; // Kernel 开始执行任务时间在 metadata 中的 key
|
|
@@ -2,8 +2,8 @@ import type { NotebookOption } from '@difizen/libro-core';
|
|
|
2
2
|
import { VirtualizedManagerHelper } from '@difizen/libro-core';
|
|
3
3
|
import { CollapseServiceFactory, NotebookService } from '@difizen/libro-core';
|
|
4
4
|
import { LibroView, notebookViewFactoryId } from '@difizen/libro-core';
|
|
5
|
-
import { URI, view, ViewOption } from '@difizen/
|
|
6
|
-
import { inject, transient } from '@difizen/
|
|
5
|
+
import { URI, view, ViewOption } from '@difizen/libro-common/app';
|
|
6
|
+
import { inject, transient } from '@difizen/libro-common/app';
|
|
7
7
|
|
|
8
8
|
import type { LibroJupyterModel } from './libro-jupyter-model.js';
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { URL } from '@difizen/libro-common';
|
|
2
2
|
import { BaseWorkspaceService, ILibroWorkspaceService } from '@difizen/libro-core';
|
|
3
3
|
import { ServerConnection, ServerManager } from '@difizen/libro-kernel';
|
|
4
|
-
import { ApplicationContribution } from '@difizen/
|
|
5
|
-
import { URI } from '@difizen/
|
|
6
|
-
import { inject, singleton } from '@difizen/
|
|
4
|
+
import { ApplicationContribution } from '@difizen/libro-common/app';
|
|
5
|
+
import { URI } from '@difizen/libro-common/app';
|
|
6
|
+
import { inject, singleton } from '@difizen/libro-common/app';
|
|
7
7
|
|
|
8
8
|
interface JupyterWorkspaceData {
|
|
9
9
|
rootUri: string;
|
package/src/module-noeditor.ts
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import { RawCellModule } from '@difizen/libro-raw-cell';
|
|
23
23
|
import { LibroSearchModule } from '@difizen/libro-search';
|
|
24
24
|
import { SearchCodeCellModule } from '@difizen/libro-search-code-cell';
|
|
25
|
-
import { ManaModule } from '@difizen/
|
|
25
|
+
import { ManaModule } from '@difizen/libro-common/app';
|
|
26
26
|
|
|
27
27
|
import { LibroBetweenCellModule } from './add-between-cell/index.js';
|
|
28
28
|
import { JupyterCodeCellModel, JupyterCodeCellView } from './cell/index.js';
|
package/src/module.ts
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import { RawCellModule } from '@difizen/libro-raw-cell';
|
|
26
26
|
import { LibroSearchModule } from '@difizen/libro-search';
|
|
27
27
|
import { SearchCodeCellModule } from '@difizen/libro-search-code-cell';
|
|
28
|
-
import { ManaModule } from '@difizen/
|
|
28
|
+
import { ManaModule } from '@difizen/libro-common/app';
|
|
29
29
|
|
|
30
30
|
import { LibroBetweenCellModule } from './add-between-cell/index.js';
|
|
31
31
|
import { JupyterCodeCellModel, JupyterCodeCellView } from './cell/index.js';
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
isStreamMsg,
|
|
16
16
|
isUpdateDisplayDataMsg,
|
|
17
17
|
} from '@difizen/libro-kernel';
|
|
18
|
-
import { inject, transient, view, ViewOption } from '@difizen/
|
|
18
|
+
import { inject, transient, view, ViewOption } from '@difizen/libro-common/app';
|
|
19
19
|
|
|
20
20
|
@transient()
|
|
21
21
|
@view('libro-output-area')
|
package/src/rendermime/module.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseOutputView } from '@difizen/libro-core';
|
|
2
2
|
import type { IRenderMimeRegistry } from '@difizen/libro-rendermime';
|
|
3
3
|
import { RenderMimeRegistry } from '@difizen/libro-rendermime';
|
|
4
|
-
import { useInject } from '@difizen/
|
|
4
|
+
import { useInject } from '@difizen/libro-common/app';
|
|
5
5
|
import { useEffect, useRef } from 'react';
|
|
6
6
|
import type { FC } from 'react';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ColorRegistry } from '@difizen/
|
|
2
|
-
import { Color, ColorContribution } from '@difizen/
|
|
3
|
-
import { singleton } from '@difizen/
|
|
1
|
+
import type { ColorRegistry } from '@difizen/libro-common/app';
|
|
2
|
+
import { Color, ColorContribution } from '@difizen/libro-common/app';
|
|
3
|
+
import { singleton } from '@difizen/libro-common/app';
|
|
4
4
|
|
|
5
5
|
@singleton({ contrib: ColorContribution })
|
|
6
6
|
export class LibroJupyterColorContribution implements ColorContribution {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { CaretDownOutlined } from '@ant-design/icons';
|
|
2
2
|
import type { LibroView } from '@difizen/libro-core';
|
|
3
3
|
import { LibroKernelConnectionManager, KernelSpecManager } from '@difizen/libro-kernel';
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import {
|
|
5
|
+
ConfigurationService,
|
|
6
|
+
useInject,
|
|
7
|
+
ViewInstance,
|
|
8
|
+
} from '@difizen/libro-common/app';
|
|
9
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
6
10
|
import { Dropdown, Space } from 'antd';
|
|
7
11
|
import type { MenuProps } from 'antd';
|
|
8
12
|
import { useCallback, useEffect, useState } from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LoadingOutlined, StopOutlined } from '@ant-design/icons';
|
|
2
2
|
import type { LibroView } from '@difizen/libro-core';
|
|
3
3
|
import { ServerManager } from '@difizen/libro-kernel';
|
|
4
|
-
import { useInject, ViewInstance } from '@difizen/
|
|
5
|
-
import { l10n } from '@difizen/
|
|
4
|
+
import { useInject, ViewInstance } from '@difizen/libro-common/app';
|
|
5
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
6
6
|
import { Badge } from 'antd';
|
|
7
7
|
|
|
8
8
|
import type { LibroJupyterModel } from '../libro-jupyter-model.js';
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
CommandRegistry,
|
|
10
10
|
ViewInstance,
|
|
11
11
|
ConfigurationService,
|
|
12
|
-
} from '@difizen/
|
|
13
|
-
import type { Toolbar } from '@difizen/
|
|
14
|
-
import { l10n } from '@difizen/
|
|
12
|
+
} from '@difizen/libro-common/app';
|
|
13
|
+
import type { Toolbar } from '@difizen/libro-common/app';
|
|
14
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
15
15
|
import { Menu, Dropdown, Tooltip } from 'antd';
|
|
16
16
|
import type { MenuProps } from 'antd';
|
|
17
17
|
import { useEffect, useState } from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { LibroView } from '@difizen/libro-core';
|
|
2
|
-
import type { ModalItemProps, ModalItem } from '@difizen/
|
|
3
|
-
import { ThemeService } from '@difizen/
|
|
4
|
-
import { useInject, ViewInstance } from '@difizen/
|
|
2
|
+
import type { ModalItemProps, ModalItem } from '@difizen/libro-common/app';
|
|
3
|
+
import { ThemeService } from '@difizen/libro-common/app';
|
|
4
|
+
import { useInject, ViewInstance } from '@difizen/libro-common/app';
|
|
5
5
|
import { ConfigProvider, Modal, theme } from 'antd';
|
|
6
6
|
|
|
7
7
|
import type { LibroJupyterModel } from '../libro-jupyter-model.js';
|
|
@@ -2,8 +2,12 @@ import { PlayCircleOutlined } from '@ant-design/icons';
|
|
|
2
2
|
import type { LibroSideToolbarMenuItemType, LibroView } from '@difizen/libro-core';
|
|
3
3
|
import { NotebookCommands, LibroSideToolbarMenu } from '@difizen/libro-core';
|
|
4
4
|
import { ServerManager } from '@difizen/libro-kernel';
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import {
|
|
6
|
+
ConfigurationService,
|
|
7
|
+
useInject,
|
|
8
|
+
ViewInstance,
|
|
9
|
+
} from '@difizen/libro-common/app';
|
|
10
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
7
11
|
import { Popover, Tooltip } from 'antd';
|
|
8
12
|
import { useEffect, useState } from 'react';
|
|
9
13
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { KernelCommands, NotebookCommands } from '@difizen/libro-core';
|
|
2
|
-
import type { ToolbarRegistry } from '@difizen/
|
|
3
|
-
import { singleton, inject, ToolbarContribution } from '@difizen/
|
|
4
|
-
import { l10n } from '@difizen/
|
|
2
|
+
import type { ToolbarRegistry } from '@difizen/libro-common/app';
|
|
3
|
+
import { singleton, inject, ToolbarContribution } from '@difizen/libro-common/app';
|
|
4
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { LocationIcon } from '../components/icons.js';
|
|
7
7
|
import { KernelStatusAndSelectorProvider } from '../libro-jupyter-protocol.js';
|
|
8
8
|
|
|
9
9
|
import { RunSelector } from './run-selector.js';
|
|
@@ -48,7 +48,7 @@ export class LibroJupyterToolbarContribution implements ToolbarContribution {
|
|
|
48
48
|
|
|
49
49
|
registry.registerItem({
|
|
50
50
|
id: NotebookCommands['SelectLastRunCell'].id,
|
|
51
|
-
icon:
|
|
51
|
+
icon: LocationIcon,
|
|
52
52
|
command: NotebookCommands['SelectLastRunCell'].id,
|
|
53
53
|
group: ['group2'],
|
|
54
54
|
order: 'b',
|
package/src/utils/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CellModel } from '@difizen/libro-core';
|
|
2
2
|
import type { ServerManager } from '@difizen/libro-kernel';
|
|
3
|
-
import { l10n } from '@difizen/
|
|
3
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
4
4
|
import { duration } from 'moment';
|
|
5
5
|
|
|
6
6
|
import { LibroJupyterModel } from '../libro-jupyter-model.js';
|
package/src/widget/box/view.tsx
CHANGED
package/src/widget/comm.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { JSONObject } from '@difizen/libro-common';
|
|
2
2
|
import type { IComm, IKernelConnection, IShellFuture } from '@difizen/libro-kernel';
|
|
3
|
-
import { inject, transient } from '@difizen/
|
|
3
|
+
import { inject, transient } from '@difizen/libro-common/app';
|
|
4
4
|
|
|
5
5
|
import type { ICallbacks, IClassicComm } from './protocol.js';
|
|
6
6
|
import { WidgetCommOption } from './protocol.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { JSONObject } from '@difizen/libro-common';
|
|
2
2
|
import type { IKernelConnection, KernelMessage } from '@difizen/libro-kernel';
|
|
3
|
-
import type { Contribution } from '@difizen/
|
|
4
|
-
import { contrib, inject, Priority, prop, transient } from '@difizen/
|
|
5
|
-
import { Emitter } from '@difizen/
|
|
3
|
+
import type { Contribution } from '@difizen/libro-common/app';
|
|
4
|
+
import { contrib, inject, Priority, prop, transient } from '@difizen/libro-common/app';
|
|
5
|
+
import { Emitter } from '@difizen/libro-common/app';
|
|
6
6
|
|
|
7
7
|
import type { Comm } from './comm.js';
|
|
8
8
|
import type {
|
package/src/widget/module.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LibroKernelManageModule } from '@difizen/libro-kernel';
|
|
2
|
-
import { ManaModule } from '@difizen/
|
|
2
|
+
import { ManaModule } from '@difizen/libro-common/app';
|
|
3
3
|
|
|
4
4
|
import { VBoxWidget, VBoxWidgetContribution } from './box/index.js';
|
|
5
5
|
import { Comm } from './comm.js';
|
package/src/widget/protocol.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { JSONObject, JSONValue } from '@difizen/libro-common';
|
|
2
2
|
import type { IComm, IKernelConnection, KernelMessage } from '@difizen/libro-kernel';
|
|
3
|
-
import { Syringe } from '@difizen/
|
|
3
|
+
import { Syringe } from '@difizen/libro-common/app';
|
|
4
4
|
|
|
5
5
|
import type { WidgetView } from './widget-view.js';
|
|
6
6
|
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { LibroService } from '@difizen/libro-core';
|
|
2
2
|
import type { IKernelConnection } from '@difizen/libro-kernel';
|
|
3
3
|
import { KernelConnection, LibroKernelManager } from '@difizen/libro-kernel';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
inject,
|
|
6
|
+
prop,
|
|
7
|
+
singleton,
|
|
8
|
+
ApplicationContribution,
|
|
9
|
+
} from '@difizen/libro-common/app';
|
|
5
10
|
|
|
6
11
|
import type { LibroWidgets } from './libro-widgets.js';
|
|
7
12
|
import { LibroWidgetsFactory } from './protocol.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BaseOutputView } from '@difizen/libro-core';
|
|
2
2
|
import { RenderMimeContribution } from '@difizen/libro-rendermime';
|
|
3
|
-
import { inject, singleton } from '@difizen/
|
|
3
|
+
import { inject, singleton } from '@difizen/libro-common/app';
|
|
4
4
|
|
|
5
5
|
import { LibroJupyterModel } from '../libro-jupyter-model.js';
|
|
6
6
|
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
BaseView,
|
|
12
12
|
prop,
|
|
13
13
|
watch,
|
|
14
|
-
} from '@difizen/
|
|
15
|
-
import type { ViewComponent, Disposable } from '@difizen/
|
|
14
|
+
} from '@difizen/libro-common/app';
|
|
15
|
+
import type { ViewComponent, Disposable } from '@difizen/libro-common/app';
|
|
16
16
|
import { forwardRef } from 'react';
|
|
17
17
|
|
|
18
18
|
import { LibroJupyterModel } from '../libro-jupyter-model.js';
|