@difizen/libro-code-cell 0.3.3 → 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.
@@ -13,7 +13,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
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
14
  import { LanguageSpecContribution } from '@difizen/libro-code-editor';
15
15
  import { CellModelContribution, CellViewContribution } from '@difizen/libro-core';
16
- import { inject, singleton } from '@difizen/mana-app';
16
+ import { inject, singleton } from '@difizen/libro-common/app';
17
17
  import { CodeCellModelFactory } from "./code-cell-protocol.js";
18
18
  import { LibroCodeCellView } from "./code-cell-view.js";
19
19
  export var CodeEditorCellContribution = (_dec = singleton({
@@ -1,9 +1,9 @@
1
1
  import type { ICodeCell, ExecutionCount } from '@difizen/libro-common';
2
2
  import type { ExecutableCellModel } from '@difizen/libro-core';
3
3
  import { CellOptions, LibroCellModel } from '@difizen/libro-core';
4
- import type { Event as ManaEvent } from '@difizen/mana-app';
5
- import { ViewManager } from '@difizen/mana-app';
6
- import { Emitter } from '@difizen/mana-app';
4
+ import type { Event as ManaEvent } from '@difizen/libro-common/app';
5
+ import { ViewManager } from '@difizen/libro-common/app';
6
+ import { Emitter } from '@difizen/libro-common/app';
7
7
  /**
8
8
  * 基础的可执行代码的cell, 带有执行能力
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"code-cell-model.d.ts","sourceRoot":"","sources":["../src/code-cell-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EA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O,CAAC;IAEzB,kBAAkB,EAAE,OAAO,CAAC;IAEpB,eAAe,EAAE,MAAM,CAAC;IAEhC,WAAW,EAAE,WAAW,CAAC;IAGzB,gBAAgB,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAE/B,IAAI,SAAS,IAAI,SAAS,CAAC,GAAG,CAAC,CAE9B;gBAGsB,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,WAAW;IAYtC,MAAM,IAAI,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IAY7C,cAAc,aAGZ;IAEO,OAAO;IAKhB,SAAS;CAGV"}
@@ -19,8 +19,8 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
19
19
  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.'); }
20
20
  import { MIME } from '@difizen/libro-common';
21
21
  import { CellOptions, LibroCellModel } from '@difizen/libro-core';
22
- import { inject, prop, transient, ViewManager } from '@difizen/mana-app';
23
- import { Emitter } from '@difizen/mana-app';
22
+ import { inject, prop, transient, ViewManager } from '@difizen/libro-common/app';
23
+ import { Emitter } from '@difizen/libro-common/app';
24
24
 
25
25
  /**
26
26
  * 基础的可执行代码的cell, 带有执行能力
@@ -2,10 +2,10 @@
2
2
  import type { CodeEditorViewOptions } from '@difizen/libro-code-editor';
3
3
  import { CodeEditorManager } from '@difizen/libro-code-editor';
4
4
  import type { IOutput } from '@difizen/libro-common';
5
+ import type { ViewSize } from '@difizen/libro-common/app';
6
+ import { ViewManager, Deferred } from '@difizen/libro-common/app';
5
7
  import type { LibroCell, CellViewOptions } from '@difizen/libro-core';
6
8
  import { CellService, EditorStatus, LibroEditableExecutableCellView, LibroOutputArea } from '@difizen/libro-core';
7
- import type { ViewSize } from '@difizen/mana-app';
8
- import { ViewManager, Deferred } from '@difizen/mana-app';
9
9
  import type { LibroCodeCellModel } from './code-cell-model.js';
10
10
  export declare const CellEditorMemo: import("react").NamedExoticComponent<{}>;
11
11
  export declare class LibroCodeCellView extends LibroEditableExecutableCellView {
@@ -1 +1 @@
1
- {"version":3,"file":"code-cell-view.d.ts","sourceRoot":"","sources":["../src/code-cell-view.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAa,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,KAAK,EAEV,SAAS,EACT,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,YAAY,EACZ,+BAA+B,EAC/B,eAAe,EAEhB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAQL,WAAW,EAIX,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AA2C/D,eAAO,MAAM,cAAc,0CAAmB,CAAC;AAmB/C,qBAEa,iBAAkB,SAAQ,+BAA+B;IAC3D,IAAI,2FAA2B;IAExC,WAAW,EAAE,WAAW,CAAC;IAEjB,KAAK,EAAE,kBAAkB,CAAC;IAElC,OAAO,EAAE,OAAO,EAAE,CAAC;IAGnB,gBAAgB,SAAK;IAGZ,kBAAkB,SAAK;IAGvB,cAAc,SAAK;IAGnB,YAAY,EAAE,YAAY,CAA0B;IAE7D,SAAS,CAAC,kBAAkB,4BAAmC;IAC/D,IAAI,eAAe,6BAElB;IAEQ,YAAY,uDAKnB;IAEO,YAAY,CAAC,IAAI,EAAE,QAAQ;IAMpC,oBAAoB;gBAqBE,OAAO,EAAE,eAAe,EACvB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EAClB,iBAAiB,EAAE,iBAAiB;IA6BxD,WAAW;IAQX,MAAM,IAAI,SAAS;IAQ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B,iBAAiB,EAAE,iBAAiB;IA6BxD,WAAW;IAQX,MAAM,IAAI,SAAS;IAQnB,WAAW;IAIpB,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;cAK/B,eAAe,IAAI,qBAAqB;IAclD,cAAc,aAGrB;CACH"}
@@ -29,9 +29,10 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decor
29
29
  import { CodeEditorManager } from '@difizen/libro-code-editor';
30
30
  import { CellUri } from '@difizen/libro-common';
31
31
  import { isOutput } from '@difizen/libro-common';
32
+ import { l10n } from '@difizen/libro-common/l10n'; /* eslint-disable react-hooks/exhaustive-deps */
33
+
34
+ import { getOrigin, inject, prop, transient, useInject, view, ViewInstance, ViewManager, ViewOption, ViewRender, watch, Deferred } from '@difizen/libro-common/app';
32
35
  import { CellService, EditorStatus, LibroEditableExecutableCellView, LibroOutputArea, VirtualizedManagerHelper } from '@difizen/libro-core';
33
- import { getOrigin, inject, prop, transient, useInject, view, ViewInstance, ViewManager, ViewOption, ViewRender, watch, Deferred } from '@difizen/mana-app';
34
- import { l10n } from '@difizen/mana-l10n'; /* eslint-disable react-hooks/exhaustive-deps */
35
36
  import { useEffect, useRef, memo, forwardRef } from 'react';
36
37
  import { jsx as _jsx } from "react/jsx-runtime";
37
38
  import { Fragment as _Fragment } from "react/jsx-runtime";
package/es/module.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { ManaModule } from '@difizen/mana-app';
1
+ import { ManaModule } from '@difizen/libro-common/app';
2
2
  export declare const CodeCellModule: ManaModule;
3
3
  //# sourceMappingURL=module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAO/C,eAAO,MAAM,cAAc,YAeE,CAAC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAOvD,eAAO,MAAM,cAAc,YAeE,CAAC"}
package/es/module.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CodeEditorModule } from '@difizen/libro-code-editor';
2
2
  import { CellOptions } from '@difizen/libro-core';
3
- import { ManaModule } from '@difizen/mana-app';
3
+ import { ManaModule } from '@difizen/libro-common/app';
4
4
  import { CodeEditorCellContribution } from "./code-cell-contribution.js";
5
5
  import { LibroCodeCellModel } from "./code-cell-model.js";
6
6
  import { CodeCellModelFactory } from "./code-cell-protocol.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-code-cell",
3
- "version": "0.3.3",
3
+ "version": "1.0.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
@@ -32,11 +32,9 @@
32
32
  "src"
33
33
  ],
34
34
  "dependencies": {
35
- "@difizen/libro-code-editor": "^0.3.3",
36
- "@difizen/libro-common": "^0.3.3",
37
- "@difizen/libro-core": "^0.3.3",
38
- "@difizen/mana-app": "latest",
39
- "@difizen/mana-l10n": "latest"
35
+ "@difizen/libro-code-editor": "^1.0.0",
36
+ "@difizen/libro-common": "^1.0.0",
37
+ "@difizen/libro-core": "^1.0.0"
40
38
  },
41
39
  "peerDependencies": {
42
40
  "react": ">=16"
@@ -2,7 +2,7 @@ import type { LanguageSpecRegistry } from '@difizen/libro-code-editor';
2
2
  import { LanguageSpecContribution } from '@difizen/libro-code-editor';
3
3
  import { CellModelContribution, CellViewContribution } from '@difizen/libro-core';
4
4
  import type { CellMeta, CellModel, CellOptions } from '@difizen/libro-core';
5
- import { inject, singleton } from '@difizen/mana-app';
5
+ import { inject, singleton } from '@difizen/libro-common/app';
6
6
 
7
7
  import { CodeCellModelFactory } from './code-cell-protocol.js';
8
8
  import { LibroCodeCellView } from './code-cell-view.js';
@@ -2,9 +2,9 @@ import { MIME } from '@difizen/libro-common';
2
2
  import type { ICodeCell, ExecutionCount } from '@difizen/libro-common';
3
3
  import type { ExecutableCellModel } from '@difizen/libro-core';
4
4
  import { CellOptions, LibroCellModel } from '@difizen/libro-core';
5
- import type { Event as ManaEvent } from '@difizen/mana-app';
6
- import { inject, prop, transient, ViewManager } from '@difizen/mana-app';
7
- import { Emitter } from '@difizen/mana-app';
5
+ import type { Event as ManaEvent } from '@difizen/libro-common/app';
6
+ import { inject, prop, transient, ViewManager } from '@difizen/libro-common/app';
7
+ import { Emitter } from '@difizen/libro-common/app';
8
8
 
9
9
  /**
10
10
  * 基础的可执行代码的cell, 带有执行能力
@@ -5,19 +5,8 @@ import { CodeEditorManager } from '@difizen/libro-code-editor';
5
5
  import type { ICodeCell, IOutput } from '@difizen/libro-common';
6
6
  import { CellUri } from '@difizen/libro-common';
7
7
  import { isOutput } from '@difizen/libro-common';
8
- import type {
9
- IOutputAreaOption,
10
- LibroCell,
11
- CellViewOptions,
12
- } from '@difizen/libro-core';
13
- import {
14
- CellService,
15
- EditorStatus,
16
- LibroEditableExecutableCellView,
17
- LibroOutputArea,
18
- VirtualizedManagerHelper,
19
- } from '@difizen/libro-core';
20
- import type { ViewSize } from '@difizen/mana-app';
8
+ import { l10n } from '@difizen/libro-common/l10n'; /* eslint-disable react-hooks/exhaustive-deps */
9
+ import type { ViewSize } from '@difizen/libro-common/app';
21
10
  import {
22
11
  getOrigin,
23
12
  inject,
@@ -31,8 +20,19 @@ import {
31
20
  ViewRender,
32
21
  watch,
33
22
  Deferred,
34
- } from '@difizen/mana-app';
35
- import { l10n } from '@difizen/mana-l10n'; /* eslint-disable react-hooks/exhaustive-deps */
23
+ } from '@difizen/libro-common/app';
24
+ import type {
25
+ IOutputAreaOption,
26
+ LibroCell,
27
+ CellViewOptions,
28
+ } from '@difizen/libro-core';
29
+ import {
30
+ CellService,
31
+ EditorStatus,
32
+ LibroEditableExecutableCellView,
33
+ LibroOutputArea,
34
+ VirtualizedManagerHelper,
35
+ } from '@difizen/libro-core';
36
36
  import { useEffect, useRef, memo, forwardRef } from 'react';
37
37
 
38
38
  import type { LibroCodeCellModel } from './code-cell-model.js';
package/src/module.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CodeEditorModule } from '@difizen/libro-code-editor';
2
2
  import { CellOptions } from '@difizen/libro-core';
3
- import { ManaModule } from '@difizen/mana-app';
3
+ import { ManaModule } from '@difizen/libro-common/app';
4
4
 
5
5
  import { CodeEditorCellContribution } from './code-cell-contribution.js';
6
6
  import { LibroCodeCellModel } from './code-cell-model.js';