@difizen/libro-code-cell 0.3.24 → 0.3.26
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/code-cell-view.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { IOutput } from '@difizen/libro-common';
|
|
|
5
5
|
import type { LibroCell, CellViewOptions } from '@difizen/libro-core';
|
|
6
6
|
import { CellService, EditorStatus, LibroEditableExecutableCellView, LibroOutputArea } from '@difizen/libro-core';
|
|
7
7
|
import type { ViewSize } from '@difizen/mana-app';
|
|
8
|
+
import { ConfigurationService } from '@difizen/mana-app';
|
|
8
9
|
import { ViewManager, Deferred } from '@difizen/mana-app';
|
|
9
10
|
import 'highlight.js/styles/vs.css';
|
|
10
11
|
import './index.less';
|
|
@@ -24,7 +25,7 @@ export declare class LibroCodeCellView extends LibroEditableExecutableCellView {
|
|
|
24
25
|
renderEditor: () => import("react/jsx-runtime").JSX.Element | null;
|
|
25
26
|
onViewResize(size: ViewSize): void;
|
|
26
27
|
calcEditorAreaHeight(): number;
|
|
27
|
-
constructor(options: CellViewOptions, cellService: CellService, viewManager: ViewManager, codeEditorManager: CodeEditorManager);
|
|
28
|
+
constructor(options: CellViewOptions, cellService: CellService, configurationService: ConfigurationService, viewManager: ViewManager, codeEditorManager: CodeEditorManager);
|
|
28
29
|
outputWatch(): void;
|
|
29
30
|
toJSON(): LibroCell;
|
|
30
31
|
onViewMount(): void;
|
|
@@ -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,qB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AC;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAQL,WAAW,EAIX,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAM3B,OAAO,4BAA4B,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AA+D/D,eAAO,MAAM,cAAc,0CAAmB,CAAC;AAuB/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,EACf,oBAAoB,EAAE,oBAAoB,EACnD,WAAW,EAAE,WAAW,EAClB,iBAAiB,EAAE,iBAAiB;IA6BxD,WAAW;IAQX,MAAM,IAAI,SAAS;IAQnB,WAAW;IAKpB,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;cAK/B,eAAe,IAAI,qBAAqB;IAclD,cAAc,aAGrB;CACH"}
|
package/es/code-cell-view.js
CHANGED
|
@@ -30,6 +30,7 @@ import { CodeEditorManager } from '@difizen/libro-code-editor';
|
|
|
30
30
|
import { CellUri } from '@difizen/libro-common';
|
|
31
31
|
import { isOutput } from '@difizen/libro-common';
|
|
32
32
|
import { CellService, EditorStatus, LibroEditableExecutableCellView, LibroOutputArea, VirtualizedManagerHelper } from '@difizen/libro-core';
|
|
33
|
+
import { ConfigurationService } from '@difizen/mana-app';
|
|
33
34
|
import { getOrigin, inject, prop, transient, useInject, view, ViewInstance, ViewManager, ViewOption, ViewRender, watch, Deferred } from '@difizen/mana-app';
|
|
34
35
|
import { l10n } from '@difizen/mana-l10n'; /* eslint-disable react-hooks/exhaustive-deps */
|
|
35
36
|
import hljs from 'highlight.js';
|
|
@@ -111,11 +112,11 @@ var CodeEditorViewComponent = /*#__PURE__*/forwardRef(function CodeEditorViewCom
|
|
|
111
112
|
export var LibroCodeCellView = (_dec = transient(), _dec2 = view('code-editor-cell-view'), _dec3 = prop(), _dec4 = prop(), _dec5 = prop(), _dec6 = prop(), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_LibroEditableExecuta) {
|
|
112
113
|
_inherits(LibroCodeCellView, _LibroEditableExecuta);
|
|
113
114
|
var _super = _createSuper(LibroCodeCellView);
|
|
114
|
-
function LibroCodeCellView(options, cellService, viewManager, codeEditorManager) {
|
|
115
|
+
function LibroCodeCellView(options, cellService, configurationService, viewManager, codeEditorManager) {
|
|
115
116
|
var _options$cell;
|
|
116
117
|
var _this;
|
|
117
118
|
_classCallCheck(this, LibroCodeCellView);
|
|
118
|
-
_this = _super.call(this, options, cellService);
|
|
119
|
+
_this = _super.call(this, options, cellService, configurationService);
|
|
119
120
|
_this.view = CodeEditorViewComponent;
|
|
120
121
|
_this.viewManager = void 0;
|
|
121
122
|
_this.outputs = void 0;
|
|
@@ -176,8 +177,9 @@ export var LibroCodeCellView = (_dec = transient(), _dec2 = view('code-editor-ce
|
|
|
176
177
|
}()).catch(console.error);
|
|
177
178
|
return _this;
|
|
178
179
|
}
|
|
179
|
-
LibroCodeCellView = inject(CodeEditorManager)(LibroCodeCellView, undefined,
|
|
180
|
-
LibroCodeCellView = inject(ViewManager)(LibroCodeCellView, undefined,
|
|
180
|
+
LibroCodeCellView = inject(CodeEditorManager)(LibroCodeCellView, undefined, 4) || LibroCodeCellView;
|
|
181
|
+
LibroCodeCellView = inject(ViewManager)(LibroCodeCellView, undefined, 3) || LibroCodeCellView;
|
|
182
|
+
LibroCodeCellView = inject(ConfigurationService)(LibroCodeCellView, undefined, 2) || LibroCodeCellView;
|
|
181
183
|
LibroCodeCellView = inject(CellService)(LibroCodeCellView, undefined, 1) || LibroCodeCellView;
|
|
182
184
|
LibroCodeCellView = inject(ViewOption)(LibroCodeCellView, undefined, 0) || LibroCodeCellView;
|
|
183
185
|
_createClass(LibroCodeCellView, [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-code-cell",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"src"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@difizen/libro-code-editor": "^0.3.
|
|
36
|
-
"@difizen/libro-common": "^0.3.
|
|
37
|
-
"@difizen/libro-core": "^0.3.
|
|
35
|
+
"@difizen/libro-code-editor": "^0.3.26",
|
|
36
|
+
"@difizen/libro-common": "^0.3.26",
|
|
37
|
+
"@difizen/libro-core": "^0.3.26",
|
|
38
38
|
"@difizen/mana-app": "latest",
|
|
39
39
|
"@difizen/mana-l10n": "latest",
|
|
40
40
|
"highlight.js": "^11.11.1"
|
package/src/code-cell-view.tsx
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
VirtualizedManagerHelper,
|
|
19
19
|
} from '@difizen/libro-core';
|
|
20
20
|
import type { ViewSize } from '@difizen/mana-app';
|
|
21
|
+
import { ConfigurationService } from '@difizen/mana-app';
|
|
21
22
|
import {
|
|
22
23
|
getOrigin,
|
|
23
24
|
inject,
|
|
@@ -190,10 +191,11 @@ export class LibroCodeCellView extends LibroEditableExecutableCellView {
|
|
|
190
191
|
constructor(
|
|
191
192
|
@inject(ViewOption) options: CellViewOptions,
|
|
192
193
|
@inject(CellService) cellService: CellService,
|
|
194
|
+
@inject(ConfigurationService) configurationService: ConfigurationService,
|
|
193
195
|
@inject(ViewManager) viewManager: ViewManager,
|
|
194
196
|
@inject(CodeEditorManager) codeEditorManager: CodeEditorManager,
|
|
195
197
|
) {
|
|
196
|
-
super(options, cellService);
|
|
198
|
+
super(options, cellService, configurationService);
|
|
197
199
|
this.options = options;
|
|
198
200
|
this.viewManager = viewManager;
|
|
199
201
|
this.codeEditorManager = codeEditorManager;
|