@difizen/libro-core 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-cell/libro-add-cell-module.d.ts +1 -1
- package/es/add-cell/libro-add-cell-module.d.ts.map +1 -1
- package/es/add-cell/libro-add-cell-module.js +1 -1
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts +1 -1
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts.map +1 -1
- package/es/add-cell/libro-add-cell-slot-contribution.js +2 -2
- package/es/add-cell/libro-add-cell-view.d.ts +1 -1
- package/es/add-cell/libro-add-cell-view.d.ts.map +1 -1
- package/es/add-cell/libro-add-cell-view.js +1 -1
- package/es/cell/libro-cell-contribution.js +1 -1
- package/es/cell/libro-cell-model.d.ts +1 -1
- package/es/cell/libro-cell-model.d.ts.map +1 -1
- package/es/cell/libro-cell-model.js +2 -2
- package/es/cell/libro-cell-module.d.ts +1 -1
- package/es/cell/libro-cell-module.d.ts.map +1 -1
- package/es/cell/libro-cell-module.js +1 -1
- package/es/cell/libro-cell-protocol.d.ts +2 -2
- package/es/cell/libro-cell-protocol.d.ts.map +1 -1
- package/es/cell/libro-cell-protocol.js +1 -1
- package/es/cell/libro-cell-service.d.ts +2 -2
- package/es/cell/libro-cell-service.d.ts.map +1 -1
- package/es/cell/libro-cell-service.js +3 -3
- package/es/cell/libro-cell-view.d.ts +4 -4
- package/es/cell/libro-cell-view.d.ts.map +1 -1
- package/es/cell/libro-cell-view.js +6 -6
- package/es/cell/libro-edit-cell-view.d.ts +1 -1
- package/es/cell/libro-edit-cell-view.d.ts.map +1 -1
- package/es/cell/libro-edit-cell-view.js +1 -1
- package/es/cell/libro-executable-cell-model.d.ts +1 -1
- package/es/cell/libro-executable-cell-model.d.ts.map +1 -1
- package/es/cell/libro-executable-cell-view.js +3 -3
- package/es/collapse-service.js +1 -1
- package/es/command/document-commands.d.ts +1 -1
- package/es/command/document-commands.d.ts.map +1 -1
- package/es/command/kernel-command.d.ts +1 -1
- package/es/command/kernel-command.d.ts.map +1 -1
- package/es/command/kernel-command.js +1 -1
- package/es/command/libro-command-contribution.d.ts +2 -2
- package/es/command/libro-command-contribution.d.ts.map +1 -1
- package/es/command/libro-command-contribution.js +2 -2
- package/es/command/libro-command-register.d.ts +1 -1
- package/es/command/libro-command-register.d.ts.map +1 -1
- package/es/command/libro-command-register.js +1 -1
- 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/command/notebook-commands.d.ts +1 -1
- package/es/command/notebook-commands.d.ts.map +1 -1
- package/es/command/notebook-commands.js +1 -1
- package/es/components/dnd-cell-item-render.js +2 -2
- package/es/components/dnd-component/default-dnd-content.js +2 -2
- package/es/components/dnd-component/dnd-list.d.ts.map +1 -1
- package/es/components/dnd-component/dnd-list.js +1 -1
- package/es/components/dnd-component/virtualized-manager.js +1 -1
- package/es/components/libro-component.js +2 -2
- package/es/components/libro-side-toolbar-menu.js +2 -2
- package/es/components/libro-view-header.js +1 -1
- package/es/content/libro-content-contribution.js +1 -1
- package/es/content/libro-content-module.d.ts +1 -1
- package/es/content/libro-content-module.d.ts.map +1 -1
- package/es/content/libro-content-module.js +1 -1
- package/es/content/libro-content-protocol.d.ts +1 -1
- package/es/content/libro-content-protocol.d.ts.map +1 -1
- package/es/content/libro-content-protocol.js +1 -1
- package/es/content/libro-content-service.d.ts +1 -1
- package/es/content/libro-content-service.d.ts.map +1 -1
- package/es/content/libro-content-service.js +1 -1
- package/es/content/libro-save-content-contribution.js +1 -1
- package/es/formatter/libro-formatter-json-contribution.js +1 -1
- package/es/formatter/libro-formatter-manager.d.ts +1 -1
- package/es/formatter/libro-formatter-manager.d.ts.map +1 -1
- package/es/formatter/libro-formatter-manager.js +1 -1
- package/es/formatter/libro-formatter-module.d.ts +1 -1
- package/es/formatter/libro-formatter-module.d.ts.map +1 -1
- package/es/formatter/libro-formatter-module.js +1 -1
- package/es/formatter/libro-formatter-protocol.d.ts +1 -1
- package/es/formatter/libro-formatter-protocol.d.ts.map +1 -1
- package/es/formatter/libro-formatter-protocol.js +1 -1
- package/es/formatter/libro-formatter-string-contribution.js +1 -1
- package/es/formatter/libro-formatter-trans-default-contribution.js +1 -1
- package/es/index.d.ts +2 -0
- package/es/index.d.ts.map +1 -1
- package/es/index.js +2 -0
- package/es/libro-context-key.d.ts +3 -3
- package/es/libro-context-key.d.ts.map +1 -1
- package/es/libro-context-key.js +2 -2
- package/es/libro-keybind-registry.d.ts +1 -1
- package/es/libro-keybind-registry.d.ts.map +1 -1
- package/es/libro-keybind-registry.js +2 -2
- package/es/libro-model.d.ts +9 -9
- package/es/libro-model.d.ts.map +1 -1
- package/es/libro-model.js +4 -4
- package/es/libro-protocol.d.ts +2 -2
- package/es/libro-protocol.d.ts.map +1 -1
- package/es/libro-service.d.ts +13 -13
- package/es/libro-service.d.ts.map +1 -1
- package/es/libro-service.js +4 -4
- package/es/libro-setting-contribution.d.ts +2 -2
- package/es/libro-setting-contribution.d.ts.map +1 -1
- package/es/libro-setting-contribution.js +1 -1
- package/es/libro-setting.d.ts +1 -1
- package/es/libro-setting.d.ts.map +1 -1
- package/es/libro-setting.js +1 -1
- package/es/libro-view-tracker.js +1 -1
- package/es/libro-view.d.ts +9 -9
- package/es/libro-view.d.ts.map +1 -1
- package/es/libro-view.js +1 -1
- package/es/libro-workspace-service.d.ts +1 -1
- package/es/libro-workspace-service.d.ts.map +1 -1
- package/es/libro-workspace-service.js +2 -2
- package/es/module.d.ts +1 -1
- package/es/module.d.ts.map +1 -1
- package/es/module.js +2 -2
- package/es/output/output-area.d.ts +4 -4
- package/es/output/output-area.d.ts.map +1 -1
- package/es/output/output-area.js +2 -2
- package/es/output/output-contribution.d.ts +1 -1
- package/es/output/output-contribution.d.ts.map +1 -1
- package/es/output/output-contribution.js +1 -1
- package/es/output/output-model.d.ts +1 -1
- package/es/output/output-model.d.ts.map +1 -1
- package/es/output/output-model.js +2 -2
- package/es/output/output-module.d.ts +1 -1
- package/es/output/output-module.d.ts.map +1 -1
- package/es/output/output-module.js +1 -1
- package/es/output/output-protocol.d.ts +3 -3
- package/es/output/output-protocol.d.ts.map +1 -1
- package/es/output/output-protocol.js +1 -1
- package/es/settings/module.d.ts +1 -1
- package/es/settings/module.d.ts.map +1 -1
- package/es/settings/module.js +1 -1
- package/es/settings/setting-editor/configuration-panel-view.d.ts +2 -2
- package/es/settings/setting-editor/configuration-panel-view.d.ts.map +1 -1
- package/es/settings/setting-editor/configuration-panel-view.js +1 -1
- package/es/settings/setting-editor/configuration-render-contribution.d.ts +2 -2
- package/es/settings/setting-editor/configuration-render-contribution.d.ts.map +1 -1
- package/es/settings/setting-editor/configuration-render-contribution.js +1 -1
- package/es/settings/setting-editor/default-node-render.d.ts +1 -1
- package/es/settings/setting-editor/default-node-render.d.ts.map +1 -1
- package/es/settings/setting-editor/default-node-render.js +1 -1
- package/es/settings/setting-editor/module.d.ts +1 -1
- package/es/settings/setting-editor/module.d.ts.map +1 -1
- package/es/settings/setting-editor/module.js +1 -1
- package/es/settings/setting-editor/setting-editor-view.d.ts +1 -1
- package/es/settings/setting-editor/setting-editor-view.d.ts.map +1 -1
- package/es/settings/setting-editor/setting-editor-view.js +2 -2
- package/es/settings/setting-editor/setting-tree-service.d.ts +3 -3
- package/es/settings/setting-editor/setting-tree-service.d.ts.map +1 -1
- package/es/settings/setting-editor/setting-tree-service.js +2 -2
- package/es/settings/setting-editor/setting-tree-view.d.ts +2 -2
- package/es/settings/setting-editor/setting-tree-view.d.ts.map +1 -1
- package/es/settings/setting-editor/setting-tree-view.js +2 -2
- package/es/settings/settings-contribution.d.ts +3 -3
- package/es/settings/settings-contribution.d.ts.map +1 -1
- package/es/settings/settings-contribution.js +2 -2
- package/es/settings/settings-modal.d.ts +1 -1
- package/es/settings/settings-modal.d.ts.map +1 -1
- package/es/settings/settings-modal.js +3 -3
- package/es/settings/settings-protocol.d.ts +1 -1
- package/es/settings/settings-protocol.d.ts.map +1 -1
- package/es/slot/libro-slot-manager.d.ts +2 -2
- package/es/slot/libro-slot-manager.d.ts.map +1 -1
- package/es/slot/libro-slot-manager.js +2 -2
- package/es/slot/libro-slot-protocol.d.ts +2 -2
- package/es/slot/libro-slot-protocol.d.ts.map +1 -1
- package/es/slot/libro-slot-protocol.js +1 -1
- package/es/slot/libro-slot-view.d.ts +2 -2
- package/es/slot/libro-slot-view.d.ts.map +1 -1
- package/es/slot/libro-slot-view.js +3 -3
- package/es/slot/module.d.ts +1 -1
- package/es/slot/module.d.ts.map +1 -1
- package/es/slot/module.js +1 -1
- package/es/theme/libro-color-registry.d.ts +2 -2
- package/es/theme/libro-color-registry.d.ts.map +1 -1
- package/es/theme/libro-color-registry.js +2 -2
- package/es/toolbar/all-outputs-scroll-icon.js +1 -1
- package/es/toolbar/change-cell-to-selector.js +1 -1
- package/es/toolbar/hide-all-selector.js +2 -2
- package/es/toolbar/libro-toolbar.d.ts +2 -2
- package/es/toolbar/libro-toolbar.d.ts.map +1 -1
- package/es/toolbar/libro-toolbar.js +3 -3
- package/es/toolbar/module.d.ts +1 -1
- package/es/toolbar/module.d.ts.map +1 -1
- package/es/toolbar/module.js +1 -1
- package/es/toolbar/restart-clear-outputs-contribution.d.ts +2 -2
- package/es/toolbar/restart-clear-outputs-contribution.d.ts.map +1 -1
- package/es/toolbar/restart-clear-outputs-contribution.js +1 -1
- package/es/toolbar/restart-clear-outputs-modal.d.ts +1 -1
- package/es/toolbar/restart-clear-outputs-modal.d.ts.map +1 -1
- package/es/toolbar/restart-clear-outputs-modal.js +1 -1
- package/es/toolbar/save-icon.js +1 -1
- package/es/toolbar/shutdown-contribution.d.ts +2 -2
- package/es/toolbar/shutdown-contribution.d.ts.map +1 -1
- package/es/toolbar/shutdown-contribution.js +1 -1
- package/es/toolbar/shutdown-modal.d.ts +1 -1
- package/es/toolbar/shutdown-modal.d.ts.map +1 -1
- package/es/toolbar/side-toolar-more-select.js +4 -4
- package/es/utils/index.js +1 -1
- package/es/virtualized-manager-helper.js +1 -1
- package/es/virtualized-manager.js +1 -1
- package/package.json +5 -8
- package/src/add-cell/libro-add-cell-module.ts +1 -1
- package/src/add-cell/libro-add-cell-slot-contribution.ts +2 -2
- package/src/add-cell/libro-add-cell-view.tsx +1 -1
- package/src/cell/libro-cell-contribution.ts +1 -1
- package/src/cell/libro-cell-model.ts +2 -2
- package/src/cell/libro-cell-module.ts +1 -1
- package/src/cell/libro-cell-protocol.ts +2 -2
- package/src/cell/libro-cell-service.ts +4 -4
- package/src/cell/libro-cell-view.tsx +7 -7
- package/src/cell/libro-edit-cell-view.tsx +1 -1
- package/src/cell/libro-executable-cell-model.ts +1 -1
- package/src/cell/libro-executable-cell-view.ts +3 -3
- package/src/collapse-service.ts +1 -1
- package/src/command/document-commands.ts +1 -1
- package/src/command/kernel-command.ts +2 -2
- package/src/command/libro-command-contribution.ts +3 -3
- package/src/command/libro-command-register.ts +2 -2
- package/src/command/module.ts +1 -1
- package/src/command/notebook-commands.ts +2 -2
- package/src/components/dnd-cell-item-render.tsx +2 -2
- package/src/components/dnd-component/default-dnd-content.tsx +2 -2
- package/src/components/dnd-component/dnd-list.tsx +6 -1
- package/src/components/dnd-component/virtualized-manager.ts +1 -1
- package/src/components/libro-component.tsx +2 -2
- package/src/components/libro-side-toolbar-menu.tsx +3 -3
- package/src/components/libro-view-header.tsx +1 -1
- package/src/content/libro-content-contribution.ts +1 -1
- package/src/content/libro-content-module.ts +1 -1
- package/src/content/libro-content-protocol.ts +1 -1
- package/src/content/libro-content-service.ts +2 -2
- package/src/content/libro-save-content-contribution.ts +1 -1
- package/src/formatter/libro-formatter-json-contribution.ts +1 -1
- package/src/formatter/libro-formatter-manager.ts +2 -2
- package/src/formatter/libro-formatter-module.ts +1 -1
- package/src/formatter/libro-formatter-protocol.ts +1 -1
- package/src/formatter/libro-formatter-string-contribution.ts +1 -1
- package/src/formatter/libro-formatter-trans-default-contribution.ts +1 -1
- package/src/index.tsx +3 -0
- package/src/libro-context-key.ts +4 -4
- package/src/libro-keybind-registry.ts +2 -2
- package/src/libro-model.ts +4 -4
- package/src/libro-protocol.ts +2 -2
- package/src/libro-service.ts +5 -5
- package/src/libro-setting-contribution.ts +1 -1
- package/src/libro-setting.ts +2 -2
- package/src/libro-view-tracker.ts +1 -1
- package/src/libro-view.tsx +1 -1
- package/src/libro-workspace-service.ts +2 -2
- package/src/module.ts +2 -2
- package/src/output/output-area.tsx +3 -3
- package/src/output/output-contribution.ts +1 -1
- package/src/output/output-model.tsx +2 -2
- package/src/output/output-module.ts +1 -1
- package/src/output/output-protocol.ts +3 -3
- package/src/settings/module.ts +1 -1
- package/src/settings/setting-editor/configuration-panel-view.tsx +2 -2
- package/src/settings/setting-editor/configuration-render-contribution.ts +2 -2
- package/src/settings/setting-editor/default-node-render.tsx +2 -2
- package/src/settings/setting-editor/module.ts +1 -1
- package/src/settings/setting-editor/setting-editor-view.tsx +2 -2
- package/src/settings/setting-editor/setting-tree-service.ts +3 -3
- package/src/settings/setting-editor/setting-tree-view.tsx +3 -3
- package/src/settings/settings-contribution.tsx +7 -3
- package/src/settings/settings-modal.tsx +4 -4
- package/src/settings/settings-protocol.ts +1 -1
- package/src/slot/libro-slot-manager.ts +3 -3
- package/src/slot/libro-slot-protocol.ts +2 -2
- package/src/slot/libro-slot-view.tsx +9 -4
- package/src/slot/module.ts +1 -1
- package/src/theme/libro-color-registry.ts +3 -3
- package/src/toolbar/all-outputs-scroll-icon.tsx +1 -1
- package/src/toolbar/change-cell-to-selector.tsx +2 -2
- package/src/toolbar/hide-all-selector.tsx +3 -3
- package/src/toolbar/libro-toolbar.tsx +4 -4
- package/src/toolbar/module.ts +1 -1
- package/src/toolbar/restart-clear-outputs-contribution.tsx +1 -1
- package/src/toolbar/restart-clear-outputs-modal.tsx +2 -2
- package/src/toolbar/save-icon.tsx +2 -2
- package/src/toolbar/shutdown-contribution.tsx +1 -1
- package/src/toolbar/shutdown-modal.tsx +1 -1
- package/src/toolbar/side-toolar-more-select.tsx +5 -5
- package/src/utils/index.ts +1 -1
- package/src/virtualized-manager-helper.ts +1 -1
- package/src/virtualized-manager.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Syringe } from '@difizen/
|
|
1
|
+
import { Syringe } from '@difizen/libro-common/app';
|
|
2
2
|
export var LibroExtensionSlotContribution = Syringe.defineToken('LibroExtensionSlotContribution');
|
|
3
3
|
export function isDisplayView(object) {
|
|
4
4
|
return 'isDisplay' in object;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
-
import type { View, ViewOpenOption, Disposable } from '@difizen/
|
|
3
|
-
import { DefaultSlotView } from '@difizen/
|
|
2
|
+
import type { View, ViewOpenOption, Disposable } from '@difizen/libro-common/app';
|
|
3
|
+
import { DefaultSlotView } from '@difizen/libro-common/app';
|
|
4
4
|
export declare const LibroExtensionViewComponent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export declare class LibroSlotView extends DefaultSlotView {
|
|
6
6
|
label: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-slot-view.d.ts","sourceRoot":"","sources":["../../src/slot/libro-slot-view.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"libro-slot-view.d.ts","sourceRoot":"","sources":["../../src/slot/libro-slot-view.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAClF,OAAO,EACL,eAAe,EAIhB,MAAM,2BAA2B,CAAC;AAOnC,eAAO,MAAM,2BAA2B,0FA6BvC,CAAC;AAEF,qBAEa,aAAc,SAAQ,eAAe;IACvC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAQ;IAC9B,IAAI,2FAA+B;IAEnC,IAAI,CAAC,EAAE,OAAO,CAAS;IAGhC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAM;IAEhB,OAAO,CACpB,YAAY,EAAE,IAAI,EAClB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,UAAU,CAAC;IAQtB,YAAY;CAab"}
|
|
@@ -20,9 +20,9 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
20
20
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
21
21
|
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; }
|
|
22
22
|
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.'); }
|
|
23
|
-
import { DefaultSlotView, view, ViewRender, ViewInstance } from '@difizen/
|
|
24
|
-
import { transient } from '@difizen/
|
|
25
|
-
import { equals, prop, useInject } from '@difizen/
|
|
23
|
+
import { DefaultSlotView, view, ViewRender, ViewInstance } from '@difizen/libro-common/app';
|
|
24
|
+
import { transient } from '@difizen/libro-common/app';
|
|
25
|
+
import { equals, prop, useInject } from '@difizen/libro-common/app';
|
|
26
26
|
import { forwardRef } from 'react';
|
|
27
27
|
import { isDisplayView } from "./libro-slot-protocol.js";
|
|
28
28
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/es/slot/module.d.ts
CHANGED
package/es/slot/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/slot/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/slot/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAMvD,eAAO,MAAM,eAAe,YAEgB,CAAC"}
|
package/es/slot/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ManaModule } from '@difizen/
|
|
1
|
+
import { ManaModule } from '@difizen/libro-common/app';
|
|
2
2
|
import { LibroSlotManager } from "./libro-slot-manager.js";
|
|
3
3
|
import { LibroExtensionSlotContribution } from "./libro-slot-protocol.js";
|
|
4
4
|
import { LibroSlotView } from "./libro-slot-view.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ColorRegistry } from '@difizen/
|
|
2
|
-
import { ColorContribution } from '@difizen/
|
|
1
|
+
import type { ColorRegistry } from '@difizen/libro-common/app';
|
|
2
|
+
import { ColorContribution } from '@difizen/libro-common/app';
|
|
3
3
|
export declare class LibroColorRegistry implements ColorContribution {
|
|
4
4
|
registerColors(colors: ColorRegistry): void;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-color-registry.d.ts","sourceRoot":"","sources":["../../src/theme/libro-color-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"libro-color-registry.d.ts","sourceRoot":"","sources":["../../src/theme/libro-color-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,qBACa,kBAAmB,YAAW,iBAAiB;IAC1D,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;CAgY5C"}
|
|
@@ -5,8 +5,8 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5
5
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
7
|
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); }
|
|
8
|
-
import { ColorContribution } from '@difizen/
|
|
9
|
-
import { singleton } from '@difizen/
|
|
8
|
+
import { ColorContribution } from '@difizen/libro-common/app';
|
|
9
|
+
import { singleton } from '@difizen/libro-common/app';
|
|
10
10
|
export var LibroColorRegistry = (_dec = singleton({
|
|
11
11
|
contrib: ColorContribution
|
|
12
12
|
}), _dec(_class = /*#__PURE__*/function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useInject, ViewInstance } from '@difizen/
|
|
1
|
+
import { useInject, ViewInstance } from '@difizen/libro-common/app';
|
|
2
2
|
import { DisableOutputScroll } from "../material-from-designer.js";
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
export var AllOutputsScrollIcon = function AllOutputsScrollIcon() {
|
|
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
5
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
6
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
-
import { useInject, ToolbarInstance, getOrigin, CommandRegistry, ThemeService } from '@difizen/
|
|
7
|
+
import { useInject, ToolbarInstance, getOrigin, CommandRegistry, ThemeService } from '@difizen/libro-common/app';
|
|
8
8
|
import { ConfigProvider, Select, theme } from 'antd';
|
|
9
9
|
import { memo } from 'react';
|
|
10
10
|
import { LibroCellService } from "../cell/index.js";
|
|
@@ -5,8 +5,8 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
|
|
|
5
5
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
6
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
7
|
import { EyeInvisibleOutlined } from '@ant-design/icons';
|
|
8
|
-
import { useInject, ToolbarInstance, getOrigin, CommandRegistry } from '@difizen/
|
|
9
|
-
import { l10n } from '@difizen/
|
|
8
|
+
import { useInject, ToolbarInstance, getOrigin, CommandRegistry } from '@difizen/libro-common/app';
|
|
9
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
10
10
|
import { Menu, Dropdown } from 'antd';
|
|
11
11
|
import { memo } from 'react';
|
|
12
12
|
import { ExecutableCellModel } from "../cell/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ToolbarRegistry } from '@difizen/
|
|
2
|
-
import { ModalService, ToolbarContribution } from '@difizen/
|
|
1
|
+
import type { ToolbarRegistry } from '@difizen/libro-common/app';
|
|
2
|
+
import { ModalService, ToolbarContribution } from '@difizen/libro-common/app';
|
|
3
3
|
import { LibroService } from '../libro-service.js';
|
|
4
4
|
export declare class LibroToolbarContribution implements ToolbarContribution {
|
|
5
5
|
protected readonly modalService: ModalService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-toolbar.d.ts","sourceRoot":"","sources":["../../src/toolbar/libro-toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"libro-toolbar.d.ts","sourceRoot":"","sources":["../../src/toolbar/libro-toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAEL,YAAY,EAEZ,mBAAmB,EAEpB,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AA0BnD,qBACa,wBAAyB,YAAW,mBAAmB;IAC5C,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAC9C,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAEpE,oBAAoB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;CA2LtD"}
|
|
@@ -8,9 +8,9 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
8
8
|
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); }
|
|
9
9
|
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; }
|
|
10
10
|
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.'); }
|
|
11
|
-
import { isMacintosh } from '@difizen/
|
|
12
|
-
import { inject, ModalService, singleton, ToolbarContribution, useObserve } from '@difizen/
|
|
13
|
-
import { l10n } from '@difizen/
|
|
11
|
+
import { isMacintosh } from '@difizen/libro-common/app';
|
|
12
|
+
import { inject, ModalService, singleton, ToolbarContribution, useObserve } from '@difizen/libro-common/app';
|
|
13
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
14
14
|
import { DocumentCommands, NotebookCommands } from "../command/index.js";
|
|
15
15
|
import { LibroService } from "../libro-service.js";
|
|
16
16
|
import { AllOutputsScrollIcon } from "./all-outputs-scroll-icon.js";
|
package/es/toolbar/module.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/toolbar/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/toolbar/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAMvD,eAAO,MAAM,kBAAkB,YAI9B,CAAC"}
|
package/es/toolbar/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ManaModule } from '@difizen/
|
|
1
|
+
import { ManaModule } from '@difizen/libro-common/app';
|
|
2
2
|
import { LibroToolbarContribution } from "./libro-toolbar.js";
|
|
3
3
|
import { RestartClearOutputsContribution } from "./restart-clear-outputs-contribution.js";
|
|
4
4
|
import { ShutdownContribution } from "./shutdown-contribution.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModalContribution } from '@difizen/
|
|
1
|
+
import { ModalContribution } from '@difizen/libro-common/app';
|
|
2
2
|
export declare class RestartClearOutputsContribution implements ModalContribution {
|
|
3
|
-
registerModal(): import("@difizen/
|
|
3
|
+
registerModal(): import("@difizen/libro-common/app").ModalItem<import("../libro-view.js").LibroView>;
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=restart-clear-outputs-contribution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restart-clear-outputs-contribution.d.ts","sourceRoot":"","sources":["../../src/toolbar/restart-clear-outputs-contribution.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAa,MAAM,
|
|
1
|
+
{"version":3,"file":"restart-clear-outputs-contribution.d.ts","sourceRoot":"","sources":["../../src/toolbar/restart-clear-outputs-contribution.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAa,MAAM,2BAA2B,CAAC;AAIzE,qBACa,+BAAgC,YAAW,iBAAiB;IACvE,aAAa;CAGd"}
|
|
@@ -5,7 +5,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5
5
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
7
|
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); }
|
|
8
|
-
import { ModalContribution, singleton } from '@difizen/
|
|
8
|
+
import { ModalContribution, singleton } from '@difizen/libro-common/app';
|
|
9
9
|
import { RestartClearOutputModal } from "./restart-clear-outputs-modal.js";
|
|
10
10
|
export var RestartClearOutputsContribution = (_dec = singleton({
|
|
11
11
|
contrib: ModalContribution
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ModalItemProps, ModalItem } from '@difizen/
|
|
1
|
+
import type { ModalItemProps, ModalItem } from '@difizen/libro-common/app';
|
|
2
2
|
import type { LibroView } from '../libro-view.js';
|
|
3
3
|
export declare function RestartClearOutputModalComponent({ visible, close, data, }: ModalItemProps<LibroView>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const RestartClearOutputModal: ModalItem<LibroView>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restart-clear-outputs-modal.d.ts","sourceRoot":"","sources":["../../src/toolbar/restart-clear-outputs-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"restart-clear-outputs-modal.d.ts","sourceRoot":"","sources":["../../src/toolbar/restart-clear-outputs-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAM3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,wBAAgB,gCAAgC,CAAC,EAC/C,OAAO,EACP,KAAK,EACL,IAAI,GACL,EAAE,cAAc,CAAC,SAAS,CAAC,2CAsB3B;AAED,eAAO,MAAM,uBAAuB,EAAE,SAAS,CAAC,SAAS,CAGxD,CAAC"}
|
package/es/toolbar/save-icon.js
CHANGED
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { SaveOutlined, CheckOutlined, CloseOutlined, LoadingOutlined } from '@ant-design/icons';
|
|
8
|
-
import { useInject, ViewInstance } from '@difizen/
|
|
8
|
+
import { useInject, ViewInstance } from '@difizen/libro-common/app';
|
|
9
9
|
import { useEffect, useCallback, useState } from 'react';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
export var SaveIcon = function SaveIcon() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModalContribution } from '@difizen/
|
|
1
|
+
import { ModalContribution } from '@difizen/libro-common/app';
|
|
2
2
|
export declare class ShutdownContribution implements ModalContribution {
|
|
3
|
-
registerModal(): import("@difizen/
|
|
3
|
+
registerModal(): import("@difizen/libro-common/app").ModalItem<import("../libro-view.js").LibroView>;
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=shutdown-contribution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shutdown-contribution.d.ts","sourceRoot":"","sources":["../../src/toolbar/shutdown-contribution.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAa,MAAM,
|
|
1
|
+
{"version":3,"file":"shutdown-contribution.d.ts","sourceRoot":"","sources":["../../src/toolbar/shutdown-contribution.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAa,MAAM,2BAA2B,CAAC;AAIzE,qBACa,oBAAqB,YAAW,iBAAiB;IAC5D,aAAa;CAGd"}
|
|
@@ -5,7 +5,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5
5
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
7
|
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); }
|
|
8
|
-
import { ModalContribution, singleton } from '@difizen/
|
|
8
|
+
import { ModalContribution, singleton } from '@difizen/libro-common/app';
|
|
9
9
|
import { ShutdownModal } from "./shutdown-modal.js";
|
|
10
10
|
export var ShutdownContribution = (_dec = singleton({
|
|
11
11
|
contrib: ModalContribution
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ModalItemProps, ModalItem } from '@difizen/
|
|
1
|
+
import type { ModalItemProps, ModalItem } from '@difizen/libro-common/app';
|
|
2
2
|
import type { LibroView } from '../libro-view.js';
|
|
3
3
|
export declare function ShutdownModalComponent({ visible, close, data, }: ModalItemProps<LibroView>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const ShutdownModal: ModalItem<LibroView>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shutdown-modal.d.ts","sourceRoot":"","sources":["../../src/toolbar/shutdown-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"shutdown-modal.d.ts","sourceRoot":"","sources":["../../src/toolbar/shutdown-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAK3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,wBAAgB,sBAAsB,CAAC,EACrC,OAAO,EACP,KAAK,EACL,IAAI,GACL,EAAE,cAAc,CAAC,SAAS,CAAC,2CAoB3B;AAED,eAAO,MAAM,aAAa,EAAE,SAAS,CAAC,SAAS,CAG9C,CAAC"}
|
|
@@ -4,10 +4,10 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
5
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
6
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { Menu, MenuContext } from '@difizen/libro-common/react';
|
|
8
|
+
import { isMacintosh } from '@difizen/libro-common/app';
|
|
9
|
+
import { CommandRegistry, getOrigin, ToolbarInstance, useInject, useObserve } from '@difizen/libro-common/app';
|
|
10
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
11
11
|
import { Popover } from 'antd';
|
|
12
12
|
import { ExecutableCellModel, ExecutableCellView } from "../cell/index.js";
|
|
13
13
|
import { NotebookCommands } from "../command/index.js";
|
package/es/utils/index.js
CHANGED
|
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import { useUnmount } from '@difizen/
|
|
7
|
+
import { useUnmount } from '@difizen/libro-common/app';
|
|
8
8
|
import { useCallback, useLayoutEffect, useRef, useState } from 'react';
|
|
9
9
|
function useRafState(initialState) {
|
|
10
10
|
var ref = useRef(0);
|
|
@@ -8,7 +8,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
8
8
|
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); }
|
|
9
9
|
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; }
|
|
10
10
|
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.'); }
|
|
11
|
-
import { inject, prop, singleton } from '@difizen/
|
|
11
|
+
import { inject, prop, singleton } from '@difizen/libro-common/app';
|
|
12
12
|
import { VirtualizedManagerOptionFactory } from "./libro-protocol.js";
|
|
13
13
|
export var VirtualizedManagerHelper = (_dec = singleton(), _dec2 = inject(VirtualizedManagerOptionFactory), _dec3 = prop(), _dec(_class = (_class2 = /*#__PURE__*/function () {
|
|
14
14
|
function VirtualizedManagerHelper() {
|
|
@@ -11,7 +11,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
11
11
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12
12
|
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; }
|
|
13
13
|
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.'); }
|
|
14
|
-
import { transient, prop, inject } from '@difizen/
|
|
14
|
+
import { transient, prop, inject } from '@difizen/libro-common/app';
|
|
15
15
|
import { VirtualizedManagerOption } from "./libro-protocol.js";
|
|
16
16
|
export var VirtualizedManager = (_dec = transient(), _dec2 = prop(), _dec(_class = (_class2 = /*#__PURE__*/_createClass(function VirtualizedManager(virtualizedManagerOption) {
|
|
17
17
|
var _this = this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -34,13 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@ant-design/icons": "^5.1.0",
|
|
37
|
-
"@difizen/libro-code-editor": "^0.
|
|
38
|
-
"@difizen/libro-common": "^0.
|
|
39
|
-
"@difizen/libro-shared-model": "^0.
|
|
40
|
-
"@difizen/libro-virtualized": "^0.
|
|
41
|
-
"@difizen/mana-app": "latest",
|
|
42
|
-
"@difizen/mana-l10n": "latest",
|
|
43
|
-
"@difizen/mana-react": "latest",
|
|
37
|
+
"@difizen/libro-code-editor": "^1.0.0",
|
|
38
|
+
"@difizen/libro-common": "^1.0.0",
|
|
39
|
+
"@difizen/libro-shared-model": "^1.0.0",
|
|
40
|
+
"@difizen/libro-virtualized": "^1.0.0",
|
|
44
41
|
"classnames": "^2.3.2",
|
|
45
42
|
"dayjs": "^1.11.10",
|
|
46
43
|
"dnd-core": "^16.0.1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ViewManager } from '@difizen/
|
|
2
|
-
import { inject, singleton } from '@difizen/
|
|
1
|
+
import { ViewManager } from '@difizen/libro-common/app';
|
|
2
|
+
import { inject, singleton } from '@difizen/libro-common/app';
|
|
3
3
|
|
|
4
4
|
import type { LibroView } from '../libro-view.js';
|
|
5
5
|
import { LibroExtensionSlotContribution } from '../slot/index.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Model } from '@difizen/libro-code-editor';
|
|
2
2
|
import type { ICell } from '@difizen/libro-common';
|
|
3
3
|
import { concatMultilineString } from '@difizen/libro-common';
|
|
4
|
-
import { DisposableCollection, watch } from '@difizen/
|
|
5
|
-
import { prop, inject, postConstruct, transient } from '@difizen/
|
|
4
|
+
import { DisposableCollection, watch } from '@difizen/libro-common/app';
|
|
5
|
+
import { prop, inject, postConstruct, transient } from '@difizen/libro-common/app';
|
|
6
6
|
|
|
7
7
|
import type { DefaultDecodedFormatter } from '../formatter/index.js';
|
|
8
8
|
import { DefaultEncodedFormatter, LibroFormatterManager } from '../formatter/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IBaseCell, ICell, ICellMetadata } from '@difizen/libro-common';
|
|
2
|
-
import type { MaybePromise, Newable } from '@difizen/
|
|
3
|
-
import { Syringe } from '@difizen/
|
|
2
|
+
import type { MaybePromise, Newable } from '@difizen/libro-common/app';
|
|
3
|
+
import { Syringe } from '@difizen/libro-common/app';
|
|
4
4
|
|
|
5
5
|
import type { CellModel, CellOptions, CellView } from '../libro-protocol.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Contribution } from '@difizen/
|
|
2
|
-
import { Priority, prop } from '@difizen/
|
|
3
|
-
import { ApplicationContribution, ViewManager } from '@difizen/
|
|
4
|
-
import { contrib, inject, singleton } from '@difizen/
|
|
1
|
+
import type { Contribution } from '@difizen/libro-common/app';
|
|
2
|
+
import { Priority, prop } from '@difizen/libro-common/app';
|
|
3
|
+
import { ApplicationContribution, ViewManager } from '@difizen/libro-common/app';
|
|
4
|
+
import { contrib, inject, singleton } from '@difizen/libro-common/app';
|
|
5
5
|
|
|
6
6
|
import type { CellView, CellModel, CellOptions } from '../libro-protocol.js';
|
|
7
7
|
import { LibroService } from '../libro-service.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ViewComponent } from '@difizen/
|
|
2
|
-
import { Deferred } from '@difizen/
|
|
3
|
-
import { useInject, watch } from '@difizen/
|
|
4
|
-
import { BaseView, view, ViewInstance, ViewOption } from '@difizen/
|
|
5
|
-
import { inject } from '@difizen/
|
|
6
|
-
import { DisposableCollection } from '@difizen/
|
|
7
|
-
import { prop } from '@difizen/
|
|
1
|
+
import type { ViewComponent } from '@difizen/libro-common/app';
|
|
2
|
+
import { Deferred } from '@difizen/libro-common/app';
|
|
3
|
+
import { useInject, watch } from '@difizen/libro-common/app';
|
|
4
|
+
import { BaseView, view, ViewInstance, ViewOption } from '@difizen/libro-common/app';
|
|
5
|
+
import { inject } from '@difizen/libro-common/app';
|
|
6
|
+
import { DisposableCollection } from '@difizen/libro-common/app';
|
|
7
|
+
import { prop } from '@difizen/libro-common/app';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
10
|
import type { CellViewOptions, CellModel } from '../libro-protocol.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ICodeCell } from '@difizen/libro-common';
|
|
2
|
-
import { watch } from '@difizen/
|
|
3
|
-
import { ViewOption } from '@difizen/
|
|
4
|
-
import { inject } from '@difizen/
|
|
2
|
+
import { watch } from '@difizen/libro-common/app';
|
|
3
|
+
import { ViewOption } from '@difizen/libro-common/app';
|
|
4
|
+
import { inject } from '@difizen/libro-common/app';
|
|
5
5
|
|
|
6
6
|
import type { CellModel } from '../libro-protocol.js';
|
|
7
7
|
import type { CellViewOptions } from '../libro-protocol.js';
|
package/src/collapse-service.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Command } from '@difizen/
|
|
2
|
-
import { l10n } from '@difizen/
|
|
1
|
+
import type { Command } from '@difizen/libro-common/app';
|
|
2
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
3
3
|
|
|
4
4
|
export const KernelCommands: Record<string, Command & { keybind?: string }> = {
|
|
5
5
|
//#region libro command
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { MIME } from '@difizen/libro-common';
|
|
2
|
-
import type { CommandRegistry } from '@difizen/
|
|
2
|
+
import type { CommandRegistry } from '@difizen/libro-common/app';
|
|
3
3
|
import {
|
|
4
4
|
inject,
|
|
5
5
|
ModalService,
|
|
6
6
|
singleton,
|
|
7
7
|
CommandContribution,
|
|
8
|
-
} from '@difizen/
|
|
9
|
-
import { equals } from '@difizen/
|
|
8
|
+
} from '@difizen/libro-common/app';
|
|
9
|
+
import { equals } from '@difizen/libro-common/app';
|
|
10
10
|
import { v4 } from 'uuid';
|
|
11
11
|
|
|
12
12
|
import { LibroCellView, ExecutableCellModel, EditorCellView } from '../cell/index.js';
|
|
@@ -4,8 +4,8 @@ import type {
|
|
|
4
4
|
CommandHandlerWithContext,
|
|
5
5
|
CommandRegistry,
|
|
6
6
|
KeybindingRegistry,
|
|
7
|
-
} from '@difizen/
|
|
8
|
-
import { inject, singleton } from '@difizen/
|
|
7
|
+
} from '@difizen/libro-common/app';
|
|
8
|
+
import { inject, singleton } from '@difizen/libro-common/app';
|
|
9
9
|
|
|
10
10
|
import type { CellView, NotebookView } from '../libro-protocol.js';
|
|
11
11
|
import { LibroContextKeys } from '../libro-protocol.js';
|
package/src/command/module.ts
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
// ReloadOutlined,
|
|
10
10
|
PoweroffOutlined,
|
|
11
11
|
} from '@ant-design/icons';
|
|
12
|
-
import type { Command } from '@difizen/
|
|
13
|
-
import { l10n } from '@difizen/
|
|
12
|
+
import type { Command } from '@difizen/libro-common/app';
|
|
13
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
14
14
|
|
|
15
15
|
import {
|
|
16
16
|
Undo,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
useObserve,
|
|
9
9
|
ViewInstance,
|
|
10
10
|
ViewRender,
|
|
11
|
-
} from '@difizen/
|
|
12
|
-
import { l10n } from '@difizen/
|
|
11
|
+
} from '@difizen/libro-common/app';
|
|
12
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
13
13
|
import { Tooltip } from 'antd';
|
|
14
14
|
import classnames from 'classnames';
|
|
15
15
|
import type { FC } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
2
|
-
import { getOrigin, useInject, ViewInstance } from '@difizen/
|
|
3
|
-
import { useConfigurationValue } from '@difizen/
|
|
2
|
+
import { getOrigin, useInject, ViewInstance } from '@difizen/libro-common/app';
|
|
3
|
+
import { useConfigurationValue } from '@difizen/libro-common/app';
|
|
4
4
|
import { Button } from 'antd';
|
|
5
5
|
import React, {
|
|
6
6
|
useCallback,
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
getOrigin,
|
|
3
|
+
useInject,
|
|
4
|
+
useObserve,
|
|
5
|
+
ViewInstance,
|
|
6
|
+
} from '@difizen/libro-common/app';
|
|
2
7
|
import classNames from 'classnames';
|
|
3
8
|
import { throttle } from 'lodash';
|
|
4
9
|
import type { FC, ReactNode } from 'react';
|