@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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { Disposable } from '@difizen/libro-common/common';
|
|
1
2
|
import { LibroService } from '@difizen/libro-jupyter';
|
|
2
|
-
import type { View, ViewOpenHandlerOptions, ViewOpenOption } from '@difizen/
|
|
3
|
-
import { SlotViewManager } from '@difizen/
|
|
4
|
-
import type { Disposable } from '@difizen/mana-common';
|
|
3
|
+
import type { View, ViewOpenHandlerOptions, ViewOpenOption } from '@difizen/libro-common/app';
|
|
4
|
+
import { SlotViewManager } from '@difizen/libro-common/app';
|
|
5
5
|
import type { LibroLabLayoutSlotsType, StatusType } from './protocol.js';
|
|
6
6
|
export type VisibilityMap = Record<LibroLabLayoutSlotsType, boolean>;
|
|
7
7
|
export declare class LayoutService {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-service.d.ts","sourceRoot":"","sources":["../../src/layout/layout-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"layout-service.d.ts","sourceRoot":"","sources":["../../src/layout/layout-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAwB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EACV,IAAI,EACJ,sBAAsB,EACtB,cAAc,EACf,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAKL,eAAe,EAChB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGzE,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;AACrE,qBACa,aAAa;IACxB,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IACpD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;gBAGnB,eAAe,EAAE,eAAe,EACnC,YAAY,EAAE,YAAY;IAWlD,WAAW,EAAE,UAAU,CAAa;IAGpC,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,aAAa,CAS1B;IAEF,OAAO;IAIP,aAAa,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO;IAIrD,cAAc,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,OAAO;IAI9D,SAAS,CAAC,WAAW,CACnB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,IAAI,GAAG,SAAS,EACtB,MAAM,EAAE,cAAc,GAAG,SAAS;IAa9B,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQzE,cAAc,CAAC,IAAI,EAAE,uBAAuB;IAI5C,aAAa,CAAC,IAAI,EAAE,uBAAuB;IAU3C,kBAAkB,CAChB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,EAAE,MAAM,IAAI,GAClB,UAAU,GAAG,SAAS;IAUzB,4BAA4B,IAAI,OAAO;IAWjC,sBAAsB;CAoB7B"}
|
|
@@ -16,9 +16,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
16
16
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
17
17
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
18
18
|
import { LibroNavigatableView, LibroService } from '@difizen/libro-jupyter';
|
|
19
|
-
import { SideTabView } from '@difizen/
|
|
20
|
-
import { observable } from '@difizen/
|
|
21
|
-
import { DefaultSlotView, inject, prop, singleton, SlotViewManager } from '@difizen/
|
|
19
|
+
import { SideTabView } from '@difizen/libro-common/app';
|
|
20
|
+
import { observable } from '@difizen/libro-common/app';
|
|
21
|
+
import { DefaultSlotView, inject, prop, singleton, SlotViewManager } from '@difizen/libro-common/app';
|
|
22
22
|
import { LibroLabLayoutSlots } from "./protocol.js";
|
|
23
23
|
export var LayoutService = (_dec = singleton(), _dec2 = prop(), _dec3 = prop(), _dec4 = prop(), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
24
24
|
function LayoutService(slotViewManager, libroService) {
|
package/es/layout/layout.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
-
import { BaseView } from '@difizen/
|
|
2
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
3
3
|
import './index.less';
|
|
4
4
|
import { LayoutService } from './layout-service.js';
|
|
5
5
|
export declare const LibroLabLayoutComponent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/layout/layout.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/layout/layout.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAOrD,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,eAAO,MAAM,uBAAuB,mFA4BlC,CAAC;AAEH,qBAEa,kBAAmB,SAAQ,QAAQ;IACrC,IAAI,oFAA2B;IAEjB,aAAa,EAAE,aAAa,CAAC;IAEpD,UAAU,IAAI,MAAM;IAIpB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAQrC"}
|
package/es/layout/layout.js
CHANGED
|
@@ -18,10 +18,10 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
18
18
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
19
19
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
20
20
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
21
|
+
import { BoxPanel } from '@difizen/libro-common/react';
|
|
22
|
+
import { inject, singleton, Slot, useInject, view } from '@difizen/libro-common/app';
|
|
23
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
24
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
25
25
|
import { Alert } from 'antd';
|
|
26
26
|
import { forwardRef } from 'react';
|
|
27
27
|
import { Loadding } from "../common/icon.js";
|
package/es/layout/main.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
-
import { BaseView } from '@difizen/
|
|
2
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
3
3
|
import './index.less';
|
|
4
4
|
export declare const LibroLabLayoutMainComponent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
5
5
|
export declare class LibroLabLayoutMainView extends BaseView {
|
package/es/layout/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/layout/main.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/layout/main.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAGrD,OAAO,cAAc,CAAC;AAItB,eAAO,MAAM,2BAA2B,mFA+DvC,CAAC;AAEF,qBAEa,sBAAuB,SAAQ,QAAQ;IACzC,IAAI,oFAA+B;CAC7C"}
|
package/es/layout/main.js
CHANGED
|
@@ -15,9 +15,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
15
15
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
18
|
+
import { SplitPanel } from '@difizen/libro-common/react';
|
|
19
|
+
import { singleton, Slot, useInject, view } from '@difizen/libro-common/app';
|
|
20
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
21
21
|
import { forwardRef } from 'react';
|
|
22
22
|
import "./index.less";
|
|
23
23
|
import { LayoutService } from "./layout-service.js";
|
package/es/layout/module.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/layout/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,UAAU,EACX,MAAM,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/layout/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,UAAU,EACX,MAAM,2BAA2B,CAAC;AAcnC,eAAO,MAAM,oBAAoB,YAiDhC,CAAC"}
|
package/es/layout/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSlotPreference, FlexSlotView, HeaderArea, HeaderView, ManaModule } from '@difizen/
|
|
1
|
+
import { createSlotPreference, FlexSlotView, HeaderArea, HeaderView, ManaModule } from '@difizen/libro-common/app';
|
|
2
2
|
import { BrandView } from "./brand/brand.js";
|
|
3
3
|
import { LibroLabLayoutContainerView } from "./container.js";
|
|
4
4
|
import { ContentBottomTabView } from "./content-bottom-tab-view.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JupyterFileService } from '@difizen/libro-jupyter';
|
|
2
|
-
import type { CardTabOption, View } from '@difizen/
|
|
3
|
-
import { ViewManager } from '@difizen/
|
|
4
|
-
import { CardTabView } from '@difizen/
|
|
2
|
+
import type { CardTabOption, View } from '@difizen/libro-common/app';
|
|
3
|
+
import { ViewManager } from '@difizen/libro-common/app';
|
|
4
|
+
import { CardTabView } from '@difizen/libro-common/app';
|
|
5
5
|
export declare class SaveableTabView extends CardTabView {
|
|
6
6
|
constructor(option: CardTabOption, manager: ViewManager, fileService: JupyterFileService);
|
|
7
7
|
protected renderTab(item: View): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saveable-tab-view.d.ts","sourceRoot":"","sources":["../../src/layout/saveable-tab-view.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"saveable-tab-view.d.ts","sourceRoot":"","sources":["../../src/layout/saveable-tab-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAc,MAAM,2BAA2B,CAAC;AAGpE,OAAO,EACL,WAAW,EAMZ,MAAM,2BAA2B,CAAC;AAInC,qBAEa,eAAgB,SAAQ,WAAW;gBAExB,MAAM,EAAE,aAAa,EACpB,OAAO,EAAE,WAAW,EACb,WAAW,EAAE,kBAAkB;cAc1C,SAAS,CAAC,IAAI,EAAE,IAAI;IAuBvC,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI;CAyBhC"}
|
|
@@ -13,12 +13,12 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
13
13
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
14
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
15
15
|
import { CloseOutlined } from '@ant-design/icons';
|
|
16
|
+
import { Dropdown } from '@difizen/libro-common/react';
|
|
16
17
|
import { JupyterFileService } from '@difizen/libro-jupyter';
|
|
17
|
-
import { ViewManager, ViewOption } from '@difizen/
|
|
18
|
-
import { NavigatableView } from '@difizen/
|
|
19
|
-
import { inject } from '@difizen/
|
|
20
|
-
import { CardTabView, MenuRender, transient, view, ViewContext, Saveable } from '@difizen/
|
|
21
|
-
import { Dropdown } from '@difizen/mana-react';
|
|
18
|
+
import { ViewManager, ViewOption } from '@difizen/libro-common/app';
|
|
19
|
+
import { NavigatableView } from '@difizen/libro-common/app';
|
|
20
|
+
import { inject } from '@difizen/libro-common/app';
|
|
21
|
+
import { CardTabView, MenuRender, transient, view, ViewContext, Saveable } from '@difizen/libro-common/app';
|
|
22
22
|
import { Badge } from 'antd';
|
|
23
23
|
import classnames from 'classnames';
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
-
import { SideTabView } from '@difizen/
|
|
2
|
+
import { SideTabView } from '@difizen/libro-common/app';
|
|
3
3
|
export declare class LibroLabSideTabView extends SideTabView {
|
|
4
4
|
renderTabToolbar(): JSX.Element;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-tab-view.d.ts","sourceRoot":"","sources":["../../src/layout/side-tab-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,
|
|
1
|
+
{"version":3,"file":"side-tab-view.d.ts","sourceRoot":"","sources":["../../src/layout/side-tab-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,2BAA2B,CAAC;AAIvE,qBAEa,mBAAoB,SAAQ,WAAW;IACzC,gBAAgB,IAAI,GAAG,CAAC,OAAO;CAGzC"}
|
|
@@ -12,9 +12,9 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
|
|
|
12
12
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
13
13
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
14
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
15
|
-
import { SideTabView, ToolbarRender } from '@difizen/
|
|
16
|
-
import { view } from '@difizen/
|
|
17
|
-
import { transient } from '@difizen/
|
|
15
|
+
import { SideTabView, ToolbarRender } from '@difizen/libro-common/app';
|
|
16
|
+
import { view } from '@difizen/libro-common/app';
|
|
17
|
+
import { transient } from '@difizen/libro-common/app';
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
19
|
export var LibroLabSideTabView = (_dec = transient(), _dec2 = view('libro-lab-side-tab'), _dec(_class = _dec2(_class = /*#__PURE__*/function (_SideTabView) {
|
|
20
20
|
_inherits(LibroLabSideTabView, _SideTabView);
|
package/es/module.d.ts
CHANGED
package/es/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EAKX,MAAM,2BAA2B,CAAC;AA4BnC,OAAO,cAAc,CAAC;AAMtB,eAAO,MAAM,cAAc,YAiGxB,CAAC"}
|
package/es/module.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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 { ManaModule, createSlotPreference, RootSlotId, createViewPreference, HeaderArea } from '@difizen/libro-common/app';
|
|
4
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
3
5
|
import { FileView, LibroJupyterModule } from '@difizen/libro-jupyter';
|
|
4
6
|
import { langBundles } from '@difizen/libro-l10n';
|
|
5
7
|
import { LibroPromptCellModule } from '@difizen/libro-prompt-cell';
|
|
6
8
|
import { LibroSqlCellModule } from '@difizen/libro-sql-cell';
|
|
7
9
|
import { TerminalModule } from '@difizen/libro-terminal';
|
|
8
10
|
import { CommonWidgetsModule } from '@difizen/libro-widget';
|
|
9
|
-
import { ManaModule, createSlotPreference, RootSlotId, createViewPreference, HeaderArea } from '@difizen/mana-app';
|
|
10
|
-
import { l10n } from '@difizen/mana-l10n';
|
|
11
11
|
import { LibroLabHeaderMenuModule } from "./command/module.js";
|
|
12
12
|
import { LabConfigAppContribution } from "./config/config-contribution.js";
|
|
13
13
|
import { CodeEditorViewerModule } from "./editor-viewer/index.js";
|
|
@@ -88,4 +88,6 @@ createSlotPreference({
|
|
|
88
88
|
reveal: true,
|
|
89
89
|
order: 'welcome'
|
|
90
90
|
}
|
|
91
|
-
}), LibroGuidebookContentContribution, GuideView, EntryPointView).dependOn(LibroJupyterModule, CommonWidgetsModule, LibroLabLayoutModule, LibroLabHeaderMenuModule, LibroLabTocModule, LibroKernelAndTerminalPanelModule, LibroPromptCellModule, LibroSqlCellModule, TerminalModule, ImageViewerModule, CodeEditorViewerModule,
|
|
91
|
+
}), LibroGuidebookContentContribution, GuideView, EntryPointView).dependOn(LibroJupyterModule, CommonWidgetsModule, LibroLabLayoutModule, LibroLabHeaderMenuModule, LibroLabTocModule, LibroKernelAndTerminalPanelModule, LibroPromptCellModule, LibroSqlCellModule, TerminalModule, ImageViewerModule, CodeEditorViewerModule,
|
|
92
|
+
// LibroAINativeModule,
|
|
93
|
+
LibroAppModule);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
import { LibroNavigatableView } from '@difizen/libro-jupyter';
|
|
3
3
|
import { TOCView } from '@difizen/libro-toc';
|
|
4
|
-
import { BaseView, ViewManager } from '@difizen/
|
|
4
|
+
import { BaseView, ViewManager } from '@difizen/libro-common/app';
|
|
5
5
|
import { LayoutService } from '../layout/layout-service.js';
|
|
6
6
|
import './index.less';
|
|
7
7
|
export declare const TocViewFactoryId = "libro-lab-toc-view";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-toc-panel-view.d.ts","sourceRoot":"","sources":["../../src/toc/libro-toc-panel-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EACL,QAAQ,EAQR,WAAW,EAEZ,MAAM,
|
|
1
|
+
{"version":3,"file":"libro-toc-panel-view.d.ts","sourceRoot":"","sources":["../../src/toc/libro-toc-panel-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EACL,QAAQ,EAQR,WAAW,EAEZ,MAAM,2BAA2B,CAAC;AAKnC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,cAAc,CAAC;AA6BtB,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,qBAEa,YAAa,SAAQ,QAAQ;IAC/B,IAAI,yBAAiB;IACT,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;IACjC,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IACtD,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC;;IAQjC,WAAW,IAAI,IAAI;IAQ5B,IAAI,oBAAoB,qCAMvB;IAED,mBAAmB,aAiBjB;CACH"}
|
|
@@ -17,8 +17,8 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
17
17
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
18
18
|
import { LibroNavigatableView } from '@difizen/libro-jupyter';
|
|
19
19
|
import { TOCView } from '@difizen/libro-toc';
|
|
20
|
-
import { BaseView, inject, prop, singleton, ThemeService, useInject, view, ViewInstance, ViewManager, ViewRender } from '@difizen/
|
|
21
|
-
import { l10n } from '@difizen/
|
|
20
|
+
import { BaseView, inject, prop, singleton, ThemeService, useInject, view, ViewInstance, ViewManager, ViewRender } from '@difizen/libro-common/app';
|
|
21
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
22
22
|
import { ConfigProvider, Empty, theme } from 'antd';
|
|
23
23
|
import { TocIcon } from "../common/index.js";
|
|
24
24
|
import { LayoutService } from "../layout/layout-service.js";
|
package/es/toc/module.d.ts
CHANGED
package/es/toc/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/toc/module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/toc/module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAIvD,eAAO,MAAM,iBAAiB,YAEH,CAAC"}
|
package/es/toc/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LibroTOCModule } from '@difizen/libro-toc';
|
|
2
|
-
import { ManaModule } from '@difizen/
|
|
2
|
+
import { ManaModule } from '@difizen/libro-common/app';
|
|
3
3
|
import { TocPanelView } from "./libro-toc-panel-view.js";
|
|
4
4
|
export var LibroLabTocModule = ManaModule.create().register(TocPanelView).dependOn(LibroTOCModule);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
-
import { BaseView } from '@difizen/
|
|
2
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
3
3
|
import './index.less';
|
|
4
4
|
export declare const EntryPointComponent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
5
5
|
export declare class EntryPointView extends BaseView {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-point-view.d.ts","sourceRoot":"","sources":["../../src/welcome/entry-point-view.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"entry-point-view.d.ts","sourceRoot":"","sources":["../../src/welcome/entry-point-view.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAOrD,OAAO,cAAc,CAAC;AAEtB,eAAO,MAAM,mBAAmB,mFAmJ9B,CAAC;AAEH,qBAEa,cAAe,SAAQ,QAAQ;IACjC,IAAI,oFAAuB;CACrC"}
|
|
@@ -20,9 +20,9 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
20
20
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
21
|
import { NotebookIcon, PythonIcon, JSONIcon, MoreIcon, FileCreateModal, FileView } from '@difizen/libro-jupyter';
|
|
22
22
|
import { TerminalCommands } from '@difizen/libro-terminal';
|
|
23
|
-
import { CommandRegistry, ModalService, singleton, useInject, view, ViewManager } from '@difizen/
|
|
24
|
-
import { BaseView } from '@difizen/
|
|
25
|
-
import { l10n } from '@difizen/
|
|
23
|
+
import { CommandRegistry, ModalService, singleton, useInject, view, ViewManager } from '@difizen/libro-common/app';
|
|
24
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
25
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
26
26
|
import { Col, Row } from 'antd';
|
|
27
27
|
import { forwardRef, useEffect, useState } from 'react';
|
|
28
28
|
import { TerminalIcon } from "../common/icon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
-
import { ViewManager } from '@difizen/
|
|
3
|
-
import { BaseView } from '@difizen/
|
|
2
|
+
import { ViewManager } from '@difizen/libro-common/app';
|
|
3
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
4
4
|
import { EntryPointView } from './entry-point-view.js';
|
|
5
5
|
import './index.less';
|
|
6
6
|
export declare const WelcomeComponent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"welcome-view.d.ts","sourceRoot":"","sources":["../../src/welcome/welcome-view.tsx"],"names":[],"mappings":";AACA,OAAO,EAML,WAAW,EAEZ,MAAM,
|
|
1
|
+
{"version":3,"file":"welcome-view.d.ts","sourceRoot":"","sources":["../../src/welcome/welcome-view.tsx"],"names":[],"mappings":";AACA,OAAO,EAML,WAAW,EAEZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAMrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,cAAc,CAAC;AAEtB,eAAO,MAAM,gBAAgB,mFAyB3B,CAAC;AAEH,qBAEa,WAAY,SAAQ,QAAQ;IAC9B,IAAI,oFAAoB;IACjC,WAAW,EAAE,WAAW,CAAC;IACzB,cAAc,EAAE,cAAc,CAAC;gBACE,WAAW,EAAE,WAAW;CAc1D"}
|
|
@@ -13,9 +13,9 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
13
13
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
14
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
15
15
|
import { ServerConnection } from '@difizen/libro-jupyter';
|
|
16
|
-
import { inject, singleton, useInject, view, ViewInstance, ViewManager, ViewRender } from '@difizen/
|
|
17
|
-
import { BaseView } from '@difizen/
|
|
18
|
-
import { l10n } from '@difizen/
|
|
16
|
+
import { inject, singleton, useInject, view, ViewInstance, ViewManager, ViewRender } from '@difizen/libro-common/app';
|
|
17
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
18
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
19
19
|
import { forwardRef } from 'react';
|
|
20
20
|
import { LayoutService } from "../layout/layout-service.js";
|
|
21
21
|
import { EntryPointView } from "./entry-point-view.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-lab",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -34,23 +34,19 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@ant-design/icons": "^5.1.0",
|
|
37
|
-
"@difizen/libro-core": "^0.
|
|
38
|
-
"@difizen/libro-jupyter": "^0.
|
|
39
|
-
"@difizen/libro-kernel": "^0.
|
|
40
|
-
"@difizen/libro-prompt-cell": "^0.
|
|
41
|
-
"@difizen/libro-sql-cell": "^0.
|
|
42
|
-
"@difizen/libro-terminal": "^0.
|
|
43
|
-
"@difizen/libro-toc": "^0.
|
|
44
|
-
"@difizen/libro-app": "^0.
|
|
45
|
-
"@difizen/libro-cofine-editor-core": "^0.
|
|
46
|
-
"@difizen/libro-language-client": "^0.
|
|
47
|
-
"@difizen/libro-widget": "^0.
|
|
48
|
-
"@difizen/libro-l10n": "^0.
|
|
49
|
-
"@difizen/libro-
|
|
50
|
-
"@difizen/mana-app": "latest",
|
|
51
|
-
"@difizen/mana-l10n": "latest",
|
|
52
|
-
"@difizen/mana-common": "latest",
|
|
53
|
-
"@difizen/mana-react": "latest",
|
|
37
|
+
"@difizen/libro-core": "^1.0.1",
|
|
38
|
+
"@difizen/libro-jupyter": "^1.0.1",
|
|
39
|
+
"@difizen/libro-kernel": "^1.0.1",
|
|
40
|
+
"@difizen/libro-prompt-cell": "^1.0.1",
|
|
41
|
+
"@difizen/libro-sql-cell": "^1.0.1",
|
|
42
|
+
"@difizen/libro-terminal": "^1.0.1",
|
|
43
|
+
"@difizen/libro-toc": "^1.0.1",
|
|
44
|
+
"@difizen/libro-app": "^1.0.1",
|
|
45
|
+
"@difizen/libro-cofine-editor-core": "^1.0.1",
|
|
46
|
+
"@difizen/libro-language-client": "^1.0.1",
|
|
47
|
+
"@difizen/libro-widget": "^1.0.1",
|
|
48
|
+
"@difizen/libro-l10n": "^1.0.1",
|
|
49
|
+
"@difizen/libro-common": "^1.0.1",
|
|
54
50
|
"classnames": "^2.3.2",
|
|
55
51
|
"uuid": "^9.0.0",
|
|
56
52
|
"viewerjs": "^1.11.6"
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
NotebookCommands,
|
|
6
6
|
} from '@difizen/libro-jupyter';
|
|
7
7
|
import { TerminalCommands, TerminalManager } from '@difizen/libro-terminal';
|
|
8
|
-
import type { KeybindingRegistry, MenuRegistry } from '@difizen/
|
|
9
|
-
import { SlotViewManager } from '@difizen/
|
|
10
|
-
import { KeybindingContribution } from '@difizen/
|
|
11
|
-
import { Saveable } from '@difizen/
|
|
8
|
+
import type { KeybindingRegistry, MenuRegistry } from '@difizen/libro-common/app';
|
|
9
|
+
import { SlotViewManager } from '@difizen/libro-common/app';
|
|
10
|
+
import { KeybindingContribution } from '@difizen/libro-common/app';
|
|
11
|
+
import { Saveable } from '@difizen/libro-common/app';
|
|
12
12
|
import {
|
|
13
13
|
CommandContribution,
|
|
14
14
|
CommandRegistry,
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
MenuContribution,
|
|
18
18
|
singleton,
|
|
19
19
|
ViewManager,
|
|
20
|
-
} from '@difizen/
|
|
21
|
-
import { l10n } from '@difizen/
|
|
20
|
+
} from '@difizen/libro-common/app';
|
|
21
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
22
22
|
|
|
23
23
|
import { GuideView } from '../guide/index.js';
|
|
24
24
|
import { LibroLabLayoutSlots } from '../layout/index.js';
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
prop,
|
|
7
7
|
singleton,
|
|
8
8
|
view,
|
|
9
|
-
} from '@difizen/
|
|
10
|
-
import { l10n } from '@difizen/
|
|
9
|
+
} from '@difizen/libro-common/app';
|
|
10
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
11
11
|
import { forwardRef } from 'react';
|
|
12
12
|
|
|
13
13
|
export const ManaMenubarComponent = forwardRef(function GithubLinkComponent() {
|
package/src/command/module.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
createSlotPreference,
|
|
3
|
+
HeaderArea,
|
|
4
|
+
ManaModule,
|
|
5
|
+
} from '@difizen/libro-common/app';
|
|
2
6
|
|
|
3
7
|
import { LabMenu } from './lab-menu-contribution.js';
|
|
4
8
|
import { MenuBarView } from './menu-bar-view.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LibroConfigAutoSave } from '@difizen/libro-jupyter';
|
|
2
|
-
import { ConfigurationService } from '@difizen/
|
|
3
|
-
import { ApplicationContribution } from '@difizen/
|
|
4
|
-
import { inject, singleton } from '@difizen/
|
|
2
|
+
import { ConfigurationService } from '@difizen/libro-common/app';
|
|
3
|
+
import { ApplicationContribution } from '@difizen/libro-common/app';
|
|
4
|
+
import { inject, singleton } from '@difizen/libro-common/app';
|
|
5
5
|
|
|
6
6
|
@singleton({ contrib: ApplicationContribution })
|
|
7
7
|
export class LabConfigAppContribution implements ApplicationContribution {
|
package/src/config/config.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConfigurationNode } from '@difizen/
|
|
2
|
-
import { l10n } from '@difizen/
|
|
1
|
+
import type { ConfigurationNode } from '@difizen/libro-common/app';
|
|
2
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
3
3
|
|
|
4
4
|
export const LibroLabKernelAndTerminalPanelEnabled: ConfigurationNode<boolean> = {
|
|
5
5
|
id: 'libro.lab.kernel.termianl.panel.enabled',
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { LibroJupyterConfiguration } from '@difizen/libro-jupyter';
|
|
2
|
-
import type { URI, ViewOpenHandlerOptions } from '@difizen/
|
|
3
|
-
import { ConfigurationService, inject } from '@difizen/
|
|
4
|
-
import { Priority } from '@difizen/
|
|
5
|
-
import {
|
|
2
|
+
import type { URI, ViewOpenHandlerOptions } from '@difizen/libro-common/app';
|
|
3
|
+
import { ConfigurationService, inject } from '@difizen/libro-common/app';
|
|
4
|
+
import { Priority } from '@difizen/libro-common/app';
|
|
5
|
+
import {
|
|
6
|
+
NavigatableViewOpenHandler,
|
|
7
|
+
OpenHandler,
|
|
8
|
+
singleton,
|
|
9
|
+
} from '@difizen/libro-common/app';
|
|
6
10
|
|
|
7
11
|
import type { CodeEditorViewer } from './code-editor-viewer.js';
|
|
8
12
|
import { CodeEditorViewerFactory, textFileTypes } from './protocol.js';
|
|
@@ -3,9 +3,9 @@ import type { LanguageSpec, MonacoEditorOptions } from '@difizen/libro-jupyter';
|
|
|
3
3
|
import { LibroConfigAutoSave } from '@difizen/libro-jupyter';
|
|
4
4
|
import { MonacoUri } from '@difizen/libro-jupyter';
|
|
5
5
|
import { JupyterFileService, LanguageSpecRegistry } from '@difizen/libro-jupyter';
|
|
6
|
-
import type { NavigatableView, Saveable } from '@difizen/
|
|
7
|
-
import { ConfigurationService } from '@difizen/
|
|
8
|
-
import { Disposable } from '@difizen/
|
|
6
|
+
import type { NavigatableView, Saveable } from '@difizen/libro-common/app';
|
|
7
|
+
import { ConfigurationService } from '@difizen/libro-common/app';
|
|
8
|
+
import { Disposable } from '@difizen/libro-common/app';
|
|
9
9
|
import {
|
|
10
10
|
DisposableCollection,
|
|
11
11
|
Emitter,
|
|
@@ -16,8 +16,14 @@ import {
|
|
|
16
16
|
URI,
|
|
17
17
|
URIIconReference,
|
|
18
18
|
ViewOption,
|
|
19
|
-
} from '@difizen/
|
|
20
|
-
import {
|
|
19
|
+
} from '@difizen/libro-common/app';
|
|
20
|
+
import {
|
|
21
|
+
BaseView,
|
|
22
|
+
transient,
|
|
23
|
+
useInject,
|
|
24
|
+
view,
|
|
25
|
+
ViewInstance,
|
|
26
|
+
} from '@difizen/libro-common/app';
|
|
21
27
|
import React from 'react';
|
|
22
28
|
import './index.less';
|
|
23
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LanguageSpecRegistry } from '@difizen/libro-jupyter';
|
|
2
2
|
import { LanguageSpecContribution } from '@difizen/libro-jupyter';
|
|
3
|
-
import { singleton } from '@difizen/
|
|
3
|
+
import { singleton } from '@difizen/libro-common/app';
|
|
4
4
|
|
|
5
5
|
@singleton({ contrib: [LanguageSpecContribution] })
|
|
6
6
|
export class JSONLanguageSpecs implements LanguageSpecContribution {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LanguageSpecRegistry } from '@difizen/libro-jupyter';
|
|
2
2
|
import { LanguageSpecContribution } from '@difizen/libro-jupyter';
|
|
3
|
-
import { singleton } from '@difizen/
|
|
3
|
+
import { singleton } from '@difizen/libro-common/app';
|
|
4
4
|
|
|
5
5
|
@singleton({ contrib: [LanguageSpecContribution] })
|
|
6
6
|
export class JuliaLanguageSpecs implements LanguageSpecContribution {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { LibroJupyterConfiguration } from '@difizen/libro-jupyter';
|
|
2
|
-
import type { URI, ViewOpenHandlerOptions } from '@difizen/
|
|
3
|
-
import { ConfigurationService, inject } from '@difizen/
|
|
4
|
-
import {
|
|
2
|
+
import type { URI, ViewOpenHandlerOptions } from '@difizen/libro-common/app';
|
|
3
|
+
import { ConfigurationService, inject } from '@difizen/libro-common/app';
|
|
4
|
+
import {
|
|
5
|
+
NavigatableViewOpenHandler,
|
|
6
|
+
OpenHandler,
|
|
7
|
+
singleton,
|
|
8
|
+
} from '@difizen/libro-common/app';
|
|
5
9
|
|
|
6
10
|
import type { LibroDefaultViewer } from './libro-default-viewer.js';
|
|
7
11
|
import { LibroDefaultViewerFactory } from './protocol.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NavigatableView } from '@difizen/
|
|
1
|
+
import type { NavigatableView } from '@difizen/libro-common/app';
|
|
2
2
|
import {
|
|
3
3
|
inject,
|
|
4
4
|
LabelProvider,
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
URI,
|
|
7
7
|
URIIconReference,
|
|
8
8
|
ViewOption,
|
|
9
|
-
} from '@difizen/
|
|
10
|
-
import { BaseView, transient, view } from '@difizen/
|
|
11
|
-
import { l10n } from '@difizen/
|
|
9
|
+
} from '@difizen/libro-common/app';
|
|
10
|
+
import { BaseView, transient, view } from '@difizen/libro-common/app';
|
|
11
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
12
12
|
import React from 'react';
|
|
13
13
|
|
|
14
14
|
import './index.less';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LanguageSpecRegistry } from '@difizen/libro-jupyter';
|
|
2
2
|
import { LanguageSpecContribution } from '@difizen/libro-jupyter';
|
|
3
|
-
import { singleton } from '@difizen/
|
|
3
|
+
import { singleton } from '@difizen/libro-common/app';
|
|
4
4
|
|
|
5
5
|
@singleton({ contrib: [LanguageSpecContribution] })
|
|
6
6
|
export class RLanguageSpecs implements LanguageSpecContribution {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GithubFilled } from '@ant-design/icons';
|
|
2
|
-
import { singleton, view } from '@difizen/
|
|
3
|
-
import { BaseView } from '@difizen/
|
|
2
|
+
import { singleton, view } from '@difizen/libro-common/app';
|
|
3
|
+
import { BaseView } from '@difizen/libro-common/app';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
|
|
6
6
|
export const GithubLinkComponent = forwardRef(function GithubLinkComponent() {
|
|
@@ -5,9 +5,9 @@ import type {
|
|
|
5
5
|
INotebookContent,
|
|
6
6
|
LibroJupyterModel,
|
|
7
7
|
} from '@difizen/libro-jupyter';
|
|
8
|
-
import { URI } from '@difizen/
|
|
9
|
-
import { singleton } from '@difizen/
|
|
10
|
-
import { l10n, L10nLang } from '@difizen/
|
|
8
|
+
import { URI } from '@difizen/libro-common/app';
|
|
9
|
+
import { singleton } from '@difizen/libro-common/app';
|
|
10
|
+
import { l10n, L10nLang } from '@difizen/libro-common/l10n';
|
|
11
11
|
|
|
12
12
|
import contentJson from './libro_guide_book.json';
|
|
13
13
|
import contentZhJson from './libro_guide_book_zh.json';
|