@difizen/libro-lab 0.3.16 → 1.0.1
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/command/lab-menu-contribution.d.ts +4 -4
- package/es/command/lab-menu-contribution.d.ts.map +1 -1
- package/es/command/lab-menu-contribution.js +5 -5
- package/es/command/menu-bar-view.d.ts +1 -1
- package/es/command/menu-bar-view.d.ts.map +1 -1
- package/es/command/menu-bar-view.js +2 -2
- package/es/command/module.d.ts +1 -1
- package/es/command/module.d.ts.map +1 -1
- package/es/command/module.js +1 -1
- package/es/config/config-contribution.d.ts +2 -2
- 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/editor-viewer/code-editor-open-handler.d.ts +4 -4
- package/es/editor-viewer/code-editor-open-handler.d.ts.map +1 -1
- package/es/editor-viewer/code-editor-open-handler.js +3 -3
- package/es/editor-viewer/code-editor-viewer.d.ts +5 -5
- package/es/editor-viewer/code-editor-viewer.d.ts.map +1 -1
- package/es/editor-viewer/code-editor-viewer.js +4 -4
- package/es/editor-viewer/json-langauge.js +1 -1
- package/es/editor-viewer/julia-language.js +1 -1
- package/es/editor-viewer/libro-default-open-handler.d.ts +3 -3
- package/es/editor-viewer/libro-default-open-handler.d.ts.map +1 -1
- package/es/editor-viewer/libro-default-open-handler.js +2 -2
- package/es/editor-viewer/libro-default-viewer.d.ts +3 -3
- package/es/editor-viewer/libro-default-viewer.d.ts.map +1 -1
- package/es/editor-viewer/libro-default-viewer.js +3 -3
- package/es/editor-viewer/module.d.ts +1 -1
- package/es/editor-viewer/module.d.ts.map +1 -1
- package/es/editor-viewer/module.js +1 -1
- package/es/editor-viewer/r-language.js +1 -1
- package/es/github-link/index.d.ts +1 -1
- package/es/github-link/index.d.ts.map +1 -1
- package/es/github-link/index.js +2 -2
- package/es/guide/content-contribution.js +3 -3
- package/es/guide/guide-view.d.ts +2 -2
- package/es/guide/guide-view.d.ts.map +1 -1
- package/es/guide/guide-view.js +3 -3
- package/es/image-viewer/module.d.ts +1 -1
- package/es/image-viewer/module.d.ts.map +1 -1
- package/es/image-viewer/module.js +1 -1
- package/es/image-viewer/open-handler.d.ts +3 -3
- package/es/image-viewer/open-handler.d.ts.map +1 -1
- package/es/image-viewer/open-handler.js +2 -2
- package/es/image-viewer/viewer.d.ts +3 -3
- package/es/image-viewer/viewer.d.ts.map +1 -1
- package/es/image-viewer/viewer.js +2 -2
- package/es/index.d.ts +82 -1
- package/es/index.d.ts.map +1 -1
- package/es/index.js +21 -2
- package/es/kernel-and-terminal-panel/collapse/collapse-content.js +1 -1
- package/es/kernel-and-terminal-panel/collapse/index.js +2 -2
- package/es/kernel-and-terminal-panel/collapse/kernel-collapse-content-item.js +1 -1
- package/es/kernel-and-terminal-panel/collapse/page-collapse-content.d.ts.map +1 -1
- package/es/kernel-and-terminal-panel/collapse/page-collapse-content.js +1 -1
- package/es/kernel-and-terminal-panel/kernel-and-terminal-panel-view.d.ts +1 -1
- package/es/kernel-and-terminal-panel/kernel-and-terminal-panel-view.d.ts.map +1 -1
- package/es/kernel-and-terminal-panel/kernel-and-terminal-panel-view.js +2 -2
- package/es/kernel-and-terminal-panel/kernel-color-registry.d.ts +2 -2
- package/es/kernel-and-terminal-panel/kernel-color-registry.d.ts.map +1 -1
- package/es/kernel-and-terminal-panel/kernel-color-registry.js +2 -2
- package/es/kernel-and-terminal-panel/module.d.ts +1 -1
- package/es/kernel-and-terminal-panel/module.d.ts.map +1 -1
- package/es/kernel-and-terminal-panel/module.js +1 -1
- package/es/kernel-and-terminal-panel/panel-command.d.ts +3 -3
- package/es/kernel-and-terminal-panel/panel-command.d.ts.map +1 -1
- package/es/kernel-and-terminal-panel/panel-command.js +3 -3
- package/es/kernel-manager/index.d.ts +1 -1
- package/es/kernel-manager/index.d.ts.map +1 -1
- package/es/kernel-manager/index.js +3 -3
- package/es/lab-app.d.ts +1 -1
- package/es/lab-app.d.ts.map +1 -1
- package/es/lab-app.js +1 -1
- package/es/lab-color-registry.d.ts +2 -2
- package/es/lab-color-registry.d.ts.map +1 -1
- package/es/lab-color-registry.js +2 -2
- package/es/lang-switcher/index.d.ts +1 -1
- package/es/lang-switcher/index.d.ts.map +1 -1
- package/es/lang-switcher/index.js +3 -3
- package/es/layout/brand/brand.d.ts +1 -1
- package/es/layout/brand/brand.d.ts.map +1 -1
- package/es/layout/brand/brand.js +1 -1
- package/es/layout/container.d.ts +1 -1
- package/es/layout/container.d.ts.map +1 -1
- package/es/layout/container.js +3 -3
- package/es/layout/content-bottom-tab-view.d.ts +2 -2
- package/es/layout/content-bottom-tab-view.d.ts.map +1 -1
- package/es/layout/content-bottom-tab-view.js +1 -1
- package/es/layout/footer/current-file-footer-view.d.ts +2 -2
- package/es/layout/footer/current-file-footer-view.d.ts.map +1 -1
- package/es/layout/footer/current-file-footer-view.js +2 -2
- package/es/layout/footer/footer-view.d.ts +1 -1
- package/es/layout/footer/footer-view.d.ts.map +1 -1
- package/es/layout/footer/footer-view.js +2 -2
- package/es/layout/footer/status-footer-view.d.ts +2 -2
- package/es/layout/footer/status-footer-view.d.ts.map +1 -1
- package/es/layout/footer/status-footer-view.js +2 -2
- package/es/layout/layout-service.d.ts +3 -3
- package/es/layout/layout-service.d.ts.map +1 -1
- package/es/layout/layout-service.js +3 -3
- package/es/layout/layout.d.ts +1 -1
- package/es/layout/layout.d.ts.map +1 -1
- package/es/layout/layout.js +4 -4
- package/es/layout/main.d.ts +1 -1
- package/es/layout/main.d.ts.map +1 -1
- package/es/layout/main.js +3 -3
- package/es/layout/module.d.ts +1 -1
- package/es/layout/module.d.ts.map +1 -1
- package/es/layout/module.js +1 -1
- package/es/layout/saveable-tab-view.d.ts +3 -3
- package/es/layout/saveable-tab-view.d.ts.map +1 -1
- package/es/layout/saveable-tab-view.js +5 -5
- package/es/layout/side-tab-view.d.ts +1 -1
- package/es/layout/side-tab-view.d.ts.map +1 -1
- package/es/layout/side-tab-view.js +3 -3
- package/es/module.d.ts +1 -1
- package/es/module.d.ts.map +1 -1
- package/es/module.js +6 -4
- package/es/toc/libro-toc-panel-view.d.ts +1 -1
- package/es/toc/libro-toc-panel-view.d.ts.map +1 -1
- package/es/toc/libro-toc-panel-view.js +2 -2
- package/es/toc/module.d.ts +1 -1
- package/es/toc/module.d.ts.map +1 -1
- package/es/toc/module.js +1 -1
- package/es/welcome/entry-point-view.d.ts +1 -1
- package/es/welcome/entry-point-view.d.ts.map +1 -1
- package/es/welcome/entry-point-view.js +3 -3
- package/es/welcome/welcome-view.d.ts +2 -2
- package/es/welcome/welcome-view.d.ts.map +1 -1
- package/es/welcome/welcome-view.js +3 -3
- package/package.json +14 -18
- package/src/command/lab-menu-contribution.tsx +6 -6
- package/src/command/menu-bar-view.tsx +2 -2
- package/src/command/module.ts +5 -1
- package/src/config/config-contribution.ts +3 -3
- package/src/config/config.ts +2 -2
- package/src/editor-viewer/code-editor-open-handler.ts +8 -4
- package/src/editor-viewer/code-editor-viewer.tsx +11 -5
- package/src/editor-viewer/json-langauge.ts +1 -1
- package/src/editor-viewer/julia-language.ts +1 -1
- package/src/editor-viewer/libro-default-open-handler.ts +7 -3
- package/src/editor-viewer/libro-default-viewer.tsx +4 -4
- package/src/editor-viewer/module.ts +1 -1
- package/src/editor-viewer/r-language.ts +1 -1
- package/src/github-link/index.tsx +2 -2
- package/src/guide/content-contribution.ts +3 -3
- package/src/guide/guide-view.tsx +3 -3
- package/src/image-viewer/module.ts +1 -1
- package/src/image-viewer/open-handler.ts +3 -3
- package/src/image-viewer/viewer.tsx +3 -3
- package/src/index.ts +19 -1
- package/src/kernel-and-terminal-panel/collapse/collapse-content.tsx +1 -1
- package/src/kernel-and-terminal-panel/collapse/index.tsx +2 -2
- package/src/kernel-and-terminal-panel/collapse/kernel-collapse-content-item.tsx +1 -1
- package/src/kernel-and-terminal-panel/collapse/page-collapse-content.tsx +6 -1
- package/src/kernel-and-terminal-panel/kernel-and-terminal-panel-view.tsx +2 -2
- package/src/kernel-and-terminal-panel/kernel-color-registry.ts +3 -3
- package/src/kernel-and-terminal-panel/module.ts +1 -1
- package/src/kernel-and-terminal-panel/panel-command.tsx +4 -4
- package/src/kernel-manager/index.tsx +3 -3
- package/src/lab-app.ts +2 -2
- package/src/lab-color-registry.ts +3 -3
- package/src/lang-switcher/index.tsx +3 -3
- package/src/layout/brand/brand.tsx +1 -1
- package/src/layout/container.tsx +3 -3
- package/src/layout/content-bottom-tab-view.tsx +2 -2
- package/src/layout/footer/current-file-footer-view.tsx +2 -2
- package/src/layout/footer/footer-view.tsx +2 -2
- package/src/layout/footer/status-footer-view.tsx +8 -2
- package/src/layout/layout-service.ts +9 -5
- package/src/layout/layout.tsx +4 -4
- package/src/layout/main.tsx +3 -3
- package/src/layout/module.ts +1 -1
- package/src/layout/saveable-tab-view.tsx +6 -6
- package/src/layout/side-tab-view.tsx +3 -3
- package/src/module.tsx +10 -10
- package/src/toc/libro-toc-panel-view.tsx +2 -2
- package/src/toc/module.ts +1 -1
- package/src/welcome/entry-point-view.tsx +3 -3
- package/src/welcome/welcome-view.tsx +3 -3
package/src/guide/guide-view.tsx
CHANGED
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
view,
|
|
10
10
|
ViewInstance,
|
|
11
11
|
ViewRender,
|
|
12
|
-
} from '@difizen/
|
|
13
|
-
import { BaseView } from '@difizen/
|
|
14
|
-
import { l10n, L10nLang } from '@difizen/
|
|
12
|
+
} from '@difizen/libro-common/app';
|
|
13
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
14
|
+
import { l10n, L10nLang } from '@difizen/libro-common/l10n';
|
|
15
15
|
import { forwardRef } from 'react';
|
|
16
16
|
import './index.less';
|
|
17
17
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { LibroJupyterConfiguration } from '@difizen/libro-jupyter';
|
|
2
|
-
import type { URI, ViewOpenHandlerOptions } from '@difizen/
|
|
3
|
-
import { ConfigurationService, inject } from '@difizen/
|
|
2
|
+
import type { URI, ViewOpenHandlerOptions } from '@difizen/libro-common/app';
|
|
3
|
+
import { ConfigurationService, inject } from '@difizen/libro-common/app';
|
|
4
4
|
import {
|
|
5
5
|
NavigatableViewOpenHandler,
|
|
6
6
|
OpenHandler,
|
|
7
7
|
singleton,
|
|
8
8
|
Priority,
|
|
9
|
-
} from '@difizen/
|
|
9
|
+
} from '@difizen/libro-common/app';
|
|
10
10
|
|
|
11
11
|
import { imageExtToTypes } from './protocol.js';
|
|
12
12
|
import { NavigatableImageViewerViewFactoryId } from './viewer.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContentsManager } from '@difizen/libro-kernel';
|
|
2
|
-
import type { NavigatableView } from '@difizen/
|
|
3
|
-
import { DisposableCollection } from '@difizen/
|
|
2
|
+
import type { NavigatableView } from '@difizen/libro-common/app';
|
|
3
|
+
import { DisposableCollection } from '@difizen/libro-common/app';
|
|
4
4
|
import {
|
|
5
5
|
BaseView,
|
|
6
6
|
inject,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
Deferred,
|
|
17
17
|
URI,
|
|
18
18
|
CommandRegistry,
|
|
19
|
-
} from '@difizen/
|
|
19
|
+
} from '@difizen/libro-common/app';
|
|
20
20
|
import { Spin } from 'antd';
|
|
21
21
|
import { createRef, forwardRef, useEffect, useRef } from 'react';
|
|
22
22
|
import Viewer from 'viewerjs';
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from '@difizen/libro-jupyter';
|
|
2
1
|
export * from './module.js';
|
|
3
2
|
export * from './lab-app.js';
|
|
4
3
|
export * from './github-link/index.js';
|
|
@@ -12,3 +11,22 @@ export * from './kernel-and-terminal-panel/index.js';
|
|
|
12
11
|
export * from './common/index.js';
|
|
13
12
|
export * from './image-viewer/index.js';
|
|
14
13
|
export * from './editor-viewer/index.js';
|
|
14
|
+
export * from '@difizen/libro-prompt-cell';
|
|
15
|
+
export * from '@difizen/libro-sql-cell';
|
|
16
|
+
export * from '@difizen/libro-terminal';
|
|
17
|
+
export * from '@difizen/libro-toc';
|
|
18
|
+
export * from '@difizen/libro-widget';
|
|
19
|
+
export * from '@difizen/libro-app';
|
|
20
|
+
export * from '@difizen/libro-cofine-editor-core';
|
|
21
|
+
export * from '@difizen/libro-language-client';
|
|
22
|
+
export * from '@difizen/libro-jupyter';
|
|
23
|
+
|
|
24
|
+
import * as SyringeModules from '@difizen/libro-common/ioc';
|
|
25
|
+
import * as ObservableModules from '@difizen/libro-common/observable';
|
|
26
|
+
|
|
27
|
+
export const AppIOC = {
|
|
28
|
+
...ObservableModules,
|
|
29
|
+
...SyringeModules,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export * as AppExtention from '@difizen/libro-common/app';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CloseOutlined } from '@ant-design/icons';
|
|
2
2
|
import { TerminalCommands } from '@difizen/libro-terminal';
|
|
3
|
-
import { CommandRegistry, useInject } from '@difizen/
|
|
3
|
+
import { CommandRegistry, useInject } from '@difizen/libro-common/app';
|
|
4
4
|
import { message } from 'antd';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CaretDownOutlined, CaretRightOutlined } from '@ant-design/icons';
|
|
2
|
-
import { ViewContext } from '@difizen/
|
|
3
|
-
import { l10n } from '@difizen/
|
|
2
|
+
import { ViewContext } from '@difizen/libro-common/app';
|
|
3
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
4
4
|
import { Empty, message, Popconfirm } from 'antd';
|
|
5
5
|
import React, { useState } from 'react';
|
|
6
6
|
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
CaretRightOutlined,
|
|
4
4
|
CloseOutlined,
|
|
5
5
|
} from '@ant-design/icons';
|
|
6
|
-
import { OpenerService, URI, useInject } from '@difizen/
|
|
6
|
+
import { OpenerService, URI, useInject } from '@difizen/libro-common/app';
|
|
7
7
|
import React, { useState } from 'react';
|
|
8
8
|
|
|
9
9
|
import { fileUnderKernel, runningKernel } from '../../common/icon.js';
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { CloseOutlined } from '@ant-design/icons';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
renderNode,
|
|
4
|
+
useInject,
|
|
5
|
+
ViewContext,
|
|
6
|
+
ViewInstance,
|
|
7
|
+
} from '@difizen/libro-common/app';
|
|
3
8
|
|
|
4
9
|
import type { SaveableTabView } from '../../index.js';
|
|
5
10
|
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
view,
|
|
12
12
|
ViewInstance,
|
|
13
13
|
ViewManager,
|
|
14
|
-
} from '@difizen/
|
|
15
|
-
import { l10n } from '@difizen/
|
|
14
|
+
} from '@difizen/libro-common/app';
|
|
15
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
16
16
|
import { ConfigProvider, theme } from 'antd';
|
|
17
17
|
import { useEffect, useState } from 'react';
|
|
18
18
|
|
|
@@ -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 KernelPanelColorContribution implements ColorContribution {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ReloadOutlined } from '@ant-design/icons';
|
|
2
|
-
import type { CommandRegistry, ToolbarRegistry } from '@difizen/
|
|
3
|
-
import { ViewManager } from '@difizen/
|
|
2
|
+
import type { CommandRegistry, ToolbarRegistry } from '@difizen/libro-common/app';
|
|
3
|
+
import { ViewManager } from '@difizen/libro-common/app';
|
|
4
4
|
import {
|
|
5
5
|
CommandContribution,
|
|
6
6
|
inject,
|
|
7
7
|
singleton,
|
|
8
8
|
ToolbarContribution,
|
|
9
|
-
} from '@difizen/
|
|
10
|
-
import { l10n } from '@difizen/
|
|
9
|
+
} from '@difizen/libro-common/app';
|
|
10
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
11
11
|
|
|
12
12
|
import { KernelAndTerminalPanelView } from './kernel-and-terminal-panel-view.js';
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CodeFilled } from '@ant-design/icons';
|
|
2
|
-
import { singleton, view } from '@difizen/
|
|
3
|
-
import { BaseView } from '@difizen/
|
|
4
|
-
import { l10n } from '@difizen/
|
|
2
|
+
import { singleton, view } from '@difizen/libro-common/app';
|
|
3
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
4
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
|
|
7
7
|
// import './index.less';
|
package/src/lab-app.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ServerManager,
|
|
6
6
|
} from '@difizen/libro-jupyter';
|
|
7
7
|
import { terminalDefaultSlot } from '@difizen/libro-terminal';
|
|
8
|
-
import type { FileTreeView } from '@difizen/
|
|
8
|
+
import type { FileTreeView } from '@difizen/libro-common/app';
|
|
9
9
|
import {
|
|
10
10
|
ConfigurationService,
|
|
11
11
|
FileTreeViewFactory,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
ViewManager,
|
|
16
16
|
inject,
|
|
17
17
|
singleton,
|
|
18
|
-
} from '@difizen/
|
|
18
|
+
} from '@difizen/libro-common/app';
|
|
19
19
|
|
|
20
20
|
import { LibroLabConfiguration, LibroLabGuideViewEnabled } from './config/index.js';
|
|
21
21
|
import { GuideView } from './guide/index.js';
|
|
@@ -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 LabColorContribution implements ColorContribution {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { singleton, useInject, view } from '@difizen/
|
|
2
|
-
import { BaseView } from '@difizen/
|
|
3
|
-
import { l10n, L10nLang } from '@difizen/
|
|
1
|
+
import { singleton, useInject, view } from '@difizen/libro-common/app';
|
|
2
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
3
|
+
import { l10n, L10nLang } from '@difizen/libro-common/l10n';
|
|
4
4
|
import { Select } from 'antd';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
|
package/src/layout/container.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { BoxPanel } from '@difizen/libro-common/react';
|
|
2
|
+
import { singleton, Slot, view } from '@difizen/libro-common/app';
|
|
3
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
|
|
6
6
|
import './index.less';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { View } from '@difizen/
|
|
2
|
-
import { transient, view, CardTabView, inject } from '@difizen/
|
|
1
|
+
import type { View } from '@difizen/libro-common/app';
|
|
2
|
+
import { transient, view, CardTabView, inject } from '@difizen/libro-common/app';
|
|
3
3
|
|
|
4
4
|
import { LayoutService } from './layout-service.js';
|
|
5
5
|
import { LibroLabLayoutSlots } from './protocol.js';
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
useInject,
|
|
6
6
|
view,
|
|
7
7
|
ViewInstance,
|
|
8
|
-
} from '@difizen/
|
|
9
|
-
import { l10n } from '@difizen/
|
|
8
|
+
} from '@difizen/libro-common/app';
|
|
9
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
|
|
12
12
|
import { LayoutService } from '../layout-service.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BoxPanel } from '@difizen/libro-common/react';
|
|
2
|
+
import { DefaultSlotView, singleton, Slot, view } from '@difizen/libro-common/app';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import './index.less';
|
|
5
5
|
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
BaseView,
|
|
3
|
+
inject,
|
|
4
|
+
singleton,
|
|
5
|
+
useInject,
|
|
6
|
+
view,
|
|
7
|
+
} from '@difizen/libro-common/app';
|
|
8
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
3
9
|
import * as React from 'react';
|
|
4
10
|
|
|
5
11
|
import { Loadding, SuccIcon } from '../../common/icon.js';
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
import type { Disposable } from '@difizen/libro-common/common';
|
|
1
2
|
import { LibroNavigatableView, LibroService } from '@difizen/libro-jupyter';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import type {
|
|
4
|
+
View,
|
|
5
|
+
ViewOpenHandlerOptions,
|
|
6
|
+
ViewOpenOption,
|
|
7
|
+
} from '@difizen/libro-common/app';
|
|
8
|
+
import { SideTabView } from '@difizen/libro-common/app';
|
|
9
|
+
import { observable } from '@difizen/libro-common/app';
|
|
5
10
|
import {
|
|
6
11
|
DefaultSlotView,
|
|
7
12
|
inject,
|
|
8
13
|
prop,
|
|
9
14
|
singleton,
|
|
10
15
|
SlotViewManager,
|
|
11
|
-
} from '@difizen/
|
|
12
|
-
import type { Disposable } from '@difizen/mana-common';
|
|
16
|
+
} from '@difizen/libro-common/app';
|
|
13
17
|
|
|
14
18
|
import type { LibroLabLayoutSlotsType, StatusType } from './protocol.js';
|
|
15
19
|
import { LibroLabLayoutSlots } from './protocol.js';
|
package/src/layout/layout.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { BoxPanel } from '@difizen/libro-common/react';
|
|
2
|
+
import { inject, singleton, Slot, useInject, view } from '@difizen/libro-common/app';
|
|
3
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
4
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
5
5
|
import { Alert } from 'antd';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
7
|
|
package/src/layout/main.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { SplitPanel } from '@difizen/libro-common/react';
|
|
2
|
+
import { singleton, Slot, useInject, view } from '@difizen/libro-common/app';
|
|
3
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
|
|
6
6
|
import './index.less';
|
package/src/layout/module.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CloseOutlined } from '@ant-design/icons';
|
|
2
|
+
import { Dropdown } from '@difizen/libro-common/react';
|
|
2
3
|
import { JupyterFileService } from '@difizen/libro-jupyter';
|
|
3
|
-
import type { CardTabOption, View } from '@difizen/
|
|
4
|
-
import { ViewManager, ViewOption } from '@difizen/
|
|
5
|
-
import { NavigatableView } from '@difizen/
|
|
6
|
-
import { inject } from '@difizen/
|
|
4
|
+
import type { CardTabOption, View } from '@difizen/libro-common/app';
|
|
5
|
+
import { ViewManager, ViewOption } from '@difizen/libro-common/app';
|
|
6
|
+
import { NavigatableView } from '@difizen/libro-common/app';
|
|
7
|
+
import { inject } from '@difizen/libro-common/app';
|
|
7
8
|
import {
|
|
8
9
|
CardTabView,
|
|
9
10
|
MenuRender,
|
|
@@ -11,8 +12,7 @@ import {
|
|
|
11
12
|
view,
|
|
12
13
|
ViewContext,
|
|
13
14
|
Saveable,
|
|
14
|
-
} from '@difizen/
|
|
15
|
-
import { Dropdown } from '@difizen/mana-react';
|
|
15
|
+
} from '@difizen/libro-common/app';
|
|
16
16
|
import { Badge } from 'antd';
|
|
17
17
|
import classnames from 'classnames';
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SideTabView, ToolbarRender } from '@difizen/
|
|
2
|
-
import { view } from '@difizen/
|
|
3
|
-
import { transient } from '@difizen/
|
|
1
|
+
import { SideTabView, ToolbarRender } from '@difizen/libro-common/app';
|
|
2
|
+
import { view } from '@difizen/libro-common/app';
|
|
3
|
+
import { transient } from '@difizen/libro-common/app';
|
|
4
4
|
|
|
5
5
|
@transient()
|
|
6
6
|
@view('libro-lab-side-tab')
|
package/src/module.tsx
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { LibroAINativeModule } from '@difizen/libro-ai-native';
|
|
1
|
+
// import { LibroAINativeModule } from '@difizen/libro-ai-native';
|
|
2
2
|
import { LibroAppModule } from '@difizen/libro-app';
|
|
3
|
-
import { FileView, LibroJupyterModule } from '@difizen/libro-jupyter';
|
|
4
|
-
import { langBundles } from '@difizen/libro-l10n';
|
|
5
|
-
import { LibroPromptCellModule } from '@difizen/libro-prompt-cell';
|
|
6
|
-
import { LibroSqlCellModule } from '@difizen/libro-sql-cell';
|
|
7
|
-
import { TerminalModule } from '@difizen/libro-terminal';
|
|
8
|
-
import { CommonWidgetsModule } from '@difizen/libro-widget';
|
|
9
3
|
import {
|
|
10
4
|
ManaModule,
|
|
11
5
|
createSlotPreference,
|
|
12
6
|
RootSlotId,
|
|
13
7
|
createViewPreference,
|
|
14
8
|
HeaderArea,
|
|
15
|
-
} from '@difizen/
|
|
16
|
-
import { l10n } from '@difizen/
|
|
9
|
+
} from '@difizen/libro-common/app';
|
|
10
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
11
|
+
import { FileView, LibroJupyterModule } from '@difizen/libro-jupyter';
|
|
12
|
+
import { langBundles } from '@difizen/libro-l10n';
|
|
13
|
+
import { LibroPromptCellModule } from '@difizen/libro-prompt-cell';
|
|
14
|
+
import { LibroSqlCellModule } from '@difizen/libro-sql-cell';
|
|
15
|
+
import { TerminalModule } from '@difizen/libro-terminal';
|
|
16
|
+
import { CommonWidgetsModule } from '@difizen/libro-widget';
|
|
17
17
|
|
|
18
18
|
import { LibroLabHeaderMenuModule } from './command/module.js';
|
|
19
19
|
import { LabConfigAppContribution } from './config/config-contribution.js';
|
|
@@ -135,6 +135,6 @@ export const LibroLabModule = ManaModule.create()
|
|
|
135
135
|
TerminalModule,
|
|
136
136
|
ImageViewerModule,
|
|
137
137
|
CodeEditorViewerModule,
|
|
138
|
-
LibroAINativeModule,
|
|
138
|
+
// LibroAINativeModule,
|
|
139
139
|
LibroAppModule,
|
|
140
140
|
);
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
ViewInstance,
|
|
12
12
|
ViewManager,
|
|
13
13
|
ViewRender,
|
|
14
|
-
} from '@difizen/
|
|
15
|
-
import { l10n } from '@difizen/
|
|
14
|
+
} from '@difizen/libro-common/app';
|
|
15
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
16
16
|
import { ConfigProvider, Empty, theme } from 'antd';
|
|
17
17
|
|
|
18
18
|
import { TocIcon } from '../common/index.js';
|
package/src/toc/module.ts
CHANGED
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
useInject,
|
|
15
15
|
view,
|
|
16
16
|
ViewManager,
|
|
17
|
-
} from '@difizen/
|
|
18
|
-
import { BaseView } from '@difizen/
|
|
19
|
-
import { l10n } from '@difizen/
|
|
17
|
+
} from '@difizen/libro-common/app';
|
|
18
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
19
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
20
20
|
import { Col, Row } from 'antd';
|
|
21
21
|
import { forwardRef, useEffect, useState } from 'react';
|
|
22
22
|
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
ViewInstance,
|
|
8
8
|
ViewManager,
|
|
9
9
|
ViewRender,
|
|
10
|
-
} from '@difizen/
|
|
11
|
-
import { BaseView } from '@difizen/
|
|
12
|
-
import { l10n } from '@difizen/
|
|
10
|
+
} from '@difizen/libro-common/app';
|
|
11
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
12
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
13
13
|
import { forwardRef } from 'react';
|
|
14
14
|
|
|
15
15
|
import { LayoutService } from '../layout/layout-service.js';
|